*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-10-12 Adam Fedor <fedor@gnu.org>
2
3 * language.c (binop_result_type): Add language_objc to case.
4 (integral_type): Likewise.
5 (character_type): Likewise.
6 (string_type): Likewise.
7 (boolean_type): Likewise.
8 (structured_type): Likewise.
9 (binop_type_check): Likewise.
10
11 2002-10-11 Adam Fedor <fedor@gnu.org>
12
13 * printcmd.c (address_info): Print 'self' for ObjC.
14
15 2002-10-11 Adam Fedor <fedor@gnu.org>
16
17 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
18 OP_SELF.
19
20 2002-10-11 Adam Fedor <fedor@gnu.org>
21
22 * language.h (CAST_IS_CONVERSION): Add language_objc.
23
24 2002-10-11 Adam Fedor <fedor@gnu.org>
25
26 * defs.h (enum language): Add language_objc.
27
28 2002-10-11 Klee Dienes <kdienes@apple.com>
29
30 * findvar.c (read_memory_typed_address): New function.
31 * gdbcore.h (read_memory_typed_address): Add prototype.
32 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
33 to read a value destined for a CORE_ADDR, not read_memory_integer.
34 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
35 (f77_get_dynamic_lowerbound): Ditto.
36
37 2002-10-11 Martin M. Hunt <hunt@redhat.com>
38
39 * utils.c (string_to_core_addr): After turning string into
40 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
41 which will do necessary sign-extension, etc.
42
43 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
44
45 * c-exp.y (THIS): Delete token and grammar rule.
46 (yylex): Don't return THIS.
47 * cp-valprint.c (vtbl_ptr_name_old): Delete.
48 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
49 * demangle.c (cplus_markers): Update comment. Put '$'
50 first. Remove CPLUS_MARKER.
51 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
52 * jv-exp.y (THIS): Delete token and grammar rule.
53 (yylex): Don't return THIS.
54 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
55 * objc-exp.y (THIS): Delete token and grammar rule.
56 (yylex): Don't return THIS.
57 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
58 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
59 (read_member_functions): Likewise for opname.
60 (read_tilde_fields): Use is_cplus_marker.
61
62 * defs.h (CPLUS_MARKER): Don't define.
63 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
64 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
65 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
66 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
67 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
68
69 * config/i386/tm-i386v4.h: Delete file.
70 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
71 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
72 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
73 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
74 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
75 * config/i386/i386sco5.mt (TM_FILE): Likewise.
76 * config/i386/i386v4.mt (TM_FILE): Likewise.
77 * config/i386/ncr3000.mt (TM_FILE): Likewise.
78
79 2002-10-10 Marko Mlinar <markom@opencores.org>
80
81 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
82 accidentially not commited 2002-10-09
83 * gdbarch.h, gdbarch.c: Re-generate.
84
85 2002-10-09 Marko Mlinar <markom@opencores.org>
86
87 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
88 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
89 * gdbarch.h, gdbarch.c: Re-generate.
90
91 2002-10-08 Petr Sorfa <petrs@caldera.com>
92
93 Revised and re-submitted by John Wolfe <jlw@caldera.com>
94
95 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
96 so we can work on more than one compilation unit at a time. This
97 helps prepare GDB to handle inter-CU die references.
98 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
99 the code to be defined before struct comp_unit_head.
100 (comp_unit_head): Added new members - offset, cu_head,
101 begin_die, next and dwarf2_abbrevs.
102 (dwarf2_abbrevs): Removed single static var; now member of
103 struct comp_unit_head.
104 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
105 members.
106 (psymtab_to_symtab_1): Changed to work with the new
107 struct comp_unit_head.
108 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
109 constructs the dwarf2_abbrevs[] inside the cu_header.
110 (dwarf2_empty_abbrev_table): Now expects a ptr to a
111 dwarf2_abbrev table to clean up.
112 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
113 handling of dwarf2_abbrevs inside the cu_header.
114 (read_partial_die): Now supports the call to the new
115 dwarf2_lookup_abbrev.
116 (read_full_die): Now supports the call to the new
117 dwarf2_lookup_abbrev.
118
119 2002-10-06 Christopher Faylor <cgf@redhat.com>
120
121 * Makefile.in (install-gdbtk): Add missing continuation backslash to
122 insure that shell variables, such as "transformed_name" are propagated
123 to later shell statements in rule.
124
125 2002-10-06 Mark Kettenis <kettenis@gnu.org>
126
127 * config/i386/nm-i386sco.h: Add protection against
128 multiple-inclusion. Include "i386/nm-i386v.h".
129 (REGISTER_U_ADDR): Remove define.
130 (i386_register_u_addr): Remove prototype.
131
132 2002-10-04 Michael Snyder <msnyder@redhat.com>
133
134 * m32r-stub.c (handle_exception): Make sure exception is "trap"
135 before treating it as a single-step event.
136
137 2002-10-03 Adam Fedor <fedor@gnu.org>
138
139 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
140 (objc_demangle): Remove assignment in if statements, Replace
141 free with xfree.
142 (add_msglist): Likewise.
143 (end_msglist): Likewise.
144 (complare_selectors): Likewise.
145 (selectors_info): Likewise.
146 (compare_classes): Likewise.
147 (classes_info): Likewise.
148 (print_object_command): Likewise.
149 (find_objc_msgcall_submethod): Replace PTR with void *.
150 * objc-lang.h: Remove check for __STDC__.
151
152 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
153
154 * ui-out.h (ui_out_field_fmt_int): New prototype.
155 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
156 of field width and alignment.
157 * stack.c (print_frame_info_base): When printing frame level, use
158 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
159 PR gdb/192
160
161 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
162
163 * MAINTAINERS: Add self to Write After Approval list.
164
165 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
166
167 * infcmd.c (interrupt_target_command_wrapper): Delete.
168 (interrupt_target_command): Make non static.
169 (nofp_registers_info): Make static.
170 * stack.c (return_command_wrapper): Delete.
171 (return_command): Make non static.
172
173 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
174
175 * event-top.c (gdb_setup_readline): New function. Code moved from
176 _initialize_event_loop().
177 (_initialize_event_loop): Call gdb_setup_readline().
178
179 2002-10-02 Andrew Cagney <ac131313@redhat.com>
180
181 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
182 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
183 * gdbarch.h, gdbarch.c: Re-generate.
184
185 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
186
187 Fix PR gdb/778
188 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
189 before recursing.
190 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
191 of fill_in_vptr_fieldno.
192
193 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
194
195 * inferior.h (registers_info, stepi_command, nexti_command,
196 continue_command, interrupt_target_command): Export from infcmd.c.
197 * frame.h (args_info, selected_frame_level_changed_hook,
198 return_command): Export from stack.c.
199 * v850ice.c (stepi_command, nexti_command, continue_command): use
200 prototypes from inferior.h.
201 * tracepoint.c (registers_info, args_info, locals_info): Use
202 prototypes from frame.h and inferior.h.
203 * Makefile.in (mi-main.o): Add dependency on frame.h.
204
205 2002-10-02 Andrew Cagney <ac131313@redhat.com>
206
207 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
208 value in register 3 adjusted by ppc_gp0_regnum.
209
210 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
211
212 2002-10-02 Marko Mlinar <markom@opencores.org>
213
214 * MAINTAINERS: Add myself to the Write After Approval list.
215
216 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
217
218 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
219 of the section for the N64 ABI, fixed.
220
221 * config/mips/tm-irix6.h: Include solib.h.
222
223 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
224
225 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
226 GNU operators.
227
228 2002-10-01 Andrew Cagney <ac131313@redhat.com>
229
230 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
231 and that "mi0" syntax has been removed.
232
233 2002-09-30 David Carlton <carlton@math.stanford.edu>
234
235 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
236 * ppc-sysv-tdep.c: #include "gdb_string.h".
237 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
238 pacify GCC.
239
240 2002-10-01 Andrew Cagney <ac131313@redhat.com>
241
242 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
243 "vrsave"'s register number.
244
245 2002-09-30 Andrew Cagney <ac131313@redhat.com>
246
247 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
248 use frame_unwind_signed_register to obtain the PC.
249 (mips_frame_chain): Handle a generic dummy frame.
250 (mips_init_extra_frame_info): When a generic dummy frame, don't
251 re-compute the frame base.
252 (mips_pop_frame): Handle generic dummy frames.
253 (mips_gdbarch_init): When generic dummy frames, set
254 use_generic_dummy_frames, push_dummy_frame to
255 generic_push_dummy_frame, pc_in_call_dummy to
256 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
257 generic_save_dummy_frame_tos.
258
259 2002-09-30 Andrew Cagney <ac131313@redhat.com>
260
261 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
262 against TOP when TOP was explictly set.
263 (generic_push_dummy_frame): Set TOP to zero.
264
265 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
266
267 * event-loop.c (start_event_loop): Rename variable 'result' to
268 'gdb_result', to avoid conflicts with upcoming intepreters changes.
269
270 2002-09-30 Keith Seitz <keiths@redhat.com>
271
272 * gdb-events.sh (selected_thread_changed): New event.
273 * gdb-events.c: Regenerated.
274 * gdb-events.h: Regenerated.
275
276 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
277
278 * MAINTAINERS: Add self to Write After Approval list.
279
280 2002-09-30 Fernando Nasser <fnasser@redhat.com>
281
282 * disasm.c: New file.
283 * disasm.h: New file.
284 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
285 (compare_lines): Ditto.
286 (dump_insns): Ditto.
287 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
288 argument.
289 (do_assembly_only): Ditto.
290 (do_disassembly): Renamed to gdb_disassembly and moved to
291 disasm.c. Sdded uiout argument.
292 * Makefile.in: Add new files. Reorder SFILES list. Update
293 dependencies. Include libgdb.a later in the insight executable.
294
295 2002-09-29 Andrew Cagney <ac131313@redhat.com>
296
297 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
298 bfd/elf64-alpha-fbsd.c.
299
300 2002-09-29 Andrew Cagney <ac131313@redhat.com>
301
302 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
303 i386gnu-tdep.c.
304
305 2002-09-29 Andrew Cagney <ac131313@redhat.com>
306
307 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
308 __FUNCTION__.
309 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
310 function name.
311 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
312 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
313 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
314 (S_msg_sig_post_reply): Ditto.
315
316 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
317
318 * sh-tdep.c (sh_use_struct_convention): Use definition according
319 to ABI.
320 (sh_push_arguments): Store in register with correct endianess.
321 (sh_default_store_return_value): Ditto.
322 (sh_gdbarch_init): Set sizeof long double to 8.
323
324 2002-09-27 Mark Kettenis <kettenis@gnu.org>
325
326 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
327 Fix some whitespace problems.
328
329 2002-09-27 David Carlton <carlton@math.stanford.edu>
330
331 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
332 (mcore-tdep.o): Ditto.
333 (ns32k-tdep.o): Ditto.
334 (ns32knbsd-tdep.o): Ditto.
335 (sh3-rom.o): Ditto.
336 (vax-tdep.o): Ditto.
337 * cris-tdep.c: #include "gdb_string.h"
338 * mcore-tdep.c: Ditto.
339 * ns32k-tdep.c: Ditto.
340 * ns32knbsd-tdep.c: Ditto.
341 * sh3-rom.c: Ditto.
342 * vax-tdep.c: Ditto.
343
344 2002-09-27 David Carlton <carlton@math.stanford.edu>
345
346 * config/djgpp/fnchange.lst: Add entries for
347 gdb/testsuite/gdb.c++/m-static files.
348
349 2002-09-27 Jim Wilson <wilson@redhat.com>
350
351 * MAINTAINERS: Add myself to the Write After Approval list.
352
353 2002-09-26 Martin M. Hunt <hunt@redhat.com>
354
355 * mips-tdep.c (find_proc_desc): Initialize startaddr.
356
357
358 2002-09-26 Andrew Cagney <ac131313@redhat.com>
359
360 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
361 frame.
362
363 2002-09-26 Andrew Cagney <ac131313@redhat.com>
364
365 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
366 (rs6000_struct_return_address): Delete variable.
367 (rs6000_store_struct_return): Update.
368 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
369 deprecated_extract_struct_value_address.
370 (rs6000_frame_align): New function.
371 (rs6000_gdbarch_init): Set frame_align.
372
373 2002-09-26 Andrew Cagney <ac131313@redhat.com>
374
375 From Grace Sainsbury <graces@redhat.com>:
376 * Makefile.in (gdbtk-main.o): New target.
377 (gdb.o): New target.
378 (main_h): Define.
379 (main.o): Update dependencies.
380 (gdb$(EXEEXT)): Add gdb.o.
381 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
382 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
383 (SUBDIR_GDBTK_CLEAN): Set.
384 (install-gdbtk): Install the insight binary.
385 (uninstall-gdbtk): New target.
386 (all-gdbtk, clean-gdbtk): New rule.
387 * top.c (use_windows): Default to zero.
388 * main.c: Include "main.h".
389 (main): Delete.
390 (struct captured_main_args): Delete.
391 (gdb_main): New function.
392 * main.h: New file.
393 * gdb.c: New File.
394
395 2002-09-25 Andrew Cagney <cagney@redhat.com>
396
397 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
398 (frame_map_regnum_to_name): New function.
399 (frame_map_name_to_regnum): New function.
400 * frame.h (frame_map_name_to_regnum): Declare.
401 (frame_map_regnum_to_name): Declare.
402 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
403 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
404 * parse.c: Do not include "builtin-regs.h".
405 (target_map_name_to_register): Delete function.
406 (write_dollar_variable): Use frame_map_name_to_regnum.
407 * parser-defs.h (target_map_name_to_register): Delete declaration.
408 * expprint.c: Include "frame.h".
409 (print_subexp): Use frame_map_regnum_to_name.
410 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
411 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
412
413 2002-09-25 Andrew Cagney <ac131313@redhat.com>
414
415 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
416 wasn't saved, and the next innermost frame is a dummy, return the
417 dummy frame's link register.
418
419 2002-09-24 Jim Blandy <jimb@redhat.com>
420
421 Fix from Paul Breed:
422 * main.c (captured_main): Add a `break' after the case for 'b'.
423
424 2002-09-24 Keith Seitz <keiths@redhat.com>
425
426 * varobj.c (c_type_of_child): Use get_target_type instead
427 of TYPE_TARGET_TYPE.
428
429 2002-09-22 Fernando Nasser <fnasser@redhat.com>
430
431 * source.c (get_current_or_default_source_symtab_and_line): Remove
432 function.
433 (set_default_source_symtab_and_line): New function. Attempts to
434 determine a source file to list lines from if one is not currently
435 defined.
436 (get_current_source_symtab_and_line): Initialize sal.pc and
437 sal.end fields.
438 (set_current_source_symtab_and_line): Mark argument as const.
439 * source.h: Update declarations and comments.
440 * linespec.c (decode_line_1): Replace call to removed routine above.
441 * stack.c (print_frame_info_base): Ditto.
442 * cli/cli-cmds.c (edit_command): Ditto.
443 (list_command): Ditto.
444
445 2002-09-22 Fernando Nasser <fnasser@redhat.com>
446
447 * source.c (get_current_or_default_source_symtab_and_line): Initialize
448 sal.pc and sal.end fields.
449 (get_current_or_default_source_symtab_and_line): Ditto.
450 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
451 so we do not cause a new source symtab to be searched for (reverting an
452 unintentional change from the 2002-09-20 patch).
453 * scm-lang.c (scm_unpac): Ditto.
454
455 2002-09-21 Andrew Cagney <cagney@redhat.com>
456
457 * complaints.c (symfile_explanations): Remove new-line from
458 ``isolated_message''.
459 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
460 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
461
462 2002-09-20 Nick Clifton <nickc@redhat.com>
463
464 * NEWS: Announce that V850EA ISA is no longer supported.
465 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
466
467 2002-09-20 David Carlton <carlton@math.stanford.edu>
468
469 * Makefile.in (c-lang.o): Correct dependencies.
470 (utils.o): Gather dependencies.
471 (charset.o): Move.
472 * c-lang.c: #include "gdb_string.h"
473
474 2002-09-20 Fernando Nasser <fnasser@redhat.com>
475
476 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
477 * cli/cli-cmds.c (list_command): New function. Implements the new
478 cli edit command.
479 (_init_cli_cmds): Add new command definition.
480 * gdb.1: Document edit command.
481 * doc/gdb.texinfo: Document edit command.
482
483 2002-09-20 Fernando Nasser <fnasser@redhat.com>
484
485 * source.c: Make global variables current_source_symtab and
486 current_source_line static.
487 (list_command): Moved to cli/cli-cmds.c.
488 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
489 (get_first_line_listed): New accessor function.
490 (get_lines_to_list): New accessor function.
491 (get_current_source_symtab_and_line): New function. Retrieves the
492 position in the source code that we consider current.
493 (get_current_or_default_source_symtab_and_line): New function.
494 Like the above but attempts to determine a default position if one
495 is not currently defined.
496 (set_current_source_symtab_and_line): New function. Sets the source
497 code position considered current and returns the previously set one.
498 (clear_current_source_symtab_and_line): Reset stored information about
499 a current source line.
500 (_initialize_source): Remove registration for the "list" command and
501 its alias.
502 * source.h: Add declarations for the new functions above.
503 * symtab.h: Remove declarations for the global variables mentioned
504 above.
505 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
506 obtain current source line.
507 * linespec.c (decode_line_1): Ditto.
508 * macroscope.c (default_macro_scope): Ditto.
509 * scm-lang.c (scm_unpac): Ditto.
510 * stack.c (print_frame_info_base): Ditto.
511 * symfile.c (clear_symtab_users): Ditto.
512 * symtab.c (decode_line_spec): Ditto.
513 * cli/cli-cmds.c (list_command): Moved here from source.c.
514 (ambiguous_line_spec): Moved here from source.c.
515 (_init_cli_cmds): Add definition for "list" and its alias.
516 * Makefile.in: Update dependencies.
517
518 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
519
520 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
521 with what gcc thinks is correct.
522
523 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
524
525 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
526 multiple register push instruction.
527
528 2002-09-19 Jim Blandy <jimb@redhat.com>
529
530 Add support for distinct host and target character sets.
531 * charset.c, charset.h: New files.
532 * c-exp.y: #include "charset.h".
533 (yylex): Convert character and string literals to the target
534 character set, before returning them as the semantic value of the
535 token.
536 * c-lang.c: #include "charset.h".
537 (c_emit_char): Use charset-specific methods to recognize
538 characters with backslash escape forms, to decide which characters
539 to print literally and which to print using numeric escape
540 sequences, and to convert target characters to host characters
541 before printing.
542 * utils.c: #include "charset.h".
543 (no_control_char_error): New function.
544 (parse_escape): Use charset-specific methods to recognize
545 backslash escapes, parse `control character' notation, and convert
546 characters from the host character set to the target character set.
547 * configure.in: Set the default host character set.
548 Check where to find iconv, and what its argument types might be.
549 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
550 * Makefile.in (SFILES): List charset.c.
551 (COMMON_OBS): List charset.o.
552 (charset.o): New rule.
553 (charset_h): New header dependency variable.
554 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
555 (LIBICONV): New variable, set by configure.
556 (CLIBS): Include $(LIBICONV) here.
557 * aclocal.m4, config.in, configure: Regenerated.
558
559 2002-09-19 Joel Brobecker <brobecker@gnat.com>
560
561 * ada-exp.y: Add missing semicolons to end rules. Fixes a
562 bison 1.35 warning.
563
564 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
565
566 * gdb_mbuild.sh: New file.
567
568 2002-09-19 Andrew Cagney <ac131313@redhat.com>
569
570 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
571
572 2002-09-18 Andrew Cagney <ac131313@redhat.com>
573
574 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
575 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
576 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
577 valops.c, value.h: Revert previous change.
578
579 2002-09-18 Michael Snyder <msnyder@redhat.com>
580
581 Preliminary support for Objective-C:
582 * defs.h (language_objc): New enum value.
583 (puts_filtered_tabular): Declaration only, exported from utils.c.
584 (skip_quoted): Delete, declared in completer.h.
585 * c-exp.y: Include completer.h.
586 * p-exp.y: Ditto.
587 * jv-exp.y: Ditto.
588 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
589 New operator enum values.
590 * language.h (CAST_IS_CONVERSION): Test for language_objc.
591 * language.c (binop_result_type): Handle language_objc case.
592 (integral_type, character_type, string_type, boolean_type,
593 structured_type, binop_type_check): Ditto.
594 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
595 (struct objc_specific): Add to general_symbol_info.
596 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
597 (SYMBOL_DEMANGLED_NAME): Handle objc case.
598 * parser-defs.h (struct objc_class_str): New struct type.
599 (start_msglist, end_msglist, add_msglist): Declaration only,
600 exported from objc-lang.c.
601 * value.h (value_of_local, value_nsstring,
602 call_function_by_hand_expecting_type): Exported from valops.c.
603 * valops.c (find_function_addr): Export.
604 (call_function_by_hand_expecting_type): New function.
605 (value_of_local): New function.
606 * symfile.c (init_filename_language_table): Add ".m" extension
607 for Objective-C.
608 * utils.c (puts_filtered_tabular): New function.
609 (fprintf_symbol_filtered): Add objc demangling support (disabled).
610 (set/show demangle): Extend help-string to refer to ObjC.
611 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
612 * stabsread.c (symbol_reference_defined): Objective-C symbols
613 may contain colons: make allowances when scanning stabs strings
614 for colons.
615 (objc_find_colon): New function.
616 * printcmd.c (address_info): If language == objc then print
617 "self" instead of "this".
618 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
619 OP_NSSTRING, and OP_SELF.
620 (prefixify_subexp): Ditto.
621 * source.c (print_source_lines): Mention objc in comment.
622 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
623 method names.
624
625 2002-09-18 Andrew Cagney <ac131313@redhat.com>
626
627 * complaints.h: Update copyright.
628 (struct complaints): Declare.
629 (struct complaint): Make `message' constant.
630 (internal_complaint): Declare.
631 (complaint): Declare.
632 (complaint_root): Delete declaration.
633 (symfile_complaints): Delete declaration.
634 (struct complaints): Add opaque declaration.
635 (clear_complaints): Add a complaints parameter.
636 * complaints.c: Update copyright.
637 (enum complaint_series): Define.
638 (complaint_root): Delete.
639 (struct complaints): Define.
640 (complaint_sentinel, symfile_complaint_book): New variables.
641 (symfile_explanations, symfile_complaints): New variables.
642 New variables.
643 (get_complaints): New function.
644 (vcomplaint): New function.
645 (complaint): New function.
646 (internal_complaint): New function.
647 (complain): Call vcomplain with symfile_complaint.
648 (clear_complaints): Rewrite.
649 (_initialize_complaints): Use add_setshow_command.
650 * Makefile.in (complaints.o): Update dependencies.
651 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
652 to call to clear_complaints.
653 (new_symfile_objfile, reread_symbols): Ditto.
654 (oldsyms_complaint): Delete.
655 (empty_symtab_complaint, unknown_option_complaint): Delete.
656 (free_named_symtabs): Use complaint instead of complain.
657
658 2002-09-18 Michael Snyder <msnyder@redhat.com>
659
660 Contributed by Apple Computer, Inc. Merged with current sources
661 by Adam Fedor <fedor@doc.com> [cagney].
662
663 * objc-lang.c: First clean-up round: comments, indentation.
664 * objc-lang.h: Ditto.
665 * objc-lang.y: Ditto.
666
667 2002-09-18 Andrew Cagney <ac131313@redhat.com>
668
669 * maint.c (maintenance_internal_error): Print the parameter as the
670 error message.
671 (maintenance_internal_warning): New function.
672 (_initialize_maint_cmds): Add command `maint internal-warning'.
673
674 * defs.h (internal_warning, internal_vwarning): Declare.
675 * utils.c (struct internal_problem): Define.
676 (internal_vproblem): New function.
677 (internal_warning): New function.
678 (internal_vwarning): New function.
679 (internal_warning_problem, internal_error_problem): New variables.
680 (internal_verror): Just call internal_vproblem.
681
682 2002-09-18 Michael Snyder <msnyder@redhat.com>
683
684 * objc-lang.c: New file, support for Objective-C.
685 Preliminary check-in, not yet integrated into gdb.
686 * objc-lang.h: New file.
687 * objc-exp.y: New file.
688
689 2002-09-18 Andrew Cagney <ac131313@redhat.com>
690
691 * infrun.c (signal_stop_update): Convert definition to ISO C.
692 (signal_print_update): Ditto.
693 (signal_pass_update): Ditto.
694 * inflow.c (terminal_save_ours): Ditto.
695
696 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
697 comments.
698
699 * config/djgpp/fnchange.lst: Handle name clashes between
700 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
701 bfd/coff-tic80.c.
702
703 * i386-linux-tdep.h: Fix tipo.
704
705 2002-09-18 Adam Fedor <fedor@gnu.org>
706
707 * MAINTAINERS: Add myself to the Write After Approval list.
708
709 2002-09-18 Jim Blandy <jimb@redhat.com>
710
711 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
712 texthigh and textlow to reader-specific structs caused
713 objfile_relocate to miss them. This is fixable, but the work that
714 the change was supposed to prepare GDB for never got done anyway.
715
716 2002-09-18 David Carlton <carlton@math.stanford.edu>
717
718 * MAINTAINERS: Alphabetize Write After Approval list.
719
720 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
721
722 Fix PR gdb/709
723 * values.c (value_static_field): Call read_var_value.
724
725 2002-09-18 Andrew Cagney <ac131313@redhat.com>
726
727 * valops.c (hand_function_call): Align the initial stack pointer
728 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
729 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
730 return value.
731 * mips-tdep.c (mips_frame_align): New function.
732 (mips_gdbarch_init): Set frame_align.
733 * gdbarch.sh (FRAME_ALIGN): New method.
734 * gdbarch.h, gdbarch.c: Re-generate.
735
736 2002-09-18 Michal Ludvig <mludvig@suse.cz>
737
738 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
739 registers.
740
741 2002-09-17 Andrew Cagney <ac131313@redhat.com>
742
743 * NEWS: Mention that MIPS $fp behavior changed.
744 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
745 reference to FP_REGNUM.
746 (mipsnbsd_cannot_store_register): Ditto.
747 * mips-linux-nat.c: Update copyright.
748 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
749 (mips_linux_cannot_store_register): Ditto.
750 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
751 * config/mips/tm-mips.h: Update copyright.
752 (FP_REGNUM): Delete macro.
753 (MIPS_REGISTER_NAMES): Replace "fp" with "".
754 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
755 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
756 (mips_r3041_reg_names, mips_r3051_reg_names)
757 (mips_r3081_reg_names): Replace "fp" with "".
758 Fix PR gdb/480.
759
760 2002-09-17 Theodore A. Roth <troth@verinet.com>
761
762 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
763 generic_read_register_dummy() (PR gdb/703).
764 (avr_push_return_address): #if 0 out unused vars.
765 (avr_gdbarch_init): Enable use of avr_push_return_address().
766
767 2002-09-17 Michael Snyder <msnyder@redhat.com>
768
769 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
770 RTE will take care of it.
771
772 2002-09-17 Andrew Cagney <ac131313@redhat.com>
773
774 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
775 invalid, return SP_REGNUM.
776
777 2002-09-17 Michael Snyder <msnyder@redhat.com>
778
779 * mips-tdep.c (mips_pop_frame): Read saved values of floating
780 point registers without sign extension.
781
782 2002-09-17 Andrew Cagney <cagney@redhat.com>
783
784 * blockframe.c (deprecated_read_register_dummy): Rename
785 generic_read_register_dummy.
786 * frame.c (frame_unwind_signed_register): New function.
787 (frame_unwind_unsigned_register): New function.
788 * frame.h (frame_unwind_signed_register): Declare.
789 (frame_unwind_unsigned_register): Declare.
790 (deprecated_read_register_dummy): Rename
791 generic_read_register_dummy.
792
793 * h8300-tdep.c (h8300_frame_chain): Update.
794 (h8300_frame_saved_pc): Update.
795 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
796 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
797 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
798 (s390_frame_chain): Update.
799 * v850-tdep.c (v850_find_callers_reg): Update.
800 (v850_frame_saved_pc): Update.
801 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
802 (m32r_find_callers_reg): Update.
803 (m32r_frame_saved_pc): Update.
804 * sh-tdep.c (sh_find_callers_reg): Update.
805 (sh64_get_saved_pr): Update.
806 (sh_init_extra_frame_info): Update.
807 (sh_init_extra_frame_info): Update.
808 (sh64_init_extra_frame_info): Update.
809 (sh64_init_extra_frame_info): Update.
810 * mcore-tdep.c (mcore_find_callers_reg): Update.
811 (mcore_frame_saved_pc): Update.
812 (mcore_init_extra_frame_info): Update.
813 * i386-tdep.c (i386_frame_saved_pc): Update.
814 * ia64-tdep.c (ia64_frame_saved_pc): Update.
815 (ia64_init_extra_frame_info): Update.
816 (ia64_init_extra_frame_info): Update.
817 * d10v-tdep.c (d10v_frame_saved_pc): Update.
818 * cris-tdep.c (cris_init_extra_frame_info): Update.
819 * avr-tdep.c (avr_frame_chain): Update.
820 (avr_init_extra_frame_info): Update.
821 (avr_frame_saved_pc): Update.
822 * arm-tdep.c (arm_find_callers_reg): Update.
823 (arm_init_extra_frame_info): Update.
824 (arm_frame_saved_pc): Update.
825
826 2002-09-17 Tom Tromey <tromey@redhat.com>
827
828 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
829 is "'".
830
831 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
832
833 * MAINTAINERS: Remove "non multi-arched" text from h8300.
834 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
835 NEXT_PROLOGUE_INSN.
836 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
837 NEXT_PROLOGUE_INSN.
838
839 2002-09-16 Joel Brobecker <brobecker@gnat.com>
840
841 * osfsolib.c: Remove file, replaced by solib-osf.c.
842 * Makefile.in: Remove compilation rules for osfsolib.c.
843
844 2002-09-16 David Carlton <carlton@math.stanford.edu>
845
846 * cp-valprint.c (cp_print_class_method): Correct args to
847 check_stub_method_group.
848
849 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
850
851 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
852 `set architecture'. Unify naming convention of functions.
853 (h8300_skip_prologue): Improve prologue analysis.
854 (h8300_push_arguments): Rewritten to more closely match GCC's
855 bizarre argument-passing behavior, along with the comment describing
856 said behavior.
857 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
858 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
859 sim, remote-e7000.c, remote-hms.c and remote.c
860
861 2002-09-15 Mark Kettenis <kettenis@gnu.org>
862
863 * i386-tdep.c (gdb_print_insn_i386): Removed.
864 (i386_print_insn): New function.
865 (i386_gdbarch_init): Set print_insn to i386_print_insns.
866 (_initialize_i386_tdep): Don't initialize tm_print_insn and
867 tm_print_insn_info.
868
869 2002-09-14 Mark Kettenis <kettenis@gnu.org>
870
871 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
872 zero.
873
874 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
875
876 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
877 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
878 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
879
880 2002-09-13 Christopher Faylor <cgf@redhat.com>
881
882 * win32-nat.c (child_create_inferior): Honor 'tty' command.
883
884 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
885
886 * gdbtypes.c (check_stub_method): Make static.
887 (check_stub_method_group): New function.
888 * gdbtypes.h: Update prototypes.
889 * cp-support.c: New file.
890 * cp-support.h: New file.
891
892 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
893 (update_method_name_from_physname): New function.
894 (read_member_functions): Correct method names for operators
895 and v3 constructors/destructors. Separate v2 constructors and
896 destructors.
897 * Makefile.in (stabsread.o): Update dependencies.
898 (SFILES): Add cp-support.c.
899 (COMMON_OBS): Add cp-support.o.
900 (cp_support_h, cp-support.o): Add.
901
902 * cp-valprint.c (cp_print_class_method): Call
903 check_stub_method_group instead of check_stub_method. Remove
904 extraneous QUITs.
905 * p-valprint.c (pascal_object_print_class_method): Likewise.
906 * valops.c (search_struct_method): Likewise.
907 (find_method_list, value_struct_elt_for_reference): Likewise.
908
909 2002-09-13 Andrew Cagney <cagney@redhat.com>
910
911 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
912 * gdbarch.h, gdbarch.c: Regenerate.
913
914 2002-09-13 Andrew Cagney <ac131313@redhat.com>
915
916 * frame.c (find_saved_register): Delete function.
917 * frame.h (find_saved_register): Delete declaration.
918 Fix PR gdb/631.
919
920 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
921
922 * mips-tdep.c (read_next_frame_reg): Re-hack using
923 frame_register_unwind.
924
925 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
926
927 * mips-tdep.c (mips_get_saved_register): Re-hack using
928 frame_register_unwind.
929
930 2002-09-12 Joel Brobecker <brobecker@gnat.com>
931
932 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
933 vector. Will be useful for Interix.
934 * gdbarch.h, gdbarch.c: Regenerate.
935
936 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
937 name of the malloc function by NAME_OF_MALLOC.
938
939 2002-09-12 Joel Brobecker <brobecker@gnat.com>
940
941 * value.h (find_function_in_inferior): Add const keyword to
942 one of the parameters. Allows us to invoke this function with
943 a const char *.
944 * valops.c (find_function_in_inferior): Likewise.
945
946 2002-09-12 Joel Brobecker <brobecker@gnat.com>
947
948 * exec.c (xfer_memory): Fix compilation warning with old versions
949 of GCC.
950 * tracepoint.c (trace_find_tracepoint_command): Likewise.
951
952 2002-09-12 David Carlton <carlton@math.stanford.edu>
953
954 * symtab.h: Run through gdb_indent.h.
955 Add 2002 to Copyright year list.
956
957 2002-09-12 Alan Modra <amodra@bigpond.net.au>
958
959 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
960 mach constants.
961 * MAINTAINERS: Add myself to write after approval list.
962
963 2002-09-11 J. Brobecker <brobecker@gnat.com>
964
965 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
966
967 2002-09-11 J. Brobecker <brobecker@gnat.com>
968
969 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
970 Interix.
971
972 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
973
974 * procfs.c (do_detach): Clear current signal, not just fault.
975 Corrects problem with breakpoint trap signal leaking to detached
976 process on Tru64.
977
978 2002-09-10 Michael Snyder <msnyder@redhat.com>
979
980 * buildsym.c (finish_block): Protect against null pointer.
981
982 2002-09-10 Andrew Cagney <cagney@redhat.com>
983
984 * infcmd.c (default_print_registers_info): Send all output to
985 ``file'' instead of ``gdb_stdout''.
986
987 2002-09-10 Michael Snyder <msnyder@redhat.com>
988
989 * mips-tdep.c (mips_extract_struct_value_address): Make val a
990 LONGEST, and use signed register read (addresses are sign-
991 extended for mips).
992
993 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
994
995 * event-loop.c (gdb_do_one_event): Make public.
996 * event-loop.h (gdb_do_one_event): Declare.
997
998 2002-09-10 Jeff Law <law@redhat.com>
999
1000 * infttrace.c (child_resume): Simplify and rework to avoid
1001 TT_PROC_CONTINUE.
1002
1003 2002-09-09 Fred Fish <fnf@intrinsity.com>
1004
1005 * printcmd.c (print_scalar_formatted): "len" is the number of
1006 target bytes, NOT the number of target bits.
1007
1008 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1009
1010 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1011 * top.c (init_main): Set rl_terminal_name.
1012
1013 2002-09-08 Aidan Skinner <aidan@velvet.net>
1014
1015 * ada-lang.c (ada_array_bound, ada_type_match,
1016 _initialize_ada_language): Fix K&R definitions.
1017 * ada-tasks.c (get_current_task): Fix K&R definitions.
1018 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1019
1020 2002-09-07 Christopher Faylor <cgf@redhat.com>
1021
1022 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1023 Add XP.
1024
1025 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1026
1027 * i386-tdep.c (i386_register_virtual_type,
1028 i386_register_convertible, i386_register_convert_to_virtual,
1029 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1030 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1031 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1032 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1033 Don't set push_arguments twice.
1034
1035 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1036 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1037 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1038 sigtramp_end to NULL.
1039 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1040 defines.
1041 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1042
1043 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1044 whitespace.
1045
1046 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1047 * gdbarch.h, gdbarch.c: Re-generate.
1048 * blockframe.c (find_pc_sect_partial_function): Convert to use
1049 SIGTRAMP_START_P predicate.
1050
1051 2002-09-05 Michael Snyder <msnyder@redhat.com>
1052
1053 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1054 generic_dummy_frame method and old method. Also distinguish
1055 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1056 (arm_extract_return_value): Use new regcache method.
1057
1058 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1059 adjustment that doesn't conform to the ABI.
1060 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1061 saved regcache, not from current regcache.
1062
1063 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1064
1065 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1066 * README: Update.
1067
1068 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1069
1070 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1071 if arm_apcs_32 is false.
1072
1073 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1074
1075 GDB 5.3 branch created.
1076
1077 2002-09-03 Theodore A. Roth <troth@verinet.com>
1078
1079 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1080 generic_unwind_get_saved_register.
1081
1082 2002-09-03 David Carlton <carlton@math.stanford.edu>
1083
1084 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1085 argument (PR gdb/653). Update call to smash_to_method_type.
1086 (read_structure_scope): Update call to dwarf2_add_member_fn.
1087
1088 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1089
1090 * x86-64-linux-tdep.c: Include gdb_string.h
1091 * x86-64-linux-nat.c: Ditto.
1092
1093 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1094
1095 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1096 when YYDEBUG is set to 1.
1097 * c-exp.y: Likewise.
1098 * f-exp.y: Likewise.
1099 * jv-exp.y: Likewise.
1100 * m2-exp.y: Likewise.
1101 * p-exp.y: Likewise.
1102
1103 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1104
1105 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1106 dependency list.
1107 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1108 solib_svr4_fetch_link_map_offsets to
1109 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1110 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1111 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1112 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1113 solib-svr4.o, and solib-legacy.o.
1114 * config/i386/tm-nbsd.h: Include solib.h.
1115
1116 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1117
1118 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1119 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1120 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1121 comment noting that this needs its own target configuration.
1122 * config/i386/nbsd.mt: New file.
1123 * config/i386/nbsdaout.mt: Remove.
1124 * config/i386/nbsdelf.mt: Ditto.
1125 * config/i386/tm-nbsdaout.h: Ditto.
1126
1127 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1128
1129 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1130 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1131 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1132 tdep->sigtramp_end.
1133 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1134 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1135 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1136
1137 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1138
1139 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1140 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1141 * i386-tdep.h (i386bsd_init_abi): New prototype.
1142 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1143 function declaration.
1144 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1145 for NetBSD-a.out or NetBSD-ELF.
1146 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1147 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1148 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1149 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1150 and nbsd-tdep.h.
1151 (i386nbsd_pc_in_sigtramp): New function.
1152 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1153 i386nbsd_pc_in_sigtramp.
1154 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1155 and i386nbsdelf_init_abi OS ABI handlers.
1156 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1157 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1158
1159 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1160
1161 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1162 registers if the target really has them.
1163
1164 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1165
1166 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1167 than nbsd-tdep.h.
1168
1169 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1170
1171 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1172 list.
1173 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1174 (alphanbsd_skip_sigtramp_frame): New functions.
1175 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1176 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1177 to alphanbsd_sigcontext_addr.
1178
1179 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1180
1181 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1182 list.
1183 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1184 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1185 nbsd_pc_in_sigtramp.
1186 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1187 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1188 * nbsd-tdep.c: Include gdb_string.h.
1189 (nbsd_pc_in_sigtramp): New function.
1190 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1191 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1192 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1193 ppcnbsd_pc_in_sigtramp.
1194 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1195 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1196 shnbsd_pc_in_sigtramp.
1197 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1198 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1199 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1200
1201 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1202
1203 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1204 watchpoints to NULL.
1205 (insert_breakpoints): set val field of watchpoints if NULL.
1206
1207
1208 2002-08-29 Jim Blandy <jimb@redhat.com>
1209
1210 * symtab.c (lookup_symbol_aux): In the cases where we find a
1211 minimal symbol of an appropriate name and use its address to
1212 select a symtab to read and search, use `name' (as passed to us)
1213 as the demangled name when searching the symtab's global and
1214 static blocks, not the minsym's name.
1215
1216 2002-08-29 Keith Seitz <keiths@redhat.com>
1217
1218 * stack.c (print_frame_info_base): Always set current_source_symtab
1219 and current_source_line.
1220
1221 2002-08-29 Donn Terry <donnte@microsoft.com>
1222
1223 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1224
1225 2002-08-28 Keith Seitz <keiths@redhat.com>
1226
1227 * stack.c (select_frame): Add FIXME concerning selected-frame
1228 events.
1229 (select_frame_command): Send selected-frame-level-changed
1230 event notification, but only if the level actually changed.
1231 (up_silently_base): Add selected-frame-level-changed event
1232 notification.
1233 (down_silently_base): Likewise.
1234
1235 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1236
1237 * Makefile.in: Update dependencies for all gdb/*.c files.
1238
1239 2002-08-27 Tom Tromey <tromey@redhat.com>
1240
1241 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1242 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1243 Update dependencies.
1244 * i387-tdep.c: Include gdb_string.h.
1245 * osabi.c: Likewise.
1246 * i386-linux-nat.c: Likewise.
1247 * lin-lwp.c: Likewise.
1248 * ax-gdb.c: Likewise.
1249 * signals/signals.c: Likewise.
1250 * jv-valprint.c: Likewise.
1251 * p-lang.c: Likewise.
1252 * c-valprint.c: Likewise.
1253 * cp-abi.c: Likewise.
1254
1255 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1256
1257 * cli/cli-script.h (copy_command_lines): Export.
1258 * breakpoint.c: Include cli/cli-script.h.
1259 * Makefile.in (breakpoint.o): Update dependencies.
1260
1261 2002-08-26 Michael Snyder <msnyder@redhat.com>
1262
1263 * breakpoint.c (insert_breakpoints): Protect all references
1264 to 'process_warning'. Shorten long lines.
1265
1266 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1267
1268 * cli/cli-script.c (copy_command_lines): New function.
1269 * defs.h (copy_command_lines): Export.
1270 * testsuite/gdb.base/commands.exp: New tests for commands
1271 attached to a temporary breakpoint, and for commands that
1272 delete the breakpoint they are attached to.
1273
1274 2002-08-26 Michael Snyder <msnyder@redhat.com>
1275
1276 * breakpoint.c (bpstat_stop_status): Instead of copying the
1277 pointer to the breakpoint commands struct, make a new copy
1278 of the struct and point to that.
1279 (bpstat_clear): Free the commands struct.
1280 (bpstat_clear_actions): Free the commands struct.
1281 (bpstat_do_actions): Free the command actions. Also execute
1282 the local cleanups, instead of deleting them.
1283 (delete_breakpoint): Leave the commands field of the bpstat
1284 chain alone -- it will be freed later.
1285
1286 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1287
1288 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1289 deleted in 2002-08-20 commit. This function is still used by
1290 ppc-linux-nat.c.
1291
1292 2002-08-26 Keith Seitz <keiths@redhat.com>
1293
1294 * gdb-events.sh: Add selected-frame-level-changed event.
1295 * gdb-events.c: Regenerated.
1296 * gdb-events.h: Regenerated.
1297
1298 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1299
1300 Fix PR gdb/393:
1301 * inflow.c (terminal_save_ours): New function to save terminal
1302 settings.
1303 * inferior.h (terminal_save_ours): Declare.
1304 * target.c (debug_to_terminal_save_ours): New function.
1305 (cleanup_target): Defaults to_terminal_save_ours.
1306 (update_current_target): Inherit to_terminal_save_ours.
1307 (setup_target_debug): Set to_terminal_save_ours.
1308 * target.h (target_terminal_save_ours): New to save terminal settings.
1309 (target_ops): New member to_terminal_save_ours.
1310 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1311 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1312 * inftarg.c (init_child_ops): Likewise.
1313 * m3-nat.c (init_m3_ops): Likewise.
1314 * procfs.c (init_procfs_ops): Likewise.
1315 * wince.c (init_child_ops): Likewise.
1316 * win32-nat.c (init_child_ops): Likewise.
1317 * sol-thread.c (init_sol_thread_ops): Likewise.
1318
1319 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1320
1321 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1322 use regcache_* functions.
1323 (i386_gdbarch_init): Set store_return_value instead of
1324 deprecated_store_return_value.
1325
1326 * regcache.c (regcache_raw_write_signed,
1327 regcache_raw_write_unsigned): New functions.
1328 * regcache.h (regcache_raw_write_signed,
1329 regcache_raw_write_unsigned): New prototypes.
1330
1331 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1332
1333 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1334 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1335 source file dependencies. Cleanup corresponding generator rules.
1336
1337 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1338
1339 * regcache.h (register_offset_hack): Declare.
1340 (regcache_cooked_read_using_offset_hack): Declare.
1341 (regcache_cooked_write_using_offset_hack): Declare.
1342
1343 * regcache.c (register_offset_hack): New function.
1344 (regcache_cooked_read_using_offset_hack): New function.
1345 (regcache_cooked_write_using_offset_hack): New function.
1346 (regcache_dump): Check that the registers, according to their
1347 offset, are packed hard against each other.
1348 (cooked_xfer_using_offset_hack): New function.
1349
1350 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1351
1352 * regcache.c (struct regcache_descr): Add field register_type.
1353 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1354 in as a parameter
1355 (init_regcache_descr): Initialize register_type. Pass the descr
1356 to init_legacy_regcache_descr. Use register_type instead of
1357 REGISTER_VIRTUAL_TYPE.
1358 (register_type): New function.
1359 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1360 * regcache.h (register_type): Declare.
1361
1362 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1363
1364 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1365 instead of deprecated_store_return_value. Fix fallout from
1366 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1367
1368 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1369
1370 * regcache.c (max_register_size): New function.
1371 (init_legacy_regcache_descr): Ensure that max_register_size is
1372 large enough for REGISTER_VIRTUAL_SIZE.
1373 * regcache.h (max_register_size): Declare.
1374
1375 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1376
1377 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1378 store_return_value.
1379 (e500_extract_return_value): Change type of valbuf pointer to
1380 void.
1381
1382 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1383
1384 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1385 workaround.
1386
1387 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1388 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1389 long long) to prevent compiler warning on 64-bit systems.
1390
1391 2002-08-23 Andrew Cagney <cagney@redhat.com>
1392
1393 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1394 (DEPRECATED_STORE_RETURN_VALUE): New method.
1395 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1396 * gdbarch.h, gdbarch.c: Re-generate.
1397
1398 * values.c (set_return_value): Pass current_regcache to
1399 STORE_RETURN_VALUE.
1400 * arch-utils.h (legacy_store_return_value): Declare.
1401 * arch-utils.c (legacy_store_return_value): New function.
1402 (legacy_extract_return_value): Update parameters.
1403
1404 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1405 STORE_RETURN_VALUE.
1406 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1407 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1408 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1409 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1410 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1411 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1412 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1413 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1414 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1415 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1416
1417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1418 * i386-tdep.c (i386_extract_return_value): Update.
1419 * arch-utils.c (legacy_extract_return_value): Update.
1420 * frv-tdep.c (frv_gdbarch_init): Update.
1421 * cris-tdep.c (cris_gdbarch_init): Update.
1422 * d10v-tdep.c (d10v_gdbarch_init): Update.
1423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1424 * m68k-tdep.c (m68k_gdbarch_init): Update.
1425 * mcore-tdep.c (mcore_gdbarch_init): Update.
1426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1427 * s390-tdep.c (s390_gdbarch_init): Update.
1428 * sparc-tdep.c (sparc_gdbarch_init): Update.
1429 * sh-tdep.c (sh_gdbarch_init): Update.
1430 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1431 * v850-tdep.c (v850_gdbarch_init): Update.
1432 * avr-tdep.c (avr_gdbarch_init): Update.
1433 * ia64-tdep.c (ia64_gdbarch_init): Update.
1434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1435 * vax-tdep.c (vax_gdbarch_init): Update.
1436 * alpha-tdep.c (alpha_gdbarch_init): Update.
1437 * arm-tdep.c (arm_gdbarch_init): Update.
1438 * mips-tdep.c (mips_gdbarch_init): Update.
1439 * i386-tdep.c (i386_gdbarch_init): Update.
1440
1441 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1442
1443 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1444 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1445
1446 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1447
1448 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1449 problems.
1450
1451 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1452
1453 * infrun.c (handle_inferior_event): Move a comment outside of a
1454 function call, in order to avoid indent reformatting this part
1455 of the code in an unreadable way.
1456
1457 2002-08-23 Grace Sainsbury <graces@redhat.com>
1458
1459 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1460 when breakpoints fail. Move general breakpoint error messages to
1461 insert_breakpoints.
1462 * breakpoint.c (insert_breakpoints): Change warnings when
1463 breakpoints are nto inserted to specify the type. Remove call to
1464 memory_error when hardware breakpoints can't be inserted. Remove
1465 multiple calls to warning so all messages are sent to the user at
1466 once.
1467 (delete_breakpoints): Make insert error messsages more explicit.
1468
1469 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1470
1471 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1472 gdbserver/ChangeLog.
1473
1474 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1475
1476 * i386-tdep.c: Include "objfiles.h".
1477 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1478 skip_trampoline_code.
1479 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1480 (CPLUS_MARKER): Define to '.'.
1481
1482 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1483 member.
1484 (linux_corefile_thread_callback): Increase args->num_notes.
1485 (linux_make_note_section): Initialize thread_args.num_notes, and
1486 use it to determine whether notes for any threads were created.
1487
1488 2002-08-23 Donn Terry <donnte@microsoft.com>
1489
1490 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1491 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1492 and PCUNKILL.
1493 (write_with_trace): Conditionalize out the switch branch handling
1494 PCSHOLD if the corresponding macro is not defined. Likewise for
1495 PRSABORT and PRSTOP.
1496 This change will be needed by the Interix port.
1497
1498 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1499
1500 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1501 write_register wherever possible instead of manipulating the
1502 register bytes directly.
1503 Assign VALUE_CONTENTS to a variable and use that.
1504 The GPR numbers are now dependent on the architecture.
1505
1506 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1507
1508 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1509 ev_offset fields.
1510 (skip_prologue): Add support for BookE/e500 instructions.
1511 (e500_extract_return_value): New function.
1512 (frame_get_saved_regs): Add support for saving ev registers and
1513 pseudo gpr's.
1514 (e500_store_return_value): New function.
1515 (rs6000_gdbarch_init): Move up default intializations of
1516 deprecated_extract_return_value and store_return_value. Overwrite
1517 init of store_return_value with e500 specific version.
1518 Set extract_return_value for e500.
1519
1520 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1521
1522 * blockframe.c (generic_call_dummy_register_unwind): Use
1523 regcache_cooked_read to catch cases in which the variable is
1524 stored in a pseudo register.
1525
1526 2002-08-22 Andrew Cagney <cagney@redhat.com>
1527
1528 * NEWS: Mention that the i960 has been made obsolete.
1529 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1530 i960-tdep.c
1531 (remote-nrom.o): Obsolete target.
1532 (remote-nindy.o, i960-tdep.o): Ditto.
1533 * remote-nrom.c: Make file obsolete.
1534 * remote-nindy.c, remote-vx960.c: Ditto.
1535 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1536 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1537 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1538 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1539 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1540 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1541 i960-*-vxworks* obsolete.
1542 * MAINTAINERS: Note that the i960 is obsolete.
1543
1544 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1545
1546 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1547 detach to allow reinitialization.
1548
1549 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1550
1551 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1552 attempt).
1553
1554 2002-08-22 Jim Blandy <jimb@redhat.com>
1555
1556 * coffread.c (coff_symfile_read): Don't try to read the line
1557 number table from disk if the image file doesn't have a symbol
1558 table; we'll never actually look at the info anyway, and Windows
1559 ships DLL's with bogus file offsets for the line number data.
1560
1561 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1562
1563 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1564 an e500 executable.
1565
1566 2002-08-21 Michael Snyder <msnyder@redhat.com>
1567
1568 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1569 (MSYMBOL_SIZE): Replace macro with function.
1570 (DEFAULT_MIPS_TYPE): Delete unused macro.
1571 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1572 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1573
1574 2002-08-21 Jim Blandy <jimb@redhat.com>
1575
1576 * valops.c (value_cast): Simplify and correct logic for doing a
1577 static cast from a pointer to a base class to a pointer to a
1578 derived class.
1579
1580 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1581
1582 * infcmd.c (default_print_registers_info): Replace
1583 do_registers_info.
1584 (registers_info): Use gdbarch_print_registers_info instead of
1585 DO_REGISTERS_INFO.
1586 * inferior.h (default_print_registers_info): Replace
1587 do_registers_info.
1588 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1589 (DO_REGISTERS_INFO): Change to a predicate function.
1590 * gdbarch.h, gdbarch.c: Regenerate.
1591
1592 2002-08-21 Keith Seitz <keiths@redhat.com>
1593
1594 * gdb-events.sh: Add target-changed event.
1595 * gdb-events.c: Regenerated.
1596 * gdb-events.c: Regenerated.
1597 * valops.c (value_assign): Add target-changed event notification
1598 to inlval_register, lval_memory, and lval_reg_frame_relative.
1599
1600 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1601
1602 * NEWS: Add an entry regarding the improvement of the next/step
1603 operation on Alpha Tru64 multi-processor machines.
1604
1605 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1606
1607 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1608 directores.
1609 * Makefile.in: Update all _h macro definitions.
1610 * Makefile.in (install-gdbtk): Move to install section.
1611 (rdi-share/libangsd.a): Move to end of file.
1612
1613 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1614
1615 * frame.c (frame_register_unwind): When a register, set addrp to
1616 the register's byte.
1617
1618 2002-08-20 Michael Snyder <msnyder@redhat.com>
1619
1620 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1621 used locally, so move them from the target machine header to here.
1622 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1623 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1624 Make static.
1625 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1626
1627 2002-08-20 Andrew Cagney <cagney@redhat.com>
1628
1629 * NEWS: Mention that the Apollo line was made obsolete.
1630 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1631 m68*-hp-hpux* obsolete.
1632 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1633 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1634 * buildsym.c (make_blockvector): Make static.
1635 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1636 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1637 (ALLDEPFILES): Remove dstread.c.
1638 (dstread.o): Obsolete make rule.
1639 * dstread.c: Makefile obsolete.
1640 * dst.h: Ditto.
1641 * config/m68k/hp300hpux.mt: Ditto.
1642 * config/m68k/hp300hpux.mh: Ditto.
1643 * config/m68k/hp300bsd.mt: Ditto.
1644 * config/m68k/hp300bsd.mh: Ditto.
1645 * config/m68k/apollo68b.mt: Ditto.
1646 * config/m68k/apollo68v.mh: Ditto.
1647 * config/m68k/apollo68b.mh: Ditto.
1648
1649 2002-08-20 Michael Snyder <msnyder@redhat.com>
1650
1651 * mips-tdep.c (mips_in_return_stub): Make static.
1652 (mips_gdbarch_init): Set in_solib_return_trampoline.
1653 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1654
1655 2002-08-20 Michael Snyder <msnyder@redhat.com>
1656
1657 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1658 * gdbarch.c, gdbarch.h: Regenerate.
1659 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1660 Add.
1661 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1662
1663 2002-08-20 Michael Snyder <msnyder@redhat.com>
1664
1665 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1666 (mips_gdbarch_init): Set skip_trampoline_code,
1667 in_solib_call_trampoline.
1668 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1669 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1670
1671 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1672
1673 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1674
1675 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1676 vector type for ev registers.
1677 (e500_pseudo_register_read): New function.
1678 (e500_pseudo_register_write): New function.
1679 (e500_dwarf2_reg_to_regnum): New function.
1680 (PPC_UISA_NOFP_SPRS): New macro.
1681 (PPC_EV_REGS): New macro.
1682 (PPC_GPRS_PSEUDO_REGS): New macro.
1683 (registers_e500): New register set for e500.
1684 (variants): Add e500 variant.
1685 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1686 before setting architectural dependent variations. Initialize ev
1687 registers numbers. Add case for e500 architecture. Set the
1688 number of pseudo registers.
1689
1690 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1691
1692 * rs6000-tdep.c: Clean up comments.
1693
1694 2002-08-20 Andrew Cagney <cagney@redhat.com>
1695
1696 * h8300-tdep.c: Re-indent file.
1697
1698 2002-08-20 Jim Blandy <jimb@redhat.com>
1699
1700 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1701 default for this.
1702
1703 2002-08-20 Keith Seitz <keiths@redhat.com>
1704
1705 * breakpoints.c (watch_command_1): Use internal breakpoint
1706 when setting a watchpoint_scope breakpoint.
1707
1708 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1709
1710 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1711 (build_builtin_type_vec64i): Ditto.
1712 (build_builtin_type_vec128): Ditto.
1713 (build_builtin_type_vec128i): Ditto.
1714
1715 2002-08-19 Michael Snyder <msnyder@redhat.com>
1716
1717 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1718 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1719 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1720 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1721 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1722 CALL_DUMMY_ADDRESS): Delete.
1723 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1724 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1725 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1726 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1727 push_return_address.
1728 (mips_register_raw_size, mips_eabi_use_struct_convention,
1729 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1730 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1731 mips_init_extra_frame_info, mips_eabi_push_arguments,
1732 mips_n32n64_push_arguments, mips_push_return_address,
1733 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1734 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1735
1736 2002-08-19 Michael Snyder <msnyder@redhat.com>
1737
1738 * mips-tdep.c (mips_frame_num_args): New function.
1739 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1740 frame_saved_pc, frame_args_address, frame_locals_address,
1741 frame_num_args, and frame_args_skip.
1742 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1743 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1744 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1745 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1746
1747 2002-08-20 Michael Snyder <msnyder@redhat.com>
1748
1749 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1750 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1751 * mips-tdep.c (mips_store_struct_return): New function.
1752 (mips_extract_struct_value_address): New function.
1753 (mips_gdbarch_init): Set store_struct_return and
1754 extract_struct_value_address.
1755
1756 2002-08-20 David Carlton <carlton@math.stanford.edu>
1757
1758 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1759 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1760 (read_file_scope): Check that line_header is nonzero before
1761 decoding macro information.
1762
1763 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1764
1765 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1766 flag the general-purpose registers as floating-point on targets
1767 that don't support the floating-point registers.
1768
1769 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1770
1771 * rs6000-tdep.c (altivec_register_p): Delete.
1772 (rs6000_do_altivec_registers): Delete.
1773 (rs6000_altivec_registers_info): Delete.
1774 (rs6000_do_registers_info): Delete.
1775 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1776 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1777
1778 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1779
1780 * infcmd.c (do_registers_info): Print vector registers in hex
1781 format only.
1782 (print_vector_info): Check that printing registers
1783 makes sense.
1784 (print_float_info): Ditto.
1785
1786 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1787
1788 * mips-tdep.c (mips_gdbarch_init): Update.
1789 (mips_o32_extract_return_value): Rewrite.
1790 (mips_o32_store_return_value): Rewrite.
1791 (mips_o32_xfer_return_value): New function.
1792 (mips_xfer_register): Tweak debug print message. Allow for
1793 buf_offset when dumping the value transfered.
1794
1795 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1796
1797 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1798 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1799 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1800 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1801 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1802
1803 2002-08-14 Michael Snyder <msnyder@redhat.com>
1804
1805 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1806
1807 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1808
1809 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1810 register.
1811 (P): New macro to define a register as a pseudo register.
1812 (R, R4, R8, R16, FR32, R64, R0): Updated.
1813 (struct variant): Add new fields for number of pseudo registers
1814 and number of total registers.
1815 (tot_num_registers): New macro replacing....
1816 (num_registers): ...deleted macro.
1817 (num_registers): New function.
1818 (num_pseudo_registers): New function.
1819 (variants): Update all variants to intialize new fields correctly.
1820 Postpone initialization of number of pseudo regs and real regs.
1821 (init_variants): New function.
1822 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1823 registers offsets.
1824
1825 2002-08-19 David Carlton <carlton@math.stanford.edu>
1826
1827 * valops.c (search_struct_field): Change error message to treat
1828 return value of 0 from value_static_field as meaning that field is
1829 optimized out.
1830 (value_struct_elt_for_reference): Ditto.
1831 * values.c (value_static_field): Treat an unresolved location the
1832 same as a nonexistent symbol. Fix PR gdb/635.
1833 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1834 enclosed. Fix PR gdb/574.
1835 * MAINTAINERS: Add self to Write After Approval list.
1836
1837 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1838
1839 * mips-tdep.c (mips_xfer_register): New function.
1840 (mips_n32n64_extract_return_value): Rewrite.
1841 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1842 instead of deprecated_extract_return_value.
1843
1844 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1845
1846 * rs6000-tdep.c (TDEP): Delete macro.
1847 (branch_dest): Replace use of TDEP macro with its body.
1848 (rs6000_pop_frame): Ditto.
1849 (rs6000_push_arguments): Ditto.
1850 (rs6000_skip_trampoline_code): Ditto.
1851 (rs6000_frame_saved_pc): Ditto.
1852 (rs6000_frame_chain): Ditto.
1853 (rs6000_register_name): Ditto.
1854 (rs6000_register_byte): Ditto.
1855 (rs6000_register_raw_size): Ditto.
1856 (rs6000_register_virtual_type): Ditto.
1857 (rs6000_register_convertible): Ditto.
1858 (rs6000_convert_from_func_ptr_addr): Ditto.
1859
1860 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1861
1862 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1863 conditionally.
1864 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1865 MIPS_LINUX_JB_ELEMENT_SIZE.
1866 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1867 for MAX_REGISTER_RAW_SIZE arrays.
1868 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1869 MIPS_LINUX_JB_ELEMENT_SIZE.
1870
1871 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1872
1873 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1874
1875 2002-08-19 Aidan Skinner <aidan@velvet.net>
1876
1877 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1878 ada-valprint.c ada-tasks.c.
1879 (YYFILES): Add ada-exp.y.
1880 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1881 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1882 (ada-exp.tab.o): New target.
1883
1884 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1885
1886 * regcache.c (regcache_xfer_part): New function.
1887 (regcache_raw_read_part): New function.
1888 (regcache_raw_write_part): New function.
1889 (regcache_cooked_read_part): New function.
1890 (regcache_cooked_write_part): New function.
1891 * regcache.h (regcache_raw_read_part): Declare.
1892 (regcache_raw_write_part): Declare.
1893 (regcache_cooked_read_part): Declare.
1894 (regcache_cooked_write_part): Declare.
1895
1896 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1897
1898 * remote.c (remote_open_1): Add async_p.
1899 (remote_async_open_1): Delete.
1900 (open_remote_target): Delete.
1901 (remote_open, extended_remote_open): Update calls to remote_open_1.
1902 (remote_async_open, extended_remote_async_open): Call
1903 remote_open_1 instead of remote_async_open_1.
1904
1905 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1906
1907 * blockframe.c: Fix a few coding standard violations.
1908
1909 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1910
1911 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1912 here from ...
1913 * config/i386/tm-i386sco5.h: ... here. File removed.
1914 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1915
1916 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1917 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1918 (TM_FILE): Set to tm-i386.h.
1919 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1920 * config/i386/tm-i386v.h: Remove file.
1921 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1922 instead of "i386/tm-i386v.h".
1923 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1924 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1925 "i386/tm-i386v.h".
1926 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1927 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1928 "i386/tm-i386.h".
1929
1930 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1931
1932 * config/i386/nm-i386v.h: Add protection against
1933 multiple-inclusion.
1934 (i386_register_u_addr): Remove prototype.
1935 (register_u_addr): New prototype.
1936 (REGISTER_U_ADDR): Redefine accordingly.
1937 * i386v-nat.c: Improve several comments.
1938 (i386_register_u_addr): Change signature and rename to
1939 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1940 ubase variable.
1941
1942 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1943
1944 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1945 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1946 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1947 deprecated_extract_return_value.
1948 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1949 rename mips_o32o64_push_arguments.
1950 (mips_gdbarch_init): Update.
1951 (mips_extract_return_value): Delete.
1952 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1953 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1954 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1955 (mips_n32n64_extract_return_value): Clone
1956 mips_extract_return_value.
1957 (mips_store_return_value): Delete.
1958 (mips_o32_store_return_value): Clone mips_store_return_value.
1959 (mips_o64_store_return_value): Clone mips_store_return_value.
1960 (mips_eabi_store_return_value): Clone mips_store_return_value.
1961 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1962
1963 2002-08-18 Aidan Skinner <aidan@velvet.net>
1964
1965 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1966 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1967
1968 2002-08-18 Aidan Skinner <aidan@velvet.net>
1969
1970 * ada-lang.c: Run through gdb_indent.sh.
1971 * ada-lang.h: Run through gdb_indent.sh.
1972 * ada-tasks.c: Run through gdb_indent.sh.
1973 * ada-typeprint.c: Run through gdb_indent.sh.
1974 * ada-valprint.c: Run through gdb_indent.sh.
1975
1976 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1977
1978 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1979 ABI.
1980
1981 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1982
1983 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1984
1985 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1986 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1987
1988 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1989 write_register_gen instead of write_register_bytes.
1990
1991 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1992 i[3456]-*-osf1mk* configurations have been made obsolete.
1993 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1994 i[3456]86-*-osf1mk* hosts obsolete.
1995 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1996 targets obsolete.
1997 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1998 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1999 config/i386/i386m3.mt, config/i386/nm-m3.h,
2000 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2001 config/i386/i386mk.mh, config/i386/i386mk.mt,
2002 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2003 obsolete.
2004 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2005 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2006 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2007
2008 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2009
2010 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2011 (hppa_value_returned_from_stack): Declare.
2012 (hppa_extract_return_value): Declare.
2013 * config/pa/hppa.mt: New file.
2014 * configure.tgt: Recognize hppa*-*-*.
2015 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2016
2017 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2018
2019 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2020 comment.
2021
2022 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2023
2024 * top.c (gdb_rl_operate_and_get_next): Make sure
2025 operate-and-get-next functions correctly even when the history
2026 list is completely filled.
2027
2028 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2029
2030 * MAINTAINERS (Target Instruction Set Architectures): Rename
2031 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2032 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2033 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2034 already listed under Host/Native.
2035
2036 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2037 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2038 mips*-*-*.
2039
2040 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2041
2042 * config/ia64/ia64.mt: New file.
2043 * config/alpha/alpha.mt: New file.
2044 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2045 ia64-linux-gnu. Mention that ia64-elf is broken.
2046 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2047
2048 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2049
2050 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2051 generic_func_frame_valid instead of func_frame_valid.
2052
2053 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2054
2055 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2056 procfs appears to be broken when debugging on multi-processor
2057 machines. So enable software single stepping in order to avoid
2058 using the procfs interface to do next/step operations, using
2059 internal breakpoints instead.
2060
2061 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2062 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2063 make this pc address equal to the value it would have if the
2064 system stepping capability was used. Also set a new flag used
2065 to ensure that we don't readjust the PC one more time later.
2066
2067 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2068 address by DECR_PC_AFTER_BREAK when software single step is
2069 in use for this architecture, as this has already been taken
2070 care of in handle_inferior_event().
2071
2072 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2073
2074 * infrun.c (handle_inferior_event): Minor reformatting, to make
2075 a rather long condition expression easier to read.
2076
2077 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2078
2079 * Makefile.in (gdbtk.o): Move to end of file.
2080 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2081 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2082 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2083 (gdbtk-wrapper.o, gdbres.o): Ditto.
2084
2085 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2086
2087 * Makefile.in (copying.o): Separate out compile rule.
2088 (hpux-thread.o, procfs.o, signals.o): Ditto.
2089 (v850ice.o, z8k-tdep.o): Ditto.
2090 (tui-file.o): Move to TUI section.
2091 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2092 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2093
2094 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2095
2096 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2097 skip_trampoline_code, for better namespace-proofing.
2098
2099 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2100
2101 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2102
2103 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2104
2105 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2106
2107 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2108 signal, check whether we hit a breakpoint before checking for a
2109 single step breakpoint. Otherwise, GDB fails to notice that a
2110 breakpoint has been hit when stepping onto a breakpoint.
2111
2112 2002-08-16 Keith Seitz <keiths@redhat.com>
2113
2114 * gdb-events.sh (clear_gdb_event_hooks): New function.
2115 * gdb-events.c: Regenerate.
2116 * gdb-events.h: Regenerate.
2117
2118 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2119
2120 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2121 not_a_sw_breakpoint.
2122 * breakpoint.h (bpstat_stop_status): Add parameter names.
2123
2124 2002-08-16 Grace Sainsbury <graces@redhat.com>
2125
2126 * remote.c (remote_insert_hw_breakpoint)
2127 (remote_remove_hw_breakpoint): Fix calculation of length field
2128 for Z-packet.
2129
2130 2002-08-15 Michael Snyder <msnyder@redhat.com>
2131
2132 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2133 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2134 (supply_fpregset): Ditto.
2135
2136 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2137 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2138 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2139 (TARGET_READ_SP): Delete.
2140 (DO_REGISTERS_INFO): Delete.
2141 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2142 Delete.
2143 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2144 from macros to functions.
2145
2146 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2147 (mips_register_convertible, mips_register_convert_to_virtual,
2148 mips_register_convert_to_raw): Make static.
2149 (mips_read_sp): New function.
2150 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2151 (mips_do_registers_info): Make static.
2152 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2153 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2154 (mips_register_convert_from_type, mips_register_convert_to_type):
2155 New functions.
2156 (mips_gdbarch_init): Set up function_start_offset,
2157 register_virtual_size, pc_in_sigtramp.
2158
2159 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2160
2161 * infcmd.c (vector_info): New function.
2162 (_initialize_infcmd): Add command "info vector".
2163 (print_vector_info): New function.
2164
2165 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2166 * gdbarch.h, gdbarch.c: Regenerate.
2167
2168 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2169
2170 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2171 ``print_all''. Only print vector registers when ``print_all''.
2172
2173 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2174
2175 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2176 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2177
2178 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2179 Add `args' parameter.
2180 * gdbarch.h, gdbarch.c: Regenerate.
2181
2182 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2183
2184 * infcmd.c (float_info): Call print_float_info.
2185 (print_float_info): New function. By default, print the
2186 floating-point registers.
2187
2188 * arch-utils.h (default_print_float_info): Delete declaration.
2189 * arch-utils.c (default_print_float_info): Delete function.
2190
2191 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2192
2193 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2194 out define.
2195
2196 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2197 FRAME.
2198
2199 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2200 * configure.host: Make i[3456]86-*-aix host obsolete.
2201 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2202 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2203 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2204 config/i386/xm-i386aix.h: Make files obsolete.
2205 * i386aix-nat.c: Make file obsolete.
2206 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2207 (i386aix-nat.o): Make target obsolete.
2208
2209 * config/i386/nm-gnu.h: Removed.
2210 * config/i386/nm-i386gnu.h: New file.
2211 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2212 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2213 Moved here from ...
2214 * config/i386/tm-i386gnu.h: ... here. Removed.
2215 * config/i386/xm-i386gnu.h: Removed.
2216 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2217 (NAT_FILE): Set to nm-i386gnu.h.
2218 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2219 * i386-tdep.c: New file.
2220 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2221 (i386gnu-tdep.o): Specify dependencies.
2222
2223 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2224
2225 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2226 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2227 Adjust a few comments to reflect reality a bit closer.
2228 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2229 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2230 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2231 target_insert_watchpoint, target_remove_watchpoint):
2232 Move defines to ...
2233 * config/i386/nm-i386sco5.h: ... here.
2234 (kernel_u_size): Add prototype. Improve a few comments and add
2235 protection against multiple inclusion.
2236
2237 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2238 out define.
2239
2240 * uw-thread.c (SP_ARG0): Define if not already defined.
2241 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2242
2243 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2244
2245 * config/i386/tm-i386.h: Don't include "regcache.h".
2246
2247 * i387-tdep.h (i387_print_float_info): New prototype.
2248 * i387-tdep.c (print_i387_value, print_i387_ext,
2249 print_i387_status_word, print_i387_control_word): Add `struct
2250 ui_file *' argument and use it for output.
2251 (i387_print_float_info): Renamed from i387_float_info. Add
2252 `struct gdbarch *' and `struct ui_file *' arguments and use the
2253 latter for output.
2254 * i386-tdep.c: Include "i387-tdep.h".
2255 (i386_gdbarch_init): Set print_float_info.
2256 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2257 (FLOAT_INFO): Remove define.
2258
2259 2002-08-13 Michael Snyder <msnyder@redhat.com>
2260
2261 * mips-tdep.c (mips_push_arguments): Rename to
2262 mips_eabi_push_arguments, and tune for EABI.
2263 (MIPS_REGS_HAVE_HOME_P): Delete.
2264 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2265 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2266 Delete references to mips_regs_have_home_p.
2267
2268 2002-08-14 Keith Seitz <keiths@redhat.com>
2269
2270 * Makefile.in (install-gdbtk): Create insight plugin directory.
2271 Install plugins.tcl file.
2272
2273 2002-08-14 Keith Seitz <keiths@redhat.com>
2274
2275 * configure.in: Move SUBDIRS to near top of the file so that
2276 --enable options may add things to it.
2277 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2278 * configure: Regenerate.
2279
2280 2002-08-13 Michael Snyder <msnyder@redhat.com>
2281
2282 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2283 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2284 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2285
2286 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2287
2288 * vax-tdep.c (vax_get_saved_register): Delete function.
2289 (vax_gdbarch_init): Update.
2290 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2291 (ns32k_gdbarch_init): Update.
2292 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2293 (alpha_gdbarch_init): Update.
2294
2295 2002-08-13 Andrew Cagney <cagney@redhat.com>
2296
2297 * regcache.c (init_regcache_descr): Overallocate the
2298 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2299 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2300 nr_raw_registers.
2301 (set_register_cached): Add range checking assertions. Use
2302 current_regcache.
2303
2304 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2305
2306 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2307 numbers for MMX registers.
2308
2309 2002-08-13 Andrew Cagney <cagney@redhat.com>
2310
2311 * i386-tdep.c (i386_gdbarch_init): Use
2312 generic_unwind_get_saved_register.
2313
2314 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2315
2316 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2317 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2318 target vector.
2319 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2320 Delete. Add comment regarding this now-deleted target method.
2321
2322 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2323
2324 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2325 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2326 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2327 real PC and the page number (if it's within the memory bank window).
2328 (m68hc11_pseudo_register_write): Likewise when saving.
2329 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2330 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2331 (m68hc11_register_raw_size): And use 32-bit for it.
2332 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2333 16K memory bank is used by the prog; also use the virtual pc.
2334
2335 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2336
2337 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2338 (m68hc11_gdbarch_init): Install it in gdbarch.
2339 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2340 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2341 (MSYMBOL_SIZE): New for documentation.
2342 (insn_return_kind): Enum to specify how a function returns.
2343 (frame_extra_info): Cleanup and record the return mode.
2344 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2345 register in address computation.
2346 (m68hc11_get_return_insn): New to obtain the return instruction used
2347 by the function.
2348 (m68hc11_frame_init_saved_regs): Take into account the return
2349 instruction used by the function for far and interrupt functions.
2350 (m68hc11_init_extra_frame_info): Take into account page register.
2351 (m68hc11_frame_args_address): Adjust according to the return mode.
2352 (show_regs): Print page register only when it's used.
2353
2354 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2355
2356 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2357 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2358 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2359 registers.
2360 (m68hc11_register_raw_size): Likewise.
2361
2362 2002-08-13 Andrew Cagney <cagney@redhat.com>
2363
2364 * i386-tdep.c (i386_register_name): Handle mmx registers.
2365 (mmx_regnum_p): New function.
2366 (i386_mmx_names): New array.
2367 (mmx_num_regs): New variable.
2368 (i386_pseudo_register_read): New function.
2369 (i386_pseudo_register_write): New function.
2370 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2371
2372 * regcache.c (regcache_raw_read_unsigned): New function.
2373 (regcache_raw_read_signed): New function.
2374 * regcache.h (regcache_raw_read_unsigned): Declare.
2375 (regcache_raw_read_signed): Declare.
2376
2377 2002-08-13 Andrew Cagney <cagney@redhat.com>
2378
2379 * regcache.c (regcache_raw_read_as_address): Delete function.
2380 (regcache_cooked_read_signed): New function.
2381 (regcache_cooked_read_unsigned): New function.
2382 * regcache.h (regcache_cooked_read_signed): Declare.
2383 (regcache_cooked_read_unsigned): Declare.
2384 (regcache_raw_read_as_address): Delete declaration.
2385
2386 * blockframe.c (generic_read_register_dummy): Use
2387 regcache_cooked_read_unsigned.
2388 * i386-tdep.c (i386_extract_struct_value_address): Use
2389 regcache_cooked_read_unsigned.
2390
2391 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2392
2393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2394 double sizes according to ELF ABI flags.
2395 (gdbarch_tdep): Record elf_flags.
2396
2397 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2398
2399 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2400 (m6812_prolog): They can appear in 68HC12 function prologue.
2401 (m68hc11_frame_chain): Cleanup.
2402
2403 2002-08-12 Andrew Cagney <cagney@redhat.com>
2404
2405 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2406 declarations.
2407 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2408 (i386_linux_register_raw_size): Delete function.
2409 (i386_linux_init_abi): Update.
2410 * i386-tdep.c (i386_register_raw_size): Delete function.
2411 (i386_register_byte): Delete function.
2412 (i386_gdbarch_init): Update.
2413 (i386_register_size): Delete array.
2414 (i386_register_offset): Delete array.
2415
2416 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2417 (REGISTER_RAW_SIZE): Delete macro.
2418 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2419 (REGISTER_BYTE): Delete macro.
2420
2421 2002-08-11 Aidan Skinner <aidan@velvet.net>
2422
2423 * ada-lang.c (ada_lookup_partial_symbol)
2424 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2425 prototype names so that grep ^func works properly.
2426
2427 * ada-lang.c (ada_array_element_type)
2428 (ada_lookup_partial_symbol): Fix typos in parameter list.
2429
2430 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2431 Fix prototype names so that grep ^func works properly.
2432
2433 2002-08-10 Andrew Cagney <cagney@redhat.com>
2434 Elena Zannoni <ezannoni@redhat.com>
2435 Martin M. Hunt <hunt@redhat.com>
2436
2437 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2438 (build_builtin_type_vec128i): Set the vector bit.
2439 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2440 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2441 (build_builtin_type_vec64): New function.
2442 (build_builtin_type_vec64i): New function.
2443 (build_gdbtypes): Initialize builtin_type_vec64 and
2444 builtin_type_vec64i.
2445
2446 2002-08-09 Andrew Cagney <cagney@redhat.com>
2447
2448 * regcache.c (regcache_dump): Compare the register offset
2449 with REGISTER_BYTE.
2450 * arch-utils.c (generic_register_byte): New function.
2451 * arch-utils.h (generic_register_byte): Declare.
2452 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2453 * gdbarch.h, gdbarch.c: Regenerate.
2454
2455 2002-08-09 Andrew Cagney <cagney@redhat.com>
2456
2457 * regcache.c: Include "gdbcmd.h"
2458 (_initialize_regcache): Add commands "maintenance print
2459 registers", "maintenance print raw-registers" and "maintenance
2460 print cooked-registers".
2461 (enum regcache_dump_what): Define.
2462 (dump_endian_bytes): New function.
2463 (regcache_dump): New function.
2464 (regcache_print): New function.
2465 (maintenance_print_registers): New function.
2466 (maintenance_print_raw_registers): New function.
2467 (maintenance_print_cooked_registers): New function.
2468 * Makefile.in (regcache.o): Update dependencies.
2469
2470 2002-08-09 Michael Snyder <msnyder@redhat.com>
2471
2472 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2473 (mips_push_arguments): Correct some comments. Use paddr_nz
2474 for printing addresses in debug output. Replace static
2475 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2476 (mips_n32n64_push_arguments): New function, cloned from
2477 mips_push_arguments and tuned for the n32/n64 ABI.
2478 (mips_push_register): Buffer needs dynamic allocation.
2479 (mips_print_register): Ditto.
2480 (do_gp_register_row): Ditto.
2481 (mips_store_return_value): Ditto.
2482 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2483
2484 2002-08-09 Don Howard <dhoward@redhat.com>
2485
2486 * memattr.c (mem_info_command): Print special case of upper bound
2487 as max CORE_ADDR + 1.
2488
2489 2002-08-08 Michael Snyder <msnyder@redhat.com>
2490
2491 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2492 returns structs by ref if they're too big to fit in two registers.
2493
2494 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2495
2496 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2497 saved regs value.
2498 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2499 mips_find_saved_regs().
2500 (mips_pop_frame): Likewise.
2501
2502 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2503
2504 * blockframe.c (frame_saved_regs_register_unwind): Revise
2505 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2506 frames are in use.
2507
2508 2002-08-09 Grace Sainsbury <graces@redhat.com>
2509
2510 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2511 T-packets; the 'a' is not taken as a register number.
2512 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2513 (remote_stopped_data_address): New functions; add to target
2514 vector.
2515 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2516 prototypes to match other implementations of this
2517 function. replace integer argument with pointer -- the length
2518 field in the Z-packet is the length of what is pointed to or 1 if
2519 pointer is null. Add to target vector.
2520 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2521 target vector.
2522
2523 From Mark Salter:
2524 * remote.c (remote_wait): Add support to extract optional
2525 watchpoint information from T-packet. Ignore unrecognized
2526 optional info in T-packet.
2527 (remote_async_wait): Ditto.
2528
2529 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2530
2531 * cli/cli-dump.c: Change fopen modes to use binary open modes
2532 as defined in include/fopen-bin.h throughout.
2533
2534 2002-08-08 Michael Snyder <msnyder@redhat.com>
2535
2536 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2537
2538 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2539
2540 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2541 assertion failure by returning early after a warning.
2542
2543 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2544
2545 * mips-tdep.c (mips_find_saved_regs): Make static.
2546 (mips_frame_init_saved_regs): New function.
2547 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2548 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2549 (mips_find_saved_regs): Delete declaration.
2550
2551 2002-08-08 Grace Sainsbury <graces@redhat.com>
2552
2553 * remote.c (remote_wait, remote_async_wait): Change
2554 thread_num from int to ULONGEST.
2555 (unpack_varlen_hex): Change result parameter from
2556 int * to ULONGEST *.
2557
2558 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2559
2560 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2561 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2562 powerpc*-*-*.
2563 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2564
2565 2002-08-08 Andrew Cagney <cagney@redhat.com>
2566
2567 * gcore.c (override_derive_stack_segment): Delete variable.
2568 (preempt_derive_stack_segment): Delete function.
2569 (derive_stack_segment): Delete function.
2570 (default_derive_stack_segment): Renamed to derive_stack_segment.
2571 (override_derive_heap_segment): Delete variable.
2572 (preempt_derive_heap_segment): Delete function.
2573 (derive_heap_segment): Delete function.
2574 (default_derive_heap_segment): Rename to derive_heap_segment.
2575
2576 2002-08-06 Michael Snyder <msnyder@redhat.com>
2577
2578 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2579 * mips-tdep.c (mips_EABI_use_struct_convention,
2580 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2581 New functions. (mips_use_struct_convention): Delete.
2582 (mips_gdbarch_init): set use_gdbarch_convention.
2583
2584 2002-08-06 Michael Snyder <msnyder@redhat.com>
2585
2586 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2587 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2588 mips_o32_reg_struct_has_addr): New functions.
2589 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2590
2591 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2592
2593 * regcache.c (pseudo_register): Delete function.
2594 (fetch_register): Delete function.
2595 (store_register): Delete function.
2596 (regcache_raw_read, legacy_read_register_gen): Use
2597 target_fetch_registers instead of fetch_register.
2598 (legacy_write_register_gen, regcache_raw_write): Use
2599 target_store_register instead of store_register.
2600 (write_register_bytes): Ditto.
2601
2602 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2603 (STORE_PSEUDO_REGISTER): Delete.
2604 * gdbarch.h, gdbarch.c: Regenerate.
2605
2606 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2607
2608 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2609 write dump file binary.
2610
2611 2002-08-05 Michael Snyder <msnyder@redhat.com>
2612
2613 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2614 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2615 (mips_gdbarch_init): Set N32 target to be mips64.
2616
2617 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2618
2619 * frame.c (find_saved_register): Break out of loop once saved
2620 register address is found. Don't mention sparc in loop comment
2621 anymore.
2622
2623 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2624
2625 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2626 mips_default_saved_regsize to 8.
2627
2628 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2629
2630 * gcore.c: Do not include <sys/procfs.h>.
2631 * Makefile.in (gcore.o): Update dependencies.
2632
2633 2002-08-06 Andrew Cagney <cagney@redhat.com>
2634
2635 * configure.tgt: Make arc-*-* obsolete.
2636 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2637 * MAINTAINERS: Make arc-elf obsolete.
2638 * arc-tdep.c: Make file obsolete.
2639 * config/arc/arc.mt: Ditto.
2640 * config/arc/tm-arc.h: Ditto.
2641
2642 2002-08-05 Theodore A. Roth <troth@verinet.com>
2643
2644 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2645
2646 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2647
2648 * mcore-tdep.c (mcore_gdbarch_init): Use
2649 generic_unwind_get_saved_register instead of
2650 generic_get_saved_register.
2651 * v850-tdep.c (v850_gdbarch_init): Ditto.
2652 * frv-tdep.c (frv_gdbarch_init): Ditto.
2653 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2654 * s390-tdep.c (s390_gdbarch_init): Ditto.
2655 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2656 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2657 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2658
2659 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2660
2661 * objfiles.h: Add missing #include "symfile.h"
2662
2663 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2664
2665 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2666
2667 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2668 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2669 of FIELD_BITSIZE.
2670
2671 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2672
2673 * NEWS: Cleanup and nitpick.
2674
2675 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2676
2677 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2678
2679 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2680
2681 * Makefile.in (gdbtk-bp.o): Update dependencies.
2682 (gdbtk-register.o): Ditto.
2683 (gdbtk-varobj.o): Ditto.
2684
2685 2002-08-03 Andrew Cagney <cagney@redhat.com>
2686
2687 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2688 m68hc11_fetch_pseudo_register.
2689 (m68hc11_pseudo_register_write): Replace
2690 m68hc11_store_pseudo_register.
2691 (m68hc11_gdbarch_init): Update.
2692
2693 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2694
2695 * gdbarch.sh: Include "gdb_string.h".
2696 * gdbarch.c: Regenerate.
2697
2698 * regcache.c: Include "gdb_string.h".
2699 * ax-general.c: Ditto.
2700 * varobj.c: Ditto.
2701 * std-regs.c: Ditto.
2702 * fbsd-proc.c: Ditto.
2703 * thread.c: Ditto.
2704
2705 * Makefile.in (regcache.o): Update dependencies.
2706 (thread.o, gdbarch.o): Ditto.
2707 (ax-general.o, gdbarch.o): Ditto.
2708 (varobj.o, std-regs.o): Ditto.
2709 (fbsd-proc.o): Specify dependencies.
2710
2711 2002-08-02 Andrew Cagney <cagney@redhat.com>
2712
2713 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2714 regnum.
2715 (regcache_cooked_write): Ditto.
2716
2717 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2718
2719 * regcache.c (regcache_cooked_read): New function.
2720 (regcache_cooked_write): New function.
2721 (read_register_gen): Rewrite using regcache_cooked_read.
2722 (write_register_gen): Rewrite using regcache_cooked_write.
2723
2724 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2725 Declare.
2726
2727 2002-08-02 Andrew Cagney <cagney@redhat.com>
2728
2729 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2730 Replace the architecture methods register_read and register_write.
2731 * gdbarch.h, gdbarch.c: Regenerate.
2732 * regcache.c (init_regcache_descr): Update.
2733 (read_register_gen): Update.
2734 (write_register_gen): Update.
2735 (supply_register): Update comment.
2736
2737 * sh-tdep.c (sh_gdbarch_init): Update.
2738 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2739 `regcache' and `gdbarch' parameters. Make `buffer' a void
2740 pointer. Update code.
2741 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2742 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2743 void pointer. Update code.
2744 (sh64_register_write): Delete.
2745 (sh4_register_read): Delete.
2746 (sh64_register_read): Delete.
2747 (sh4_register_write): Delete.
2748 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2749 void pointer, `to' parameter a void pointer.
2750 (sh_sh64_register_convert_to_raw): Ditto.
2751
2752 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2753
2754 * mips-tdep.c (mips_register_virtual_type): Use architecture
2755 invariant return values.
2756
2757 2002-08-01 Andrew Cagney <cagney@redhat.com>
2758
2759 * linux-proc.c: Include "gdb_string.h".
2760 * Makefile.in (linux-proc.o): Update dependency list.
2761
2762 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2763
2764 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2765 comment.
2766
2767 2002-08-01 Grace Sainsbury <graces@redhat.com>
2768
2769 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2770 to_insert_watchpoint, to_remove_watchpoint,
2771 to_stopped_by_watchpoint, to_stopped_data_address,
2772 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2773 target vecctor. Define their corresponding macros so they call
2774 them.
2775
2776 * target.c: Add default and debug versions of for
2777 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2778 to_insert_watchpoint, to_remove_watchpoint,
2779 to_stopped_by_watchpoint, to_stopped_data_address,
2780 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2781
2782 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2783
2784 * mips-tdep.c (mips_register_virtual_type): New function.
2785 (mips_gdbarch_init): Register mips_register_virtual_type()
2786 with gdbarch machinery.
2787 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2788 this file instead of tm-bigmips.h.
2789 (MIPS_REGSIZE): Delete this macro.
2790 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2791 multiarch version in mips-tdep.c will be found.
2792
2793 2002-08-01 Andrew Cagney <cagney@redhat.com>
2794
2795 * NEWS: Menion that CHILL has been made obsolete.
2796
2797 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2798 * stabsread.c (read_range_type): Ditto.
2799 * gdbtypes.h: Ditto.
2800 * language.c (binop_type_check): Ditto.
2801 (binop_result_type): Ditto.
2802 (integral_type): Ditto.
2803 (character_type): Ditto.
2804 (string_type): Ditto.
2805 (boolean_type): Ditto.
2806 (structured_type): Ditto.
2807 (lang_bool_type): Ditto.
2808 (binop_type_check): Ditto.
2809 * language.h (_LANG_chill): Ditto.
2810 * dwarfread.c (set_cu_language): Ditto.
2811 * dwarfread.c (CHILL_PRODUCER): Ditto.
2812 * dwarfread.c (handle_producer): Ditto.
2813 * expression.h (enum exp_opcode): Ditto.
2814 * eval.c: Ditto for comments.
2815 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2816 * expprint.c (print_subexp): Ditto.
2817 (print_subexp): Ditto.
2818 * valops.c (value_cast): Ditto.
2819 (search_struct_field): Ditto.
2820 * value.h (COERCE_VARYING_ARRAY): Ditto.
2821 * symfile.c (init_filename_language_table): Ditto.
2822 (add_psymbol_with_dem_name_to_list): Ditto.
2823 * valarith.c (value_binop): Ditto.
2824 (value_neg): Ditto.
2825 * valops.c (value_slice): Ditto.
2826 * symtab.h (union language_specific): Ditto.
2827 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2828 (SYMBOL_DEMANGLED_NAME): Ditto.
2829 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2830 * defs.h (enum language): Ditto.
2831 * symtab.c (got_symtab): Ditto.
2832 * utils.c (fprintf_symbol_filtered): Ditto.
2833
2834 * ch-typeprint.c: Make file obsolete.
2835 * ch-valprint.c: Make file obsolete.
2836 * ch-lang.h: Make file obsolete.
2837 * ch-exp.c: Make file obsolete.
2838 * ch-lang.c: Make file obsolete.
2839
2840 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2841 CHILL_LIB.
2842 (TARGET_FLAGS_TO_PASS): Ditto.
2843 (CHILLFLAGS): Obsolete.
2844 (CHILL): Obsolete.
2845 (CHILL_FOR_TARGET): Obsolete.
2846 (CHILL_LIB): Obsolete.
2847 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2848 ch-valprint.c.
2849 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2850 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2851 ch-lang.o.
2852 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2853 targets.
2854
2855 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2856
2857 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2858 This does not change anything at the moment, but will be helpful
2859 later when full Ada support is integrated.
2860
2861 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2862
2863 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2864 help message.
2865
2866 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2867
2868 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2869 and save it in a local variable. Use variable in later test.
2870
2871 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2872
2873 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2874 test. (Thanks to Daniel Jacobowitz.)
2875
2876 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2877
2878 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2879 (mips_abi_strings): Add "n64".
2880 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2881
2882 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2883
2884 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2885 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2886
2887 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2888
2889 * utils.c (host_pointer_to_address, address_to_host_pointer):
2890 Use gdb_assert() instead of explicit call to internal_error().
2891
2892 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2893
2894 * Makefile.in (rs6000-nat.o): Update dependencies.
2895
2896 From Nicholas Duffek:
2897 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2898 (aix-thread.o): New rule.
2899 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2900 * config/powerpc/aix432.mh: New file.
2901
2902 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2903
2904 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2905 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2906 (fetch_core_registers, ppc_linux_supply_gregset)
2907 (ppc_linux_supply_fpregset): New functions.
2908 (ppc_linux_regset_core_fns): New.
2909 (_initialize_ppc_linux_tdep): Call add_core_fns.
2910 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2911 and ppc_linux_supply_gregset.
2912 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2913 (supply_fpregset): Call ppc_linux_supply_fpregset.
2914 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2915 corelow.o.
2916 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2917
2918 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2919
2920 * symtab.c (lookup_symbol): Demangle before lowercasing.
2921
2922 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2923
2924 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2925 declaration.
2926 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2927 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2928 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2929 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2930 "gdb_string.h".
2931 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2932 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2933 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2934 (avr-tdep.o, mon960-rom.o): Ditto.
2935 (aout_stabs_gnu_h): Define.
2936 (symtab_h): Remove $(gdb_obstack_h).
2937
2938 2002-07-30 Jim Blandy <jimb@redhat.com>
2939
2940 Patch from David Carlton <carlton@math.stanford.edu>:
2941 * gdbinit.in: Move the `dir' commands that add GDB's own source
2942 directory to the search path to the end, so that the `gdb' source
2943 directory will be searched first.
2944
2945 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2946
2947 * gdb_obstack.h: New file.
2948 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2949 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2950 * objfiles.h: Include "gdb_obstack.h".
2951 * Makefile.in (gdb_obstack_h): Define.
2952 (symtab_h): Add $(gdb_obstack_h).
2953 (objfiles_h): Add $(gdb_obstack_h).
2954
2955 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2956 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2957 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2958 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2959 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2960 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2961 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2962 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2963
2964 * Makefile.in (bcache.o): Update dependencies.
2965 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2966 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2967 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2968 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2969 (stabsread.o, symfile.o, symmisc.o): Ditto.
2970 (symtab.o, typeprint.o, macroexp.o): Ditto.
2971 (macrotab.o, mdebugread.o): Ditto.
2972 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2973 (coff_ecoff_h, aout_aout64_h): Define.
2974 (aout_stabs_gnu_h, libaout_h): Define.
2975
2976 2002-07-29 Andrew Cagney <cagney@redhat.com>
2977
2978 * regcache.c (struct regcache_descr): Rename nr_registers to
2979 nr_cooked_registers. Revise comments describing the structure
2980 member fields.
2981 (init_regcache_descr): Update.
2982 (init_legacy_regcache_descr): Update.
2983 (read_register_gen, write_register_gen): When a cooked register in
2984 the raw register range, directly access the value from the raw
2985 register cache.
2986
2987 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2988
2989 * z8k-tdep.c: Do not include "obstack.h".
2990 * h8300-tdep.c, h8500-tdep.c: Ditto.
2991 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2992 * valprint.c, v850-tdep.c: Ditto.
2993 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2994 * mn10200-tdep.c: Ditto.
2995
2996 * Makefile.in (z8k-tdep.o): Update dependencies.
2997 (m68hc11-tdep.o, valprint.o): Ditto.
2998 (v850-tdep.o, d10v-tdep.o): Ditto.
2999 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3000 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3001 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3002 (sh_opc_h, gdb_sim_sh_h): Define.
3003 (elf_sh_h, elf_bfd_h): Define.
3004 (opcode_m68hc11_h): Define.
3005 (OPCODES_SRC, OPCODES_DIR): define.
3006 (OPCODES): Use $(OPCODES_DIR).
3007 (gdb_sim_d10v_h): Rename sim_d10v_h.
3008 (gdb_sim_arm_h): Rename sim_arm_h.
3009
3010 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3011
3012 * utils.c (host_pointer_to_address, address_to_host_pointer):
3013 Change internal_error() message to indicate function responsible
3014 for the error.
3015
3016 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3017
3018 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3019 calls to local_hex_string_custom().
3020
3021 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3022
3023 * irix5-nat.c: Move IRIX shared library support from here...
3024 * solib-irix.c: ...to here. Revised substantially to work with
3025 generic solib framework.
3026
3027 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3028 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3029 * mips-irix-tdep.c: New file.
3030
3031 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3032 (mips-irix-tdep.o, solib-irix.o): New rules.
3033 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3034 solib-irix.o.
3035 * config/mips/irix6.mt (TDEPFILES): Likewise.
3036 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3037
3038 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3039
3040 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3041 disabled (via ``#if 0'') includes.
3042
3043 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3044
3045 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3046 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3047 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3048 Add support for the fpscr register.
3049 * rs6000-nat.c (regmap, fetch_inferior_registers)
3050 (store_inferior_registers, fetch_core_registers): Likewise.
3051
3052 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3053
3054 * rs6000-nat.c (language.h): Include.
3055 (special_regs): Delete this array.
3056 (regmap): New function.
3057 (fetch_register, store_register): Use regmap() to map gdb
3058 register numbers to ptrace register numbers. Also, use
3059 outputs from regmap() to make decisions regarding type of
3060 ptrace() call to make. In particular, don't compare against
3061 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3062 (fetch_inferior_registers, store_inferior_registers): Where
3063 possible, obtain register numbers from tdep struct. Don't
3064 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3065 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3066 (LAST_UISA_SP_REGNUM): Delete.
3067
3068 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3069
3070 * rs6000-nat.c (ppc-tdep.h): Include.
3071 (fetch_registers, store_register, fetch_core_registers): Don't
3072 access registers[] directly. Instead, use supply_register() or
3073 regcache_collect() as appropriate.
3074 (find_toc_address): Format hex address with local_hex_string().
3075
3076 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3077
3078 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3079 bfd/elf32-frv.c.
3080
3081 2002-07-24 Tom Tromey <tromey@redhat.com>
3082
3083 * jv-exp.y: Marked all strings with _().
3084 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3085 internal_error.
3086 (MethodInvocation, CastExpression, parse_number, yyerror,
3087 java_type_from_name, push_expression_name, yylex): Typo fixes.
3088
3089 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3090
3091 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3092 (tee_file_flush, tee_file_write, tee_file_fputs)
3093 (tee_file_isatty): New.
3094 * ui-file.h (tee_file_new): Add prototype.
3095
3096 2002-07-24 Aidan Skinner <aidan@velvet.net>
3097
3098 * ada-lang.c: Change k&r style function definitions to prototyped
3099 form.
3100 * ada-typeprint.c: Change k&r style function definitions to prototyped
3101 form.
3102 * ada-valprint.c: Change k&r style function definitions to prototyped
3103 form.
3104
3105 2002-07-24 Andrew Cagney <cagney@redhat.com>
3106
3107 * README: Remove reference to remote-bug.
3108 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3109 remote-bug.c.
3110 (m88k-nat.o): Delete rule.
3111 (m88k-tdep.o): Delete rule.
3112 (remote-bug.o): Delete rule.
3113 * MAINTAINERS: Mark as obsolete.
3114 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3115 * m88k-tdep.c: Make file obsolete.
3116 * config/m88k/m88k.mh: Ditto.
3117 * config/m88k/delta88v4.mh: Ditto.
3118 * config/m88k/delta88v4.mt: Ditto.
3119 * config/m88k/delta88.mt: Ditto.
3120 * config/m88k/delta88.mh: Ditto.
3121 * remote-bug.c: Ditto.
3122 * config/m88k/tm-delta88.h: Ditto.
3123 * config/m88k/nm-delta88v4.h: Ditto.
3124 * config/m88k/xm-delta88.h: Ditto.
3125 * config/m88k/xm-dgux.h: Ditto.
3126 * config/m88k/tm-m88k.h: Ditto.
3127 * config/m88k/nm-m88k.h: Ditto.
3128 * config/m88k/tm-delta88v4.h: Ditto.
3129 * m88k-nat.c: Ditto.
3130 * cxux-nat.c: Ditto.
3131 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3132 and m88*-*-* obsolete.
3133 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3134 m88*-*-* obsolete.
3135
3136 2002-07-24 Andrew Cagney <cagney@redhat.com>
3137
3138 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3139 constant. Same for local pointer variables.
3140 (extract_signed_integer): Ditto.
3141 * defs.h (extract_unsigned_integer): Update.
3142 (extract_signed_integer): Update.
3143
3144 2002-07-24 Andrew Cagney <cagney@redhat.com>
3145
3146 * regcache.c (regcache_raw_write): Change buf parameter to a
3147 constant void pointer.
3148 (regcache_raw_read): Change buf parameter to a void pointer.
3149 (legacy_write_register_gen): Change myaddr parameter a constant
3150 void pointer.
3151 (supply_register): Change val parameter to a const void pointer.
3152 * regcache.h (regcache_raw_write): Update declaration.
3153 (regcache_raw_read): Update declaration.
3154 (supply_register): Update declaration.
3155
3156 2002-07-24 Tom Tromey <tromey@redhat.com>
3157
3158 * defs.h (gdb_readline_wrapper): Declare.
3159 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3160 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3161 * top.c (gdb_readline_wrapper): New function.
3162 (command_line_input): Use it.
3163
3164 2002-07-24 Andrew Cagney <cagney@redhat.com>
3165
3166 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3167 regcache_read and regcache_write.
3168 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3169 * regcache.c: Update.
3170 * sh-tdep.c (sh64_push_arguments): Update comment.
3171 (sh_pseudo_register_read): Update.
3172 (sh_pseudo_register_write): Update.
3173 (sh4_register_read): Update.
3174 (sh4_register_write): Update.
3175 (sh64_pseudo_register_read): Update.
3176 (sh64_pseudo_register_write): Update.
3177 (sh64_register_read): Update.
3178 (sh64_register_write): Update.
3179 * i386-tdep.c (i386_extract_return_value): Update.
3180 (i386_extract_struct_value_address): Update.
3181 (i386_extract_return_value): Update.
3182 * blockframe.c (generic_read_register_dummy): Update.
3183 (generic_call_dummy_register_unwind): Update
3184 * infrun.c (write_inferior_status_register): Update.
3185
3186 2002-07-23 Jim Blandy <jimb@redhat.com>
3187
3188 * parser-defs.h (expression_context_pc): Make this extern.
3189 (Thanks to Michael Snyder.)
3190
3191 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3192
3193 GDB 5.2.1 released from 5.2 branch.
3194 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3195 * README: Update to mention 5.2.1.
3196
3197 2002-07-23 Mark Salter <msalter@redhat.com>
3198
3199 * remote.c (remote_read_bytes): Fix check for error.
3200
3201 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3202
3203 * aix-thread.c (language.h): Include.
3204 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3205 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3206 Print newlines at end of debug messages.
3207 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3208 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3209
3210 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3211
3212 * aix-thread.c (ppc-tdep.h): Include.
3213 (special_register_p): New function.
3214 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3215 (store_regs_user_thread): Use register number information from
3216 gdbarch_tdep struct instead of hardcoded offsets relative to
3217 FIRST_UISA_SP_REGNUM.
3218 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3219 special_register_p() instead of using FPLAST_REGNUM and
3220 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3221 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3222 will be MQ's register number.
3223
3224 2002-07-22 Michael Snyder <msnyder@redhat.com>
3225
3226 * aix-thread.c (ops): Rename to aix_thread_ops.
3227 (base_ops): Rename to base_target.
3228 (ops_attach): Rename to aix_thread_attach.
3229 (ops_detach): Rename to aix_thread_detach.
3230 (ops_resume): Rename to aix_thread_detach.
3231 (ops_wait): Rename to aix_thread_wait.
3232 (ops_kill): Rename to aix_thread_kill.
3233 (init_ops): Rename to init_aix_thread_ops.
3234 (ops_fetch_register): Rename to aix_thread_fetch_register.
3235 (ops_store_register): Rename to aix_thread_store_register.
3236 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3237 (ops_thread_alive): Rename to aix_thread_thread_alive.
3238 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3239 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3240 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3241 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3242 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3243 (store_regs_lib): Rename to store_regs_user_thread.
3244 (store_regs_kern): Rename to store_regs_kernel_thread.
3245
3246 2002-07-22 Michael Snyder <msnyder@redhat.com>
3247
3248 * aix-thread.c (ops_prepare_to_store): Eliminate.
3249 (init_ops): Don't initialize ops.prepare_to_store.
3250 (store_regs_kern): Pre-fetch register buffers from child,
3251 because some registers may not be in the cache. Copy
3252 regs from register cache only if they are cached.
3253 (store_regs_lib): Copy regs from register cache only
3254 if they are cached.
3255 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3256 fill_gprs64): Ditto.
3257
3258 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3259
3260 * aix-thread.c (gdb_assert.h): Include.
3261 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3262 register sizes (from register cache) match size of buffer holding
3263 register data.
3264 (fill_sprs32): Change parameter types to match those in the ptrace()
3265 buffer.
3266 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3267 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3268
3269 2002-07-22 Michael Snyder <msnyder@redhat.com>
3270
3271 * aix-thread.c (supply_sprs64): Cosmetic change.
3272 (supply_sprs32): Cosmetic change.
3273 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3274 (fill_sprs64): Use regcache_collect instead of read_register.
3275 (store_regs_lib): Use regcache_collect instead of
3276 read_register. Use fill_sprs32 instead of fill_sprs64,
3277 if debugging a 32-bit architecture.
3278 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3279 out of the register cache, instead of passing a pointer into
3280 the register cache directly to ptrace. Use regcache_collect
3281 insteaad of read_register.
3282 (ops_prepare_to_store): Use target_read_registers instead
3283 of read_register_bytes.
3284
3285 2002-07-20 Aidan Skinner <aidan@velvet.net>
3286
3287 * MAINTAINERS: Add self under write after approval.
3288
3289 2002-07-20 Aidan Skinner <aidan@velvet.net>
3290
3291 * ada-tasks.c: Change k&r style function definitions to prototyped
3292 form.
3293
3294 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3295
3296 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3297 * x86-64-tdep.c: Include "objfiles.h".
3298 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3299 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3300
3301 2002-07-17 Michal Ludvig <michal@suse.cz>
3302
3303 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3304 (update_context): Initialise cfa variable.
3305
3306 2002-07-17 Michael Snyder <msnyder@redhat.com>
3307
3308 * aix-thread.c: Shorten some long lines.
3309 Bring comments into line with code spec.
3310
3311 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3312
3313 * infrun.c: Re-indent using gdb_indent.sh.
3314
3315 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3316
3317 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3318 Leave the indentation temporarily untouched, to minimize the diffs.
3319
3320 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3321
3322 * stabsread.c: Make os9k sections of the code obsolete,
3323 for real this time.
3324 * stabsread.h: Make os9k sections of the code obsolete.
3325
3326 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3327
3328 * linux-low.c (regsets_store_inferior_registers): Add free()
3329 at the end of a loop to prevent memory leak.
3330 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3331 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3332 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3333 line a comment.
3334 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3335
3336 2002-07-17 Jim Blandy <jimb@redhat.com>
3337
3338 * macrocmd.c (info_macro_command): Remove newline from error
3339 message.
3340
3341 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3342
3343 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3344 (sh_gdbarch_init): Use it for sh-dsp.
3345
3346 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3347
3348 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3349 64-bit DWARF2 format.
3350
3351 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3352
3353 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3354 <sys/proc.h> when not available.
3355
3356 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3357
3358 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3359 * stabsread.c: Make os9k sections of the code obsolete.
3360 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3361 * config/i386/i386os9k.mt: Make file obsolete.
3362 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3363 (COMMON_OBS): Remove os9kread.o
3364 (SFILES): Remove os9kread.c.
3365 (os9kread.o, remote-os9k.o): Make target obsolete.
3366 * remote-os9k.c: Make file obsolete.
3367 * os9kread.c: Make file obsolete.
3368 * Makefile.in
3369
3370 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3371
3372 * NEWS: Mention that the FR30 has been made obsolete.
3373 * fr30-tdep.c: Make file obsolete.
3374 * config/fr30/tm-fr30.h: Ditto.
3375 * config/fr30/fr30.mt: Ditto.
3376 * configure.tgt: Make fr30-*-elf obsolete.
3377 * MAINTAINERS: Make fr30-elf obsolete.
3378
3379 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3380
3381 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3382 found is not inside a section.
3383
3384 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3385
3386 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3387 strerror().
3388 (pdc_realloc): Use xrealloc() instead of realloc().
3389
3390 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3391
3392 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3393 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3394 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3395 macros.
3396
3397 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3398
3399 * aix-thread.c (ptrace_check): Eliminate goto.
3400 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3401 problem.
3402
3403 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3404
3405 * aix-thread.c (gdbcmd.h): Include.
3406 (DEBUG, DBG, DBG2, dbg): Eliminate.
3407 (debug_aix_thread): New static global.
3408 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3409 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3410 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3411 invocations to DBG and DBG2 macros to test against
3412 ``debug_aix_thread'' and call fprintf_unfiltered().
3413 (_initialize_aix_thread): Add new command "set debug aix-thread".
3414
3415 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3416
3417 From Gerhard Tonn <TON@de.ibm.com>:
3418 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3419 instead of supply_register.
3420
3421 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3422
3423 * dwarf2cfi.c: Include "gdb_assert.h".
3424 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3425 non-NULL.
3426 (update_context): Do not use __func__. Add missing ``break''.
3427 (update_context): Do not use __func__.
3428
3429 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3430
3431 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3432 and its setting. Set gdbarch instruction printing functions
3433 directly. For non-rs6000 case use new function
3434 gdb_print_insn_powerpc.
3435 (gdb_print_insn_powerpc): New function.
3436
3437 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3438
3439 * NEWS: Mention that the d30v has been marked obsolete.
3440 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3441 * configure.tgt: Mark d30v-*-* as obsolete.
3442 * d30v-tdep.c: Mark file as obsolete.
3443 * config/d30v/d30v.mt: Ditto.
3444 * config/d30v/tm-d30v.h: Ditto.
3445
3446 2002-07-13 Aidan Skinner <aidan@velvet.net>
3447
3448 * ada-tasks.c (add_task_entry): replace calls to
3449 malloc() with xmalloc
3450 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3451
3452 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3453 ada_finish_decode_line_1, all_sals_for_line
3454 ada_breakpoint_rewrite): replace calls to free() with xfree()
3455
3456 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3457
3458 From Nicholas Duffek (with minor changes by Martin Hunt,
3459 Louis Hamilton, and Kevin Buettner):
3460 * aix-thread.c: New file.
3461
3462 2002-07-12 Petr Sorfa <petrs@caldera.com>
3463
3464 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3465 complaint for invalid attribute class or form.
3466 (read_func_scope): DW_AT_frame_base
3467 better handling of DW_AT_block*.
3468 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3469 better handling of DW_AT_block*.
3470 (read_common_block): DW_AT_location
3471 better handling of DW_AT_block*.
3472 (read_partial_die): DW_AT_location better handling
3473 of DW_AT_block*.
3474 (new_symbol): DW_AT_external better handling of
3475 DW_AT_block*. Proper initialization of variable
3476 "addr".
3477 (attr_form_is_block): New function that returns true
3478 if the attribute's form is of DW_FORM_block*.
3479
3480 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3481
3482 * valops.c (find_method_list): Remove comment about
3483 removed STATIC_MEMFUNCP argument.
3484 (value_find_oload_method_list): Likewise.
3485
3486 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3487
3488 From Nicholas Duffek:
3489 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3490 target_new_objfile_hook.
3491
3492 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3493
3494 From Nicholas Duffek:
3495 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3496 csect.
3497
3498 2002-07-12 Andrew Cagney <cagney@redhat.com>
3499
3500 * MAINTAINERS: Mention --enable-sim-build-warnings.
3501 (m68hc11-elf): Disable sim build warnings.
3502 (m32r-elf): Mark as broken obsolete candidate.
3503 (x86_64-linux-gnu): Mark as buildable with -Werror.
3504 (arm-elf): Change -w to ``,'' which enables warnings but not
3505 -Werror.
3506
3507 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3508
3509 * bcache.h: Update copyright.
3510 (struct bstring, struct bcache): Move definition to "bcache.c".
3511 Replaced by opaque declaration.
3512 (bcache_xfree): Replace free_bcache.
3513 (bcache_xmalloc, bcache_memory_used): Declare.
3514
3515 * bcache.c: Update copyright.
3516 (struct bstring, struct bcache): Moved to here from "bcache.h".
3517 Update comments.
3518 (bcache_xmalloc, bcache_memory_used): New functions.
3519 (bcache_xfree): Replace function free_bcache.
3520
3521 * Makefile.in (objfiles.o): Add $(bcache_h).
3522 (objfiles_h): Remove $(bcache_h).
3523 (symfile.o): Add $(bcache_h).
3524
3525 * symmisc.c: Update copyright.
3526 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3527 (print_objfile_statistics): Use bcache_memory_used.
3528
3529 * symfile.c: Include "bcache.h".
3530 (reread_symbols): Use bcache_xfree.
3531 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3532 (add_psymbol_to_list): Pass psymbol_cache by value.
3533 (add_psymbol_with_dem_name_to_list): Ditto.
3534
3535 * objfiles.h: Update copyright.
3536 (struct bcache): Declare opaque. Do not include "bcache.h".
3537 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3538 bcache'' pointers.
3539 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3540
3541 * objfiles.c: Include "bcache.h". Update copyright.
3542 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3543 macro_cache.
3544 (free_objfile): Use bcache_xfree.
3545
3546 2002-07-11 Grace Sainsbury <graces@redhat.com>
3547
3548 * monitor.c (monitor_fetch_register): Make name a constant.
3549 (monitor_store_register): Same.
3550
3551 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3552
3553 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3554 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3555 (finish_block) For non-function blocks, hash the symbol table. For
3556 function blocks, mark the symbol table as unhashed.
3557 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3558 (msymbol_hash_iw): Likewise.
3559 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3560 value.
3561 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3562 (lookup_minimal_symbol): Likewise for both.
3563 * symtab.h (struct block): Add `hashtable' flag. Comment the
3564 hashtable.
3565 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3566 (ALL_BLOCK_SYMBOLS): Update.
3567 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3568 (struct symbol): Add `hash_next' pointer.
3569 * symtab.c (lookup_block_symbol): Search using the hash table when
3570 possible.
3571 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3572 (search_symbols, find_addr_symbol): Likewise.
3573
3574 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3575 (read_dst_symtab): Likewise.
3576 * jv-lang.c (get_java_class_symtab): Likewise.
3577 * mdebugread.c: Include "gdb_assert.h".
3578 (shrink_block): Assert that the block being modified is not hashed.
3579 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3580 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3581 symbols.
3582 (dump_symtab): Recognize hashed blocks.
3583 * printcmd.c (print_frame_args): Assert that function blocks do not
3584 have hashed symbol tables.
3585 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3586 (fill_in_ada_prototype, debug_print_block): Likewise.
3587 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3588
3589 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3590
3591 * stack.c (print_frame): Use result of frame_address_in_block()
3592 instead of fi->pc when evaluating symbols.
3593 (backtrace_command_1): Ditto.
3594
3595 2002-07-11 Andrew Cagney <cagney@redhat.com>
3596
3597 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3598 Make static.
3599
3600 * arm-tdep.c (arm_register_name): Make return type constant.
3601
3602 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3603
3604 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3605 prototype.
3606 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3607 * s390-tdep.c (s390_fp_regnum): Ditto.
3608 (s390_read_fp): Ditto.
3609 (s390_pop_frame): Ditto.
3610 (_initialize_s390_tdep): Ditto.
3611 * remote.c (get_remote_state): Ditto.
3612 * procfs.c (mappingflags): Ditto.
3613 * memattr.c (_initialize_mem): Ditto.
3614 * mcore-tdep.c (mcore_pop_frame): Ditto.
3615 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3616 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3617 * language.c (set_case_str): Ditto.
3618 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3619 * frv-tdep.c (new_variant): Ditto.
3620 (frv_stopped_data_address): Ditto.
3621 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3622 (context_alloc): Ditto.
3623 (frame_state_alloc): Ditto.
3624 (unwind_tmp_obstack_init): Ditto.
3625 (unwind_tmp_obstack_free): Ditto.
3626 (cfi_read_fp): Ditto.
3627 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3628 (cris_pop_frame): Ditto.
3629 * c-lang.c (scanning_macro_expansion): Ditto.
3630 (finished_macro_expansion): Ditto.
3631 (c_preprocess_and_parse): Ditto.
3632 * gdbarch.sh: Ditto.
3633 * gdbarch.h, gdbarch.c: Regenerate.
3634 * config/mn10200/tm-mn10200.h: Adjust indentation.
3635 * target.c: Adjust indentation.
3636 * symtab.h: Adjust indentation.
3637 * stabsread.h: Adjust indentation.
3638 * remote-es.c: Adjust indentation.
3639 * os9kread.c: Adjust indentation.
3640
3641 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3642
3643 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3644 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3645
3646 2002-07-10 Grace Sainsbury <graces@redhat.com>
3647
3648 * NEWS: Mention m68k, mcore multi-arching.
3649 * MAINTAINERS: Change status of m68k, mcore to reflect
3650 multi-arching.
3651
3652 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3653
3654 * valops.c (find_overload_match): Free oload_syms.
3655
3656 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3657
3658 Define HAVE_SYS_PROC_H if sys/proc.h exists
3659 * configure.in: Add check for sys/proc.h
3660 * config.in: Regenerate.
3661 * configure: Regenerate.
3662
3663 2002-07-09 Grace Sainsbury <graces@redhat.com>
3664
3665 * config/m68k/tm-m68k.h: Remove macros wrapped in
3666 #if !GDB_MULTI_ARCH.
3667
3668 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3669
3670 * config.in, configure: Regenerate.
3671
3672 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3673
3674 * dwarf2cfi.c: Include "gcore.h".
3675 (execute_stack_op): Fix implementation of the
3676 DW_OP_deref and DW_OP_deref_size operators by letting do their
3677 lookup in the target.
3678
3679 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3680
3681 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3682 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3683 tdep->sc_sp_offset.
3684
3685 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3686
3687 Fix PR gdb/595, gdb/602
3688 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3689 Don't call value_cast, just read the vtable pointer; update comments
3690 to match.
3691
3692 2002-07-05 Grace Sainsbury <graces@redhat.com>
3693
3694 * config/mcore/tm-mcore.h: Remove file.
3695 * config/mcore/mcore.mt: Remove definition of TM_FILE
3696 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3697
3698 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3699
3700 * i386bsd-tdep.c: Include "gdb_string.h".
3701
3702 2002-07-04 Grace Sainsbury <graces@redhat.com>
3703
3704 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3705 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3706 mcore-tdep.
3707 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3708 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3709 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3710 (RETVAL_REGNUM): Move macros from tm-mcore.h
3711 (mcore_reg_struct_has_addr): New function.
3712 (mcore_gdbarch_init): Added initializations for the macros removed
3713 from tm-mcore.h.
3714
3715 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3716
3717 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3718 traditonal string branding within the ELF header.
3719
3720 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3721
3722 * symtab.c (remove_params): New function.
3723 (make_symbol_overload_list): Use it instead of cplus_demangle.
3724 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3725
3726 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3727
3728 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3729
3730 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3731 New variables.
3732 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3733 and tdep->sigtramp_end.
3734 * i386obsd-nat.c: New file.
3735 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3736
3737 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3738 Don't call get_current_frame().
3739
3740 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3741
3742 * i386-nat.c (child_post_startup_inferior): New function
3743 calling i386_cleanup_dregs if
3744 I386_USE_GENERIC_WATCHPOINTS is defined.
3745 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3746 conditional to acknowledge that i386-nat.c has its
3747 own child_post_startup_inferior function.
3748
3749 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3750
3751 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3752 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3753 instead of MAX_REGISTER_RAW_SIZE.
3754 (i386_extract_return_value, i386_extract_struct_value_address):
3755 Convert to use regcache.
3756 (i386_gdbarch_init): Set max_register_raw_size and
3757 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3758 Set extract_return_value and extract_struct_value_address instead
3759 of their deprecated variants.
3760
3761 Convert i386 target to generic dummy frames.
3762 * i386-tdep.c: Include "symfile.h".
3763 (i386_frameless_signal_p): Consider a function to be frameless if
3764 the pc points at the first instruction of the function.
3765 (i386_frame_chain): Handle (generic) call dummies.
3766 (i386_frame_saved_pc): Likewise.
3767 (i386_frame_init_saved_regs): Remove code dealing with call
3768 dummies on the stack.
3769 (i386_push_dummy_frame): Removed.
3770 (i386_call_dummy_words): Removed.
3771 (i386_fix_call_dummy): Removed.
3772 (i386_push_return_address): New function.
3773 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3774 parameter, and don't call get_current_frame.
3775 (i386_pop_frame): New function.
3776 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3777 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3778 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3779 call_dummy_length to 0, set call_dummy_words to NULL, set
3780 sizeof_call_dummy_words to 0, set fix_call_dummy to
3781 generic_fix_call_dummy, set pc_in_call_dummy to
3782 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3783 generic_push_dummy_frame, set push_return_address to
3784 i386_push_return_address and set frame_chain_valid to
3785 generic_file_frame_chain_valid.
3786
3787 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3788
3789 * gdbarch.sh (struct regcache): Add opaque declaration.
3790 (EXTRACT_RETURN_VALUE): New architecture method.
3791 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3792 * gdbarch.h, gdbarch.c: Regenerate.
3793 * arch-utils.c (legacy_extract_return_value): New function.
3794 * arch-utils.h (legacy_extract_return_value): Declare.
3795 * values.c (value_being_returned): Re-enable code handling
3796 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3797 deprecated_grub_regcache_for_registers call to block handling
3798 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3799 (EXTRACT_RETURN_VALUE): Do not define.
3800
3801 2002-07-03 Grace Sainsbury <graces@redhat.com>
3802
3803 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3804 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3805 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3806 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3807 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3808 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3809 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3810 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3811 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3812 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3813 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3814 argument so the function fits the prototype in the architecture
3815 vector.
3816 (mcore_pop_frame): Remove argument so the function fits the
3817 prototype. Use get_current_frame instead of the argument.
3818 (mcore_push_arguments): Change type of struct_return so the
3819 function can be used in the architecture vector.
3820 (mcore_store_struct_return): Add.
3821 (mcore_frame_init_saved_regs): Add.
3822 (mcore_gdbarch_init): Add function calls to replace the macros
3823 removed from tm-mcore.h
3824
3825 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3826
3827 * infcmd.c (print_return_value): Remove compatibility code calling
3828 deprecated_grub_regcache_for_registers.
3829
3830 * values.c: Include "regcache.h".
3831 (value_being_returned): Update. Use
3832 deprecated_grub_regcache_for_registers to extract the register
3833 buffer address.
3834 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3835 ``struct regcache''.
3836 * Makefile.in (values.o): Add dependency on $(regcache_h).
3837
3838 * inferior.h (run_stack_dummy): Change type of second parameter to
3839 a ``struct regcache''.
3840 * valops.c (hand_function_call): Change type of retbuf to ``struct
3841 regcache''. Allocate using regcache_xmalloc, clean using
3842 make_cleanup_regcache_xfree.
3843 * infcmd.c (run_stack_dummy): Update. Use
3844 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3845
3846 * regcache.c (do_regcache_xfree): New function.
3847 (make_cleanup_regcache_xfree): New function.
3848 * regcache.h (make_cleanup_regcache_xfree): Declare.
3849
3850 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3851
3852 * event-top.c (command_line_handler): Don't read past
3853 beginning of buffer.
3854
3855 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3856
3857 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3858 struct frame_id.
3859 (varobj_create): Store frame_id for root.
3860 (varobj_gen_name): Use xasprintf.
3861 (varobj_update): Save and restore frame using get_frame_id() and
3862 frame_find_by_id().
3863 (create_child): Use xasprintf.
3864 (new_root_variable): Initialize frame_id.
3865 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3866 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3867 to prevent memory leak.
3868
3869 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3870
3871 * valops.c (hand_function_call): Move declaration of retbuf to
3872 start of function, allocate using malloc, add a cleanup but before
3873 the inf_status cleanup, cleanup the buffer. Rename local variable
3874 old_chain to inf_status_cleanup.
3875
3876 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3877
3878 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3879
3880 * cli/cli-decode.c (cmd_func_p): New function.
3881 (cmd_func): New function.
3882
3883 * command.h: Add cmd_func() and cmd_func_p().
3884
3885 2002-07-03 Grace Sainsbury <graces@redhat.com>
3886
3887 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3888 (REGISTER_SIZE): Remove.
3889 (MAX_REGISTER_RAW_SIZE): Remove.
3890 (REGISTER_VIRTUAL_TYPE): Remove.
3891 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3892 (REGISTER_NAME): Remove.
3893 (USE_GENERIC_DUMMY_FRAMES): Remove.
3894 (CALL_DUMMY): Remove.
3895 (CALL_DUMMY_START_OFFSET): Remove.
3896 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3897 (CALL_DUMMY_LOCATION): Remove.
3898 (FIX_CALL_DUMMY): Remove.
3899 (CALL_DUMMY_ADDRESS): Remove.
3900 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3901 (SAVE_DUMMY_FRAME_TOS): Remove.
3902 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3903 (mcore_register_virtual_type): New function.
3904 (mcore_register_byte): New function.
3905 (mcore_register_size): New function.
3906 (mcore_register_name): New function.
3907 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3908 macros removed from tm-mcore.h.
3909 (mcore_dump_tdep): Add.
3910 (_initialize_mcore_tdep): Add gdbarch_register call.
3911
3912 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3913
3914 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3915 frameless_look_for_prologue, such that we actually call this
3916 function.
3917
3918 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3919
3920 * frame.h (frame_address_in_block): New function.
3921
3922 * blockframe.c (frame_address_in_block): New function extracted
3923 from get_frame_block().
3924 (get_frame_block): Use frame_address_in_block().
3925 (block_innermost_frame): Use frame_address_in_block() to match
3926 the frame pc address against the block boundaries rather than
3927 the frame pc directly. This prevents a failure when a frame pc
3928 is actually a return-address pointing immediately after the end
3929 of the given block.
3930
3931 2002-07-02 Grace Sainsbury <graces@redhat.com>
3932
3933 * MAINTAINERS: Add self under write after approval.
3934
3935 2002-07-02 Grace Sainsbury <graces@redhat.com>
3936
3937 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3938 used in architecture vector. The default is
3939 m68k_local_breakpoint_from_pc.
3940 (m68k_local_breakpoint_from_pc): Add.
3941 (enum): Add register numbers from tm-m68k.h.
3942 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3943 vector.
3944 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3945 GDB_MULTI_ARCH_PARTIAL.
3946 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3947 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3948 m68k-tdep.c.
3949 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3950 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3951 to enum in m68k-tdep.c
3952
3953 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3954
3955 * solib-osf.c (open_map): Compute the list of shared libraries
3956 loaded by the inferior, rather than the list of libraries loaded
3957 by GDB itself. Otherwise, GDB ends up reading the symbols from
3958 the wrong shared libraries...
3959
3960 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3961
3962 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3963 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3964 macros.
3965 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3966 Remove functions.
3967 (FRAMELESS_SIGNAL): Remove function.
3968 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3969 i386_linux_saved_pc_after_call): Removed.
3970 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3971 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3972 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3973
3974 * i386-tdep.c (i386_frameless_signal_p): New function.
3975 (i386_frame_chain): Deal with frameless signals.
3976 (i386_sigtramp_saved_sp): New function.
3977 (i386_frame_saved_pc): Deal with frameless signals.
3978 (i386_saved_pc_after_call): Make sure the correct value is
3979 returned just after entry into a sigtramp.
3980 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3981 i386fbsd4_sc_sp_offset): New variables.
3982 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3983 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3984 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3985 similiar to what we already did for sc_pc_offset.
3986 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3987 tdep->sc_sp_offset.
3988
3989 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3990
3991 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3992
3993 * config/i386/tm-x86-64linux.h: New.
3994 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3995 definitions.
3996 * config/i386/nm-x86-64.h: Rename to ...
3997 * config/i386/nm-x86-64linux.h: ... this one.
3998 * config/i386/x86-64linux.mh: Reflect the above change.
3999
4000 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4001
4002 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4003 with sigcontext_addr. Add sc_sp_offset.
4004 (i386bsd_sigtramp_saved_pc): Remove prototype.
4005 (i386bsd_sicontext_addr): Add prototype.
4006 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4007 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4008 (i386_svr4_sigtramp_saved_pc): Removed.
4009 (i386_svr4_sigcontext_addr): New function.
4010 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4011 Initialize tdep->sigcontext_addr instead. Initialize
4012 tdep->sc_pc_offset and tdep->sc_sp_offset.
4013 (i386_gdbarch_init): Likewise.
4014 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4015 any more.
4016 (i386bsd_sigtramp_saved_pc): Remove function.
4017 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4018 Initialize tdep->sigcontext_addr instead. Initialize
4019 tdep->sc_pc_offset.
4020 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4021 of tdep->sigtramp_saved_pc.
4022 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4023 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4024 instead.
4025
4026 * i386-tdep.c (i386_frameless_function_invocation,
4027 i386_frame_num_args, i386_frame_init_saved_regs,
4028 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4029 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4030 i386_extract_return_value, i386_store_return_value,
4031 i386_extract_struct_value_address, i386_register_virtual_type,
4032 i386_register_convertible, i386_register_convert_to_virtual,
4033 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4034 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4035 static.
4036
4037 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4038
4039 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4040
4041 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4042 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4043 this macro. Include "value.h".
4044
4045 2002-06-30 Aidan Skinner <aidan@velvet.net>
4046
4047 * ada-exp.tab.c: remove as it's a generated file
4048 * ada-lex.c: remove as it's a generated file
4049
4050 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4051
4052 * config/i386/tm-i386.h (struct frame_info, struct
4053 frame_saved_regs, struct value, struct type): Remove forward
4054 declarations.
4055
4056 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4057 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4058 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4059 (FILL_FPXREGSET): Define.
4060
4061 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4062
4063 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4064 i[3456]86-*-netbsd* case.
4065 * config/i386/tm-obsd.h: Removed.
4066 * config/i386/obsd.mt: Removed.
4067 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4068 core-aout.o.
4069 (MH_CFLAGS): Add -DYYDEBUG=0.
4070
4071 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4072 i386nbsd_sc_pc_offset on OpenBSD too.
4073
4074 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4075 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4076 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4077 define.
4078 * i386bsd-tdep.c: Include "arch-utils.h".
4079 (i386bsd_aout_in_solib_call_trampoline): New function.
4080 (i386bsd_init_abi): Set in_solib_call_trampoline to
4081 i386bsd_aout_in_solib_call_trampoline.
4082 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4083 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4084
4085 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4086
4087 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4088 (struct obstack, struct bcache): Add opaque declarations.
4089 * Makefile.in (macrotab_h): Update
4090
4091 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4092
4093 * blockframe.c (generic_find_dummy_frame): Change return type to
4094 ``struct regcache''.
4095 (struct dummy_frame): Replace field ``registers'' with regcache, a
4096 struct regcache object.
4097 (generic_find_dummy_frame): Update.
4098 (generic_push_dummy_frame): Update. Use regcache_xfree,
4099 regcache_xmalloc and regcache_cpy.
4100 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4101 regcache_xfree.
4102 (deprecated_generic_find_dummy_frame): Update.
4103 (generic_read_register_dummy): Update. Use
4104 regcache_read_as_address.
4105 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4106 (generic_get_saved_register): Update. Use regcache_read.
4107
4108 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4109
4110 * Makefile.in (objfiles_h): Add $(bcache_h).
4111 * objfiles.h: Include "bcache.h".
4112
4113 * Makefile.in (symtab_h): Remove $(bcache_h).
4114 * symtab.h: Do not include "bcache.h".
4115
4116 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4117
4118 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4119 generic_func_frame_chain_valid.
4120
4121 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4122
4123 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4124 * config/i386/tm-fbsd.h: Likewise.
4125
4126 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4127
4128 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4129 generic_unwind_get_saved_register.
4130
4131 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4132
4133 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4134 * regcache.c (supply_register): Add missing argument to
4135 register_buffer call.
4136
4137 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4138
4139 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4140 Solaris /bin/grep does not not like it. From Peter Schauer.
4141
4142 2002-06-26 Tom Tromey <tromey@redhat.com>
4143
4144 * command.h (add_setshow_cmd): Declare.
4145 (add_setshow_cmd_full): Declare.
4146 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4147 returns void. Use add_setshow_cmd_full.
4148 (add_setshow_cmd_full): New function.
4149 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4150 (add_setshow_boolean_cmd): Likewise.
4151
4152 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4153
4154 * config/vax/tm-vax.h: Protect from multiple inclusion.
4155 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4156 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4157 * config/vax/tm-vaxbsd.h: ...here. New file.
4158 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4159
4160 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4161
4162 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4163 (BELIEVE_PCC_PROMOTION): Remove.
4164 (AP_REGNUM): Move to...
4165 * config/vax/nm-vax.h: ...here.
4166 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4167 (vax_breakpoint_from_pc): New function.
4168 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4169 and gdbarch_believe_pcc_promotion.
4170
4171 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4172
4173 * Makefile.in (vax_tdep_h): Define.
4174 (vax-tdep.o): Use $(vax_tdep_h).
4175 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4176 (vax_dump_tdep): New function.
4177 (_initialize_vax_tdep): Register vax_dump_tdep.
4178 * vax-tdep.h: Include osabi.h.
4179 (struct gdbarch_tdep): New.
4180
4181 2002-06-26 Andrew Cagney <cagney@redhat.com>
4182
4183 * frame.h (deprecated_generic_find_dummy_frame): Rename
4184 generic_find_dummy_frame.
4185 * blockframe.c (generic_find_dummy_frame): Make static.
4186 (deprecated_generic_find_dummy_frame): New function.
4187 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4188 generic_find_dummy_frame with deprecated_find_dummy_frame.
4189 (sh64_nofp_frame_init_saved_regs): Ditto.
4190 (sh_fp_frame_init_saved_regs): Ditto.
4191 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4192 (s390_frame_chain): Ditto.
4193 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4194
4195 2002-06-26 Grace Sainsbury <graces@redhat.com>
4196
4197 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4198 gdbarch vector are at the top.
4199 (NUM_REGS): Remove.
4200 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4201 (FRAME_ARGS_ADDRESS): Remove.
4202 (FRAME_LOCALS_ADDRESS): Remove.
4203 (FRAME_NUM_ARGS): Remove.
4204 (FRAME_ARGS_SKIP): Remove.
4205 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4206 (m68k_gdbarch_init): Add gdbarch initializations for macros
4207 undefined in tm-m68k.h
4208
4209 2002-06-26 Grace Sainsbury <graces@redhat.com>
4210
4211 * monitor.h: Add the function regname to monitor_ops
4212 structure. This way NUM_REGS does not have to be a constant.
4213 * monitor.c (monitor_fetch_register): Added support for regname
4214 function. The function is called if the array regnames is NULL.
4215 (monitor_store_register): Same.
4216 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4217 regnames array.
4218 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4219 cpu32bug_cmds.regname to point to new function.
4220 * abug-rom.c (abug_regname): Same as above.
4221 (init_abug_cmds): Same.
4222 * dbug-rom.c (dbug_regname): Same as above.
4223 (init_dbug_cmds): Same.
4224 * remote-est.c (est_regname): Same.
4225 (init_est_cmds): Same.
4226 * rom68k-rom.c (rom68k_regname): Same.
4227 (init_rom68k_cmds): Same.
4228
4229 2002-06-25 Tom Tromey <tromey@redhat.com>
4230
4231 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4232
4233 2002-06-25 Andrew Cagney <cagney@redhat.com>
4234
4235 * infrun.c (stop_registers): Change variable's type to ``struct
4236 regcache'''.
4237 (xmalloc_inferior_status): Delete function.
4238 (free_inferior_status): Delete function.
4239 (normal_stop): Use regcache_cpy.
4240 (struct inferior_status): Change type of fields ``stop_registers''
4241 and ``registers'' to ``struct regcache''.
4242 (write_inferior_status_register): Use regcache_write.
4243 (save_inferior_status): Instead of calling
4244 xmalloc_inferior_status, allocate the inf_status buffer directly.
4245 Use regcache_dup_no_passthrough and regcache_dup to save the
4246 buffers.
4247 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4248 Replace the stop_registers regcache instead of overriding it. Use
4249 regcache_xfree. Instead of calling free_inferior_status, xfree
4250 the buffer directly.
4251 (discard_inferior_status): Use regcache_xfree. Instead of calling
4252 free_inferior_status, xfree the buffer directly.
4253 (build_infrun): Use regcache_xmalloc.
4254 (_initialize_infrun): Delete redundant call to build_infrun.
4255
4256 * Makefile.in (infcmd.o): Add $(regcache_h).
4257
4258 * infcmd.c: Include "regcache.h".
4259 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4260 obtain the address of `stop_registers' register buffer.
4261 (print_return_value): Ditto.
4262
4263 * inferior.h (struct regcache): Add opaque declaration.
4264 (stop_registers): Change variable's declared type to ``struct
4265 regcache''.
4266
4267 2002-06-24 Tom Tromey <tromey@redhat.com>
4268
4269 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4270 * target.c (initialize_targets): Fixed typo in
4271 trust-readonly-sections `show' documentation.
4272
4273 * main.c: Marked all strings with _().
4274
4275 2002-06-24 Don Howard <dhoward@redhat.com>
4276
4277 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4278 that means max CORE_ADDR+1.
4279 (lookup_mem_region): Ditto.
4280 (mem_info_command): Ditto.
4281
4282 2002-06-24 Grace Sainsbury <graces@redhat.com>
4283
4284 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4285 (REGISTER_BYTES_OK): Remove.
4286 (REGISTER_BYTES): Remove.
4287 (STORE_STRUCT_RETURN): Remove.
4288 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4289 (STORE_RETURN_VALUE): Remove.
4290 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4291 (FRAME_CHAIN): Remove.
4292 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4293 (FRAME_SAVED_PC): Remove.
4294 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4295 (m68k_store_struct_return): Add.
4296 (m68k_deprecated_extract_return_value): Add.
4297 (m68k_deprecated_extract_struct_value_address): Add.
4298 (m68k_store_return_value): Add.
4299 (m68k_frame_chain): Add.
4300 (m68k_frameless_function_invocation): Add.
4301 (m68k_frame_saved_pc): Add.
4302 (m68k_gdbarch_init): added set_gdbarch calls for new
4303 functions and deleted macros.
4304
4305 2002-06-23 Tom Tromey <tromey@redhat.com>
4306
4307 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4308 (ALLDEPFILES): Likewise.
4309 (udiheaders): Removed.
4310 (udip2soc.o): Likewise.
4311 (udi2go32.o): Likewise.
4312 (udr.o): Likewise.
4313 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4314
4315 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4316
4317 * infrun.c (_initialize_infrun): Delete unnecessary call to
4318 build_infrun.
4319
4320 * regcache.h: Update comments describing the regcache_cpy family
4321 of functions.
4322 (regcache_save, regcache_restore): Delete declaration.
4323 (regcache_save_no_passthrough): Delete declaration.
4324 (regcache_restore_no_passthrough): Delete declaration.
4325 * regcache.c (regcache_save): Delete function.
4326 (regcache_save_no_passthrough): Delete function.
4327 (regcache_restore): Delete function.
4328 (regcache_restore_no_passthrough): Delete function.
4329
4330 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4331
4332 * config/m68k/tm-m68k.h: Fix typo.
4333 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4334 (m68k_frame_init_saved_regs): Declare.
4335
4336 2002-06-21 Jim Blandy <jimb@redhat.com>
4337
4338 Remove some vestiges of Harris 88k support.
4339 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4340 register numbering quirk.
4341 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4342 odd symbols occurring in Harris 88k ELF targets.
4343
4344 2002-06-21 Tom Tromey <tromey@redhat.com>
4345
4346 * gdb_locale.h: New file.
4347 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4348 (defs_h): Added gdb_locale.h.
4349 * configure, config.in: Rebuilt.
4350 * configure.in (PACKAGE): Define.
4351 * defs.h: Include gdb_locale.h.
4352 * main.c (captured_main): Call setlocale, bindtextdomain,
4353 textdomain.
4354
4355 2002-06-21 Dave Brolley <brolley@redhat.com>
4356
4357 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4358 * config/frv/frv.mt: New file.
4359 * config/frv/tm-frv.h: New file.
4360 * configure.tgt: Support frv-*-*.
4361 * Makefile.in (frv-tdep.o): New target.
4362 * frv-tdep.c: New file.
4363 * NEWS: Mention frv.
4364
4365 2002-06-21 Dave Brolley <brolley@redhat.com>
4366
4367 * MAINTAINERS: Add self to "Write After Approval" list.
4368
4369 2002-06-21 Grace Sainsbury <graces@redhat.com>
4370
4371 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4372 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4373 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4374 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4375 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4376
4377 * m68k-tdep.c: Include arch-utils.h
4378 (m68k_register_raw_size): Add.
4379 (m68k_register_virtual_size): Add.
4380 (m68k_register_virtual_type): Add.
4381 (m68k_register_name): Add.
4382 (m68k_stack_align): Add.
4383 (m68k_register_byte): Add.
4384 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4385 tm-m68k.h.
4386
4387 2002-06-21 Grace Sainsbury <graces@redhat.com>
4388
4389 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4390 m68k_find_saved_regs.
4391 (m68k_pop_frame): Removed saved_regs structure, and replaced
4392 references to it with frame->saved_regs.
4393 (m68k_gdbarch_init): Added function calls to initialize the
4394 gdbarch structure.
4395 (m68k_fix_call_dummy): Add.
4396 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4397 (CALL_DUMMY): Remove.
4398 (CALL_DUMMY_LENGTH): Remove.
4399 (CALL_DUMMY_START_OFFSET): Remove.
4400 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4401 (FIX_CALL_DUMMY): Remove.
4402 (PUSH_DUMMY_FRAME): Remove.
4403 (POP_FRAME): Remove.
4404
4405 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4406
4407 * parse.c (parse_fprintf): New function used to avoid calls to
4408 fprintf in bison parser generated debug code.
4409 * parser-defs.h: Declaration of new parse_fprintf function.
4410 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4411 Set YYDEBUG to 1 by default.
4412 Set YYFPRINTF as parse_fprintf.
4413
4414 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4415
4416 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4417 encoding anymore.
4418 (pointer_encoding, enum ptr_encoding): New.
4419 (execute_cfa_program): Take care about pointer encoding.
4420 (dwarf2_build_frame_info): Only call parse_frame_info for
4421 .debug_frame and .eh_frame.
4422 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4423 fixed augmentation handling, added relative addressing,
4424 ignore duplicate FDEs. Added comments.
4425 * dwarf2cfi.c: Reindented.
4426
4427 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4428
4429 * event-top.c (command_handler): Don't use space_at_cmd_start
4430 unless there is sbrk() on the host. Assign time and space data
4431 to union fields of the appropriate length.
4432
4433 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4434
4435 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4436 x86_64_register_name. Return type changed to 'const char *'.
4437 (x86_64_register_name2nr): Rename to x86_64_register_number.
4438 (x86_64_gdbarch_init): Update to reflect the change.
4439 * x86-64-tdep.h: Ditto.
4440 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4441 (supply_fpregset): Ditto.
4442
4443 2002-06-19 Andrew Cagney <cagney@redhat.com>
4444
4445 * regcache.h: Update copyright.
4446 (struct regcache, struct gdbarch): Add opaque declarations.
4447 (current_regcache): Declare global variable.
4448 (regcache_read, regcache_write): Add gdbarch parameter.
4449 (regcache_save, regcache_save_no_passthrough)
4450 (regcache_restore, regcache_restore_no_passthrough)
4451 (regcache_dup, regcache_dup_no_passthrough)
4452 (regcache_cpy, regcache_cpy_no_passthrough)
4453 (deprecated_grub_regcache_for_registers)
4454 (deprecated_grub_regcache_for_register_valid)
4455 (regcache_valid_p): Add function declarations.
4456
4457 * regcache.c: Update copyright.
4458 (regcache_descr_handle): New global variable.
4459 (struct regcache_descr): Define.
4460 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4461 (regcache_descr, xfree_regcache_descr): New functions.
4462 (struct regcache): Define.
4463 (regcache_xmalloc, regcache_xfree): New functions.
4464 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4465 (regcache_dup, regcache_dup_no_passthrough): New functions.
4466 (regcache_valid_p, regcache_read_as_address): New functions.
4467 (deprecated_grub_regcache_for_registers): New function.
4468 (deprecated_grub_regcache_for_register_valid): New function.
4469 (current_regcache): New global variable.
4470 (register_buffer): Add regcache parameter. Update calls.
4471 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4472 (read_register_gen, write_register_gen): Update register_buffer
4473 call. Test for legacy_p instead of gdbarch_register_read_p or
4474 gdbarch_register_write_p.
4475 (regcache_collect): Update register_buffer call.
4476 (build_regcache): Rewrite. Use deprecated grub functions.
4477 (regcache_save, regcache_save_no_passthrough): New functions.
4478 (regcache_restore, regcache_restore_no_passthrough): New
4479 functions.
4480 (_initialize_regcache): Create the regcache_data_handle. Swap
4481 current_regcache global variable.
4482
4483 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4484 parameter to regcache_read and regcache_write calls.
4485 (sh4_register_read): Ditto.
4486 (sh64_pseudo_register_read): Ditto.
4487 (sh64_register_read): Ditto.
4488 (sh_pseudo_register_write): Ditto.
4489 (sh4_register_write): Ditto.
4490 (sh64_pseudo_register_write): Ditto.
4491 (sh64_register_write): Ditto.
4492
4493 * defs.h (XCALLOC): Define.
4494
4495 2002-06-19 Grace Sainsbury <graces@redhat.com>
4496
4497 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4498 * m68k-tdep.c (m68k_gdbarch_init): Added.
4499 (m68k_dump_tdep): Added.
4500
4501 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4502
4503 * ada-lang.c (fill_in_ada_prototype): Update comment.
4504
4505 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4506
4507 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4508 MIPS_ABI_LAST.
4509 (mips_abi_string, mips_abi_strings): New.
4510 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4511 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4512 tdep->mips_abi_string. Honor mips_abi_string. Default to
4513 O32 if no ABI is found.
4514 (mips_dump_tdep): Use mips_abi_strings.
4515 (mips_abi_update): New function.
4516 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4517 ``set mips abi'' and ``show mips abi''. Check the size of
4518 mips_abi_strings.
4519
4520 2002-06-19 Andrew Cagney <cagney@redhat.com>
4521
4522 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4523 constant.
4524
4525 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4526
4527 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4528 current frame using only the first stack size adjustment. All
4529 subsequent size adjustments are not considered to be part of
4530 the "static" part of the current frame.
4531 Compute the address of the saved registers relative to the
4532 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4533 in use in this frame.
4534
4535 2002-06-18 Don Howard <dhoward@redhat.com>
4536
4537 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4538 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4539 suggesting this solution.
4540
4541 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4542
4543 * config/romp/xm-rtbsd.h: Delete file.
4544 * config/romp/rtbsd.mh: Delete file.
4545
4546 2002-06-18 Keith Seitz <keiths@redhat.com>
4547
4548 * breakpoint.c (condition_command): Post breakpoint_modify
4549 when a condition is added to an existing breakpoint.
4550 (commands_command): Likewise for commands.
4551 (set_ignore_count): Likewise for ignore counts.
4552 If no tty, do not simply return, still need to send event
4553 notification.
4554 (ignore_command): Only print a newline if the command came
4555 from a tty.
4556 Don't call breakpoints_changed, since this is now properly
4557 handled by set_ignore_count.
4558
4559 2002-06-18 Andrew Cagney <cagney@redhat.com>
4560
4561 * MAINTAINERS: Note that cris-elf target can be compiled with
4562 -Werror.
4563 * cris-tdep.c (cris_register_name): Make return type constant.
4564 (cris_breakpoint_from_pc): Ditto.
4565
4566 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4567
4568 * frame.h (struct frame_info): Change type of context to
4569 'struct context'.
4570
4571 2002-06-17 Andrew Cagney <cagney@redhat.com>
4572
4573 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4574 pointer.
4575 * gdbarch.h, gdbarch.c: Regenerate.
4576 * config/mips/tm-mips.h (mips_register_name): Update.
4577 * i386-tdep.h (i386_register_name): Update.
4578 * mips-tdep.c (mips_register_name): Update
4579 * alpha-tdep.c (alpha_register_name): Update.
4580 * arch-utils.c (legacy_register_name): Update.
4581 * arch-utils.h (legacy_register_name): Update.
4582 * avr-tdep.c (avr_register_name): Update.
4583 * ia64-tdep.c (ia64_register_name): Update.
4584 * i386-tdep.c (i386_register_name): Update.
4585 * sparc-tdep.c (sparc32_register_name): Update.
4586 (sparc64_register_name): Update.
4587 (sparclite_register_name): Update.
4588 (sparclet_register_name): Update.
4589 * sh-tdep.c (sh_generic_register_name): Update.
4590 (sh_sh_register_name): Update.
4591 (sh_sh3_register_name): Update.
4592 (sh_sh3e_register_name): Update.
4593 (sh_sh_dsp_register_name): Update.
4594 (sh_sh3_dsp_register_name): Update.
4595 (sh_sh4_register_name): Update.
4596 (sh_sh64_register_name): Update.
4597 * s390-tdep.c (s390_register_name): Update.
4598 * rs6000-tdep.c (rs6000_register_name): Update.
4599 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4600 (ns32k_register_name_32382): Update.
4601 * d10v-tdep.c (d10v_ts2_register_name): Update.
4602 (d10v_ts3_register_name): Update.
4603 * xstormy16-tdep.c (xstormy16_register_name): Update.
4604 * vax-tdep.c (vax_register_name): Update.
4605 * v850-tdep.c (v850_register_name): Update.
4606 * m68hc11-tdep.c (m68hc11_register_name): Update.
4607 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4608 (am33_register_name): Update.
4609
4610 2002-06-17 Grace Sainsbury <graces@redhat.com>
4611
4612 * m68k-tdep.c: Reindented.
4613
4614 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4615
4616 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4617 list of predefined types.
4618
4619 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4620
4621 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4622 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4623 REGISTER_CONVERT_TO_RAW): Remove defines.
4624 (i386_register_virtual_type, i386_register_convertible,
4625 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4626 Remove prototypes.
4627 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4628 macros mentioned above.
4629
4630 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4631 (i386lynx_saved_pc_after_call): Remove prototype.
4632 * i386ly-tdep.c: Include "i386-tdep.h".
4633 (i386lynx_saved_pc_after_call): Make static. Use
4634 read_memory_nobpt instead of read_memory. Use
4635 read_memory_unsigned_integer instead of read_memory_integer.
4636 (i386lynx_init_abi): New function.
4637 (i386lynx_coff_osabi_sniffer): New function.
4638 (_initialize_i386bsd_tdep): New function.
4639
4640 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4641 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4642 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4643 (i386_fix_call_dummy): Remove prototype.
4644 * i386-tdep.c (i386_call_dummy_words): New variable.
4645 (i386_gdbarch_init): Adjust for removal of the
4646 macros mentioned above.
4647
4648 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4649
4650 * command.h (add_setshow_auto_boolean_cmd): Replace
4651 add_set_auto_boolean_cmd.
4652 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4653 add_set_auto_boolean_cmd.
4654 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4655 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4656 mask-address'' command.
4657 (show_mask_address): Add cmd parameter.
4658 * remote.c (add_packet_config_cmd): Update. Change type of
4659 set_func and show_func to cmd_sfunc_ftype.
4660 (_initialize_remote): Update `set remote Z-packet'
4661 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4662 (show_remote_protocol_e_packet_cmd): Ditto.
4663 (show_remote_protocol_E_packet_cmd): Ditto.
4664 (show_remote_protocol_P_packet_cmd): Ditto.
4665 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4666 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4667 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4668 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4669 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4670 (show_remote_protocol_Z_packet_cmd): Ditto.
4671 (show_remote_protocol_binary_download_cmd): Ditto.
4672 (show_remote_cmd): Pass NULL to all of above.
4673
4674 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4675
4676 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4677 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4678 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4679 POP_FRAME): Remove defines.
4680 (i386_push_arguments, i386_store_struct_return,
4681 i386_extract_return_value, i386_store_return_value,
4682 i386_extract_struct_value_address, i386_push_dummy_frame,
4683 i386_pop_frame): Renove prototypes.
4684 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4685 macros mentioned above.
4686
4687 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4688
4689 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4690 add_set_boolean_cmd.
4691 (add_setshow_cmd): New function.
4692 * command.h (add_setshow_boolean_cmd): Replace
4693 add_set_boolean_cmd.
4694 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4695 and ``set rdiromatzero''.
4696 * maint.c (_initialize_maint_cmds): Update commented out code.
4697 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4698 * target.c (initialize_targets): Update `set
4699 trust-readonly-sections'.
4700 * remote.c (_initialize_remote): Update `set remotebreak'.
4701
4702 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4703
4704 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4705 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4706 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4707 fit into multi-arch framework.
4708 (i386_breakpoint_from_pc): New function.
4709 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4710 above.
4711
4712 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4713 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4714 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4715 (i386_frameless_function_invocation, i386_frame_num_args,
4716 i386_frame_init_saved_regs): Remove prototypes.
4717 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4718 macros mentioned above.
4719
4720 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4721
4722 * cli/cli-decode.c (set_cmd_cfunc): Update.
4723 (set_cmd_sfunc): Update.
4724 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4725 (set_cmd_sfunc, set_cmd_cfunc): Update.
4726 * cli/cli-decode.h: Update.
4727
4728 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4729
4730 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4731 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4732
4733 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4734
4735 * defs.h (auto_boolean): Declare enum.
4736 * command.h (cmd_auto_boolean): Delete enum.
4737 * mips-tdep.c (mask_address_var): Update.
4738 (mips_mask_address_p): Update.
4739 (show_mask_address): Update.
4740 * remote.c (struct packet_config): Update.
4741 (update_packet_config): Update.
4742 (show_packet_config_cmd): Update.
4743 (packet_ok): Update.
4744 (add_packet_config_cmd): Update.
4745 (_initialize_remote):
4746 * command.h: Update.
4747 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4748 (do_setshow_command): Update.
4749 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4750 * cli/cli-decode.h: Update.
4751
4752 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4753
4754 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4755 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4756 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4757 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4758 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4759 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4760
4761 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4762 list of DJGPP COFF targets.
4763
4764 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4765 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4766 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4767 (FP0_REGNUM): Remove define.
4768 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4769 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4770 (i386_register_virtual_size): Remove protoype.
4771 * i386-tdep.c (i386_register_virtual_size): Removed.
4772 (i386_extract_return_value, i386_store_return_value): Use
4773 FP0_REGNUM instead of NUM_FREGS to determine whether the
4774 floating-point registers are available.
4775 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4776 Adjust for removal of macros mentioned above.
4777
4778 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4779
4780 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4781 comments.
4782 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4783 Remove prototypes.
4784 (supply_gregset, fill_gregset): Remove use of register keyword and
4785 remove declaration for regmap. Use I386_NUM_GREGS instead of
4786 NUM_REGS and NUM_FREGS.
4787 (FPREGSET_FSAVE_OFFSET): Remove.
4788 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4789 NUM_FREGS to determine whether the floating-point registers are
4790 available.
4791
4792 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4793 gnu_store_registers): Replace usage of NUM_GREGS with
4794 I386_NUM_GREGS.
4795
4796 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4797 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4798 usage of NUM_GREGS with I386_NUM_GREGS.
4799
4800 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4801
4802 * i386bsd-nat.c: Include "i386-tdep.h".
4803 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4804 I386_NUM_GREGS.
4805
4806 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4807 and associated comment. They no longer make any sense, since we
4808 don't use this file anymore on Linux.
4809
4810 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4811 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4812 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4813 elements in these arrays.
4814 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4815 MAX_NUM_REGS.
4816
4817 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4818
4819 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4820 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4821
4822 2002-06-14 Andrew Cagney <cagney@redhat.com>
4823
4824 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4825 EXTRACT_RETURN_VALUE.
4826 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4827 EXTRACT_STRUCT_VALUE_ADDRESS.
4828 * gdbarch.h, gdbarch.c: Regenerate.
4829
4830 * values.c (value_being_returned): Handle
4831 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4832 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4833
4834 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4835 * arm-tdep.c (arm_gdbarch_init): Update.
4836 * avr-tdep.c (avr_gdbarch_init): Update.
4837 * cris-tdep.c (cris_gdbarch_init): Update.
4838 * d10v-tdep.c (d10v_gdbarch_init): Update.
4839 * ia64-tdep.c (ia64_gdbarch_init): Update.
4840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4841 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4842 * s390-tdep.c (s390_gdbarch_init): Update.
4843 * sh-tdep.c (sh_gdbarch_init): Update.
4844 * s390-tdep.c (s390_gdbarch_init): Update.
4845 * sparc-tdep.c (sparc_gdbarch_init): Update.
4846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4847 * v850-tdep.c (v850_gdbarch_init): Update.
4848 * vax-tdep.c (vax_gdbarch_init): Update.
4849 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4850 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4851
4852 * config/arc/tm-arc.h: Update.
4853 * config/d30v/tm-d30v.h: Update.
4854 * config/fr30/tm-fr30.h: Update.
4855 * config/h8300/tm-h8300.h: Update.
4856 * config/h8500/tm-h8500.h: Update.
4857 * config/i386/tm-i386.h: Update.
4858 * config/i386/tm-ptx.h: Update.
4859 * config/i386/tm-symmetry.h: Update.
4860 * config/i960/tm-i960.h: Update.
4861 * config/m32r/tm-m32r.h: Update.
4862 * config/m68k/tm-delta68.h: Update.
4863 * config/m68k/tm-linux.h: Update.
4864 * config/m68k/tm-m68k.h: Update.
4865 * config/m88k/tm-m88k.h: Update.
4866 * config/mcore/tm-mcore.h: Update.
4867 * config/mips/tm-mips.h: Update.
4868 * config/mn10200/tm-mn10200.h: Update.
4869 * config/pa/tm-hppa.h: Update.
4870 * config/pa/tm-hppa64.h: Update.
4871 * config/sparc/tm-sp64.h: Update.
4872 * config/sparc/tm-sparc.h: Update.
4873 * config/sparc/tm-sparclet.h: Update.
4874 * config/z8k/tm-z8k.h: Update.
4875
4876 2002-06-14 Andrew Cagney <cagney@redhat.com>
4877
4878 * Makefile.in (i386_linux_tdep_h): Define.
4879 (i386_tdep_h, i387_tdep_h): Define.
4880 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4881 $(i386_tdep_h) and $(i387_tdep_h).
4882 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4883
4884 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4885
4886 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4887 Already covered by the default.
4888
4889 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4890 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4891 (i386_gdbarch_init): Initialize long_double_format and long_double
4892 bit.
4893
4894 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4895 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4896 Move these to ...
4897 * config/i386/i386sol2.mh: ... here.
4898 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4899 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4900 (SIGCONTEXT_PC_OFFSET): Remove define.
4901 (IN_SIGTRAMP): Remove define.
4902 * i386-sol2-tdep.c: New file.
4903
4904 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4905 * config/i386/tm-i386nw.h: Removed.
4906
4907 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4908 USE_STRUCT_CONVENTION): Remove defines.
4909 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4910 (get_longjmp_target): Remove prototype.
4911 (IN_SIGTRAMP): Remove define.
4912 (i386bsd_in_sigtramp): Remove prototype.
4913 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4914 function. Update comment accordingly
4915 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4916 (FRAME_SAVED_PC): Remove define.
4917 (i386bsd_frame_saved_pc): Remove prototype.
4918 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4919 GET_LONGJMP_TARGET): Remove defines.
4920 (get_longjmp_target): Remove prototype.
4921 (IN_SIGTRAMP): Remove define.
4922 (i386bsd_in_sigtramp): Remove prototype.
4923 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4924 function. Update comment accordingly
4925 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4926 (FRAME_SAVED_PC): Remove define.
4927 (i386bsd_frame_saved_pc): Remove prototype.
4928 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4929 Remove prototype.
4930 (USE_STRUCT_CONVENTION): Remove prototype.
4931 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4932 declaration.
4933 (_initialize_i386bsd_nat): Revise logic to determine some
4934 constants at compile time when compiling a native GDB. Warn if
4935 things don't match up with what we expect.
4936 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4937 Remove variables.
4938 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4939 to use date stored in `struct gdbarch_tdep'.
4940 (i386bsd_sigcontext_offset): Remove varaible.
4941 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4942 stored in `struct gdbarch_tdep'.
4943 (i386bsd_frame_saved_pc): Make static.
4944 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4945 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4946 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4947 i386fbsd4_sc_pc_offset): New variables.
4948 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4949 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4950 functions.
4951 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4952 functions.
4953 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4954 Modify the value of i386fbsd_sigtramp_start and
4955 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4956 i386fbsd_sigtramp_end.
4957 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4958 function.
4959
4960 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4961 define to i386-linux-tdep.h.
4962 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4963 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4964 defines.
4965 (i386_linux_register_name, i386_linux_register_byte,
4966 i386_linux_register_raw_size): Remove prototypes.
4967 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4968 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4969 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4970 TARGET_WRITE_PC): Remove defines.
4971 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4972 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4973 i386_linux_write_pc): Remove prototypes.
4974 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4975 (get_longjmp_target): Remove prototype.
4976 * i386-linux-tdep.h: New file.
4977 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4978 * i386-linux-tdep.c: Include "i386-tdep.h" and
4979 "i386-linux-tdep.h".
4980 (i386_linux_register_name, i386_linux_register_byte,
4981 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4982 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4983 Make static.
4984 (i386_linux_init_abi): New function.
4985 (_initialize_i386_linux_tdep): New function.
4986
4987 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4988 (i386_saved_pc_after_call): Remove prototype.
4989 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4990 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4991 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4992 (i386_register_name, i386_stab_reg_to_regnum,
4993 i386_dwarf_reg_to_regnum): Remove prototypes.
4994 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4995 SIZEOF_SSE_REGS): Remove defines.
4996 (REGISTER_BYTES): Remove define.
4997 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4998 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4999 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5000 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5001 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5002 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5003 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5004 (get_longjmp_target): Remove prototype.
5005 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5006 (sigtramp_saved_pc): Remove define.
5007 (i386v4_sigtramp_saved_pc): Remove prototype.
5008 * config/i386/tm-go32.h (FRAME_CHAIN,
5009 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5010 (i386go32_frame_saved_pc): Remove prototype.
5011 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5012 (get_longjmp_target): Remove prototype.
5013 * i386-tdep.h: Include "osabi.h".
5014 (enum i386_abi): Removed.
5015 (enum struct_return): New enum.
5016 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5017 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5018 sc_pc_offset members.
5019 (i386_gdbarch_register_os_abi): Remove prototype.
5020 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5021 I386_SSE_NUM_REGS): New defines.
5022 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5023 I386_SSE_SIZEOF_REGS): New defines.
5024 (i386_register_name, i386_register_byte, i386_register_raw_size):
5025 New prototypes.
5026 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5027 (i386bsd_sigtramp_saved_pc): New prototype.
5028 * i386-tdep.c: Don't include "elf-bfd.h".
5029 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5030 i386_frame_chain, i386_saved_pc_after_call): Make static.
5031 (i386_frame_saved_pc): Rewrite to call architecture dependent
5032 function to deal with signal handlers. Make static.
5033 (i386go32_frame_saved_pc): Removed.
5034 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5035 Removed.
5036 (i386_get_longjmp_target): New function.
5037 (default_struct_convention, pcc_struct_convention,
5038 reg_struct_convention, valid_conventions, struct_convention): New
5039 variables.
5040 (i386_use_struct_convention): New function.
5041 (i386v4_sigtramp_saved_pc): Renamed to
5042 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5043 (i386_pc_in_sigtramp): New function.
5044 (i386_abi_names): Removed.
5045 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5046 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5047 Removed.
5048 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5049 i386_gdbarch_register_os_abi): Removed.
5050 (struct i386_abi_handler): Removed.
5051 (i386_abi_handler_list): Removed.
5052 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5053 functions.
5054 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5055 i386_nw_init_abi): New functions.
5056 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5057 Use set_gdbarch_xxx() calls instead of relying on macros for a
5058 number of calls.
5059 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5060 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5061 Register the various architecture variants defined in this file.
5062
5063 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5064
5065 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5066 (struct main_type): Remove arg_types member. Update comments for
5067 struct field.
5068 (TYPE_ARG_TYPES): Remove.
5069 (TYPE_FN_FIELD_ARGS): Update.
5070 (smash_to_method_type): Update prototype.
5071
5072 * c-typeprint.c (cp_type_print_method_args): Take method type
5073 instead of argument list. Use new argument layout. Simplify.
5074 (c_type_print_args): Use new argument layout. Simplify.
5075 (c_type_print_base): Update call to cp_type_print_method_args.
5076 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5077 argument; use die->type instead. Update call to
5078 smash_to_method_type.
5079 (read_structure_scope): Update call to dwarf2_add_member_fn.
5080 * gdbtypes.c (allocate_stub_method): Update comment.
5081 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5082 Use new argument layout.
5083 (check_stub_method): Use new argument layout. Don't count
5084 void as an argument.
5085 (print_arg_types): Update comments. Use new argument layout.
5086 (recursive_dump_type): Don't print arg_types member.
5087 * hpread.c (hpread_read_struct_type): Use new argument layout.
5088 (fixup_class_method_type): Likewise.
5089 (hpread_type_lookup): Likewise.
5090 * stabsread.c (read_type): Update calls to read_args and
5091 smash_to_method_type.
5092 (read_args): Use new argument layout. Simplify.
5093 * valops.c (typecmp): Use new argument layout. Update parameters
5094 and comments. Simplify.
5095 (hand_function_call): Use new argument layout.
5096 (search_struct_method): Update call to typecmp.
5097 (find_overload_match): Use new argument layout.
5098
5099 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5100
5101 * NEWS: Mention multithreaded debug support for gdbserver.
5102
5103 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5104
5105 * MAINTAINERS: Mention NEWS.
5106
5107 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5108
5109 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5110 (struct mips_objfile_private, compare_pdr_entries): New.
5111 (non_heuristic_proc_desc): Read the ".pdr" section if it
5112 is present.
5113
5114 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5115
5116 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5117 (arm_debug): New static variable.
5118 (_initialize_arm_tdep): Add ``set debug arm'' command.
5119
5120 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5121
5122 * Makefile.in (sim_arm_h): Define.
5123 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5124 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5125 (arm_register_sim_regno): New function, map an internal REGNUM
5126 onto a simulator register number.
5127 (arm_gdbarch_init): Set register_sim_regno.
5128
5129 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5130
5131 * MAINTAINERS: Add self.
5132
5133 2002-06-11 Jim Blandy <jimb@redhat.com>
5134
5135 * source.c (source_info): Mention whether the symtab has
5136 information about preprocessor macros.
5137
5138 Call the command `info macro', not `show macro'.
5139 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5140 Fix error message.
5141 (_initialize_macrocmd): Register `info_macro_command' in
5142 `infolist', not `showlist'.
5143
5144 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5145
5146 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5147 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5148 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5149 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5150 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5151 unconditionally.
5152 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5153 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5154 (_initialize_mips_tdep): Remove dead code.
5155 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5156 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5157 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5158 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5159 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5160 MIPS_LAST_FP_ARG_REGNUM): Remove.
5161
5162 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5163
5164 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5165 (unwind_tmp_obstack_free, parse_frame_info)
5166 (update_context, cfi_read_fp, cfi_write_fp)
5167 (cfi_frame_chain, cfi_init_extra_frame_info)
5168 (cfi_virtual_frame_pointer): Use the above function.
5169 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5170
5171 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5172
5173 * v850-tdep.c (v850_type_is_scalar): New function.
5174 (v850_use_struct_convention): Match current gcc implementation
5175 as close as possible.
5176 (v850_push_arguments): Fix stack_offset handling. Don't write
5177 struct_addr into register. This is done by v850_store_struct_return.
5178 (v850_extract_return_value): Care for structs.
5179 (v850_store_return_value): Ditto.
5180 (v850_store_struct_return): Actually write address.
5181
5182 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5183
5184 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5185 without debug information too.
5186
5187 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5188
5189 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5190 Make multi-arch pure.
5191 * gdbarch.h, gdbarch.c: Re-generate.
5192 * arm-tdep.c (arm_print_float_info): Update.
5193 * arch-utils.h (default_print_float_info): Update.
5194 * arch-utils.c (default_print_float_info): Update.
5195 * infcmd.c (float_info): Update call.
5196
5197 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5198
5199 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5200 the front of the initialize list.
5201
5202 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5203
5204 * infrun.c (struct inferior_status): Replace fields
5205 selected_frame_address and selected_level with field
5206 selected_frame_id.
5207 (save_inferior_status): Update. Use get_frame_id.
5208 (struct restore_selected_frame_args): Delete.
5209 (restore_selected_frame): Update. Use frame_find_by_id.
5210 (restore_inferior_status): Update.
5211
5212 * breakpoint.h (struct breakpoint): Change type of
5213 watchpoint_frame to frame_id.
5214 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5215 call to get_current_frame.
5216 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5217 get_current_frame.
5218 (watchpoint_check): Use frame_find_by_id.
5219
5220 * frame.h (record_selected_frame): Delete declaration.
5221 * stack.c (record_selected_frame): Delete function.
5222
5223 * frame.h (struct frame_id): Define.
5224 (get_frame_id): Declare.
5225 (frame_find_by_id): Declare.
5226 * frame.c (frame_find_by_id): New function.
5227 (get_frame_id): New function.
5228
5229 2002-06-10 Andrey Volkov <avolkov@transas.com>
5230
5231 * ser-e7kpc.c: Fix duplicated define and call of
5232 _initialize_ser_e7000pc
5233
5234 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5235
5236 * signals/signals.c (target_signal_from_host): Fix #ifdef
5237 SIGRTMIN case.
5238 (do_target_signal_to_host): Likewise.
5239
5240 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5241
5242 * mips-tdep.c (mips_find_abi_section): New function.
5243 (mips_gdbarch_init): Call it.
5244
5245 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5246
5247 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5248 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5249 after Andrew's 2002-06-08 gdbarch change.
5250
5251 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5252
5253 * i386-linux-nat.c (suppy_gregset): Don't supply
5254 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5255 register cache.
5256 (fill_gregset): Don't fetch it under the same circumstances.
5257
5258 2002-06-09 Andrew Cagney <cagney@redhat.com>
5259
5260 * Makefile.in (callback_h): Define.
5261 (remote_sim_h): Update path to remote-sim.h.
5262 (remote-rdp.o): Add $(callback_h).
5263 (remote-sim.o): Use $(callback_h).
5264 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5265 * remote-rdp.c: Include "gdb/callback.h".
5266
5267 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5268
5269 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5270 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5271
5272 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5273
5274 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5275 * rdi-share/serpardr.c: Ditto.
5276 * rdi-share/unixcomm.c: Ditto.
5277 * rdi-share/serdrv.c: Ditto.
5278 * rdi-share/hostchan.h: Ditto.
5279 * rdi-share/hostchan.c: Ditto.
5280 * rdi-share/host.h: Ditto.
5281 * rdi-share/devsw.c: Ditto.
5282
5283 * objfiles.h: Change type of obj_private to void pointer.
5284 * pa64solib.c: Update copyright. Don't include "assert.h", use
5285 strcmp instead of STREQ, use LONGEST, do not use PTR
5286 * somsolib.c: Ditto.
5287
5288 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5289 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5290 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5291
5292 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5293
5294 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5295 (default_get_saved_register): Delete function.
5296 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5297 generic_unwind_get_saved_register.
5298 * gdbarch.h, gdbarch.c: Re-generate.
5299
5300 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5301
5302 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5303 generic_func_frame_chain_valid.
5304 * gdbarch.h, gdbarch.c: Re-generate.
5305 * blockframe.c (generic_func_frame_chain_valid): Only check
5306 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5307 passing FP to PC_IN_CALL_DUMMY.
5308 Fix PR gdb/360.
5309
5310 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5311
5312 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5313 (register_gdbarch_data): Initialize init_p.
5314 (gdbarch_data): Initialize data pointer using the init function.
5315 (init_gdbarch_data): Delete function.
5316 (gdbarch_update_p): Update.
5317 (initialize_non_multiarch): Update.
5318 (struct gdbarch): Add field initialized_p.
5319 * gdbarch.h, gdbarch.c: Re-generate.
5320
5321 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5322
5323 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5324 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5325 better do the things actually here.
5326 * x86-64-tdep.c (x86_64_register_name2nr): New.
5327 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5328 (x86_64_gdbarch_init): Respect the above change.
5329 * x86-64-tdep.h (x86_64_register_name2nr)
5330 (x86_64_register_nr2name): Add prototypes.
5331 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5332
5333 2002-06-06 Michael Snyder <msnyder@redhat.com>
5334
5335 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5336 Delete extra braces and re-indent.
5337 (d10v_store_return_value): Char return values
5338 must be shifted over by one byte in R0.
5339 (d10v_extract_return_value): Delete extra braces, re-indent.
5340
5341 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5342
5343 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5344 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5345 (d10v_integer_to_address): Rewrite.
5346 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5347 the d10v specific functions which take care of converting to the
5348 correct space.
5349
5350 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5351
5352 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5353 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5354
5355 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5356
5357 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5358 includes.
5359 * config/tm-linux.h: Ditto.
5360 * config/alpha/tm-alphalinux.h: Ditto.
5361 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5362 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5363 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5364 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5365 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5366 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5367 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5368 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5369 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5370 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5371 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5372 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5373 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5374 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5375 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5376 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5377 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5378 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5379 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5380 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5381 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5382 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5383 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5384 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5385 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5386 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5387 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5388 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5389 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5390 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5391 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5392 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5393 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5394 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5395 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5396 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5397 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5398
5399 2002-05-04 Aidan Skinner <aidan@velvet.net>
5400
5401 * ada-exp.tab.c: New file
5402 * ada-exp.y: New file
5403 * ada-lang.c: New file
5404 * ada-lang.h: New file
5405 * ada-lex.c: New file
5406 * ada-lex.l: New file
5407 * ada-tasks.c: New file
5408 * ada-typeprint.c: New file
5409 * ada-valprint.c: New file
5410
5411 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5412
5413 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5414 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5415
5416 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5417
5418 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5419 insetead of ppc-linux-tdep.o.
5420 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5421 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5422
5423 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5424
5425 2002-05-07 Christian Groessler <chris@groessler.org>
5426 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5427 bit register contents for little endian hosts.
5428
5429 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5430
5431 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5432 any maintainer.
5433
5434 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5435
5436 * gdbarch.h: Regenerate.
5437
5438 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5439
5440 * MAINTAINERS: Add everyone to write-after-approval list.
5441
5442 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5443
5444 * stack.c (frame_info): Use frame_register_unwind instead of
5445 saved_regs. Mention when the SP is on the stack or in a register.
5446
5447 * frame.h (frame_register_unwind_ftype): Define. Document.
5448 (struct frame_info): Add field register_unwind and
5449 register_unwind_cache.
5450 (frame_register_unwind): Declare.
5451 (generic_unwind_get_saved_register): Declare.
5452
5453 * frame.c (frame_register_unwind): New function.
5454 (generic_unwind_get_saved_register): New function.
5455
5456 * blockframe.c (generic_call_dummy_register_unwind): New function.
5457 (frame_saved_regs_register_unwind): New function.
5458 (set_unwind_by_pc): New function.
5459 (create_new_frame): New function.
5460 (get_prev_frame): New function.
5461
5462 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5463
5464 * a29k-share/: Delete directory.
5465 * remote-vx29k.c: Delete file.
5466
5467 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5468
5469 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5470 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5471
5472 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5473
5474 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5475 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5476 (sparc64nbsd-nat.o)
5477 (sparcnbsd-nat.o)
5478 (sparcnbsd-tdep.o): New dependency lists.
5479 * NEWS: Note new UltraSPARC NetBSD native configuration.
5480 * configure.host (sparc64-*-netbsd*): New host.
5481 * configure.tgt (sparc-*-netbsdelf*)
5482 (sparc-*-netbsd*): Set gdb_target to nbsd.
5483 (sparc64-*-netbsd*): New target.
5484 * sparc64nbsd-nat.c: New file.
5485 * sparcnbsd-nat.c: New file.
5486 * sparcnbsd-tdep.c: New file.
5487 * sparcnbsd-tdep.h: New file.
5488 * config/sparc/nbsd.mt: New file.
5489 * config/sparc/nbsd64.mh: New file.
5490 * config/sparc/nbsd64.mt: New file.
5491 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5492 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5493 (HOST_IPC): Remove.
5494 * config/sparc/nbsdaout.mt: Remove.
5495 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5496 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5497 (HOST_IPC): Remove.
5498 * config/sparc/nbsdelf.mt: Remove.
5499 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5500 sparc-nat.c compatiblity defines.
5501 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5502 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5503 * config/sparc/tm-nbsd64.h: New file.
5504 * config/sparc/tm-nbsdaout.h: Remove.
5505 * config/sparc/xm-nbsd.h: Remove.
5506
5507 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5508
5509 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5510 * sparc-tdep.c: Include osabi.h.
5511 (gdbarch_tdep): Add osabi member.
5512 (_initialize_sparc_tdep): Use gdbarch_register.
5513 (sparc_gdbarch_init): Use generic OS ABI framework.
5514 (sparc_dump_tdep): New function.
5515
5516 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5517
5518 * corefile.c (do_captured_read_memory_integer): Return non-zero
5519 result.
5520 (safe_read_memory_integer): Copy result of memory read when
5521 status is non-zero. Also, add comments.
5522
5523 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5524
5525 * Makefile.in (ppc_tdep_h): Define.
5526 (ppc-linux-nat.o)
5527 (ppc-linux-tdep.o)
5528 (rs6000-tdep.o): Use $(ppc_tdep_h).
5529 (ppc-sysv-tdep.o)
5530 (ppcnbsd-nat.o)
5531 (ppcnbsd-tdep.o): New dependency lists.
5532 * ppc-tdep.h: Use generic OS ABI framework.
5533 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5534 (ppc_linux_init_abi): New functions.
5535 (ppc_sysv_abi_broken_use_struct_convention)
5536 (ppc_sysv_abi_use_struct_convention)
5537 (ppc_sysv_abi_push_arguments): Move to...
5538 * ppc-sysv-tdep.c: ...here.
5539 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5540 * rs6000-tdep.c (process_note_abi_tag_sections)
5541 (get_elfosabi): Remove.
5542 (rs6000_gdbarch_init): Use generic OS ABI framework.
5543 (rs6000_dump_tdep): New function.
5544 (_initialize_rs6000_tdep): Use gdbarch_register.
5545 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5546 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5547 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5548 of ppc-linux-tdep.o.
5549 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5550 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5551 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5552 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5553 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5554 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5555
5556 2002-05-29 Jim Blandy <jimb@redhat.com>
5557
5558 * macroscope.c (default_macro_scope): Put `void' in empty argument
5559 list.
5560
5561 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5562
5563 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5564 * arch-utils.c: Include "sim-regno.h".
5565 * gdbarch.sh: Don't include "sim-regno.h".
5566 * gdbarch.h, gdbarch.c: Regenerate.
5567 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5568 here.
5569 * arch-utils.h (legacy_register_sim_regno): To here.
5570 * remote-sim.c (legacy_register_sim_regno): Move function from
5571 here.
5572 * arch-utils.c (legacy_register_sim_regno): To here.
5573
5574 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5575
5576 * sim-regno.h: New file.
5577 * Makefile.in (sim_regno_h): Define.
5578 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5579 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5580 (legacy_register_sim_regno): New function.
5581 (one2one_register_sim_regno): New function.
5582 (gdbsim_fetch_register): Rewrite.
5583 (gdbsim_store_register): Only store a register when
5584 REGISTER_SIM_REGNO is valid.
5585 * d10v-tdep.c: Include "sim-regno.h".
5586 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5587 (d10v_ts3_register_sim_regno): Ditto.
5588 * gdbarch.sh: Include "sim-regno.h".
5589 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5590 * gdbarch.h, gdbarch.c: Regenerate.
5591 * arch-utils.h (default_register_sim_regno): Delete declaration.
5592 * arch-utils.c (default_register_sim_regno): Delete function.
5593
5594 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5595
5596 * ppcnbsd-nat.c: Rewrite.
5597 * ppcnbsd-tdep.c: New file.
5598 * ppcnbsd-tdep.h: New file.
5599 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5600 solib.o, and solib-svr4.o.
5601 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5602 nbsd-tdep.o, and corelow.o.
5603
5604 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5605
5606 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5607 `tr' and `sed'. Mention that `broken' targets are not expected to
5608 build.
5609
5610 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5611
5612 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5613 Let PC point right after the prologue before looking up symbols.
5614
5615 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5616
5617 * i386-tdep.c (i386_register_virtual_type): Return
5618 builtin_type_vec128i for SSE registers.
5619
5620 * gdbtypes.h (builtin_type_vec128i): Declare.
5621
5622 * gdbtypes.c (build_builtin_type_vec128i): New function.
5623 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5624 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5625 (build_gdbtypes): Initialize new builtin vector types.
5626 (_initialize_gdbtypes): Register new vector types with gdbarch.
5627
5628 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5629
5630 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5631 since it has been multi-arch'd.
5632 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5633 Move Alpha and VAX multi-arch news entries to same section
5634 as other multi-arch news.
5635
5636 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5637
5638 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5639 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5640 static. Rename some register numbers to put them in ns32k-tdep
5641 private namespace.
5642 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5643 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5644 functions.
5645 (_initialize_ns32k_tdep): Use gdbarch_register.
5646 * ns32k-tdep.h: New file.
5647 * ns32knbsd-tdep.c: New file.
5648 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5649 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5650 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5651 REGISTER_BYTES, REGISTER_BYTE): Remove.
5652 * config/ns32k/tm-ns32k.h: New file.
5653 * config/ns32k/tm-umax.h: Remove.
5654
5655 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5656
5657 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5658 ns32k_store_struct_return, ns32k_extract_return_value,
5659 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5660 functions.
5661 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5662 ns32k_saved_pc_after_call.
5663 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5664 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5665 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5666 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5667 ns32k_extract_struct_value_address.
5668
5669 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5670
5671 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5672 ns32k_fix_call_dummy): New.
5673 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5674 ns32k_call_dummy_words.
5675 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5676 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5677 CALL_DUMMY_NARGS): Remove.
5678 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5679
5680 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5683 ns32k_frame_saved_pc, ns32k_frame_args_address,
5684 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5685 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5686 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5687 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5688 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5689 (BREAKPOINT): Remove..
5690 (FRAME_CHAIN): Define as ns32k_frame_chain.
5691 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5692 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5693 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5694 (FRAME_FIND_SAVED_REGS): Remove.
5695 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5696 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5697 (POP_FRAME): Define as ns32k_pop_frame.
5698
5699 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5700
5701 * ns32k-tdep.c (ns32k_register_byte_32082,
5702 ns32k_register_byte_32382, ns32k_register_raw_size,
5703 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5704 functions.
5705 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5706 ns32k_register_byte_32382.
5707 * config/ns32k/tm-umax.h: Update copyright years.
5708 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5709 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5710 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5711 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5712 (ns32k_get_enter_addr): Fix prototype.
5713
5714 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5715
5716 * ns32k-tdep.c: Update copyright years.
5717 (ns32k_register_name_32082): New function.
5718 (ns32k_register_name_32382): Ditto.
5719 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5720 (REGISTER_NAME): Define as ns32k_register_name_32382.
5721 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5722 (REGISTER_NAME): Define as ns32k_register_name_32082.
5723
5724 2002-05-24 Jim Blandy <jimb@redhat.com>
5725
5726 * dwarf2read.c (free_line_header): Use xfree, not free.
5727
5728 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5729
5730 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5731 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5732
5733 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5734
5735 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5736
5737 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5738
5739 From Ross Alexander at NEC Europe:
5740 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5741
5742 2002-05-23 Michael Snyder <msnyder@redhat.com>
5743
5744 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5745 for input, rather than parse_and_eval_address.
5746
5747 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5748
5749 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5750 * Makefile.in (sim_d10v_h): Update definition.
5751
5752 2002-05-24 Andrew Cagney <cagney@redhat.com>
5753
5754 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5755 change `2002-05-22 Michael Snyder' below.
5756 (d10v_push_arguments): Ditto.
5757 (d10v_extract_return_value): Ditto.
5758
5759 2002-05-23 Jim Blandy <jimb@redhat.com>
5760
5761 * macrotab.c (check_for_redefinition): Don't complain if the new
5762 definition is the same as the previous one. Take more arguments
5763 to allow the comparison.
5764 (macro_define_object, macro_define_function): Pass more arguments
5765 to check_for_redefinition.
5766
5767 2002-05-22 Michael Snyder <msnyder@redhat.com>
5768
5769 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5770 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5771 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5772 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5773 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5774 Add a temp variable to save a call (and a memory read).
5775 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5776 if possible (so that PC_IN_CALL_DUMMY will work).
5777
5778 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5779
5780 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5781
5782 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5783
5784 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5785 fde->cie_ptr.
5786 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5787 (dwarf2_build_frame_info): Add offset to fde->initial_location
5788 so that frames of shared libraries are mapped correctly.
5789 (execute_stack_op): Change type of 'result' from ULONGEST to
5790 CORE_ADDR.
5791
5792 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5793
5794 * config/alpha/tm-nbsd.h: Include solib.h.
5795
5796 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5797
5798 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5799 assumptions about the host's byte order.
5800
5801 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5802
5803 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5804 to dependency list.
5805 * alphanbsd-tdep.c: Include solib-svr4.h.
5806 * shnbsd-tdep.c: Ditto.
5807
5808 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5809
5810 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5811 nbsd-tdep.h to dependency list.
5812 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5813 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5814 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5815 nbsdaout.mh and nbsdelf.mh consistently.
5816 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5817 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5818 nbsdaout.mt and nbsdelf.mh consistently.
5819 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5820 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5821 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5822 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5823 a.out shared library stuff from here...
5824 * config/nm-nbsdaout.h: ...to here.
5825 * config/tm-nbsd.h: Remove.
5826 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5827 * config/arm/nbsd.mh: Remove.
5828 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5829 nbsd-tdep.o.
5830 * config/arm/nbsdaout.mh: New file.
5831 * config/arm/nbsdelf.mh: New file.
5832 * config/arm/nm-nbsdaout.h: New file.
5833 * config/i386/nbsd.mh: Remove.
5834 * config/i386/nbsd.mt: Remove.
5835 * config/i386/nbsdaout.mh: New file.
5836 * config/i386/nbsdaout.mt: New file.
5837 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5838 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5839 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5840 i386_register_u_addr): Remove.
5841 * config/i386/nm-nbsdaout.h: New file.
5842 * config/i386/nm-nbsdelf.h: Remove.
5843 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5844 (USE_STRUCT_CONVENTION): Remove.
5845 * config/i386/tm-nbsdaout.h: New file.
5846 * config/i386/tm-nbsdelf.h: Remove.
5847 * config/m68k/nbsd.mh: Remove.
5848 * config/m68k/nbsd.mt: Remove.
5849 * config/m68k/nbsdaout.mh: New file.
5850 * config/m68k/nbsdaout.mt: New file.
5851 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5852 * config/m68k/nm-nbsdaout.h: New file.
5853 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5854 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5855 * config/ns32k/nbsd.mh: Remove.
5856 * config/ns32k/nbsd.mt: Remove.
5857 * config/ns32k/nbsdaout.mh: New file.
5858 * config/ns32k/nbsdaout.mt: New file.
5859 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5860 * config/ns32k/nm-nbsdaout.h: New file.
5861 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5862 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5863 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5864 (SVR4_SHARED_LIBS): Remove.
5865 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5866 * config/sparc/nbsd.mh: Remove.
5867 * config/sparc/nbsd.mt: Remove.
5868 * config/sparc/nbsdaout.mh: New file.
5869 * config/sparc/nbsdaout.mt: New file.
5870 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5871 * config/sparc/nbsdelf.mt: New file.
5872 * config/sparc/nm-nbsdaout.h: New file.
5873 * config/sparc/nm-nbsdelf.h: Remove.
5874 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5875 * config/sparc/tm-nbsdaout.h: New file.
5876
5877 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5878
5879 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5880 mipsnbsd-tdep.c
5881 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5882
5883 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5884
5885 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5886 shnbsd-nat.c.
5887 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5888
5889 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5890
5891 * NEWS: Note new MIPS NetBSD native configuration.
5892 * configure.host (mips*-*-netbsd*): New host.
5893 * configure.tgt (mips*-*-netbsd*): New target.
5894 * mipsnbsd-nat.c: New file.
5895 * mipsnbsd-tdep.c: New file.
5896 * mipsnbsd-tdep.h: New file.
5897 * config/mips/nbsd.mh: New file.
5898 * config/mips/nbsd.mt: New file.
5899 * config/mips/nm-nbsd.h: New file.
5900 * config/mips/tm-nbsd.h: New file.
5901
5902 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5903
5904 * Makefile.in (SFILES): Add osabi.c.
5905 (COMMON_OBS): Add osabi.o.
5906 (osabi.o): New dependency list.
5907 * osabi.c: New file.
5908 * osabi.h: New file.
5909 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5910
5911 * Makefile.in (alpha_tdep_h): Define and use instead of
5912 alpha-tdep.h.
5913 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5914 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5915 Remove.
5916 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5917 * alpha-tdep.h: Include osabi.h.
5918 (alpha_abi): Remove.
5919 (gdbarch_tdep): Use generic OS ABI framework.
5920 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5921 gdbarch_register_osabi.
5922 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5923 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5924 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5925
5926 * Makefile.in (sh_tdep_h): Add osabi.h.
5927 * sh-tdep.h (sh_osabi): Remove.
5928 (gdbarch_tdep): Use generic OS ABI framework.
5929 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5930 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5931 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5932 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5933
5934 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5935 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5936 gdbarch_register_osabi.
5937 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5938 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5939 (get_elfosabi): Rename to...
5940 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5941 ABI framework support routines.
5942 (arm_gdbarch_init): Use generic OS ABI framework.
5943 (arm_dump_tdep): Likewise.
5944 (_initialize_arm_tdep): Likewise.
5945 * arm-tdep.h: Include osabi.h.
5946 (arm_abi): Remove.
5947 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5948 osabi member.
5949 (arm_gdbarch_register_os_abi): Remove prototype.
5950 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5951 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5952
5953 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5954 * mips-tdep.c: Include osabi.h.
5955 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5956 OS ABI framework.
5957
5958 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5959
5960 * h8300-tdep.c: Fix formatting.
5961
5962 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5963
5964 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5965 printing vector registers.
5966
5967 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5968
5969 From Fernando Nasser:
5970 * remote.c (remote_async_open_1): Re-throw the exception when the
5971 connection fails.
5972 (remote_cisco_open): Ditto.
5973 (remote_open_1): Ditto.
5974
5975 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5976
5977 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5978 (remote_start_remote): Add uiout parameter. Pass through to
5979 remote_start_remote_dummy.
5980 (remote_open_1): Use catch_exception instead of catch_errors.
5981 (remote_async_open_1): Ditto.
5982 (remote_cisco_open): Ditto.
5983
5984 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5985
5986 * remote.c (remote_start_remote): Replace PTR with void pointer.
5987 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5988 static.
5989
5990 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5991
5992 * gdb_indent.sh: Allow the script to be run in the sim directory.
5993
5994 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5995
5996 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5997 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5998
5999 * corelow.c (core_open): Only call set_gdbarch_from_file if
6000 exec_bfd is NULL.
6001
6002 2002-05-17 Andrey Volkov <avolkov@transas.com>
6003
6004 * h8300-tdep.c: Add support of EXR register
6005 * config/h8300/tm-h8300.h: Ditto.
6006
6007 2002-05-17 Andrey Volkov <avolkov@transas.com>
6008
6009 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6010
6011 2002-05-17 Andrey Volkov <avolkov@transas.com>
6012
6013 * h8300-tdep.c: Change literal regnums to REGNO.
6014
6015 2002-05-17 Jim Blandy <jimb@redhat.com>
6016
6017 * NEWS: Note addition of macro support.
6018
6019 Expand preprocessor macros in C expressions.
6020 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6021 (scan_macro_expansion, scanning_macro_expansion,
6022 finished_macro_expansion): New function declarations.
6023 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6024 variable declarations.
6025 * parser-defs.h (expression_context_pc): New declaration.
6026 * parse.c (expression_context_pc): New variable.
6027 (parse_exp_1): Set expression_context_pc, as well as
6028 expression_context_block.
6029 * c-exp.y (yylex): If we're not already reading the result of a
6030 macro expansion, try to macro-expand the next token. When we're
6031 done scanning a macro expansion, switch back to the mainline text.
6032 Commas and `if's in a macro's expansion don't terminate the input.
6033 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6034 (macro_original_text, macro_expanded_text,
6035 expression_macro_lookup_func, expression_macro_lookup_baton): New
6036 variables.
6037 (scan_macro_expansion, scanning_macro_expansion,
6038 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6039 c_preprocess_and_parse): New functions.
6040 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6041 c_preprocess_and_parse, instead of c_parse.
6042 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6043 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6044
6045 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6046
6047 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6048 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6049 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6050
6051 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6052
6053 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6054
6055 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6056
6057 * Makefile.in (sh_tdep_h): Define and use.
6058 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6059 register enum): Move to...
6060 * * sh-tdep.h: ...here.
6061 * sh-tdep.c: Include sh-tdep.h.
6062 * sh3-rom.c: Likewise.
6063 * shnbsd-tdep.c: Likewise.
6064
6065 2002-05-16 Michael Snyder <msnyder@redhat.com>
6066
6067 * arm-tdep.c: Spelling fix in comment.
6068
6069 2002-05-16 Jim Blandy <jimb@redhat.com>
6070
6071 Add commands for manually expanding macros and showing their
6072 definitions.
6073 * macrocmd.c, macroscope.c, macroscope.h: New files.
6074 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6075 (macroscope_h): New variable.
6076 (HFILES_NO_SRCDIR): Add macroscope.h.
6077 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6078 (macroscope.o, macrocmd.o): New rules.
6079
6080 Teach the Dwarf 2 reader to read macro information.
6081 * dwarf2read.c: #include "macrotab.h".
6082 (dwarf_macinfo_buffer): New variable.
6083 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6084 dwarf_macinfo_size.
6085 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6086 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6087 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6088 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6089 dwarf2_macro_spaces_in_definition): New complaints.
6090 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6091 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6092 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6093 the partial symbol table.
6094 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6095 from what's recorded in the partial symbol table.
6096 (read_file_scope): If the compilation unit has a
6097 `DW_AT_macro_info' attribute, read its macro information.
6098 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6099
6100 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6101
6102 Fix PR gdb/546
6103 * ser-tcp.c: Don't include <netinet/udp.h>.
6104
6105 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6106
6107 * MAINTAINERS: Update my email address.
6108
6109 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6110
6111 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6112 include file of the same name.
6113
6114 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6115
6116 * configure.tgt: Mark v850 as multi-arched.
6117 * config/v850/tm-v850.h: Remove file.
6118 * config/v850/v850.mt: Eliminate TM_FILE.
6119
6120 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6121
6122 * v850-tdep.c: Full multi-arch.
6123 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6124 Define GDB_MULTI_ARCH to 2.
6125
6126 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6127
6128 * p-exp.y (current_type): New static variable.
6129 Carries the type of the expression at the position that is parsed.
6130 (push_current_type, pop_current_type): Two new functions. Used
6131 to store/restore current_type in expression on specific tokens.
6132 (search_field): New static variable. Set to one after parsing a point
6133 as at that point only a FIELDNAME token should be searched.
6134 (FIELDNAME): New token. After a point only a token belonging to
6135 current_type type definition is allowed.
6136 (all over token rules): reset and change current_type according
6137 to rules.
6138 (exp '[' rule): insert implicit array index field if
6139 exp is a pascal string type.
6140
6141 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6142
6143 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6144 frame info. Use frame_info's saved_regs instead of matching member
6145 in extra_frame_info throughout.
6146 (v850_frame_init_saved_regs): New function.
6147 (v850_init_extra_frame_info): Move most functionality into
6148 v850_frame_init_saved_regs().
6149 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6150 (v850_frame_find_saved_regs): Remove declaration.
6151 (FRAME_FIND_SAVED_REGS): Remove definition.
6152 (v850_frame_init_saved_regs): Add declaration.
6153 (FRAME_INIT_SAVED_REGS): Add definition.
6154
6155 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6156
6157 * v850-tdep.c: Begin multi-arch'ing v850.
6158 (v850_target_architecture_hook): Remove function.
6159 (v850_gdbarch_init): New function. Add code previously in
6160 v850_target_architecture_hook().
6161 (_initialize_v850_tdep): Don't set target_architecture_hook.
6162 Call register_gdbarch_init() instead.
6163
6164 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6165
6166 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6167 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6168 (fixup_class_method_type): Likewise.
6169
6170 2002-05-15 Jim Blandy <jimb@redhat.com>
6171
6172 Add macro structures to GDB's symbol tables. Nobody puts anything
6173 in them yet.
6174 * symtab.h (struct symtab): New member: `macro_table'.
6175 * buildsym.h (pending_macros): New global variable.
6176 * buildsym.c: #include "macrotab.h".
6177 (buildsym_init): Initialize `pending_macros'.
6178 (end_symtab): If we found macro information while reading a CU's
6179 debugging info, do build a symtab structure for it. Make the
6180 symtab point to the macro information, and clear the
6181 `pending_macros' pointer which held it while we were reading the
6182 debug info.
6183 (really_free_pendings): Free any pending macro table.
6184 * objfiles.h (struct objfile): New member: `macro_cache'.
6185 * objfiles.c (allocate_objfile): Set allocate and free functions
6186 for the macro cache's objstack.
6187 (free_objfile): Empty the macro cache's obstack.
6188 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6189 set new allocate and free functions for it.
6190 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6191 free functions for the macro cache's objstack. (Why is this
6192 function building its own objfile?)
6193 * symmisc.c (print_objfile_statistics): Print statistics on the
6194 macro bcache.
6195 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6196
6197 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6198
6199 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6200 (REGISTER_U_ADDR): Delete definition.
6201 (arm_register_u_addr): Delete declaration.
6202
6203 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6204
6205 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6206 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6207
6208 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6209
6210 * regcache.c (register_valid): Revise comments refering to "Not
6211 available" and "unavailable".
6212 * frame.c (frame_register_read): Ditto.
6213 * findvar.c (value_of_register): Ditto.
6214
6215 2002-05-15 Andrew Cagney <cagney@redhat.com>
6216
6217 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6218 (remote-sim.o): Update dependencies.
6219 (d10v-tdep.o): Specify dependencies.
6220 (sim_d10v_h): Define.
6221
6222 2002-05-14 Jim Blandy <jimb@redhat.com>
6223
6224 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6225 * macrotab.c (macro_lookup_inclusion, find_definition,
6226 new_macro_table): Same.
6227
6228 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6229 not `! strcmp ()'. This is a dubious improvement.
6230 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6231
6232 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6233 although it's not necessary, to avoid a warning.
6234
6235 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6236
6237 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6238 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6239 TYPE_INSTANCE_FLAGS.
6240 (struct main_type): New.
6241 (struct type): Move most members to struct main_type. Change
6242 cv_type and as_type to new type_chain member. Add instance_flags.
6243 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6244 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6245 (finish_cv_type): Remove prototype.
6246 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6247 Set TYPE_CHAIN.
6248 (alloc_type_instance): New function.
6249 (smash_type): New function.
6250 (make_pointer_type, make_reference_type, make_function_type)
6251 (smash_to_member_type, smash_to_method_type): Call smash_type.
6252 (make_qualified_type): New function.
6253 (make_type_with_address_space): Call make_qualified_type.
6254 (make_cv_type): Likewise.
6255 (finish_cv_type): Remove unnecessary function.
6256 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6257 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6258 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6259 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6260 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6261 * hpread.c (hpread_read_struct_type): Likewise.
6262 * stabsread.c (read_struct_type): Likewise.
6263
6264 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6265
6266 * configure.tgt: Add a catch all sh* target, for cases like
6267 sh[2,3,4]-elf and sh-hms.
6268
6269 2002-05-14 Keith Seitz <keiths@redhat.com>
6270
6271 * event-loop.c (create_file_handler): Don't do anything but
6272 update data when we are given a fd which we are already
6273 monitoring.
6274
6275 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6276
6277 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6278 (update_context): Use __func__ in warnings.
6279
6280 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6281
6282 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6283 and tcp_close to net_open and net_close.
6284 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6285 using UDP if requested. Don't try to disable Nagle on UDP
6286 sockets.
6287 * remote.c (remote_serial_open): New function. Warn about UDP.
6288 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6289
6290 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6291
6292 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6293
6294 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6295
6296 * configure.tgt: Remove sh-hms target.
6297 * MAINTAINERS: Don't list sh-hms as a separate target.
6298
6299 2002-05-13 Jim Blandy <jimb@redhat.com>
6300
6301 Add first preprocessor macro-expansion files.
6302 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6303 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6304 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6305 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6306 (COMMON_OBS): Add macrotab.o, macroexp.o.
6307 (macroexp.o, macrotab.o): New rules.
6308
6309 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6310
6311 * config/m88k/tm-m88k.h: Update copyright.
6312 (m88k_target_write_pc): Declare
6313 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6314 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6315 (SHIFT_INST_REGS): Update definition.
6316 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6317 using old definition of TARGET_WRITE_PC.
6318 * regcache.c (generic_target_write_pc): Delete code handling
6319 NNPC_REGNUM.
6320 * gdbarch.sh (NNPC_REGNUM): Delete.
6321 * gdbarch.h, gdbarch.c: Regenerate.
6322
6323 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6324
6325 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6326 builtin reg number.
6327
6328 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6329
6330 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6331 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6332 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6333 access macros.
6334 * c-typeprint.c (cp_type_print_method_args): Likewise.
6335 (c_type_print_args): Likewise.
6336 * d10v-tdep.c (d10v_push_arguments): Likewise.
6337 (d10v_extract_return_value): Likewise.
6338 * expprint.c (print_subexp): Likewise.
6339 * gdbtypes.c (lookup_primitive_typename): Likewise.
6340 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6341 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6342 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6343 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6344 (TYPE_VECTOR): Likewise.
6345 * hpread.c (hpread_read_struct_type)
6346 (fix_static_member_physnames, fixup_class_method_type)
6347 (hpread_type_lookup): Likewise.
6348 * mdebugread.c (parse_symbol, parse_type): Likewise.
6349 * p-lang.c (is_pascal_string_type): Likewise.
6350 * valops.c (hand_function_call): Likewise.
6351 * x86-64-tdep.c (classify_argument): Likewise.
6352
6353 * hpread.c (hpread_read_function_type)
6354 (hpread_read_doc_function_type): Call replace_type.
6355 * dstread.c (create_new_type): Delete.
6356 (decode_dst_structure, process_dst_function): Call alloc_type.
6357 Use type access macros.
6358
6359 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6360
6361 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6362 the're not supported by the current architecture.
6363 (i387_fill_fxsave): Likewise.
6364
6365 2002-05-12 Fred Fish <fnf@redhat.com>
6366
6367 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6368 sect_index_xxx members to index the first slot in section_offsets
6369 if all of the section_offsets are zero.
6370
6371 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6372
6373 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6374 checked in with last change.
6375
6376 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6377
6378 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6379 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6380 config.sub.
6381
6382 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6383
6384 * Makefile.in: Update dependencies.
6385
6386 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6387
6388 * language.c (local_hex_string_custom): Simplify. Do not depend
6389 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6390
6391 * memattr.c (mem_info_command): Replace calls to
6392 longest_local_hex_string and longest_local_hex_string_custom.
6393 * buildsym.c (make_blockvector): Ditto.
6394 * solib.c (info_sharedlibrary_command): Ditto.
6395 * tracepoint.c (tracepoints_info): Ditto.
6396 * symtab.c (print_msymbol_info): Ditto.
6397
6398 * language.c (local_hex_string): Delete.
6399 (local_hex_string_custom): Delete.
6400 (longest_local_hex_string): Rename to local_hex_string.
6401 (longest_local_hex_string_custom): Rename to
6402 local_hex_string_custom.
6403 * language.h (local_hex_string): Change parameter type to LONGEST.
6404 (local_hex_string_custom): Ditto.
6405 (longest_local_hex_string): Delete declaration.
6406 (longest_local_hex_string_custom): Ditto.
6407
6408 * solib.c: Update copyright.
6409 * memattr.c: Update copyright.
6410
6411 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6412
6413 * arch-utils.h (legacy_register_to_value): Declare.
6414 (legacy_value_to_register): Declare.
6415 (legacy_convert_register_p): Declare.
6416 * arch-utils.c (legacy_register_to_value): New function.
6417 (legacy_value_to_register): New function.
6418 (legacy_convert_register_p): New function.
6419
6420 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6421 (VALUE_TO_REGISTER): Define.
6422 (CONVERT_REGISTER_P): Define.
6423 * gdbarch.h, gdbarch.c: Regenerate.
6424
6425 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6426 VALUE_TO_REGISTER.
6427 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6428 CONVERT_REGISTER_P.
6429
6430 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6431 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6432
6433 * Makefile.in: Update dependencies for valops.c.
6434 * valops.c: Include "gdb_assert.h".
6435 (typecmp): Skip THIS parameter to methods.
6436 (find_method_list): Remove static_memfuncp argument,
6437 update callers. Check for stub methods.
6438 (find_value_oload_method_list): Don't set *static_memfuncp.
6439 (find_overload_match): Don't check for stub methods. Assert
6440 that methods are not stubbed. Handle static methods.
6441 (value_find_oload_method_list): Remove static_memfuncp argument.
6442 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6443 to the argument list for static stub methods.
6444 * value.h (value_find_oload_method_list): Update prototype.
6445
6446 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6447
6448 * arch-utils.h (generic_register_size): Declare.
6449 (generic_register_raw_size, generic_register_virtual_size): Delete
6450 declarations.
6451 * arch-utils.c (generic_register_raw_size): Delete.
6452 (generic_register_size): New function.
6453 (generic_register_virtual_size): Delete.
6454
6455 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6456 default generic_register_size.
6457 * gdbarch.h, gdbarch.c: Re-generate.
6458
6459 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6460 register_virtual_size.
6461 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6462 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6463
6464 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6465
6466 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6467 * gdbarch.h, gdbarch.c: Regenerate.
6468 * gnu-v3-abi.c: Update copyright.
6469 (vtable_address_point_offset): Update.
6470 (gnuv3_rtti_type): Update.
6471 (gnuv3_baseclass_offset): Update.
6472 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6473 (init_fetch_link_map_offsets): Update.
6474 * remote.c (get_remote_state): Update.
6475
6476 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6477
6478 * TODO: Remove value_headof/value_from_vtable_info comment.
6479 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6480 * values.c (value_headof, value_from_vtable_info): Delete.
6481 * value.h (value_from_vtable_info): Delete prototype.
6482
6483 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6484
6485 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6486 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6487 $(gdb_regex_h).
6488 (gdb_assert_h): Define.
6489 (gdb_wait_h): Define.
6490 (gdb_regex_h): Define.
6491
6492 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6493
6494 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6495 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6496
6497 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6498
6499 * nbsd-tdep.c: Fix comment.
6500
6501 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6502
6503 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6504 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6505 (nbsd-tdep.o): New dependency list.
6506 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6507 nbsd-tdep.h.
6508 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6509 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6510 * nbsd-tdep.c: New file.
6511 * nbsd-tdep.h: New file.
6512 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6513 nbsd-tdep.h.
6514 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6515 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6516 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6517 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6518
6519 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6520
6521 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6522 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6523 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6524 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6525 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6526 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6527
6528 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6529
6530 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6531 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6532 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6533 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6534 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6535 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6536 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6537
6538 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6539
6540 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6541 fetch_elfcore_registers to...
6542 * i386nbsd-tdep.c: ...here.
6543 (i386nbsd_use_struct_convention): Rename to...
6544 (i386nbsd_aout_use_struct_convention): ...this.
6545 (i386nbsd_supply_reg): New function.
6546 (i386nbsd_fill_reg): New function.
6547 (fetch_core_registers): Use i386nbsd_supply_reg.
6548 (fetch_elfcore_registers): Likewise.
6549 (_initialize_i386nbsd_tdep): New function.
6550 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6551 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6552 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6553 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6554 (i386nbsd_aout_use_struct_convention): ...this.
6555
6556 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6557
6558 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6559 (store_inferior_registers): Use shnbsd_fill_reg.
6560 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6561 sh_nbsd_supply_register): Collapse into...
6562 (shnbsd_supply_reg): ...this.
6563 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6564 (shnbsd_fill_reg): ...this.
6565 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6566 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6567 (fetch_core_registers): Use shnbsd_supply_reg.
6568 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6569 (sh_nbsd_core_fns): Rename to...
6570 (shnbsd_core_fns): ...this.
6571 (sh_nbsd_elfcore_fns): Rename to...
6572 (shnbsd_elfcore_fns): ...this.
6573 (sh_nbsd_init_abi): Rename to...
6574 (shnbsd_init_abi): ...this.
6575 (_initialize_sh_nbsd_tdep): Rename to...
6576 (_initialize_shnbsd_tdep): ...this.
6577 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6578 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6579 sh_nbsd_fill_register): Remove prototypes.
6580 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6581
6582 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6583
6584 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6585 (i387-nat.o): Delete dependency list.
6586 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6587 (x86-64-linux-nat.o): Likewise.
6588 * i387-nat.c: Delete file, moving contents to...
6589 * i387-tdep.c: ...here.
6590 * i387-nat.h: Rename...
6591 * i387-tdep.h: ...to this.
6592 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6593 * i386-linux-nat.c: Likewise.
6594 * i386bsd-nat.c: Likewise.
6595 * i386gnu-nat.c: Likewise.
6596 * i386nbsd-nat.c: Likewise.
6597 * i386v4-nat.c: Likewise.
6598 * x86-64-linux-nat.c: Likewise.
6599 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6600 * config/i386/go32.mh (NATDEPFILES): Likewise.
6601 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6602 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6603 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6604 * config/i386/linux.mh (NATDEPFILES): Likewise.
6605 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6606 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6607 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6608 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6609
6610 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6611
6612 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6613 (alphanbsd-nat.o): Remove dependency list.
6614 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6615 * alphanbsd-nat.c: Delete. Contents moved to...
6616 * alphanbsd-tdep.c: ...here.
6617 (_initialize_alphanbsd_tdep): Register core functions.
6618 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6619
6620 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6621
6622 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6623 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6624 (alphanbsd-nat.o): Likewise.
6625 (alphabsd-tdep.o): New dependency list.
6626 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6627 (fill_gregset): Use alphabsd_fill_reg.
6628 (supply_fpregset): Use alphabsd_supply_fpreg.
6629 (fill_fpregset): Use alphabsd_fill_fpreg.
6630 (fetch_inferior_registers): Use struct reg and struct fpreg
6631 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6632 and alphabsd_supply_fpreg.
6633 (store_inferior_registers): Use struct reg and struct fpreg
6634 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6635 and alphabsd_fill_fpreg.
6636 * alphabsd-tdep.c: New file.
6637 * alphabsd-tdep.h: New file.
6638 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6639 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6640 alphabsd_supply_fpreg.
6641 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6642 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6643
6644 2002-05-11 Eric Christopher <echristo@redhat.com>
6645
6646 * mips-tdep.c (mips_double_register_type): Fix thinko.
6647 (mips_single_register_type): Ditto.
6648 * MAINTAINERS: Add self.
6649
6650 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6651
6652 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6653 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6654 right thing on architectures with different endianness and/or
6655 integer sizes.
6656
6657 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6658
6659 From Christian Limpach <chris@Pin.LU>
6660 * configure.in: Change sed expression which comments out
6661 NATDEPFILES to also comment out continuation lines.
6662 * configure: Regenerate.
6663
6664 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6665
6666 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6667 big patch.
6668
6669 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6670
6671 * sh-tdep.c: Include correct file.
6672
6673 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6674
6675 New support for sh64-elf (sh5) target.
6676
6677 * configure.tgt: For sh64-elf target, default to sh-elf.
6678
6679 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6680 (struct gdbarch_tdep): Add new fields for new registers and ABI
6681 info.
6682
6683 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6684 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6685 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6686 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6687 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6688 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6689 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6690 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6691 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6692 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6693 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6694 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6695 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6696 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6697 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6698 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6699 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6700 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6701 sign_extend, sh64_nofp_frame_init_saved_regs,
6702 sh64_init_extra_frame_info, sh64_get_saved_register,
6703 sh64_extract_struct_value_address, sh64_pop_frame,
6704 sh64_push_arguments, sh64_extract_return_value,
6705 sh64_store_return_value, sh64_show_media_regs,
6706 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6707 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6708 sh_sh64_register_virtual_type,
6709 sh_sh64_register_convert_to_virtual,
6710 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6711 sh64_register_read, sh64_pseudo_register_write,
6712 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6713 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6714 sh64_do_pseudo_register, sh_compact_do_registers_info,
6715 sh64_do_registers_info, sh_gdbarch_init): New functions.
6716
6717 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6718
6719 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6720
6721 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6722
6723 * linespec.c (decode_line_1): Check for a double quote after
6724 a filename correctly.
6725
6726 2002-05-10 Jim Blandy <jimb@redhat.com>
6727
6728 Properly track the size of the current objfile's .debug_line section.
6729 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6730 (DWARF_LINE_SIZE): New macro.
6731 (dwarf2_build_psymtabs_hard): Record the line section's size in
6732 the partial symbol table.
6733 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6734 symbol table.
6735
6736 2002-05-10 Petr Sorfa <petrs@caldera.com>
6737
6738 * ia64-tdep.c: Handle breakpoints on L instruction type
6739 in MLX instruction bundle by moving the breakpoint to
6740 the third slot (X instruction type) as L holds only data.
6741
6742 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6743
6744 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6745 (process_one_symbol): Complain about discarding local symbols
6746 due to a misplaced N_LBRAC entry.
6747
6748 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6749
6750 From Daniel Berlin <dan@cgsoftware.com>
6751 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6752 decrease the depth we are at, in the case of templates.
6753
6754 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6755
6756 * mips-tdep.c (mips_float_register_type): New function.
6757 (mips_double_register_type): New function.
6758 (mips_print_register): Use them.
6759 (do_fp_register_row): Likewise.
6760
6761 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6762
6763 * signals/signals.c (signals): Remove conditional compilation around
6764 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6765 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6766
6767 2002-05-09 Michael Snyder <msnyder@redhat.com>
6768
6769 * remote-rdp.c (remote_rdp_can_run): Remove.
6770
6771 2002-05-09 Tom Tromey <tromey@redhat.com>
6772
6773 * jv-valprint.c (java_val_print): Handle `char' as a special case
6774 of TYPE_CODE_INT.
6775
6776 2002-05-09 Michael Snyder <msnyder@redhat.com>
6777
6778 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6779 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6780 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6781 str r(0123),[sp,#nn].
6782 (arm_skip_prologue): Ditto. Also make disassembly
6783 order-independent by placing it in a loop.
6784
6785 2002-05-06 Michael Snyder <msnyder@redhat.com>
6786
6787 * stabsread.c (read_type): Add recognition for new attribute:
6788 "@V;" means that an array type is actually a vector.
6789 This is analogous to the vector flag that's been added to dwarf2.
6790
6791 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6792
6793 * i386-tdep.h (i386_abi): New enum.
6794 (struct gdbarch_tdep): Replace os_ident member with abi.
6795 (i386_gdbarch_register_os_abi): New prototype.
6796 * i386-tdep.c (i386_abi_names): New array.
6797 (process_note_abi_tag_sections): Removed.
6798 (process_note_sections): New function.
6799 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6800 (struct i386_abi_handler): New struct.
6801 (i386_abi_handler_list): New variable.
6802 (i386_gdbarch_register_os_abi): New function.
6803 (i386_gdbarch_init): Adapt for the changes given above.
6804
6805 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6806
6807 * gregset.h: Say "GNU/Linux".
6808
6809 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6810
6811 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6812 (build_gdbtypes): Build builtin_type_v2_float.
6813 (_initialize_gdbtypes): Register new builtin type.
6814
6815 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6816
6817 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6818 (clear_gdbarch_swap): New function.
6819 (initialize_non_multiarch): Call.
6820 (gdbarch_update_p): Before calling init(), swap out and clear the
6821 existing architecture.
6822 * gdbarch.c: Regenerate.
6823
6824 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6825
6826 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6827 alphanbsd-tdep.c.
6828
6829 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6830
6831 * sh-nbsd-nat.c: Rename to...
6832 * shnbsd-nat.c: ...this.
6833 * sh-nbsd-tdep.c: Rename to...
6834 * shnbsd-tdep.c: ...this.
6835 * sh-nbsd-tdep.h: Rename to...
6836 * shnbsd-tdep.h: ...this.
6837 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6838 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6839
6840 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6841
6842 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6843 concatenation for command help messages.
6844
6845 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6846
6847 * NEWS: Note new sh*-*-netbsdelf* configuration.
6848 * configure.host: Set gdb_host_cpu to sh for all sh*.
6849 (sh*-*-netbsdelf*): New host.
6850 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6851 (sh*-*-netbsdelf*): New target.
6852 * sh-nbsd-nat.c: New file.
6853 * sh-nbsd-tdep.c: New file.
6854 * sh-nbsd-tdep.h: New file.
6855 * config/sh/nbsd.mh: New file.
6856 * config/sh/nbsd.mt: New file.
6857 * config/sh/nm-nbsd.h: New file.
6858 * config/sh/tm-nbsd.h: New file.
6859
6860 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6861
6862 * sh-tdep.c (sh_osabi_names): Declare.
6863 (process_note_abi_tag_sections): New function.
6864 (get_elfosabi): Ditto.
6865 (sh_gdbarch_register_os_abi): Ditto.
6866 (sh_dump_tdep): Ditto.
6867 _initialize_sh_tdep): Use gdbarch_register to register
6868 sh_gdbarch_init and sh_dump_tdep.
6869 * config/sh/tm-sh.h (sh_osabi): Declare.
6870 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6871
6872 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6873
6874 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6875 (thumb_scan_prologue): Ditto.
6876 (arm_find_callers_reg): Ditto.
6877 (arm_frame_chain): Ditto.
6878 (arm_init_extra_frame_info): Ditto.
6879 (arm_frame_saved_pc): Ditto.
6880 (arm_pop_frame): Ditto.
6881 (arm_push_return_address): New function.
6882 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6883 call_dummy_location, call_dummy_breakpoint_offset_p,
6884 call_dummy_breakpoint_offset, call_dummy_p,
6885 call_dummy_stack_adjust_p, call_dummy_words,
6886 sizeof_call_dummy_words, call_dummy_start_offset,
6887 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6888 call_dummy_address, push_return_address and push_dummy_frame for
6889 generic dummy frames.
6890
6891 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6892
6893 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6894 size computation for alloca.
6895 (sh_fp_frame_init_saved_regs): Likewise.
6896
6897 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6898
6899 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6900 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6901 * arm-tdep.c (arm_store_return_value): Use them.
6902 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6903 * remote-rdp.c (remote_rdp_fetch_register): Use
6904 ARM_MAX_REGISTER_RAW_SIZE.
6905 (remote_rdp_store_register): Likewise.
6906
6907 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6908
6909 * dwarf2cfi.c: Code cleanup, removed unused variables,
6910 added default labels to switch {} statements.
6911 * x86-64-tdep.c: Ditto.
6912 * x86-64-linux-nat.c: Ditto.
6913
6914 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6915
6916 * solib.h: Protect against multiple inclusion.
6917
6918 2002-05-06 Jim Blandy <jimb@redhat.com>
6919
6920 Add first preprocessor macro-expansion files.
6921 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6922 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6923 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6924 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6925 (COMMON_OBS): Add macrotab.o, macroexp.o.
6926 (macroexp.o, macrotab.o): New rules.
6927
6928 Separate the job of reading the line number info statement program
6929 header (...expialidocious) out into its own function.
6930 * dwarf2read.c (struct line_head, struct filenames, struct
6931 directories): Replace with...
6932 (struct line_header): New structure, containing the full
6933 contents of the statement program header, including the
6934 include directory and file name tables.
6935 (read_file_scope): If we have line number info, instead of just
6936 calling dwarf_decode_lines to do all the work, call
6937 dwarf_decode_line_header first to get a `struct line_header'
6938 containing the data in the statement program header, and then
6939 pass that to dwarf_decode_lines, which will pick up where that
6940 left off. Be sure to clean up the `struct line_header' object.
6941 (dwarf_decode_line_header, free_line_header, add_include_dir,
6942 add_file_name): New functions.
6943 (dwarf_decode_lines): Move all the code to read the statement
6944 program header into dwarf_decode_line_header. Take the line
6945 header it built as the first argument, instead of the offset to
6946 the compilation unit's line number info. Use the new `struct
6947 line_header' type instead of the old structures. No need to do
6948 cleanups here now, since we don't allocate anything.
6949 (dwarf2_statement_list_fits_in_line_number_section,
6950 dwarf2_line_header_too_long): New complaints.
6951
6952 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6953
6954 * gdbtypes.c (init_vector_type): New function.
6955 (build_builtin_type_vec128): Simplify the representation of SIMD
6956 registers.
6957 (build_gdbtypes): Initialize new builtin vector types.
6958 (_initialize_gdbtypes): Register new vector types with gdbarch.
6959 (builtin_type_v4_float, builtin_type_v4_int32,
6960 builtin_type_v8_int16, builtin_type_v16_int8,
6961 builtin_type_v2_int32, builtin_type_v4_int16,
6962 builtin_type_v8_int8): New (renamed) SIMD types.
6963
6964 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6965
6966 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6967 (i387_fill_fxsave): Likewise.
6968
6969 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6970
6971 * alpha-tdep.c (alpha_extract_return_value): Don't use
6972 non-constant array size in prototype.
6973
6974 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6975
6976 From Brian Taylor <briant at model dot com>:
6977 * ui-out.c (ui_out_field_core_addr): Use the function
6978 longest_local_hex_string_custom'to format addresses > 32 bits
6979 wide.
6980
6981 * ui-out.c (ui_out_field_core_addr): Update comment.
6982
6983 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6984
6985 * stack.c (select_and_print_frame): Make static. Delete the
6986 parameter `level'.
6987 (func_command): Update call.
6988 (select_frame_command): Delete code computing the frame level.
6989 * frame.h (select_and_print_frame): Delete declaration.
6990
6991 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6992
6993 * sparc-tdep.c (sparc_get_saved_register): Comment why
6994 get_prev_frame call is safe.
6995
6996 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6997
6998 * frame.h (select_frame): Delete level parameter.
6999 * stack.c (select_frame): Update. Use frame_relative_level to
7000 obtain the frame's level.
7001 (select_and_print_frame): Update call.
7002 (select_frame_command): Ditto.
7003 (up_silently_base): Ditto.
7004 (down_silently_base): Ditto.
7005 * ocd.c (ocd_start_remote): Ditto.
7006 * remote-rdp.c (remote_rdp_open): Ditto.
7007 * remote-mips.c (mips_initialize): Ditto.
7008 (common_open): Ditto.
7009 * remote-e7000.c (e7000_start_remote): Ditto.
7010 * m3-nat.c (select_thread): Ditto.
7011 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7012 (child_get_current_exception_event): Ditto.
7013 * varobj.c (varobj_create): Ditto.
7014 (varobj_update): Ditto.
7015 (c_value_of_root): Ditto.
7016 * tracepoint.c (finish_tfind_command): Ditto.
7017 * corelow.c (core_open): Ditto.
7018 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7019 * thread.c (info_threads_command): Ditto.
7020 (switch_to_thread): Ditto.
7021 * infrun.c (normal_stop): Ditto.
7022 (restore_selected_frame): Ditto.
7023 (restore_inferior_status): Ditto.
7024 * breakpoint.c (insert_breakpoints): Ditto.
7025 (watchpoint_check): Ditto.
7026 (bpstat_stop_status): Ditto.
7027 (do_enable_breakpoint): Ditto.
7028 * blockframe.c (flush_cached_frames): Ditto.
7029 (reinit_frame_cache): Ditto.
7030
7031 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7032
7033 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7034 maintainer.
7035
7036 2002-05-04 Jim Blandy <jimb@redhat.com>
7037
7038 * gdbtypes.c (replace_type): Doc fix.
7039
7040 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7041
7042 * valprint.c (strcat_longest): Delete commented out function.
7043 Update copyright.
7044
7045 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7046
7047 * MAINTAINERS: Mark a29k as deleted.
7048 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7049 Move new configurations to the top.
7050 * configure.tgt: Remove a29k.
7051 * config/a29k/tm-vx29k.h: Delete.
7052 * config/a29k/vx29k.mt: Delete.
7053 * config/a29k/tm-a29k.h: Delete.
7054 * config/a29k/a29k-udi.mt: Delete.
7055 * config/a29k/a29k.mt: Delete.
7056 * a29k-tdep.c: Delete.
7057 * remote-udi.c: Delete.
7058 * remote-mm.c: Delete.
7059 * remote-eb.c: Delete.
7060 * remote-adapt.c: Delete.
7061 * Makefile.in: Remove obsolete code.
7062 * config/s390/s390x.mt: Ditto.
7063 * config/s390/s390.mt: Ditto.
7064 * config/sparc/sparclynx.mh: Ditto.
7065 * config/sparc/linux.mh: Ditto.
7066 * config/pa/hppaosf.mh: Ditto.
7067 * config/pa/hppabsd.mh: Ditto.
7068 * config/ns32k/nbsd.mt: Ditto.
7069 * config/mips/vr5000.mt: Ditto.
7070 * config/m68k/sun3os4.mh: Ditto.
7071 * config/m68k/nbsd.mt: Ditto.
7072 * config/m68k/m68klynx.mh: Ditto.
7073 * config/m32r/m32r.mt: Ditto.
7074 * config/i386/x86-64linux.mt: Ditto.
7075 * config/i386/nbsdelf.mt: Ditto.
7076 * config/i386/nbsd.mt: Ditto.
7077 * config/i386/i386lynx.mh: Ditto.
7078
7079 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7080
7081 * target.c (debug_print_register): New function. Handle oversize
7082 registers.
7083 (debug_to_fetch_registers): Call.
7084 (debug_to_store_registers): Call.
7085
7086 2002-05-03 Jim Blandy <jimb@redhat.com>
7087
7088 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7089 (read_type): Doc fix.
7090 * gdbtypes.c (replace_type): Doc fix.
7091
7092 * stabsread.c (multiply_defined_struct): New complaint.
7093 (read_struct_type): If the type we were passed isn't empty, or
7094 incomplete, don't read the new struct type into it; complain,
7095 and return the original type unchanged. Take a new `type_code'
7096 argument, which is the type code for the new type.
7097 (read_type): Rather than storing the type's type code here, pass
7098 it as an argument to read_struct_type, and let that take care of
7099 storing it. That way, we don't overwrite the original type code,
7100 so read_struct_type can use it to decide whether we're overwriting
7101 something we shouldn't.
7102 (complain_about_struct_wipeout): New function.
7103
7104 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7105
7106 * gdbarch.sh: Assert that gdbarch is non-NULL.
7107 * gdbarch.c: Regenerate.
7108
7109 2002-05-03 Jason Merrill <jason@redhat.com>
7110
7111 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7112 and return NULL.
7113
7114 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7115
7116 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7117 (x86_64_dwarf2gdb_regno_map_length),
7118 (x86_64_dwarf2_reg_to_regnum): Added.
7119 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7120 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7121 (_initialize_x86_64_tdep): Synced with the change above.
7122 (x86_64_skip_prologue): Reformulated message.
7123
7124 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7125
7126 * f-exp.y: Also use new prev_lexptr variable
7127 to improve error reporting. Based on Michael Snyder
7128 2002-04-24 dated patch to c-exp.y.
7129 * jv-exp.y: Likewise.
7130 * m2-exp.y: Likewise.
7131
7132 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7133
7134 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7135 we are dealing with vectors.
7136
7137 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7138
7139 * config/m68k/tm-nbsd.h: Obvious fix,
7140 correct machine name.
7141
7142 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7143
7144 * p-typeprint.c (pascal_type_print_base): Add support
7145 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7146
7147 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7148
7149 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7150 for fondamental pascal 'char' type.
7151
7152 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7153
7154 * p-lang.h (is_pascal_string_type): Declaration changed,
7155 new sixth argument of type char ** added.
7156 * p-lang.c (is_pascal_string_type): Implementation
7157 changed. Args length_pos, length_size, string_pos, char_size
7158 can now be NULL. New argument arrayname set to the field
7159 name of the char array. Return value set to char array
7160 field index plus one.
7161 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7162 is_pascal_string_type function.
7163
7164 2002-05-02 Andrew Cagney <cagney@redhat.com>
7165
7166 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7167 <cagney@redhat.com> change.
7168 * gdbarch.c: Regenerate.
7169
7170 2002-05-02 Andrew Cagney <cagney@redhat.com>
7171
7172 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7173 before probing for a new one. Detect errorenous gdbarch_init
7174 functions.
7175 * gdbarch.c: Regenerate.
7176
7177 2002-05-01 Andrew Cagney <cagney@redhat.com>
7178
7179 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7180 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7181 * config/v850/tm-v850.h: Ditto. Update copyright.
7182
7183 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7184
7185 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7186 current_gdbarch.
7187
7188 2002-04-30 Michael Snyder <msnyder@redhat.com>
7189
7190 * arm-tdep.c: Whitespace clean-ups.
7191 (arm_skip_prologue): Fix thinko; two lines
7192 should have been removed as part of 4/24 change.
7193
7194 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7195
7196 * rs6000-tdep.c: Added comment describing how fpscr register
7197 numbers were chosen.
7198
7199 2002-04-30 Michael Snyder <msnyder@redhat.com>
7200
7201 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7202
7203 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7204
7205 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7206 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7207 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7208
7209 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7210
7211 From Louis Hamilton <hamilton@redhat.com>:
7212 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7213 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7214 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7215 not bfd-private xcoff data, to determine wordsize.
7216 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7217
7218 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7219
7220 GDB 5.2 released from 5.2 branch.
7221
7222 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7223
7224 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7225 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7226 (x86_64_register_info_table): Added comments with register numbers.
7227
7228 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7229
7230 * rs6000-tdep.c (rs6000_extract_return_value,
7231 rs6000_store_return_value): Handle returning vectors.
7232 (rs6000_gdbarch_init): Use
7233 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7234 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7235 New function.
7236 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7237 vectors.
7238 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7239 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7240
7241 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7242
7243 * hpread.c (hpread_psymtab_to_symtab_1,
7244 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7245 with fprintf_unfiltered (gdb_stderr,...).
7246
7247 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7248
7249 * remote-array.c (printf_monitor, write_monitor,
7250 array_insert_breakpoint, array_remove_breakpoint ):
7251 Replace fprintf (stderr,...
7252 with fprintf_unfiltered (gdb_stderr,....
7253 * remote-es.c: Likewise.
7254 * remote-os9k.c: Likewise.
7255 * remote-st.c: Likewise.
7256
7257 2002-04-28 Andreas Schwab <schwab@suse.de>
7258
7259 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7260 linux-proc.o and gcore.o.
7261
7262 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7263
7264 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7265 code without frame pointers.
7266
7267 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7268
7269 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7270 ON_STACK is needed.
7271
7272 2002-04-26 Ben Elliston <bje@redhat.com>
7273
7274 * target.c (do_xfer_memory): Correct reference to the new option
7275 "trust-readonly-sections".
7276
7277 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7278
7279 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7280 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7281 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7282 vectors.
7283 (read_array_type): Record the fact that this array type is really a
7284 vector (i.e. are passed in by value).
7285
7286 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7287
7288 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7289 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7290 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7291 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7292 * alpha-linux-tdep.c: Include frame.h.
7293 (alpha_linux_sigcontext_addr): New function.
7294 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7295 alpha_linux_sigcontext_addr.
7296 * alpha-osf1-tdep.c: Include gdbcore.h.
7297 (alpha_osf1_sigcontext_addr): New function.
7298 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7299 alpha_osf1_sigcontext_addr.
7300 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7301 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7302
7303 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7304
7305 * stack.c (selected_frame_level):
7306 (select_frame): Do not set selected_frame_level.
7307 * frame.h (selected_frame_level): Delete declaration.
7308
7309 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7310
7311 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7312 convert_from_func_ptr-addr when AIX / PowerOpen.
7313
7314 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7315
7316 * valops.c (hand_function_call): Call
7317 generic_save_call_dummy_addr.
7318 * frame.h (generic_save_call_dummy_addr): Declare.
7319 * blockframe.c (struct dummy_frame): Add fields call_lo and
7320 call_hi.
7321 (generic_find_dummy_frame): Check for PC in range call_lo to
7322 call_hi instead of entry_point_address.
7323 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7324 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7325 (generic_save_call_dummy_addr): New function.
7326
7327 2002-04-24 David S. Miller <davem@redhat.com>
7328
7329 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7330 sparc_skip_prologue.
7331 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7332 information to find prologue when possible.
7333 (sparc_prologue_frameless_p): Call examine_prologue directly.
7334 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7335 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7336 second argument.
7337 (SKIP_PROLOGUE): Likewise.
7338
7339 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7340
7341 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7342 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7343 indicate that the condition it was testing is always true.
7344 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7345 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7346 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7347
7348 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7349
7350 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7351 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7352 tdep->jb_pc and tdep->jb_elt_size.
7353 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7354 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7355 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7356 * alpha-nat.c (get_longjmp_target): Remove.
7357 (JB_ELEMENT_SIZE): Ditto.
7358 (JB_PC): Ditto.
7359 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7360 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7361 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7362 to alpha_get_longjmp_target.
7363 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7364 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7365 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7366
7367 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7368
7369 * README: Update to GDB 5.2.
7370
7371 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7372
7373 * gdbarch.sh (LC_ALL): Set to `c'.
7374
7375 2002-04-25 Theodore A. Roth <troth@verinet.com>
7376
7377 * avr-tdep.c: Ran through gdb_indent.sh.
7378
7379 2002-04-25 Theodore A. Roth <troth@verinet.com>
7380
7381 * MAINTAINERS: Add myself as AVR maintainer.
7382 * NEWS: Note new target avr.
7383
7384 2002-04-25 Theodore A. Roth <troth@verinet.com>
7385
7386 * Makefile.in: Add support for AVR target.
7387 * configure.tgt: Add support for AVR target.
7388 * avr-tdep.c: New file
7389 * config/avr/avr.mt: New file.
7390
7391 2002-04-25 Theodore A. Roth <troth@verinet.com>
7392
7393 * MAINTAINERS: Add myself to write-after-approval.
7394
7395 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7396
7397 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7398 with fprintf_unfiltered (gdb_stderr,....
7399
7400 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7401
7402 Fix PR gdb/508.
7403 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7404
7405 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7406
7407 * p-exp.y: Also use new prev_lexptr variable
7408 to improve error reporting. Based on Michael Snyder
7409 2002-04-24 dated patch to c-exp.y.
7410
7411 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7412
7413 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7414 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7415 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7416 to 0.
7417 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7418 and struct value.
7419 (FUNCTION_START_OFFSET): Remove.
7420 (BREAKPOINT): Ditto.
7421
7422 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7423
7424 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7425 * NEWS: Ditto.
7426
7427 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7428
7429 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7430 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7431 alpha_linux_pc_in_sigtramp.
7432 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7433 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7434 alpha_osf1_pc_in_sigtramp.
7435 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7436 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7437 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7438 alphafbsd_pc_in_sigtramp.
7439 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7440 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7441 alphanbsd_pc_in_sigtramp.
7442 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7443 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7444
7445 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7446
7447 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7448
7449 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7450
7451 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7452 alphanbsd-tdep.c.
7453 (alphanbsd-nat.o): New dependency list.
7454 (alphanbsd-tdep.o): Ditto.
7455 * NEWS: Note new native NetBSD/alpha configuration.
7456 * alphanbsd-nat.c: New file.
7457 * alphanbsd-tdep.c: Ditto.
7458 * configure.host (alpha*-*-netbsd*): New host.
7459 * configure.tgt (alpha*-*-netbsd*): New target.
7460 * config/alpha/nbsd.mh: New file.
7461 * config/alpha/nbsd.mt: Ditto.
7462 * config/alpha/nm-nbsd.h: Ditto.
7463 * config/alpha/tm-nbsd.h: Ditto.
7464
7465 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7466
7467 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7468 (alpha-osf1-tdep.o): New dependency list.
7469 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7470 and skip_sigtramp_frame members.
7471 * alpha-linux-tdep.c: Include gdbcore.h.
7472 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7473 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7474 * alpha-osf1-tdep.c: New file.
7475 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7476 alpha-osf1-dep.c.
7477 (alpha_frame_past_sigtramp_frame): New function.
7478 (alpha_dynamic_sigtramp_offset): Ditto.
7479 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7480 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7481 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7482 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7483 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7484 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7485 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7486 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7487 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7488 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7489 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7490 to find_solib_trampoline_target.
7491 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7492 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7493 (SKIP_TRAMPOLINE_CODE): Remove.
7494 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7495 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7496 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7497 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7498 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7499 (PROC_SIGTRAMP_MAGIC): Ditto.
7500 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7501 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7502 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7503 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7504 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7505
7506 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7507
7508 * NEWS: Note that Alpha targets are now multi-arch.
7509
7510 2002-04-24 Michael Snyder <msnyder@redhat.com>
7511
7512 * parser-defs.h (prev_lexptr): New external variable.
7513 * parse.c (parse_exp_1): Set prev_lexptr to null before
7514 calling the language-specific parser.
7515 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7516 (yyerror): Use prev_lexptr in error reporting.
7517
7518 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7519
7520 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7521 * gregset.h: If FILL_FPXREGSET is defined, provide
7522 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7523 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7524 is defined, call fill_fpxregset.
7525
7526 2002-04-24 Roland McGrath <roland@frob.com>
7527
7528 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7529 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7530 (supply_gregset, supply_fpregset): New functions.
7531
7532 * gnu-nat.c (gnu_find_memory_regions): New function.
7533 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7534 (gnu_xfer_memory): Add a cast.
7535
7536 2002-04-24 Michael Snyder <msnyder@redhat.com>
7537
7538 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7539 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7540 of argument regs ("str r(0123), [r11, #-nn"]).
7541 (arm_skip_prologue): Better handling for frameless functions.
7542 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7543 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7544
7545 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7546
7547 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7548 NUM_PSEUDO_REGS can be used.
7549
7550 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7551
7552 * arch-utils.h: Update copyright.
7553
7554 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7555 * gdbarch.h, gdbarch.c: Re-generate.
7556
7557 * inferior.h (IN_SIGTRAMP): Delete definition.
7558 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7559 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7560
7561 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7562 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7563 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7564 (find_proc_framesize): Ditto.
7565 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7566 (alpha_init_extra_frame_info): Ditto.
7567 * infrun.c (handle_inferior_event): Ditto.
7568 (handle_inferior_event): Ditto.
7569 (check_sigtramp2): Ditto.
7570 * blockframe.c (create_new_frame): Ditto.
7571 (get_prev_frame): Ditto.
7572 * ppc-linux-tdep.c: Update comments.
7573 * i386-linux-tdep.c: Update comments.
7574 * breakpoint.c (bpstat_what): Update comment.
7575
7576 2002-04-24 David S. Miller <davem@redhat.com>
7577
7578 * i960-tdep.c (register_in_window_p): New function.
7579 (i960_find_saved_register): Use it instead of
7580 REGISTER_IN_WINDOW_P.
7581 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7582
7583 * symtab.h (find_stab_function_addr): Kill extern.
7584 * minsyms.c (find_stab_function_addr): Remove from here...
7585 * dbxread.c: ... to here, and mark it static.
7586
7587 2002-04-20 David S. Miller <davem@redhat.com>
7588
7589 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7590 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7591
7592 2002-04-21 David S. Miller <davem@redhat.com>
7593
7594 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7595 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7596 (vx_write_register): Likewise.
7597
7598 2002-04-23 J. Brobecker <brobecker@gnat.com>
7599
7600 * source.c (is_regular_file): New function.
7601 (openp): Check wether file to open is a regular file
7602 to avoid opening directories.
7603
7604 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7605
7606 * findvar.c (extract_signed_integer): Cast printf argument
7607 to suppress format warning.
7608 (extract_unsigned_integer): Likewise.
7609 * infcmd.c (registers_info): Likewise.
7610 * top.c (get_prompt_1): Likewise.
7611 * valops.c (value_assign): Likewise.
7612 * valprint.c (print_decimal): Likewise.
7613
7614 2002-04-22 H.J. Lu (hjl@gnu.org)
7615
7616 * c-exp.y (typebase): Support
7617
7618 [long|long long|short] [signed|unsigned] [int|]
7619
7620 and
7621
7622 signed [long|long long|short] int
7623
7624 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7625
7626 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7627 and vax-tdep.h.
7628 * vax-tdep.h: New file.
7629 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7630 Make several routines static.
7631 (vax_get_saved_register): New function.
7632 (vax_gdbarch_init): New function.
7633 (_initialize_vax_tdep): Register vax_gdbarch_init.
7634 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7635 Remove macros now under the control of gdbarch.
7636
7637 2002-04-22 Michael Snyder <msnyder@redhat.com>
7638
7639 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7640 Some whitespace and coding standards tweaks.
7641
7642 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7643
7644 * vax-tdep.c: Include regcache.h.
7645 (vax_call_dummy_words): New.
7646 (sizeof_vax_call_dummy_words): New.
7647 (vax_fix_call_dummy): New function.
7648 (vax_saved_pc_after_call): Ditto.
7649 * config/vax/tm-vax.h: Don't include regcache.h.
7650 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7651 (CALL_DUMMY): Remove.
7652 (CALL_DUMMY_WORDS): Define.
7653 (SIZEOF_CALL_DUMMY_WORDS): Define.
7654 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7655
7656 2002-04-18 Michael Snyder <msnyder@redhat.com>
7657
7658 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7659
7660 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7661
7662 * vax-tdep.c (vax_frame_chain): New function.
7663 (vax_push_dummy_frame): Ditto.
7664 (vax_pop_frame): Ditto.
7665 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7666 (FRAMELESS_FUNCTION_INVOCATION): Use
7667 generic_frameless_function_invocation_not.
7668 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7669 (POP_FRAME): Use vax_pop_frame.
7670
7671 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7672
7673 * vax-tdep.c (vax_store_struct_return): New function.
7674 (vax_extract_return_value): Ditto.
7675 (vax_store_return_value): Ditto.
7676 (vax_extract_struct_value_address): Ditto.
7677 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7678 vax_store_struct_return.
7679 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7680 (STORE_RETURN_VALUE): Use vax_store_return_value.
7681 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7682
7683 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7684
7685 * vax-tdep.c (vax_frame_saved_pc): New function.
7686 (vax_frame_args_address_correct): Ditto.
7687 (vax_frame_args_address): Ditto.
7688 (vax_frame_locals_address): Ditto.
7689 (vax_frame_num_args): Move code to be in proximity to
7690 other frame-related functions.
7691 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7692 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7693 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7694 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7695 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7696
7697 2002-04-22 H.J. Lu (hjl@gnu.org)
7698
7699 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7700 includedir.
7701
7702 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7703
7704 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7705 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7706 (FRAME_INIT_SAVED_REGS): New macro.
7707
7708 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7709
7710 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7711
7712 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7715 where needed.
7716 (fetch_osf_core_registers): Likewise.
7717 (supply_gregset): Likewise.
7718
7719 2002-04-22 J. Brobecker <brobecker@gnat.com>
7720
7721 * symfile.h (get_section_index): Define.
7722 * symfile.c (get_section_index): New function.
7723 * mdebugread.c (SC_IS_SBSS): New macro.
7724 (SC_IS_BSS): Return true for the scBss storage class only, as
7725 the scSBss storage class refers to the .sbss section.
7726 (parse_partial_symbols): Discard the symbols which associated
7727 section does not exist.
7728 Make sure to use the .sbss section index for symbols which
7729 storage class is scBss, rather than using the .bss section index.
7730
7731 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7732
7733 * vax-tdep.c: Update copyright years.
7734 (vax_register_name): New function.
7735 (vax_register_byte): Ditto.
7736 (vax_register_raw_size): Ditto.
7737 (vax_register_virtual_size): Ditto.
7738 (vax_register_virtual_type): Ditto.
7739 * config/vax/tm-vax.h: Update copyright years.
7740 (REGISTER_NAMES): Remove.
7741 (REGISTER_NAME): Define.
7742 (REGISTER_BYTE): Use vax_register_byte.
7743 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7744 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7745 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7746
7747 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7748
7749 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7750 declaration
7751 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7752
7753 2002-04-21 David S. Miller <davem@redhat.com>
7754
7755 * arch-utils.c (generic_prologue_frameless_p): Kill
7756 SKIP_PROLOGUE_FRAMELESS_P code.
7757 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7758 references.
7759 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7760 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7761 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7762 references.
7763 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7764 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7765 (sparc_gdbarch_init): Pass it to
7766 set_gdbarch_prologue_frameless_p.
7767
7768 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7769
7770 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7771 (alphabsd-nat.o): New dependency list.
7772
7773 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7774
7775 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7776 alphafbsd-tdep.c.
7777 (alpha-linux-tdep.o): New dependency list.
7778 (alphafbsd-tdep.o): Likewise.
7779
7780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7781
7782 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7783 to here...
7784 * alpha-tdep.c: ...from here.
7785 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7786
7787 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7788
7789 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7790 prototype from here...
7791 * alpha-tdep.h: ...to here.
7792
7793 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7794
7795 * frame.h (selected_frame_level): Document as deprecated.
7796 (frame_relative_level): Declare.
7797 * stack.c (frame_relative_level): New function.
7798 (selected_frame_level): Document as deprecated.
7799 (select_frame): Do not set the selected_frame_level.
7800
7801 * stack.c (frame_info, record_selected_frame): Update.
7802 (frame_command, current_frame_command): Update.
7803 (up_silently_base, up_command, down_silently_base): Update.
7804 (down_command): Update.
7805 * inflow.c (kill_command): Update.
7806 * tracepoint.c (finish_tfind_command): Update.
7807 * corelow.c (core_open): Update.
7808 * thread.c (info_threads_command): Update.
7809 (do_captured_thread_select): Update.
7810 * infcmd.c (finish_command): Update.
7811 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7812
7813 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7814
7815 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7816
7817 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7818
7819 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7820 type const.
7821
7822 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7823
7824 * alphafbsd-tdep.c: Update copyright years. Include
7825 alpha-tdep.h.
7826 (alphafbsd_use_struct_convention): Make static.
7827 (alphafbsd_init_abi): New function.
7828 (_initialize_alphafbsd_tdep): New function.
7829 * config/alpha/tm-fbsd.h: Update copyright years.
7830 (USE_STRUCT_CONVENTION): Remove.
7831
7832 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7833
7834 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7835 an Alpha ABI variant.
7836 (alpha_abi_handler_list): Declare.
7837 (alpha_gdbarch_register_os_abi): New function.
7838 (alpha_gdbarch_init): Give registered ABI variant handlers a
7839 chance to tweak the gdbarch once we have set up defaults.
7840 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7841
7842 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7843
7844 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7845 to standard_coerce_float_to_double.
7846 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7847
7848 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7849
7850 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7851 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7852 from gdbarch_tdep rather than a constant.
7853 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7854 the default text address for all Alpha Unix ABIs.
7855 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7856 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7857
7858 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7859
7860 * alpha-tdep.h: New file. Includes several Alpha target constants
7861 taken from...
7862 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7863 let gdbarch deal with.
7864 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7865 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7866 to dependency list.
7867 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7868 Alpha target register names.
7869 * alphabsd-nat.c: Likewise.
7870 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7871 Alpha target register names. Make serveral routines static.
7872 (alpha_get_saved_register): New function.
7873 (alpha_abi_names): New.
7874 (process_note_abi_tag_sections): New function.
7875 (get_elfosabi): New function.
7876 (alpha_gdbarch_init): New function.
7877 (alpha_dump_tdep): New function.
7878 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7879
7880 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7881
7882 * frame.c (find_saved_register): Delete #ifdef
7883 HAVE_REGISTER_WINDOWS code.
7884 * config/sparc/tm-sparc.h: Update comments.
7885 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7886
7887 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7888
7889 * i960-tdep.c (i960_find_saved_register): New function.
7890 (i960_get_saved_register): New function.
7891 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7892 (i960_get_saved_register): Declare.
7893 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7894
7895 2002-04-20 David S. Miller <davem@redhat.com>
7896
7897 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7898
7899 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7900
7901 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7902 instead of NUM_PSEUDO_REGS.
7903
7904 2002-04-20 David S. Miller <davem@redhat.com>
7905
7906 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7907 GDB_MULTI_ARCH_PARTIAL
7908 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7909 define, let tm-sp64.h do it.
7910
7911 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7912
7913 * frame.c (find_saved_register): Avoid a NULL pointer
7914 dereference and actually walk the frame list.
7915
7916 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7917
7918 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7919 sorted in most most-recent-used order. Document.
7920 * gdbarch.h, gdbarch.c: Regenerate.
7921
7922 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7923
7924 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7925 instead of ->prev.
7926 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7927 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7928 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7929 instead of ->prev.
7930
7931 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7932
7933 Fix PR gdb/471.
7934 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7935 (build_builtin_type_vec128): Ditto.
7936 (append_composite_type_field): Fix calculation of type length in
7937 union case.
7938
7939 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7940
7941 * config/djgpp/README: Update.
7942
7943 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7944 compiler warnings.
7945
7946 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7947
7948 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7949 (alpha_setup_arbitrary_frame): ...to this.
7950 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7951 for alpha_setup_arbitrary_frame.
7952
7953 2002-04-18 Andrew Cagney <cagney@redhat.com>
7954
7955 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7956 * gdbarch.h, gdbarch.c: Regenerate.
7957
7958 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7959 * target.h (memory_breakpoint_from_pc): Update declaration.
7960 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7961
7962 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7963 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7964 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7965 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7966 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7967 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7968 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7969 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7970 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7971 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7972 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7973 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7974
7975 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7976 const pointer.
7977 * monitor.c (monitor_insert_breakpoint): Ditto.
7978 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7979
7980 * config/mcore/tm-mcore.h: Update copyright.
7981 * mem-break.c: Ditto.
7982 * xstormy16-tdep.c: Ditto.
7983
7984 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7985
7986 * p-exp.y: Add precedence rule for '^' token.
7987 This removes the shift/reduce conflicts.
7988 Remove the comment concerning these shift/reduce conflicts.
7989
7990 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7991
7992 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7993 (registers_powerpc_nofp): New register set for processors
7994 without floating point unit.
7995
7996 2002-04-18 David S. Miller <davem@redhat.com>
7997
7998 * MAINTAINERS: Add myself to write-after-approval.
7999
8000 2002-04-17 Michael Snyder <msnyder@redhat.com>
8001
8002 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8003
8004 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8005
8006 * rs6000-tdep.c (frame_initial_stack_address): Use
8007 frame_register_read to read the alloca_reg.
8008
8009 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8010
8011 * frame.c (find_saved_register): Find saved registers in the next
8012 not prev frame.
8013 Fix PR gdb/365.
8014
8015 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8016
8017 * gdbarch.sh (LANG): Set to ``c''.
8018
8019 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8020
8021 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8022
8023 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8024
8025 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8026 Update copyright.
8027
8028 * hpread.c (hpread_get_lntt): Add declaration.
8029 Also fix PR gdb/391.
8030
8031 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8032
8033 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8034 * aclocal.m4, configure: Re-generate.
8035 Fix PR gdb/391.
8036
8037 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8038
8039 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8040 instead of tm_print_insn.
8041
8042 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8043
8044 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8045
8046 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8047
8048 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8049 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8050 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8051
8052 2002-04-12 Don Howard <dhoward@redhat.com>
8053
8054 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8055 max_user_call_depth.
8056 (init_cmd_lists): Initialize the new value;
8057 * cli/cli-script.c (execute_user_command): Limit the call depth of
8058 user defined commands. This avoids a core-dump when user commands
8059 are infinitly recursive.
8060
8061 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8062
8063 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8064 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8065 from tdep struct instead of DEFAULT_LR_SAVE.
8066 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8067 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8068 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8069
8070 2002-04-12 Michael Snyder <msnyder@redhat.com>
8071
8072 * Remote.c: Spelling fix.
8073 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8074 If no symbol found for "sbrk", try "_sbrk".
8075 (make_output_phdrs): Use bfd_section_name.
8076 (gcore_copy_callback): Use bfd_section_name.
8077 * eval.c: Indentation fix-ups.
8078 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8079 in case it gets applied to an address that is already
8080 in the instruction space.
8081 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8082 * symfile.c: Fix indentation, long lines.
8083 * source.c: White space fix-up.
8084
8085 2002-04-12 Andrew Cagney <cagney@redhat.com>
8086
8087 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8088 * frame.c (frame_register_read): New function. Return non-zero on
8089 success.
8090 (read_relative_register_raw_bytes_for_frame): Delete.
8091 (read_relative_register_raw_bytes): Delete.
8092 * frame.h (frame_register_read): Declare.
8093 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8094 * sh-tdep.c: Ditto.
8095 * infcmd.c (do_registers_info): Ditto.
8096 * hppa-tdep.c: Ditto.
8097 * rs6000-tdep.c: Ditto.
8098 * h8500-tdep.c: Ditto.
8099 * mips-tdep.c: Ditto.
8100 * h8300-tdep.c: Ditto.
8101 * z8k-tdep.c: Ditto.
8102
8103 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8104
8105 From Jimi X <jimix@watson.ibm.com>:
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8107 64-bit SysV ABI.
8108
8109 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8110
8111 From Jimi X <jimix@watson.ibm.com>:
8112 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8113 bfd info.
8114
8115 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8116
8117 From Jimi X <jimix@watson.ibm.com>:
8118 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8119 register sets for these processor variants.
8120
8121 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8122
8123 * regformats/reg-ppc.dat: Support FPSCR.
8124
8125 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8126
8127 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8128 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8129 Add fpscr as an invalid/unfetchable register.
8130 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8131 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8132 (fill_fpregset): Add support for register fpscr.
8133 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8134 (fill_gregset): Account for the fact that register ``mq'' might
8135 not exist.
8136 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8137 (registers_power): Add fpscr to register set at slot 71.
8138 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8139 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8140
8141 2002-04-11 Michael Snyder <msnyder@redhat.com>
8142
8143 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8144 * configure: Regenerate.
8145 * config.in: Regenerate.
8146 * acconfig.h: Add define for _SYSCALL32.
8147 * core-sol2.c: Remove #define _SYSCALL32.
8148 * solib-legacy.c: Remove #define _SYSCALL32.
8149
8150 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8151
8152 * stack.c (select_frame): Cleanup internal error message, do not
8153 use %p.
8154
8155 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8156
8157 * stack.c (select_frame): Check that selected_frame and the
8158 specified level are as expected.
8159 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8160 Update copyright.
8161 * frame.h (struct frame_info): Add field `level'. Update
8162 copyright.
8163 Work-in-progress PR gdb/464.
8164
8165 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8166
8167 * maint.c (maint_print_section_info): Rename print_section_info.
8168 (print_bfd_section_info, print_objfile_section_info): Update.
8169 * inferior.h (struct gdbarch): Add opaque declaration.
8170 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8171 * gdbarch.h: Regenerate.
8172
8173 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8174
8175 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8176 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8177 (kernel_u_size): Added.
8178 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8179 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8180
8181 2002-04-04 Jim Ingham <jingham@apple.com>
8182
8183 * valarith.c (find_size_for_pointer_math): New function, either returns
8184 the size for a pointer's target, returns 1 for void *, or errors for
8185 incomplete types.
8186 (value_add, value_sub): use find_size_for_pointer_math.
8187
8188 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8189
8190 * linux-low.c (linux_look_up_symbols): New hook.
8191 (linux_target_ops): Add linux_look_up_symbols.
8192 * remote-utils.c (decode_address): New function.
8193 (look_up_one_symbol): New function.
8194 * server.c (handle_query): Call target look_up_symbols hook.
8195 * server.h (look_up_one_symbol): Add prototype.
8196 * target.h (struct target_ops): Add look_up_symbols hook.
8197
8198 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8199
8200 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8201 override FP_REGNUM with frame->fp. Update copyright.
8202 * parse.c (num_std_regs, std_regs): Delete.
8203 (target_map_name_to_register): Do not search std_regs. Update
8204 function description.
8205 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8206 declarations. Update copyright.
8207 Fix PR gdb/251.
8208
8209 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8210
8211 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8212 after the last symbol in a block.
8213
8214 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8215
8216 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8217 is non zero as a found symbol.
8218
8219 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8220
8221 * findvar.c: Include "builtin-regs.h".
8222 (value_of_register): Call value_of_builtin_reg when applicable.
8223 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8224 (target_map_name_to_register): Call
8225 builtin_reg_map_name_to_regnum.
8226 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8227 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8228 (builtin_regs_h): Define.
8229 (builtin-regs.o): New target.
8230 (findvar.o): Add $(builtin_regs_h).
8231 * builtin-regs.c, builtin-regs.h: New files.
8232 * std-regs.c: New file.
8233 Partial fix for PR gdb/251.
8234
8235 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8236
8237 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8238 it's no longer required.
8239
8240 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8241
8242 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8243
8244 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8245
8246 From Jimi X <jimix@watson.ibm.com>:
8247 * rs6000-tdep.c (rs6000_software_single_step): Use
8248 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8249 and size. Use target_insert_breakpoint() and
8250 target_remove_breakpoint() to insert and remove breakpoints
8251 instead of explicit memory reads and writes.
8252
8253 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8254
8255 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8256 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8257 ELF_OBJECT_FORMAT ifdef.
8258
8259 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8260
8261 From Jimi X <jimix@watson.ibm.com>:
8262 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8263
8264 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8265
8266 From Jimi X <jimix@watson.ibm.com>:
8267 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8268 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8269
8270 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8271
8272 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8273 s/asprintf/xasprintf/.
8274 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8275
8276 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8277
8278 I believe Jeff Law denies responsability for this one:
8279 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8280 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8281 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8282 Work-around for PR gdb/366.
8283
8284 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8285
8286 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8287 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8288 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8289
8290 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8291
8292 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8293 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8294 information.
8295
8296 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8297
8298 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8299 maintainer.
8300
8301 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8302
8303 * README (Reporting Bugs in GDB): Document the bug web page as the
8304 prefered way of submitting bugs.
8305 Fix PR gdb/402.
8306
8307 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8308
8309 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8310 -1. Update comment.
8311 * gdbarch.h, gdbarch.c: Re-generate.
8312
8313 2002-04-07 Andreas Schwab <schwab@suse.de>
8314
8315 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8316 buffer to regcache_collect.
8317
8318 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8319
8320 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8321 * gdbarch.c, gdbarch.h: Re-generate.
8322
8323 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8324
8325 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8326 declaration. Fix -Werror.
8327
8328 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8329
8330 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8331 * gdbarch.c: Regenerate.
8332
8333 2002-04-05 Michael Snyder <msnyder@redhat.com>
8334
8335 * breakpoint.c (clear_command): Rewrite middle section to
8336 combine two loops with identical control conditions.
8337 Add a cleanup to eliminate a memory leak.
8338 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8339
8340 2002-04-05 H.J. Lu (hjl@gnu.org)
8341
8342 * solib-svr4.c (bkpt_names): Add "__start".
8343
8344 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8345
8346 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8347 as test for 64 bit target.
8348
8349 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8350
8351 * h8500-tdep.c (h8500_write_fp): Delete function.
8352 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8353 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8354 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8356 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8357 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8358 (s390_write_fp):
8359 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8360 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8361 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8362 (d10v_write_fp): Delete function.
8363 * inferior.h (write_fp, generic_target_write_fp): Delete
8364 declarations.
8365 * regcache.c (generic_target_write_fp): Delete function.
8366 (write_fp): Delete function.
8367 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8368 * gdbarch.h, gdbarch.c: Regenerate.
8369 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8370 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8371 (sparc64_write_fp): Delete declaration.
8372 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8373 (h8500_write_fp): Delete declaration.
8374
8375 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8376
8377 * sparc-tdep.c (sparc64_write_fp): Delete.
8378 (sparc_push_dummy_frame): Replace write_fp call with code to store
8379 the FP directly.
8380 (sparc_gdbarch_init): Do not initialize write_fp.
8381
8382 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8383
8384 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8385 clause.
8386
8387 2002-03-29 Jim Blandy <jimb@redhat.com>
8388
8389 * stack.c (get_selected_block): Add new argument `addr_in_block',
8390 used to return the exact code address we used to select the block,
8391 not just the block.
8392 * blockframe.c (get_frame_block, get_current_block): Same.
8393 * frame.h (get_frame_block, get_current_block,
8394 get_selected_block): Update declarations.
8395 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8396 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8397
8398 2002-04-05 Michael Snyder <msnyder@redhat.com>
8399
8400 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8401 warning message.
8402
8403 2002-04-05 J. Brobecker <brobecker@gnat.com>
8404
8405 * utils.c (xfullpath): New function.
8406 * defs.h (xfullpath): Add declaration.
8407 * source.c (openp): Use xfullpath in place of gdb_realpath to
8408 avoid resolving the basename part of filenames when the
8409 associated file is a symbolic link. This fixes a potential
8410 inconsistency between the filenames known to GDB and the
8411 filenames it prints in the annotations.
8412 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8413 to be able to match a filename with either the real filename, or
8414 the name of any symbolic link to this file.
8415 (lookup_partial_symtab): Ditto.
8416
8417 2002-04-04 Michael Snyder <msnyder@redhat.com>
8418
8419 * breakpoint.c: Add support for hardware breakpoints in overlays.
8420 (overlay_events_enabled): New state variable.
8421 (insert_breakpoints): Use overlay_events_enabled to decide
8422 whether to attempt to set a breakpoint at the overlay load addr.
8423 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8424 (remove_breakpoint): Use overlay_events_enabled to decide
8425 whether breakpoints need to be removed from overlay load addr.
8426 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8427 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8428 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8429 disable_overlay_breakpoints): Update overlay_events_enabled.
8430
8431 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8432
8433 * dwarf2read.c (struct function_range): New.
8434 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8435 (check_cu_functions): New.
8436 (read_file_scope): Initialize global function lists.
8437 Call dwarf_decode_line after processing children.
8438 (read_func_scope): Add to global function list.
8439 (dwarf_decode_lines): Call check_cu_functions everywhere
8440 record_line is called. Call record_line with a linenumber
8441 of 0 to mark sequence ends.
8442
8443 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8444
8445 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8446 change sync with glibc.
8447
8448 2002-04-03 Jim Blandy <jimb@redhat.com>
8449
8450 * configure.in: Call AC_C_INLINE.
8451 * configure: Regenerated.
8452
8453 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8454
8455 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8456 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8457
8458 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8459
8460 * NEWS: Mention gcore support on FreeBSD/i386.
8461
8462 * fbsd-proc.c: New file.
8463 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8464 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8465
8466 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8467 while statement.
8468
8469 2002-03-29 Jim Blandy <jimb@redhat.com>
8470
8471 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8472 unescaped newlines in string literals, but newer ones don't. So
8473 escape them.
8474
8475 2002-03-26 Michael Snyder <msnyder@redhat.com>
8476 Andrew Cagney <cagney@redhat.com>
8477
8478 * cli/cli-dump.c: New file. Dump memory to file,
8479 restore file to memory.
8480 * cli/cli-dump.h: New file.
8481 * Makefile.in: Add rules, dependencies for cli-dump.o.
8482 * NEWS: Mention new commands.
8483
8484 2002-03-28 Michael Snyder <msnyder@redhat.com>
8485
8486 * symfile.c (symbol_file_add): Move test for null symbols to later.
8487
8488 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8489
8490 From veksler at il.ibm.com:
8491 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8492 the xstrduped original path.
8493 Fix PR gdb/417.
8494
8495 2002-03-27 Michael Snyder <msnyder@redhat.com>
8496
8497 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8498 * infcmd.c (_initialize_infcmd): Ditto.
8499 * language.c (_initialize_language): Ditto.
8500 * symfile.c (_initialize_symfile): Ditto.
8501 * top.c (_init_main): Ditto.
8502 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8503
8504 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8505
8506 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8507 vector registers handling.
8508 (skip_prologue): Handle new AltiVec instructions. Fill in new
8509 fields of frame data.
8510 (frame_get_saved_regs): Fill in information for AltiVec registers.
8511
8512 2002-03-27 Jim Blandy <jimb@redhat.com>
8513
8514 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8515 a function; leave this macro here to invoke that function.
8516 (symbol_init_mangled_name): Declaration for that function.
8517 * symtab.c (symbol_init_mangled_name): New function.
8518
8519 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8520
8521 * valarith.c: Replace strerror with safe_strerror.
8522 * tracepoint.c: Ditto.
8523 * lin-lwp.c: Ditto.
8524 * go32-nat.c: Ditto.
8525 * inflow.c: Ditto.
8526 * gnu-nat.c: Ditto.
8527
8528 2002-03-27 Andreas Schwab <schwab@suse.de>
8529
8530 * event-top.c (command_line_handler): Remove useless if.
8531
8532 2002-03-27 Andreas Jaeger <aj@suse.de>
8533
8534 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8535 comment.
8536
8537 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8538
8539 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8540 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8541 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8542 (x86_64_linux_dr_get_status, supply_gregset),
8543 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8544 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8545 (x86_64_register_info_table): Add.
8546 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8547 (x86_64_register_raw_size, x86_64_register_virtual_type),
8548 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8549 general x86_64_register_info_table.
8550 (i386_gdbarch_init): gdbarch_register_bytes is now set
8551 dynamicaly during initialization.
8552 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8553 * gdbserver/linux-x86-64-low.c: Ditto.
8554
8555 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8556
8557 * gdbserver/server.c (main): Call target_signal_to_host_p
8558 and target_signal_to_host on signals received from the remote.
8559 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8560 target_signal_from_host on signals sent to the remote.
8561 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8562 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8563
8564 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8565
8566 * signals/signals.c: Include "server.h" in gdbserver build.
8567 (target_signal_from_name): Don't use STREQ.
8568 (_initialize_signals): Likewise. Don't include function in
8569 gdbserver build.
8570
8571 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8572
8573 * signals.c: Moved to...
8574 * signals/signals.c: Here.
8575 * Makefile (signals.o): Update.
8576
8577 2002-03-26 Jeff Law (law@redhat.com)
8578
8579 * somread.c (som_symtab_read): Remove some commented out code and
8580 updated related comments. Do not set the minimal symbol table to
8581 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8582 in a dynamic executable.
8583 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8584 where we are unable to find the minimal symbol for the given
8585 PC value.
8586
8587 2002-03-25 Jeff Law (law@redhat.com)
8588
8589 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8590
8591 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8592
8593 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8594
8595 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8596
8597 * command.h: Update copyright.
8598 (struct cmd_list_element): Replace definition with opaque
8599 declaration.
8600 (enum cmd_types): Document that it will eventually be moved to
8601 cli/cli-decode.h
8602 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8603 (MALLOCED_REPLACEMENT): Delete macro.
8604 * Makefile.in (cli_decode_h): Add $(command_h).
8605 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8606 * top.c: Include "cli/cli-decode.h".
8607 * completer.c: Include "cli/cli-decode.h".
8608 * maint.c: Include "cli/cli-decode.h".
8609 * cli/cli-decode.h: Include "command.h".
8610 (enum command_class): Delete.
8611 (enum cmd_types): Comment out.
8612 (enum cmd_auto_boolean): Delete.
8613 (enum var_types): Delete.
8614
8615 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8616
8617 * cli/cli-decode.c: Include "gdb_assert.h".
8618 (add_set_or_show_cmd): New static function.
8619 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8620 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8621 all fields, such as func, from the set command.
8622
8623 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8624
8625 * MAINTAINERS (sh-elf): Change warning flag to -w.
8626
8627 2002-03-23 Andrew Cagney <cagney@redhat.com>
8628
8629 * defs.h (error): Add printf format attribute.
8630 * thread-db.c (thread_from_lwp): Fix error format string.
8631 * stack.c (parse_frame_specification): Ditto.
8632 * cli/cli-decode.c (undef_cmd_error): Ditto.
8633 * scm-lang.c (scm_lookup_name): Ditto.
8634 * tracepoint.c (trace_error): Ditto.
8635 * remote-utils.c (usage): Ditto.
8636 * remote.c (compare_sections_command): Ditto.
8637 Fix PR gdb/328.
8638
8639 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8640
8641 * gdbtypes.c (append_composite_type_field): New function.
8642 (init_composite_type): New function.
8643 * gdbtypes.h (append_composite_type_field): Declare.
8644 (init_composite_type): Ditto.
8645
8646 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8647
8648 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8649 function.
8650 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8651 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8652 structure returning convention for SYSV ABI case, but not
8653 for GNU/Linux, FreeBSD, or NetBSD.
8654
8655 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8656
8657 * symtab.h (lookup_block_symbol): Add mangled_name argument
8658 to prototype.
8659
8660 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8661 with new mangled_name argument.
8662 * linespec.c (decode_line_1): Likewise.
8663 * valops (value_of_this): Likewise.
8664 * symtab.c (lookup_transparent_type): Likewise.
8665 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8666 (lookup_symbol): If we are given a mangled name, pass it down
8667 to lookup_symbol_aux.
8668 (lookup_block_symbol): If we are given a mangled name to check
8669 against, only return symbols which match it.
8670
8671 2002-03-22 Christopher Faylor <cgf@redhat.com>
8672
8673 * win32-nat.c (child_create_inferior): Check for proper shell to use
8674 here, in case the user changes it on the fly.
8675 (_initialize_inftarg): Remove shell path considerations.
8676
8677 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8678
8679 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8680 for gdbarch_max_register_raw_size and max_register_virtual_size.
8681 Adjust copyright year.
8682
8683 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8684
8685 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8686 in a function to cover the entire beginning of the function
8687 as well if it does not already.
8688
8689 2002-03-21 Tom Rix <trix@redhat.com>
8690
8691 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8692 (rs6000_ptrace64): Renamed from ptrace64.
8693
8694 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8695
8696 * gdbserver/remote-utils.c (remote_open): Don't call
8697 getprotobyname, we're all using TCP here so just use
8698 IPPROTO_TCP.
8699 * gdbserver/gdbreplay.c (remote_open): Ditto.
8700
8701 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8702
8703 * regcache.c (_initialize_regcache): No need to call
8704 build_regcache() at this time; it gets called whenever
8705 the gdbarch changes.
8706
8707 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8708
8709 * sparc-nat.c: Include sys/param.h where possible.
8710
8711 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8712
8713 Fix PR gdb/422.
8714 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8715 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8716 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8717 complex types.
8718 * stabsread.c (rs6000_builtin_type): Likewise.
8719 (read_sun_floating_type): Likewise.
8720
8721 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8722
8723 * stabsread.c (read_member_functions): Remove skip code for duplicate
8724 constructor/destructor methods. Use standard parsing for these
8725 methods and just do not chain them to the list of methods after
8726 parsing.
8727
8728 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8729
8730 * coffread.c: Remove redundant static declarations. Replace
8731 occurrences of `PTR' with `void *'.
8732 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8733 * top.h (quit_cover): Likewise.
8734 * defs.h (catch_errors): Likewise.
8735
8736 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8737
8738 * defs.h (XMALLOC): Define.
8739 * gdb-events.sh (XMALLOC): Delete macro.
8740 * gdb-events.c, gdb-events.h: Regenerate.
8741 * gdbarch.sh (XMALLOC): Delete macro.
8742 * gdbarch.c: Regenerate.
8743 * serial.c (XMALLOC): Delete macro.
8744 * ui-file.c (XMALLOC): Ditto.
8745 * ser-unix.h (XMALLOC): Ditto.
8746 * sh-tdep.c (XMALLOC): Ditto.
8747 * ui-out.c (XMALLOC): Ditto.
8748 * utils.c (XMALLOC): Ditto.
8749 * i386-tdep.c (XMALLOC): Ditto.
8750 * gdb-events.c (XMALLOC): Ditto.
8751 * d10v-tdep.c (XMALLOC): Ditto.
8752 * cli-out.c (XMALLOC): Ditto.
8753
8754 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8755 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8756 * ui-file.c, ui-out.c: Ditto.
8757
8758 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8759
8760 * command.h (struct cmd_list_element): Add field context.
8761 (set_cmd_context, get_cmd_context): Declare.
8762 * cli/cli-decode.h: Ditto.
8763 * cli/cli-decode.c (get_cmd_context): New function.
8764 (set_cmd_context): New function.
8765 (add_cmd): Initialize context.
8766 Part of fixing PR gdb/145 and PR gdb/146.
8767
8768 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8769
8770 * cli/cli-decode.c (cmd_type): New function.
8771 * command.h (cmd_type): Declare.
8772 * infrun.c (set_schedlock_func): Call function cmd_type.
8773 * kod.c (kod_set_os): Call cmd_type.
8774 * cris-tdep.c (cris_version_update): Use function cmd_type.
8775 (cris_mode_update, cris_abi_update): Ditto.
8776
8777 * command.h: (execute_cmd_post_hook): Declare.
8778 (execute_cmd_pre_hook): Declare.
8779 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8780 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8781 functions. Execute pre/post hook while ensuring that afterwords
8782 hook_in is cleared.
8783 * top.c (execute_command): Use execute_cmd_post_hook, and
8784 execute_cmd_pre_hook to execute pre/post commands.
8785 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8786 hook_stop_stub.
8787 (hook_stop_stub): Call execute_cmd_pre_hook.
8788
8789 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8790
8791 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8792 set'' and this leads to a core dump. Move xstrdup of
8793 operating_system to after check that it is not NULL.
8794
8795 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8796
8797 * kod.c (kod_set_os): Remove unnecessary check that
8798 ``command->type'' is set_cmd.
8799
8800 * valprint.c (set_input_radix): Use input_radix.
8801 (set_output_radix): Use output_radix.
8802 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8803 isn't reverted.
8804
8805 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8806
8807 * value.h (struct value): Delete field ``substring_addr''. Change
8808 aligner fields to force_doublest_align, force_longest_align,
8809 force_core_addr_align and force_pointer_aligh.
8810
8811 * value.h (struct value): Fix typo in above change.
8812
8813 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8814
8815 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8816 to fix internal_error from ``maintenance print architecture''.
8817
8818 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8819
8820 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8821 for gcc versions after gcc-2.8.1.
8822
8823 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8824
8825 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8826 for method resolution. Restore adjustment of ``this'' pointer after
8827 calling value_struct_elt, which was accidentally removed during the
8828 HP merge.
8829
8830 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8831
8832 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8833 value_of_register.
8834 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8835 get_saved_register.
8836 * value.h (value_of_register): Update.
8837
8838 2002-03-14 Richard Henderson <rth@redhat.com>
8839
8840 * configure.in: Detect declaration for canonicalize_file_name.
8841 * utils.c (canonicalize_file_name): Declare, if needed.
8842 (gdb_realpath): Prefer realpath if available and usable.
8843 * config.in, configure: Rebuild.
8844
8845 2002-03-14 Richard Henderson <rth@redhat.com>
8846
8847 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8848 a constant array bound.
8849
8850 * MAINTAINERS: Add myself to write-after-approval.
8851
8852 2002-03-14 Michael Snyder <msnyder@redhat.com>
8853
8854 * symfile.c (syms_from_objfile): Return immediately if no syms.
8855 (symbol_file_add): Return immediately if no syms.
8856 (find_sym_fns): Return immediately if no syms.
8857
8858 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8859
8860 * gdbserver/remote-util.c (remote_open): Print remote-side's
8861 IP address when remote debugging over the network.
8862
8863 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8864
8865 * config/sparc/fbsd.mh: Fix copyright.
8866 * config/sparc/fbsd.mt: Likewise.
8867
8868 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8869
8870 * MAINTAINERS: Fix typo in name of gdb warnings option.
8871 (x86-64): Fix formating so that this can be parsed by awk.
8872
8873 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8874
8875 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8876 * defs.h: Include "gdb/signals.h".
8877 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8878
8879 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8880
8881 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8882 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8883 from x86-64-tdep.h
8884
8885 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8886 Don Howard <dhoward@redhat.com>
8887
8888 * mips-tdep.c (ST0_FR): Define.
8889 (mips2_fp_compat): New function, temporarily disabled.
8890 (mips_read_fp_register_single): New function.
8891 (mips_read_fp_register_double): New function.
8892 (mips_print_register): Use them.
8893 (do_fp_register_row): Likewise.
8894
8895 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8896
8897 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8898 approval''.
8899
8900 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8901
8902 * stabsread.c (read_member_functions): Fix is_stub test for
8903 static member functions, improve comment.
8904
8905 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8906
8907 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8908 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8909 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8910 commands that set boolean values.
8911 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8912 (arm_rdi_resume): Always initialize PC.
8913 (arm_rdi_open): Don't use rslt as a boolean.
8914 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8915 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8916 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8917 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8918
8919 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8920
8921 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8922 * configure: Rebuilt.
8923
8924 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8925
8926 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8927 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8928
8929 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8930
8931 * cli/cli-decode.c (set_cmd_completer): New function.
8932 * command.h (set_cmd_completer): Declare.
8933 * cli/cli-decode.h (set_cmd_completer): Ditto.
8934
8935 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8936 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8937 * win32-nat.c (_initialize_inftarg): Ditto.
8938 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8939 * proc-api.c (_initialize_proc_api): Ditto.
8940 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8941 * source.c (_initialize_source): Ditto.
8942 * exec.c (_initialize_exec): Ditto.
8943 * solib.c (_initialize_solib): Ditto.
8944 * top.c (init_main): Ditto.
8945 * tracepoint.c (_initialize_tracepoint): Ditto.
8946 * symfile.c (_initialize_symfile): Ditto.
8947 * printcmd.c (_initialize_printcmd): Ditto.
8948 * infcmd.c (_initialize_infcmd): Ditto.
8949 * corefile.c (_initialize_core): Ditto.
8950
8951 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8952
8953 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8954
8955 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8956
8957 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8958
8959 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8960
8961 * NEWS: Update headings, 5.2 has branched.
8962
8963 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8966 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8967 (register_addr, REGISTER_RAW_SIZE): Likewise.
8968 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8969 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8970
8971 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8972
8973 * MAINTAINERS (x86-64): Add myself.
8974 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8975 changed value_ptr -> struct value *
8976
8977 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8978
8979 * configure.host (sparc64-*-freebsd): Add.
8980 * configure.tgt: Likewise.
8981 * config/sparc/fbsd.mh: New file.
8982 * config/sparc/fbsd.mt: Likewise.
8983 * config/sparc/nm-fbsd.h: Likewise.
8984 * config/sparc/tm-fbsd.h: Likewise.
8985
8986 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8987
8988 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8989 regformats/reg-s390x.dat.
8990
8991 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8992
8993 * utils.c: Add FIXME explaining true/false problem.
8994
8995 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8996
8997 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8998
8999 2002-02-28 Michael Chastain <mec@shout.net>
9000
9001 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9002
9003 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9004
9005 * gdbserver/linux-s390-low.c: New file.
9006 * regformats/reg-s390.dat: New file.
9007 * regformats/reg-s390x.dat: New file.
9008 * gdbserver/configure.srv: Add S/390.
9009 * gdbserver/Makefile.in: Add S/390.
9010 * configure.tgt: Enable gdbserver for S/390.
9011
9012 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9013
9014 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9015 first line of the doc string for "info dos", except at the end of
9016 the sentence, since the short help stops at the first period.
9017
9018 2002-02-28 Jason Merrill <jason@redhat.com>
9019
9020 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9021
9022 2002-02-27 Fred Fish <fnf@redhat.com>
9023
9024 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9025 comment (dumy -> dummy).
9026
9027 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9028
9029 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9030
9031 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9032
9033 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9034
9035 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * gdbserver/acconfig.h: New file.
9038 * gdbserver/i387-fp.c: New file.
9039 * gdbserver/i387-fp.h: New file.
9040 * gdbserver/linux-x86-64.c: New file.
9041 * regformats/reg-x86-64.dat: New file.
9042 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9043 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9044 * gdbserver/configure.in: Add support for regsets.
9045 * gdbserver/config.in: Regenerate.
9046 * gdbserver/configure: Regenerate.
9047 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9048 * gdbserver/linux-low.h: New file.
9049 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9050 for regsets.
9051 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9052 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9053 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9054 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9055 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9056 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9057 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9058 "i387-fp.h". Add PTRACE_GETREGS and friends.
9059 * gdbserver/regcache.c (supply_register): New function.
9060 (supply_register_by_name): New function.
9061 (collect_register): New function.
9062 (collect_register_by_name): New function.
9063
9064 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9065
9066 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9067 (config.status): Add configure.srv dependency.
9068 (server_h): Add config.h dependency.
9069
9070 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9073 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9074 * gdbserver/configure.srv: Change i386-*-linux* to use
9075 reg-i386-linux.o.
9076
9077 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9078
9079 * x86-64-tdep.c: Re-indent. Update copyright date.
9080
9081 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9082
9083 From Michal Ludvig <mludvig@suse.cz>:
9084 * x86-64-tdep.c (value.h): Delete.
9085 (gdb_assert.h): Include.
9086 (x86_64_register_convert_to_virtual,
9087 x86_64_register_convert_to_raw ): Add check which lets only
9088 floating-point values to be converted.
9089 (value_push): Delete.
9090 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9091 (i386_gdbarch_init): Number of register_bytes fixed.
9092
9093 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9094
9095 * MAINTAINERS: Add x86-64 target.
9096
9097 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9098
9099 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9100 * osfsolib.c (solib_map_sections): Ditto.
9101 * irix5-nat.c (solib_map_sections): Ditto.
9102 * corelow.c (gdb_check_format): Ditto.
9103 * symfile.c (symfile_bfd_open): Ditto.
9104 * solib.c (solib_map_sections): Ditto.
9105 Fix PR gdb/354.
9106
9107 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9108
9109 * remote.c (_initialize_remote): By default, disable ``e'' and
9110 ``E'' step out-of-range packets.
9111
9112 2002-02-26 Andreas Schwab <schwab@suse.de>
9113
9114 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9115 m68k_linux_frame_saved_pc.
9116 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9117 in_sigtramp.
9118 (SIGCONTEXT_PC_OFFSET): Remove.
9119 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9120 m68k_linux_sigtramp_saved_pc): New functions.
9121 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9122 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9123 (UCONTEXT_PC_OFFSET): Define.
9124 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9125 non-RT and RT signal trampolines.
9126
9127 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9128
9129 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9130 (TARGET_NBPG, STACK_END_ADDR): Delete
9131 (VARIABLES_INSIDE_BLOCK): Delete.
9132
9133 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9134
9135 * utils.c (perror_with_name): Make string parameter constant.
9136 (print_sys_errmsg): Ditto.
9137 (query): Ditto.
9138 * defs.h (perror_with_name): Update.
9139 (print_sys_errmsg): Update.
9140 (query): Update.
9141
9142 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9143
9144 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9145 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9146
9147 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9148
9149 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9150 if it already matches the current architecture from the exec file.
9151 Include arch-utils.h for gdbarch_info_init prototype.
9152 * Makefile.in (rs6000-nat.o): Update dependencies.
9153
9154 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9155
9156 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9157 list of exported variables.
9158
9159 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9160
9161 * gdbserver/configure.srv: New file.
9162 * gdbserver/configure.in: Use configure.srv instead
9163 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9164 from it.
9165 * gdbserver/configure: Regenerated.
9166 * gdbserver/terminal.h: New file.
9167 * gdbserver/Makefile.in: Update for configure changes. Remove
9168 more unneeded include paths.
9169
9170 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9171
9172 From wiz at danbala:
9173 * config/sparc/tm-sp64.h: Fix grammar and typos.
9174 Fix PR gdb/287.
9175
9176 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9177
9178 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9179 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9180 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9181 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9182 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9183 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9184 * s390-tdep.c: Ditto.
9185 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9186 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9187 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9188 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9189 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9190 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9191 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9192 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9193 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9194 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9195 Fix PR gdb/378.
9196
9197 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9198
9199 * lin-thread.c: Delete file.
9200 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9201 to gdb_proc_service.h.
9202 * configure: Re-generate.
9203
9204 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9205 * serial.c (serial_open): Delete check for "ocd".
9206 Fix PR gdb/349.
9207
9208 * Makefile.in (linux-thread.o): Delete target.
9209 * linux-thread.c: Delete file.
9210
9211 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9212 renamed SH files to be consistent.
9213
9214 * symtab.c (sort_search_symbols): Use xfree.
9215
9216 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9217
9218 * arm-linux-tdep.c (arm_linux_init_abi): Register
9219 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9220 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9221 definition with undef, since we don't want the sysvr4 definition.
9222 (SKIP_TRAMPOLINE_CODE): Likewise.
9223
9224 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9225
9226 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9227
9228 * configure.in: (AC_CHECK_FUNCS) Added test for
9229 canonicalize_file_name Regenerated.
9230 * config.in, configure: Regenerated.
9231 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9232 defined use canonicalize_file_name.
9233
9234 2002-02-23 Michael Chastain <mec@shout.net>
9235
9236 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9237
9238 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9239
9240 * README: Remove references to cygnus.com.
9241 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9242 dot com'' form. Remove references to cygnus.com and sourceware.
9243
9244 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9245
9246 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9247 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9248 1003.1-2001 no longer allows "head -1".
9249 * gdb/Makefile.in (version.c): Likewise.
9250 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9251 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9252 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9253
9254 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9255
9256 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9257 * command.h (cmd_cfunc_eq): Declare.
9258 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9259
9260 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9261 ``struct cmd_list_element *''.
9262 * cli/cli-cmds.c (is_complete_command): Update. Use
9263 cmd_cfunc_eq.
9264 * top.c (execute_command): Pass the command to
9265 is_complete_command.
9266 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9267
9268 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9269
9270 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9271 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9272 architecture defines.
9273 * s390-tdep.c (s390_gdbarch_init): Likewise.
9274
9275 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9276
9277 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9278 (arm_linux_push_arguments): Likewise.
9279 (arm_linux_init_abi): Register them. Also register linux-specific
9280 call_dummy_words.
9281 (find_minsym_and_objfile): Use strcmp, not STREQ.
9282 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9283 (arm_linux_call_dummy_words): Delete declaration.
9284 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9285 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9286 declarations.
9287 (LOWEST_PC): Delete.
9288
9289 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9290
9291 * maint.c (print_section_info): Do not prepend `0x' to filepos
9292 output, it will be handled by local_hex_string_custom.
9293
9294 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9295
9296 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9297 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9298 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9299
9300 2002-02-22 Jim Blandy <jimb@redhat.com>
9301
9302 Indicate that the bcache functions don't change the strings
9303 they're passed.
9304 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9305 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9306
9307 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9308
9309 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9310
9311 2002-02-21 Christopher Faylor <cgf@redhat.com>
9312
9313 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9314 find the complete path to a loaded DLL.
9315
9316 2002-02-21 Fred Fish <fnf@redhat.com>
9317
9318 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9319 that marks the end of the range of a function, enter a line number
9320 entry that has a line number of zero and a PC offset that matches
9321 the end of the function. This starts a range of PC's for which no
9322 line number information is known.
9323 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9324 PC's for which no line number info is found (line number is zero)
9325 then we didn't find any valid line information.
9326 * symtab.h: Document use of zero line number entry.
9327
9328 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9329
9330 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9331 (have_ptrace_getvrregs): Define for run time checks.
9332 (gdb_vrregset_t): New type for Altivec register handling.
9333 (fetch_register, store_register): Fetch/store altivec register
9334 when needed.
9335 (fetch_altivec_register, store_altivec_register): New functions.
9336 (supply_vrregset, fill_vrregset): New functions.
9337 (fetch_altivec_registers, store_altivec_registers): New functions.
9338 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9339 registers as well.
9340
9341 2002-02-21 Jiri Smid <smid@suse.cz>
9342
9343 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9344
9345 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9346
9347 * Makefile.in (armnbsd-nat.o): Update dependencies.
9348 * armnbsd-nat.c (supply_gregset): New function. Common code to
9349 supply the integer register set.
9350 (supply_fparegset): New function. Similar for FPA registers.
9351 (fetch_regs, fetch_fp_regs): Use them.
9352 (fetch_core_registers): Likewise.
9353 (fetch_elfcore_registers): New function.
9354 (arm_netbsd_elfcore_fns): New core-file type specification.
9355 (_initialize_arm_netbsd_nat): Register it.
9356
9357 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9358
9359 * armnbsd-nat.c: Include gdbcore.h.
9360 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9361 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9362 'void' to declaration, to shut up ARI.
9363 (fetch_core_registers): Make static. Rewrite using supply_register.
9364 (arm_netbsd_core_fns): New core-file type specification.
9365 (_initialize_arm_netbsd_nat): New function.
9366
9367 2002-02-21 Christopher Faylor <cgf@redhat.com>
9368
9369 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9370 value.
9371
9372 2002-02-20 Christopher Faylor <cgf@redhat.com>
9373
9374 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9375 fails.
9376
9377 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9378
9379 * jv-exp.y (parse_number): Change type of implicit longs
9380 to builtin_type_uint64.
9381
9382 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9383
9384 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9385 to be an integer instead of a `union wait'.
9386
9387 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9388
9389 * mips-linux-nat.c: Call the operating system GNU/Linux.
9390 * mips-linux-tdep.c: Likewise.
9391 * mips-tdep.c: Likewise.
9392
9393 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9394
9395 Fix PR gdb/265.
9396 * jv-exp.y (parse_number): Handle 64-bit integers.
9397
9398 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9399
9400 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9401 AC_STDC_HEADERS to AC_HEADER_STDC.
9402 * gdbserver/configure: Regenerated.
9403
9404 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9405
9406 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9407 is defined.
9408 * sparc-tdep.c (get_longjmp_target): Likewise.
9409
9410 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9411
9412 * News: Add news about ARM and Multi-arch. Mention the new target
9413 arm*-*-netbsd*.
9414
9415 2002-02-19 Jim Blandy <jimb@redhat.com>
9416
9417 * stabsread.c (error_type_complaint): Improve error message.
9418
9419 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9420
9421 * gdbserver/README: Update documentation.
9422 * gdbserver/configure.in: Update configury to match documentation.
9423 * gdbserver/Makefile.in: Likewise.
9424 * gdbserver/configure: Regenerated.
9425 * gdbserver/aclocal.m4: New file, generated by aclocal.
9426 * gdbserver/config.in: New file, generated by autoheader.
9427
9428 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9429
9430 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9431 armnbsd-nat.c.
9432
9433 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9434
9435 * arm-tdep.h (enum arm_float_model): New enum.
9436 (struct gdbarch_tdep): Add fp_model.
9437 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9438 up floating-point conversions until we know the floating-point model
9439 in use by the inferior. Don't complain about being unable to
9440 determine the ABI of the inferior when we don't have one.
9441 (arm_extract_return_value): Support different floating-point models.
9442 (arm_store_return_value): Likewise.
9443 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9444 ARM_FLOAT_SOFT.
9445 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9446
9447 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9448
9449 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9450 of ``current_gdbarch''.
9451
9452 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9453
9454 * armnbsd-nat.c : ANSIfy all function declarations.
9455 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9456 (fetch_inferior_registers): Re-implement in terms of above.
9457 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9458 (store_inferior_registers): Re-implement in terms of above.
9459
9460 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9461
9462 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9463 kernel.
9464 * arm-linux-tdep.c: Likewise.
9465 * config/arm/tm-linux.h: Likewise.
9466
9467 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9468
9469 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9470 * config/arm/nbsd.mt (TM_FILE): Delete.
9471 * config/arm/tm-nbsd.h: Delete.
9472
9473 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9474
9475 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9476 Initialize CALL_DUMMY_LENGTH.
9477
9478 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9479
9480 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9481 function.
9482 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9483 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9484 defines one thing and that is incorrect for this port.
9485 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9486
9487 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9488
9489 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9490
9491 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9492
9493 * win32-nat.c (display_selector): New function. Displays information
9494 about the information returned by GetThreadSelectorEntry API function.
9495 (display_selectors): New function. Displays the infomation of
9496 the selector given as argument, or of CS, DS ans FS selectors
9497 if no argument is given.
9498 ( _initialize_inftarg): Add "w32" as info prefix command.
9499 Add "info w32 selector" as command calling display_selectors.
9500
9501 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9502
9503 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9504 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9505 if not defined.
9506
9507 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9508
9509 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9510
9511 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9512
9513 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9514 (arm_fix_call_dummy): Call it.
9515 (arm_call_dummy_breakpoint_offset): Delete.
9516 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9517 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9518
9519 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9520
9521 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9522 Default to func_frame_chain_valid.
9523 * gdbarch.h, gdbarch.c: Re-generate.
9524 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9525
9526 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9527
9528 * ppc-linux-nat.c: Update copyright.
9529 (fetch_register, store_register): Add tid parameter, don't compute
9530 tid here.
9531 (fetch_ppc_registers, store_ppc_registers): Add tid
9532 parameter. Pass it along to callees.
9533 (fetch_inferior_registers, store_inferior_registers): Compute tid
9534 here, and pass it to calleed functions.
9535 (fill_gregset, supply_fpregset): Clean up formatting.
9536
9537 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9538
9539 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9540 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9541
9542 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9543
9544 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9545 * gdbarch.c gdbarch.h: Regenerate.
9546 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9547 function.
9548 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9549 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9550 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9551
9552 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9553 * arm-tdep.c (arm_get_longjmp_target): New function.
9554 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9555 this to a positive value register arm_get_longjmp_target as the
9556 longjmp handler.
9557 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9558 (arm_linux_init_abi): Set up longjmp description in tdep.
9559 * armnbsd-nat.c (get_longjmp_target): Delete.
9560 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9561 description in tdep.
9562 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9563 (get_longjmp_target): Delete declaration.
9564 (GET_LONGJMP_TARGET): Delete.
9565 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9566 (GET_LONGJMP_TARGET): Delete.
9567
9568 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9569
9570 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9571 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9572 of ``current_gdbarch''.
9573
9574 2002-02-17 Tom Tromey <tromey@redhat.com>
9575
9576 * cli/cli-cmds.c (compare_strings): New function.
9577 (complete_command): Only print each unique item once.
9578 * completer.h (complete_line): Declare.
9579 * completer.c (complete_line): New function.
9580 (line_completion_function): Use it.
9581
9582 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9583
9584 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9585 * gdbarch.h, gdbarch.c: Re-generate.
9586
9587 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9588
9589 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9590
9591 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9592
9593 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9594 * valops.c (value_arg_coerce): Don't take the address of a reference
9595 to convert an argument to a reference.
9596
9597 2002-02-15 Christopher Faylor <cgf@redhat.com>
9598
9599 * win32-nat.c (get_image_name): New function.
9600 (handle_load_dll): Use get_image_name function.
9601 (get_child_debug_event): Avoid registering debug events until possibly
9602 execed process is started.
9603 (child_create_inferior): Allow invocation via shell so that command
9604 line redirection, etc. works ok.
9605 (_initialize_inftarg): Add new command: "set shell" to control whether
9606 a shell is used to start a process.
9607
9608 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9609
9610 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9611 instead of find_register_by_number.
9612 (cannot_store_register): Likewise.
9613
9614 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9615
9616 * dwarf2read.c: Replace fprintf (stderr, ...) by
9617 fprintf_unfiltered (gdb_stderr, ...).
9618
9619 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * gdbserver/gdbserver.1: Document --attach.
9622
9623 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9624
9625 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9626 descriptions.
9627 * arm-tdep.c (arm_default_arm_le_breakpoint)
9628 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9629 (arm_default_thumb_be_breakpoint): New. Initialize them from
9630 traditional breakpoint defines.
9631 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9632 (arm_gdbarch_init): Initialize new breakpoint variables.
9633 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9634 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9635 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9636 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9637 code out to ...
9638 (arm_netbsd_init_abi_common): ... here; new function.
9639 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9640 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9641 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9642 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9643
9644 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9645
9646 * arm-tdep.h (enum arm_abi): New enum.
9647 (struct gdbarch_tdep): New structure.
9648 (LOWEST_PC): Provide a default.
9649 (arm_gdbarch_register_os_abi): Declare new function.
9650 * arm-tdep.c (arm_abi_names): New array.
9651 (process_note_abi_tag_sections): New function.
9652 (get_elfosabi): New function.
9653 (arm_gdbarch_register_os_abi): New function.
9654 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9655 support for that ABI has been built in, then call the appropriate
9656 configuration routine. Use gdbarch_num_regs() to get the number
9657 of registers.
9658 (arm_dump_tdep): New function.
9659 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9660 place-holder functions.
9661 (_initialize_arm_tdep): Register them.
9662 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9663
9664 * armnbsd-tdep.c: New file.
9665 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9666 * config/arm/nbsd.mt (TDEPFILES): Add it.
9667 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9668
9669 * armnbsd-nat.c: Include regcache.h.
9670 * Makefile.in (armnbsd-nat.o): Update dependency list.
9671
9672 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9673
9674 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9675
9676 * gdbserver/Makefile.in: Fix typos in target rules.
9677
9678 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9679
9680 Fix part of PR gdb/267.
9681 * linespec.c (find_methods): Handle constructors specially for now.
9682
9683 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9684
9685 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9686 handling.
9687 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9688 standard_coerce_float_to_double().
9689
9690 2002-02-14 Christopher Faylor <cgf@redhat.com>
9691
9692 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9693 GDBINIT_FILENAME.
9694
9695 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9696
9697 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9698 find_variant_by_name, because it confuses the multiarch
9699 framework. Return NULL if there isn't an architecture with the
9700 user supplied name, instead of forcing a different one without
9701 recording the change with the multiarch machinery.
9702 (find_variant_by_name): Delete.
9703
9704 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9705
9706 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9707 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9708
9709 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9710
9711 * stack.c (print_frame_info_base): When calling
9712 print_frame_info_listing_hook, set current_source_symtab.
9713
9714 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9715
9716 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9717 and remove unused $(INCLUDE_DIR).
9718 Add regcache.c to OBS.
9719 Add generated register protocol files to clean target.
9720 Update dependencies for new objects, obsolete old target code.
9721
9722 * gdbserver/linux-low.c: Remove all platform-specific code to
9723 new files. Remove various dead code. Update to use regcache
9724 functionality.
9725 * gdbserver/remote-utils.c (fromhex): Add return statement
9726 to quiet warning.
9727 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9728 constant.
9729 (input_interrupt): Add integer parameter to match prototype
9730 of a signal handler.
9731 (outreg): Use register_data ().
9732 (prepare_resume_reply): Use gdbserver_expedite_regs.
9733 * gdbserver/server.c (main): Dynamically allocate own_buf because
9734 PBUFSIZ is no longer constant. Use registers_to_string () and
9735 registers_from_string ().
9736 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9737 for error (), fatal (), and warning (). Update definition of
9738 PBUFSIZ to use regcache functionality. Add include guard.
9739 * gdbserver/utils.c (fatal): Add missing ``const''.
9740 (warning): New function.
9741
9742 * regformats/regdat.sh: Include "regcache.h" in generated files.
9743 Provide init_registers () function.
9744 * regformats/regdef.h: Add prototype for set_register_cache ().
9745 Add include guard.
9746
9747 * gdbserver/linux-arm-low.c: New file.
9748 * gdbserver/linux-i386-low.c: New file.
9749 * gdbserver/linux-ia64-low.c: New file.
9750 * gdbserver/linux-m68k-low.c: New file.
9751 * gdbserver/linux-mips-low.c: New file.
9752 * gdbserver/linux-ppc-low.c: New file.
9753 * gdbserver/linux-sh-low.c: New file.
9754
9755 * gdbserver/regcache.c: New file.
9756 * gdbserver/regcache.h: New file.
9757
9758 * gdbserver/low-linux.c: Removed obsolete file.
9759
9760 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9761
9762 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9763 * config/i386/linux.mt: Likewise.
9764 * config/ia64/linux.mt: Likewise.
9765 * config/m68k/linux.mh: Likewise.
9766 * config/powerpc/linux.mh: Likewise.
9767 * config/mips/linux.mt: Likewise.
9768
9769 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9770
9771 * config/i386/i386lynx.mh: Mark gdbserver variables
9772 as (currently) obsolete for this target.
9773 * config/i386/nbsd.mt: Likewise.
9774 * config/i386/nbsdelf.mt: Likewise.
9775 * config/m32r/m32r.mt: Likewise.
9776 * config/m68k/m68klynx.mh: Likewise.
9777 * config/m68k/nbsd.mt: Likewise.
9778 * config/m68k/sun3os4.mh: Likewise.
9779 * config/mips/vr5000.mt: Likewise.
9780 * config/ns32k/nbsd.mt: Likewise.
9781 * config/pa/hppabsd.mh: Likewise.
9782 * config/pa/hppaosf.mh: Likewise.
9783 * config/powerpc/nbsd.mt: Likewise.
9784 * config/rs6000/rs6000lynx.mh: Likewise.
9785 * config/s390/s390.mt: Likewise.
9786 * config/s390/s390x.mt: Likewise.
9787 * config/sparc/sparclynx.mh: Likewise.
9788 * config/sparc/sun4os4.mh: Likewise.
9789 * config/i386/x86-64linux.mt: Likewise.
9790 * config/sparc/linux.mh: Likewise.
9791
9792 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9793
9794 * configure.tgt: Configure gdbserver only for known working
9795 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9796 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9797 SUBDIRS if it is configured. Update comment for ${nativefile}.
9798 * configure: Regenerated.
9799
9800 2002-02-13 Michael Snyder <msnyder@redhat.com>
9801
9802 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9803
9804 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9805 (default_gcore_mach): Just return 0, work around a problem in bfd.
9806 (default_gcore_target): OK to return NULL if exec_bfd is null.
9807 (make_mem_sec): Use a cast, avoid a warning.
9808
9809 * procfs.c (find_memory_regions_callback): Use a cast instead of
9810 calling host_pointer_to_address (which complains if
9811 sizeof (host pointer) != sizeof (target pointer)).
9812 (procfs_make_note_section): Avoid overflow in psargs string.
9813
9814 * procfs.c (procfs_make_note_section): Make the default
9815 implementation return an error.
9816
9817 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9818
9819 * procfs.c (procfs_make_note_section): Provide a default definition
9820 (for alpha-dec-osf4.0f). Fix typos.
9821
9822 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9823
9824 * linux-proc.c: Add include of regcache.h.
9825 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9826
9827 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9828
9829 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9830 * memattr.c (create_mem_region): Disallow useless empty region.
9831 Regions are half-open intervals, so allow [A..B) [B..C) as
9832 non-overlapping.
9833
9834 2002-02-13 Michael Chastain <mec@shout.net>
9835
9836 * defs.h: Kill CONST_PTR.
9837 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9838 * c-lang.c (c_builtin_types): Likewise.
9839 * ch-lang.c (ch_builtin_types): Likewise.
9840 * f-lang.c (f_builtin_types): Likewise.
9841 * language.c (unknown_builtin_types): Likewise.
9842 * m2-lang.c (m2_builtin_types): Likewise.
9843 * p-lang.c (pascal_builtin_types): Likewise.
9844 * scm-lang.c (c_builtin_types): Likewise.
9845
9846 2002-02-13 Keith Seitz <keiths@redhat.com>
9847
9848 * arm-tdep.h (arm_get_next_pc): Add declaration.
9849
9850 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9851
9852 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9853 with other related struct-returning functions.
9854 (arm_extract_struct_value_address): New function.
9855 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9856 initialize float_format, double_format and long_double_format as
9857 appropriate to the endianness of the target.
9858 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9859 (arm_use_struct_convention): Delete declaration.
9860 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9861
9862 2002-02-13 Keith Seitz <keiths@redhat.com>
9863
9864 * defs.h (core_addr_to_string_nz): New function.
9865
9866 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9867
9868 Apply missing bits of 2002-01-15 patch.
9869 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9870 (fill_fpregset): Use i387_fill_fsave.
9871
9872 2002-02-12 Keith Seitz <keiths@redhat.com>
9873
9874 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9875 (core_addr_to_string_nz): New function.
9876
9877 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9878
9879 * arm-linux-nat.c: Really include arm-tdep.h.
9880 * config/arm/tm-linux.h (struct type, struct value): Declare.
9881
9882 2002-02-11 Michael Snyder <msnyder@redhat.com>
9883
9884 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9885 (gcore section): Ifdef for Solaris and Unixware only.
9886 (procfs_do_thread_registers): Unixware needs one lwpstatus
9887 per thread (not one prstatus or pstatus).
9888 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9889 not over all gdb threads. For unixware, call elfcore_write_pstatus
9890 once before iterating over threads.
9891
9892 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9893
9894 * arm-tdep.h: New file.
9895 * arm-tdep.c: Include arm-tdep.h.
9896 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9897 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9898 (arm_print_float_info, arm_register_type, convert_to_extended)
9899 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9900 (arm_extract_return_value, arm_register_name): Make static.
9901 (arm_software_single_step): Similarly. Fix types in declaration.
9902 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9903 (arm_store_return_value, arm_store_struct_return): New functions.
9904 (arm_gdbarch_init): Register the above functions. Also register
9905 call_dummy_start_offset, sizeof_call_dummy_words,
9906 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9907 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9908 max_register_virtual_size, register_size. Set up
9909 prologue_cache.saved_regs here, rather than ...
9910 (_initialize_arm_tdep): ... here.
9911 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9912 declarations.
9913 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9914 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9915 (arm_print_float_info, arm_register_type, convert_to_extended)
9916 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9917 (arm_extract_return_value, arm_register_name): Delete declarations.
9918 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9919 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9920 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9921 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9922 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9923 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9924 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9925 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9926 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9927 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9928 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9929 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9930 interface.
9931 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9932 * remote-rdi.c remote-rdp.c: Likewise.
9933 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9934 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9935 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9936 definition.
9937
9938 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9939 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9940 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9941 from non-ARM_ prefixed definitions.
9942 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9943 all uses of above.
9944 * remote-rdi.c remote-rdp.c: Likewise.
9945 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9946
9947 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9948
9949 * arm-tdep.c (arm_frameless_function_invocation)
9950 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9951 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9952 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9953 (arm_pop_frame, arm_get_next_pc): Make static.
9954 (arm_gdbarch_init): Register above in gdbarch structure.
9955 (arm_read_fp): Renamed from arm_target_read_fp.
9956 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9957 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9958 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9959 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9960 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9961 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9962 (arm_pc_is_thumb_dummy): Delete declarations.
9963 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9964 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9965 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9966 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9967
9968 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9969
9970 * symtab.c (compare_search_syms): New function.
9971 (sort_search_symbols): New function.
9972 (search_symbols): Sort symbols after searching rather than
9973 before.
9974
9975 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9976
9977 * NEWS: Linux -> GNU/Linux.
9978
9979 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9980
9981 * gdbarch.sh: For for level one methods, disallow a definition
9982 when partially multi-arched. Add comments explaining rationale.
9983 * gdbarch.h: Re-generate.
9984
9985 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9986
9987 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9988 multi-arch partial.
9989
9990 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9991
9992 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9993 field. Use diff -u.
9994 * gdbarch.c: Re-generate.
9995
9996 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9997
9998 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9999 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10000 partial.
10001
10002 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10003
10004 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10005 multi-arch partial.
10006 (PUSH_ARGUMENTS): Switch to using predefault.
10007 * gdbarch.c: Regenerate.
10008
10009 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10010
10011 * valops.c (PUSH_ARGUMENTS): Delete definition.
10012 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10013 partial. Default to default_push_arguments.
10014 * gdbarch.h, gdbarch.c: Regenerate.
10015
10016 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10017
10018 * defs.h (throw_exception): Rename return_to_top_level. Update
10019 comments.
10020 * utils.c (error_stream, internal_verror, quit): Ditto.
10021 * top.c (throw_exception, catcher): Ditto.
10022 * sparclet-rom.c (sparclet_load): Ditto.
10023 * remote.c (interrupt_query, minitelnet): Ditto.
10024 * remote-sds.c (interrupt_query): Ditto.
10025 * remote-mips.c (mips_error, mips_kill): Ditto.
10026 * ocd.c (interrupt_query): Ditto.
10027 * monitor.c (monitor_interrupt_query): Ditto.
10028 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10029 * target.h: Update comment.
10030
10031 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10032
10033 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10034
10035 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10036 default_double_format.
10037 * gdbarch.h, gdbarch.c: Re-generate.
10038 * findvar.c (floatformat_unknown): Delete variable definition.
10039 * doublest.h (floatformat_unknown): Delete variable declaration.
10040
10041 2002-02-09 Jim Blandy <jimb@redhat.com>
10042
10043 * stabsread.c (read_type): Add code to parse Sun's syntax for
10044 prototyped function types.
10045
10046 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10047
10048 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10049 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10050
10051 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10052
10053 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10054 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10055 now _initialize_xcoffsolib gets called again and overrides the
10056 commands from solib.c in a native configuration.
10057
10058 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10059
10060 * doublest.c (store_typed_floating): Don't try to return a value.
10061 Fixes PR gdb/290.
10062
10063 2002-02-08 Jim Blandy <jimb@redhat.com>
10064
10065 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10066 is prototyped and has no arguments, print its argument list as
10067 `(void)'.
10068
10069 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10070
10071 * MAINTAINERS (write-after-approval): Add myself.
10072 (paper-trail): I've escaped!
10073
10074 2002-02-08 Christopher Faylor <cgf@redhat.com>
10075
10076 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10077 changes.
10078 (_initialize_check_for_gdb_ini): Ditto.
10079
10080 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10081
10082 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10083 xaprintf -> xasprintf.
10084
10085 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10086
10087 * win32-nat.c: Remove use of printf and sprintf functions.
10088
10089 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10090
10091 * arm-tdep.c (arm_frame_chain_valid): Make static.
10092 (arm_push_arguments): Likewise.
10093 (arm_gdbarch_init): New function.
10094 (_initialize_arm_tdep): Call it.
10095 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10096 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10097 (FRAME_CHAIN_VALID): Delete.
10098 (arm_frame_chain_valid): Delete declaration.
10099 (PUSH_ARGUMENTS): Delete.
10100 (arm_push_arguments): Delete declaration.
10101 (CALL_DUMMY_P): Delete.
10102
10103 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10104 Corinna Vinschen <vinschen@redhat.com>
10105
10106 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10107 on builtin float types.
10108
10109 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10110
10111 * utils.c: Include <curses.h> before "bfd.h".
10112 * tui/tui-hooks.c: Likewise.
10113 * tui/tui.c: Likewise.
10114 * tui/tuiCommand.c: Likewise.
10115 * tui/tuiData.c: Likewise.
10116 * tui/tuiDataWin.c: Likewise.
10117 * tui/tuiDisassem.c: Likewise.
10118 * tui/tuiGeneralWin.c: Likewise.
10119 * tui/tuiIO.c: Likewise.
10120 * tui/tuiLayout.c: Likewise.
10121 * tui/tuiRegs.c: Likewise.
10122 * tui/tuiSource.c: Likewise.
10123 * tui/tuiSourceWin.c: Likewise.
10124 * tui/tuiStack.c: Likewise.
10125 * tui/tuiWin.c: Likewise.
10126
10127 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10128
10129 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10130 to include space for pseudoregs as well. Update loops accordingly.
10131 (sh_fp_frame_init_saved_regs): Ditto.
10132 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10133
10134 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10135
10136 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10137 Add Richard Earnshaw to Arm maintainers.
10138
10139 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10140
10141 * defs.h (warning_begin): Delete declaration.
10142
10143 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10144 Delete macro.
10145
10146 2002-02-07 Michael Snyder <msnyder@redhat.com>
10147
10148 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10149 Logic bug, remove misplaced else.
10150
10151 2002-02-07 Klee Dienes <klee@apple.com>
10152
10153 * fork-inferior.c (fork_inferior): Add '!' to the list of
10154 characters that need to be quoted when building a string for the
10155 shell. Quote '!' specifically with a backslash, since CSH chokes
10156 when trying to evaluate "str!str".
10157
10158 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10159
10160 * rdi-share/host.h: Only provide a typedef for bool if it is not
10161 defined.
10162
10163 2002-02-04 Michael Snyder <msnyder@redhat.com>
10164
10165 * breakpoint.h (enum bptype): Add new overlay event bp type.
10166 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10167
10168 * breakpoint.c (create_internal_breakpoint): New function.
10169 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10170 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10171 (create_thread_event_breakpoint): Ditto.
10172 (create_solib_event_breakpoint): Ditto.
10173 (create_overlay_event_breakpoint): New function.
10174 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10175 (update_breakpoints_after_exec): Delete and re-initialize
10176 overlay event breakpoints after an exec. Add FIXME comment
10177 about longjmp breakpoint.
10178 (print_it_typical): Ignore overlay event breakpoints.
10179 (print_one_breakpoint): Ditto.
10180 (mention): Ditto.
10181 (bpstat_what): Do not stop for overlay event breakpoints.
10182 (delete_breakpoint): Don't delete overlay event breakpoints.
10183 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10184 (breakpoint_re_set): Re-create overlay event breakpoint.
10185
10186 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10187 (overlay_manual_command): Disable overlay breakpoints.
10188 (overlay_off_command): Disable overlay breakpoints.
10189
10190 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10191
10192 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10193 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10194 to here from config/tm-arm.h.
10195 (coff_sym_is_thumb): Make static.
10196 (arm_elf_make_msymbol_special): New function.
10197 (arm_coff_make_msymbol_special): New function.
10198 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10199 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10200 (coff_sym_is_thumb): Delete declaration.
10201 (arm_elf_make_msymbol_special): Declare.
10202 (arm_coff_make_msymbol_special): Declare.
10203 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10204 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10205
10206 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10207
10208 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10209
10210 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10211
10212 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10213 * gdbarch.c gdbarch.h: Regenerate.
10214 * arch-utils.c (default_print_float_info): New function.
10215 * arch-utils.h (default_print_float_info): Prototype it.
10216 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10217 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10218 (PRINT_FLOAT_INFO): Document it.
10219
10220 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10221 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10222 (PRINT_FLOAT_INFO): Define.
10223
10224 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10225
10226 * win32-nat.c (_initialize_check_for_gdb_ini):
10227 Add typecast to sprintf argument to suppress a warning.
10228
10229 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10230
10231 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10232 to allow easier handling of pass state.
10233 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10234 that gives exception name and address.
10235 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10236 and set last_sig value to ourstatus->value.sig. Some missing
10237 exceptions added.
10238 (child_continue): Correctly report continue_status.
10239 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10240 TARGET_SIGNAL_0 (new default value).
10241 (child_resume): consider sig argument passed to decide if
10242 the exception should be passed to debuggee or not.
10243
10244 2002-02-05 Michael Snyder <msnyder@redhat.com>
10245
10246 * regcache.c (fetch_register): Call target_fetch_register
10247 only if we don't call FETCH_PSEUDO_REGISTER.
10248 (store_register): Call target_store_register only if we
10249 don't call STORE_PSEUDO_REGISTER.
10250
10251 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10252
10253 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10254 ELF_MAKE_MSYMBOL_SPECIAL.
10255 * gdbarch.c, gdbarch.h: Regenerate.
10256 * arch-utils.c (default_make_msymbol_special): New function.
10257 * arch-utils.h (default_make_msymbol_special): Export.
10258 * elfread.c (elf_symtab_read): Compile use of
10259 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10260 multiarched.
10261 * coffread.c (coff_symtab_read): Ditto, for
10262 COFF_MAKE_MSYMBOL_SPECIAL.
10263
10264 2002-02-05 Jim Blandy <jimb@redhat.com>
10265
10266 * solib-svr4.c (svr4_truncate_ptr): New function.
10267 (svr4_relocate_section_addresses): Do the address arithmetic with
10268 the appropriate truncation for target addresses, even when
10269 CORE_ADDR is larger than a target address.
10270
10271 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10272
10273 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10274 to (int *).
10275
10276 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10279 code.
10280
10281 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10282
10283 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10284
10285 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * gdbserver/linux-low.c: Remove unused include files.
10288
10289 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10290
10291 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10292 (read_inferior_memory): Use it.
10293 (write_inferior_memory): Likewise.
10294
10295 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10298 grubbing through sys_errlist.
10299
10300 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10303
10304 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10305 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10306
10307 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10308
10309 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10310 (do_sfunc, set_cmd_sfunc): New functions.
10311
10312 * command.h (struct cmd_list_element): Add field func.
10313 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10314 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10315 * cli/cli-decode.h: Ditto.
10316
10317 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10318 (help_all, help_cmd_list): Ditto.
10319 (find_cmd, complete_on_cmdlist): Ditto.
10320 * top.c (execute_command): Ditto.
10321
10322 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10323 function.sfunc.
10324
10325 * infcmd.c (notice_args_read): Fix function signature.
10326
10327 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10328 * cli/cli-decode.c (add_set_cmd): Ditto.
10329 * utils.c (initialize_utils): Ditto.
10330 * maint.c (_initialize_maint_cmds): Ditto.
10331 * infrun.c (_initialize_infrun): Ditto.
10332 * demangle.c (_initialize_demangler): Ditto.
10333 * remote.c (add_packet_config_cmd): Ditto.
10334 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10335 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10336 * proc-api.c (_initialize_proc_api): Ditto.
10337 * kod.c (_initialize_kod): Ditto.
10338 * valprint.c (_initialize_valprint): Ditto.
10339 * top.c (init_main): Ditto.
10340 * infcmd.c (_initialize_infcmd): Ditto.
10341 * corefile.c (_initialize_core): Ditto.
10342 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10343 * arch-utils.c (initialize_current_architecture): Ditto.
10344 (_initialize_gdbarch_utils): Ditto.
10345 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10346
10347 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10348 * wince.c (_initialize_inftarg): Ditto.
10349 * symfile.c (_initialize_symfile): Ditto.
10350 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10351 * language.c (_initialize_language): Ditto.
10352 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10353
10354 2002-02-04 Michael Snyder <msnyder@redhat.com>
10355
10356 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10357
10358 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10361 Add rules for building the register data files.
10362
10363 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * regformats/regdat.sh: Add braces to the definition of
10366 expedite_regs_${arch}.
10367
10368 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10369
10370 * regformats/regdef.h (struct reg): Add comment describing the
10371 requirements for offset and size fields.
10372
10373 2002-02-04 Andreas Schwab <schwab@suse.de>
10374
10375 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10376 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10377
10378 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10379
10380 * gdbarch.sh (copyright): Update years in generated header.
10381 (SMASH_TEXT_ADDRESS): Add rule.
10382 * gdbarch.h, gdbarch.c: Re-generate.
10383 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10384 * dbxread.c: Likewise.
10385 * dwarfread.c: Likewise.
10386 * elfread.c: Likewise.
10387 * somread.c: Likewise.
10388
10389 * arm-tdep.c (arm_smash_text_address): New function.
10390 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10391
10392 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10393
10394 Add support for hardware watchpoints on win32 native.
10395 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10396 CONTEXT_DEBUG_REGISTERS.
10397 (dr variable): New variable. Static array containing a local copy
10398 of debug registers.
10399 (debug_registers_changed): New variable. Reflects when debug registers
10400 are changed and need to be written to inferior.
10401 (debug_registers_used): New variable. Reflects when any debug register
10402 was set, used when new threads are created.
10403 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10404 i386-nat code.
10405 (thread_rec): Set dr array if id is the thread of current_event .
10406 (child_continue, child_resume): Change the debug registers for all
10407 threads if debug_registers_changed.
10408 (child_add_thread): Change the debug registers if debug_registers_used.
10409 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10410 Link nm.h to new nm-cygwin.h file.
10411 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10412 of hardware registers.
10413
10414 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10415
10416 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10417 Restore behavour broken by 2002-01-20 Andrew Cagney
10418 <ac131313@redhat.com> IEEE_FLOAT removal.
10419
10420 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10421
10422 * c-valprint.c (c_val_print): Pass a proper valaddr to
10423 cp_print_class_method.
10424 * valops.c (search_struct_method): If there is only one method
10425 and args is NULL, return that method.
10426
10427 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10428
10429 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10430 accessing tag_name directly.
10431
10432 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10435 of accessing tag_name directly.
10436
10437 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10438
10439 PR gdb/280
10440 * gdbtypes.c (replace_type): New function.
10441 * gdbtypes.h (replace_type): Add prototype.
10442 * stabsread.c (read_type): Use replace_type.
10443
10444 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10445
10446 * Makefile.in (memattr.o): Add missing dependencies rule.
10447
10448 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10449
10450 * breakpoint.c (break_at_finish_command): Really export.
10451 (break_at_finish_at_depth_command): Ditto.
10452 (tbreak_at_finish_command): Ditto.
10453 * hppa-tdep.c: Include completer.h.
10454 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10455 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10456
10457 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10458
10459 * utils.c (do_write): New function.
10460 (error_stream): Rewrite combining the code from error_begin and
10461 verror.
10462 (verror): Rewrite using error_stream.
10463 (error_begin): Delete function.
10464
10465 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10466
10467 * utils.c (error_begin): Make static.
10468 * defs.h (error_begin): Delete declaration.
10469
10470 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10471 (decode_line_1): Use cplusplus_error instead of error_begin,
10472 cplusplus_hint and return_to_top_level.
10473 * coffread.c (coff_symfile_read): Use error instead of error_begin
10474 and return_to_top_level.
10475 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10476
10477 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10478
10479 * language.h (type_error, range_error): Make string parameter
10480 constant.
10481 * language.c (warning_pre_print): Delete extern declaration.
10482 * dwarfread.c (warning_pre_print): Ditto.
10483 * language.c (type_error, range_error): Rewrite to use verror and
10484 vwarning instead of warning_begin.
10485
10486 2002-02-01 Michael Snyder <msnyder@redhat.com>
10487
10488 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10489 (set_ignore_count): Move misplaced comment back where it belongs.
10490
10491 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10492
10493 * command.h (NO_FUNCTION): Delete macro.
10494 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10495 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10496 * tracepoint.c (_initialize_tracepoint): Ditto.
10497 * cli/cli-decode.c (add_set_cmd): Ditto.
10498 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10499
10500 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10503 Update ``this'' pointer when calling virtual functions.
10504
10505 2002-02-01 Michael Snyder <msnyder@redhat.com>
10506
10507 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10508 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10509
10510 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10511
10512 * regformats/reg-arm.dat: New file.
10513 * regformats/reg-i386.dat: New file.
10514 * regformats/reg-ia64.dat: New file.
10515 * regformats/reg-m68k.dat: New file.
10516 * regformats/reg-mips.dat: New file.
10517 * regformats/reg-ppc.dat: New file.
10518 * regformats/reg-sh.dat: New file.
10519 * regformats/regdef.h: New file.
10520 * regformats/regdat.sh: New file.
10521
10522 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10523
10524 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10525 (arm_frame_args_address, arm_frame_locals_address): New functions.
10526 (arm_frame_num_args): New function.
10527 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10528 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10529 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10530
10531 2002-01-31 Michael Snyder <msnyder@redhat.com>
10532
10533 * breakpoint.c (break_at_finish_command): Export.
10534 (break_at_finish_at_depth_command): Export.
10535 (tbreak_at_finish_command): Export.
10536 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10537 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10538 "txbreak" commands, which are HPPA specific.
10539
10540 * printcmd.c (disassemble_command): Remove an ancient
10541 artifact of an old merge.
10542
10543 * symfile.h (enum overlay_debugging_state):
10544 Define enum constant values for overlay mode.
10545 * symfile.c (overlay_debugging): Use enums instead of literals.
10546 (overlay_is_mapped, overlay_auto_command,
10547 overlay_manual_command): Ditto.
10548
10549 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10550 breakpoint_here_p, breakpoint_inserted_here_p,
10551 breakpoint_thread_match, bpstat_stop_status,
10552 describe_other_breakpoints, check_duplicates, clear_command):
10553 Coding standard fixes.
10554
10555 * target.c (target_xfer_memory): Add spaces, coding standard.
10556 (do_xfer_memory): Add missing line to trust-readonly
10557 code: check bfd SEC_READONLY flag for section.
10558
10559 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10560
10561 * PROBLEMS: Fix typo, 5.1->5.1.1.
10562
10563 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10564
10565 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10566 data symbols, since we search based on textlow and texthigh.
10567 (find_pc_sect_symtab): Likewise.
10568
10569 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10570
10571 * defs.h (vwarning): Declare.
10572 * utils.c (vwarning): New function.
10573 (warning): Call vwarning.
10574 (warning_begin): Delete function.
10575
10576 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10577 the warning message.
10578 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10579 warning_begin.
10580
10581 2002-01-30 Michael Snyder <msnyder@redhat.com>
10582
10583 * NEWS: Mention "set trust-readonly-sections" command.
10584 Mention generate-core-file command.
10585
10586 2002-01-15 Michael Snyder <msnyder@redhat.com>
10587
10588 * target.c: New command, "set trust-readonly-sections on".
10589 (do_xfer_memory): Honor the suggestion to trust readonly sections
10590 by reading them from the object file instead of from the target.
10591 (initialize_targets): Register command "set trust-readonly-sections".
10592
10593 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10594
10595 * parse.c (target_map_name_to_register): Simplify, search regs and
10596 pseudo-regs using a single loop.
10597
10598 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10599
10600 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10601
10602 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10603
10604 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10605 * config/i386/i386v42mp.mh: Add i387-nat.o .
10606 * i386v4-nat.c: Include i387-nat.h.
10607 (supply_fpregset): Use i387_supply_fsave.
10608 (fill_fpregset): Use i387_fill_fsave.
10609
10610 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10611
10612 * arm-tdep.c (arm_call_dummy_words): Define.
10613 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10614 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10615 (CALL_DUMMY_WORDS): Define.
10616 (arm_call_dummy_words): Declare.
10617 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10618 (arm_linux_call_dummy_words): Declare.
10619
10620 2002-01-30 Andreas Schwab <schwab@suse.de>
10621
10622 * m68klinux-nat.c: Fix last change to use regcache_collect
10623 instead of referencing registers[] directly.
10624
10625 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10626
10627 * parse.c (target_map_name_to_register): Delete code wrapped in
10628 #ifdef REGISTER_NAME_ALIAS_HOOK.
10629
10630 2002-01-28 Michael Snyder <msnyder@redhat.com>
10631
10632 * regcache.c (legacy_read_register_gen): Need to be able to
10633 read pseudo-register as well as real register.
10634 (legacy_write_register_gen): Ditto.
10635
10636 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10637
10638 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10639 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10640 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10641 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10642 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10643 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10644 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10645 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10646 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10647 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10648 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10649 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10650 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10651 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10652 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10653 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10654 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10655 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10656 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10657 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10658
10659 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10660
10661 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10662 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10663 (initialize_current_architecture): Update target_byte_order using
10664 information from BFD.
10665 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10666 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10667
10668 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10669
10670 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10671 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10672
10673 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10674 #ifdef INVALID_FLOAT.
10675 * infcmd.c (do_registers_info): Ditto.
10676 * values.c (unpack_double): Ditto. Add comment.
10677
10678 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10679 already commented out.
10680
10681 2002-01-26 Andreas Schwab <schwab@suse.de>
10682
10683 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10684 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10685 registers and add support for PTRACE_GETREGS.
10686
10687 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10688
10689 GDB 5.1.1 released from 5.1 branch.
10690 * NEWS: Add 5.1.1 news.
10691 * README: Sync with 5.1 branch.
10692
10693 2002-01-23 Fred Fish <fnf@redhat.com>
10694
10695 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10696 stabstring on initial malloc. Reallocing will copy it for us,
10697 if necessary.
10698
10699 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10700
10701 * Makefile.in (hpread_h): Delete.
10702 (HFILES_NO_SRCDIR): Remove hpread.h.
10703 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10704 (hpread.o): Update dependencies.
10705 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10706
10707 * hp-psymtab-read.c: Remove file.
10708 * hp-symtab-read.c: Remove file.
10709 * hpread.h: Remove file.
10710
10711 * hpread.c: Merge all contents of hp-psymtab-read.c,
10712 hp-symtab-read.c and hpread.h into this file, as it was prior to
10713 January 1999.
10714
10715 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10716 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10717 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10718 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10719
10720 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10721
10722 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10723 fill_gregset): Call gdbarch_tdep() just once, assign result to
10724 variable and use that, instead of calling the function several
10725 times.
10726
10727 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10728
10729 * configure.host: Accept sparcv9 as alias for sparc64.
10730 * configure.tgt: Likewise.
10731
10732 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10733
10734 * solib-aix5.c (build_so_list_from_mapfile)
10735 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10736 arguments is not reversed.
10737 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10738 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10739
10740 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10741
10742 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10743 modified version of obsolete sh_fetch_pseudo_register.
10744 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10745 (sh4_register_read): New function.
10746 (sh_pseudo_register_write): New function. Renamed and modified
10747 version of obsolete sh_store_pseudo_register.
10748 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10749 (sh4_register_write): New function.
10750 (sh_gdbarch_init): Remove setting of gdbarch function
10751 fetch_pseudo_register and store_pseudo_register. Remove setting of
10752 register_convert_to_raw, register_convert_to_virtual,
10753 register_convertible.
10754 (sh_sh4_register_convertible): Delete. No longer needed. All is
10755 taken care by architecture specific functions
10756 register_read/register_write.
10757 (sh_sh4_register_convert_to_virtual): Make static.
10758 (sh_sh4_register_convert_to_raw): Ditto.
10759
10760 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10761
10762 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10763 (floatformat_is_nan, floatformat_mantissa): Ditto.
10764
10765 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10766 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10767 builtin_type_ieee_double_little,
10768 builtin_type_ieee_double_littlebyte_bigword,
10769 builtin_type_m68881_ext, builtin_type_i960_ext,
10770 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10771 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10772 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10773 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10774
10775 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10776
10777 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10778 parameter. Set frameless flag if it exists and depended of
10779 whether the scanned function is frameless or not.
10780 (xstormy16_skip_prologue): If function is frameless, return
10781 result of xstormy16_scan_prologue().
10782 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10783 call.
10784
10785 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10786
10787 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10788 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10789 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10790 sh_sh4_register_byte, sh_sh4_register_raw_size,
10791 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10792 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10793 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10794 sh_store_pseudo_register, sh_do_pseudo_register): Call
10795 gdbarch_tdep() just once, assign result to variable and use that,
10796 instead of calling the function several times.
10797
10798 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10799
10800 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10801 macros instead of LAST_FPU_CTRL_REGNUM.
10802 (store_register): Likewise.
10803
10804 2002-01-21 Jim Blandy <jimb@redhat.com>
10805
10806 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10807 is up-to-date before running the program, not just when a program
10808 exits.
10809
10810 2002-01-21 Fred Fish <fnf@redhat.com>
10811
10812 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10813 when we have found all instructions we are looking for.
10814
10815 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10816
10817 * arm-tdep.c (arm_register_name): New function.
10818 (arm_registers_names): Make static.
10819 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10820 (arm_register_name): Declare.
10821 (REGISTER_NAME): Use it.
10822
10823 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10824 Kevin Buettner <kevinb@redhat.com>
10825
10826 Convert arm targets to new FRAME interface.
10827 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10828 (arm_frame_find_save_regs): Delete.
10829 (arm_frame_init_saved_regs): New.
10830 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10831 Allocate extra_info as required. Convert all uses of fsr.regs
10832 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10833 to use extra_info.
10834 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10835 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10836 (check_prologue_cache, save_prologue_cache): Likewise.
10837 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10838 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10839 (FRAME_FIND_SAVED_REGS): Delete.
10840 (arm_frame_find_saved_regs): Delete prototype.
10841 (arm_frame_init_saved_regs): New prototype.
10842 (FRAME_INIT_SAVED_REGS): Define.
10843
10844 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10845
10846 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10847
10848 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10849
10850 From Jeff Law <law@redhat.com>:
10851 * infttrace.c: Include <sys/pstat.h>.
10852 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10853 exec file if the ttrace equivalent fails.
10854
10855 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10856
10857 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10858 (closeLogFile): Ditto.
10859
10860 2002-01-20 Michael Chastain <mec@shout.net>
10861
10862 * top.c (print_gdb_version): Bump copyright year to 2002.
10863
10864 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10865
10866 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10867 Zannoni and Eli Zaretskii.
10868
10869 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10870
10871 * buildsym.c: Update copyright years.
10872 * c-typeprint.c: Likewise.
10873 * dwarf2read.c: Likewise.
10874 * f-typeprint.c: Likewise.
10875 * gdbtypes.c: Likewise.
10876 * gdbtypes.h: Likewise.
10877 * hp-symtab-read.c: Likewise.
10878 * hpread.c: Likewise.
10879 * mdebugread.c: Likewise.
10880 * p-typeprint.c: Likewise.
10881
10882 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10883
10884 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10885 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10886 byte-order selectable.
10887 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10888 * arch-utils.c: Ditto.
10889 (set_endian): Ditto.
10890 (set_endian_from_file): Ditto.
10891 * gdbserver/low-sim.c (create_inferior): Ditto.
10892 * gdbarch.sh: Ditto.
10893 * gdbarch.h: Re-generate.
10894 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10895 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10896 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10897 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10898 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10899 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10900 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10901 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10902 macro definition.
10903 * config/mips/tm-wince.h: Remove #undef of macro
10904 TARGET_BYTE_ORDER_SELECTABLE.
10905 * config/sh/tm-wince.h: Ditto.
10906
10907 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10908
10909 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10910 member function fields. Add accessor macro
10911 TYPE_FN_FIELD_ARTIFICIAL.
10912 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10913 * c-typeprint.c (c_type_print_base): Skip artificial member
10914 functions.
10915
10916 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10917
10918 * f-typeprint.c: Delete unused function f_type_print_args.
10919 * p-typeprint.c: Delete unused function pascal_type_print_args.
10920
10921 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10924 comment. Add ``artificial'' to ``union field_location''.
10925
10926 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10927
10928 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10929 * mdebugread.c (parse_symbol): Likewise.
10930 * stabsread.c (define_symbol): Likewise.
10931 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10932 initializing TYPE_FIELD_BITPOS to n (obsolete).
10933 (hpread_doc_function_type): Likewise.
10934 * hpread.c (hpread_function_type): Likewise.
10935
10936 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10937
10938 * configure.in (host_makefile_frag): Only require a host makefile
10939 fragment when a native build.
10940 * configure: Re-generate.
10941
10942 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10943
10944 * doublest.h (floatformat_from_type): Declare.
10945 * doublest.c (floatformat_from_type): New function.
10946 (convert_typed_floating): Use.
10947
10948 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10949 call to function floatformat_from_type.
10950
10951 * gdbarch.sh (IEEE_FLOAT): Delete.
10952 * gdbarch.h, gdbarch.c: Re-generate.
10953 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10954 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10955 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10956 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10957 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10958 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10959 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10960 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10961 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10962 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10963 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10964 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10965
10966 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10967 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10968 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10969 * sh-tdep.c (sh_gdbarch_init): Ditto.
10970 * mips-tdep.c (mips_gdbarch_init): Ditto.
10971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10972 * cris-tdep.c (cris_gdbarch_init): Ditto.
10973
10974 2002-01-20 Jiri Smid <smid@suse.cz>
10975
10976 * configure.host, configure.tgt: Support x86-64.
10977 * NEWS: Note new target x86-64.
10978
10979 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10980 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10981 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10982 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10983 x86-64-linux-nat.o): Fix dependencies.
10984
10985 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10986
10987 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10988 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10989 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10990 * config/sparc/xm-sun4os4.h: Delete file.
10991 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10992
10993 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10994
10995 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10996 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10997 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10998 * config/i386/i386lynx.mh (XM_FILE): Delete.
10999 * config/rs6000/xm-rs6000ly.h: Delete file.
11000 * config/sparc/xm-sparclynx.h: Delete file.
11001 * config/m68k/xm-m68klynx.h: Delete file.
11002 * config/i386/xm-i386lynx.h: Delete file.
11003 * config/xm-lynx.h: Delete file.
11004 * config/djgpp/fnchange.lst: Update.
11005
11006 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11007
11008 * alpha-tdep.c (alpha_register_byte): New function.
11009 (alpha_register_raw_size): Ditto.
11010 (alpha_register_virtual_size): Ditto.
11011 (alpha_skip_prologue_internal): Renamed from
11012 alpha_skip_prologue.
11013 (alpha_skip_prologue): New version that calls
11014 alpha_skip_prologue_internal.
11015 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11016 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11017 second argument from alpha_skip_prologue.
11018 (REGISTER_BYTE): Use alpha_register_byte.
11019 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11020 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11021 (FRAMELESS_FUNCTION_INVOCATION): Use
11022 generic_frameless_function_invocation_not.
11023 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11024 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11025
11026 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11027
11028 * config/mips/xm-news-mips.h: Delete file.
11029 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11030
11031 * config/m88k/xm-m88k.h: Delete file.
11032 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11033 * config/m88k/xm-delta88v4.h: Ditto.
11034 * config/m88k/xm-delta88.h: Ditto.
11035
11036 * config/alpha/xm-fbsd.h: Delete file.
11037 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11038
11039 * config/sparc/xm-sparc.h: Delete file.
11040 * Makefile.in (xm-sun4os4.h): Delete dependency.
11041 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11042 * config/sparc/xm-sun4os4.h: Ditto.
11043 * config/sparc/xm-linux.h: Ditto.
11044
11045 * config/i386/xm-windows.h: Delete file.
11046
11047 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11048
11049 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11050 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11051
11052 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11053
11054 * alpha-tdep.c (alpha_call_dummy_words): New.
11055 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11056 (CALL_DUMMY_P): Define.
11057 (CALL_DUMMY_WORDS): Define.
11058 (SIZEOF_CALL_DUMMY_WORDS): Define.
11059
11060 2002-01-19 Per Bothner <per@bothner.com>
11061
11062 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11063 isn't NULL, which can happen with some gcj-3.x-produced code.
11064
11065 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11066
11067 * alpha-tdep.c (alpha_register_virtual_type): New function.
11068 (alpha_init_frame_pc_first): Ditto.
11069 (alpha_fix_call_dummy): Ditto.
11070 (alpha_store_struct_return): Ditto.
11071 (alpha_extract_struct_value_address): Ditto.
11072 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11073 alpha_register_virtual_type.
11074 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11075 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11076 alpha_extract_struct_value_address.
11077 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11078 (INIT_FRAME_PC): Use init_frame_pc_noop.
11079 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11080
11081 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11082
11083 * i386gnu-nat.c: Include "i386-tdep.h".
11084 (fetch_fpregs): Simplify code dealing with uninitialized floating
11085 point states such that it doesn't require FP7_REGNUM.
11086
11087 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11088
11089 * alpha-tdep.c (frame_extra_info): New.
11090 (alpha_find_saved_regs): Make static. Use
11091 frame->extra_info.
11092 (alpha_frame_init_saved_regs): New function.
11093 (alpha_frame_saved_pc): Use frame->extra_info.
11094 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11095 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11096 (init_extra_frame_info): Rename to...
11097 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11098 (alpha_print_extra_frame_info): New function.
11099 (alpha_frame_locals_address): Ditto.
11100 (alpha_frame_args_address): Ditto.
11101 (alpha_pop_frame): Use frame->extra_info.
11102 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11103 alpha_frame_args_address.
11104 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11105 (alpha_find_saved_regs): Remove prototype.
11106 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11107 (EXTRA_FRAME_INFO): Remove.
11108 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11109 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11110
11111 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11112
11113 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11114 (alpha_cannot_fetch_register): Ditto.
11115 (alpha_cannot_store_register): Ditto.
11116 (alpha_register_convertible): Ditto.
11117 (alpha_use_struct_convention): Ditto.
11118 * config/alpha/tm-alpha.h: Update copyright years.
11119 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11120 (INNER_THAN): Use core_addr_lessthan.
11121 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11122 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11123 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11124 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11125 (FRAME_CHAIN): Remove unnecessary cast.
11126
11127 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11128
11129 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11130 obsolete.
11131
11132 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11133
11134 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11135 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11136 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11137 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11138 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11139 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11140 * x86-64-linux-nat.c: Ditto.
11141
11142 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11143
11144 * alpha-tdep.c (alpha_register_name): New function.
11145 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11146 (REGISTER_NAME): Define.
11147
11148 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11149
11150 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11151
11152 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11153
11154 * alpha-tdep.c: Update copyright years.
11155 (alpha_next_pc): New function.
11156 (alpha_software_single_step): Ditto.
11157 * config/alpha/tm-alpha.h: Add prototype for
11158 alpha_software_single_step.
11159
11160 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11161
11162 * alphabsd-nat.c: Update copyright years.
11163 (fill_gregset): Use regcache_collect.
11164 (fill_fpregset): Likewise.
11165 (fetch_inferior_registers): Only fetch integer registers
11166 if requested to do so.
11167 (store_inferior_registers): Only store integer registers
11168 if requested to do so.
11169
11170 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11171
11172 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11173 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11174 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11175 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11176 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11177 * config/arm/linux.mh (XDEPFILES): Delete.
11178 * config/arm/nbsd.mh (XDEPFILES): Delete.
11179 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11180 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11181 * config/i386/i386m3.mh (XDEPFILES): Delete.
11182 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11183 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11184 * config/i386/fbsd.mh (XDEPFILES): Delete.
11185 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11186 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11187 * config/i386/i386v4.mh (XDEPFILES): Delete.
11188 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11189 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11190 * config/i386/i386aix.mh (XDEPFILES): Delete.
11191 * config/i386/go32.mh (XDEPFILES): Delete.
11192 * config/i386/cygwin.mh (XDEPFILES): Delete.
11193 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11194 * config/i386/i386mach.mh (XDEPFILES): Delete.
11195 * config/i386/i386v32.mh (XDEPFILES): Delete.
11196 * config/i386/linux.mh (XDEPFILES): Delete.
11197 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11198 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11199 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11200 * config/i386/i386sco.mh (XDEPFILES): Delete.
11201 * config/i386/i386v.mh (XDEPFILES): Delete.
11202 * config/i386/nbsd.mh (XDEPFILES): Delete.
11203 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11204 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11205 * config/i386/symmetry.mh (XDEPFILES): Delete.
11206 * config/i386/obsd.mh (XDEPFILES): Delete.
11207 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11208 * config/ia64/linux.mh (XDEPFILES): Delete.
11209 * config/ia64/aix.mh (XDEPFILES): Delete.
11210 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11211 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11212 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11213 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11214 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11215 * config/m68k/linux.mh (XDEPFILES): Delete.
11216 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11217 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11218 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11219 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11220 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11221 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11222 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11223 * config/m88k/delta88.mh (XDEPFILES): Delete.
11224 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11225 * config/m88k/m88k.mh (XDEPFILES): Delete.
11226 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11227 * config/mips/linux.mh (XDEPFILES): Delete.
11228 * config/mips/irix6.mh (XDEPFILES): Delete.
11229 * config/mips/irix5.mh (XDEPFILES): Delete.
11230 * config/mips/irix4.mh (XDEPFILES): Delete.
11231 * config/mips/irix3.mh (XDEPFILES): Delete.
11232 * config/mips/decstation.mh (XDEPFILES): Delete.
11233 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11234 (NATDEPFILES): Move core-aout.o to here.
11235 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11236 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11237 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11238 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11239 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11240 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11241 * config/pa/hpux11.mh (XDEPFILES): Delete.
11242 * config/powerpc/aix.mh (XDEPFILES): Delete.
11243 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11244 * config/powerpc/linux.mh (XDEPFILES): Delete.
11245 * config/romp/rtbsd.mh: Rename XDEPFILES.
11246 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11247 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11248 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11249 * config/s390/s390.mh (XDEPFILES): Delete.
11250 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11251 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11252 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11253 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11254 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11255 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11256 * config/sparc/linux.mh (XDEPFILES): Delete.
11257 * config/vax/vaxult.mh (XDEPFILES): Delete.
11258 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11259 * Makefile.in (DEPFILES): Remove XDEPFILES.
11260
11261 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11262
11263 * utils.c (internal_verror): Fix comments, default is yes not no.
11264 Update queries to match. Default to quit and dump core.
11265
11266 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11267
11268 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11269 copyright.
11270 * defs.h, event-top.c, gdbcmd.h: Ditto.
11271 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11272 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11273 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11274 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11275 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11276 * mi/mi-main.c:Ditto.
11277
11278 * stack.c, symfile.c: Update copyright.
11279
11280 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11283 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11284 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11285 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11286
11287 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11290 * gdbserver/low-lynx.c (myattach): Likewise.
11291 * gdbserver/low-nbsd.c (myattach): Likewise.
11292 * gdbserver/low-sim.c (myattach): Likewise.
11293 * gdbserver/low-sparc.c (myattach): Likewise.
11294 * gdbserver/low-sun3.c (myattach): Likewise.
11295
11296 * gdbserver/low-linux.c (myattach): New function.
11297
11298 * gdbserver/server.c (attach_inferior): New function.
11299 (main): Handle "--attach".
11300
11301 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11302
11303 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11304 maintainer.
11305
11306 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11307
11308 * c-typeprint.c (is_type_conversion_operator): Add additional
11309 check for non-conversion operators.
11310
11311 2002-01-15 Michael Snyder <msnyder@redhat.com>
11312
11313 * linux-proc.c: Add "info proc" command, a la procfs.c.
11314 (read_mapping): New function, abstract and re-use code.
11315 (linux_find_memory_regions): Use new func read_mapping.
11316 (linux_info_proc_cmd): New function, implement "info proc".
11317 (_initialize_linux_proc): Add new command "info proc".
11318
11319 2002-01-15 Michael Snyder <msnyder@redhat.com>
11320
11321 * symfile.c (generic_load): Use bfd_map_over_sections method
11322 instead of manipulating bfd structure members directly.
11323 (add_section_size_callback): New function, bfd sections callback
11324 used by generic_load.
11325 (load_sections_callback): New function, bfd sections callback
11326 used by generic_load.
11327
11328 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11329
11330 [Based on work by Jim Blandy]
11331 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11332 (builtin_type_vec128): Export.
11333 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11334 types.
11335 (builtin_type_vec128): New builtin type for 128 bit vector
11336 registers.
11337 (build_gdbtypes): Initialize builtin_type_v16qi and
11338 builtin_type_v8hi. Create the vec128 register builtin type
11339 structure.
11340 (build_builtin_type_vec128): New function.
11341 (_initialize_gdbtypes): Register builtin_type_v16qi and
11342 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11343 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11344 AltiVec register to new builtin type.
11345
11346 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11347
11348 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11349 to make_cv_type.
11350
11351 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11352
11353 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11354 CLEAN_UP_REGISTER_VALUE.
11355 * regcache.c (supply_register): Update only call.
11356
11357 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11358
11359 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11360 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11361 a29k-*-vxworks* targets as obsolete.
11362
11363 2002-01-14 Michael Snyder <msnyder@redhat.com>
11364
11365 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11366 until we can resolve portability issues.
11367 * gregset.h: Remove references to fpxregs.
11368 * gcore.c (gcore_command): Initialize note_sec to NULL.
11369
11370 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11371
11372 * signals.c (target_signal_to_name): Rewrite. Only use
11373 signals[].name when in bounds and non-NULL.
11374
11375 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11376
11377 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11378 * signals.c (target_signal_to_name): Verify that SIG is within the
11379 bounds of the signals array.
11380
11381 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11382
11383 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11384
11385 2002-01-13 Keith Seitz <keiths@redhat.com>
11386
11387 * stack.c (print_frame_info_base): Print the frame's pc
11388 only if when print_frame_info_listing_hook is not defined.
11389
11390 2002-01-13 Keith Seitz <keiths@redhat.com>
11391
11392 * varobj.c (varobj_set_value): Make sure that there were no
11393 errors evaluating the object before attempting to set its
11394 value.
11395 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11396 so this offset adjustment is no longer necessary.
11397 (create_child): Don't set the error flag if the child is
11398 a CPLUS_FAKE_CHILD.
11399 (value_of_child): If value_fetch_lazy fails, return NULL
11400 so that callers will be notified that an error occurred.
11401 (c_value_of_variable): Delay check of variable's validity
11402 until later. We actually want all structs and unions to have
11403 the value "{...}".
11404 Do not return "???" for variables which could not be evaluated.
11405 This error condition must be returned to the caller so that it
11406 can get the error condition from gdb.
11407 (cplus_name_of_child): Adjust index for vptr before figuring
11408 out the name of the child.
11409 (cplus_value_of_child): If a child's (real) parent is not valid,
11410 don't even bother trying to give a value for it. Just return
11411 an error. Change all instances in this function.
11412 (cplus_type_of_child): If our parent is one of the "fake"
11413 parents, we need to get at the type of the real parent, and
11414 derive the child's true type using this information.
11415
11416 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11417
11418 From 2002-01-09 John Marshall <johnm@falch.net>:
11419 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11420 sources.redhat.com, and tweak some related URLs which had
11421 suffered from linkrot.
11422
11423 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11424
11425 From Jeff law:
11426 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11427 structures passed in registers.
11428
11429 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11430
11431 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11432 white space which prevented compilation. Reported by DSK
11433 <dsk@student.unsw.edu.au>.
11434
11435 2002-01-11 Michael Snyder <msnyder@redhat.com>
11436
11437 * symfile.c (build_section_addr_info_from_section_tab):
11438 Use bfd access method instead of manipulating bfd directly.
11439 (syms_from_objfile): Ditto.
11440 (simple_overlay_update_1): Ditto.
11441 (simple_overlay_update): Ditto.
11442 (generic_load): Ditto.
11443 (overlay_unmapped_address): FIXME comment, bfd access methods.
11444 (sections_overlap): FIXME comment, bfd access methods.
11445 (pc_in_mapped_range): FIXME comment, bfd access methods.
11446 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11447 (section_is_mapped): FIXME comment, bfd access methods.
11448 (section_is_overlay): FIXME comment, bfd access methods.
11449
11450 * symfile.c (generic_load): Whitespace and long line cleanups.
11451 Remove duplicate variable, change several local variables to
11452 more appropriate data types.
11453 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11454
11455 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11456
11457 From Peter Schauer:
11458 * language.c (longest_local_hex_string_custom): Use phex_nz to
11459 convert NUM to a hex string.
11460
11461 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11462
11463 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11464 the function.
11465 Update Copyright year.
11466
11467 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11468
11469 * language.c (longest_raw_hex_string): Delete unused function.
11470
11471 2002-01-11 Petr Sorfa <petrs@caldera.com>
11472
11473 * MAINTAINERS (write-after-approval): Add myself.
11474 * dwarf2read.c (read_tag_string_type): Handling of
11475 DW_AT_byte_size.
11476 (read_tag_string_type): FORTRAN fix to prevent propagation of
11477 first string size.
11478 (set_cu_language): Handling of DW_LANG_Fortran95
11479
11480 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11481
11482 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11483 GETPID(inferior_ptid).
11484 (store_inferior_registers): Likewise.
11485
11486 2002-01-10 Jason Merrill <jason@redhat.com>
11487
11488 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11489 Fix DW_OP_minus.
11490
11491 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11492
11493 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11494 and bfd/elf32-sh-nbsd.c.
11495
11496 2002-01-10 Michael Snyder <msnyder@redhat.com>
11497
11498 * NEWS: Mention --pid and corefile/proc-id behavior change.
11499
11500 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11501 * gcore.c: Include cli/cli-decode.h instead of command.h.
11502
11503 * main.c (captured_main): Add new command line option "--pid".
11504 If the second command line argument (following the symbol-file)
11505 begins with a digit, try to attach to it before trying to open
11506 it as a corefile.
11507 (print_gdb_help): Document the "--pid" argument.
11508
11509 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11510
11511 * completer.c (command_completer): New function.
11512
11513 * completer.h <command_completer>: Add prototype.
11514
11515 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11516 completer for the "help" command.
11517
11518 2002-01-09 Jason Merrill <jason@redhat.com>
11519
11520 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11521
11522 2002-01-09 Michael Snyder <msnyder@redhat.com>
11523
11524 * i386-linux-nat.c (fill_fpxregset): Make global.
11525 (store_fpxregset): Ditto.
11526
11527 * gregset.h (gdb_fpxregset_t): Define.
11528 (supply_fpxregset): Prototype.
11529 (fill_fpxregset): Prototype.
11530
11531 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11532
11533 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11534
11535 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11536 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11537 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11538
11539 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11540
11541 * MAINTAINERS: Update target maintainer rules so that any
11542 Maintainer can approve a tested patch for a maintenance-only
11543 target.
11544
11545 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11546
11547 * MAINTAINERS (write-after-approval): Add myself.
11548
11549 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11550 IN_SIGTRAMP.
11551
11552 2002-01-08 Michael Snyder <msnyder@redhat.com>
11553
11554 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11555 real name of the executable, rather than the /proc name.
11556
11557 2002-01-03 Michael Snyder <msnyder@redhat.com>
11558
11559 Implement a "generate-core-file" command in gdb, save target state.
11560 * gcore.c: New file. Implement new command 'generate-core-file'.
11561 Save a corefile image of the current state of the inferior.
11562 * linux-proc.c: Add linux-specific code for saving corefiles.
11563 * target.h (struct target_ops): Add new target vectors for saving
11564 corefiles; to_find_memory_regions and to_make_corefile_notes.
11565 (target_find_memory_regions): New macro.
11566 (target_make_corefile_notes): New macro.
11567 * target.c (update_current_target): Inherit new target methods.
11568 (dummy_find_memory_regions): New place-holder method.
11569 (dummy_make_corefile_notes): New place-holder method.
11570 (init_dummy_target): Initialize new dummy target vectors.
11571 * exec.c (exec_set_find_memory_regions): New function.
11572 Allow the exec_ops vector for memory regions to be taken over.
11573 (exec_make_note_section): New function, target vector method.
11574 * defs.h (exec_set_find_memory_regions): Export prototype.
11575 * procfs.c (proc_find_memory_regions): New function, corefile method.
11576 (procfs_make_note_section): New function, corefile method.
11577 (init_procfs_ops): Set new target vector pointers.
11578 (find_memory_regions_callback): New function.
11579 (procfs_do_thread_registers): New function.
11580 (procfs_corefile_thread_callback): New function.
11581 * sol-thread.c (sol_find_memory_regions): New function.
11582 (sol_make_note_section): New function.
11583 (init_sol_thread_ops): Initialize new target vectors.
11584 * inftarg.c (inftarg_set_find_memory_regions): New function.
11585 Allow to_find_memory_regions vector to be taken over.
11586 (inftarg_set_make_corefile_notes): New function.
11587 Allow to_make_corefile_notes vector to be taken over.
11588 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11589 interface layer if not target_has_execution (may be a corefile).
11590 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11591 * config/sparc/sun4sol2.mh: Ditto.
11592 * config/alpha/alpha-linux.mh: Ditto.
11593 * config/arm/linux.mh: Ditto.
11594 * config/i386/x86-64linux.mh: Ditto.
11595 * config/ia64/linux.mh: Ditto.
11596 * config/m68k/linux.mh: Ditto.
11597 * config/mips/linux.mh: Ditto.
11598 * config/powerpc/linux.mh: Ditto.
11599 * config/sparc/linux.mh: Ditto.
11600
11601 2002-01-07 Michael Snyder <msnyder@redhat.com>
11602
11603 * arm-linux-nat.c: Remove references to regcache.c internal data
11604 (registers[] and register_valid[]).
11605
11606 2002-01-07 Michael Snyder <msnyder@redhat.com>
11607
11608 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11609 so that attaching to a pid will automatically read the process's
11610 symbol file and shlibs.
11611 * Makefile.in: Add rule for linux-proc.o.
11612 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11613 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11614 * config/arm/linux.mh: Ditto.
11615 * config/i386/linux.mh: Ditto.
11616 * config/i386/x86-64linux.mh: Ditto.
11617 * config/ia64/linux.mh: Ditto.
11618 * config/m68k/linux.mh: Ditto.
11619 * config/mips/linux.mh: Ditto.
11620 * config/powerpc/linux.mh: Ditto.
11621 * config/sparc/linux.mh: Ditto.
11622
11623 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11624
11625 * win32-nat.c: Add i386-tdep.h dependency.
11626
11627 2002-01-07 Michael Snyder <msnyder@redhat.com>
11628
11629 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11630 instead of bfd_get_arch_size. Don't bail out just because
11631 there's no exec_bfd.
11632
11633 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11634 * p-valprint.c (pascal_object_print_value): Ditto.
11635 * somread.c (som_symtab_read): Ditto.
11636 * symfile.c (simple_free_overlay_region_table): Ditto.
11637 * valops.c (value_assign): Ditto.
11638
11639 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11640 use tilde_expand and strerror for opening save-tracepoints file.
11641
11642 * thread-db.c (thread_db_new_objfile): Indendation fix.
11643
11644 * infptrace.c (GDB_MAX_ALLOCA): New define.
11645 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11646 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11647 can be overridden with whatever value is appropriate to the host).
11648 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11649 alloca to allocate potentially large buffer.
11650 * rs6000-nat.c (child_xfer_memory): Ditto.
11651 * symm-nat.c (child_xfer_memory): Ditto.
11652 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11653
11654 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11655
11656 From Nick Clifton <nickc@redhat.com>
11657 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11658
11659 2002-01-07 Michael Snyder <msnyder@redhat.com>
11660
11661 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11662 Don't use exec_bfd if it's NULL.
11663
11664 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11665
11666 * valops.c (value_arg_coerce): Fix formatting.
11667
11668 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11669
11670 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11671 * gnu-nat.c: Ditto.
11672
11673 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11674
11675 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11676 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11677 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11678 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11679 z8k-coff have not been multi-arched. Update z8k-coff build
11680 status.
11681
11682 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11683
11684 * MAINTAINERS: Mark a29k target as obsolete.
11685 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11686 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11687 comments.
11688 * NEWS: Note that a29k targets are obsolete.
11689 * a29k-tdep.c: Mark as obsolete.
11690 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11691 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11692 a29k-*-vxworks* targets as obsolete.
11693 * remote-adapt.c: Obsolete.
11694 * remote-eb.c: Obsolete.
11695 * remote-mm.c: Obsolete.
11696 * remote-udi.c: Obsolete.
11697 * config/a29k/a29k-udi.mt: Obsolete.
11698 * config/a29k/a29k.mt: Obsolete.
11699 * config/a29k/tm-a29k.h: Obsolete.
11700 * config/a29k/tm-vx29k.h: Obsolete.
11701 * config/a29k/vx29k.mt: Obsolete.
11702
11703 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11704
11705 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11706 with BFD_ENDIAN_BIG.
11707
11708 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11709
11710 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11711 * configure, config.in: Re-generate.
11712 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11713 * defs.h: Do not include <endian.h>.
11714
11715 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11716
11717 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11718 * config.in: Regenerate.
11719 * configure.in: Update copyright years.
11720 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11721 * configure: Regenerate.
11722 * i386bsd-nat.c: Update copyright years.
11723 (fill_gregset): Use regcache_collect.
11724 (fetch_inferior_registers): Only fetch integer registers
11725 if requested to do so. Add support for XMM registers
11726 using PT_GETXMMREGS.
11727 (store_inferior_registers): Only store integer registers
11728 if requested to do so. Add support for XMM registers
11729 using PT_SETXMMREGS.
11730 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11731 (store_inferior_registers): Remove.
11732 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11733 (fetch_elfcore_registers): New function.
11734 (i386nbsd_elfcore_fns): New.
11735 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11736 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11737 i386bsd-nat.o.
11738 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11739 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11740 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11741 * config/i386/tm-nbsd.h: Update copyright years.
11742 (HAVE_SSE_REGS): Define.
11743 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11744 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11745 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11746 (SIGCONTEXT_PC_OFFSET): Remove.
11747 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11748
11749 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11750
11751 * configure.tgt: Remove powerpc-*-macos* target.
11752 * config/m68k/xm-mpw.h: Delete file.
11753 * config/xm-mpw.h: Delete file.
11754 * ser-mac.c: Delete file.
11755 * mpw-make.sed: Delete file.
11756 * mpw-config.in: Delete file.
11757 * mac-xdep.c: Delete file.
11758 * mac-gdb.r: Delete file.
11759 * mac-defs.h: Delete file.
11760 * mac-nat.c: Delete file.
11761 * config/powerpc/macos.mh: Delete file.
11762 * config/powerpc/macos.mt: Delete file.
11763 * config/powerpc/nm-macos.h: Delete file.
11764 * config/powerpc/tm-macos.h: Delete file.
11765 * source.c (openp, open_source_file): Remove obsolete code.
11766 * top.c (gdb_readline): Ditto.
11767 * utils.c (query): Ditto.
11768 * event-top.c (display_gdb_prompt): Ditto.
11769 * Makefile.in (ser-mac.o): Delete obsolete target.
11770 * NEWS: Update.
11771
11772 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11773
11774 * defs.h (BIG_ENDIAN): Delete macro definition.
11775 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11776 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11777 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11778 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11779 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11780 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11781 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11782 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11783 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11784 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11785 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11786 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11787 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11788 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11789 * gdbarch.c: Re-generate.
11790
11791 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11792
11793 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11794 for core files.
11795
11796 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11797
11798 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11799
11800 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11801
11802 * value.h (value_ptr): Delete typedef.
11803
11804 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11805
11806 * i386nbsd-nat.c: Update copyright years.
11807 Include i386-tdep.h.
11808
11809 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11810
11811 * stabsread.c: Update copyright years.
11812
11813 From Debashis Mahata <debashis.mahata@wipro.com>:
11814 (read_struct_fields): Deal with Sun C compiler erroneous stab
11815 output for structs and unions.
11816 Fix PR gdb/269.
11817
11818 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11819
11820 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11821 prototype.
11822
11823 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11824
11825 * cp-abi.c: Fix whitespace.
11826 (baseclass_offset): New wrapper function.
11827 * cp-abi.h (baseclass_offset): Add prototype.
11828 (struct cp_abi_ops): Add baseclass_offset pointer.
11829
11830 * valops.c (vb_match): Move to...
11831 * gnu-v2-abi.c (vb_match): here.
11832 * valops.c (baseclass_offset): Move to...
11833 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11834
11835 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11836
11837 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11838 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11839 * hpacc-abi.c (init_hpacc_ops): Likewise.
11840
11841 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11842
11843 * valops.c (find_overload_match): Accept obj as a
11844 reference parameter. Update it before returning.
11845 * value.h (find_overload_match): Update prototype.
11846 * eval.c (evaluate_subexp_standard): Pass object to
11847 find_overload_match by reference.
11848
11849 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11850
11851 * valarith.c: Replace value_ptr with struct value pointer. Remove
11852 register attribute from value declarations.
11853 * valops.c: Ditto.
11854 * value.h: Ditto.
11855 * scm-lang.c (scm_lookup_name): Ditto.
11856
11857 2002-01-03 Michael Snyder <msnyder@redhat.com>
11858
11859 Abstract the functionality of iterating over mapped memory
11860 regions into a general purpose iterator function.
11861 * procfs.c (iterate_over_mappings): New function, general purpose
11862 iterator for memory sections.
11863 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11864 (solib_mappings_callback): New function, callback for above.
11865 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11866 (info_mappings_callback): New function, callback for above.
11867
11868 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11869
11870 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11871
11872 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11873 * i386-tdep.c: Include "elf-bfd.h".
11874 (process_note_abi_tag_sections): New function.
11875 (i386_gdbarch_init): Add code to recognize various OS/ABI
11876 combinations.
11877
11878 * maint.c (_initialize_maint_cmds): Add missing \ in
11879 string-literal.
11880
11881 For older changes see ChangeLog-2001
11882 \f
11883 Local Variables:
11884 mode: change-log
11885 left-margin: 8
11886 fill-column: 74
11887 version-control: never
11888 End:
This page took 0.301182 seconds and 4 git commands to generate.