utils.c (puts_filtered_tabular): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-10-14 Adam Fedor <fedor@gnu.org>
2
3 * utils.c (puts_filtered_tabular): New function.
4 (fprintf_symbol_filtered): Get ObjC demangled name.
5 * defs.h (puts_filtered_tabular): Declared.
6
7 2002-10-14 Kevin Buettner <kevinb@redhat.com>
8
9 * c-lang.h (c_type_print_varspec_prefix): Delete.
10 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
11 ``need_post_space'' parameter. Adjust all callers.
12
13 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
14
15 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
16 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
17 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
18 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
19
20 2002-10-13 Adam Fedor <fedor@gnu.org>
21
22 * source.c (print_source_lines): Update comments.
23
24 2002-10-13 Adam Fedor <fedor@gnu.org>
25
26 * valops.c (value_of_local): New function.
27 (value_of_this): Use it.
28 * value.h (value_of_local): Declared.
29
30 2002-10-13 Adam Fedor <fedor@gnu.org>
31
32 * parse.c: (length_of_subexp, prefixify_subexp): Handle
33 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
34
35 2002-10-12 Adam Fedor <fedor@gnu.org>
36
37 * language.c (binop_result_type): Add language_objc to case.
38 (integral_type): Likewise.
39 (character_type): Likewise.
40 (string_type): Likewise.
41 (boolean_type): Likewise.
42 (structured_type): Likewise.
43 (binop_type_check): Likewise.
44
45 2002-10-11 Adam Fedor <fedor@gnu.org>
46
47 * printcmd.c (address_info): Print 'self' for ObjC.
48
49 2002-10-11 Adam Fedor <fedor@gnu.org>
50
51 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
52 OP_SELF.
53
54 2002-10-11 Adam Fedor <fedor@gnu.org>
55
56 * language.h (CAST_IS_CONVERSION): Add language_objc.
57
58 2002-10-11 Adam Fedor <fedor@gnu.org>
59
60 * defs.h (enum language): Add language_objc.
61
62 2002-10-11 Klee Dienes <kdienes@apple.com>
63
64 * findvar.c (read_memory_typed_address): New function.
65 * gdbcore.h (read_memory_typed_address): Add prototype.
66 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
67 to read a value destined for a CORE_ADDR, not read_memory_integer.
68 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
69 (f77_get_dynamic_lowerbound): Ditto.
70
71 2002-10-11 Martin M. Hunt <hunt@redhat.com>
72
73 * utils.c (string_to_core_addr): After turning string into
74 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
75 which will do necessary sign-extension, etc.
76
77 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
78
79 * c-exp.y (THIS): Delete token and grammar rule.
80 (yylex): Don't return THIS.
81 * cp-valprint.c (vtbl_ptr_name_old): Delete.
82 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
83 * demangle.c (cplus_markers): Update comment. Put '$'
84 first. Remove CPLUS_MARKER.
85 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
86 * jv-exp.y (THIS): Delete token and grammar rule.
87 (yylex): Don't return THIS.
88 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
89 * objc-exp.y (THIS): Delete token and grammar rule.
90 (yylex): Don't return THIS.
91 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
92 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
93 (read_member_functions): Likewise for opname.
94 (read_tilde_fields): Use is_cplus_marker.
95
96 * defs.h (CPLUS_MARKER): Don't define.
97 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
98 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
99 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
100 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
101 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
102
103 * config/i386/tm-i386v4.h: Delete file.
104 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
105 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
106 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
107 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
108 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
109 * config/i386/i386sco5.mt (TM_FILE): Likewise.
110 * config/i386/i386v4.mt (TM_FILE): Likewise.
111 * config/i386/ncr3000.mt (TM_FILE): Likewise.
112
113 2002-10-10 Marko Mlinar <markom@opencores.org>
114
115 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
116 accidentially not commited 2002-10-09
117 * gdbarch.h, gdbarch.c: Re-generate.
118
119 2002-10-09 Marko Mlinar <markom@opencores.org>
120
121 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
122 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
123 * gdbarch.h, gdbarch.c: Re-generate.
124
125 2002-10-08 Petr Sorfa <petrs@caldera.com>
126
127 Revised and re-submitted by John Wolfe <jlw@caldera.com>
128
129 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
130 so we can work on more than one compilation unit at a time. This
131 helps prepare GDB to handle inter-CU die references.
132 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
133 the code to be defined before struct comp_unit_head.
134 (comp_unit_head): Added new members - offset, cu_head,
135 begin_die, next and dwarf2_abbrevs.
136 (dwarf2_abbrevs): Removed single static var; now member of
137 struct comp_unit_head.
138 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
139 members.
140 (psymtab_to_symtab_1): Changed to work with the new
141 struct comp_unit_head.
142 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
143 constructs the dwarf2_abbrevs[] inside the cu_header.
144 (dwarf2_empty_abbrev_table): Now expects a ptr to a
145 dwarf2_abbrev table to clean up.
146 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
147 handling of dwarf2_abbrevs inside the cu_header.
148 (read_partial_die): Now supports the call to the new
149 dwarf2_lookup_abbrev.
150 (read_full_die): Now supports the call to the new
151 dwarf2_lookup_abbrev.
152
153 2002-10-06 Christopher Faylor <cgf@redhat.com>
154
155 * Makefile.in (install-gdbtk): Add missing continuation backslash to
156 insure that shell variables, such as "transformed_name" are propagated
157 to later shell statements in rule.
158
159 2002-10-06 Mark Kettenis <kettenis@gnu.org>
160
161 * config/i386/nm-i386sco.h: Add protection against
162 multiple-inclusion. Include "i386/nm-i386v.h".
163 (REGISTER_U_ADDR): Remove define.
164 (i386_register_u_addr): Remove prototype.
165
166 2002-10-04 Michael Snyder <msnyder@redhat.com>
167
168 * m32r-stub.c (handle_exception): Make sure exception is "trap"
169 before treating it as a single-step event.
170
171 2002-10-03 Adam Fedor <fedor@gnu.org>
172
173 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
174 (objc_demangle): Remove assignment in if statements, Replace
175 free with xfree.
176 (add_msglist): Likewise.
177 (end_msglist): Likewise.
178 (complare_selectors): Likewise.
179 (selectors_info): Likewise.
180 (compare_classes): Likewise.
181 (classes_info): Likewise.
182 (print_object_command): Likewise.
183 (find_objc_msgcall_submethod): Replace PTR with void *.
184 * objc-lang.h: Remove check for __STDC__.
185
186 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
187
188 * ui-out.h (ui_out_field_fmt_int): New prototype.
189 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
190 of field width and alignment.
191 * stack.c (print_frame_info_base): When printing frame level, use
192 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
193 PR gdb/192
194
195 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
196
197 * MAINTAINERS: Add self to Write After Approval list.
198
199 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
200
201 * infcmd.c (interrupt_target_command_wrapper): Delete.
202 (interrupt_target_command): Make non static.
203 (nofp_registers_info): Make static.
204 * stack.c (return_command_wrapper): Delete.
205 (return_command): Make non static.
206
207 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
208
209 * event-top.c (gdb_setup_readline): New function. Code moved from
210 _initialize_event_loop().
211 (_initialize_event_loop): Call gdb_setup_readline().
212
213 2002-10-02 Andrew Cagney <ac131313@redhat.com>
214
215 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
216 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
217 * gdbarch.h, gdbarch.c: Re-generate.
218
219 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
220
221 Fix PR gdb/778
222 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
223 before recursing.
224 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
225 of fill_in_vptr_fieldno.
226
227 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
228
229 * inferior.h (registers_info, stepi_command, nexti_command,
230 continue_command, interrupt_target_command): Export from infcmd.c.
231 * frame.h (args_info, selected_frame_level_changed_hook,
232 return_command): Export from stack.c.
233 * v850ice.c (stepi_command, nexti_command, continue_command): use
234 prototypes from inferior.h.
235 * tracepoint.c (registers_info, args_info, locals_info): Use
236 prototypes from frame.h and inferior.h.
237 * Makefile.in (mi-main.o): Add dependency on frame.h.
238
239 2002-10-02 Andrew Cagney <ac131313@redhat.com>
240
241 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
242 value in register 3 adjusted by ppc_gp0_regnum.
243
244 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
245
246 2002-10-02 Marko Mlinar <markom@opencores.org>
247
248 * MAINTAINERS: Add myself to the Write After Approval list.
249
250 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
251
252 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
253 of the section for the N64 ABI, fixed.
254
255 * config/mips/tm-irix6.h: Include solib.h.
256
257 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
258
259 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
260 GNU operators.
261
262 2002-10-01 Andrew Cagney <ac131313@redhat.com>
263
264 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
265 and that "mi0" syntax has been removed.
266
267 2002-09-30 David Carlton <carlton@math.stanford.edu>
268
269 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
270 * ppc-sysv-tdep.c: #include "gdb_string.h".
271 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
272 pacify GCC.
273
274 2002-10-01 Andrew Cagney <ac131313@redhat.com>
275
276 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
277 "vrsave"'s register number.
278
279 2002-09-30 Andrew Cagney <ac131313@redhat.com>
280
281 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
282 use frame_unwind_signed_register to obtain the PC.
283 (mips_frame_chain): Handle a generic dummy frame.
284 (mips_init_extra_frame_info): When a generic dummy frame, don't
285 re-compute the frame base.
286 (mips_pop_frame): Handle generic dummy frames.
287 (mips_gdbarch_init): When generic dummy frames, set
288 use_generic_dummy_frames, push_dummy_frame to
289 generic_push_dummy_frame, pc_in_call_dummy to
290 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
291 generic_save_dummy_frame_tos.
292
293 2002-09-30 Andrew Cagney <ac131313@redhat.com>
294
295 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
296 against TOP when TOP was explictly set.
297 (generic_push_dummy_frame): Set TOP to zero.
298
299 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
300
301 * event-loop.c (start_event_loop): Rename variable 'result' to
302 'gdb_result', to avoid conflicts with upcoming intepreters changes.
303
304 2002-09-30 Keith Seitz <keiths@redhat.com>
305
306 * gdb-events.sh (selected_thread_changed): New event.
307 * gdb-events.c: Regenerated.
308 * gdb-events.h: Regenerated.
309
310 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
311
312 * MAINTAINERS: Add self to Write After Approval list.
313
314 2002-09-30 Fernando Nasser <fnasser@redhat.com>
315
316 * disasm.c: New file.
317 * disasm.h: New file.
318 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
319 (compare_lines): Ditto.
320 (dump_insns): Ditto.
321 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
322 argument.
323 (do_assembly_only): Ditto.
324 (do_disassembly): Renamed to gdb_disassembly and moved to
325 disasm.c. Sdded uiout argument.
326 * Makefile.in: Add new files. Reorder SFILES list. Update
327 dependencies. Include libgdb.a later in the insight executable.
328
329 2002-09-29 Andrew Cagney <ac131313@redhat.com>
330
331 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
332 bfd/elf64-alpha-fbsd.c.
333
334 2002-09-29 Andrew Cagney <ac131313@redhat.com>
335
336 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
337 i386gnu-tdep.c.
338
339 2002-09-29 Andrew Cagney <ac131313@redhat.com>
340
341 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
342 __FUNCTION__.
343 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
344 function name.
345 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
346 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
347 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
348 (S_msg_sig_post_reply): Ditto.
349
350 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
351
352 * sh-tdep.c (sh_use_struct_convention): Use definition according
353 to ABI.
354 (sh_push_arguments): Store in register with correct endianess.
355 (sh_default_store_return_value): Ditto.
356 (sh_gdbarch_init): Set sizeof long double to 8.
357
358 2002-09-27 Mark Kettenis <kettenis@gnu.org>
359
360 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
361 Fix some whitespace problems.
362
363 2002-09-27 David Carlton <carlton@math.stanford.edu>
364
365 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
366 (mcore-tdep.o): Ditto.
367 (ns32k-tdep.o): Ditto.
368 (ns32knbsd-tdep.o): Ditto.
369 (sh3-rom.o): Ditto.
370 (vax-tdep.o): Ditto.
371 * cris-tdep.c: #include "gdb_string.h"
372 * mcore-tdep.c: Ditto.
373 * ns32k-tdep.c: Ditto.
374 * ns32knbsd-tdep.c: Ditto.
375 * sh3-rom.c: Ditto.
376 * vax-tdep.c: Ditto.
377
378 2002-09-27 David Carlton <carlton@math.stanford.edu>
379
380 * config/djgpp/fnchange.lst: Add entries for
381 gdb/testsuite/gdb.c++/m-static files.
382
383 2002-09-27 Jim Wilson <wilson@redhat.com>
384
385 * MAINTAINERS: Add myself to the Write After Approval list.
386
387 2002-09-26 Martin M. Hunt <hunt@redhat.com>
388
389 * mips-tdep.c (find_proc_desc): Initialize startaddr.
390
391
392 2002-09-26 Andrew Cagney <ac131313@redhat.com>
393
394 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
395 frame.
396
397 2002-09-26 Andrew Cagney <ac131313@redhat.com>
398
399 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
400 (rs6000_struct_return_address): Delete variable.
401 (rs6000_store_struct_return): Update.
402 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
403 deprecated_extract_struct_value_address.
404 (rs6000_frame_align): New function.
405 (rs6000_gdbarch_init): Set frame_align.
406
407 2002-09-26 Andrew Cagney <ac131313@redhat.com>
408
409 From Grace Sainsbury <graces@redhat.com>:
410 * Makefile.in (gdbtk-main.o): New target.
411 (gdb.o): New target.
412 (main_h): Define.
413 (main.o): Update dependencies.
414 (gdb$(EXEEXT)): Add gdb.o.
415 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
416 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
417 (SUBDIR_GDBTK_CLEAN): Set.
418 (install-gdbtk): Install the insight binary.
419 (uninstall-gdbtk): New target.
420 (all-gdbtk, clean-gdbtk): New rule.
421 * top.c (use_windows): Default to zero.
422 * main.c: Include "main.h".
423 (main): Delete.
424 (struct captured_main_args): Delete.
425 (gdb_main): New function.
426 * main.h: New file.
427 * gdb.c: New File.
428
429 2002-09-25 Andrew Cagney <cagney@redhat.com>
430
431 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
432 (frame_map_regnum_to_name): New function.
433 (frame_map_name_to_regnum): New function.
434 * frame.h (frame_map_name_to_regnum): Declare.
435 (frame_map_regnum_to_name): Declare.
436 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
437 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
438 * parse.c: Do not include "builtin-regs.h".
439 (target_map_name_to_register): Delete function.
440 (write_dollar_variable): Use frame_map_name_to_regnum.
441 * parser-defs.h (target_map_name_to_register): Delete declaration.
442 * expprint.c: Include "frame.h".
443 (print_subexp): Use frame_map_regnum_to_name.
444 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
445 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
446
447 2002-09-25 Andrew Cagney <ac131313@redhat.com>
448
449 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
450 wasn't saved, and the next innermost frame is a dummy, return the
451 dummy frame's link register.
452
453 2002-09-24 Jim Blandy <jimb@redhat.com>
454
455 Fix from Paul Breed:
456 * main.c (captured_main): Add a `break' after the case for 'b'.
457
458 2002-09-24 Keith Seitz <keiths@redhat.com>
459
460 * varobj.c (c_type_of_child): Use get_target_type instead
461 of TYPE_TARGET_TYPE.
462
463 2002-09-22 Fernando Nasser <fnasser@redhat.com>
464
465 * source.c (get_current_or_default_source_symtab_and_line): Remove
466 function.
467 (set_default_source_symtab_and_line): New function. Attempts to
468 determine a source file to list lines from if one is not currently
469 defined.
470 (get_current_source_symtab_and_line): Initialize sal.pc and
471 sal.end fields.
472 (set_current_source_symtab_and_line): Mark argument as const.
473 * source.h: Update declarations and comments.
474 * linespec.c (decode_line_1): Replace call to removed routine above.
475 * stack.c (print_frame_info_base): Ditto.
476 * cli/cli-cmds.c (edit_command): Ditto.
477 (list_command): Ditto.
478
479 2002-09-22 Fernando Nasser <fnasser@redhat.com>
480
481 * source.c (get_current_or_default_source_symtab_and_line): Initialize
482 sal.pc and sal.end fields.
483 (get_current_or_default_source_symtab_and_line): Ditto.
484 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
485 so we do not cause a new source symtab to be searched for (reverting an
486 unintentional change from the 2002-09-20 patch).
487 * scm-lang.c (scm_unpac): Ditto.
488
489 2002-09-21 Andrew Cagney <cagney@redhat.com>
490
491 * complaints.c (symfile_explanations): Remove new-line from
492 ``isolated_message''.
493 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
494 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
495
496 2002-09-20 Nick Clifton <nickc@redhat.com>
497
498 * NEWS: Announce that V850EA ISA is no longer supported.
499 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
500
501 2002-09-20 David Carlton <carlton@math.stanford.edu>
502
503 * Makefile.in (c-lang.o): Correct dependencies.
504 (utils.o): Gather dependencies.
505 (charset.o): Move.
506 * c-lang.c: #include "gdb_string.h"
507
508 2002-09-20 Fernando Nasser <fnasser@redhat.com>
509
510 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
511 * cli/cli-cmds.c (list_command): New function. Implements the new
512 cli edit command.
513 (_init_cli_cmds): Add new command definition.
514 * gdb.1: Document edit command.
515 * doc/gdb.texinfo: Document edit command.
516
517 2002-09-20 Fernando Nasser <fnasser@redhat.com>
518
519 * source.c: Make global variables current_source_symtab and
520 current_source_line static.
521 (list_command): Moved to cli/cli-cmds.c.
522 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
523 (get_first_line_listed): New accessor function.
524 (get_lines_to_list): New accessor function.
525 (get_current_source_symtab_and_line): New function. Retrieves the
526 position in the source code that we consider current.
527 (get_current_or_default_source_symtab_and_line): New function.
528 Like the above but attempts to determine a default position if one
529 is not currently defined.
530 (set_current_source_symtab_and_line): New function. Sets the source
531 code position considered current and returns the previously set one.
532 (clear_current_source_symtab_and_line): Reset stored information about
533 a current source line.
534 (_initialize_source): Remove registration for the "list" command and
535 its alias.
536 * source.h: Add declarations for the new functions above.
537 * symtab.h: Remove declarations for the global variables mentioned
538 above.
539 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
540 obtain current source line.
541 * linespec.c (decode_line_1): Ditto.
542 * macroscope.c (default_macro_scope): Ditto.
543 * scm-lang.c (scm_unpac): Ditto.
544 * stack.c (print_frame_info_base): Ditto.
545 * symfile.c (clear_symtab_users): Ditto.
546 * symtab.c (decode_line_spec): Ditto.
547 * cli/cli-cmds.c (list_command): Moved here from source.c.
548 (ambiguous_line_spec): Moved here from source.c.
549 (_init_cli_cmds): Add definition for "list" and its alias.
550 * Makefile.in: Update dependencies.
551
552 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
553
554 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
555 with what gcc thinks is correct.
556
557 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
558
559 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
560 multiple register push instruction.
561
562 2002-09-19 Jim Blandy <jimb@redhat.com>
563
564 Add support for distinct host and target character sets.
565 * charset.c, charset.h: New files.
566 * c-exp.y: #include "charset.h".
567 (yylex): Convert character and string literals to the target
568 character set, before returning them as the semantic value of the
569 token.
570 * c-lang.c: #include "charset.h".
571 (c_emit_char): Use charset-specific methods to recognize
572 characters with backslash escape forms, to decide which characters
573 to print literally and which to print using numeric escape
574 sequences, and to convert target characters to host characters
575 before printing.
576 * utils.c: #include "charset.h".
577 (no_control_char_error): New function.
578 (parse_escape): Use charset-specific methods to recognize
579 backslash escapes, parse `control character' notation, and convert
580 characters from the host character set to the target character set.
581 * configure.in: Set the default host character set.
582 Check where to find iconv, and what its argument types might be.
583 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
584 * Makefile.in (SFILES): List charset.c.
585 (COMMON_OBS): List charset.o.
586 (charset.o): New rule.
587 (charset_h): New header dependency variable.
588 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
589 (LIBICONV): New variable, set by configure.
590 (CLIBS): Include $(LIBICONV) here.
591 * aclocal.m4, config.in, configure: Regenerated.
592
593 2002-09-19 Joel Brobecker <brobecker@gnat.com>
594
595 * ada-exp.y: Add missing semicolons to end rules. Fixes a
596 bison 1.35 warning.
597
598 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
599
600 * gdb_mbuild.sh: New file.
601
602 2002-09-19 Andrew Cagney <ac131313@redhat.com>
603
604 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
605
606 2002-09-18 Andrew Cagney <ac131313@redhat.com>
607
608 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
609 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
610 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
611 valops.c, value.h: Revert previous change.
612
613 2002-09-18 Michael Snyder <msnyder@redhat.com>
614
615 Preliminary support for Objective-C:
616 * defs.h (language_objc): New enum value.
617 (puts_filtered_tabular): Declaration only, exported from utils.c.
618 (skip_quoted): Delete, declared in completer.h.
619 * c-exp.y: Include completer.h.
620 * p-exp.y: Ditto.
621 * jv-exp.y: Ditto.
622 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
623 New operator enum values.
624 * language.h (CAST_IS_CONVERSION): Test for language_objc.
625 * language.c (binop_result_type): Handle language_objc case.
626 (integral_type, character_type, string_type, boolean_type,
627 structured_type, binop_type_check): Ditto.
628 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
629 (struct objc_specific): Add to general_symbol_info.
630 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
631 (SYMBOL_DEMANGLED_NAME): Handle objc case.
632 * parser-defs.h (struct objc_class_str): New struct type.
633 (start_msglist, end_msglist, add_msglist): Declaration only,
634 exported from objc-lang.c.
635 * value.h (value_of_local, value_nsstring,
636 call_function_by_hand_expecting_type): Exported from valops.c.
637 * valops.c (find_function_addr): Export.
638 (call_function_by_hand_expecting_type): New function.
639 (value_of_local): New function.
640 * symfile.c (init_filename_language_table): Add ".m" extension
641 for Objective-C.
642 * utils.c (puts_filtered_tabular): New function.
643 (fprintf_symbol_filtered): Add objc demangling support (disabled).
644 (set/show demangle): Extend help-string to refer to ObjC.
645 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
646 * stabsread.c (symbol_reference_defined): Objective-C symbols
647 may contain colons: make allowances when scanning stabs strings
648 for colons.
649 (objc_find_colon): New function.
650 * printcmd.c (address_info): If language == objc then print
651 "self" instead of "this".
652 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
653 OP_NSSTRING, and OP_SELF.
654 (prefixify_subexp): Ditto.
655 * source.c (print_source_lines): Mention objc in comment.
656 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
657 method names.
658
659 2002-09-18 Andrew Cagney <ac131313@redhat.com>
660
661 * complaints.h: Update copyright.
662 (struct complaints): Declare.
663 (struct complaint): Make `message' constant.
664 (internal_complaint): Declare.
665 (complaint): Declare.
666 (complaint_root): Delete declaration.
667 (symfile_complaints): Delete declaration.
668 (struct complaints): Add opaque declaration.
669 (clear_complaints): Add a complaints parameter.
670 * complaints.c: Update copyright.
671 (enum complaint_series): Define.
672 (complaint_root): Delete.
673 (struct complaints): Define.
674 (complaint_sentinel, symfile_complaint_book): New variables.
675 (symfile_explanations, symfile_complaints): New variables.
676 New variables.
677 (get_complaints): New function.
678 (vcomplaint): New function.
679 (complaint): New function.
680 (internal_complaint): New function.
681 (complain): Call vcomplain with symfile_complaint.
682 (clear_complaints): Rewrite.
683 (_initialize_complaints): Use add_setshow_command.
684 * Makefile.in (complaints.o): Update dependencies.
685 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
686 to call to clear_complaints.
687 (new_symfile_objfile, reread_symbols): Ditto.
688 (oldsyms_complaint): Delete.
689 (empty_symtab_complaint, unknown_option_complaint): Delete.
690 (free_named_symtabs): Use complaint instead of complain.
691
692 2002-09-18 Michael Snyder <msnyder@redhat.com>
693
694 Contributed by Apple Computer, Inc. Merged with current sources
695 by Adam Fedor <fedor@doc.com> [cagney].
696
697 * objc-lang.c: First clean-up round: comments, indentation.
698 * objc-lang.h: Ditto.
699 * objc-lang.y: Ditto.
700
701 2002-09-18 Andrew Cagney <ac131313@redhat.com>
702
703 * maint.c (maintenance_internal_error): Print the parameter as the
704 error message.
705 (maintenance_internal_warning): New function.
706 (_initialize_maint_cmds): Add command `maint internal-warning'.
707
708 * defs.h (internal_warning, internal_vwarning): Declare.
709 * utils.c (struct internal_problem): Define.
710 (internal_vproblem): New function.
711 (internal_warning): New function.
712 (internal_vwarning): New function.
713 (internal_warning_problem, internal_error_problem): New variables.
714 (internal_verror): Just call internal_vproblem.
715
716 2002-09-18 Michael Snyder <msnyder@redhat.com>
717
718 * objc-lang.c: New file, support for Objective-C.
719 Preliminary check-in, not yet integrated into gdb.
720 * objc-lang.h: New file.
721 * objc-exp.y: New file.
722
723 2002-09-18 Andrew Cagney <ac131313@redhat.com>
724
725 * infrun.c (signal_stop_update): Convert definition to ISO C.
726 (signal_print_update): Ditto.
727 (signal_pass_update): Ditto.
728 * inflow.c (terminal_save_ours): Ditto.
729
730 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
731 comments.
732
733 * config/djgpp/fnchange.lst: Handle name clashes between
734 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
735 bfd/coff-tic80.c.
736
737 * i386-linux-tdep.h: Fix tipo.
738
739 2002-09-18 Adam Fedor <fedor@gnu.org>
740
741 * MAINTAINERS: Add myself to the Write After Approval list.
742
743 2002-09-18 Jim Blandy <jimb@redhat.com>
744
745 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
746 texthigh and textlow to reader-specific structs caused
747 objfile_relocate to miss them. This is fixable, but the work that
748 the change was supposed to prepare GDB for never got done anyway.
749
750 2002-09-18 David Carlton <carlton@math.stanford.edu>
751
752 * MAINTAINERS: Alphabetize Write After Approval list.
753
754 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
755
756 Fix PR gdb/709
757 * values.c (value_static_field): Call read_var_value.
758
759 2002-09-18 Andrew Cagney <ac131313@redhat.com>
760
761 * valops.c (hand_function_call): Align the initial stack pointer
762 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
763 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
764 return value.
765 * mips-tdep.c (mips_frame_align): New function.
766 (mips_gdbarch_init): Set frame_align.
767 * gdbarch.sh (FRAME_ALIGN): New method.
768 * gdbarch.h, gdbarch.c: Re-generate.
769
770 2002-09-18 Michal Ludvig <mludvig@suse.cz>
771
772 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
773 registers.
774
775 2002-09-17 Andrew Cagney <ac131313@redhat.com>
776
777 * NEWS: Mention that MIPS $fp behavior changed.
778 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
779 reference to FP_REGNUM.
780 (mipsnbsd_cannot_store_register): Ditto.
781 * mips-linux-nat.c: Update copyright.
782 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
783 (mips_linux_cannot_store_register): Ditto.
784 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
785 * config/mips/tm-mips.h: Update copyright.
786 (FP_REGNUM): Delete macro.
787 (MIPS_REGISTER_NAMES): Replace "fp" with "".
788 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
789 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
790 (mips_r3041_reg_names, mips_r3051_reg_names)
791 (mips_r3081_reg_names): Replace "fp" with "".
792 Fix PR gdb/480.
793
794 2002-09-17 Theodore A. Roth <troth@verinet.com>
795
796 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
797 generic_read_register_dummy() (PR gdb/703).
798 (avr_push_return_address): #if 0 out unused vars.
799 (avr_gdbarch_init): Enable use of avr_push_return_address().
800
801 2002-09-17 Michael Snyder <msnyder@redhat.com>
802
803 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
804 RTE will take care of it.
805
806 2002-09-17 Andrew Cagney <ac131313@redhat.com>
807
808 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
809 invalid, return SP_REGNUM.
810
811 2002-09-17 Michael Snyder <msnyder@redhat.com>
812
813 * mips-tdep.c (mips_pop_frame): Read saved values of floating
814 point registers without sign extension.
815
816 2002-09-17 Andrew Cagney <cagney@redhat.com>
817
818 * blockframe.c (deprecated_read_register_dummy): Rename
819 generic_read_register_dummy.
820 * frame.c (frame_unwind_signed_register): New function.
821 (frame_unwind_unsigned_register): New function.
822 * frame.h (frame_unwind_signed_register): Declare.
823 (frame_unwind_unsigned_register): Declare.
824 (deprecated_read_register_dummy): Rename
825 generic_read_register_dummy.
826
827 * h8300-tdep.c (h8300_frame_chain): Update.
828 (h8300_frame_saved_pc): Update.
829 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
830 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
831 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
832 (s390_frame_chain): Update.
833 * v850-tdep.c (v850_find_callers_reg): Update.
834 (v850_frame_saved_pc): Update.
835 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
836 (m32r_find_callers_reg): Update.
837 (m32r_frame_saved_pc): Update.
838 * sh-tdep.c (sh_find_callers_reg): Update.
839 (sh64_get_saved_pr): Update.
840 (sh_init_extra_frame_info): Update.
841 (sh_init_extra_frame_info): Update.
842 (sh64_init_extra_frame_info): Update.
843 (sh64_init_extra_frame_info): Update.
844 * mcore-tdep.c (mcore_find_callers_reg): Update.
845 (mcore_frame_saved_pc): Update.
846 (mcore_init_extra_frame_info): Update.
847 * i386-tdep.c (i386_frame_saved_pc): Update.
848 * ia64-tdep.c (ia64_frame_saved_pc): Update.
849 (ia64_init_extra_frame_info): Update.
850 (ia64_init_extra_frame_info): Update.
851 * d10v-tdep.c (d10v_frame_saved_pc): Update.
852 * cris-tdep.c (cris_init_extra_frame_info): Update.
853 * avr-tdep.c (avr_frame_chain): Update.
854 (avr_init_extra_frame_info): Update.
855 (avr_frame_saved_pc): Update.
856 * arm-tdep.c (arm_find_callers_reg): Update.
857 (arm_init_extra_frame_info): Update.
858 (arm_frame_saved_pc): Update.
859
860 2002-09-17 Tom Tromey <tromey@redhat.com>
861
862 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
863 is "'".
864
865 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
866
867 * MAINTAINERS: Remove "non multi-arched" text from h8300.
868 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
869 NEXT_PROLOGUE_INSN.
870 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
871 NEXT_PROLOGUE_INSN.
872
873 2002-09-16 Joel Brobecker <brobecker@gnat.com>
874
875 * osfsolib.c: Remove file, replaced by solib-osf.c.
876 * Makefile.in: Remove compilation rules for osfsolib.c.
877
878 2002-09-16 David Carlton <carlton@math.stanford.edu>
879
880 * cp-valprint.c (cp_print_class_method): Correct args to
881 check_stub_method_group.
882
883 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
884
885 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
886 `set architecture'. Unify naming convention of functions.
887 (h8300_skip_prologue): Improve prologue analysis.
888 (h8300_push_arguments): Rewritten to more closely match GCC's
889 bizarre argument-passing behavior, along with the comment describing
890 said behavior.
891 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
892 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
893 sim, remote-e7000.c, remote-hms.c and remote.c
894
895 2002-09-15 Mark Kettenis <kettenis@gnu.org>
896
897 * i386-tdep.c (gdb_print_insn_i386): Removed.
898 (i386_print_insn): New function.
899 (i386_gdbarch_init): Set print_insn to i386_print_insns.
900 (_initialize_i386_tdep): Don't initialize tm_print_insn and
901 tm_print_insn_info.
902
903 2002-09-14 Mark Kettenis <kettenis@gnu.org>
904
905 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
906 zero.
907
908 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
909
910 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
911 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
912 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
913
914 2002-09-13 Christopher Faylor <cgf@redhat.com>
915
916 * win32-nat.c (child_create_inferior): Honor 'tty' command.
917
918 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
919
920 * gdbtypes.c (check_stub_method): Make static.
921 (check_stub_method_group): New function.
922 * gdbtypes.h: Update prototypes.
923 * cp-support.c: New file.
924 * cp-support.h: New file.
925
926 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
927 (update_method_name_from_physname): New function.
928 (read_member_functions): Correct method names for operators
929 and v3 constructors/destructors. Separate v2 constructors and
930 destructors.
931 * Makefile.in (stabsread.o): Update dependencies.
932 (SFILES): Add cp-support.c.
933 (COMMON_OBS): Add cp-support.o.
934 (cp_support_h, cp-support.o): Add.
935
936 * cp-valprint.c (cp_print_class_method): Call
937 check_stub_method_group instead of check_stub_method. Remove
938 extraneous QUITs.
939 * p-valprint.c (pascal_object_print_class_method): Likewise.
940 * valops.c (search_struct_method): Likewise.
941 (find_method_list, value_struct_elt_for_reference): Likewise.
942
943 2002-09-13 Andrew Cagney <cagney@redhat.com>
944
945 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
946 * gdbarch.h, gdbarch.c: Regenerate.
947
948 2002-09-13 Andrew Cagney <ac131313@redhat.com>
949
950 * frame.c (find_saved_register): Delete function.
951 * frame.h (find_saved_register): Delete declaration.
952 Fix PR gdb/631.
953
954 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
955
956 * mips-tdep.c (read_next_frame_reg): Re-hack using
957 frame_register_unwind.
958
959 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
960
961 * mips-tdep.c (mips_get_saved_register): Re-hack using
962 frame_register_unwind.
963
964 2002-09-12 Joel Brobecker <brobecker@gnat.com>
965
966 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
967 vector. Will be useful for Interix.
968 * gdbarch.h, gdbarch.c: Regenerate.
969
970 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
971 name of the malloc function by NAME_OF_MALLOC.
972
973 2002-09-12 Joel Brobecker <brobecker@gnat.com>
974
975 * value.h (find_function_in_inferior): Add const keyword to
976 one of the parameters. Allows us to invoke this function with
977 a const char *.
978 * valops.c (find_function_in_inferior): Likewise.
979
980 2002-09-12 Joel Brobecker <brobecker@gnat.com>
981
982 * exec.c (xfer_memory): Fix compilation warning with old versions
983 of GCC.
984 * tracepoint.c (trace_find_tracepoint_command): Likewise.
985
986 2002-09-12 David Carlton <carlton@math.stanford.edu>
987
988 * symtab.h: Run through gdb_indent.h.
989 Add 2002 to Copyright year list.
990
991 2002-09-12 Alan Modra <amodra@bigpond.net.au>
992
993 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
994 mach constants.
995 * MAINTAINERS: Add myself to write after approval list.
996
997 2002-09-11 J. Brobecker <brobecker@gnat.com>
998
999 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1000
1001 2002-09-11 J. Brobecker <brobecker@gnat.com>
1002
1003 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1004 Interix.
1005
1006 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1007
1008 * procfs.c (do_detach): Clear current signal, not just fault.
1009 Corrects problem with breakpoint trap signal leaking to detached
1010 process on Tru64.
1011
1012 2002-09-10 Michael Snyder <msnyder@redhat.com>
1013
1014 * buildsym.c (finish_block): Protect against null pointer.
1015
1016 2002-09-10 Andrew Cagney <cagney@redhat.com>
1017
1018 * infcmd.c (default_print_registers_info): Send all output to
1019 ``file'' instead of ``gdb_stdout''.
1020
1021 2002-09-10 Michael Snyder <msnyder@redhat.com>
1022
1023 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1024 LONGEST, and use signed register read (addresses are sign-
1025 extended for mips).
1026
1027 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1028
1029 * event-loop.c (gdb_do_one_event): Make public.
1030 * event-loop.h (gdb_do_one_event): Declare.
1031
1032 2002-09-10 Jeff Law <law@redhat.com>
1033
1034 * infttrace.c (child_resume): Simplify and rework to avoid
1035 TT_PROC_CONTINUE.
1036
1037 2002-09-09 Fred Fish <fnf@intrinsity.com>
1038
1039 * printcmd.c (print_scalar_formatted): "len" is the number of
1040 target bytes, NOT the number of target bits.
1041
1042 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1043
1044 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1045 * top.c (init_main): Set rl_terminal_name.
1046
1047 2002-09-08 Aidan Skinner <aidan@velvet.net>
1048
1049 * ada-lang.c (ada_array_bound, ada_type_match,
1050 _initialize_ada_language): Fix K&R definitions.
1051 * ada-tasks.c (get_current_task): Fix K&R definitions.
1052 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1053
1054 2002-09-07 Christopher Faylor <cgf@redhat.com>
1055
1056 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1057 Add XP.
1058
1059 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1060
1061 * i386-tdep.c (i386_register_virtual_type,
1062 i386_register_convertible, i386_register_convert_to_virtual,
1063 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1064 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1065 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1066 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1067 Don't set push_arguments twice.
1068
1069 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1070 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1071 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1072 sigtramp_end to NULL.
1073 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1074 defines.
1075 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1076
1077 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1078 whitespace.
1079
1080 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1081 * gdbarch.h, gdbarch.c: Re-generate.
1082 * blockframe.c (find_pc_sect_partial_function): Convert to use
1083 SIGTRAMP_START_P predicate.
1084
1085 2002-09-05 Michael Snyder <msnyder@redhat.com>
1086
1087 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1088 generic_dummy_frame method and old method. Also distinguish
1089 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1090 (arm_extract_return_value): Use new regcache method.
1091
1092 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1093 adjustment that doesn't conform to the ABI.
1094 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1095 saved regcache, not from current regcache.
1096
1097 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1098
1099 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1100 * README: Update.
1101
1102 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1103
1104 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1105 if arm_apcs_32 is false.
1106
1107 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1108
1109 GDB 5.3 branch created.
1110
1111 2002-09-03 Theodore A. Roth <troth@verinet.com>
1112
1113 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1114 generic_unwind_get_saved_register.
1115
1116 2002-09-03 David Carlton <carlton@math.stanford.edu>
1117
1118 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1119 argument (PR gdb/653). Update call to smash_to_method_type.
1120 (read_structure_scope): Update call to dwarf2_add_member_fn.
1121
1122 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1123
1124 * x86-64-linux-tdep.c: Include gdb_string.h
1125 * x86-64-linux-nat.c: Ditto.
1126
1127 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1128
1129 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1130 when YYDEBUG is set to 1.
1131 * c-exp.y: Likewise.
1132 * f-exp.y: Likewise.
1133 * jv-exp.y: Likewise.
1134 * m2-exp.y: Likewise.
1135 * p-exp.y: Likewise.
1136
1137 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1138
1139 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1140 dependency list.
1141 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1142 solib_svr4_fetch_link_map_offsets to
1143 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1144 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1145 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1146 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1147 solib-svr4.o, and solib-legacy.o.
1148 * config/i386/tm-nbsd.h: Include solib.h.
1149
1150 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1151
1152 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1153 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1154 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1155 comment noting that this needs its own target configuration.
1156 * config/i386/nbsd.mt: New file.
1157 * config/i386/nbsdaout.mt: Remove.
1158 * config/i386/nbsdelf.mt: Ditto.
1159 * config/i386/tm-nbsdaout.h: Ditto.
1160
1161 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1162
1163 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1164 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1165 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1166 tdep->sigtramp_end.
1167 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1168 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1169 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1170
1171 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1172
1173 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1174 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1175 * i386-tdep.h (i386bsd_init_abi): New prototype.
1176 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1177 function declaration.
1178 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1179 for NetBSD-a.out or NetBSD-ELF.
1180 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1181 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1182 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1183 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1184 and nbsd-tdep.h.
1185 (i386nbsd_pc_in_sigtramp): New function.
1186 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1187 i386nbsd_pc_in_sigtramp.
1188 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1189 and i386nbsdelf_init_abi OS ABI handlers.
1190 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1191 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1192
1193 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1194
1195 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1196 registers if the target really has them.
1197
1198 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1199
1200 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1201 than nbsd-tdep.h.
1202
1203 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1204
1205 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1206 list.
1207 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1208 (alphanbsd_skip_sigtramp_frame): New functions.
1209 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1210 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1211 to alphanbsd_sigcontext_addr.
1212
1213 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1214
1215 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1216 list.
1217 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1218 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1219 nbsd_pc_in_sigtramp.
1220 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1221 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1222 * nbsd-tdep.c: Include gdb_string.h.
1223 (nbsd_pc_in_sigtramp): New function.
1224 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1225 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1226 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1227 ppcnbsd_pc_in_sigtramp.
1228 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1229 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1230 shnbsd_pc_in_sigtramp.
1231 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1232 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1233 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1234
1235 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1236
1237 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1238 watchpoints to NULL.
1239 (insert_breakpoints): set val field of watchpoints if NULL.
1240
1241
1242 2002-08-29 Jim Blandy <jimb@redhat.com>
1243
1244 * symtab.c (lookup_symbol_aux): In the cases where we find a
1245 minimal symbol of an appropriate name and use its address to
1246 select a symtab to read and search, use `name' (as passed to us)
1247 as the demangled name when searching the symtab's global and
1248 static blocks, not the minsym's name.
1249
1250 2002-08-29 Keith Seitz <keiths@redhat.com>
1251
1252 * stack.c (print_frame_info_base): Always set current_source_symtab
1253 and current_source_line.
1254
1255 2002-08-29 Donn Terry <donnte@microsoft.com>
1256
1257 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1258
1259 2002-08-28 Keith Seitz <keiths@redhat.com>
1260
1261 * stack.c (select_frame): Add FIXME concerning selected-frame
1262 events.
1263 (select_frame_command): Send selected-frame-level-changed
1264 event notification, but only if the level actually changed.
1265 (up_silently_base): Add selected-frame-level-changed event
1266 notification.
1267 (down_silently_base): Likewise.
1268
1269 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1270
1271 * Makefile.in: Update dependencies for all gdb/*.c files.
1272
1273 2002-08-27 Tom Tromey <tromey@redhat.com>
1274
1275 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1276 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1277 Update dependencies.
1278 * i387-tdep.c: Include gdb_string.h.
1279 * osabi.c: Likewise.
1280 * i386-linux-nat.c: Likewise.
1281 * lin-lwp.c: Likewise.
1282 * ax-gdb.c: Likewise.
1283 * signals/signals.c: Likewise.
1284 * jv-valprint.c: Likewise.
1285 * p-lang.c: Likewise.
1286 * c-valprint.c: Likewise.
1287 * cp-abi.c: Likewise.
1288
1289 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1290
1291 * cli/cli-script.h (copy_command_lines): Export.
1292 * breakpoint.c: Include cli/cli-script.h.
1293 * Makefile.in (breakpoint.o): Update dependencies.
1294
1295 2002-08-26 Michael Snyder <msnyder@redhat.com>
1296
1297 * breakpoint.c (insert_breakpoints): Protect all references
1298 to 'process_warning'. Shorten long lines.
1299
1300 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1301
1302 * cli/cli-script.c (copy_command_lines): New function.
1303 * defs.h (copy_command_lines): Export.
1304 * testsuite/gdb.base/commands.exp: New tests for commands
1305 attached to a temporary breakpoint, and for commands that
1306 delete the breakpoint they are attached to.
1307
1308 2002-08-26 Michael Snyder <msnyder@redhat.com>
1309
1310 * breakpoint.c (bpstat_stop_status): Instead of copying the
1311 pointer to the breakpoint commands struct, make a new copy
1312 of the struct and point to that.
1313 (bpstat_clear): Free the commands struct.
1314 (bpstat_clear_actions): Free the commands struct.
1315 (bpstat_do_actions): Free the command actions. Also execute
1316 the local cleanups, instead of deleting them.
1317 (delete_breakpoint): Leave the commands field of the bpstat
1318 chain alone -- it will be freed later.
1319
1320 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1321
1322 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1323 deleted in 2002-08-20 commit. This function is still used by
1324 ppc-linux-nat.c.
1325
1326 2002-08-26 Keith Seitz <keiths@redhat.com>
1327
1328 * gdb-events.sh: Add selected-frame-level-changed event.
1329 * gdb-events.c: Regenerated.
1330 * gdb-events.h: Regenerated.
1331
1332 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1333
1334 Fix PR gdb/393:
1335 * inflow.c (terminal_save_ours): New function to save terminal
1336 settings.
1337 * inferior.h (terminal_save_ours): Declare.
1338 * target.c (debug_to_terminal_save_ours): New function.
1339 (cleanup_target): Defaults to_terminal_save_ours.
1340 (update_current_target): Inherit to_terminal_save_ours.
1341 (setup_target_debug): Set to_terminal_save_ours.
1342 * target.h (target_terminal_save_ours): New to save terminal settings.
1343 (target_ops): New member to_terminal_save_ours.
1344 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1345 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1346 * inftarg.c (init_child_ops): Likewise.
1347 * m3-nat.c (init_m3_ops): Likewise.
1348 * procfs.c (init_procfs_ops): Likewise.
1349 * wince.c (init_child_ops): Likewise.
1350 * win32-nat.c (init_child_ops): Likewise.
1351 * sol-thread.c (init_sol_thread_ops): Likewise.
1352
1353 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1354
1355 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1356 use regcache_* functions.
1357 (i386_gdbarch_init): Set store_return_value instead of
1358 deprecated_store_return_value.
1359
1360 * regcache.c (regcache_raw_write_signed,
1361 regcache_raw_write_unsigned): New functions.
1362 * regcache.h (regcache_raw_write_signed,
1363 regcache_raw_write_unsigned): New prototypes.
1364
1365 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1366
1367 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1368 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1369 source file dependencies. Cleanup corresponding generator rules.
1370
1371 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1372
1373 * regcache.h (register_offset_hack): Declare.
1374 (regcache_cooked_read_using_offset_hack): Declare.
1375 (regcache_cooked_write_using_offset_hack): Declare.
1376
1377 * regcache.c (register_offset_hack): New function.
1378 (regcache_cooked_read_using_offset_hack): New function.
1379 (regcache_cooked_write_using_offset_hack): New function.
1380 (regcache_dump): Check that the registers, according to their
1381 offset, are packed hard against each other.
1382 (cooked_xfer_using_offset_hack): New function.
1383
1384 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1385
1386 * regcache.c (struct regcache_descr): Add field register_type.
1387 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1388 in as a parameter
1389 (init_regcache_descr): Initialize register_type. Pass the descr
1390 to init_legacy_regcache_descr. Use register_type instead of
1391 REGISTER_VIRTUAL_TYPE.
1392 (register_type): New function.
1393 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1394 * regcache.h (register_type): Declare.
1395
1396 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1397
1398 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1399 instead of deprecated_store_return_value. Fix fallout from
1400 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1401
1402 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1403
1404 * regcache.c (max_register_size): New function.
1405 (init_legacy_regcache_descr): Ensure that max_register_size is
1406 large enough for REGISTER_VIRTUAL_SIZE.
1407 * regcache.h (max_register_size): Declare.
1408
1409 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1410
1411 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1412 store_return_value.
1413 (e500_extract_return_value): Change type of valbuf pointer to
1414 void.
1415
1416 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1417
1418 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1419 workaround.
1420
1421 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1422 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1423 long long) to prevent compiler warning on 64-bit systems.
1424
1425 2002-08-23 Andrew Cagney <cagney@redhat.com>
1426
1427 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1428 (DEPRECATED_STORE_RETURN_VALUE): New method.
1429 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1430 * gdbarch.h, gdbarch.c: Re-generate.
1431
1432 * values.c (set_return_value): Pass current_regcache to
1433 STORE_RETURN_VALUE.
1434 * arch-utils.h (legacy_store_return_value): Declare.
1435 * arch-utils.c (legacy_store_return_value): New function.
1436 (legacy_extract_return_value): Update parameters.
1437
1438 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1439 STORE_RETURN_VALUE.
1440 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1441 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1442 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1443 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1444 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1445 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1446 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1447 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1448 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1449 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1450
1451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1452 * i386-tdep.c (i386_extract_return_value): Update.
1453 * arch-utils.c (legacy_extract_return_value): Update.
1454 * frv-tdep.c (frv_gdbarch_init): Update.
1455 * cris-tdep.c (cris_gdbarch_init): Update.
1456 * d10v-tdep.c (d10v_gdbarch_init): Update.
1457 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1458 * m68k-tdep.c (m68k_gdbarch_init): Update.
1459 * mcore-tdep.c (mcore_gdbarch_init): Update.
1460 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1461 * s390-tdep.c (s390_gdbarch_init): Update.
1462 * sparc-tdep.c (sparc_gdbarch_init): Update.
1463 * sh-tdep.c (sh_gdbarch_init): Update.
1464 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1465 * v850-tdep.c (v850_gdbarch_init): Update.
1466 * avr-tdep.c (avr_gdbarch_init): Update.
1467 * ia64-tdep.c (ia64_gdbarch_init): Update.
1468 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1469 * vax-tdep.c (vax_gdbarch_init): Update.
1470 * alpha-tdep.c (alpha_gdbarch_init): Update.
1471 * arm-tdep.c (arm_gdbarch_init): Update.
1472 * mips-tdep.c (mips_gdbarch_init): Update.
1473 * i386-tdep.c (i386_gdbarch_init): Update.
1474
1475 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1476
1477 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1478 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1479
1480 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1481
1482 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1483 problems.
1484
1485 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1486
1487 * infrun.c (handle_inferior_event): Move a comment outside of a
1488 function call, in order to avoid indent reformatting this part
1489 of the code in an unreadable way.
1490
1491 2002-08-23 Grace Sainsbury <graces@redhat.com>
1492
1493 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1494 when breakpoints fail. Move general breakpoint error messages to
1495 insert_breakpoints.
1496 * breakpoint.c (insert_breakpoints): Change warnings when
1497 breakpoints are nto inserted to specify the type. Remove call to
1498 memory_error when hardware breakpoints can't be inserted. Remove
1499 multiple calls to warning so all messages are sent to the user at
1500 once.
1501 (delete_breakpoints): Make insert error messsages more explicit.
1502
1503 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1504
1505 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1506 gdbserver/ChangeLog.
1507
1508 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1509
1510 * i386-tdep.c: Include "objfiles.h".
1511 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1512 skip_trampoline_code.
1513 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1514 (CPLUS_MARKER): Define to '.'.
1515
1516 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1517 member.
1518 (linux_corefile_thread_callback): Increase args->num_notes.
1519 (linux_make_note_section): Initialize thread_args.num_notes, and
1520 use it to determine whether notes for any threads were created.
1521
1522 2002-08-23 Donn Terry <donnte@microsoft.com>
1523
1524 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1525 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1526 and PCUNKILL.
1527 (write_with_trace): Conditionalize out the switch branch handling
1528 PCSHOLD if the corresponding macro is not defined. Likewise for
1529 PRSABORT and PRSTOP.
1530 This change will be needed by the Interix port.
1531
1532 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1533
1534 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1535 write_register wherever possible instead of manipulating the
1536 register bytes directly.
1537 Assign VALUE_CONTENTS to a variable and use that.
1538 The GPR numbers are now dependent on the architecture.
1539
1540 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1541
1542 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1543 ev_offset fields.
1544 (skip_prologue): Add support for BookE/e500 instructions.
1545 (e500_extract_return_value): New function.
1546 (frame_get_saved_regs): Add support for saving ev registers and
1547 pseudo gpr's.
1548 (e500_store_return_value): New function.
1549 (rs6000_gdbarch_init): Move up default intializations of
1550 deprecated_extract_return_value and store_return_value. Overwrite
1551 init of store_return_value with e500 specific version.
1552 Set extract_return_value for e500.
1553
1554 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1555
1556 * blockframe.c (generic_call_dummy_register_unwind): Use
1557 regcache_cooked_read to catch cases in which the variable is
1558 stored in a pseudo register.
1559
1560 2002-08-22 Andrew Cagney <cagney@redhat.com>
1561
1562 * NEWS: Mention that the i960 has been made obsolete.
1563 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1564 i960-tdep.c
1565 (remote-nrom.o): Obsolete target.
1566 (remote-nindy.o, i960-tdep.o): Ditto.
1567 * remote-nrom.c: Make file obsolete.
1568 * remote-nindy.c, remote-vx960.c: Ditto.
1569 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1570 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1571 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1572 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1573 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1574 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1575 i960-*-vxworks* obsolete.
1576 * MAINTAINERS: Note that the i960 is obsolete.
1577
1578 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1579
1580 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1581 detach to allow reinitialization.
1582
1583 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1584
1585 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1586 attempt).
1587
1588 2002-08-22 Jim Blandy <jimb@redhat.com>
1589
1590 * coffread.c (coff_symfile_read): Don't try to read the line
1591 number table from disk if the image file doesn't have a symbol
1592 table; we'll never actually look at the info anyway, and Windows
1593 ships DLL's with bogus file offsets for the line number data.
1594
1595 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1596
1597 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1598 an e500 executable.
1599
1600 2002-08-21 Michael Snyder <msnyder@redhat.com>
1601
1602 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1603 (MSYMBOL_SIZE): Replace macro with function.
1604 (DEFAULT_MIPS_TYPE): Delete unused macro.
1605 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1606 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1607
1608 2002-08-21 Jim Blandy <jimb@redhat.com>
1609
1610 * valops.c (value_cast): Simplify and correct logic for doing a
1611 static cast from a pointer to a base class to a pointer to a
1612 derived class.
1613
1614 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1615
1616 * infcmd.c (default_print_registers_info): Replace
1617 do_registers_info.
1618 (registers_info): Use gdbarch_print_registers_info instead of
1619 DO_REGISTERS_INFO.
1620 * inferior.h (default_print_registers_info): Replace
1621 do_registers_info.
1622 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1623 (DO_REGISTERS_INFO): Change to a predicate function.
1624 * gdbarch.h, gdbarch.c: Regenerate.
1625
1626 2002-08-21 Keith Seitz <keiths@redhat.com>
1627
1628 * gdb-events.sh: Add target-changed event.
1629 * gdb-events.c: Regenerated.
1630 * gdb-events.c: Regenerated.
1631 * valops.c (value_assign): Add target-changed event notification
1632 to inlval_register, lval_memory, and lval_reg_frame_relative.
1633
1634 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1635
1636 * NEWS: Add an entry regarding the improvement of the next/step
1637 operation on Alpha Tru64 multi-processor machines.
1638
1639 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1640
1641 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1642 directores.
1643 * Makefile.in: Update all _h macro definitions.
1644 * Makefile.in (install-gdbtk): Move to install section.
1645 (rdi-share/libangsd.a): Move to end of file.
1646
1647 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1648
1649 * frame.c (frame_register_unwind): When a register, set addrp to
1650 the register's byte.
1651
1652 2002-08-20 Michael Snyder <msnyder@redhat.com>
1653
1654 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1655 used locally, so move them from the target machine header to here.
1656 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1657 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1658 Make static.
1659 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1660
1661 2002-08-20 Andrew Cagney <cagney@redhat.com>
1662
1663 * NEWS: Mention that the Apollo line was made obsolete.
1664 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1665 m68*-hp-hpux* obsolete.
1666 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1667 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1668 * buildsym.c (make_blockvector): Make static.
1669 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1670 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1671 (ALLDEPFILES): Remove dstread.c.
1672 (dstread.o): Obsolete make rule.
1673 * dstread.c: Makefile obsolete.
1674 * dst.h: Ditto.
1675 * config/m68k/hp300hpux.mt: Ditto.
1676 * config/m68k/hp300hpux.mh: Ditto.
1677 * config/m68k/hp300bsd.mt: Ditto.
1678 * config/m68k/hp300bsd.mh: Ditto.
1679 * config/m68k/apollo68b.mt: Ditto.
1680 * config/m68k/apollo68v.mh: Ditto.
1681 * config/m68k/apollo68b.mh: Ditto.
1682
1683 2002-08-20 Michael Snyder <msnyder@redhat.com>
1684
1685 * mips-tdep.c (mips_in_return_stub): Make static.
1686 (mips_gdbarch_init): Set in_solib_return_trampoline.
1687 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1688
1689 2002-08-20 Michael Snyder <msnyder@redhat.com>
1690
1691 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1692 * gdbarch.c, gdbarch.h: Regenerate.
1693 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1694 Add.
1695 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1696
1697 2002-08-20 Michael Snyder <msnyder@redhat.com>
1698
1699 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1700 (mips_gdbarch_init): Set skip_trampoline_code,
1701 in_solib_call_trampoline.
1702 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1703 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1704
1705 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1706
1707 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1708
1709 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1710 vector type for ev registers.
1711 (e500_pseudo_register_read): New function.
1712 (e500_pseudo_register_write): New function.
1713 (e500_dwarf2_reg_to_regnum): New function.
1714 (PPC_UISA_NOFP_SPRS): New macro.
1715 (PPC_EV_REGS): New macro.
1716 (PPC_GPRS_PSEUDO_REGS): New macro.
1717 (registers_e500): New register set for e500.
1718 (variants): Add e500 variant.
1719 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1720 before setting architectural dependent variations. Initialize ev
1721 registers numbers. Add case for e500 architecture. Set the
1722 number of pseudo registers.
1723
1724 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1725
1726 * rs6000-tdep.c: Clean up comments.
1727
1728 2002-08-20 Andrew Cagney <cagney@redhat.com>
1729
1730 * h8300-tdep.c: Re-indent file.
1731
1732 2002-08-20 Jim Blandy <jimb@redhat.com>
1733
1734 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1735 default for this.
1736
1737 2002-08-20 Keith Seitz <keiths@redhat.com>
1738
1739 * breakpoints.c (watch_command_1): Use internal breakpoint
1740 when setting a watchpoint_scope breakpoint.
1741
1742 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1743
1744 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1745 (build_builtin_type_vec64i): Ditto.
1746 (build_builtin_type_vec128): Ditto.
1747 (build_builtin_type_vec128i): Ditto.
1748
1749 2002-08-19 Michael Snyder <msnyder@redhat.com>
1750
1751 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1752 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1753 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1754 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1755 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1756 CALL_DUMMY_ADDRESS): Delete.
1757 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1758 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1759 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1760 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1761 push_return_address.
1762 (mips_register_raw_size, mips_eabi_use_struct_convention,
1763 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1764 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1765 mips_init_extra_frame_info, mips_eabi_push_arguments,
1766 mips_n32n64_push_arguments, mips_push_return_address,
1767 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1768 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1769
1770 2002-08-19 Michael Snyder <msnyder@redhat.com>
1771
1772 * mips-tdep.c (mips_frame_num_args): New function.
1773 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1774 frame_saved_pc, frame_args_address, frame_locals_address,
1775 frame_num_args, and frame_args_skip.
1776 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1777 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1778 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1779 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1780
1781 2002-08-20 Michael Snyder <msnyder@redhat.com>
1782
1783 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1784 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1785 * mips-tdep.c (mips_store_struct_return): New function.
1786 (mips_extract_struct_value_address): New function.
1787 (mips_gdbarch_init): Set store_struct_return and
1788 extract_struct_value_address.
1789
1790 2002-08-20 David Carlton <carlton@math.stanford.edu>
1791
1792 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1793 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1794 (read_file_scope): Check that line_header is nonzero before
1795 decoding macro information.
1796
1797 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1798
1799 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1800 flag the general-purpose registers as floating-point on targets
1801 that don't support the floating-point registers.
1802
1803 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1804
1805 * rs6000-tdep.c (altivec_register_p): Delete.
1806 (rs6000_do_altivec_registers): Delete.
1807 (rs6000_altivec_registers_info): Delete.
1808 (rs6000_do_registers_info): Delete.
1809 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1810 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1811
1812 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1813
1814 * infcmd.c (do_registers_info): Print vector registers in hex
1815 format only.
1816 (print_vector_info): Check that printing registers
1817 makes sense.
1818 (print_float_info): Ditto.
1819
1820 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1821
1822 * mips-tdep.c (mips_gdbarch_init): Update.
1823 (mips_o32_extract_return_value): Rewrite.
1824 (mips_o32_store_return_value): Rewrite.
1825 (mips_o32_xfer_return_value): New function.
1826 (mips_xfer_register): Tweak debug print message. Allow for
1827 buf_offset when dumping the value transfered.
1828
1829 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1830
1831 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1832 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1833 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1834 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1835 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1836
1837 2002-08-14 Michael Snyder <msnyder@redhat.com>
1838
1839 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1840
1841 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1842
1843 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1844 register.
1845 (P): New macro to define a register as a pseudo register.
1846 (R, R4, R8, R16, FR32, R64, R0): Updated.
1847 (struct variant): Add new fields for number of pseudo registers
1848 and number of total registers.
1849 (tot_num_registers): New macro replacing....
1850 (num_registers): ...deleted macro.
1851 (num_registers): New function.
1852 (num_pseudo_registers): New function.
1853 (variants): Update all variants to intialize new fields correctly.
1854 Postpone initialization of number of pseudo regs and real regs.
1855 (init_variants): New function.
1856 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1857 registers offsets.
1858
1859 2002-08-19 David Carlton <carlton@math.stanford.edu>
1860
1861 * valops.c (search_struct_field): Change error message to treat
1862 return value of 0 from value_static_field as meaning that field is
1863 optimized out.
1864 (value_struct_elt_for_reference): Ditto.
1865 * values.c (value_static_field): Treat an unresolved location the
1866 same as a nonexistent symbol. Fix PR gdb/635.
1867 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1868 enclosed. Fix PR gdb/574.
1869 * MAINTAINERS: Add self to Write After Approval list.
1870
1871 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1872
1873 * mips-tdep.c (mips_xfer_register): New function.
1874 (mips_n32n64_extract_return_value): Rewrite.
1875 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1876 instead of deprecated_extract_return_value.
1877
1878 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1879
1880 * rs6000-tdep.c (TDEP): Delete macro.
1881 (branch_dest): Replace use of TDEP macro with its body.
1882 (rs6000_pop_frame): Ditto.
1883 (rs6000_push_arguments): Ditto.
1884 (rs6000_skip_trampoline_code): Ditto.
1885 (rs6000_frame_saved_pc): Ditto.
1886 (rs6000_frame_chain): Ditto.
1887 (rs6000_register_name): Ditto.
1888 (rs6000_register_byte): Ditto.
1889 (rs6000_register_raw_size): Ditto.
1890 (rs6000_register_virtual_type): Ditto.
1891 (rs6000_register_convertible): Ditto.
1892 (rs6000_convert_from_func_ptr_addr): Ditto.
1893
1894 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1895
1896 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1897 conditionally.
1898 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1899 MIPS_LINUX_JB_ELEMENT_SIZE.
1900 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1901 for MAX_REGISTER_RAW_SIZE arrays.
1902 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1903 MIPS_LINUX_JB_ELEMENT_SIZE.
1904
1905 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1906
1907 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1908
1909 2002-08-19 Aidan Skinner <aidan@velvet.net>
1910
1911 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1912 ada-valprint.c ada-tasks.c.
1913 (YYFILES): Add ada-exp.y.
1914 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1915 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1916 (ada-exp.tab.o): New target.
1917
1918 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1919
1920 * regcache.c (regcache_xfer_part): New function.
1921 (regcache_raw_read_part): New function.
1922 (regcache_raw_write_part): New function.
1923 (regcache_cooked_read_part): New function.
1924 (regcache_cooked_write_part): New function.
1925 * regcache.h (regcache_raw_read_part): Declare.
1926 (regcache_raw_write_part): Declare.
1927 (regcache_cooked_read_part): Declare.
1928 (regcache_cooked_write_part): Declare.
1929
1930 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1931
1932 * remote.c (remote_open_1): Add async_p.
1933 (remote_async_open_1): Delete.
1934 (open_remote_target): Delete.
1935 (remote_open, extended_remote_open): Update calls to remote_open_1.
1936 (remote_async_open, extended_remote_async_open): Call
1937 remote_open_1 instead of remote_async_open_1.
1938
1939 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1940
1941 * blockframe.c: Fix a few coding standard violations.
1942
1943 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1944
1945 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1946 here from ...
1947 * config/i386/tm-i386sco5.h: ... here. File removed.
1948 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1949
1950 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1951 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1952 (TM_FILE): Set to tm-i386.h.
1953 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1954 * config/i386/tm-i386v.h: Remove file.
1955 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1956 instead of "i386/tm-i386v.h".
1957 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1958 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1959 "i386/tm-i386v.h".
1960 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1961 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1962 "i386/tm-i386.h".
1963
1964 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1965
1966 * config/i386/nm-i386v.h: Add protection against
1967 multiple-inclusion.
1968 (i386_register_u_addr): Remove prototype.
1969 (register_u_addr): New prototype.
1970 (REGISTER_U_ADDR): Redefine accordingly.
1971 * i386v-nat.c: Improve several comments.
1972 (i386_register_u_addr): Change signature and rename to
1973 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1974 ubase variable.
1975
1976 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1977
1978 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1979 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1980 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1981 deprecated_extract_return_value.
1982 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1983 rename mips_o32o64_push_arguments.
1984 (mips_gdbarch_init): Update.
1985 (mips_extract_return_value): Delete.
1986 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1987 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1988 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1989 (mips_n32n64_extract_return_value): Clone
1990 mips_extract_return_value.
1991 (mips_store_return_value): Delete.
1992 (mips_o32_store_return_value): Clone mips_store_return_value.
1993 (mips_o64_store_return_value): Clone mips_store_return_value.
1994 (mips_eabi_store_return_value): Clone mips_store_return_value.
1995 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1996
1997 2002-08-18 Aidan Skinner <aidan@velvet.net>
1998
1999 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2000 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2001
2002 2002-08-18 Aidan Skinner <aidan@velvet.net>
2003
2004 * ada-lang.c: Run through gdb_indent.sh.
2005 * ada-lang.h: Run through gdb_indent.sh.
2006 * ada-tasks.c: Run through gdb_indent.sh.
2007 * ada-typeprint.c: Run through gdb_indent.sh.
2008 * ada-valprint.c: Run through gdb_indent.sh.
2009
2010 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2011
2012 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2013 ABI.
2014
2015 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2016
2017 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2018
2019 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2020 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2021
2022 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2023 write_register_gen instead of write_register_bytes.
2024
2025 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2026 i[3456]-*-osf1mk* configurations have been made obsolete.
2027 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2028 i[3456]86-*-osf1mk* hosts obsolete.
2029 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2030 targets obsolete.
2031 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2032 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2033 config/i386/i386m3.mt, config/i386/nm-m3.h,
2034 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2035 config/i386/i386mk.mh, config/i386/i386mk.mt,
2036 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2037 obsolete.
2038 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2039 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2040 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2041
2042 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2043
2044 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2045 (hppa_value_returned_from_stack): Declare.
2046 (hppa_extract_return_value): Declare.
2047 * config/pa/hppa.mt: New file.
2048 * configure.tgt: Recognize hppa*-*-*.
2049 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2050
2051 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2052
2053 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2054 comment.
2055
2056 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2057
2058 * top.c (gdb_rl_operate_and_get_next): Make sure
2059 operate-and-get-next functions correctly even when the history
2060 list is completely filled.
2061
2062 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2063
2064 * MAINTAINERS (Target Instruction Set Architectures): Rename
2065 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2066 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2067 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2068 already listed under Host/Native.
2069
2070 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2071 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2072 mips*-*-*.
2073
2074 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2075
2076 * config/ia64/ia64.mt: New file.
2077 * config/alpha/alpha.mt: New file.
2078 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2079 ia64-linux-gnu. Mention that ia64-elf is broken.
2080 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2081
2082 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2083
2084 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2085 generic_func_frame_valid instead of func_frame_valid.
2086
2087 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2088
2089 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2090 procfs appears to be broken when debugging on multi-processor
2091 machines. So enable software single stepping in order to avoid
2092 using the procfs interface to do next/step operations, using
2093 internal breakpoints instead.
2094
2095 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2096 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2097 make this pc address equal to the value it would have if the
2098 system stepping capability was used. Also set a new flag used
2099 to ensure that we don't readjust the PC one more time later.
2100
2101 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2102 address by DECR_PC_AFTER_BREAK when software single step is
2103 in use for this architecture, as this has already been taken
2104 care of in handle_inferior_event().
2105
2106 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2107
2108 * infrun.c (handle_inferior_event): Minor reformatting, to make
2109 a rather long condition expression easier to read.
2110
2111 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2112
2113 * Makefile.in (gdbtk.o): Move to end of file.
2114 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2115 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2116 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2117 (gdbtk-wrapper.o, gdbres.o): Ditto.
2118
2119 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2120
2121 * Makefile.in (copying.o): Separate out compile rule.
2122 (hpux-thread.o, procfs.o, signals.o): Ditto.
2123 (v850ice.o, z8k-tdep.o): Ditto.
2124 (tui-file.o): Move to TUI section.
2125 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2126 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2127
2128 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2129
2130 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2131 skip_trampoline_code, for better namespace-proofing.
2132
2133 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2134
2135 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2136
2137 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2138
2139 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2140
2141 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2142 signal, check whether we hit a breakpoint before checking for a
2143 single step breakpoint. Otherwise, GDB fails to notice that a
2144 breakpoint has been hit when stepping onto a breakpoint.
2145
2146 2002-08-16 Keith Seitz <keiths@redhat.com>
2147
2148 * gdb-events.sh (clear_gdb_event_hooks): New function.
2149 * gdb-events.c: Regenerate.
2150 * gdb-events.h: Regenerate.
2151
2152 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2153
2154 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2155 not_a_sw_breakpoint.
2156 * breakpoint.h (bpstat_stop_status): Add parameter names.
2157
2158 2002-08-16 Grace Sainsbury <graces@redhat.com>
2159
2160 * remote.c (remote_insert_hw_breakpoint)
2161 (remote_remove_hw_breakpoint): Fix calculation of length field
2162 for Z-packet.
2163
2164 2002-08-15 Michael Snyder <msnyder@redhat.com>
2165
2166 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2167 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2168 (supply_fpregset): Ditto.
2169
2170 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2171 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2172 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2173 (TARGET_READ_SP): Delete.
2174 (DO_REGISTERS_INFO): Delete.
2175 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2176 Delete.
2177 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2178 from macros to functions.
2179
2180 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2181 (mips_register_convertible, mips_register_convert_to_virtual,
2182 mips_register_convert_to_raw): Make static.
2183 (mips_read_sp): New function.
2184 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2185 (mips_do_registers_info): Make static.
2186 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2187 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2188 (mips_register_convert_from_type, mips_register_convert_to_type):
2189 New functions.
2190 (mips_gdbarch_init): Set up function_start_offset,
2191 register_virtual_size, pc_in_sigtramp.
2192
2193 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2194
2195 * infcmd.c (vector_info): New function.
2196 (_initialize_infcmd): Add command "info vector".
2197 (print_vector_info): New function.
2198
2199 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2200 * gdbarch.h, gdbarch.c: Regenerate.
2201
2202 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2203
2204 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2205 ``print_all''. Only print vector registers when ``print_all''.
2206
2207 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2208
2209 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2210 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2211
2212 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2213 Add `args' parameter.
2214 * gdbarch.h, gdbarch.c: Regenerate.
2215
2216 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2217
2218 * infcmd.c (float_info): Call print_float_info.
2219 (print_float_info): New function. By default, print the
2220 floating-point registers.
2221
2222 * arch-utils.h (default_print_float_info): Delete declaration.
2223 * arch-utils.c (default_print_float_info): Delete function.
2224
2225 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2226
2227 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2228 out define.
2229
2230 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2231 FRAME.
2232
2233 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2234 * configure.host: Make i[3456]86-*-aix host obsolete.
2235 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2236 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2237 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2238 config/i386/xm-i386aix.h: Make files obsolete.
2239 * i386aix-nat.c: Make file obsolete.
2240 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2241 (i386aix-nat.o): Make target obsolete.
2242
2243 * config/i386/nm-gnu.h: Removed.
2244 * config/i386/nm-i386gnu.h: New file.
2245 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2246 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2247 Moved here from ...
2248 * config/i386/tm-i386gnu.h: ... here. Removed.
2249 * config/i386/xm-i386gnu.h: Removed.
2250 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2251 (NAT_FILE): Set to nm-i386gnu.h.
2252 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2253 * i386-tdep.c: New file.
2254 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2255 (i386gnu-tdep.o): Specify dependencies.
2256
2257 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2258
2259 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2260 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2261 Adjust a few comments to reflect reality a bit closer.
2262 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2263 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2264 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2265 target_insert_watchpoint, target_remove_watchpoint):
2266 Move defines to ...
2267 * config/i386/nm-i386sco5.h: ... here.
2268 (kernel_u_size): Add prototype. Improve a few comments and add
2269 protection against multiple inclusion.
2270
2271 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2272 out define.
2273
2274 * uw-thread.c (SP_ARG0): Define if not already defined.
2275 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2276
2277 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2278
2279 * config/i386/tm-i386.h: Don't include "regcache.h".
2280
2281 * i387-tdep.h (i387_print_float_info): New prototype.
2282 * i387-tdep.c (print_i387_value, print_i387_ext,
2283 print_i387_status_word, print_i387_control_word): Add `struct
2284 ui_file *' argument and use it for output.
2285 (i387_print_float_info): Renamed from i387_float_info. Add
2286 `struct gdbarch *' and `struct ui_file *' arguments and use the
2287 latter for output.
2288 * i386-tdep.c: Include "i387-tdep.h".
2289 (i386_gdbarch_init): Set print_float_info.
2290 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2291 (FLOAT_INFO): Remove define.
2292
2293 2002-08-13 Michael Snyder <msnyder@redhat.com>
2294
2295 * mips-tdep.c (mips_push_arguments): Rename to
2296 mips_eabi_push_arguments, and tune for EABI.
2297 (MIPS_REGS_HAVE_HOME_P): Delete.
2298 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2299 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2300 Delete references to mips_regs_have_home_p.
2301
2302 2002-08-14 Keith Seitz <keiths@redhat.com>
2303
2304 * Makefile.in (install-gdbtk): Create insight plugin directory.
2305 Install plugins.tcl file.
2306
2307 2002-08-14 Keith Seitz <keiths@redhat.com>
2308
2309 * configure.in: Move SUBDIRS to near top of the file so that
2310 --enable options may add things to it.
2311 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2312 * configure: Regenerate.
2313
2314 2002-08-13 Michael Snyder <msnyder@redhat.com>
2315
2316 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2317 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2318 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2319
2320 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2321
2322 * vax-tdep.c (vax_get_saved_register): Delete function.
2323 (vax_gdbarch_init): Update.
2324 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2325 (ns32k_gdbarch_init): Update.
2326 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2327 (alpha_gdbarch_init): Update.
2328
2329 2002-08-13 Andrew Cagney <cagney@redhat.com>
2330
2331 * regcache.c (init_regcache_descr): Overallocate the
2332 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2333 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2334 nr_raw_registers.
2335 (set_register_cached): Add range checking assertions. Use
2336 current_regcache.
2337
2338 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2339
2340 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2341 numbers for MMX registers.
2342
2343 2002-08-13 Andrew Cagney <cagney@redhat.com>
2344
2345 * i386-tdep.c (i386_gdbarch_init): Use
2346 generic_unwind_get_saved_register.
2347
2348 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2349
2350 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2351 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2352 target vector.
2353 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2354 Delete. Add comment regarding this now-deleted target method.
2355
2356 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2357
2358 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2359 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2360 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2361 real PC and the page number (if it's within the memory bank window).
2362 (m68hc11_pseudo_register_write): Likewise when saving.
2363 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2364 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2365 (m68hc11_register_raw_size): And use 32-bit for it.
2366 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2367 16K memory bank is used by the prog; also use the virtual pc.
2368
2369 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2370
2371 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2372 (m68hc11_gdbarch_init): Install it in gdbarch.
2373 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2374 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2375 (MSYMBOL_SIZE): New for documentation.
2376 (insn_return_kind): Enum to specify how a function returns.
2377 (frame_extra_info): Cleanup and record the return mode.
2378 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2379 register in address computation.
2380 (m68hc11_get_return_insn): New to obtain the return instruction used
2381 by the function.
2382 (m68hc11_frame_init_saved_regs): Take into account the return
2383 instruction used by the function for far and interrupt functions.
2384 (m68hc11_init_extra_frame_info): Take into account page register.
2385 (m68hc11_frame_args_address): Adjust according to the return mode.
2386 (show_regs): Print page register only when it's used.
2387
2388 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2389
2390 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2391 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2392 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2393 registers.
2394 (m68hc11_register_raw_size): Likewise.
2395
2396 2002-08-13 Andrew Cagney <cagney@redhat.com>
2397
2398 * i386-tdep.c (i386_register_name): Handle mmx registers.
2399 (mmx_regnum_p): New function.
2400 (i386_mmx_names): New array.
2401 (mmx_num_regs): New variable.
2402 (i386_pseudo_register_read): New function.
2403 (i386_pseudo_register_write): New function.
2404 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2405
2406 * regcache.c (regcache_raw_read_unsigned): New function.
2407 (regcache_raw_read_signed): New function.
2408 * regcache.h (regcache_raw_read_unsigned): Declare.
2409 (regcache_raw_read_signed): Declare.
2410
2411 2002-08-13 Andrew Cagney <cagney@redhat.com>
2412
2413 * regcache.c (regcache_raw_read_as_address): Delete function.
2414 (regcache_cooked_read_signed): New function.
2415 (regcache_cooked_read_unsigned): New function.
2416 * regcache.h (regcache_cooked_read_signed): Declare.
2417 (regcache_cooked_read_unsigned): Declare.
2418 (regcache_raw_read_as_address): Delete declaration.
2419
2420 * blockframe.c (generic_read_register_dummy): Use
2421 regcache_cooked_read_unsigned.
2422 * i386-tdep.c (i386_extract_struct_value_address): Use
2423 regcache_cooked_read_unsigned.
2424
2425 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2426
2427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2428 double sizes according to ELF ABI flags.
2429 (gdbarch_tdep): Record elf_flags.
2430
2431 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2432
2433 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2434 (m6812_prolog): They can appear in 68HC12 function prologue.
2435 (m68hc11_frame_chain): Cleanup.
2436
2437 2002-08-12 Andrew Cagney <cagney@redhat.com>
2438
2439 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2440 declarations.
2441 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2442 (i386_linux_register_raw_size): Delete function.
2443 (i386_linux_init_abi): Update.
2444 * i386-tdep.c (i386_register_raw_size): Delete function.
2445 (i386_register_byte): Delete function.
2446 (i386_gdbarch_init): Update.
2447 (i386_register_size): Delete array.
2448 (i386_register_offset): Delete array.
2449
2450 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2451 (REGISTER_RAW_SIZE): Delete macro.
2452 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2453 (REGISTER_BYTE): Delete macro.
2454
2455 2002-08-11 Aidan Skinner <aidan@velvet.net>
2456
2457 * ada-lang.c (ada_lookup_partial_symbol)
2458 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2459 prototype names so that grep ^func works properly.
2460
2461 * ada-lang.c (ada_array_element_type)
2462 (ada_lookup_partial_symbol): Fix typos in parameter list.
2463
2464 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2465 Fix prototype names so that grep ^func works properly.
2466
2467 2002-08-10 Andrew Cagney <cagney@redhat.com>
2468 Elena Zannoni <ezannoni@redhat.com>
2469 Martin M. Hunt <hunt@redhat.com>
2470
2471 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2472 (build_builtin_type_vec128i): Set the vector bit.
2473 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2474 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2475 (build_builtin_type_vec64): New function.
2476 (build_builtin_type_vec64i): New function.
2477 (build_gdbtypes): Initialize builtin_type_vec64 and
2478 builtin_type_vec64i.
2479
2480 2002-08-09 Andrew Cagney <cagney@redhat.com>
2481
2482 * regcache.c (regcache_dump): Compare the register offset
2483 with REGISTER_BYTE.
2484 * arch-utils.c (generic_register_byte): New function.
2485 * arch-utils.h (generic_register_byte): Declare.
2486 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2487 * gdbarch.h, gdbarch.c: Regenerate.
2488
2489 2002-08-09 Andrew Cagney <cagney@redhat.com>
2490
2491 * regcache.c: Include "gdbcmd.h"
2492 (_initialize_regcache): Add commands "maintenance print
2493 registers", "maintenance print raw-registers" and "maintenance
2494 print cooked-registers".
2495 (enum regcache_dump_what): Define.
2496 (dump_endian_bytes): New function.
2497 (regcache_dump): New function.
2498 (regcache_print): New function.
2499 (maintenance_print_registers): New function.
2500 (maintenance_print_raw_registers): New function.
2501 (maintenance_print_cooked_registers): New function.
2502 * Makefile.in (regcache.o): Update dependencies.
2503
2504 2002-08-09 Michael Snyder <msnyder@redhat.com>
2505
2506 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2507 (mips_push_arguments): Correct some comments. Use paddr_nz
2508 for printing addresses in debug output. Replace static
2509 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2510 (mips_n32n64_push_arguments): New function, cloned from
2511 mips_push_arguments and tuned for the n32/n64 ABI.
2512 (mips_push_register): Buffer needs dynamic allocation.
2513 (mips_print_register): Ditto.
2514 (do_gp_register_row): Ditto.
2515 (mips_store_return_value): Ditto.
2516 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2517
2518 2002-08-09 Don Howard <dhoward@redhat.com>
2519
2520 * memattr.c (mem_info_command): Print special case of upper bound
2521 as max CORE_ADDR + 1.
2522
2523 2002-08-08 Michael Snyder <msnyder@redhat.com>
2524
2525 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2526 returns structs by ref if they're too big to fit in two registers.
2527
2528 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2529
2530 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2531 saved regs value.
2532 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2533 mips_find_saved_regs().
2534 (mips_pop_frame): Likewise.
2535
2536 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2537
2538 * blockframe.c (frame_saved_regs_register_unwind): Revise
2539 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2540 frames are in use.
2541
2542 2002-08-09 Grace Sainsbury <graces@redhat.com>
2543
2544 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2545 T-packets; the 'a' is not taken as a register number.
2546 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2547 (remote_stopped_data_address): New functions; add to target
2548 vector.
2549 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2550 prototypes to match other implementations of this
2551 function. replace integer argument with pointer -- the length
2552 field in the Z-packet is the length of what is pointed to or 1 if
2553 pointer is null. Add to target vector.
2554 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2555 target vector.
2556
2557 From Mark Salter:
2558 * remote.c (remote_wait): Add support to extract optional
2559 watchpoint information from T-packet. Ignore unrecognized
2560 optional info in T-packet.
2561 (remote_async_wait): Ditto.
2562
2563 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2564
2565 * cli/cli-dump.c: Change fopen modes to use binary open modes
2566 as defined in include/fopen-bin.h throughout.
2567
2568 2002-08-08 Michael Snyder <msnyder@redhat.com>
2569
2570 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2571
2572 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2573
2574 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2575 assertion failure by returning early after a warning.
2576
2577 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2578
2579 * mips-tdep.c (mips_find_saved_regs): Make static.
2580 (mips_frame_init_saved_regs): New function.
2581 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2582 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2583 (mips_find_saved_regs): Delete declaration.
2584
2585 2002-08-08 Grace Sainsbury <graces@redhat.com>
2586
2587 * remote.c (remote_wait, remote_async_wait): Change
2588 thread_num from int to ULONGEST.
2589 (unpack_varlen_hex): Change result parameter from
2590 int * to ULONGEST *.
2591
2592 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2593
2594 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2595 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2596 powerpc*-*-*.
2597 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2598
2599 2002-08-08 Andrew Cagney <cagney@redhat.com>
2600
2601 * gcore.c (override_derive_stack_segment): Delete variable.
2602 (preempt_derive_stack_segment): Delete function.
2603 (derive_stack_segment): Delete function.
2604 (default_derive_stack_segment): Renamed to derive_stack_segment.
2605 (override_derive_heap_segment): Delete variable.
2606 (preempt_derive_heap_segment): Delete function.
2607 (derive_heap_segment): Delete function.
2608 (default_derive_heap_segment): Rename to derive_heap_segment.
2609
2610 2002-08-06 Michael Snyder <msnyder@redhat.com>
2611
2612 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2613 * mips-tdep.c (mips_EABI_use_struct_convention,
2614 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2615 New functions. (mips_use_struct_convention): Delete.
2616 (mips_gdbarch_init): set use_gdbarch_convention.
2617
2618 2002-08-06 Michael Snyder <msnyder@redhat.com>
2619
2620 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2621 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2622 mips_o32_reg_struct_has_addr): New functions.
2623 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2624
2625 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2626
2627 * regcache.c (pseudo_register): Delete function.
2628 (fetch_register): Delete function.
2629 (store_register): Delete function.
2630 (regcache_raw_read, legacy_read_register_gen): Use
2631 target_fetch_registers instead of fetch_register.
2632 (legacy_write_register_gen, regcache_raw_write): Use
2633 target_store_register instead of store_register.
2634 (write_register_bytes): Ditto.
2635
2636 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2637 (STORE_PSEUDO_REGISTER): Delete.
2638 * gdbarch.h, gdbarch.c: Regenerate.
2639
2640 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2641
2642 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2643 write dump file binary.
2644
2645 2002-08-05 Michael Snyder <msnyder@redhat.com>
2646
2647 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2648 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2649 (mips_gdbarch_init): Set N32 target to be mips64.
2650
2651 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2652
2653 * frame.c (find_saved_register): Break out of loop once saved
2654 register address is found. Don't mention sparc in loop comment
2655 anymore.
2656
2657 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2658
2659 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2660 mips_default_saved_regsize to 8.
2661
2662 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2663
2664 * gcore.c: Do not include <sys/procfs.h>.
2665 * Makefile.in (gcore.o): Update dependencies.
2666
2667 2002-08-06 Andrew Cagney <cagney@redhat.com>
2668
2669 * configure.tgt: Make arc-*-* obsolete.
2670 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2671 * MAINTAINERS: Make arc-elf obsolete.
2672 * arc-tdep.c: Make file obsolete.
2673 * config/arc/arc.mt: Ditto.
2674 * config/arc/tm-arc.h: Ditto.
2675
2676 2002-08-05 Theodore A. Roth <troth@verinet.com>
2677
2678 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2679
2680 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2681
2682 * mcore-tdep.c (mcore_gdbarch_init): Use
2683 generic_unwind_get_saved_register instead of
2684 generic_get_saved_register.
2685 * v850-tdep.c (v850_gdbarch_init): Ditto.
2686 * frv-tdep.c (frv_gdbarch_init): Ditto.
2687 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2688 * s390-tdep.c (s390_gdbarch_init): Ditto.
2689 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2690 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2691 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2692
2693 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2694
2695 * objfiles.h: Add missing #include "symfile.h"
2696
2697 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2698
2699 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2700
2701 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2702 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2703 of FIELD_BITSIZE.
2704
2705 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2706
2707 * NEWS: Cleanup and nitpick.
2708
2709 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2710
2711 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2712
2713 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2714
2715 * Makefile.in (gdbtk-bp.o): Update dependencies.
2716 (gdbtk-register.o): Ditto.
2717 (gdbtk-varobj.o): Ditto.
2718
2719 2002-08-03 Andrew Cagney <cagney@redhat.com>
2720
2721 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2722 m68hc11_fetch_pseudo_register.
2723 (m68hc11_pseudo_register_write): Replace
2724 m68hc11_store_pseudo_register.
2725 (m68hc11_gdbarch_init): Update.
2726
2727 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2728
2729 * gdbarch.sh: Include "gdb_string.h".
2730 * gdbarch.c: Regenerate.
2731
2732 * regcache.c: Include "gdb_string.h".
2733 * ax-general.c: Ditto.
2734 * varobj.c: Ditto.
2735 * std-regs.c: Ditto.
2736 * fbsd-proc.c: Ditto.
2737 * thread.c: Ditto.
2738
2739 * Makefile.in (regcache.o): Update dependencies.
2740 (thread.o, gdbarch.o): Ditto.
2741 (ax-general.o, gdbarch.o): Ditto.
2742 (varobj.o, std-regs.o): Ditto.
2743 (fbsd-proc.o): Specify dependencies.
2744
2745 2002-08-02 Andrew Cagney <cagney@redhat.com>
2746
2747 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2748 regnum.
2749 (regcache_cooked_write): Ditto.
2750
2751 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2752
2753 * regcache.c (regcache_cooked_read): New function.
2754 (regcache_cooked_write): New function.
2755 (read_register_gen): Rewrite using regcache_cooked_read.
2756 (write_register_gen): Rewrite using regcache_cooked_write.
2757
2758 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2759 Declare.
2760
2761 2002-08-02 Andrew Cagney <cagney@redhat.com>
2762
2763 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2764 Replace the architecture methods register_read and register_write.
2765 * gdbarch.h, gdbarch.c: Regenerate.
2766 * regcache.c (init_regcache_descr): Update.
2767 (read_register_gen): Update.
2768 (write_register_gen): Update.
2769 (supply_register): Update comment.
2770
2771 * sh-tdep.c (sh_gdbarch_init): Update.
2772 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2773 `regcache' and `gdbarch' parameters. Make `buffer' a void
2774 pointer. Update code.
2775 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2776 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2777 void pointer. Update code.
2778 (sh64_register_write): Delete.
2779 (sh4_register_read): Delete.
2780 (sh64_register_read): Delete.
2781 (sh4_register_write): Delete.
2782 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2783 void pointer, `to' parameter a void pointer.
2784 (sh_sh64_register_convert_to_raw): Ditto.
2785
2786 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2787
2788 * mips-tdep.c (mips_register_virtual_type): Use architecture
2789 invariant return values.
2790
2791 2002-08-01 Andrew Cagney <cagney@redhat.com>
2792
2793 * linux-proc.c: Include "gdb_string.h".
2794 * Makefile.in (linux-proc.o): Update dependency list.
2795
2796 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2797
2798 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2799 comment.
2800
2801 2002-08-01 Grace Sainsbury <graces@redhat.com>
2802
2803 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2804 to_insert_watchpoint, to_remove_watchpoint,
2805 to_stopped_by_watchpoint, to_stopped_data_address,
2806 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2807 target vecctor. Define their corresponding macros so they call
2808 them.
2809
2810 * target.c: Add default and debug versions of for
2811 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2812 to_insert_watchpoint, to_remove_watchpoint,
2813 to_stopped_by_watchpoint, to_stopped_data_address,
2814 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2815
2816 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2817
2818 * mips-tdep.c (mips_register_virtual_type): New function.
2819 (mips_gdbarch_init): Register mips_register_virtual_type()
2820 with gdbarch machinery.
2821 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2822 this file instead of tm-bigmips.h.
2823 (MIPS_REGSIZE): Delete this macro.
2824 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2825 multiarch version in mips-tdep.c will be found.
2826
2827 2002-08-01 Andrew Cagney <cagney@redhat.com>
2828
2829 * NEWS: Menion that CHILL has been made obsolete.
2830
2831 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2832 * stabsread.c (read_range_type): Ditto.
2833 * gdbtypes.h: Ditto.
2834 * language.c (binop_type_check): Ditto.
2835 (binop_result_type): Ditto.
2836 (integral_type): Ditto.
2837 (character_type): Ditto.
2838 (string_type): Ditto.
2839 (boolean_type): Ditto.
2840 (structured_type): Ditto.
2841 (lang_bool_type): Ditto.
2842 (binop_type_check): Ditto.
2843 * language.h (_LANG_chill): Ditto.
2844 * dwarfread.c (set_cu_language): Ditto.
2845 * dwarfread.c (CHILL_PRODUCER): Ditto.
2846 * dwarfread.c (handle_producer): Ditto.
2847 * expression.h (enum exp_opcode): Ditto.
2848 * eval.c: Ditto for comments.
2849 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2850 * expprint.c (print_subexp): Ditto.
2851 (print_subexp): Ditto.
2852 * valops.c (value_cast): Ditto.
2853 (search_struct_field): Ditto.
2854 * value.h (COERCE_VARYING_ARRAY): Ditto.
2855 * symfile.c (init_filename_language_table): Ditto.
2856 (add_psymbol_with_dem_name_to_list): Ditto.
2857 * valarith.c (value_binop): Ditto.
2858 (value_neg): Ditto.
2859 * valops.c (value_slice): Ditto.
2860 * symtab.h (union language_specific): Ditto.
2861 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2862 (SYMBOL_DEMANGLED_NAME): Ditto.
2863 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2864 * defs.h (enum language): Ditto.
2865 * symtab.c (got_symtab): Ditto.
2866 * utils.c (fprintf_symbol_filtered): Ditto.
2867
2868 * ch-typeprint.c: Make file obsolete.
2869 * ch-valprint.c: Make file obsolete.
2870 * ch-lang.h: Make file obsolete.
2871 * ch-exp.c: Make file obsolete.
2872 * ch-lang.c: Make file obsolete.
2873
2874 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2875 CHILL_LIB.
2876 (TARGET_FLAGS_TO_PASS): Ditto.
2877 (CHILLFLAGS): Obsolete.
2878 (CHILL): Obsolete.
2879 (CHILL_FOR_TARGET): Obsolete.
2880 (CHILL_LIB): Obsolete.
2881 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2882 ch-valprint.c.
2883 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2884 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2885 ch-lang.o.
2886 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2887 targets.
2888
2889 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2890
2891 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2892 This does not change anything at the moment, but will be helpful
2893 later when full Ada support is integrated.
2894
2895 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2896
2897 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2898 help message.
2899
2900 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2901
2902 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2903 and save it in a local variable. Use variable in later test.
2904
2905 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2906
2907 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2908 test. (Thanks to Daniel Jacobowitz.)
2909
2910 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2911
2912 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2913 (mips_abi_strings): Add "n64".
2914 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2915
2916 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2917
2918 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2919 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2920
2921 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2922
2923 * utils.c (host_pointer_to_address, address_to_host_pointer):
2924 Use gdb_assert() instead of explicit call to internal_error().
2925
2926 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2927
2928 * Makefile.in (rs6000-nat.o): Update dependencies.
2929
2930 From Nicholas Duffek:
2931 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2932 (aix-thread.o): New rule.
2933 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2934 * config/powerpc/aix432.mh: New file.
2935
2936 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2937
2938 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2939 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2940 (fetch_core_registers, ppc_linux_supply_gregset)
2941 (ppc_linux_supply_fpregset): New functions.
2942 (ppc_linux_regset_core_fns): New.
2943 (_initialize_ppc_linux_tdep): Call add_core_fns.
2944 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2945 and ppc_linux_supply_gregset.
2946 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2947 (supply_fpregset): Call ppc_linux_supply_fpregset.
2948 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2949 corelow.o.
2950 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2951
2952 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2953
2954 * symtab.c (lookup_symbol): Demangle before lowercasing.
2955
2956 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2957
2958 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2959 declaration.
2960 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2961 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2962 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2963 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2964 "gdb_string.h".
2965 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2966 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2967 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2968 (avr-tdep.o, mon960-rom.o): Ditto.
2969 (aout_stabs_gnu_h): Define.
2970 (symtab_h): Remove $(gdb_obstack_h).
2971
2972 2002-07-30 Jim Blandy <jimb@redhat.com>
2973
2974 Patch from David Carlton <carlton@math.stanford.edu>:
2975 * gdbinit.in: Move the `dir' commands that add GDB's own source
2976 directory to the search path to the end, so that the `gdb' source
2977 directory will be searched first.
2978
2979 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2980
2981 * gdb_obstack.h: New file.
2982 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2983 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2984 * objfiles.h: Include "gdb_obstack.h".
2985 * Makefile.in (gdb_obstack_h): Define.
2986 (symtab_h): Add $(gdb_obstack_h).
2987 (objfiles_h): Add $(gdb_obstack_h).
2988
2989 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2990 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2991 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2992 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2993 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2994 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2995 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2996 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2997
2998 * Makefile.in (bcache.o): Update dependencies.
2999 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3000 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3001 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3002 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3003 (stabsread.o, symfile.o, symmisc.o): Ditto.
3004 (symtab.o, typeprint.o, macroexp.o): Ditto.
3005 (macrotab.o, mdebugread.o): Ditto.
3006 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3007 (coff_ecoff_h, aout_aout64_h): Define.
3008 (aout_stabs_gnu_h, libaout_h): Define.
3009
3010 2002-07-29 Andrew Cagney <cagney@redhat.com>
3011
3012 * regcache.c (struct regcache_descr): Rename nr_registers to
3013 nr_cooked_registers. Revise comments describing the structure
3014 member fields.
3015 (init_regcache_descr): Update.
3016 (init_legacy_regcache_descr): Update.
3017 (read_register_gen, write_register_gen): When a cooked register in
3018 the raw register range, directly access the value from the raw
3019 register cache.
3020
3021 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3022
3023 * z8k-tdep.c: Do not include "obstack.h".
3024 * h8300-tdep.c, h8500-tdep.c: Ditto.
3025 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3026 * valprint.c, v850-tdep.c: Ditto.
3027 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3028 * mn10200-tdep.c: Ditto.
3029
3030 * Makefile.in (z8k-tdep.o): Update dependencies.
3031 (m68hc11-tdep.o, valprint.o): Ditto.
3032 (v850-tdep.o, d10v-tdep.o): Ditto.
3033 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3034 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3035 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3036 (sh_opc_h, gdb_sim_sh_h): Define.
3037 (elf_sh_h, elf_bfd_h): Define.
3038 (opcode_m68hc11_h): Define.
3039 (OPCODES_SRC, OPCODES_DIR): define.
3040 (OPCODES): Use $(OPCODES_DIR).
3041 (gdb_sim_d10v_h): Rename sim_d10v_h.
3042 (gdb_sim_arm_h): Rename sim_arm_h.
3043
3044 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3045
3046 * utils.c (host_pointer_to_address, address_to_host_pointer):
3047 Change internal_error() message to indicate function responsible
3048 for the error.
3049
3050 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3051
3052 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3053 calls to local_hex_string_custom().
3054
3055 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3056
3057 * irix5-nat.c: Move IRIX shared library support from here...
3058 * solib-irix.c: ...to here. Revised substantially to work with
3059 generic solib framework.
3060
3061 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3062 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3063 * mips-irix-tdep.c: New file.
3064
3065 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3066 (mips-irix-tdep.o, solib-irix.o): New rules.
3067 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3068 solib-irix.o.
3069 * config/mips/irix6.mt (TDEPFILES): Likewise.
3070 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3071
3072 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3073
3074 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3075 disabled (via ``#if 0'') includes.
3076
3077 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3078
3079 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3080 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3081 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3082 Add support for the fpscr register.
3083 * rs6000-nat.c (regmap, fetch_inferior_registers)
3084 (store_inferior_registers, fetch_core_registers): Likewise.
3085
3086 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3087
3088 * rs6000-nat.c (language.h): Include.
3089 (special_regs): Delete this array.
3090 (regmap): New function.
3091 (fetch_register, store_register): Use regmap() to map gdb
3092 register numbers to ptrace register numbers. Also, use
3093 outputs from regmap() to make decisions regarding type of
3094 ptrace() call to make. In particular, don't compare against
3095 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3096 (fetch_inferior_registers, store_inferior_registers): Where
3097 possible, obtain register numbers from tdep struct. Don't
3098 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3099 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3100 (LAST_UISA_SP_REGNUM): Delete.
3101
3102 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3103
3104 * rs6000-nat.c (ppc-tdep.h): Include.
3105 (fetch_registers, store_register, fetch_core_registers): Don't
3106 access registers[] directly. Instead, use supply_register() or
3107 regcache_collect() as appropriate.
3108 (find_toc_address): Format hex address with local_hex_string().
3109
3110 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3111
3112 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3113 bfd/elf32-frv.c.
3114
3115 2002-07-24 Tom Tromey <tromey@redhat.com>
3116
3117 * jv-exp.y: Marked all strings with _().
3118 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3119 internal_error.
3120 (MethodInvocation, CastExpression, parse_number, yyerror,
3121 java_type_from_name, push_expression_name, yylex): Typo fixes.
3122
3123 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3124
3125 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3126 (tee_file_flush, tee_file_write, tee_file_fputs)
3127 (tee_file_isatty): New.
3128 * ui-file.h (tee_file_new): Add prototype.
3129
3130 2002-07-24 Aidan Skinner <aidan@velvet.net>
3131
3132 * ada-lang.c: Change k&r style function definitions to prototyped
3133 form.
3134 * ada-typeprint.c: Change k&r style function definitions to prototyped
3135 form.
3136 * ada-valprint.c: Change k&r style function definitions to prototyped
3137 form.
3138
3139 2002-07-24 Andrew Cagney <cagney@redhat.com>
3140
3141 * README: Remove reference to remote-bug.
3142 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3143 remote-bug.c.
3144 (m88k-nat.o): Delete rule.
3145 (m88k-tdep.o): Delete rule.
3146 (remote-bug.o): Delete rule.
3147 * MAINTAINERS: Mark as obsolete.
3148 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3149 * m88k-tdep.c: Make file obsolete.
3150 * config/m88k/m88k.mh: Ditto.
3151 * config/m88k/delta88v4.mh: Ditto.
3152 * config/m88k/delta88v4.mt: Ditto.
3153 * config/m88k/delta88.mt: Ditto.
3154 * config/m88k/delta88.mh: Ditto.
3155 * remote-bug.c: Ditto.
3156 * config/m88k/tm-delta88.h: Ditto.
3157 * config/m88k/nm-delta88v4.h: Ditto.
3158 * config/m88k/xm-delta88.h: Ditto.
3159 * config/m88k/xm-dgux.h: Ditto.
3160 * config/m88k/tm-m88k.h: Ditto.
3161 * config/m88k/nm-m88k.h: Ditto.
3162 * config/m88k/tm-delta88v4.h: Ditto.
3163 * m88k-nat.c: Ditto.
3164 * cxux-nat.c: Ditto.
3165 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3166 and m88*-*-* obsolete.
3167 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3168 m88*-*-* obsolete.
3169
3170 2002-07-24 Andrew Cagney <cagney@redhat.com>
3171
3172 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3173 constant. Same for local pointer variables.
3174 (extract_signed_integer): Ditto.
3175 * defs.h (extract_unsigned_integer): Update.
3176 (extract_signed_integer): Update.
3177
3178 2002-07-24 Andrew Cagney <cagney@redhat.com>
3179
3180 * regcache.c (regcache_raw_write): Change buf parameter to a
3181 constant void pointer.
3182 (regcache_raw_read): Change buf parameter to a void pointer.
3183 (legacy_write_register_gen): Change myaddr parameter a constant
3184 void pointer.
3185 (supply_register): Change val parameter to a const void pointer.
3186 * regcache.h (regcache_raw_write): Update declaration.
3187 (regcache_raw_read): Update declaration.
3188 (supply_register): Update declaration.
3189
3190 2002-07-24 Tom Tromey <tromey@redhat.com>
3191
3192 * defs.h (gdb_readline_wrapper): Declare.
3193 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3194 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3195 * top.c (gdb_readline_wrapper): New function.
3196 (command_line_input): Use it.
3197
3198 2002-07-24 Andrew Cagney <cagney@redhat.com>
3199
3200 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3201 regcache_read and regcache_write.
3202 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3203 * regcache.c: Update.
3204 * sh-tdep.c (sh64_push_arguments): Update comment.
3205 (sh_pseudo_register_read): Update.
3206 (sh_pseudo_register_write): Update.
3207 (sh4_register_read): Update.
3208 (sh4_register_write): Update.
3209 (sh64_pseudo_register_read): Update.
3210 (sh64_pseudo_register_write): Update.
3211 (sh64_register_read): Update.
3212 (sh64_register_write): Update.
3213 * i386-tdep.c (i386_extract_return_value): Update.
3214 (i386_extract_struct_value_address): Update.
3215 (i386_extract_return_value): Update.
3216 * blockframe.c (generic_read_register_dummy): Update.
3217 (generic_call_dummy_register_unwind): Update
3218 * infrun.c (write_inferior_status_register): Update.
3219
3220 2002-07-23 Jim Blandy <jimb@redhat.com>
3221
3222 * parser-defs.h (expression_context_pc): Make this extern.
3223 (Thanks to Michael Snyder.)
3224
3225 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3226
3227 GDB 5.2.1 released from 5.2 branch.
3228 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3229 * README: Update to mention 5.2.1.
3230
3231 2002-07-23 Mark Salter <msalter@redhat.com>
3232
3233 * remote.c (remote_read_bytes): Fix check for error.
3234
3235 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3236
3237 * aix-thread.c (language.h): Include.
3238 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3239 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3240 Print newlines at end of debug messages.
3241 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3242 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3243
3244 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3245
3246 * aix-thread.c (ppc-tdep.h): Include.
3247 (special_register_p): New function.
3248 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3249 (store_regs_user_thread): Use register number information from
3250 gdbarch_tdep struct instead of hardcoded offsets relative to
3251 FIRST_UISA_SP_REGNUM.
3252 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3253 special_register_p() instead of using FPLAST_REGNUM and
3254 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3255 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3256 will be MQ's register number.
3257
3258 2002-07-22 Michael Snyder <msnyder@redhat.com>
3259
3260 * aix-thread.c (ops): Rename to aix_thread_ops.
3261 (base_ops): Rename to base_target.
3262 (ops_attach): Rename to aix_thread_attach.
3263 (ops_detach): Rename to aix_thread_detach.
3264 (ops_resume): Rename to aix_thread_detach.
3265 (ops_wait): Rename to aix_thread_wait.
3266 (ops_kill): Rename to aix_thread_kill.
3267 (init_ops): Rename to init_aix_thread_ops.
3268 (ops_fetch_register): Rename to aix_thread_fetch_register.
3269 (ops_store_register): Rename to aix_thread_store_register.
3270 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3271 (ops_thread_alive): Rename to aix_thread_thread_alive.
3272 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3273 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3274 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3275 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3276 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3277 (store_regs_lib): Rename to store_regs_user_thread.
3278 (store_regs_kern): Rename to store_regs_kernel_thread.
3279
3280 2002-07-22 Michael Snyder <msnyder@redhat.com>
3281
3282 * aix-thread.c (ops_prepare_to_store): Eliminate.
3283 (init_ops): Don't initialize ops.prepare_to_store.
3284 (store_regs_kern): Pre-fetch register buffers from child,
3285 because some registers may not be in the cache. Copy
3286 regs from register cache only if they are cached.
3287 (store_regs_lib): Copy regs from register cache only
3288 if they are cached.
3289 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3290 fill_gprs64): Ditto.
3291
3292 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3293
3294 * aix-thread.c (gdb_assert.h): Include.
3295 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3296 register sizes (from register cache) match size of buffer holding
3297 register data.
3298 (fill_sprs32): Change parameter types to match those in the ptrace()
3299 buffer.
3300 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3301 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3302
3303 2002-07-22 Michael Snyder <msnyder@redhat.com>
3304
3305 * aix-thread.c (supply_sprs64): Cosmetic change.
3306 (supply_sprs32): Cosmetic change.
3307 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3308 (fill_sprs64): Use regcache_collect instead of read_register.
3309 (store_regs_lib): Use regcache_collect instead of
3310 read_register. Use fill_sprs32 instead of fill_sprs64,
3311 if debugging a 32-bit architecture.
3312 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3313 out of the register cache, instead of passing a pointer into
3314 the register cache directly to ptrace. Use regcache_collect
3315 insteaad of read_register.
3316 (ops_prepare_to_store): Use target_read_registers instead
3317 of read_register_bytes.
3318
3319 2002-07-20 Aidan Skinner <aidan@velvet.net>
3320
3321 * MAINTAINERS: Add self under write after approval.
3322
3323 2002-07-20 Aidan Skinner <aidan@velvet.net>
3324
3325 * ada-tasks.c: Change k&r style function definitions to prototyped
3326 form.
3327
3328 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3329
3330 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3331 * x86-64-tdep.c: Include "objfiles.h".
3332 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3333 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3334
3335 2002-07-17 Michal Ludvig <michal@suse.cz>
3336
3337 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3338 (update_context): Initialise cfa variable.
3339
3340 2002-07-17 Michael Snyder <msnyder@redhat.com>
3341
3342 * aix-thread.c: Shorten some long lines.
3343 Bring comments into line with code spec.
3344
3345 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3346
3347 * infrun.c: Re-indent using gdb_indent.sh.
3348
3349 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3350
3351 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3352 Leave the indentation temporarily untouched, to minimize the diffs.
3353
3354 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3355
3356 * stabsread.c: Make os9k sections of the code obsolete,
3357 for real this time.
3358 * stabsread.h: Make os9k sections of the code obsolete.
3359
3360 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3361
3362 * linux-low.c (regsets_store_inferior_registers): Add free()
3363 at the end of a loop to prevent memory leak.
3364 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3365 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3366 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3367 line a comment.
3368 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3369
3370 2002-07-17 Jim Blandy <jimb@redhat.com>
3371
3372 * macrocmd.c (info_macro_command): Remove newline from error
3373 message.
3374
3375 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3376
3377 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3378 (sh_gdbarch_init): Use it for sh-dsp.
3379
3380 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3381
3382 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3383 64-bit DWARF2 format.
3384
3385 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3386
3387 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3388 <sys/proc.h> when not available.
3389
3390 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3391
3392 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3393 * stabsread.c: Make os9k sections of the code obsolete.
3394 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3395 * config/i386/i386os9k.mt: Make file obsolete.
3396 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3397 (COMMON_OBS): Remove os9kread.o
3398 (SFILES): Remove os9kread.c.
3399 (os9kread.o, remote-os9k.o): Make target obsolete.
3400 * remote-os9k.c: Make file obsolete.
3401 * os9kread.c: Make file obsolete.
3402 * Makefile.in
3403
3404 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3405
3406 * NEWS: Mention that the FR30 has been made obsolete.
3407 * fr30-tdep.c: Make file obsolete.
3408 * config/fr30/tm-fr30.h: Ditto.
3409 * config/fr30/fr30.mt: Ditto.
3410 * configure.tgt: Make fr30-*-elf obsolete.
3411 * MAINTAINERS: Make fr30-elf obsolete.
3412
3413 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3414
3415 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3416 found is not inside a section.
3417
3418 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3419
3420 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3421 strerror().
3422 (pdc_realloc): Use xrealloc() instead of realloc().
3423
3424 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3425
3426 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3427 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3428 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3429 macros.
3430
3431 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3432
3433 * aix-thread.c (ptrace_check): Eliminate goto.
3434 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3435 problem.
3436
3437 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3438
3439 * aix-thread.c (gdbcmd.h): Include.
3440 (DEBUG, DBG, DBG2, dbg): Eliminate.
3441 (debug_aix_thread): New static global.
3442 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3443 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3444 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3445 invocations to DBG and DBG2 macros to test against
3446 ``debug_aix_thread'' and call fprintf_unfiltered().
3447 (_initialize_aix_thread): Add new command "set debug aix-thread".
3448
3449 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3450
3451 From Gerhard Tonn <TON@de.ibm.com>:
3452 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3453 instead of supply_register.
3454
3455 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3456
3457 * dwarf2cfi.c: Include "gdb_assert.h".
3458 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3459 non-NULL.
3460 (update_context): Do not use __func__. Add missing ``break''.
3461 (update_context): Do not use __func__.
3462
3463 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3464
3465 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3466 and its setting. Set gdbarch instruction printing functions
3467 directly. For non-rs6000 case use new function
3468 gdb_print_insn_powerpc.
3469 (gdb_print_insn_powerpc): New function.
3470
3471 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3472
3473 * NEWS: Mention that the d30v has been marked obsolete.
3474 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3475 * configure.tgt: Mark d30v-*-* as obsolete.
3476 * d30v-tdep.c: Mark file as obsolete.
3477 * config/d30v/d30v.mt: Ditto.
3478 * config/d30v/tm-d30v.h: Ditto.
3479
3480 2002-07-13 Aidan Skinner <aidan@velvet.net>
3481
3482 * ada-tasks.c (add_task_entry): replace calls to
3483 malloc() with xmalloc
3484 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3485
3486 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3487 ada_finish_decode_line_1, all_sals_for_line
3488 ada_breakpoint_rewrite): replace calls to free() with xfree()
3489
3490 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3491
3492 From Nicholas Duffek (with minor changes by Martin Hunt,
3493 Louis Hamilton, and Kevin Buettner):
3494 * aix-thread.c: New file.
3495
3496 2002-07-12 Petr Sorfa <petrs@caldera.com>
3497
3498 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3499 complaint for invalid attribute class or form.
3500 (read_func_scope): DW_AT_frame_base
3501 better handling of DW_AT_block*.
3502 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3503 better handling of DW_AT_block*.
3504 (read_common_block): DW_AT_location
3505 better handling of DW_AT_block*.
3506 (read_partial_die): DW_AT_location better handling
3507 of DW_AT_block*.
3508 (new_symbol): DW_AT_external better handling of
3509 DW_AT_block*. Proper initialization of variable
3510 "addr".
3511 (attr_form_is_block): New function that returns true
3512 if the attribute's form is of DW_FORM_block*.
3513
3514 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3515
3516 * valops.c (find_method_list): Remove comment about
3517 removed STATIC_MEMFUNCP argument.
3518 (value_find_oload_method_list): Likewise.
3519
3520 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3521
3522 From Nicholas Duffek:
3523 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3524 target_new_objfile_hook.
3525
3526 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3527
3528 From Nicholas Duffek:
3529 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3530 csect.
3531
3532 2002-07-12 Andrew Cagney <cagney@redhat.com>
3533
3534 * MAINTAINERS: Mention --enable-sim-build-warnings.
3535 (m68hc11-elf): Disable sim build warnings.
3536 (m32r-elf): Mark as broken obsolete candidate.
3537 (x86_64-linux-gnu): Mark as buildable with -Werror.
3538 (arm-elf): Change -w to ``,'' which enables warnings but not
3539 -Werror.
3540
3541 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3542
3543 * bcache.h: Update copyright.
3544 (struct bstring, struct bcache): Move definition to "bcache.c".
3545 Replaced by opaque declaration.
3546 (bcache_xfree): Replace free_bcache.
3547 (bcache_xmalloc, bcache_memory_used): Declare.
3548
3549 * bcache.c: Update copyright.
3550 (struct bstring, struct bcache): Moved to here from "bcache.h".
3551 Update comments.
3552 (bcache_xmalloc, bcache_memory_used): New functions.
3553 (bcache_xfree): Replace function free_bcache.
3554
3555 * Makefile.in (objfiles.o): Add $(bcache_h).
3556 (objfiles_h): Remove $(bcache_h).
3557 (symfile.o): Add $(bcache_h).
3558
3559 * symmisc.c: Update copyright.
3560 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3561 (print_objfile_statistics): Use bcache_memory_used.
3562
3563 * symfile.c: Include "bcache.h".
3564 (reread_symbols): Use bcache_xfree.
3565 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3566 (add_psymbol_to_list): Pass psymbol_cache by value.
3567 (add_psymbol_with_dem_name_to_list): Ditto.
3568
3569 * objfiles.h: Update copyright.
3570 (struct bcache): Declare opaque. Do not include "bcache.h".
3571 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3572 bcache'' pointers.
3573 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3574
3575 * objfiles.c: Include "bcache.h". Update copyright.
3576 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3577 macro_cache.
3578 (free_objfile): Use bcache_xfree.
3579
3580 2002-07-11 Grace Sainsbury <graces@redhat.com>
3581
3582 * monitor.c (monitor_fetch_register): Make name a constant.
3583 (monitor_store_register): Same.
3584
3585 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3586
3587 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3588 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3589 (finish_block) For non-function blocks, hash the symbol table. For
3590 function blocks, mark the symbol table as unhashed.
3591 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3592 (msymbol_hash_iw): Likewise.
3593 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3594 value.
3595 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3596 (lookup_minimal_symbol): Likewise for both.
3597 * symtab.h (struct block): Add `hashtable' flag. Comment the
3598 hashtable.
3599 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3600 (ALL_BLOCK_SYMBOLS): Update.
3601 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3602 (struct symbol): Add `hash_next' pointer.
3603 * symtab.c (lookup_block_symbol): Search using the hash table when
3604 possible.
3605 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3606 (search_symbols, find_addr_symbol): Likewise.
3607
3608 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3609 (read_dst_symtab): Likewise.
3610 * jv-lang.c (get_java_class_symtab): Likewise.
3611 * mdebugread.c: Include "gdb_assert.h".
3612 (shrink_block): Assert that the block being modified is not hashed.
3613 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3614 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3615 symbols.
3616 (dump_symtab): Recognize hashed blocks.
3617 * printcmd.c (print_frame_args): Assert that function blocks do not
3618 have hashed symbol tables.
3619 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3620 (fill_in_ada_prototype, debug_print_block): Likewise.
3621 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3622
3623 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3624
3625 * stack.c (print_frame): Use result of frame_address_in_block()
3626 instead of fi->pc when evaluating symbols.
3627 (backtrace_command_1): Ditto.
3628
3629 2002-07-11 Andrew Cagney <cagney@redhat.com>
3630
3631 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3632 Make static.
3633
3634 * arm-tdep.c (arm_register_name): Make return type constant.
3635
3636 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3637
3638 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3639 prototype.
3640 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3641 * s390-tdep.c (s390_fp_regnum): Ditto.
3642 (s390_read_fp): Ditto.
3643 (s390_pop_frame): Ditto.
3644 (_initialize_s390_tdep): Ditto.
3645 * remote.c (get_remote_state): Ditto.
3646 * procfs.c (mappingflags): Ditto.
3647 * memattr.c (_initialize_mem): Ditto.
3648 * mcore-tdep.c (mcore_pop_frame): Ditto.
3649 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3650 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3651 * language.c (set_case_str): Ditto.
3652 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3653 * frv-tdep.c (new_variant): Ditto.
3654 (frv_stopped_data_address): Ditto.
3655 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3656 (context_alloc): Ditto.
3657 (frame_state_alloc): Ditto.
3658 (unwind_tmp_obstack_init): Ditto.
3659 (unwind_tmp_obstack_free): Ditto.
3660 (cfi_read_fp): Ditto.
3661 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3662 (cris_pop_frame): Ditto.
3663 * c-lang.c (scanning_macro_expansion): Ditto.
3664 (finished_macro_expansion): Ditto.
3665 (c_preprocess_and_parse): Ditto.
3666 * gdbarch.sh: Ditto.
3667 * gdbarch.h, gdbarch.c: Regenerate.
3668 * config/mn10200/tm-mn10200.h: Adjust indentation.
3669 * target.c: Adjust indentation.
3670 * symtab.h: Adjust indentation.
3671 * stabsread.h: Adjust indentation.
3672 * remote-es.c: Adjust indentation.
3673 * os9kread.c: Adjust indentation.
3674
3675 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3676
3677 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3678 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3679
3680 2002-07-10 Grace Sainsbury <graces@redhat.com>
3681
3682 * NEWS: Mention m68k, mcore multi-arching.
3683 * MAINTAINERS: Change status of m68k, mcore to reflect
3684 multi-arching.
3685
3686 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3687
3688 * valops.c (find_overload_match): Free oload_syms.
3689
3690 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3691
3692 Define HAVE_SYS_PROC_H if sys/proc.h exists
3693 * configure.in: Add check for sys/proc.h
3694 * config.in: Regenerate.
3695 * configure: Regenerate.
3696
3697 2002-07-09 Grace Sainsbury <graces@redhat.com>
3698
3699 * config/m68k/tm-m68k.h: Remove macros wrapped in
3700 #if !GDB_MULTI_ARCH.
3701
3702 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3703
3704 * config.in, configure: Regenerate.
3705
3706 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3707
3708 * dwarf2cfi.c: Include "gcore.h".
3709 (execute_stack_op): Fix implementation of the
3710 DW_OP_deref and DW_OP_deref_size operators by letting do their
3711 lookup in the target.
3712
3713 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3714
3715 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3716 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3717 tdep->sc_sp_offset.
3718
3719 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3720
3721 Fix PR gdb/595, gdb/602
3722 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3723 Don't call value_cast, just read the vtable pointer; update comments
3724 to match.
3725
3726 2002-07-05 Grace Sainsbury <graces@redhat.com>
3727
3728 * config/mcore/tm-mcore.h: Remove file.
3729 * config/mcore/mcore.mt: Remove definition of TM_FILE
3730 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3731
3732 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3733
3734 * i386bsd-tdep.c: Include "gdb_string.h".
3735
3736 2002-07-04 Grace Sainsbury <graces@redhat.com>
3737
3738 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3739 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3740 mcore-tdep.
3741 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3742 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3743 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3744 (RETVAL_REGNUM): Move macros from tm-mcore.h
3745 (mcore_reg_struct_has_addr): New function.
3746 (mcore_gdbarch_init): Added initializations for the macros removed
3747 from tm-mcore.h.
3748
3749 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3750
3751 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3752 traditonal string branding within the ELF header.
3753
3754 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3755
3756 * symtab.c (remove_params): New function.
3757 (make_symbol_overload_list): Use it instead of cplus_demangle.
3758 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3759
3760 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3761
3762 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3763
3764 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3765 New variables.
3766 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3767 and tdep->sigtramp_end.
3768 * i386obsd-nat.c: New file.
3769 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3770
3771 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3772 Don't call get_current_frame().
3773
3774 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3775
3776 * i386-nat.c (child_post_startup_inferior): New function
3777 calling i386_cleanup_dregs if
3778 I386_USE_GENERIC_WATCHPOINTS is defined.
3779 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3780 conditional to acknowledge that i386-nat.c has its
3781 own child_post_startup_inferior function.
3782
3783 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3784
3785 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3786 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3787 instead of MAX_REGISTER_RAW_SIZE.
3788 (i386_extract_return_value, i386_extract_struct_value_address):
3789 Convert to use regcache.
3790 (i386_gdbarch_init): Set max_register_raw_size and
3791 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3792 Set extract_return_value and extract_struct_value_address instead
3793 of their deprecated variants.
3794
3795 Convert i386 target to generic dummy frames.
3796 * i386-tdep.c: Include "symfile.h".
3797 (i386_frameless_signal_p): Consider a function to be frameless if
3798 the pc points at the first instruction of the function.
3799 (i386_frame_chain): Handle (generic) call dummies.
3800 (i386_frame_saved_pc): Likewise.
3801 (i386_frame_init_saved_regs): Remove code dealing with call
3802 dummies on the stack.
3803 (i386_push_dummy_frame): Removed.
3804 (i386_call_dummy_words): Removed.
3805 (i386_fix_call_dummy): Removed.
3806 (i386_push_return_address): New function.
3807 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3808 parameter, and don't call get_current_frame.
3809 (i386_pop_frame): New function.
3810 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3811 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3812 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3813 call_dummy_length to 0, set call_dummy_words to NULL, set
3814 sizeof_call_dummy_words to 0, set fix_call_dummy to
3815 generic_fix_call_dummy, set pc_in_call_dummy to
3816 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3817 generic_push_dummy_frame, set push_return_address to
3818 i386_push_return_address and set frame_chain_valid to
3819 generic_file_frame_chain_valid.
3820
3821 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3822
3823 * gdbarch.sh (struct regcache): Add opaque declaration.
3824 (EXTRACT_RETURN_VALUE): New architecture method.
3825 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3826 * gdbarch.h, gdbarch.c: Regenerate.
3827 * arch-utils.c (legacy_extract_return_value): New function.
3828 * arch-utils.h (legacy_extract_return_value): Declare.
3829 * values.c (value_being_returned): Re-enable code handling
3830 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3831 deprecated_grub_regcache_for_registers call to block handling
3832 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3833 (EXTRACT_RETURN_VALUE): Do not define.
3834
3835 2002-07-03 Grace Sainsbury <graces@redhat.com>
3836
3837 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3838 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3839 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3840 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3841 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3842 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3843 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3844 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3845 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3846 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3847 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3848 argument so the function fits the prototype in the architecture
3849 vector.
3850 (mcore_pop_frame): Remove argument so the function fits the
3851 prototype. Use get_current_frame instead of the argument.
3852 (mcore_push_arguments): Change type of struct_return so the
3853 function can be used in the architecture vector.
3854 (mcore_store_struct_return): Add.
3855 (mcore_frame_init_saved_regs): Add.
3856 (mcore_gdbarch_init): Add function calls to replace the macros
3857 removed from tm-mcore.h
3858
3859 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3860
3861 * infcmd.c (print_return_value): Remove compatibility code calling
3862 deprecated_grub_regcache_for_registers.
3863
3864 * values.c: Include "regcache.h".
3865 (value_being_returned): Update. Use
3866 deprecated_grub_regcache_for_registers to extract the register
3867 buffer address.
3868 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3869 ``struct regcache''.
3870 * Makefile.in (values.o): Add dependency on $(regcache_h).
3871
3872 * inferior.h (run_stack_dummy): Change type of second parameter to
3873 a ``struct regcache''.
3874 * valops.c (hand_function_call): Change type of retbuf to ``struct
3875 regcache''. Allocate using regcache_xmalloc, clean using
3876 make_cleanup_regcache_xfree.
3877 * infcmd.c (run_stack_dummy): Update. Use
3878 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3879
3880 * regcache.c (do_regcache_xfree): New function.
3881 (make_cleanup_regcache_xfree): New function.
3882 * regcache.h (make_cleanup_regcache_xfree): Declare.
3883
3884 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3885
3886 * event-top.c (command_line_handler): Don't read past
3887 beginning of buffer.
3888
3889 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3890
3891 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3892 struct frame_id.
3893 (varobj_create): Store frame_id for root.
3894 (varobj_gen_name): Use xasprintf.
3895 (varobj_update): Save and restore frame using get_frame_id() and
3896 frame_find_by_id().
3897 (create_child): Use xasprintf.
3898 (new_root_variable): Initialize frame_id.
3899 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3900 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3901 to prevent memory leak.
3902
3903 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3904
3905 * valops.c (hand_function_call): Move declaration of retbuf to
3906 start of function, allocate using malloc, add a cleanup but before
3907 the inf_status cleanup, cleanup the buffer. Rename local variable
3908 old_chain to inf_status_cleanup.
3909
3910 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3911
3912 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3913
3914 * cli/cli-decode.c (cmd_func_p): New function.
3915 (cmd_func): New function.
3916
3917 * command.h: Add cmd_func() and cmd_func_p().
3918
3919 2002-07-03 Grace Sainsbury <graces@redhat.com>
3920
3921 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3922 (REGISTER_SIZE): Remove.
3923 (MAX_REGISTER_RAW_SIZE): Remove.
3924 (REGISTER_VIRTUAL_TYPE): Remove.
3925 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3926 (REGISTER_NAME): Remove.
3927 (USE_GENERIC_DUMMY_FRAMES): Remove.
3928 (CALL_DUMMY): Remove.
3929 (CALL_DUMMY_START_OFFSET): Remove.
3930 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3931 (CALL_DUMMY_LOCATION): Remove.
3932 (FIX_CALL_DUMMY): Remove.
3933 (CALL_DUMMY_ADDRESS): Remove.
3934 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3935 (SAVE_DUMMY_FRAME_TOS): Remove.
3936 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3937 (mcore_register_virtual_type): New function.
3938 (mcore_register_byte): New function.
3939 (mcore_register_size): New function.
3940 (mcore_register_name): New function.
3941 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3942 macros removed from tm-mcore.h.
3943 (mcore_dump_tdep): Add.
3944 (_initialize_mcore_tdep): Add gdbarch_register call.
3945
3946 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3947
3948 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3949 frameless_look_for_prologue, such that we actually call this
3950 function.
3951
3952 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3953
3954 * frame.h (frame_address_in_block): New function.
3955
3956 * blockframe.c (frame_address_in_block): New function extracted
3957 from get_frame_block().
3958 (get_frame_block): Use frame_address_in_block().
3959 (block_innermost_frame): Use frame_address_in_block() to match
3960 the frame pc address against the block boundaries rather than
3961 the frame pc directly. This prevents a failure when a frame pc
3962 is actually a return-address pointing immediately after the end
3963 of the given block.
3964
3965 2002-07-02 Grace Sainsbury <graces@redhat.com>
3966
3967 * MAINTAINERS: Add self under write after approval.
3968
3969 2002-07-02 Grace Sainsbury <graces@redhat.com>
3970
3971 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3972 used in architecture vector. The default is
3973 m68k_local_breakpoint_from_pc.
3974 (m68k_local_breakpoint_from_pc): Add.
3975 (enum): Add register numbers from tm-m68k.h.
3976 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3977 vector.
3978 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3979 GDB_MULTI_ARCH_PARTIAL.
3980 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3981 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3982 m68k-tdep.c.
3983 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3984 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3985 to enum in m68k-tdep.c
3986
3987 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3988
3989 * solib-osf.c (open_map): Compute the list of shared libraries
3990 loaded by the inferior, rather than the list of libraries loaded
3991 by GDB itself. Otherwise, GDB ends up reading the symbols from
3992 the wrong shared libraries...
3993
3994 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3995
3996 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3997 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3998 macros.
3999 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4000 Remove functions.
4001 (FRAMELESS_SIGNAL): Remove function.
4002 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4003 i386_linux_saved_pc_after_call): Removed.
4004 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4005 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4006 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4007
4008 * i386-tdep.c (i386_frameless_signal_p): New function.
4009 (i386_frame_chain): Deal with frameless signals.
4010 (i386_sigtramp_saved_sp): New function.
4011 (i386_frame_saved_pc): Deal with frameless signals.
4012 (i386_saved_pc_after_call): Make sure the correct value is
4013 returned just after entry into a sigtramp.
4014 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4015 i386fbsd4_sc_sp_offset): New variables.
4016 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4017 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4018 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4019 similiar to what we already did for sc_pc_offset.
4020 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4021 tdep->sc_sp_offset.
4022
4023 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4024
4025 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4026
4027 * config/i386/tm-x86-64linux.h: New.
4028 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4029 definitions.
4030 * config/i386/nm-x86-64.h: Rename to ...
4031 * config/i386/nm-x86-64linux.h: ... this one.
4032 * config/i386/x86-64linux.mh: Reflect the above change.
4033
4034 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4035
4036 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4037 with sigcontext_addr. Add sc_sp_offset.
4038 (i386bsd_sigtramp_saved_pc): Remove prototype.
4039 (i386bsd_sicontext_addr): Add prototype.
4040 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4041 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4042 (i386_svr4_sigtramp_saved_pc): Removed.
4043 (i386_svr4_sigcontext_addr): New function.
4044 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4045 Initialize tdep->sigcontext_addr instead. Initialize
4046 tdep->sc_pc_offset and tdep->sc_sp_offset.
4047 (i386_gdbarch_init): Likewise.
4048 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4049 any more.
4050 (i386bsd_sigtramp_saved_pc): Remove function.
4051 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4052 Initialize tdep->sigcontext_addr instead. Initialize
4053 tdep->sc_pc_offset.
4054 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4055 of tdep->sigtramp_saved_pc.
4056 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4057 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4058 instead.
4059
4060 * i386-tdep.c (i386_frameless_function_invocation,
4061 i386_frame_num_args, i386_frame_init_saved_regs,
4062 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4063 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4064 i386_extract_return_value, i386_store_return_value,
4065 i386_extract_struct_value_address, i386_register_virtual_type,
4066 i386_register_convertible, i386_register_convert_to_virtual,
4067 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4068 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4069 static.
4070
4071 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4072
4073 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4074
4075 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4076 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4077 this macro. Include "value.h".
4078
4079 2002-06-30 Aidan Skinner <aidan@velvet.net>
4080
4081 * ada-exp.tab.c: remove as it's a generated file
4082 * ada-lex.c: remove as it's a generated file
4083
4084 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4085
4086 * config/i386/tm-i386.h (struct frame_info, struct
4087 frame_saved_regs, struct value, struct type): Remove forward
4088 declarations.
4089
4090 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4091 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4092 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4093 (FILL_FPXREGSET): Define.
4094
4095 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4096
4097 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4098 i[3456]86-*-netbsd* case.
4099 * config/i386/tm-obsd.h: Removed.
4100 * config/i386/obsd.mt: Removed.
4101 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4102 core-aout.o.
4103 (MH_CFLAGS): Add -DYYDEBUG=0.
4104
4105 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4106 i386nbsd_sc_pc_offset on OpenBSD too.
4107
4108 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4109 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4110 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4111 define.
4112 * i386bsd-tdep.c: Include "arch-utils.h".
4113 (i386bsd_aout_in_solib_call_trampoline): New function.
4114 (i386bsd_init_abi): Set in_solib_call_trampoline to
4115 i386bsd_aout_in_solib_call_trampoline.
4116 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4117 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4118
4119 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4120
4121 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4122 (struct obstack, struct bcache): Add opaque declarations.
4123 * Makefile.in (macrotab_h): Update
4124
4125 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4126
4127 * blockframe.c (generic_find_dummy_frame): Change return type to
4128 ``struct regcache''.
4129 (struct dummy_frame): Replace field ``registers'' with regcache, a
4130 struct regcache object.
4131 (generic_find_dummy_frame): Update.
4132 (generic_push_dummy_frame): Update. Use regcache_xfree,
4133 regcache_xmalloc and regcache_cpy.
4134 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4135 regcache_xfree.
4136 (deprecated_generic_find_dummy_frame): Update.
4137 (generic_read_register_dummy): Update. Use
4138 regcache_read_as_address.
4139 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4140 (generic_get_saved_register): Update. Use regcache_read.
4141
4142 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4143
4144 * Makefile.in (objfiles_h): Add $(bcache_h).
4145 * objfiles.h: Include "bcache.h".
4146
4147 * Makefile.in (symtab_h): Remove $(bcache_h).
4148 * symtab.h: Do not include "bcache.h".
4149
4150 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4151
4152 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4153 generic_func_frame_chain_valid.
4154
4155 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4156
4157 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4158 * config/i386/tm-fbsd.h: Likewise.
4159
4160 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4161
4162 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4163 generic_unwind_get_saved_register.
4164
4165 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4166
4167 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4168 * regcache.c (supply_register): Add missing argument to
4169 register_buffer call.
4170
4171 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4172
4173 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4174 Solaris /bin/grep does not not like it. From Peter Schauer.
4175
4176 2002-06-26 Tom Tromey <tromey@redhat.com>
4177
4178 * command.h (add_setshow_cmd): Declare.
4179 (add_setshow_cmd_full): Declare.
4180 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4181 returns void. Use add_setshow_cmd_full.
4182 (add_setshow_cmd_full): New function.
4183 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4184 (add_setshow_boolean_cmd): Likewise.
4185
4186 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4187
4188 * config/vax/tm-vax.h: Protect from multiple inclusion.
4189 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4190 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4191 * config/vax/tm-vaxbsd.h: ...here. New file.
4192 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4193
4194 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4195
4196 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4197 (BELIEVE_PCC_PROMOTION): Remove.
4198 (AP_REGNUM): Move to...
4199 * config/vax/nm-vax.h: ...here.
4200 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4201 (vax_breakpoint_from_pc): New function.
4202 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4203 and gdbarch_believe_pcc_promotion.
4204
4205 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4206
4207 * Makefile.in (vax_tdep_h): Define.
4208 (vax-tdep.o): Use $(vax_tdep_h).
4209 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4210 (vax_dump_tdep): New function.
4211 (_initialize_vax_tdep): Register vax_dump_tdep.
4212 * vax-tdep.h: Include osabi.h.
4213 (struct gdbarch_tdep): New.
4214
4215 2002-06-26 Andrew Cagney <cagney@redhat.com>
4216
4217 * frame.h (deprecated_generic_find_dummy_frame): Rename
4218 generic_find_dummy_frame.
4219 * blockframe.c (generic_find_dummy_frame): Make static.
4220 (deprecated_generic_find_dummy_frame): New function.
4221 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4222 generic_find_dummy_frame with deprecated_find_dummy_frame.
4223 (sh64_nofp_frame_init_saved_regs): Ditto.
4224 (sh_fp_frame_init_saved_regs): Ditto.
4225 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4226 (s390_frame_chain): Ditto.
4227 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4228
4229 2002-06-26 Grace Sainsbury <graces@redhat.com>
4230
4231 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4232 gdbarch vector are at the top.
4233 (NUM_REGS): Remove.
4234 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4235 (FRAME_ARGS_ADDRESS): Remove.
4236 (FRAME_LOCALS_ADDRESS): Remove.
4237 (FRAME_NUM_ARGS): Remove.
4238 (FRAME_ARGS_SKIP): Remove.
4239 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4240 (m68k_gdbarch_init): Add gdbarch initializations for macros
4241 undefined in tm-m68k.h
4242
4243 2002-06-26 Grace Sainsbury <graces@redhat.com>
4244
4245 * monitor.h: Add the function regname to monitor_ops
4246 structure. This way NUM_REGS does not have to be a constant.
4247 * monitor.c (monitor_fetch_register): Added support for regname
4248 function. The function is called if the array regnames is NULL.
4249 (monitor_store_register): Same.
4250 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4251 regnames array.
4252 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4253 cpu32bug_cmds.regname to point to new function.
4254 * abug-rom.c (abug_regname): Same as above.
4255 (init_abug_cmds): Same.
4256 * dbug-rom.c (dbug_regname): Same as above.
4257 (init_dbug_cmds): Same.
4258 * remote-est.c (est_regname): Same.
4259 (init_est_cmds): Same.
4260 * rom68k-rom.c (rom68k_regname): Same.
4261 (init_rom68k_cmds): Same.
4262
4263 2002-06-25 Tom Tromey <tromey@redhat.com>
4264
4265 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4266
4267 2002-06-25 Andrew Cagney <cagney@redhat.com>
4268
4269 * infrun.c (stop_registers): Change variable's type to ``struct
4270 regcache'''.
4271 (xmalloc_inferior_status): Delete function.
4272 (free_inferior_status): Delete function.
4273 (normal_stop): Use regcache_cpy.
4274 (struct inferior_status): Change type of fields ``stop_registers''
4275 and ``registers'' to ``struct regcache''.
4276 (write_inferior_status_register): Use regcache_write.
4277 (save_inferior_status): Instead of calling
4278 xmalloc_inferior_status, allocate the inf_status buffer directly.
4279 Use regcache_dup_no_passthrough and regcache_dup to save the
4280 buffers.
4281 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4282 Replace the stop_registers regcache instead of overriding it. Use
4283 regcache_xfree. Instead of calling free_inferior_status, xfree
4284 the buffer directly.
4285 (discard_inferior_status): Use regcache_xfree. Instead of calling
4286 free_inferior_status, xfree the buffer directly.
4287 (build_infrun): Use regcache_xmalloc.
4288 (_initialize_infrun): Delete redundant call to build_infrun.
4289
4290 * Makefile.in (infcmd.o): Add $(regcache_h).
4291
4292 * infcmd.c: Include "regcache.h".
4293 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4294 obtain the address of `stop_registers' register buffer.
4295 (print_return_value): Ditto.
4296
4297 * inferior.h (struct regcache): Add opaque declaration.
4298 (stop_registers): Change variable's declared type to ``struct
4299 regcache''.
4300
4301 2002-06-24 Tom Tromey <tromey@redhat.com>
4302
4303 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4304 * target.c (initialize_targets): Fixed typo in
4305 trust-readonly-sections `show' documentation.
4306
4307 * main.c: Marked all strings with _().
4308
4309 2002-06-24 Don Howard <dhoward@redhat.com>
4310
4311 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4312 that means max CORE_ADDR+1.
4313 (lookup_mem_region): Ditto.
4314 (mem_info_command): Ditto.
4315
4316 2002-06-24 Grace Sainsbury <graces@redhat.com>
4317
4318 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4319 (REGISTER_BYTES_OK): Remove.
4320 (REGISTER_BYTES): Remove.
4321 (STORE_STRUCT_RETURN): Remove.
4322 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4323 (STORE_RETURN_VALUE): Remove.
4324 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4325 (FRAME_CHAIN): Remove.
4326 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4327 (FRAME_SAVED_PC): Remove.
4328 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4329 (m68k_store_struct_return): Add.
4330 (m68k_deprecated_extract_return_value): Add.
4331 (m68k_deprecated_extract_struct_value_address): Add.
4332 (m68k_store_return_value): Add.
4333 (m68k_frame_chain): Add.
4334 (m68k_frameless_function_invocation): Add.
4335 (m68k_frame_saved_pc): Add.
4336 (m68k_gdbarch_init): added set_gdbarch calls for new
4337 functions and deleted macros.
4338
4339 2002-06-23 Tom Tromey <tromey@redhat.com>
4340
4341 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4342 (ALLDEPFILES): Likewise.
4343 (udiheaders): Removed.
4344 (udip2soc.o): Likewise.
4345 (udi2go32.o): Likewise.
4346 (udr.o): Likewise.
4347 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4348
4349 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4350
4351 * infrun.c (_initialize_infrun): Delete unnecessary call to
4352 build_infrun.
4353
4354 * regcache.h: Update comments describing the regcache_cpy family
4355 of functions.
4356 (regcache_save, regcache_restore): Delete declaration.
4357 (regcache_save_no_passthrough): Delete declaration.
4358 (regcache_restore_no_passthrough): Delete declaration.
4359 * regcache.c (regcache_save): Delete function.
4360 (regcache_save_no_passthrough): Delete function.
4361 (regcache_restore): Delete function.
4362 (regcache_restore_no_passthrough): Delete function.
4363
4364 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4365
4366 * config/m68k/tm-m68k.h: Fix typo.
4367 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4368 (m68k_frame_init_saved_regs): Declare.
4369
4370 2002-06-21 Jim Blandy <jimb@redhat.com>
4371
4372 Remove some vestiges of Harris 88k support.
4373 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4374 register numbering quirk.
4375 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4376 odd symbols occurring in Harris 88k ELF targets.
4377
4378 2002-06-21 Tom Tromey <tromey@redhat.com>
4379
4380 * gdb_locale.h: New file.
4381 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4382 (defs_h): Added gdb_locale.h.
4383 * configure, config.in: Rebuilt.
4384 * configure.in (PACKAGE): Define.
4385 * defs.h: Include gdb_locale.h.
4386 * main.c (captured_main): Call setlocale, bindtextdomain,
4387 textdomain.
4388
4389 2002-06-21 Dave Brolley <brolley@redhat.com>
4390
4391 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4392 * config/frv/frv.mt: New file.
4393 * config/frv/tm-frv.h: New file.
4394 * configure.tgt: Support frv-*-*.
4395 * Makefile.in (frv-tdep.o): New target.
4396 * frv-tdep.c: New file.
4397 * NEWS: Mention frv.
4398
4399 2002-06-21 Dave Brolley <brolley@redhat.com>
4400
4401 * MAINTAINERS: Add self to "Write After Approval" list.
4402
4403 2002-06-21 Grace Sainsbury <graces@redhat.com>
4404
4405 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4406 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4407 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4408 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4409 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4410
4411 * m68k-tdep.c: Include arch-utils.h
4412 (m68k_register_raw_size): Add.
4413 (m68k_register_virtual_size): Add.
4414 (m68k_register_virtual_type): Add.
4415 (m68k_register_name): Add.
4416 (m68k_stack_align): Add.
4417 (m68k_register_byte): Add.
4418 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4419 tm-m68k.h.
4420
4421 2002-06-21 Grace Sainsbury <graces@redhat.com>
4422
4423 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4424 m68k_find_saved_regs.
4425 (m68k_pop_frame): Removed saved_regs structure, and replaced
4426 references to it with frame->saved_regs.
4427 (m68k_gdbarch_init): Added function calls to initialize the
4428 gdbarch structure.
4429 (m68k_fix_call_dummy): Add.
4430 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4431 (CALL_DUMMY): Remove.
4432 (CALL_DUMMY_LENGTH): Remove.
4433 (CALL_DUMMY_START_OFFSET): Remove.
4434 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4435 (FIX_CALL_DUMMY): Remove.
4436 (PUSH_DUMMY_FRAME): Remove.
4437 (POP_FRAME): Remove.
4438
4439 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4440
4441 * parse.c (parse_fprintf): New function used to avoid calls to
4442 fprintf in bison parser generated debug code.
4443 * parser-defs.h: Declaration of new parse_fprintf function.
4444 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4445 Set YYDEBUG to 1 by default.
4446 Set YYFPRINTF as parse_fprintf.
4447
4448 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4449
4450 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4451 encoding anymore.
4452 (pointer_encoding, enum ptr_encoding): New.
4453 (execute_cfa_program): Take care about pointer encoding.
4454 (dwarf2_build_frame_info): Only call parse_frame_info for
4455 .debug_frame and .eh_frame.
4456 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4457 fixed augmentation handling, added relative addressing,
4458 ignore duplicate FDEs. Added comments.
4459 * dwarf2cfi.c: Reindented.
4460
4461 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4462
4463 * event-top.c (command_handler): Don't use space_at_cmd_start
4464 unless there is sbrk() on the host. Assign time and space data
4465 to union fields of the appropriate length.
4466
4467 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4468
4469 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4470 x86_64_register_name. Return type changed to 'const char *'.
4471 (x86_64_register_name2nr): Rename to x86_64_register_number.
4472 (x86_64_gdbarch_init): Update to reflect the change.
4473 * x86-64-tdep.h: Ditto.
4474 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4475 (supply_fpregset): Ditto.
4476
4477 2002-06-19 Andrew Cagney <cagney@redhat.com>
4478
4479 * regcache.h: Update copyright.
4480 (struct regcache, struct gdbarch): Add opaque declarations.
4481 (current_regcache): Declare global variable.
4482 (regcache_read, regcache_write): Add gdbarch parameter.
4483 (regcache_save, regcache_save_no_passthrough)
4484 (regcache_restore, regcache_restore_no_passthrough)
4485 (regcache_dup, regcache_dup_no_passthrough)
4486 (regcache_cpy, regcache_cpy_no_passthrough)
4487 (deprecated_grub_regcache_for_registers)
4488 (deprecated_grub_regcache_for_register_valid)
4489 (regcache_valid_p): Add function declarations.
4490
4491 * regcache.c: Update copyright.
4492 (regcache_descr_handle): New global variable.
4493 (struct regcache_descr): Define.
4494 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4495 (regcache_descr, xfree_regcache_descr): New functions.
4496 (struct regcache): Define.
4497 (regcache_xmalloc, regcache_xfree): New functions.
4498 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4499 (regcache_dup, regcache_dup_no_passthrough): New functions.
4500 (regcache_valid_p, regcache_read_as_address): New functions.
4501 (deprecated_grub_regcache_for_registers): New function.
4502 (deprecated_grub_regcache_for_register_valid): New function.
4503 (current_regcache): New global variable.
4504 (register_buffer): Add regcache parameter. Update calls.
4505 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4506 (read_register_gen, write_register_gen): Update register_buffer
4507 call. Test for legacy_p instead of gdbarch_register_read_p or
4508 gdbarch_register_write_p.
4509 (regcache_collect): Update register_buffer call.
4510 (build_regcache): Rewrite. Use deprecated grub functions.
4511 (regcache_save, regcache_save_no_passthrough): New functions.
4512 (regcache_restore, regcache_restore_no_passthrough): New
4513 functions.
4514 (_initialize_regcache): Create the regcache_data_handle. Swap
4515 current_regcache global variable.
4516
4517 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4518 parameter to regcache_read and regcache_write calls.
4519 (sh4_register_read): Ditto.
4520 (sh64_pseudo_register_read): Ditto.
4521 (sh64_register_read): Ditto.
4522 (sh_pseudo_register_write): Ditto.
4523 (sh4_register_write): Ditto.
4524 (sh64_pseudo_register_write): Ditto.
4525 (sh64_register_write): Ditto.
4526
4527 * defs.h (XCALLOC): Define.
4528
4529 2002-06-19 Grace Sainsbury <graces@redhat.com>
4530
4531 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4532 * m68k-tdep.c (m68k_gdbarch_init): Added.
4533 (m68k_dump_tdep): Added.
4534
4535 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4536
4537 * ada-lang.c (fill_in_ada_prototype): Update comment.
4538
4539 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4540
4541 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4542 MIPS_ABI_LAST.
4543 (mips_abi_string, mips_abi_strings): New.
4544 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4545 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4546 tdep->mips_abi_string. Honor mips_abi_string. Default to
4547 O32 if no ABI is found.
4548 (mips_dump_tdep): Use mips_abi_strings.
4549 (mips_abi_update): New function.
4550 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4551 ``set mips abi'' and ``show mips abi''. Check the size of
4552 mips_abi_strings.
4553
4554 2002-06-19 Andrew Cagney <cagney@redhat.com>
4555
4556 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4557 constant.
4558
4559 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4560
4561 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4562 current frame using only the first stack size adjustment. All
4563 subsequent size adjustments are not considered to be part of
4564 the "static" part of the current frame.
4565 Compute the address of the saved registers relative to the
4566 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4567 in use in this frame.
4568
4569 2002-06-18 Don Howard <dhoward@redhat.com>
4570
4571 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4572 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4573 suggesting this solution.
4574
4575 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4576
4577 * config/romp/xm-rtbsd.h: Delete file.
4578 * config/romp/rtbsd.mh: Delete file.
4579
4580 2002-06-18 Keith Seitz <keiths@redhat.com>
4581
4582 * breakpoint.c (condition_command): Post breakpoint_modify
4583 when a condition is added to an existing breakpoint.
4584 (commands_command): Likewise for commands.
4585 (set_ignore_count): Likewise for ignore counts.
4586 If no tty, do not simply return, still need to send event
4587 notification.
4588 (ignore_command): Only print a newline if the command came
4589 from a tty.
4590 Don't call breakpoints_changed, since this is now properly
4591 handled by set_ignore_count.
4592
4593 2002-06-18 Andrew Cagney <cagney@redhat.com>
4594
4595 * MAINTAINERS: Note that cris-elf target can be compiled with
4596 -Werror.
4597 * cris-tdep.c (cris_register_name): Make return type constant.
4598 (cris_breakpoint_from_pc): Ditto.
4599
4600 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4601
4602 * frame.h (struct frame_info): Change type of context to
4603 'struct context'.
4604
4605 2002-06-17 Andrew Cagney <cagney@redhat.com>
4606
4607 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4608 pointer.
4609 * gdbarch.h, gdbarch.c: Regenerate.
4610 * config/mips/tm-mips.h (mips_register_name): Update.
4611 * i386-tdep.h (i386_register_name): Update.
4612 * mips-tdep.c (mips_register_name): Update
4613 * alpha-tdep.c (alpha_register_name): Update.
4614 * arch-utils.c (legacy_register_name): Update.
4615 * arch-utils.h (legacy_register_name): Update.
4616 * avr-tdep.c (avr_register_name): Update.
4617 * ia64-tdep.c (ia64_register_name): Update.
4618 * i386-tdep.c (i386_register_name): Update.
4619 * sparc-tdep.c (sparc32_register_name): Update.
4620 (sparc64_register_name): Update.
4621 (sparclite_register_name): Update.
4622 (sparclet_register_name): Update.
4623 * sh-tdep.c (sh_generic_register_name): Update.
4624 (sh_sh_register_name): Update.
4625 (sh_sh3_register_name): Update.
4626 (sh_sh3e_register_name): Update.
4627 (sh_sh_dsp_register_name): Update.
4628 (sh_sh3_dsp_register_name): Update.
4629 (sh_sh4_register_name): Update.
4630 (sh_sh64_register_name): Update.
4631 * s390-tdep.c (s390_register_name): Update.
4632 * rs6000-tdep.c (rs6000_register_name): Update.
4633 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4634 (ns32k_register_name_32382): Update.
4635 * d10v-tdep.c (d10v_ts2_register_name): Update.
4636 (d10v_ts3_register_name): Update.
4637 * xstormy16-tdep.c (xstormy16_register_name): Update.
4638 * vax-tdep.c (vax_register_name): Update.
4639 * v850-tdep.c (v850_register_name): Update.
4640 * m68hc11-tdep.c (m68hc11_register_name): Update.
4641 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4642 (am33_register_name): Update.
4643
4644 2002-06-17 Grace Sainsbury <graces@redhat.com>
4645
4646 * m68k-tdep.c: Reindented.
4647
4648 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4649
4650 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4651 list of predefined types.
4652
4653 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4654
4655 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4656 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4657 REGISTER_CONVERT_TO_RAW): Remove defines.
4658 (i386_register_virtual_type, i386_register_convertible,
4659 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4660 Remove prototypes.
4661 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4662 macros mentioned above.
4663
4664 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4665 (i386lynx_saved_pc_after_call): Remove prototype.
4666 * i386ly-tdep.c: Include "i386-tdep.h".
4667 (i386lynx_saved_pc_after_call): Make static. Use
4668 read_memory_nobpt instead of read_memory. Use
4669 read_memory_unsigned_integer instead of read_memory_integer.
4670 (i386lynx_init_abi): New function.
4671 (i386lynx_coff_osabi_sniffer): New function.
4672 (_initialize_i386bsd_tdep): New function.
4673
4674 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4675 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4676 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4677 (i386_fix_call_dummy): Remove prototype.
4678 * i386-tdep.c (i386_call_dummy_words): New variable.
4679 (i386_gdbarch_init): Adjust for removal of the
4680 macros mentioned above.
4681
4682 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4683
4684 * command.h (add_setshow_auto_boolean_cmd): Replace
4685 add_set_auto_boolean_cmd.
4686 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4687 add_set_auto_boolean_cmd.
4688 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4689 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4690 mask-address'' command.
4691 (show_mask_address): Add cmd parameter.
4692 * remote.c (add_packet_config_cmd): Update. Change type of
4693 set_func and show_func to cmd_sfunc_ftype.
4694 (_initialize_remote): Update `set remote Z-packet'
4695 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4696 (show_remote_protocol_e_packet_cmd): Ditto.
4697 (show_remote_protocol_E_packet_cmd): Ditto.
4698 (show_remote_protocol_P_packet_cmd): Ditto.
4699 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4700 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4701 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4702 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4703 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4704 (show_remote_protocol_Z_packet_cmd): Ditto.
4705 (show_remote_protocol_binary_download_cmd): Ditto.
4706 (show_remote_cmd): Pass NULL to all of above.
4707
4708 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4709
4710 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4711 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4712 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4713 POP_FRAME): Remove defines.
4714 (i386_push_arguments, i386_store_struct_return,
4715 i386_extract_return_value, i386_store_return_value,
4716 i386_extract_struct_value_address, i386_push_dummy_frame,
4717 i386_pop_frame): Renove prototypes.
4718 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4719 macros mentioned above.
4720
4721 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4722
4723 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4724 add_set_boolean_cmd.
4725 (add_setshow_cmd): New function.
4726 * command.h (add_setshow_boolean_cmd): Replace
4727 add_set_boolean_cmd.
4728 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4729 and ``set rdiromatzero''.
4730 * maint.c (_initialize_maint_cmds): Update commented out code.
4731 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4732 * target.c (initialize_targets): Update `set
4733 trust-readonly-sections'.
4734 * remote.c (_initialize_remote): Update `set remotebreak'.
4735
4736 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4737
4738 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4739 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4740 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4741 fit into multi-arch framework.
4742 (i386_breakpoint_from_pc): New function.
4743 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4744 above.
4745
4746 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4747 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4748 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4749 (i386_frameless_function_invocation, i386_frame_num_args,
4750 i386_frame_init_saved_regs): Remove prototypes.
4751 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4752 macros mentioned above.
4753
4754 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4755
4756 * cli/cli-decode.c (set_cmd_cfunc): Update.
4757 (set_cmd_sfunc): Update.
4758 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4759 (set_cmd_sfunc, set_cmd_cfunc): Update.
4760 * cli/cli-decode.h: Update.
4761
4762 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4763
4764 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4765 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4766
4767 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4768
4769 * defs.h (auto_boolean): Declare enum.
4770 * command.h (cmd_auto_boolean): Delete enum.
4771 * mips-tdep.c (mask_address_var): Update.
4772 (mips_mask_address_p): Update.
4773 (show_mask_address): Update.
4774 * remote.c (struct packet_config): Update.
4775 (update_packet_config): Update.
4776 (show_packet_config_cmd): Update.
4777 (packet_ok): Update.
4778 (add_packet_config_cmd): Update.
4779 (_initialize_remote):
4780 * command.h: Update.
4781 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4782 (do_setshow_command): Update.
4783 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4784 * cli/cli-decode.h: Update.
4785
4786 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4787
4788 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4789 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4790 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4791 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4792 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4793 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4794
4795 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4796 list of DJGPP COFF targets.
4797
4798 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4799 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4800 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4801 (FP0_REGNUM): Remove define.
4802 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4803 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4804 (i386_register_virtual_size): Remove protoype.
4805 * i386-tdep.c (i386_register_virtual_size): Removed.
4806 (i386_extract_return_value, i386_store_return_value): Use
4807 FP0_REGNUM instead of NUM_FREGS to determine whether the
4808 floating-point registers are available.
4809 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4810 Adjust for removal of macros mentioned above.
4811
4812 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4813
4814 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4815 comments.
4816 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4817 Remove prototypes.
4818 (supply_gregset, fill_gregset): Remove use of register keyword and
4819 remove declaration for regmap. Use I386_NUM_GREGS instead of
4820 NUM_REGS and NUM_FREGS.
4821 (FPREGSET_FSAVE_OFFSET): Remove.
4822 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4823 NUM_FREGS to determine whether the floating-point registers are
4824 available.
4825
4826 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4827 gnu_store_registers): Replace usage of NUM_GREGS with
4828 I386_NUM_GREGS.
4829
4830 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4831 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4832 usage of NUM_GREGS with I386_NUM_GREGS.
4833
4834 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4835
4836 * i386bsd-nat.c: Include "i386-tdep.h".
4837 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4838 I386_NUM_GREGS.
4839
4840 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4841 and associated comment. They no longer make any sense, since we
4842 don't use this file anymore on Linux.
4843
4844 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4845 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4846 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4847 elements in these arrays.
4848 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4849 MAX_NUM_REGS.
4850
4851 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4852
4853 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4854 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4855
4856 2002-06-14 Andrew Cagney <cagney@redhat.com>
4857
4858 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4859 EXTRACT_RETURN_VALUE.
4860 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4861 EXTRACT_STRUCT_VALUE_ADDRESS.
4862 * gdbarch.h, gdbarch.c: Regenerate.
4863
4864 * values.c (value_being_returned): Handle
4865 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4866 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4867
4868 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4869 * arm-tdep.c (arm_gdbarch_init): Update.
4870 * avr-tdep.c (avr_gdbarch_init): Update.
4871 * cris-tdep.c (cris_gdbarch_init): Update.
4872 * d10v-tdep.c (d10v_gdbarch_init): Update.
4873 * ia64-tdep.c (ia64_gdbarch_init): Update.
4874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4875 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4876 * s390-tdep.c (s390_gdbarch_init): Update.
4877 * sh-tdep.c (sh_gdbarch_init): Update.
4878 * s390-tdep.c (s390_gdbarch_init): Update.
4879 * sparc-tdep.c (sparc_gdbarch_init): Update.
4880 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4881 * v850-tdep.c (v850_gdbarch_init): Update.
4882 * vax-tdep.c (vax_gdbarch_init): Update.
4883 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4885
4886 * config/arc/tm-arc.h: Update.
4887 * config/d30v/tm-d30v.h: Update.
4888 * config/fr30/tm-fr30.h: Update.
4889 * config/h8300/tm-h8300.h: Update.
4890 * config/h8500/tm-h8500.h: Update.
4891 * config/i386/tm-i386.h: Update.
4892 * config/i386/tm-ptx.h: Update.
4893 * config/i386/tm-symmetry.h: Update.
4894 * config/i960/tm-i960.h: Update.
4895 * config/m32r/tm-m32r.h: Update.
4896 * config/m68k/tm-delta68.h: Update.
4897 * config/m68k/tm-linux.h: Update.
4898 * config/m68k/tm-m68k.h: Update.
4899 * config/m88k/tm-m88k.h: Update.
4900 * config/mcore/tm-mcore.h: Update.
4901 * config/mips/tm-mips.h: Update.
4902 * config/mn10200/tm-mn10200.h: Update.
4903 * config/pa/tm-hppa.h: Update.
4904 * config/pa/tm-hppa64.h: Update.
4905 * config/sparc/tm-sp64.h: Update.
4906 * config/sparc/tm-sparc.h: Update.
4907 * config/sparc/tm-sparclet.h: Update.
4908 * config/z8k/tm-z8k.h: Update.
4909
4910 2002-06-14 Andrew Cagney <cagney@redhat.com>
4911
4912 * Makefile.in (i386_linux_tdep_h): Define.
4913 (i386_tdep_h, i387_tdep_h): Define.
4914 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4915 $(i386_tdep_h) and $(i387_tdep_h).
4916 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4917
4918 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4919
4920 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4921 Already covered by the default.
4922
4923 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4924 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4925 (i386_gdbarch_init): Initialize long_double_format and long_double
4926 bit.
4927
4928 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4929 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4930 Move these to ...
4931 * config/i386/i386sol2.mh: ... here.
4932 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4933 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4934 (SIGCONTEXT_PC_OFFSET): Remove define.
4935 (IN_SIGTRAMP): Remove define.
4936 * i386-sol2-tdep.c: New file.
4937
4938 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4939 * config/i386/tm-i386nw.h: Removed.
4940
4941 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4942 USE_STRUCT_CONVENTION): Remove defines.
4943 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4944 (get_longjmp_target): Remove prototype.
4945 (IN_SIGTRAMP): Remove define.
4946 (i386bsd_in_sigtramp): Remove prototype.
4947 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4948 function. Update comment accordingly
4949 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4950 (FRAME_SAVED_PC): Remove define.
4951 (i386bsd_frame_saved_pc): Remove prototype.
4952 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4953 GET_LONGJMP_TARGET): Remove defines.
4954 (get_longjmp_target): Remove prototype.
4955 (IN_SIGTRAMP): Remove define.
4956 (i386bsd_in_sigtramp): Remove prototype.
4957 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4958 function. Update comment accordingly
4959 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4960 (FRAME_SAVED_PC): Remove define.
4961 (i386bsd_frame_saved_pc): Remove prototype.
4962 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4963 Remove prototype.
4964 (USE_STRUCT_CONVENTION): Remove prototype.
4965 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4966 declaration.
4967 (_initialize_i386bsd_nat): Revise logic to determine some
4968 constants at compile time when compiling a native GDB. Warn if
4969 things don't match up with what we expect.
4970 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4971 Remove variables.
4972 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4973 to use date stored in `struct gdbarch_tdep'.
4974 (i386bsd_sigcontext_offset): Remove varaible.
4975 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4976 stored in `struct gdbarch_tdep'.
4977 (i386bsd_frame_saved_pc): Make static.
4978 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4979 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4980 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4981 i386fbsd4_sc_pc_offset): New variables.
4982 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4983 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4984 functions.
4985 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4986 functions.
4987 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4988 Modify the value of i386fbsd_sigtramp_start and
4989 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4990 i386fbsd_sigtramp_end.
4991 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4992 function.
4993
4994 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4995 define to i386-linux-tdep.h.
4996 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4997 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4998 defines.
4999 (i386_linux_register_name, i386_linux_register_byte,
5000 i386_linux_register_raw_size): Remove prototypes.
5001 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5002 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5003 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5004 TARGET_WRITE_PC): Remove defines.
5005 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5006 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5007 i386_linux_write_pc): Remove prototypes.
5008 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5009 (get_longjmp_target): Remove prototype.
5010 * i386-linux-tdep.h: New file.
5011 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5012 * i386-linux-tdep.c: Include "i386-tdep.h" and
5013 "i386-linux-tdep.h".
5014 (i386_linux_register_name, i386_linux_register_byte,
5015 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5016 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5017 Make static.
5018 (i386_linux_init_abi): New function.
5019 (_initialize_i386_linux_tdep): New function.
5020
5021 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5022 (i386_saved_pc_after_call): Remove prototype.
5023 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5024 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5025 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5026 (i386_register_name, i386_stab_reg_to_regnum,
5027 i386_dwarf_reg_to_regnum): Remove prototypes.
5028 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5029 SIZEOF_SSE_REGS): Remove defines.
5030 (REGISTER_BYTES): Remove define.
5031 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5032 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5033 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5034 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5035 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5036 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5037 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5038 (get_longjmp_target): Remove prototype.
5039 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5040 (sigtramp_saved_pc): Remove define.
5041 (i386v4_sigtramp_saved_pc): Remove prototype.
5042 * config/i386/tm-go32.h (FRAME_CHAIN,
5043 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5044 (i386go32_frame_saved_pc): Remove prototype.
5045 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5046 (get_longjmp_target): Remove prototype.
5047 * i386-tdep.h: Include "osabi.h".
5048 (enum i386_abi): Removed.
5049 (enum struct_return): New enum.
5050 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5051 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5052 sc_pc_offset members.
5053 (i386_gdbarch_register_os_abi): Remove prototype.
5054 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5055 I386_SSE_NUM_REGS): New defines.
5056 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5057 I386_SSE_SIZEOF_REGS): New defines.
5058 (i386_register_name, i386_register_byte, i386_register_raw_size):
5059 New prototypes.
5060 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5061 (i386bsd_sigtramp_saved_pc): New prototype.
5062 * i386-tdep.c: Don't include "elf-bfd.h".
5063 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5064 i386_frame_chain, i386_saved_pc_after_call): Make static.
5065 (i386_frame_saved_pc): Rewrite to call architecture dependent
5066 function to deal with signal handlers. Make static.
5067 (i386go32_frame_saved_pc): Removed.
5068 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5069 Removed.
5070 (i386_get_longjmp_target): New function.
5071 (default_struct_convention, pcc_struct_convention,
5072 reg_struct_convention, valid_conventions, struct_convention): New
5073 variables.
5074 (i386_use_struct_convention): New function.
5075 (i386v4_sigtramp_saved_pc): Renamed to
5076 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5077 (i386_pc_in_sigtramp): New function.
5078 (i386_abi_names): Removed.
5079 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5080 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5081 Removed.
5082 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5083 i386_gdbarch_register_os_abi): Removed.
5084 (struct i386_abi_handler): Removed.
5085 (i386_abi_handler_list): Removed.
5086 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5087 functions.
5088 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5089 i386_nw_init_abi): New functions.
5090 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5091 Use set_gdbarch_xxx() calls instead of relying on macros for a
5092 number of calls.
5093 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5094 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5095 Register the various architecture variants defined in this file.
5096
5097 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5098
5099 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5100 (struct main_type): Remove arg_types member. Update comments for
5101 struct field.
5102 (TYPE_ARG_TYPES): Remove.
5103 (TYPE_FN_FIELD_ARGS): Update.
5104 (smash_to_method_type): Update prototype.
5105
5106 * c-typeprint.c (cp_type_print_method_args): Take method type
5107 instead of argument list. Use new argument layout. Simplify.
5108 (c_type_print_args): Use new argument layout. Simplify.
5109 (c_type_print_base): Update call to cp_type_print_method_args.
5110 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5111 argument; use die->type instead. Update call to
5112 smash_to_method_type.
5113 (read_structure_scope): Update call to dwarf2_add_member_fn.
5114 * gdbtypes.c (allocate_stub_method): Update comment.
5115 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5116 Use new argument layout.
5117 (check_stub_method): Use new argument layout. Don't count
5118 void as an argument.
5119 (print_arg_types): Update comments. Use new argument layout.
5120 (recursive_dump_type): Don't print arg_types member.
5121 * hpread.c (hpread_read_struct_type): Use new argument layout.
5122 (fixup_class_method_type): Likewise.
5123 (hpread_type_lookup): Likewise.
5124 * stabsread.c (read_type): Update calls to read_args and
5125 smash_to_method_type.
5126 (read_args): Use new argument layout. Simplify.
5127 * valops.c (typecmp): Use new argument layout. Update parameters
5128 and comments. Simplify.
5129 (hand_function_call): Use new argument layout.
5130 (search_struct_method): Update call to typecmp.
5131 (find_overload_match): Use new argument layout.
5132
5133 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5134
5135 * NEWS: Mention multithreaded debug support for gdbserver.
5136
5137 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5138
5139 * MAINTAINERS: Mention NEWS.
5140
5141 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5142
5143 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5144 (struct mips_objfile_private, compare_pdr_entries): New.
5145 (non_heuristic_proc_desc): Read the ".pdr" section if it
5146 is present.
5147
5148 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5149
5150 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5151 (arm_debug): New static variable.
5152 (_initialize_arm_tdep): Add ``set debug arm'' command.
5153
5154 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5155
5156 * Makefile.in (sim_arm_h): Define.
5157 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5158 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5159 (arm_register_sim_regno): New function, map an internal REGNUM
5160 onto a simulator register number.
5161 (arm_gdbarch_init): Set register_sim_regno.
5162
5163 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5164
5165 * MAINTAINERS: Add self.
5166
5167 2002-06-11 Jim Blandy <jimb@redhat.com>
5168
5169 * source.c (source_info): Mention whether the symtab has
5170 information about preprocessor macros.
5171
5172 Call the command `info macro', not `show macro'.
5173 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5174 Fix error message.
5175 (_initialize_macrocmd): Register `info_macro_command' in
5176 `infolist', not `showlist'.
5177
5178 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5179
5180 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5181 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5182 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5183 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5184 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5185 unconditionally.
5186 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5187 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5188 (_initialize_mips_tdep): Remove dead code.
5189 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5190 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5191 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5192 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5193 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5194 MIPS_LAST_FP_ARG_REGNUM): Remove.
5195
5196 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5197
5198 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5199 (unwind_tmp_obstack_free, parse_frame_info)
5200 (update_context, cfi_read_fp, cfi_write_fp)
5201 (cfi_frame_chain, cfi_init_extra_frame_info)
5202 (cfi_virtual_frame_pointer): Use the above function.
5203 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5204
5205 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5206
5207 * v850-tdep.c (v850_type_is_scalar): New function.
5208 (v850_use_struct_convention): Match current gcc implementation
5209 as close as possible.
5210 (v850_push_arguments): Fix stack_offset handling. Don't write
5211 struct_addr into register. This is done by v850_store_struct_return.
5212 (v850_extract_return_value): Care for structs.
5213 (v850_store_return_value): Ditto.
5214 (v850_store_struct_return): Actually write address.
5215
5216 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5217
5218 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5219 without debug information too.
5220
5221 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5222
5223 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5224 Make multi-arch pure.
5225 * gdbarch.h, gdbarch.c: Re-generate.
5226 * arm-tdep.c (arm_print_float_info): Update.
5227 * arch-utils.h (default_print_float_info): Update.
5228 * arch-utils.c (default_print_float_info): Update.
5229 * infcmd.c (float_info): Update call.
5230
5231 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5232
5233 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5234 the front of the initialize list.
5235
5236 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5237
5238 * infrun.c (struct inferior_status): Replace fields
5239 selected_frame_address and selected_level with field
5240 selected_frame_id.
5241 (save_inferior_status): Update. Use get_frame_id.
5242 (struct restore_selected_frame_args): Delete.
5243 (restore_selected_frame): Update. Use frame_find_by_id.
5244 (restore_inferior_status): Update.
5245
5246 * breakpoint.h (struct breakpoint): Change type of
5247 watchpoint_frame to frame_id.
5248 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5249 call to get_current_frame.
5250 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5251 get_current_frame.
5252 (watchpoint_check): Use frame_find_by_id.
5253
5254 * frame.h (record_selected_frame): Delete declaration.
5255 * stack.c (record_selected_frame): Delete function.
5256
5257 * frame.h (struct frame_id): Define.
5258 (get_frame_id): Declare.
5259 (frame_find_by_id): Declare.
5260 * frame.c (frame_find_by_id): New function.
5261 (get_frame_id): New function.
5262
5263 2002-06-10 Andrey Volkov <avolkov@transas.com>
5264
5265 * ser-e7kpc.c: Fix duplicated define and call of
5266 _initialize_ser_e7000pc
5267
5268 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5269
5270 * signals/signals.c (target_signal_from_host): Fix #ifdef
5271 SIGRTMIN case.
5272 (do_target_signal_to_host): Likewise.
5273
5274 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5275
5276 * mips-tdep.c (mips_find_abi_section): New function.
5277 (mips_gdbarch_init): Call it.
5278
5279 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5280
5281 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5282 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5283 after Andrew's 2002-06-08 gdbarch change.
5284
5285 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5286
5287 * i386-linux-nat.c (suppy_gregset): Don't supply
5288 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5289 register cache.
5290 (fill_gregset): Don't fetch it under the same circumstances.
5291
5292 2002-06-09 Andrew Cagney <cagney@redhat.com>
5293
5294 * Makefile.in (callback_h): Define.
5295 (remote_sim_h): Update path to remote-sim.h.
5296 (remote-rdp.o): Add $(callback_h).
5297 (remote-sim.o): Use $(callback_h).
5298 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5299 * remote-rdp.c: Include "gdb/callback.h".
5300
5301 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5302
5303 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5304 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5305
5306 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5307
5308 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5309 * rdi-share/serpardr.c: Ditto.
5310 * rdi-share/unixcomm.c: Ditto.
5311 * rdi-share/serdrv.c: Ditto.
5312 * rdi-share/hostchan.h: Ditto.
5313 * rdi-share/hostchan.c: Ditto.
5314 * rdi-share/host.h: Ditto.
5315 * rdi-share/devsw.c: Ditto.
5316
5317 * objfiles.h: Change type of obj_private to void pointer.
5318 * pa64solib.c: Update copyright. Don't include "assert.h", use
5319 strcmp instead of STREQ, use LONGEST, do not use PTR
5320 * somsolib.c: Ditto.
5321
5322 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5323 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5324 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5325
5326 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5327
5328 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5329 (default_get_saved_register): Delete function.
5330 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5331 generic_unwind_get_saved_register.
5332 * gdbarch.h, gdbarch.c: Re-generate.
5333
5334 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5335
5336 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5337 generic_func_frame_chain_valid.
5338 * gdbarch.h, gdbarch.c: Re-generate.
5339 * blockframe.c (generic_func_frame_chain_valid): Only check
5340 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5341 passing FP to PC_IN_CALL_DUMMY.
5342 Fix PR gdb/360.
5343
5344 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5345
5346 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5347 (register_gdbarch_data): Initialize init_p.
5348 (gdbarch_data): Initialize data pointer using the init function.
5349 (init_gdbarch_data): Delete function.
5350 (gdbarch_update_p): Update.
5351 (initialize_non_multiarch): Update.
5352 (struct gdbarch): Add field initialized_p.
5353 * gdbarch.h, gdbarch.c: Re-generate.
5354
5355 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5356
5357 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5358 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5359 better do the things actually here.
5360 * x86-64-tdep.c (x86_64_register_name2nr): New.
5361 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5362 (x86_64_gdbarch_init): Respect the above change.
5363 * x86-64-tdep.h (x86_64_register_name2nr)
5364 (x86_64_register_nr2name): Add prototypes.
5365 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5366
5367 2002-06-06 Michael Snyder <msnyder@redhat.com>
5368
5369 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5370 Delete extra braces and re-indent.
5371 (d10v_store_return_value): Char return values
5372 must be shifted over by one byte in R0.
5373 (d10v_extract_return_value): Delete extra braces, re-indent.
5374
5375 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5376
5377 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5378 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5379 (d10v_integer_to_address): Rewrite.
5380 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5381 the d10v specific functions which take care of converting to the
5382 correct space.
5383
5384 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5385
5386 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5387 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5388
5389 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5390
5391 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5392 includes.
5393 * config/tm-linux.h: Ditto.
5394 * config/alpha/tm-alphalinux.h: Ditto.
5395 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5396 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5397 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5398 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5399 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5400 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5401 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5402 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5403 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5404 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5405 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5406 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5407 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5408 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5409 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5410 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5411 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5412 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5413 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5414 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5415 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5416 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5417 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5418 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5419 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5420 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5421 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5422 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5423 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5424 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5425 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5426 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5427 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5428 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5429 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5430 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5431 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5432
5433 2002-05-04 Aidan Skinner <aidan@velvet.net>
5434
5435 * ada-exp.tab.c: New file
5436 * ada-exp.y: New file
5437 * ada-lang.c: New file
5438 * ada-lang.h: New file
5439 * ada-lex.c: New file
5440 * ada-lex.l: New file
5441 * ada-tasks.c: New file
5442 * ada-typeprint.c: New file
5443 * ada-valprint.c: New file
5444
5445 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5446
5447 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5448 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5449
5450 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5451
5452 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5453 insetead of ppc-linux-tdep.o.
5454 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5455 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5456
5457 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5458
5459 2002-05-07 Christian Groessler <chris@groessler.org>
5460 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5461 bit register contents for little endian hosts.
5462
5463 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5464
5465 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5466 any maintainer.
5467
5468 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5469
5470 * gdbarch.h: Regenerate.
5471
5472 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5473
5474 * MAINTAINERS: Add everyone to write-after-approval list.
5475
5476 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5477
5478 * stack.c (frame_info): Use frame_register_unwind instead of
5479 saved_regs. Mention when the SP is on the stack or in a register.
5480
5481 * frame.h (frame_register_unwind_ftype): Define. Document.
5482 (struct frame_info): Add field register_unwind and
5483 register_unwind_cache.
5484 (frame_register_unwind): Declare.
5485 (generic_unwind_get_saved_register): Declare.
5486
5487 * frame.c (frame_register_unwind): New function.
5488 (generic_unwind_get_saved_register): New function.
5489
5490 * blockframe.c (generic_call_dummy_register_unwind): New function.
5491 (frame_saved_regs_register_unwind): New function.
5492 (set_unwind_by_pc): New function.
5493 (create_new_frame): New function.
5494 (get_prev_frame): New function.
5495
5496 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5497
5498 * a29k-share/: Delete directory.
5499 * remote-vx29k.c: Delete file.
5500
5501 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5502
5503 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5504 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5505
5506 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5507
5508 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5509 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5510 (sparc64nbsd-nat.o)
5511 (sparcnbsd-nat.o)
5512 (sparcnbsd-tdep.o): New dependency lists.
5513 * NEWS: Note new UltraSPARC NetBSD native configuration.
5514 * configure.host (sparc64-*-netbsd*): New host.
5515 * configure.tgt (sparc-*-netbsdelf*)
5516 (sparc-*-netbsd*): Set gdb_target to nbsd.
5517 (sparc64-*-netbsd*): New target.
5518 * sparc64nbsd-nat.c: New file.
5519 * sparcnbsd-nat.c: New file.
5520 * sparcnbsd-tdep.c: New file.
5521 * sparcnbsd-tdep.h: New file.
5522 * config/sparc/nbsd.mt: New file.
5523 * config/sparc/nbsd64.mh: New file.
5524 * config/sparc/nbsd64.mt: New file.
5525 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5526 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5527 (HOST_IPC): Remove.
5528 * config/sparc/nbsdaout.mt: Remove.
5529 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5530 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5531 (HOST_IPC): Remove.
5532 * config/sparc/nbsdelf.mt: Remove.
5533 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5534 sparc-nat.c compatiblity defines.
5535 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5536 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5537 * config/sparc/tm-nbsd64.h: New file.
5538 * config/sparc/tm-nbsdaout.h: Remove.
5539 * config/sparc/xm-nbsd.h: Remove.
5540
5541 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5542
5543 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5544 * sparc-tdep.c: Include osabi.h.
5545 (gdbarch_tdep): Add osabi member.
5546 (_initialize_sparc_tdep): Use gdbarch_register.
5547 (sparc_gdbarch_init): Use generic OS ABI framework.
5548 (sparc_dump_tdep): New function.
5549
5550 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5551
5552 * corefile.c (do_captured_read_memory_integer): Return non-zero
5553 result.
5554 (safe_read_memory_integer): Copy result of memory read when
5555 status is non-zero. Also, add comments.
5556
5557 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5558
5559 * Makefile.in (ppc_tdep_h): Define.
5560 (ppc-linux-nat.o)
5561 (ppc-linux-tdep.o)
5562 (rs6000-tdep.o): Use $(ppc_tdep_h).
5563 (ppc-sysv-tdep.o)
5564 (ppcnbsd-nat.o)
5565 (ppcnbsd-tdep.o): New dependency lists.
5566 * ppc-tdep.h: Use generic OS ABI framework.
5567 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5568 (ppc_linux_init_abi): New functions.
5569 (ppc_sysv_abi_broken_use_struct_convention)
5570 (ppc_sysv_abi_use_struct_convention)
5571 (ppc_sysv_abi_push_arguments): Move to...
5572 * ppc-sysv-tdep.c: ...here.
5573 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5574 * rs6000-tdep.c (process_note_abi_tag_sections)
5575 (get_elfosabi): Remove.
5576 (rs6000_gdbarch_init): Use generic OS ABI framework.
5577 (rs6000_dump_tdep): New function.
5578 (_initialize_rs6000_tdep): Use gdbarch_register.
5579 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5580 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5581 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5582 of ppc-linux-tdep.o.
5583 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5584 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5585 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5586 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5587 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5588 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5589
5590 2002-05-29 Jim Blandy <jimb@redhat.com>
5591
5592 * macroscope.c (default_macro_scope): Put `void' in empty argument
5593 list.
5594
5595 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5596
5597 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5598 * arch-utils.c: Include "sim-regno.h".
5599 * gdbarch.sh: Don't include "sim-regno.h".
5600 * gdbarch.h, gdbarch.c: Regenerate.
5601 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5602 here.
5603 * arch-utils.h (legacy_register_sim_regno): To here.
5604 * remote-sim.c (legacy_register_sim_regno): Move function from
5605 here.
5606 * arch-utils.c (legacy_register_sim_regno): To here.
5607
5608 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5609
5610 * sim-regno.h: New file.
5611 * Makefile.in (sim_regno_h): Define.
5612 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5613 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5614 (legacy_register_sim_regno): New function.
5615 (one2one_register_sim_regno): New function.
5616 (gdbsim_fetch_register): Rewrite.
5617 (gdbsim_store_register): Only store a register when
5618 REGISTER_SIM_REGNO is valid.
5619 * d10v-tdep.c: Include "sim-regno.h".
5620 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5621 (d10v_ts3_register_sim_regno): Ditto.
5622 * gdbarch.sh: Include "sim-regno.h".
5623 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5624 * gdbarch.h, gdbarch.c: Regenerate.
5625 * arch-utils.h (default_register_sim_regno): Delete declaration.
5626 * arch-utils.c (default_register_sim_regno): Delete function.
5627
5628 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5629
5630 * ppcnbsd-nat.c: Rewrite.
5631 * ppcnbsd-tdep.c: New file.
5632 * ppcnbsd-tdep.h: New file.
5633 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5634 solib.o, and solib-svr4.o.
5635 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5636 nbsd-tdep.o, and corelow.o.
5637
5638 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5639
5640 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5641 `tr' and `sed'. Mention that `broken' targets are not expected to
5642 build.
5643
5644 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5645
5646 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5647 Let PC point right after the prologue before looking up symbols.
5648
5649 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5650
5651 * i386-tdep.c (i386_register_virtual_type): Return
5652 builtin_type_vec128i for SSE registers.
5653
5654 * gdbtypes.h (builtin_type_vec128i): Declare.
5655
5656 * gdbtypes.c (build_builtin_type_vec128i): New function.
5657 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5658 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5659 (build_gdbtypes): Initialize new builtin vector types.
5660 (_initialize_gdbtypes): Register new vector types with gdbarch.
5661
5662 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5663
5664 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5665 since it has been multi-arch'd.
5666 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5667 Move Alpha and VAX multi-arch news entries to same section
5668 as other multi-arch news.
5669
5670 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5671
5672 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5673 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5674 static. Rename some register numbers to put them in ns32k-tdep
5675 private namespace.
5676 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5677 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5678 functions.
5679 (_initialize_ns32k_tdep): Use gdbarch_register.
5680 * ns32k-tdep.h: New file.
5681 * ns32knbsd-tdep.c: New file.
5682 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5683 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5684 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5685 REGISTER_BYTES, REGISTER_BYTE): Remove.
5686 * config/ns32k/tm-ns32k.h: New file.
5687 * config/ns32k/tm-umax.h: Remove.
5688
5689 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5690
5691 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5692 ns32k_store_struct_return, ns32k_extract_return_value,
5693 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5694 functions.
5695 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5696 ns32k_saved_pc_after_call.
5697 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5698 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5699 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5700 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5701 ns32k_extract_struct_value_address.
5702
5703 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5704
5705 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5706 ns32k_fix_call_dummy): New.
5707 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5708 ns32k_call_dummy_words.
5709 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5710 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5711 CALL_DUMMY_NARGS): Remove.
5712 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5713
5714 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5715
5716 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5717 ns32k_frame_saved_pc, ns32k_frame_args_address,
5718 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5719 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5720 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5721 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5722 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5723 (BREAKPOINT): Remove..
5724 (FRAME_CHAIN): Define as ns32k_frame_chain.
5725 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5726 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5727 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5728 (FRAME_FIND_SAVED_REGS): Remove.
5729 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5730 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5731 (POP_FRAME): Define as ns32k_pop_frame.
5732
5733 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5734
5735 * ns32k-tdep.c (ns32k_register_byte_32082,
5736 ns32k_register_byte_32382, ns32k_register_raw_size,
5737 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5738 functions.
5739 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5740 ns32k_register_byte_32382.
5741 * config/ns32k/tm-umax.h: Update copyright years.
5742 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5743 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5744 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5745 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5746 (ns32k_get_enter_addr): Fix prototype.
5747
5748 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5749
5750 * ns32k-tdep.c: Update copyright years.
5751 (ns32k_register_name_32082): New function.
5752 (ns32k_register_name_32382): Ditto.
5753 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5754 (REGISTER_NAME): Define as ns32k_register_name_32382.
5755 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5756 (REGISTER_NAME): Define as ns32k_register_name_32082.
5757
5758 2002-05-24 Jim Blandy <jimb@redhat.com>
5759
5760 * dwarf2read.c (free_line_header): Use xfree, not free.
5761
5762 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5763
5764 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5765 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5766
5767 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5768
5769 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5770
5771 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5772
5773 From Ross Alexander at NEC Europe:
5774 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5775
5776 2002-05-23 Michael Snyder <msnyder@redhat.com>
5777
5778 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5779 for input, rather than parse_and_eval_address.
5780
5781 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5782
5783 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5784 * Makefile.in (sim_d10v_h): Update definition.
5785
5786 2002-05-24 Andrew Cagney <cagney@redhat.com>
5787
5788 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5789 change `2002-05-22 Michael Snyder' below.
5790 (d10v_push_arguments): Ditto.
5791 (d10v_extract_return_value): Ditto.
5792
5793 2002-05-23 Jim Blandy <jimb@redhat.com>
5794
5795 * macrotab.c (check_for_redefinition): Don't complain if the new
5796 definition is the same as the previous one. Take more arguments
5797 to allow the comparison.
5798 (macro_define_object, macro_define_function): Pass more arguments
5799 to check_for_redefinition.
5800
5801 2002-05-22 Michael Snyder <msnyder@redhat.com>
5802
5803 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5804 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5805 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5806 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5807 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5808 Add a temp variable to save a call (and a memory read).
5809 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5810 if possible (so that PC_IN_CALL_DUMMY will work).
5811
5812 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5813
5814 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5815
5816 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5817
5818 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5819 fde->cie_ptr.
5820 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5821 (dwarf2_build_frame_info): Add offset to fde->initial_location
5822 so that frames of shared libraries are mapped correctly.
5823 (execute_stack_op): Change type of 'result' from ULONGEST to
5824 CORE_ADDR.
5825
5826 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5827
5828 * config/alpha/tm-nbsd.h: Include solib.h.
5829
5830 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5831
5832 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5833 assumptions about the host's byte order.
5834
5835 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5836
5837 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5838 to dependency list.
5839 * alphanbsd-tdep.c: Include solib-svr4.h.
5840 * shnbsd-tdep.c: Ditto.
5841
5842 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5843
5844 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5845 nbsd-tdep.h to dependency list.
5846 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5847 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5848 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5849 nbsdaout.mh and nbsdelf.mh consistently.
5850 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5851 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5852 nbsdaout.mt and nbsdelf.mh consistently.
5853 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5854 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5855 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5856 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5857 a.out shared library stuff from here...
5858 * config/nm-nbsdaout.h: ...to here.
5859 * config/tm-nbsd.h: Remove.
5860 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5861 * config/arm/nbsd.mh: Remove.
5862 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5863 nbsd-tdep.o.
5864 * config/arm/nbsdaout.mh: New file.
5865 * config/arm/nbsdelf.mh: New file.
5866 * config/arm/nm-nbsdaout.h: New file.
5867 * config/i386/nbsd.mh: Remove.
5868 * config/i386/nbsd.mt: Remove.
5869 * config/i386/nbsdaout.mh: New file.
5870 * config/i386/nbsdaout.mt: New file.
5871 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5872 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5873 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5874 i386_register_u_addr): Remove.
5875 * config/i386/nm-nbsdaout.h: New file.
5876 * config/i386/nm-nbsdelf.h: Remove.
5877 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5878 (USE_STRUCT_CONVENTION): Remove.
5879 * config/i386/tm-nbsdaout.h: New file.
5880 * config/i386/tm-nbsdelf.h: Remove.
5881 * config/m68k/nbsd.mh: Remove.
5882 * config/m68k/nbsd.mt: Remove.
5883 * config/m68k/nbsdaout.mh: New file.
5884 * config/m68k/nbsdaout.mt: New file.
5885 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5886 * config/m68k/nm-nbsdaout.h: New file.
5887 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5888 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5889 * config/ns32k/nbsd.mh: Remove.
5890 * config/ns32k/nbsd.mt: Remove.
5891 * config/ns32k/nbsdaout.mh: New file.
5892 * config/ns32k/nbsdaout.mt: New file.
5893 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5894 * config/ns32k/nm-nbsdaout.h: New file.
5895 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5896 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5897 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5898 (SVR4_SHARED_LIBS): Remove.
5899 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5900 * config/sparc/nbsd.mh: Remove.
5901 * config/sparc/nbsd.mt: Remove.
5902 * config/sparc/nbsdaout.mh: New file.
5903 * config/sparc/nbsdaout.mt: New file.
5904 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5905 * config/sparc/nbsdelf.mt: New file.
5906 * config/sparc/nm-nbsdaout.h: New file.
5907 * config/sparc/nm-nbsdelf.h: Remove.
5908 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5909 * config/sparc/tm-nbsdaout.h: New file.
5910
5911 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5912
5913 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5914 mipsnbsd-tdep.c
5915 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5916
5917 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5920 shnbsd-nat.c.
5921 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5922
5923 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5924
5925 * NEWS: Note new MIPS NetBSD native configuration.
5926 * configure.host (mips*-*-netbsd*): New host.
5927 * configure.tgt (mips*-*-netbsd*): New target.
5928 * mipsnbsd-nat.c: New file.
5929 * mipsnbsd-tdep.c: New file.
5930 * mipsnbsd-tdep.h: New file.
5931 * config/mips/nbsd.mh: New file.
5932 * config/mips/nbsd.mt: New file.
5933 * config/mips/nm-nbsd.h: New file.
5934 * config/mips/tm-nbsd.h: New file.
5935
5936 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5937
5938 * Makefile.in (SFILES): Add osabi.c.
5939 (COMMON_OBS): Add osabi.o.
5940 (osabi.o): New dependency list.
5941 * osabi.c: New file.
5942 * osabi.h: New file.
5943 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5944
5945 * Makefile.in (alpha_tdep_h): Define and use instead of
5946 alpha-tdep.h.
5947 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5948 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5949 Remove.
5950 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5951 * alpha-tdep.h: Include osabi.h.
5952 (alpha_abi): Remove.
5953 (gdbarch_tdep): Use generic OS ABI framework.
5954 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5955 gdbarch_register_osabi.
5956 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5957 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5958 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5959
5960 * Makefile.in (sh_tdep_h): Add osabi.h.
5961 * sh-tdep.h (sh_osabi): Remove.
5962 (gdbarch_tdep): Use generic OS ABI framework.
5963 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5964 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5965 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5966 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5967
5968 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5969 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5970 gdbarch_register_osabi.
5971 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5972 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5973 (get_elfosabi): Rename to...
5974 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5975 ABI framework support routines.
5976 (arm_gdbarch_init): Use generic OS ABI framework.
5977 (arm_dump_tdep): Likewise.
5978 (_initialize_arm_tdep): Likewise.
5979 * arm-tdep.h: Include osabi.h.
5980 (arm_abi): Remove.
5981 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5982 osabi member.
5983 (arm_gdbarch_register_os_abi): Remove prototype.
5984 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5985 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5986
5987 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5988 * mips-tdep.c: Include osabi.h.
5989 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5990 OS ABI framework.
5991
5992 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5993
5994 * h8300-tdep.c: Fix formatting.
5995
5996 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5997
5998 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5999 printing vector registers.
6000
6001 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6002
6003 From Fernando Nasser:
6004 * remote.c (remote_async_open_1): Re-throw the exception when the
6005 connection fails.
6006 (remote_cisco_open): Ditto.
6007 (remote_open_1): Ditto.
6008
6009 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6010
6011 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6012 (remote_start_remote): Add uiout parameter. Pass through to
6013 remote_start_remote_dummy.
6014 (remote_open_1): Use catch_exception instead of catch_errors.
6015 (remote_async_open_1): Ditto.
6016 (remote_cisco_open): Ditto.
6017
6018 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6019
6020 * remote.c (remote_start_remote): Replace PTR with void pointer.
6021 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6022 static.
6023
6024 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6025
6026 * gdb_indent.sh: Allow the script to be run in the sim directory.
6027
6028 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6029
6030 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6031 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6032
6033 * corelow.c (core_open): Only call set_gdbarch_from_file if
6034 exec_bfd is NULL.
6035
6036 2002-05-17 Andrey Volkov <avolkov@transas.com>
6037
6038 * h8300-tdep.c: Add support of EXR register
6039 * config/h8300/tm-h8300.h: Ditto.
6040
6041 2002-05-17 Andrey Volkov <avolkov@transas.com>
6042
6043 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6044
6045 2002-05-17 Andrey Volkov <avolkov@transas.com>
6046
6047 * h8300-tdep.c: Change literal regnums to REGNO.
6048
6049 2002-05-17 Jim Blandy <jimb@redhat.com>
6050
6051 * NEWS: Note addition of macro support.
6052
6053 Expand preprocessor macros in C expressions.
6054 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6055 (scan_macro_expansion, scanning_macro_expansion,
6056 finished_macro_expansion): New function declarations.
6057 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6058 variable declarations.
6059 * parser-defs.h (expression_context_pc): New declaration.
6060 * parse.c (expression_context_pc): New variable.
6061 (parse_exp_1): Set expression_context_pc, as well as
6062 expression_context_block.
6063 * c-exp.y (yylex): If we're not already reading the result of a
6064 macro expansion, try to macro-expand the next token. When we're
6065 done scanning a macro expansion, switch back to the mainline text.
6066 Commas and `if's in a macro's expansion don't terminate the input.
6067 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6068 (macro_original_text, macro_expanded_text,
6069 expression_macro_lookup_func, expression_macro_lookup_baton): New
6070 variables.
6071 (scan_macro_expansion, scanning_macro_expansion,
6072 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6073 c_preprocess_and_parse): New functions.
6074 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6075 c_preprocess_and_parse, instead of c_parse.
6076 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6077 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6078
6079 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6080
6081 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6082 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6083 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6084
6085 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6086
6087 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6088
6089 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * Makefile.in (sh_tdep_h): Define and use.
6092 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6093 register enum): Move to...
6094 * * sh-tdep.h: ...here.
6095 * sh-tdep.c: Include sh-tdep.h.
6096 * sh3-rom.c: Likewise.
6097 * shnbsd-tdep.c: Likewise.
6098
6099 2002-05-16 Michael Snyder <msnyder@redhat.com>
6100
6101 * arm-tdep.c: Spelling fix in comment.
6102
6103 2002-05-16 Jim Blandy <jimb@redhat.com>
6104
6105 Add commands for manually expanding macros and showing their
6106 definitions.
6107 * macrocmd.c, macroscope.c, macroscope.h: New files.
6108 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6109 (macroscope_h): New variable.
6110 (HFILES_NO_SRCDIR): Add macroscope.h.
6111 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6112 (macroscope.o, macrocmd.o): New rules.
6113
6114 Teach the Dwarf 2 reader to read macro information.
6115 * dwarf2read.c: #include "macrotab.h".
6116 (dwarf_macinfo_buffer): New variable.
6117 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6118 dwarf_macinfo_size.
6119 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6120 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6121 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6122 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6123 dwarf2_macro_spaces_in_definition): New complaints.
6124 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6125 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6126 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6127 the partial symbol table.
6128 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6129 from what's recorded in the partial symbol table.
6130 (read_file_scope): If the compilation unit has a
6131 `DW_AT_macro_info' attribute, read its macro information.
6132 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6133
6134 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6135
6136 Fix PR gdb/546
6137 * ser-tcp.c: Don't include <netinet/udp.h>.
6138
6139 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6140
6141 * MAINTAINERS: Update my email address.
6142
6143 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6144
6145 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6146 include file of the same name.
6147
6148 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6149
6150 * configure.tgt: Mark v850 as multi-arched.
6151 * config/v850/tm-v850.h: Remove file.
6152 * config/v850/v850.mt: Eliminate TM_FILE.
6153
6154 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6155
6156 * v850-tdep.c: Full multi-arch.
6157 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6158 Define GDB_MULTI_ARCH to 2.
6159
6160 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6161
6162 * p-exp.y (current_type): New static variable.
6163 Carries the type of the expression at the position that is parsed.
6164 (push_current_type, pop_current_type): Two new functions. Used
6165 to store/restore current_type in expression on specific tokens.
6166 (search_field): New static variable. Set to one after parsing a point
6167 as at that point only a FIELDNAME token should be searched.
6168 (FIELDNAME): New token. After a point only a token belonging to
6169 current_type type definition is allowed.
6170 (all over token rules): reset and change current_type according
6171 to rules.
6172 (exp '[' rule): insert implicit array index field if
6173 exp is a pascal string type.
6174
6175 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6176
6177 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6178 frame info. Use frame_info's saved_regs instead of matching member
6179 in extra_frame_info throughout.
6180 (v850_frame_init_saved_regs): New function.
6181 (v850_init_extra_frame_info): Move most functionality into
6182 v850_frame_init_saved_regs().
6183 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6184 (v850_frame_find_saved_regs): Remove declaration.
6185 (FRAME_FIND_SAVED_REGS): Remove definition.
6186 (v850_frame_init_saved_regs): Add declaration.
6187 (FRAME_INIT_SAVED_REGS): Add definition.
6188
6189 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6190
6191 * v850-tdep.c: Begin multi-arch'ing v850.
6192 (v850_target_architecture_hook): Remove function.
6193 (v850_gdbarch_init): New function. Add code previously in
6194 v850_target_architecture_hook().
6195 (_initialize_v850_tdep): Don't set target_architecture_hook.
6196 Call register_gdbarch_init() instead.
6197
6198 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6199
6200 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6201 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6202 (fixup_class_method_type): Likewise.
6203
6204 2002-05-15 Jim Blandy <jimb@redhat.com>
6205
6206 Add macro structures to GDB's symbol tables. Nobody puts anything
6207 in them yet.
6208 * symtab.h (struct symtab): New member: `macro_table'.
6209 * buildsym.h (pending_macros): New global variable.
6210 * buildsym.c: #include "macrotab.h".
6211 (buildsym_init): Initialize `pending_macros'.
6212 (end_symtab): If we found macro information while reading a CU's
6213 debugging info, do build a symtab structure for it. Make the
6214 symtab point to the macro information, and clear the
6215 `pending_macros' pointer which held it while we were reading the
6216 debug info.
6217 (really_free_pendings): Free any pending macro table.
6218 * objfiles.h (struct objfile): New member: `macro_cache'.
6219 * objfiles.c (allocate_objfile): Set allocate and free functions
6220 for the macro cache's objstack.
6221 (free_objfile): Empty the macro cache's obstack.
6222 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6223 set new allocate and free functions for it.
6224 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6225 free functions for the macro cache's objstack. (Why is this
6226 function building its own objfile?)
6227 * symmisc.c (print_objfile_statistics): Print statistics on the
6228 macro bcache.
6229 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6230
6231 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6232
6233 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6234 (REGISTER_U_ADDR): Delete definition.
6235 (arm_register_u_addr): Delete declaration.
6236
6237 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6238
6239 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6240 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6241
6242 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6243
6244 * regcache.c (register_valid): Revise comments refering to "Not
6245 available" and "unavailable".
6246 * frame.c (frame_register_read): Ditto.
6247 * findvar.c (value_of_register): Ditto.
6248
6249 2002-05-15 Andrew Cagney <cagney@redhat.com>
6250
6251 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6252 (remote-sim.o): Update dependencies.
6253 (d10v-tdep.o): Specify dependencies.
6254 (sim_d10v_h): Define.
6255
6256 2002-05-14 Jim Blandy <jimb@redhat.com>
6257
6258 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6259 * macrotab.c (macro_lookup_inclusion, find_definition,
6260 new_macro_table): Same.
6261
6262 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6263 not `! strcmp ()'. This is a dubious improvement.
6264 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6265
6266 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6267 although it's not necessary, to avoid a warning.
6268
6269 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6270
6271 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6272 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6273 TYPE_INSTANCE_FLAGS.
6274 (struct main_type): New.
6275 (struct type): Move most members to struct main_type. Change
6276 cv_type and as_type to new type_chain member. Add instance_flags.
6277 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6278 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6279 (finish_cv_type): Remove prototype.
6280 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6281 Set TYPE_CHAIN.
6282 (alloc_type_instance): New function.
6283 (smash_type): New function.
6284 (make_pointer_type, make_reference_type, make_function_type)
6285 (smash_to_member_type, smash_to_method_type): Call smash_type.
6286 (make_qualified_type): New function.
6287 (make_type_with_address_space): Call make_qualified_type.
6288 (make_cv_type): Likewise.
6289 (finish_cv_type): Remove unnecessary function.
6290 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6291 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6292 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6293 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6294 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6295 * hpread.c (hpread_read_struct_type): Likewise.
6296 * stabsread.c (read_struct_type): Likewise.
6297
6298 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6299
6300 * configure.tgt: Add a catch all sh* target, for cases like
6301 sh[2,3,4]-elf and sh-hms.
6302
6303 2002-05-14 Keith Seitz <keiths@redhat.com>
6304
6305 * event-loop.c (create_file_handler): Don't do anything but
6306 update data when we are given a fd which we are already
6307 monitoring.
6308
6309 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6310
6311 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6312 (update_context): Use __func__ in warnings.
6313
6314 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6315
6316 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6317 and tcp_close to net_open and net_close.
6318 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6319 using UDP if requested. Don't try to disable Nagle on UDP
6320 sockets.
6321 * remote.c (remote_serial_open): New function. Warn about UDP.
6322 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6323
6324 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6325
6326 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6327
6328 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6329
6330 * configure.tgt: Remove sh-hms target.
6331 * MAINTAINERS: Don't list sh-hms as a separate target.
6332
6333 2002-05-13 Jim Blandy <jimb@redhat.com>
6334
6335 Add first preprocessor macro-expansion files.
6336 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6337 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6338 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6339 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6340 (COMMON_OBS): Add macrotab.o, macroexp.o.
6341 (macroexp.o, macrotab.o): New rules.
6342
6343 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6344
6345 * config/m88k/tm-m88k.h: Update copyright.
6346 (m88k_target_write_pc): Declare
6347 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6348 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6349 (SHIFT_INST_REGS): Update definition.
6350 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6351 using old definition of TARGET_WRITE_PC.
6352 * regcache.c (generic_target_write_pc): Delete code handling
6353 NNPC_REGNUM.
6354 * gdbarch.sh (NNPC_REGNUM): Delete.
6355 * gdbarch.h, gdbarch.c: Regenerate.
6356
6357 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6358
6359 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6360 builtin reg number.
6361
6362 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6363
6364 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6365 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6366 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6367 access macros.
6368 * c-typeprint.c (cp_type_print_method_args): Likewise.
6369 (c_type_print_args): Likewise.
6370 * d10v-tdep.c (d10v_push_arguments): Likewise.
6371 (d10v_extract_return_value): Likewise.
6372 * expprint.c (print_subexp): Likewise.
6373 * gdbtypes.c (lookup_primitive_typename): Likewise.
6374 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6375 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6376 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6377 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6378 (TYPE_VECTOR): Likewise.
6379 * hpread.c (hpread_read_struct_type)
6380 (fix_static_member_physnames, fixup_class_method_type)
6381 (hpread_type_lookup): Likewise.
6382 * mdebugread.c (parse_symbol, parse_type): Likewise.
6383 * p-lang.c (is_pascal_string_type): Likewise.
6384 * valops.c (hand_function_call): Likewise.
6385 * x86-64-tdep.c (classify_argument): Likewise.
6386
6387 * hpread.c (hpread_read_function_type)
6388 (hpread_read_doc_function_type): Call replace_type.
6389 * dstread.c (create_new_type): Delete.
6390 (decode_dst_structure, process_dst_function): Call alloc_type.
6391 Use type access macros.
6392
6393 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6394
6395 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6396 the're not supported by the current architecture.
6397 (i387_fill_fxsave): Likewise.
6398
6399 2002-05-12 Fred Fish <fnf@redhat.com>
6400
6401 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6402 sect_index_xxx members to index the first slot in section_offsets
6403 if all of the section_offsets are zero.
6404
6405 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6406
6407 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6408 checked in with last change.
6409
6410 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6411
6412 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6413 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6414 config.sub.
6415
6416 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6417
6418 * Makefile.in: Update dependencies.
6419
6420 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6421
6422 * language.c (local_hex_string_custom): Simplify. Do not depend
6423 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6424
6425 * memattr.c (mem_info_command): Replace calls to
6426 longest_local_hex_string and longest_local_hex_string_custom.
6427 * buildsym.c (make_blockvector): Ditto.
6428 * solib.c (info_sharedlibrary_command): Ditto.
6429 * tracepoint.c (tracepoints_info): Ditto.
6430 * symtab.c (print_msymbol_info): Ditto.
6431
6432 * language.c (local_hex_string): Delete.
6433 (local_hex_string_custom): Delete.
6434 (longest_local_hex_string): Rename to local_hex_string.
6435 (longest_local_hex_string_custom): Rename to
6436 local_hex_string_custom.
6437 * language.h (local_hex_string): Change parameter type to LONGEST.
6438 (local_hex_string_custom): Ditto.
6439 (longest_local_hex_string): Delete declaration.
6440 (longest_local_hex_string_custom): Ditto.
6441
6442 * solib.c: Update copyright.
6443 * memattr.c: Update copyright.
6444
6445 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6446
6447 * arch-utils.h (legacy_register_to_value): Declare.
6448 (legacy_value_to_register): Declare.
6449 (legacy_convert_register_p): Declare.
6450 * arch-utils.c (legacy_register_to_value): New function.
6451 (legacy_value_to_register): New function.
6452 (legacy_convert_register_p): New function.
6453
6454 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6455 (VALUE_TO_REGISTER): Define.
6456 (CONVERT_REGISTER_P): Define.
6457 * gdbarch.h, gdbarch.c: Regenerate.
6458
6459 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6460 VALUE_TO_REGISTER.
6461 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6462 CONVERT_REGISTER_P.
6463
6464 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6465 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6466
6467 * Makefile.in: Update dependencies for valops.c.
6468 * valops.c: Include "gdb_assert.h".
6469 (typecmp): Skip THIS parameter to methods.
6470 (find_method_list): Remove static_memfuncp argument,
6471 update callers. Check for stub methods.
6472 (find_value_oload_method_list): Don't set *static_memfuncp.
6473 (find_overload_match): Don't check for stub methods. Assert
6474 that methods are not stubbed. Handle static methods.
6475 (value_find_oload_method_list): Remove static_memfuncp argument.
6476 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6477 to the argument list for static stub methods.
6478 * value.h (value_find_oload_method_list): Update prototype.
6479
6480 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6481
6482 * arch-utils.h (generic_register_size): Declare.
6483 (generic_register_raw_size, generic_register_virtual_size): Delete
6484 declarations.
6485 * arch-utils.c (generic_register_raw_size): Delete.
6486 (generic_register_size): New function.
6487 (generic_register_virtual_size): Delete.
6488
6489 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6490 default generic_register_size.
6491 * gdbarch.h, gdbarch.c: Re-generate.
6492
6493 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6494 register_virtual_size.
6495 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6496 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6497
6498 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6499
6500 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6501 * gdbarch.h, gdbarch.c: Regenerate.
6502 * gnu-v3-abi.c: Update copyright.
6503 (vtable_address_point_offset): Update.
6504 (gnuv3_rtti_type): Update.
6505 (gnuv3_baseclass_offset): Update.
6506 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6507 (init_fetch_link_map_offsets): Update.
6508 * remote.c (get_remote_state): Update.
6509
6510 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6511
6512 * TODO: Remove value_headof/value_from_vtable_info comment.
6513 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6514 * values.c (value_headof, value_from_vtable_info): Delete.
6515 * value.h (value_from_vtable_info): Delete prototype.
6516
6517 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6518
6519 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6520 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6521 $(gdb_regex_h).
6522 (gdb_assert_h): Define.
6523 (gdb_wait_h): Define.
6524 (gdb_regex_h): Define.
6525
6526 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6527
6528 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6529 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6530
6531 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6532
6533 * nbsd-tdep.c: Fix comment.
6534
6535 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6536
6537 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6538 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6539 (nbsd-tdep.o): New dependency list.
6540 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6541 nbsd-tdep.h.
6542 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6543 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6544 * nbsd-tdep.c: New file.
6545 * nbsd-tdep.h: New file.
6546 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6547 nbsd-tdep.h.
6548 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6549 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6550 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6551 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6552
6553 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6554
6555 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6556 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6557 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6558 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6559 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6560 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6561
6562 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6563
6564 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6565 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6566 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6567 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6568 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6569 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6570 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6571
6572 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6573
6574 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6575 fetch_elfcore_registers to...
6576 * i386nbsd-tdep.c: ...here.
6577 (i386nbsd_use_struct_convention): Rename to...
6578 (i386nbsd_aout_use_struct_convention): ...this.
6579 (i386nbsd_supply_reg): New function.
6580 (i386nbsd_fill_reg): New function.
6581 (fetch_core_registers): Use i386nbsd_supply_reg.
6582 (fetch_elfcore_registers): Likewise.
6583 (_initialize_i386nbsd_tdep): New function.
6584 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6585 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6586 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6587 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6588 (i386nbsd_aout_use_struct_convention): ...this.
6589
6590 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6591
6592 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6593 (store_inferior_registers): Use shnbsd_fill_reg.
6594 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6595 sh_nbsd_supply_register): Collapse into...
6596 (shnbsd_supply_reg): ...this.
6597 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6598 (shnbsd_fill_reg): ...this.
6599 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6600 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6601 (fetch_core_registers): Use shnbsd_supply_reg.
6602 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6603 (sh_nbsd_core_fns): Rename to...
6604 (shnbsd_core_fns): ...this.
6605 (sh_nbsd_elfcore_fns): Rename to...
6606 (shnbsd_elfcore_fns): ...this.
6607 (sh_nbsd_init_abi): Rename to...
6608 (shnbsd_init_abi): ...this.
6609 (_initialize_sh_nbsd_tdep): Rename to...
6610 (_initialize_shnbsd_tdep): ...this.
6611 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6612 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6613 sh_nbsd_fill_register): Remove prototypes.
6614 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6615
6616 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6617
6618 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6619 (i387-nat.o): Delete dependency list.
6620 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6621 (x86-64-linux-nat.o): Likewise.
6622 * i387-nat.c: Delete file, moving contents to...
6623 * i387-tdep.c: ...here.
6624 * i387-nat.h: Rename...
6625 * i387-tdep.h: ...to this.
6626 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6627 * i386-linux-nat.c: Likewise.
6628 * i386bsd-nat.c: Likewise.
6629 * i386gnu-nat.c: Likewise.
6630 * i386nbsd-nat.c: Likewise.
6631 * i386v4-nat.c: Likewise.
6632 * x86-64-linux-nat.c: Likewise.
6633 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6634 * config/i386/go32.mh (NATDEPFILES): Likewise.
6635 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6636 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6637 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6638 * config/i386/linux.mh (NATDEPFILES): Likewise.
6639 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6640 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6641 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6642 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6643
6644 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6645
6646 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6647 (alphanbsd-nat.o): Remove dependency list.
6648 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6649 * alphanbsd-nat.c: Delete. Contents moved to...
6650 * alphanbsd-tdep.c: ...here.
6651 (_initialize_alphanbsd_tdep): Register core functions.
6652 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6653
6654 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6655
6656 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6657 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6658 (alphanbsd-nat.o): Likewise.
6659 (alphabsd-tdep.o): New dependency list.
6660 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6661 (fill_gregset): Use alphabsd_fill_reg.
6662 (supply_fpregset): Use alphabsd_supply_fpreg.
6663 (fill_fpregset): Use alphabsd_fill_fpreg.
6664 (fetch_inferior_registers): Use struct reg and struct fpreg
6665 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6666 and alphabsd_supply_fpreg.
6667 (store_inferior_registers): Use struct reg and struct fpreg
6668 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6669 and alphabsd_fill_fpreg.
6670 * alphabsd-tdep.c: New file.
6671 * alphabsd-tdep.h: New file.
6672 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6673 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6674 alphabsd_supply_fpreg.
6675 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6676 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6677
6678 2002-05-11 Eric Christopher <echristo@redhat.com>
6679
6680 * mips-tdep.c (mips_double_register_type): Fix thinko.
6681 (mips_single_register_type): Ditto.
6682 * MAINTAINERS: Add self.
6683
6684 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6685
6686 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6687 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6688 right thing on architectures with different endianness and/or
6689 integer sizes.
6690
6691 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6692
6693 From Christian Limpach <chris@Pin.LU>
6694 * configure.in: Change sed expression which comments out
6695 NATDEPFILES to also comment out continuation lines.
6696 * configure: Regenerate.
6697
6698 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6699
6700 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6701 big patch.
6702
6703 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6704
6705 * sh-tdep.c: Include correct file.
6706
6707 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6708
6709 New support for sh64-elf (sh5) target.
6710
6711 * configure.tgt: For sh64-elf target, default to sh-elf.
6712
6713 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6714 (struct gdbarch_tdep): Add new fields for new registers and ABI
6715 info.
6716
6717 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6718 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6719 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6720 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6721 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6722 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6723 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6724 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6725 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6726 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6727 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6728 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6729 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6730 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6731 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6732 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6733 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6734 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6735 sign_extend, sh64_nofp_frame_init_saved_regs,
6736 sh64_init_extra_frame_info, sh64_get_saved_register,
6737 sh64_extract_struct_value_address, sh64_pop_frame,
6738 sh64_push_arguments, sh64_extract_return_value,
6739 sh64_store_return_value, sh64_show_media_regs,
6740 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6741 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6742 sh_sh64_register_virtual_type,
6743 sh_sh64_register_convert_to_virtual,
6744 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6745 sh64_register_read, sh64_pseudo_register_write,
6746 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6747 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6748 sh64_do_pseudo_register, sh_compact_do_registers_info,
6749 sh64_do_registers_info, sh_gdbarch_init): New functions.
6750
6751 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6752
6753 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6754
6755 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6756
6757 * linespec.c (decode_line_1): Check for a double quote after
6758 a filename correctly.
6759
6760 2002-05-10 Jim Blandy <jimb@redhat.com>
6761
6762 Properly track the size of the current objfile's .debug_line section.
6763 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6764 (DWARF_LINE_SIZE): New macro.
6765 (dwarf2_build_psymtabs_hard): Record the line section's size in
6766 the partial symbol table.
6767 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6768 symbol table.
6769
6770 2002-05-10 Petr Sorfa <petrs@caldera.com>
6771
6772 * ia64-tdep.c: Handle breakpoints on L instruction type
6773 in MLX instruction bundle by moving the breakpoint to
6774 the third slot (X instruction type) as L holds only data.
6775
6776 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6777
6778 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6779 (process_one_symbol): Complain about discarding local symbols
6780 due to a misplaced N_LBRAC entry.
6781
6782 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6783
6784 From Daniel Berlin <dan@cgsoftware.com>
6785 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6786 decrease the depth we are at, in the case of templates.
6787
6788 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6789
6790 * mips-tdep.c (mips_float_register_type): New function.
6791 (mips_double_register_type): New function.
6792 (mips_print_register): Use them.
6793 (do_fp_register_row): Likewise.
6794
6795 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6796
6797 * signals/signals.c (signals): Remove conditional compilation around
6798 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6799 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6800
6801 2002-05-09 Michael Snyder <msnyder@redhat.com>
6802
6803 * remote-rdp.c (remote_rdp_can_run): Remove.
6804
6805 2002-05-09 Tom Tromey <tromey@redhat.com>
6806
6807 * jv-valprint.c (java_val_print): Handle `char' as a special case
6808 of TYPE_CODE_INT.
6809
6810 2002-05-09 Michael Snyder <msnyder@redhat.com>
6811
6812 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6813 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6814 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6815 str r(0123),[sp,#nn].
6816 (arm_skip_prologue): Ditto. Also make disassembly
6817 order-independent by placing it in a loop.
6818
6819 2002-05-06 Michael Snyder <msnyder@redhat.com>
6820
6821 * stabsread.c (read_type): Add recognition for new attribute:
6822 "@V;" means that an array type is actually a vector.
6823 This is analogous to the vector flag that's been added to dwarf2.
6824
6825 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6826
6827 * i386-tdep.h (i386_abi): New enum.
6828 (struct gdbarch_tdep): Replace os_ident member with abi.
6829 (i386_gdbarch_register_os_abi): New prototype.
6830 * i386-tdep.c (i386_abi_names): New array.
6831 (process_note_abi_tag_sections): Removed.
6832 (process_note_sections): New function.
6833 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6834 (struct i386_abi_handler): New struct.
6835 (i386_abi_handler_list): New variable.
6836 (i386_gdbarch_register_os_abi): New function.
6837 (i386_gdbarch_init): Adapt for the changes given above.
6838
6839 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6840
6841 * gregset.h: Say "GNU/Linux".
6842
6843 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6844
6845 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6846 (build_gdbtypes): Build builtin_type_v2_float.
6847 (_initialize_gdbtypes): Register new builtin type.
6848
6849 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6850
6851 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6852 (clear_gdbarch_swap): New function.
6853 (initialize_non_multiarch): Call.
6854 (gdbarch_update_p): Before calling init(), swap out and clear the
6855 existing architecture.
6856 * gdbarch.c: Regenerate.
6857
6858 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6859
6860 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6861 alphanbsd-tdep.c.
6862
6863 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6864
6865 * sh-nbsd-nat.c: Rename to...
6866 * shnbsd-nat.c: ...this.
6867 * sh-nbsd-tdep.c: Rename to...
6868 * shnbsd-tdep.c: ...this.
6869 * sh-nbsd-tdep.h: Rename to...
6870 * shnbsd-tdep.h: ...this.
6871 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6872 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6873
6874 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6875
6876 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6877 concatenation for command help messages.
6878
6879 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6880
6881 * NEWS: Note new sh*-*-netbsdelf* configuration.
6882 * configure.host: Set gdb_host_cpu to sh for all sh*.
6883 (sh*-*-netbsdelf*): New host.
6884 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6885 (sh*-*-netbsdelf*): New target.
6886 * sh-nbsd-nat.c: New file.
6887 * sh-nbsd-tdep.c: New file.
6888 * sh-nbsd-tdep.h: New file.
6889 * config/sh/nbsd.mh: New file.
6890 * config/sh/nbsd.mt: New file.
6891 * config/sh/nm-nbsd.h: New file.
6892 * config/sh/tm-nbsd.h: New file.
6893
6894 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6895
6896 * sh-tdep.c (sh_osabi_names): Declare.
6897 (process_note_abi_tag_sections): New function.
6898 (get_elfosabi): Ditto.
6899 (sh_gdbarch_register_os_abi): Ditto.
6900 (sh_dump_tdep): Ditto.
6901 _initialize_sh_tdep): Use gdbarch_register to register
6902 sh_gdbarch_init and sh_dump_tdep.
6903 * config/sh/tm-sh.h (sh_osabi): Declare.
6904 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6905
6906 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6907
6908 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6909 (thumb_scan_prologue): Ditto.
6910 (arm_find_callers_reg): Ditto.
6911 (arm_frame_chain): Ditto.
6912 (arm_init_extra_frame_info): Ditto.
6913 (arm_frame_saved_pc): Ditto.
6914 (arm_pop_frame): Ditto.
6915 (arm_push_return_address): New function.
6916 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6917 call_dummy_location, call_dummy_breakpoint_offset_p,
6918 call_dummy_breakpoint_offset, call_dummy_p,
6919 call_dummy_stack_adjust_p, call_dummy_words,
6920 sizeof_call_dummy_words, call_dummy_start_offset,
6921 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6922 call_dummy_address, push_return_address and push_dummy_frame for
6923 generic dummy frames.
6924
6925 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6928 size computation for alloca.
6929 (sh_fp_frame_init_saved_regs): Likewise.
6930
6931 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6932
6933 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6934 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6935 * arm-tdep.c (arm_store_return_value): Use them.
6936 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6937 * remote-rdp.c (remote_rdp_fetch_register): Use
6938 ARM_MAX_REGISTER_RAW_SIZE.
6939 (remote_rdp_store_register): Likewise.
6940
6941 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6942
6943 * dwarf2cfi.c: Code cleanup, removed unused variables,
6944 added default labels to switch {} statements.
6945 * x86-64-tdep.c: Ditto.
6946 * x86-64-linux-nat.c: Ditto.
6947
6948 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6949
6950 * solib.h: Protect against multiple inclusion.
6951
6952 2002-05-06 Jim Blandy <jimb@redhat.com>
6953
6954 Add first preprocessor macro-expansion files.
6955 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6956 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6957 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6958 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6959 (COMMON_OBS): Add macrotab.o, macroexp.o.
6960 (macroexp.o, macrotab.o): New rules.
6961
6962 Separate the job of reading the line number info statement program
6963 header (...expialidocious) out into its own function.
6964 * dwarf2read.c (struct line_head, struct filenames, struct
6965 directories): Replace with...
6966 (struct line_header): New structure, containing the full
6967 contents of the statement program header, including the
6968 include directory and file name tables.
6969 (read_file_scope): If we have line number info, instead of just
6970 calling dwarf_decode_lines to do all the work, call
6971 dwarf_decode_line_header first to get a `struct line_header'
6972 containing the data in the statement program header, and then
6973 pass that to dwarf_decode_lines, which will pick up where that
6974 left off. Be sure to clean up the `struct line_header' object.
6975 (dwarf_decode_line_header, free_line_header, add_include_dir,
6976 add_file_name): New functions.
6977 (dwarf_decode_lines): Move all the code to read the statement
6978 program header into dwarf_decode_line_header. Take the line
6979 header it built as the first argument, instead of the offset to
6980 the compilation unit's line number info. Use the new `struct
6981 line_header' type instead of the old structures. No need to do
6982 cleanups here now, since we don't allocate anything.
6983 (dwarf2_statement_list_fits_in_line_number_section,
6984 dwarf2_line_header_too_long): New complaints.
6985
6986 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6987
6988 * gdbtypes.c (init_vector_type): New function.
6989 (build_builtin_type_vec128): Simplify the representation of SIMD
6990 registers.
6991 (build_gdbtypes): Initialize new builtin vector types.
6992 (_initialize_gdbtypes): Register new vector types with gdbarch.
6993 (builtin_type_v4_float, builtin_type_v4_int32,
6994 builtin_type_v8_int16, builtin_type_v16_int8,
6995 builtin_type_v2_int32, builtin_type_v4_int16,
6996 builtin_type_v8_int8): New (renamed) SIMD types.
6997
6998 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6999
7000 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7001 (i387_fill_fxsave): Likewise.
7002
7003 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7004
7005 * alpha-tdep.c (alpha_extract_return_value): Don't use
7006 non-constant array size in prototype.
7007
7008 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7009
7010 From Brian Taylor <briant at model dot com>:
7011 * ui-out.c (ui_out_field_core_addr): Use the function
7012 longest_local_hex_string_custom'to format addresses > 32 bits
7013 wide.
7014
7015 * ui-out.c (ui_out_field_core_addr): Update comment.
7016
7017 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7018
7019 * stack.c (select_and_print_frame): Make static. Delete the
7020 parameter `level'.
7021 (func_command): Update call.
7022 (select_frame_command): Delete code computing the frame level.
7023 * frame.h (select_and_print_frame): Delete declaration.
7024
7025 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7026
7027 * sparc-tdep.c (sparc_get_saved_register): Comment why
7028 get_prev_frame call is safe.
7029
7030 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7031
7032 * frame.h (select_frame): Delete level parameter.
7033 * stack.c (select_frame): Update. Use frame_relative_level to
7034 obtain the frame's level.
7035 (select_and_print_frame): Update call.
7036 (select_frame_command): Ditto.
7037 (up_silently_base): Ditto.
7038 (down_silently_base): Ditto.
7039 * ocd.c (ocd_start_remote): Ditto.
7040 * remote-rdp.c (remote_rdp_open): Ditto.
7041 * remote-mips.c (mips_initialize): Ditto.
7042 (common_open): Ditto.
7043 * remote-e7000.c (e7000_start_remote): Ditto.
7044 * m3-nat.c (select_thread): Ditto.
7045 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7046 (child_get_current_exception_event): Ditto.
7047 * varobj.c (varobj_create): Ditto.
7048 (varobj_update): Ditto.
7049 (c_value_of_root): Ditto.
7050 * tracepoint.c (finish_tfind_command): Ditto.
7051 * corelow.c (core_open): Ditto.
7052 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7053 * thread.c (info_threads_command): Ditto.
7054 (switch_to_thread): Ditto.
7055 * infrun.c (normal_stop): Ditto.
7056 (restore_selected_frame): Ditto.
7057 (restore_inferior_status): Ditto.
7058 * breakpoint.c (insert_breakpoints): Ditto.
7059 (watchpoint_check): Ditto.
7060 (bpstat_stop_status): Ditto.
7061 (do_enable_breakpoint): Ditto.
7062 * blockframe.c (flush_cached_frames): Ditto.
7063 (reinit_frame_cache): Ditto.
7064
7065 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7066
7067 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7068 maintainer.
7069
7070 2002-05-04 Jim Blandy <jimb@redhat.com>
7071
7072 * gdbtypes.c (replace_type): Doc fix.
7073
7074 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7075
7076 * valprint.c (strcat_longest): Delete commented out function.
7077 Update copyright.
7078
7079 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7080
7081 * MAINTAINERS: Mark a29k as deleted.
7082 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7083 Move new configurations to the top.
7084 * configure.tgt: Remove a29k.
7085 * config/a29k/tm-vx29k.h: Delete.
7086 * config/a29k/vx29k.mt: Delete.
7087 * config/a29k/tm-a29k.h: Delete.
7088 * config/a29k/a29k-udi.mt: Delete.
7089 * config/a29k/a29k.mt: Delete.
7090 * a29k-tdep.c: Delete.
7091 * remote-udi.c: Delete.
7092 * remote-mm.c: Delete.
7093 * remote-eb.c: Delete.
7094 * remote-adapt.c: Delete.
7095 * Makefile.in: Remove obsolete code.
7096 * config/s390/s390x.mt: Ditto.
7097 * config/s390/s390.mt: Ditto.
7098 * config/sparc/sparclynx.mh: Ditto.
7099 * config/sparc/linux.mh: Ditto.
7100 * config/pa/hppaosf.mh: Ditto.
7101 * config/pa/hppabsd.mh: Ditto.
7102 * config/ns32k/nbsd.mt: Ditto.
7103 * config/mips/vr5000.mt: Ditto.
7104 * config/m68k/sun3os4.mh: Ditto.
7105 * config/m68k/nbsd.mt: Ditto.
7106 * config/m68k/m68klynx.mh: Ditto.
7107 * config/m32r/m32r.mt: Ditto.
7108 * config/i386/x86-64linux.mt: Ditto.
7109 * config/i386/nbsdelf.mt: Ditto.
7110 * config/i386/nbsd.mt: Ditto.
7111 * config/i386/i386lynx.mh: Ditto.
7112
7113 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7114
7115 * target.c (debug_print_register): New function. Handle oversize
7116 registers.
7117 (debug_to_fetch_registers): Call.
7118 (debug_to_store_registers): Call.
7119
7120 2002-05-03 Jim Blandy <jimb@redhat.com>
7121
7122 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7123 (read_type): Doc fix.
7124 * gdbtypes.c (replace_type): Doc fix.
7125
7126 * stabsread.c (multiply_defined_struct): New complaint.
7127 (read_struct_type): If the type we were passed isn't empty, or
7128 incomplete, don't read the new struct type into it; complain,
7129 and return the original type unchanged. Take a new `type_code'
7130 argument, which is the type code for the new type.
7131 (read_type): Rather than storing the type's type code here, pass
7132 it as an argument to read_struct_type, and let that take care of
7133 storing it. That way, we don't overwrite the original type code,
7134 so read_struct_type can use it to decide whether we're overwriting
7135 something we shouldn't.
7136 (complain_about_struct_wipeout): New function.
7137
7138 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7139
7140 * gdbarch.sh: Assert that gdbarch is non-NULL.
7141 * gdbarch.c: Regenerate.
7142
7143 2002-05-03 Jason Merrill <jason@redhat.com>
7144
7145 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7146 and return NULL.
7147
7148 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7149
7150 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7151 (x86_64_dwarf2gdb_regno_map_length),
7152 (x86_64_dwarf2_reg_to_regnum): Added.
7153 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7154 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7155 (_initialize_x86_64_tdep): Synced with the change above.
7156 (x86_64_skip_prologue): Reformulated message.
7157
7158 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7159
7160 * f-exp.y: Also use new prev_lexptr variable
7161 to improve error reporting. Based on Michael Snyder
7162 2002-04-24 dated patch to c-exp.y.
7163 * jv-exp.y: Likewise.
7164 * m2-exp.y: Likewise.
7165
7166 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7167
7168 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7169 we are dealing with vectors.
7170
7171 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7172
7173 * config/m68k/tm-nbsd.h: Obvious fix,
7174 correct machine name.
7175
7176 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7177
7178 * p-typeprint.c (pascal_type_print_base): Add support
7179 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7180
7181 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7182
7183 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7184 for fondamental pascal 'char' type.
7185
7186 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7187
7188 * p-lang.h (is_pascal_string_type): Declaration changed,
7189 new sixth argument of type char ** added.
7190 * p-lang.c (is_pascal_string_type): Implementation
7191 changed. Args length_pos, length_size, string_pos, char_size
7192 can now be NULL. New argument arrayname set to the field
7193 name of the char array. Return value set to char array
7194 field index plus one.
7195 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7196 is_pascal_string_type function.
7197
7198 2002-05-02 Andrew Cagney <cagney@redhat.com>
7199
7200 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7201 <cagney@redhat.com> change.
7202 * gdbarch.c: Regenerate.
7203
7204 2002-05-02 Andrew Cagney <cagney@redhat.com>
7205
7206 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7207 before probing for a new one. Detect errorenous gdbarch_init
7208 functions.
7209 * gdbarch.c: Regenerate.
7210
7211 2002-05-01 Andrew Cagney <cagney@redhat.com>
7212
7213 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7214 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7215 * config/v850/tm-v850.h: Ditto. Update copyright.
7216
7217 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7218
7219 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7220 current_gdbarch.
7221
7222 2002-04-30 Michael Snyder <msnyder@redhat.com>
7223
7224 * arm-tdep.c: Whitespace clean-ups.
7225 (arm_skip_prologue): Fix thinko; two lines
7226 should have been removed as part of 4/24 change.
7227
7228 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7229
7230 * rs6000-tdep.c: Added comment describing how fpscr register
7231 numbers were chosen.
7232
7233 2002-04-30 Michael Snyder <msnyder@redhat.com>
7234
7235 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7236
7237 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7238
7239 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7240 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7241 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7242
7243 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7244
7245 From Louis Hamilton <hamilton@redhat.com>:
7246 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7247 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7248 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7249 not bfd-private xcoff data, to determine wordsize.
7250 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7251
7252 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7253
7254 GDB 5.2 released from 5.2 branch.
7255
7256 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7257
7258 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7259 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7260 (x86_64_register_info_table): Added comments with register numbers.
7261
7262 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7263
7264 * rs6000-tdep.c (rs6000_extract_return_value,
7265 rs6000_store_return_value): Handle returning vectors.
7266 (rs6000_gdbarch_init): Use
7267 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7268 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7269 New function.
7270 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7271 vectors.
7272 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7273 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7274
7275 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7276
7277 * hpread.c (hpread_psymtab_to_symtab_1,
7278 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7279 with fprintf_unfiltered (gdb_stderr,...).
7280
7281 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7282
7283 * remote-array.c (printf_monitor, write_monitor,
7284 array_insert_breakpoint, array_remove_breakpoint ):
7285 Replace fprintf (stderr,...
7286 with fprintf_unfiltered (gdb_stderr,....
7287 * remote-es.c: Likewise.
7288 * remote-os9k.c: Likewise.
7289 * remote-st.c: Likewise.
7290
7291 2002-04-28 Andreas Schwab <schwab@suse.de>
7292
7293 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7294 linux-proc.o and gcore.o.
7295
7296 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7297
7298 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7299 code without frame pointers.
7300
7301 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7302
7303 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7304 ON_STACK is needed.
7305
7306 2002-04-26 Ben Elliston <bje@redhat.com>
7307
7308 * target.c (do_xfer_memory): Correct reference to the new option
7309 "trust-readonly-sections".
7310
7311 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7312
7313 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7314 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7315 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7316 vectors.
7317 (read_array_type): Record the fact that this array type is really a
7318 vector (i.e. are passed in by value).
7319
7320 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7321
7322 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7323 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7324 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7325 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7326 * alpha-linux-tdep.c: Include frame.h.
7327 (alpha_linux_sigcontext_addr): New function.
7328 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7329 alpha_linux_sigcontext_addr.
7330 * alpha-osf1-tdep.c: Include gdbcore.h.
7331 (alpha_osf1_sigcontext_addr): New function.
7332 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7333 alpha_osf1_sigcontext_addr.
7334 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7335 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7336
7337 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7338
7339 * stack.c (selected_frame_level):
7340 (select_frame): Do not set selected_frame_level.
7341 * frame.h (selected_frame_level): Delete declaration.
7342
7343 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7344
7345 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7346 convert_from_func_ptr-addr when AIX / PowerOpen.
7347
7348 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7349
7350 * valops.c (hand_function_call): Call
7351 generic_save_call_dummy_addr.
7352 * frame.h (generic_save_call_dummy_addr): Declare.
7353 * blockframe.c (struct dummy_frame): Add fields call_lo and
7354 call_hi.
7355 (generic_find_dummy_frame): Check for PC in range call_lo to
7356 call_hi instead of entry_point_address.
7357 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7358 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7359 (generic_save_call_dummy_addr): New function.
7360
7361 2002-04-24 David S. Miller <davem@redhat.com>
7362
7363 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7364 sparc_skip_prologue.
7365 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7366 information to find prologue when possible.
7367 (sparc_prologue_frameless_p): Call examine_prologue directly.
7368 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7369 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7370 second argument.
7371 (SKIP_PROLOGUE): Likewise.
7372
7373 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7374
7375 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7376 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7377 indicate that the condition it was testing is always true.
7378 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7379 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7380 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7381
7382 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7383
7384 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7385 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7386 tdep->jb_pc and tdep->jb_elt_size.
7387 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7388 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7389 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7390 * alpha-nat.c (get_longjmp_target): Remove.
7391 (JB_ELEMENT_SIZE): Ditto.
7392 (JB_PC): Ditto.
7393 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7394 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7395 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7396 to alpha_get_longjmp_target.
7397 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7398 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7399 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7400
7401 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7402
7403 * README: Update to GDB 5.2.
7404
7405 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7406
7407 * gdbarch.sh (LC_ALL): Set to `c'.
7408
7409 2002-04-25 Theodore A. Roth <troth@verinet.com>
7410
7411 * avr-tdep.c: Ran through gdb_indent.sh.
7412
7413 2002-04-25 Theodore A. Roth <troth@verinet.com>
7414
7415 * MAINTAINERS: Add myself as AVR maintainer.
7416 * NEWS: Note new target avr.
7417
7418 2002-04-25 Theodore A. Roth <troth@verinet.com>
7419
7420 * Makefile.in: Add support for AVR target.
7421 * configure.tgt: Add support for AVR target.
7422 * avr-tdep.c: New file
7423 * config/avr/avr.mt: New file.
7424
7425 2002-04-25 Theodore A. Roth <troth@verinet.com>
7426
7427 * MAINTAINERS: Add myself to write-after-approval.
7428
7429 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7430
7431 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7432 with fprintf_unfiltered (gdb_stderr,....
7433
7434 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7435
7436 Fix PR gdb/508.
7437 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7438
7439 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7440
7441 * p-exp.y: Also use new prev_lexptr variable
7442 to improve error reporting. Based on Michael Snyder
7443 2002-04-24 dated patch to c-exp.y.
7444
7445 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7446
7447 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7448 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7449 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7450 to 0.
7451 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7452 and struct value.
7453 (FUNCTION_START_OFFSET): Remove.
7454 (BREAKPOINT): Ditto.
7455
7456 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7457
7458 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7459 * NEWS: Ditto.
7460
7461 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7462
7463 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7464 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7465 alpha_linux_pc_in_sigtramp.
7466 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7467 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7468 alpha_osf1_pc_in_sigtramp.
7469 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7470 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7471 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7472 alphafbsd_pc_in_sigtramp.
7473 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7474 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7475 alphanbsd_pc_in_sigtramp.
7476 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7477 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7478
7479 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7480
7481 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7482
7483 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7484
7485 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7486 alphanbsd-tdep.c.
7487 (alphanbsd-nat.o): New dependency list.
7488 (alphanbsd-tdep.o): Ditto.
7489 * NEWS: Note new native NetBSD/alpha configuration.
7490 * alphanbsd-nat.c: New file.
7491 * alphanbsd-tdep.c: Ditto.
7492 * configure.host (alpha*-*-netbsd*): New host.
7493 * configure.tgt (alpha*-*-netbsd*): New target.
7494 * config/alpha/nbsd.mh: New file.
7495 * config/alpha/nbsd.mt: Ditto.
7496 * config/alpha/nm-nbsd.h: Ditto.
7497 * config/alpha/tm-nbsd.h: Ditto.
7498
7499 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7502 (alpha-osf1-tdep.o): New dependency list.
7503 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7504 and skip_sigtramp_frame members.
7505 * alpha-linux-tdep.c: Include gdbcore.h.
7506 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7507 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7508 * alpha-osf1-tdep.c: New file.
7509 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7510 alpha-osf1-dep.c.
7511 (alpha_frame_past_sigtramp_frame): New function.
7512 (alpha_dynamic_sigtramp_offset): Ditto.
7513 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7514 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7515 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7516 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7517 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7518 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7519 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7520 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7521 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7522 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7523 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7524 to find_solib_trampoline_target.
7525 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7526 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7527 (SKIP_TRAMPOLINE_CODE): Remove.
7528 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7529 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7530 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7531 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7532 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7533 (PROC_SIGTRAMP_MAGIC): Ditto.
7534 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7535 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7536 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7537 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7538 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7539
7540 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * NEWS: Note that Alpha targets are now multi-arch.
7543
7544 2002-04-24 Michael Snyder <msnyder@redhat.com>
7545
7546 * parser-defs.h (prev_lexptr): New external variable.
7547 * parse.c (parse_exp_1): Set prev_lexptr to null before
7548 calling the language-specific parser.
7549 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7550 (yyerror): Use prev_lexptr in error reporting.
7551
7552 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7553
7554 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7555 * gregset.h: If FILL_FPXREGSET is defined, provide
7556 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7557 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7558 is defined, call fill_fpxregset.
7559
7560 2002-04-24 Roland McGrath <roland@frob.com>
7561
7562 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7563 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7564 (supply_gregset, supply_fpregset): New functions.
7565
7566 * gnu-nat.c (gnu_find_memory_regions): New function.
7567 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7568 (gnu_xfer_memory): Add a cast.
7569
7570 2002-04-24 Michael Snyder <msnyder@redhat.com>
7571
7572 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7573 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7574 of argument regs ("str r(0123), [r11, #-nn"]).
7575 (arm_skip_prologue): Better handling for frameless functions.
7576 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7577 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7578
7579 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7580
7581 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7582 NUM_PSEUDO_REGS can be used.
7583
7584 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7585
7586 * arch-utils.h: Update copyright.
7587
7588 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7589 * gdbarch.h, gdbarch.c: Re-generate.
7590
7591 * inferior.h (IN_SIGTRAMP): Delete definition.
7592 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7593 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7594
7595 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7596 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7597 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7598 (find_proc_framesize): Ditto.
7599 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7600 (alpha_init_extra_frame_info): Ditto.
7601 * infrun.c (handle_inferior_event): Ditto.
7602 (handle_inferior_event): Ditto.
7603 (check_sigtramp2): Ditto.
7604 * blockframe.c (create_new_frame): Ditto.
7605 (get_prev_frame): Ditto.
7606 * ppc-linux-tdep.c: Update comments.
7607 * i386-linux-tdep.c: Update comments.
7608 * breakpoint.c (bpstat_what): Update comment.
7609
7610 2002-04-24 David S. Miller <davem@redhat.com>
7611
7612 * i960-tdep.c (register_in_window_p): New function.
7613 (i960_find_saved_register): Use it instead of
7614 REGISTER_IN_WINDOW_P.
7615 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7616
7617 * symtab.h (find_stab_function_addr): Kill extern.
7618 * minsyms.c (find_stab_function_addr): Remove from here...
7619 * dbxread.c: ... to here, and mark it static.
7620
7621 2002-04-20 David S. Miller <davem@redhat.com>
7622
7623 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7624 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7625
7626 2002-04-21 David S. Miller <davem@redhat.com>
7627
7628 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7629 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7630 (vx_write_register): Likewise.
7631
7632 2002-04-23 J. Brobecker <brobecker@gnat.com>
7633
7634 * source.c (is_regular_file): New function.
7635 (openp): Check wether file to open is a regular file
7636 to avoid opening directories.
7637
7638 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7639
7640 * findvar.c (extract_signed_integer): Cast printf argument
7641 to suppress format warning.
7642 (extract_unsigned_integer): Likewise.
7643 * infcmd.c (registers_info): Likewise.
7644 * top.c (get_prompt_1): Likewise.
7645 * valops.c (value_assign): Likewise.
7646 * valprint.c (print_decimal): Likewise.
7647
7648 2002-04-22 H.J. Lu (hjl@gnu.org)
7649
7650 * c-exp.y (typebase): Support
7651
7652 [long|long long|short] [signed|unsigned] [int|]
7653
7654 and
7655
7656 signed [long|long long|short] int
7657
7658 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7659
7660 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7661 and vax-tdep.h.
7662 * vax-tdep.h: New file.
7663 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7664 Make several routines static.
7665 (vax_get_saved_register): New function.
7666 (vax_gdbarch_init): New function.
7667 (_initialize_vax_tdep): Register vax_gdbarch_init.
7668 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7669 Remove macros now under the control of gdbarch.
7670
7671 2002-04-22 Michael Snyder <msnyder@redhat.com>
7672
7673 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7674 Some whitespace and coding standards tweaks.
7675
7676 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7677
7678 * vax-tdep.c: Include regcache.h.
7679 (vax_call_dummy_words): New.
7680 (sizeof_vax_call_dummy_words): New.
7681 (vax_fix_call_dummy): New function.
7682 (vax_saved_pc_after_call): Ditto.
7683 * config/vax/tm-vax.h: Don't include regcache.h.
7684 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7685 (CALL_DUMMY): Remove.
7686 (CALL_DUMMY_WORDS): Define.
7687 (SIZEOF_CALL_DUMMY_WORDS): Define.
7688 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7689
7690 2002-04-18 Michael Snyder <msnyder@redhat.com>
7691
7692 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7693
7694 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7695
7696 * vax-tdep.c (vax_frame_chain): New function.
7697 (vax_push_dummy_frame): Ditto.
7698 (vax_pop_frame): Ditto.
7699 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7700 (FRAMELESS_FUNCTION_INVOCATION): Use
7701 generic_frameless_function_invocation_not.
7702 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7703 (POP_FRAME): Use vax_pop_frame.
7704
7705 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7706
7707 * vax-tdep.c (vax_store_struct_return): New function.
7708 (vax_extract_return_value): Ditto.
7709 (vax_store_return_value): Ditto.
7710 (vax_extract_struct_value_address): Ditto.
7711 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7712 vax_store_struct_return.
7713 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7714 (STORE_RETURN_VALUE): Use vax_store_return_value.
7715 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7716
7717 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7718
7719 * vax-tdep.c (vax_frame_saved_pc): New function.
7720 (vax_frame_args_address_correct): Ditto.
7721 (vax_frame_args_address): Ditto.
7722 (vax_frame_locals_address): Ditto.
7723 (vax_frame_num_args): Move code to be in proximity to
7724 other frame-related functions.
7725 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7726 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7727 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7728 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7729 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7730
7731 2002-04-22 H.J. Lu (hjl@gnu.org)
7732
7733 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7734 includedir.
7735
7736 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7737
7738 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7739 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7740 (FRAME_INIT_SAVED_REGS): New macro.
7741
7742 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7743
7744 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7745
7746 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7747
7748 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7749 where needed.
7750 (fetch_osf_core_registers): Likewise.
7751 (supply_gregset): Likewise.
7752
7753 2002-04-22 J. Brobecker <brobecker@gnat.com>
7754
7755 * symfile.h (get_section_index): Define.
7756 * symfile.c (get_section_index): New function.
7757 * mdebugread.c (SC_IS_SBSS): New macro.
7758 (SC_IS_BSS): Return true for the scBss storage class only, as
7759 the scSBss storage class refers to the .sbss section.
7760 (parse_partial_symbols): Discard the symbols which associated
7761 section does not exist.
7762 Make sure to use the .sbss section index for symbols which
7763 storage class is scBss, rather than using the .bss section index.
7764
7765 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7766
7767 * vax-tdep.c: Update copyright years.
7768 (vax_register_name): New function.
7769 (vax_register_byte): Ditto.
7770 (vax_register_raw_size): Ditto.
7771 (vax_register_virtual_size): Ditto.
7772 (vax_register_virtual_type): Ditto.
7773 * config/vax/tm-vax.h: Update copyright years.
7774 (REGISTER_NAMES): Remove.
7775 (REGISTER_NAME): Define.
7776 (REGISTER_BYTE): Use vax_register_byte.
7777 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7778 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7779 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7780
7781 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7782
7783 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7784 declaration
7785 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7786
7787 2002-04-21 David S. Miller <davem@redhat.com>
7788
7789 * arch-utils.c (generic_prologue_frameless_p): Kill
7790 SKIP_PROLOGUE_FRAMELESS_P code.
7791 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7792 references.
7793 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7794 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7795 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7796 references.
7797 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7798 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7799 (sparc_gdbarch_init): Pass it to
7800 set_gdbarch_prologue_frameless_p.
7801
7802 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7803
7804 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7805 (alphabsd-nat.o): New dependency list.
7806
7807 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7808
7809 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7810 alphafbsd-tdep.c.
7811 (alpha-linux-tdep.o): New dependency list.
7812 (alphafbsd-tdep.o): Likewise.
7813
7814 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7815
7816 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7817 to here...
7818 * alpha-tdep.c: ...from here.
7819 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7820
7821 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7822
7823 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7824 prototype from here...
7825 * alpha-tdep.h: ...to here.
7826
7827 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7828
7829 * frame.h (selected_frame_level): Document as deprecated.
7830 (frame_relative_level): Declare.
7831 * stack.c (frame_relative_level): New function.
7832 (selected_frame_level): Document as deprecated.
7833 (select_frame): Do not set the selected_frame_level.
7834
7835 * stack.c (frame_info, record_selected_frame): Update.
7836 (frame_command, current_frame_command): Update.
7837 (up_silently_base, up_command, down_silently_base): Update.
7838 (down_command): Update.
7839 * inflow.c (kill_command): Update.
7840 * tracepoint.c (finish_tfind_command): Update.
7841 * corelow.c (core_open): Update.
7842 * thread.c (info_threads_command): Update.
7843 (do_captured_thread_select): Update.
7844 * infcmd.c (finish_command): Update.
7845 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7846
7847 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7848
7849 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7850
7851 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7852
7853 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7854 type const.
7855
7856 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7857
7858 * alphafbsd-tdep.c: Update copyright years. Include
7859 alpha-tdep.h.
7860 (alphafbsd_use_struct_convention): Make static.
7861 (alphafbsd_init_abi): New function.
7862 (_initialize_alphafbsd_tdep): New function.
7863 * config/alpha/tm-fbsd.h: Update copyright years.
7864 (USE_STRUCT_CONVENTION): Remove.
7865
7866 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7867
7868 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7869 an Alpha ABI variant.
7870 (alpha_abi_handler_list): Declare.
7871 (alpha_gdbarch_register_os_abi): New function.
7872 (alpha_gdbarch_init): Give registered ABI variant handlers a
7873 chance to tweak the gdbarch once we have set up defaults.
7874 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7875
7876 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7877
7878 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7879 to standard_coerce_float_to_double.
7880 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7881
7882 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7883
7884 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7885 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7886 from gdbarch_tdep rather than a constant.
7887 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7888 the default text address for all Alpha Unix ABIs.
7889 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7890 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7891
7892 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7893
7894 * alpha-tdep.h: New file. Includes several Alpha target constants
7895 taken from...
7896 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7897 let gdbarch deal with.
7898 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7899 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7900 to dependency list.
7901 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7902 Alpha target register names.
7903 * alphabsd-nat.c: Likewise.
7904 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7905 Alpha target register names. Make serveral routines static.
7906 (alpha_get_saved_register): New function.
7907 (alpha_abi_names): New.
7908 (process_note_abi_tag_sections): New function.
7909 (get_elfosabi): New function.
7910 (alpha_gdbarch_init): New function.
7911 (alpha_dump_tdep): New function.
7912 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7913
7914 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7915
7916 * frame.c (find_saved_register): Delete #ifdef
7917 HAVE_REGISTER_WINDOWS code.
7918 * config/sparc/tm-sparc.h: Update comments.
7919 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7920
7921 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7922
7923 * i960-tdep.c (i960_find_saved_register): New function.
7924 (i960_get_saved_register): New function.
7925 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7926 (i960_get_saved_register): Declare.
7927 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7928
7929 2002-04-20 David S. Miller <davem@redhat.com>
7930
7931 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7932
7933 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7934
7935 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7936 instead of NUM_PSEUDO_REGS.
7937
7938 2002-04-20 David S. Miller <davem@redhat.com>
7939
7940 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7941 GDB_MULTI_ARCH_PARTIAL
7942 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7943 define, let tm-sp64.h do it.
7944
7945 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7946
7947 * frame.c (find_saved_register): Avoid a NULL pointer
7948 dereference and actually walk the frame list.
7949
7950 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7951
7952 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7953 sorted in most most-recent-used order. Document.
7954 * gdbarch.h, gdbarch.c: Regenerate.
7955
7956 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7957
7958 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7959 instead of ->prev.
7960 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7961 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7962 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7963 instead of ->prev.
7964
7965 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7966
7967 Fix PR gdb/471.
7968 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7969 (build_builtin_type_vec128): Ditto.
7970 (append_composite_type_field): Fix calculation of type length in
7971 union case.
7972
7973 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7974
7975 * config/djgpp/README: Update.
7976
7977 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7978 compiler warnings.
7979
7980 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7981
7982 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7983 (alpha_setup_arbitrary_frame): ...to this.
7984 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7985 for alpha_setup_arbitrary_frame.
7986
7987 2002-04-18 Andrew Cagney <cagney@redhat.com>
7988
7989 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7990 * gdbarch.h, gdbarch.c: Regenerate.
7991
7992 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7993 * target.h (memory_breakpoint_from_pc): Update declaration.
7994 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7995
7996 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7997 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7998 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7999 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8000 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8001 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8002 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8003 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8004 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8005 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8006 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8007 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8008
8009 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8010 const pointer.
8011 * monitor.c (monitor_insert_breakpoint): Ditto.
8012 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8013
8014 * config/mcore/tm-mcore.h: Update copyright.
8015 * mem-break.c: Ditto.
8016 * xstormy16-tdep.c: Ditto.
8017
8018 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8019
8020 * p-exp.y: Add precedence rule for '^' token.
8021 This removes the shift/reduce conflicts.
8022 Remove the comment concerning these shift/reduce conflicts.
8023
8024 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8025
8026 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8027 (registers_powerpc_nofp): New register set for processors
8028 without floating point unit.
8029
8030 2002-04-18 David S. Miller <davem@redhat.com>
8031
8032 * MAINTAINERS: Add myself to write-after-approval.
8033
8034 2002-04-17 Michael Snyder <msnyder@redhat.com>
8035
8036 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8037
8038 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8039
8040 * rs6000-tdep.c (frame_initial_stack_address): Use
8041 frame_register_read to read the alloca_reg.
8042
8043 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8044
8045 * frame.c (find_saved_register): Find saved registers in the next
8046 not prev frame.
8047 Fix PR gdb/365.
8048
8049 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8050
8051 * gdbarch.sh (LANG): Set to ``c''.
8052
8053 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8054
8055 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8056
8057 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8058
8059 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8060 Update copyright.
8061
8062 * hpread.c (hpread_get_lntt): Add declaration.
8063 Also fix PR gdb/391.
8064
8065 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8066
8067 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8068 * aclocal.m4, configure: Re-generate.
8069 Fix PR gdb/391.
8070
8071 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8072
8073 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8074 instead of tm_print_insn.
8075
8076 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8077
8078 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8079
8080 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8081
8082 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8083 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8084 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8085
8086 2002-04-12 Don Howard <dhoward@redhat.com>
8087
8088 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8089 max_user_call_depth.
8090 (init_cmd_lists): Initialize the new value;
8091 * cli/cli-script.c (execute_user_command): Limit the call depth of
8092 user defined commands. This avoids a core-dump when user commands
8093 are infinitly recursive.
8094
8095 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8096
8097 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8098 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8099 from tdep struct instead of DEFAULT_LR_SAVE.
8100 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8101 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8102 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8103
8104 2002-04-12 Michael Snyder <msnyder@redhat.com>
8105
8106 * Remote.c: Spelling fix.
8107 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8108 If no symbol found for "sbrk", try "_sbrk".
8109 (make_output_phdrs): Use bfd_section_name.
8110 (gcore_copy_callback): Use bfd_section_name.
8111 * eval.c: Indentation fix-ups.
8112 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8113 in case it gets applied to an address that is already
8114 in the instruction space.
8115 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8116 * symfile.c: Fix indentation, long lines.
8117 * source.c: White space fix-up.
8118
8119 2002-04-12 Andrew Cagney <cagney@redhat.com>
8120
8121 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8122 * frame.c (frame_register_read): New function. Return non-zero on
8123 success.
8124 (read_relative_register_raw_bytes_for_frame): Delete.
8125 (read_relative_register_raw_bytes): Delete.
8126 * frame.h (frame_register_read): Declare.
8127 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8128 * sh-tdep.c: Ditto.
8129 * infcmd.c (do_registers_info): Ditto.
8130 * hppa-tdep.c: Ditto.
8131 * rs6000-tdep.c: Ditto.
8132 * h8500-tdep.c: Ditto.
8133 * mips-tdep.c: Ditto.
8134 * h8300-tdep.c: Ditto.
8135 * z8k-tdep.c: Ditto.
8136
8137 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8138
8139 From Jimi X <jimix@watson.ibm.com>:
8140 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8141 64-bit SysV ABI.
8142
8143 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8144
8145 From Jimi X <jimix@watson.ibm.com>:
8146 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8147 bfd info.
8148
8149 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8150
8151 From Jimi X <jimix@watson.ibm.com>:
8152 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8153 register sets for these processor variants.
8154
8155 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8156
8157 * regformats/reg-ppc.dat: Support FPSCR.
8158
8159 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8160
8161 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8162 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8163 Add fpscr as an invalid/unfetchable register.
8164 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8165 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8166 (fill_fpregset): Add support for register fpscr.
8167 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8168 (fill_gregset): Account for the fact that register ``mq'' might
8169 not exist.
8170 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8171 (registers_power): Add fpscr to register set at slot 71.
8172 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8173 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8174
8175 2002-04-11 Michael Snyder <msnyder@redhat.com>
8176
8177 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8178 * configure: Regenerate.
8179 * config.in: Regenerate.
8180 * acconfig.h: Add define for _SYSCALL32.
8181 * core-sol2.c: Remove #define _SYSCALL32.
8182 * solib-legacy.c: Remove #define _SYSCALL32.
8183
8184 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8185
8186 * stack.c (select_frame): Cleanup internal error message, do not
8187 use %p.
8188
8189 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8190
8191 * stack.c (select_frame): Check that selected_frame and the
8192 specified level are as expected.
8193 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8194 Update copyright.
8195 * frame.h (struct frame_info): Add field `level'. Update
8196 copyright.
8197 Work-in-progress PR gdb/464.
8198
8199 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8200
8201 * maint.c (maint_print_section_info): Rename print_section_info.
8202 (print_bfd_section_info, print_objfile_section_info): Update.
8203 * inferior.h (struct gdbarch): Add opaque declaration.
8204 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8205 * gdbarch.h: Regenerate.
8206
8207 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8208
8209 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8210 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8211 (kernel_u_size): Added.
8212 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8213 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8214
8215 2002-04-04 Jim Ingham <jingham@apple.com>
8216
8217 * valarith.c (find_size_for_pointer_math): New function, either returns
8218 the size for a pointer's target, returns 1 for void *, or errors for
8219 incomplete types.
8220 (value_add, value_sub): use find_size_for_pointer_math.
8221
8222 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8223
8224 * linux-low.c (linux_look_up_symbols): New hook.
8225 (linux_target_ops): Add linux_look_up_symbols.
8226 * remote-utils.c (decode_address): New function.
8227 (look_up_one_symbol): New function.
8228 * server.c (handle_query): Call target look_up_symbols hook.
8229 * server.h (look_up_one_symbol): Add prototype.
8230 * target.h (struct target_ops): Add look_up_symbols hook.
8231
8232 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8233
8234 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8235 override FP_REGNUM with frame->fp. Update copyright.
8236 * parse.c (num_std_regs, std_regs): Delete.
8237 (target_map_name_to_register): Do not search std_regs. Update
8238 function description.
8239 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8240 declarations. Update copyright.
8241 Fix PR gdb/251.
8242
8243 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8246 after the last symbol in a block.
8247
8248 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8249
8250 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8251 is non zero as a found symbol.
8252
8253 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8254
8255 * findvar.c: Include "builtin-regs.h".
8256 (value_of_register): Call value_of_builtin_reg when applicable.
8257 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8258 (target_map_name_to_register): Call
8259 builtin_reg_map_name_to_regnum.
8260 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8261 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8262 (builtin_regs_h): Define.
8263 (builtin-regs.o): New target.
8264 (findvar.o): Add $(builtin_regs_h).
8265 * builtin-regs.c, builtin-regs.h: New files.
8266 * std-regs.c: New file.
8267 Partial fix for PR gdb/251.
8268
8269 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8270
8271 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8272 it's no longer required.
8273
8274 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8275
8276 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8277
8278 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8279
8280 From Jimi X <jimix@watson.ibm.com>:
8281 * rs6000-tdep.c (rs6000_software_single_step): Use
8282 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8283 and size. Use target_insert_breakpoint() and
8284 target_remove_breakpoint() to insert and remove breakpoints
8285 instead of explicit memory reads and writes.
8286
8287 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8288
8289 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8290 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8291 ELF_OBJECT_FORMAT ifdef.
8292
8293 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8294
8295 From Jimi X <jimix@watson.ibm.com>:
8296 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8297
8298 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8299
8300 From Jimi X <jimix@watson.ibm.com>:
8301 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8302 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8303
8304 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8305
8306 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8307 s/asprintf/xasprintf/.
8308 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8309
8310 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8311
8312 I believe Jeff Law denies responsability for this one:
8313 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8314 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8315 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8316 Work-around for PR gdb/366.
8317
8318 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8319
8320 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8321 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8322 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8323
8324 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8325
8326 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8327 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8328 information.
8329
8330 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8331
8332 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8333 maintainer.
8334
8335 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8336
8337 * README (Reporting Bugs in GDB): Document the bug web page as the
8338 prefered way of submitting bugs.
8339 Fix PR gdb/402.
8340
8341 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8342
8343 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8344 -1. Update comment.
8345 * gdbarch.h, gdbarch.c: Re-generate.
8346
8347 2002-04-07 Andreas Schwab <schwab@suse.de>
8348
8349 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8350 buffer to regcache_collect.
8351
8352 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8353
8354 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8355 * gdbarch.c, gdbarch.h: Re-generate.
8356
8357 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8358
8359 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8360 declaration. Fix -Werror.
8361
8362 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8363
8364 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8365 * gdbarch.c: Regenerate.
8366
8367 2002-04-05 Michael Snyder <msnyder@redhat.com>
8368
8369 * breakpoint.c (clear_command): Rewrite middle section to
8370 combine two loops with identical control conditions.
8371 Add a cleanup to eliminate a memory leak.
8372 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8373
8374 2002-04-05 H.J. Lu (hjl@gnu.org)
8375
8376 * solib-svr4.c (bkpt_names): Add "__start".
8377
8378 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8379
8380 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8381 as test for 64 bit target.
8382
8383 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8384
8385 * h8500-tdep.c (h8500_write_fp): Delete function.
8386 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8387 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8388 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8390 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8391 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8392 (s390_write_fp):
8393 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8394 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8395 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8396 (d10v_write_fp): Delete function.
8397 * inferior.h (write_fp, generic_target_write_fp): Delete
8398 declarations.
8399 * regcache.c (generic_target_write_fp): Delete function.
8400 (write_fp): Delete function.
8401 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8402 * gdbarch.h, gdbarch.c: Regenerate.
8403 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8404 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8405 (sparc64_write_fp): Delete declaration.
8406 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8407 (h8500_write_fp): Delete declaration.
8408
8409 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8410
8411 * sparc-tdep.c (sparc64_write_fp): Delete.
8412 (sparc_push_dummy_frame): Replace write_fp call with code to store
8413 the FP directly.
8414 (sparc_gdbarch_init): Do not initialize write_fp.
8415
8416 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8417
8418 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8419 clause.
8420
8421 2002-03-29 Jim Blandy <jimb@redhat.com>
8422
8423 * stack.c (get_selected_block): Add new argument `addr_in_block',
8424 used to return the exact code address we used to select the block,
8425 not just the block.
8426 * blockframe.c (get_frame_block, get_current_block): Same.
8427 * frame.h (get_frame_block, get_current_block,
8428 get_selected_block): Update declarations.
8429 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8430 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8431
8432 2002-04-05 Michael Snyder <msnyder@redhat.com>
8433
8434 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8435 warning message.
8436
8437 2002-04-05 J. Brobecker <brobecker@gnat.com>
8438
8439 * utils.c (xfullpath): New function.
8440 * defs.h (xfullpath): Add declaration.
8441 * source.c (openp): Use xfullpath in place of gdb_realpath to
8442 avoid resolving the basename part of filenames when the
8443 associated file is a symbolic link. This fixes a potential
8444 inconsistency between the filenames known to GDB and the
8445 filenames it prints in the annotations.
8446 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8447 to be able to match a filename with either the real filename, or
8448 the name of any symbolic link to this file.
8449 (lookup_partial_symtab): Ditto.
8450
8451 2002-04-04 Michael Snyder <msnyder@redhat.com>
8452
8453 * breakpoint.c: Add support for hardware breakpoints in overlays.
8454 (overlay_events_enabled): New state variable.
8455 (insert_breakpoints): Use overlay_events_enabled to decide
8456 whether to attempt to set a breakpoint at the overlay load addr.
8457 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8458 (remove_breakpoint): Use overlay_events_enabled to decide
8459 whether breakpoints need to be removed from overlay load addr.
8460 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8461 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8462 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8463 disable_overlay_breakpoints): Update overlay_events_enabled.
8464
8465 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8466
8467 * dwarf2read.c (struct function_range): New.
8468 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8469 (check_cu_functions): New.
8470 (read_file_scope): Initialize global function lists.
8471 Call dwarf_decode_line after processing children.
8472 (read_func_scope): Add to global function list.
8473 (dwarf_decode_lines): Call check_cu_functions everywhere
8474 record_line is called. Call record_line with a linenumber
8475 of 0 to mark sequence ends.
8476
8477 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8478
8479 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8480 change sync with glibc.
8481
8482 2002-04-03 Jim Blandy <jimb@redhat.com>
8483
8484 * configure.in: Call AC_C_INLINE.
8485 * configure: Regenerated.
8486
8487 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8488
8489 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8490 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8491
8492 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8493
8494 * NEWS: Mention gcore support on FreeBSD/i386.
8495
8496 * fbsd-proc.c: New file.
8497 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8498 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8499
8500 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8501 while statement.
8502
8503 2002-03-29 Jim Blandy <jimb@redhat.com>
8504
8505 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8506 unescaped newlines in string literals, but newer ones don't. So
8507 escape them.
8508
8509 2002-03-26 Michael Snyder <msnyder@redhat.com>
8510 Andrew Cagney <cagney@redhat.com>
8511
8512 * cli/cli-dump.c: New file. Dump memory to file,
8513 restore file to memory.
8514 * cli/cli-dump.h: New file.
8515 * Makefile.in: Add rules, dependencies for cli-dump.o.
8516 * NEWS: Mention new commands.
8517
8518 2002-03-28 Michael Snyder <msnyder@redhat.com>
8519
8520 * symfile.c (symbol_file_add): Move test for null symbols to later.
8521
8522 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8523
8524 From veksler at il.ibm.com:
8525 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8526 the xstrduped original path.
8527 Fix PR gdb/417.
8528
8529 2002-03-27 Michael Snyder <msnyder@redhat.com>
8530
8531 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8532 * infcmd.c (_initialize_infcmd): Ditto.
8533 * language.c (_initialize_language): Ditto.
8534 * symfile.c (_initialize_symfile): Ditto.
8535 * top.c (_init_main): Ditto.
8536 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8537
8538 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8539
8540 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8541 vector registers handling.
8542 (skip_prologue): Handle new AltiVec instructions. Fill in new
8543 fields of frame data.
8544 (frame_get_saved_regs): Fill in information for AltiVec registers.
8545
8546 2002-03-27 Jim Blandy <jimb@redhat.com>
8547
8548 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8549 a function; leave this macro here to invoke that function.
8550 (symbol_init_mangled_name): Declaration for that function.
8551 * symtab.c (symbol_init_mangled_name): New function.
8552
8553 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8554
8555 * valarith.c: Replace strerror with safe_strerror.
8556 * tracepoint.c: Ditto.
8557 * lin-lwp.c: Ditto.
8558 * go32-nat.c: Ditto.
8559 * inflow.c: Ditto.
8560 * gnu-nat.c: Ditto.
8561
8562 2002-03-27 Andreas Schwab <schwab@suse.de>
8563
8564 * event-top.c (command_line_handler): Remove useless if.
8565
8566 2002-03-27 Andreas Jaeger <aj@suse.de>
8567
8568 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8569 comment.
8570
8571 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8572
8573 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8574 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8575 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8576 (x86_64_linux_dr_get_status, supply_gregset),
8577 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8578 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8579 (x86_64_register_info_table): Add.
8580 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8581 (x86_64_register_raw_size, x86_64_register_virtual_type),
8582 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8583 general x86_64_register_info_table.
8584 (i386_gdbarch_init): gdbarch_register_bytes is now set
8585 dynamicaly during initialization.
8586 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8587 * gdbserver/linux-x86-64-low.c: Ditto.
8588
8589 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8590
8591 * gdbserver/server.c (main): Call target_signal_to_host_p
8592 and target_signal_to_host on signals received from the remote.
8593 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8594 target_signal_from_host on signals sent to the remote.
8595 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8596 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8597
8598 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8599
8600 * signals/signals.c: Include "server.h" in gdbserver build.
8601 (target_signal_from_name): Don't use STREQ.
8602 (_initialize_signals): Likewise. Don't include function in
8603 gdbserver build.
8604
8605 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8606
8607 * signals.c: Moved to...
8608 * signals/signals.c: Here.
8609 * Makefile (signals.o): Update.
8610
8611 2002-03-26 Jeff Law (law@redhat.com)
8612
8613 * somread.c (som_symtab_read): Remove some commented out code and
8614 updated related comments. Do not set the minimal symbol table to
8615 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8616 in a dynamic executable.
8617 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8618 where we are unable to find the minimal symbol for the given
8619 PC value.
8620
8621 2002-03-25 Jeff Law (law@redhat.com)
8622
8623 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8624
8625 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8626
8627 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8628
8629 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8630
8631 * command.h: Update copyright.
8632 (struct cmd_list_element): Replace definition with opaque
8633 declaration.
8634 (enum cmd_types): Document that it will eventually be moved to
8635 cli/cli-decode.h
8636 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8637 (MALLOCED_REPLACEMENT): Delete macro.
8638 * Makefile.in (cli_decode_h): Add $(command_h).
8639 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8640 * top.c: Include "cli/cli-decode.h".
8641 * completer.c: Include "cli/cli-decode.h".
8642 * maint.c: Include "cli/cli-decode.h".
8643 * cli/cli-decode.h: Include "command.h".
8644 (enum command_class): Delete.
8645 (enum cmd_types): Comment out.
8646 (enum cmd_auto_boolean): Delete.
8647 (enum var_types): Delete.
8648
8649 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8650
8651 * cli/cli-decode.c: Include "gdb_assert.h".
8652 (add_set_or_show_cmd): New static function.
8653 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8654 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8655 all fields, such as func, from the set command.
8656
8657 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8658
8659 * MAINTAINERS (sh-elf): Change warning flag to -w.
8660
8661 2002-03-23 Andrew Cagney <cagney@redhat.com>
8662
8663 * defs.h (error): Add printf format attribute.
8664 * thread-db.c (thread_from_lwp): Fix error format string.
8665 * stack.c (parse_frame_specification): Ditto.
8666 * cli/cli-decode.c (undef_cmd_error): Ditto.
8667 * scm-lang.c (scm_lookup_name): Ditto.
8668 * tracepoint.c (trace_error): Ditto.
8669 * remote-utils.c (usage): Ditto.
8670 * remote.c (compare_sections_command): Ditto.
8671 Fix PR gdb/328.
8672
8673 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8674
8675 * gdbtypes.c (append_composite_type_field): New function.
8676 (init_composite_type): New function.
8677 * gdbtypes.h (append_composite_type_field): Declare.
8678 (init_composite_type): Ditto.
8679
8680 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8681
8682 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8683 function.
8684 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8685 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8686 structure returning convention for SYSV ABI case, but not
8687 for GNU/Linux, FreeBSD, or NetBSD.
8688
8689 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8690
8691 * symtab.h (lookup_block_symbol): Add mangled_name argument
8692 to prototype.
8693
8694 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8695 with new mangled_name argument.
8696 * linespec.c (decode_line_1): Likewise.
8697 * valops (value_of_this): Likewise.
8698 * symtab.c (lookup_transparent_type): Likewise.
8699 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8700 (lookup_symbol): If we are given a mangled name, pass it down
8701 to lookup_symbol_aux.
8702 (lookup_block_symbol): If we are given a mangled name to check
8703 against, only return symbols which match it.
8704
8705 2002-03-22 Christopher Faylor <cgf@redhat.com>
8706
8707 * win32-nat.c (child_create_inferior): Check for proper shell to use
8708 here, in case the user changes it on the fly.
8709 (_initialize_inftarg): Remove shell path considerations.
8710
8711 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8712
8713 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8714 for gdbarch_max_register_raw_size and max_register_virtual_size.
8715 Adjust copyright year.
8716
8717 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8718
8719 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8720 in a function to cover the entire beginning of the function
8721 as well if it does not already.
8722
8723 2002-03-21 Tom Rix <trix@redhat.com>
8724
8725 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8726 (rs6000_ptrace64): Renamed from ptrace64.
8727
8728 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8729
8730 * gdbserver/remote-utils.c (remote_open): Don't call
8731 getprotobyname, we're all using TCP here so just use
8732 IPPROTO_TCP.
8733 * gdbserver/gdbreplay.c (remote_open): Ditto.
8734
8735 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8736
8737 * regcache.c (_initialize_regcache): No need to call
8738 build_regcache() at this time; it gets called whenever
8739 the gdbarch changes.
8740
8741 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8742
8743 * sparc-nat.c: Include sys/param.h where possible.
8744
8745 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8746
8747 Fix PR gdb/422.
8748 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8749 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8750 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8751 complex types.
8752 * stabsread.c (rs6000_builtin_type): Likewise.
8753 (read_sun_floating_type): Likewise.
8754
8755 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8756
8757 * stabsread.c (read_member_functions): Remove skip code for duplicate
8758 constructor/destructor methods. Use standard parsing for these
8759 methods and just do not chain them to the list of methods after
8760 parsing.
8761
8762 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8763
8764 * coffread.c: Remove redundant static declarations. Replace
8765 occurrences of `PTR' with `void *'.
8766 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8767 * top.h (quit_cover): Likewise.
8768 * defs.h (catch_errors): Likewise.
8769
8770 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8771
8772 * defs.h (XMALLOC): Define.
8773 * gdb-events.sh (XMALLOC): Delete macro.
8774 * gdb-events.c, gdb-events.h: Regenerate.
8775 * gdbarch.sh (XMALLOC): Delete macro.
8776 * gdbarch.c: Regenerate.
8777 * serial.c (XMALLOC): Delete macro.
8778 * ui-file.c (XMALLOC): Ditto.
8779 * ser-unix.h (XMALLOC): Ditto.
8780 * sh-tdep.c (XMALLOC): Ditto.
8781 * ui-out.c (XMALLOC): Ditto.
8782 * utils.c (XMALLOC): Ditto.
8783 * i386-tdep.c (XMALLOC): Ditto.
8784 * gdb-events.c (XMALLOC): Ditto.
8785 * d10v-tdep.c (XMALLOC): Ditto.
8786 * cli-out.c (XMALLOC): Ditto.
8787
8788 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8789 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8790 * ui-file.c, ui-out.c: Ditto.
8791
8792 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8793
8794 * command.h (struct cmd_list_element): Add field context.
8795 (set_cmd_context, get_cmd_context): Declare.
8796 * cli/cli-decode.h: Ditto.
8797 * cli/cli-decode.c (get_cmd_context): New function.
8798 (set_cmd_context): New function.
8799 (add_cmd): Initialize context.
8800 Part of fixing PR gdb/145 and PR gdb/146.
8801
8802 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8803
8804 * cli/cli-decode.c (cmd_type): New function.
8805 * command.h (cmd_type): Declare.
8806 * infrun.c (set_schedlock_func): Call function cmd_type.
8807 * kod.c (kod_set_os): Call cmd_type.
8808 * cris-tdep.c (cris_version_update): Use function cmd_type.
8809 (cris_mode_update, cris_abi_update): Ditto.
8810
8811 * command.h: (execute_cmd_post_hook): Declare.
8812 (execute_cmd_pre_hook): Declare.
8813 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8814 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8815 functions. Execute pre/post hook while ensuring that afterwords
8816 hook_in is cleared.
8817 * top.c (execute_command): Use execute_cmd_post_hook, and
8818 execute_cmd_pre_hook to execute pre/post commands.
8819 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8820 hook_stop_stub.
8821 (hook_stop_stub): Call execute_cmd_pre_hook.
8822
8823 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8824
8825 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8826 set'' and this leads to a core dump. Move xstrdup of
8827 operating_system to after check that it is not NULL.
8828
8829 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8830
8831 * kod.c (kod_set_os): Remove unnecessary check that
8832 ``command->type'' is set_cmd.
8833
8834 * valprint.c (set_input_radix): Use input_radix.
8835 (set_output_radix): Use output_radix.
8836 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8837 isn't reverted.
8838
8839 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8840
8841 * value.h (struct value): Delete field ``substring_addr''. Change
8842 aligner fields to force_doublest_align, force_longest_align,
8843 force_core_addr_align and force_pointer_aligh.
8844
8845 * value.h (struct value): Fix typo in above change.
8846
8847 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8848
8849 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8850 to fix internal_error from ``maintenance print architecture''.
8851
8852 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8853
8854 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8855 for gcc versions after gcc-2.8.1.
8856
8857 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8858
8859 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8860 for method resolution. Restore adjustment of ``this'' pointer after
8861 calling value_struct_elt, which was accidentally removed during the
8862 HP merge.
8863
8864 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8865
8866 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8867 value_of_register.
8868 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8869 get_saved_register.
8870 * value.h (value_of_register): Update.
8871
8872 2002-03-14 Richard Henderson <rth@redhat.com>
8873
8874 * configure.in: Detect declaration for canonicalize_file_name.
8875 * utils.c (canonicalize_file_name): Declare, if needed.
8876 (gdb_realpath): Prefer realpath if available and usable.
8877 * config.in, configure: Rebuild.
8878
8879 2002-03-14 Richard Henderson <rth@redhat.com>
8880
8881 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8882 a constant array bound.
8883
8884 * MAINTAINERS: Add myself to write-after-approval.
8885
8886 2002-03-14 Michael Snyder <msnyder@redhat.com>
8887
8888 * symfile.c (syms_from_objfile): Return immediately if no syms.
8889 (symbol_file_add): Return immediately if no syms.
8890 (find_sym_fns): Return immediately if no syms.
8891
8892 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8893
8894 * gdbserver/remote-util.c (remote_open): Print remote-side's
8895 IP address when remote debugging over the network.
8896
8897 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8898
8899 * config/sparc/fbsd.mh: Fix copyright.
8900 * config/sparc/fbsd.mt: Likewise.
8901
8902 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8903
8904 * MAINTAINERS: Fix typo in name of gdb warnings option.
8905 (x86-64): Fix formating so that this can be parsed by awk.
8906
8907 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8910 * defs.h: Include "gdb/signals.h".
8911 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8912
8913 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8914
8915 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8916 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8917 from x86-64-tdep.h
8918
8919 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8920 Don Howard <dhoward@redhat.com>
8921
8922 * mips-tdep.c (ST0_FR): Define.
8923 (mips2_fp_compat): New function, temporarily disabled.
8924 (mips_read_fp_register_single): New function.
8925 (mips_read_fp_register_double): New function.
8926 (mips_print_register): Use them.
8927 (do_fp_register_row): Likewise.
8928
8929 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8930
8931 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8932 approval''.
8933
8934 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8935
8936 * stabsread.c (read_member_functions): Fix is_stub test for
8937 static member functions, improve comment.
8938
8939 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8940
8941 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8942 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8943 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8944 commands that set boolean values.
8945 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8946 (arm_rdi_resume): Always initialize PC.
8947 (arm_rdi_open): Don't use rslt as a boolean.
8948 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8949 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8950 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8951 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8952
8953 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8954
8955 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8956 * configure: Rebuilt.
8957
8958 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8959
8960 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8961 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8962
8963 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8964
8965 * cli/cli-decode.c (set_cmd_completer): New function.
8966 * command.h (set_cmd_completer): Declare.
8967 * cli/cli-decode.h (set_cmd_completer): Ditto.
8968
8969 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8970 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8971 * win32-nat.c (_initialize_inftarg): Ditto.
8972 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8973 * proc-api.c (_initialize_proc_api): Ditto.
8974 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8975 * source.c (_initialize_source): Ditto.
8976 * exec.c (_initialize_exec): Ditto.
8977 * solib.c (_initialize_solib): Ditto.
8978 * top.c (init_main): Ditto.
8979 * tracepoint.c (_initialize_tracepoint): Ditto.
8980 * symfile.c (_initialize_symfile): Ditto.
8981 * printcmd.c (_initialize_printcmd): Ditto.
8982 * infcmd.c (_initialize_infcmd): Ditto.
8983 * corefile.c (_initialize_core): Ditto.
8984
8985 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8986
8987 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8988
8989 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8990
8991 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8992
8993 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8994
8995 * NEWS: Update headings, 5.2 has branched.
8996
8997 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8998
8999 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9000 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9001 (register_addr, REGISTER_RAW_SIZE): Likewise.
9002 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9003 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9004
9005 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9006
9007 * MAINTAINERS (x86-64): Add myself.
9008 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9009 changed value_ptr -> struct value *
9010
9011 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9012
9013 * configure.host (sparc64-*-freebsd): Add.
9014 * configure.tgt: Likewise.
9015 * config/sparc/fbsd.mh: New file.
9016 * config/sparc/fbsd.mt: Likewise.
9017 * config/sparc/nm-fbsd.h: Likewise.
9018 * config/sparc/tm-fbsd.h: Likewise.
9019
9020 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9021
9022 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9023 regformats/reg-s390x.dat.
9024
9025 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9026
9027 * utils.c: Add FIXME explaining true/false problem.
9028
9029 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9030
9031 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9032
9033 2002-02-28 Michael Chastain <mec@shout.net>
9034
9035 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9036
9037 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9038
9039 * gdbserver/linux-s390-low.c: New file.
9040 * regformats/reg-s390.dat: New file.
9041 * regformats/reg-s390x.dat: New file.
9042 * gdbserver/configure.srv: Add S/390.
9043 * gdbserver/Makefile.in: Add S/390.
9044 * configure.tgt: Enable gdbserver for S/390.
9045
9046 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9047
9048 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9049 first line of the doc string for "info dos", except at the end of
9050 the sentence, since the short help stops at the first period.
9051
9052 2002-02-28 Jason Merrill <jason@redhat.com>
9053
9054 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9055
9056 2002-02-27 Fred Fish <fnf@redhat.com>
9057
9058 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9059 comment (dumy -> dummy).
9060
9061 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9062
9063 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9064
9065 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9066
9067 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9068
9069 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * gdbserver/acconfig.h: New file.
9072 * gdbserver/i387-fp.c: New file.
9073 * gdbserver/i387-fp.h: New file.
9074 * gdbserver/linux-x86-64.c: New file.
9075 * regformats/reg-x86-64.dat: New file.
9076 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9077 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9078 * gdbserver/configure.in: Add support for regsets.
9079 * gdbserver/config.in: Regenerate.
9080 * gdbserver/configure: Regenerate.
9081 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9082 * gdbserver/linux-low.h: New file.
9083 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9084 for regsets.
9085 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9086 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9087 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9088 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9089 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9090 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9091 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9092 "i387-fp.h". Add PTRACE_GETREGS and friends.
9093 * gdbserver/regcache.c (supply_register): New function.
9094 (supply_register_by_name): New function.
9095 (collect_register): New function.
9096 (collect_register_by_name): New function.
9097
9098 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9099
9100 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9101 (config.status): Add configure.srv dependency.
9102 (server_h): Add config.h dependency.
9103
9104 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9105
9106 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9107 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9108 * gdbserver/configure.srv: Change i386-*-linux* to use
9109 reg-i386-linux.o.
9110
9111 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9112
9113 * x86-64-tdep.c: Re-indent. Update copyright date.
9114
9115 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9116
9117 From Michal Ludvig <mludvig@suse.cz>:
9118 * x86-64-tdep.c (value.h): Delete.
9119 (gdb_assert.h): Include.
9120 (x86_64_register_convert_to_virtual,
9121 x86_64_register_convert_to_raw ): Add check which lets only
9122 floating-point values to be converted.
9123 (value_push): Delete.
9124 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9125 (i386_gdbarch_init): Number of register_bytes fixed.
9126
9127 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9128
9129 * MAINTAINERS: Add x86-64 target.
9130
9131 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9132
9133 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9134 * osfsolib.c (solib_map_sections): Ditto.
9135 * irix5-nat.c (solib_map_sections): Ditto.
9136 * corelow.c (gdb_check_format): Ditto.
9137 * symfile.c (symfile_bfd_open): Ditto.
9138 * solib.c (solib_map_sections): Ditto.
9139 Fix PR gdb/354.
9140
9141 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9142
9143 * remote.c (_initialize_remote): By default, disable ``e'' and
9144 ``E'' step out-of-range packets.
9145
9146 2002-02-26 Andreas Schwab <schwab@suse.de>
9147
9148 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9149 m68k_linux_frame_saved_pc.
9150 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9151 in_sigtramp.
9152 (SIGCONTEXT_PC_OFFSET): Remove.
9153 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9154 m68k_linux_sigtramp_saved_pc): New functions.
9155 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9156 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9157 (UCONTEXT_PC_OFFSET): Define.
9158 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9159 non-RT and RT signal trampolines.
9160
9161 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9162
9163 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9164 (TARGET_NBPG, STACK_END_ADDR): Delete
9165 (VARIABLES_INSIDE_BLOCK): Delete.
9166
9167 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9168
9169 * utils.c (perror_with_name): Make string parameter constant.
9170 (print_sys_errmsg): Ditto.
9171 (query): Ditto.
9172 * defs.h (perror_with_name): Update.
9173 (print_sys_errmsg): Update.
9174 (query): Update.
9175
9176 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9177
9178 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9179 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9180
9181 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9182
9183 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9184 if it already matches the current architecture from the exec file.
9185 Include arch-utils.h for gdbarch_info_init prototype.
9186 * Makefile.in (rs6000-nat.o): Update dependencies.
9187
9188 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9189
9190 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9191 list of exported variables.
9192
9193 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9194
9195 * gdbserver/configure.srv: New file.
9196 * gdbserver/configure.in: Use configure.srv instead
9197 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9198 from it.
9199 * gdbserver/configure: Regenerated.
9200 * gdbserver/terminal.h: New file.
9201 * gdbserver/Makefile.in: Update for configure changes. Remove
9202 more unneeded include paths.
9203
9204 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9205
9206 From wiz at danbala:
9207 * config/sparc/tm-sp64.h: Fix grammar and typos.
9208 Fix PR gdb/287.
9209
9210 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9211
9212 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9213 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9214 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9215 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9216 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9217 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9218 * s390-tdep.c: Ditto.
9219 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9220 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9221 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9222 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9223 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9224 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9225 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9226 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9227 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9228 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9229 Fix PR gdb/378.
9230
9231 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9232
9233 * lin-thread.c: Delete file.
9234 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9235 to gdb_proc_service.h.
9236 * configure: Re-generate.
9237
9238 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9239 * serial.c (serial_open): Delete check for "ocd".
9240 Fix PR gdb/349.
9241
9242 * Makefile.in (linux-thread.o): Delete target.
9243 * linux-thread.c: Delete file.
9244
9245 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9246 renamed SH files to be consistent.
9247
9248 * symtab.c (sort_search_symbols): Use xfree.
9249
9250 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9251
9252 * arm-linux-tdep.c (arm_linux_init_abi): Register
9253 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9254 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9255 definition with undef, since we don't want the sysvr4 definition.
9256 (SKIP_TRAMPOLINE_CODE): Likewise.
9257
9258 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9259
9260 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9261
9262 * configure.in: (AC_CHECK_FUNCS) Added test for
9263 canonicalize_file_name Regenerated.
9264 * config.in, configure: Regenerated.
9265 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9266 defined use canonicalize_file_name.
9267
9268 2002-02-23 Michael Chastain <mec@shout.net>
9269
9270 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9271
9272 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9273
9274 * README: Remove references to cygnus.com.
9275 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9276 dot com'' form. Remove references to cygnus.com and sourceware.
9277
9278 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9279
9280 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9281 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9282 1003.1-2001 no longer allows "head -1".
9283 * gdb/Makefile.in (version.c): Likewise.
9284 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9285 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9286 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9287
9288 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9289
9290 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9291 * command.h (cmd_cfunc_eq): Declare.
9292 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9293
9294 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9295 ``struct cmd_list_element *''.
9296 * cli/cli-cmds.c (is_complete_command): Update. Use
9297 cmd_cfunc_eq.
9298 * top.c (execute_command): Pass the command to
9299 is_complete_command.
9300 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9301
9302 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9303
9304 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9305 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9306 architecture defines.
9307 * s390-tdep.c (s390_gdbarch_init): Likewise.
9308
9309 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9310
9311 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9312 (arm_linux_push_arguments): Likewise.
9313 (arm_linux_init_abi): Register them. Also register linux-specific
9314 call_dummy_words.
9315 (find_minsym_and_objfile): Use strcmp, not STREQ.
9316 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9317 (arm_linux_call_dummy_words): Delete declaration.
9318 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9319 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9320 declarations.
9321 (LOWEST_PC): Delete.
9322
9323 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9324
9325 * maint.c (print_section_info): Do not prepend `0x' to filepos
9326 output, it will be handled by local_hex_string_custom.
9327
9328 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9329
9330 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9331 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9332 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9333
9334 2002-02-22 Jim Blandy <jimb@redhat.com>
9335
9336 Indicate that the bcache functions don't change the strings
9337 they're passed.
9338 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9339 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9340
9341 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9342
9343 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9344
9345 2002-02-21 Christopher Faylor <cgf@redhat.com>
9346
9347 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9348 find the complete path to a loaded DLL.
9349
9350 2002-02-21 Fred Fish <fnf@redhat.com>
9351
9352 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9353 that marks the end of the range of a function, enter a line number
9354 entry that has a line number of zero and a PC offset that matches
9355 the end of the function. This starts a range of PC's for which no
9356 line number information is known.
9357 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9358 PC's for which no line number info is found (line number is zero)
9359 then we didn't find any valid line information.
9360 * symtab.h: Document use of zero line number entry.
9361
9362 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9363
9364 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9365 (have_ptrace_getvrregs): Define for run time checks.
9366 (gdb_vrregset_t): New type for Altivec register handling.
9367 (fetch_register, store_register): Fetch/store altivec register
9368 when needed.
9369 (fetch_altivec_register, store_altivec_register): New functions.
9370 (supply_vrregset, fill_vrregset): New functions.
9371 (fetch_altivec_registers, store_altivec_registers): New functions.
9372 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9373 registers as well.
9374
9375 2002-02-21 Jiri Smid <smid@suse.cz>
9376
9377 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9378
9379 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9380
9381 * Makefile.in (armnbsd-nat.o): Update dependencies.
9382 * armnbsd-nat.c (supply_gregset): New function. Common code to
9383 supply the integer register set.
9384 (supply_fparegset): New function. Similar for FPA registers.
9385 (fetch_regs, fetch_fp_regs): Use them.
9386 (fetch_core_registers): Likewise.
9387 (fetch_elfcore_registers): New function.
9388 (arm_netbsd_elfcore_fns): New core-file type specification.
9389 (_initialize_arm_netbsd_nat): Register it.
9390
9391 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9392
9393 * armnbsd-nat.c: Include gdbcore.h.
9394 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9395 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9396 'void' to declaration, to shut up ARI.
9397 (fetch_core_registers): Make static. Rewrite using supply_register.
9398 (arm_netbsd_core_fns): New core-file type specification.
9399 (_initialize_arm_netbsd_nat): New function.
9400
9401 2002-02-21 Christopher Faylor <cgf@redhat.com>
9402
9403 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9404 value.
9405
9406 2002-02-20 Christopher Faylor <cgf@redhat.com>
9407
9408 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9409 fails.
9410
9411 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9412
9413 * jv-exp.y (parse_number): Change type of implicit longs
9414 to builtin_type_uint64.
9415
9416 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9417
9418 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9419 to be an integer instead of a `union wait'.
9420
9421 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9422
9423 * mips-linux-nat.c: Call the operating system GNU/Linux.
9424 * mips-linux-tdep.c: Likewise.
9425 * mips-tdep.c: Likewise.
9426
9427 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9428
9429 Fix PR gdb/265.
9430 * jv-exp.y (parse_number): Handle 64-bit integers.
9431
9432 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9433
9434 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9435 AC_STDC_HEADERS to AC_HEADER_STDC.
9436 * gdbserver/configure: Regenerated.
9437
9438 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9439
9440 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9441 is defined.
9442 * sparc-tdep.c (get_longjmp_target): Likewise.
9443
9444 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9445
9446 * News: Add news about ARM and Multi-arch. Mention the new target
9447 arm*-*-netbsd*.
9448
9449 2002-02-19 Jim Blandy <jimb@redhat.com>
9450
9451 * stabsread.c (error_type_complaint): Improve error message.
9452
9453 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9454
9455 * gdbserver/README: Update documentation.
9456 * gdbserver/configure.in: Update configury to match documentation.
9457 * gdbserver/Makefile.in: Likewise.
9458 * gdbserver/configure: Regenerated.
9459 * gdbserver/aclocal.m4: New file, generated by aclocal.
9460 * gdbserver/config.in: New file, generated by autoheader.
9461
9462 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9463
9464 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9465 armnbsd-nat.c.
9466
9467 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9468
9469 * arm-tdep.h (enum arm_float_model): New enum.
9470 (struct gdbarch_tdep): Add fp_model.
9471 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9472 up floating-point conversions until we know the floating-point model
9473 in use by the inferior. Don't complain about being unable to
9474 determine the ABI of the inferior when we don't have one.
9475 (arm_extract_return_value): Support different floating-point models.
9476 (arm_store_return_value): Likewise.
9477 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9478 ARM_FLOAT_SOFT.
9479 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9480
9481 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9482
9483 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9484 of ``current_gdbarch''.
9485
9486 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9487
9488 * armnbsd-nat.c : ANSIfy all function declarations.
9489 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9490 (fetch_inferior_registers): Re-implement in terms of above.
9491 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9492 (store_inferior_registers): Re-implement in terms of above.
9493
9494 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9495
9496 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9497 kernel.
9498 * arm-linux-tdep.c: Likewise.
9499 * config/arm/tm-linux.h: Likewise.
9500
9501 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9502
9503 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9504 * config/arm/nbsd.mt (TM_FILE): Delete.
9505 * config/arm/tm-nbsd.h: Delete.
9506
9507 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9508
9509 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9510 Initialize CALL_DUMMY_LENGTH.
9511
9512 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9513
9514 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9515 function.
9516 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9517 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9518 defines one thing and that is incorrect for this port.
9519 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9520
9521 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9522
9523 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9524
9525 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9526
9527 * win32-nat.c (display_selector): New function. Displays information
9528 about the information returned by GetThreadSelectorEntry API function.
9529 (display_selectors): New function. Displays the infomation of
9530 the selector given as argument, or of CS, DS ans FS selectors
9531 if no argument is given.
9532 ( _initialize_inftarg): Add "w32" as info prefix command.
9533 Add "info w32 selector" as command calling display_selectors.
9534
9535 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9536
9537 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9538 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9539 if not defined.
9540
9541 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9542
9543 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9544
9545 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9546
9547 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9548 (arm_fix_call_dummy): Call it.
9549 (arm_call_dummy_breakpoint_offset): Delete.
9550 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9551 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9552
9553 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9554
9555 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9556 Default to func_frame_chain_valid.
9557 * gdbarch.h, gdbarch.c: Re-generate.
9558 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9559
9560 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9561
9562 * ppc-linux-nat.c: Update copyright.
9563 (fetch_register, store_register): Add tid parameter, don't compute
9564 tid here.
9565 (fetch_ppc_registers, store_ppc_registers): Add tid
9566 parameter. Pass it along to callees.
9567 (fetch_inferior_registers, store_inferior_registers): Compute tid
9568 here, and pass it to calleed functions.
9569 (fill_gregset, supply_fpregset): Clean up formatting.
9570
9571 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9572
9573 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9574 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9575
9576 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9577
9578 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9579 * gdbarch.c gdbarch.h: Regenerate.
9580 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9581 function.
9582 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9583 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9584 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9585
9586 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9587 * arm-tdep.c (arm_get_longjmp_target): New function.
9588 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9589 this to a positive value register arm_get_longjmp_target as the
9590 longjmp handler.
9591 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9592 (arm_linux_init_abi): Set up longjmp description in tdep.
9593 * armnbsd-nat.c (get_longjmp_target): Delete.
9594 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9595 description in tdep.
9596 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9597 (get_longjmp_target): Delete declaration.
9598 (GET_LONGJMP_TARGET): Delete.
9599 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9600 (GET_LONGJMP_TARGET): Delete.
9601
9602 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9603
9604 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9605 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9606 of ``current_gdbarch''.
9607
9608 2002-02-17 Tom Tromey <tromey@redhat.com>
9609
9610 * cli/cli-cmds.c (compare_strings): New function.
9611 (complete_command): Only print each unique item once.
9612 * completer.h (complete_line): Declare.
9613 * completer.c (complete_line): New function.
9614 (line_completion_function): Use it.
9615
9616 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9617
9618 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9619 * gdbarch.h, gdbarch.c: Re-generate.
9620
9621 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9622
9623 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9624
9625 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9626
9627 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9628 * valops.c (value_arg_coerce): Don't take the address of a reference
9629 to convert an argument to a reference.
9630
9631 2002-02-15 Christopher Faylor <cgf@redhat.com>
9632
9633 * win32-nat.c (get_image_name): New function.
9634 (handle_load_dll): Use get_image_name function.
9635 (get_child_debug_event): Avoid registering debug events until possibly
9636 execed process is started.
9637 (child_create_inferior): Allow invocation via shell so that command
9638 line redirection, etc. works ok.
9639 (_initialize_inftarg): Add new command: "set shell" to control whether
9640 a shell is used to start a process.
9641
9642 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9643
9644 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9645 instead of find_register_by_number.
9646 (cannot_store_register): Likewise.
9647
9648 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9649
9650 * dwarf2read.c: Replace fprintf (stderr, ...) by
9651 fprintf_unfiltered (gdb_stderr, ...).
9652
9653 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9654
9655 * gdbserver/gdbserver.1: Document --attach.
9656
9657 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9660 descriptions.
9661 * arm-tdep.c (arm_default_arm_le_breakpoint)
9662 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9663 (arm_default_thumb_be_breakpoint): New. Initialize them from
9664 traditional breakpoint defines.
9665 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9666 (arm_gdbarch_init): Initialize new breakpoint variables.
9667 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9668 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9669 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9670 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9671 code out to ...
9672 (arm_netbsd_init_abi_common): ... here; new function.
9673 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9674 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9675 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9676 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9677
9678 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9679
9680 * arm-tdep.h (enum arm_abi): New enum.
9681 (struct gdbarch_tdep): New structure.
9682 (LOWEST_PC): Provide a default.
9683 (arm_gdbarch_register_os_abi): Declare new function.
9684 * arm-tdep.c (arm_abi_names): New array.
9685 (process_note_abi_tag_sections): New function.
9686 (get_elfosabi): New function.
9687 (arm_gdbarch_register_os_abi): New function.
9688 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9689 support for that ABI has been built in, then call the appropriate
9690 configuration routine. Use gdbarch_num_regs() to get the number
9691 of registers.
9692 (arm_dump_tdep): New function.
9693 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9694 place-holder functions.
9695 (_initialize_arm_tdep): Register them.
9696 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9697
9698 * armnbsd-tdep.c: New file.
9699 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9700 * config/arm/nbsd.mt (TDEPFILES): Add it.
9701 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9702
9703 * armnbsd-nat.c: Include regcache.h.
9704 * Makefile.in (armnbsd-nat.o): Update dependency list.
9705
9706 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9707
9708 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * gdbserver/Makefile.in: Fix typos in target rules.
9711
9712 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9713
9714 Fix part of PR gdb/267.
9715 * linespec.c (find_methods): Handle constructors specially for now.
9716
9717 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9718
9719 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9720 handling.
9721 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9722 standard_coerce_float_to_double().
9723
9724 2002-02-14 Christopher Faylor <cgf@redhat.com>
9725
9726 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9727 GDBINIT_FILENAME.
9728
9729 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9730
9731 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9732 find_variant_by_name, because it confuses the multiarch
9733 framework. Return NULL if there isn't an architecture with the
9734 user supplied name, instead of forcing a different one without
9735 recording the change with the multiarch machinery.
9736 (find_variant_by_name): Delete.
9737
9738 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9739
9740 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9741 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9742
9743 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9744
9745 * stack.c (print_frame_info_base): When calling
9746 print_frame_info_listing_hook, set current_source_symtab.
9747
9748 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9749
9750 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9751 and remove unused $(INCLUDE_DIR).
9752 Add regcache.c to OBS.
9753 Add generated register protocol files to clean target.
9754 Update dependencies for new objects, obsolete old target code.
9755
9756 * gdbserver/linux-low.c: Remove all platform-specific code to
9757 new files. Remove various dead code. Update to use regcache
9758 functionality.
9759 * gdbserver/remote-utils.c (fromhex): Add return statement
9760 to quiet warning.
9761 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9762 constant.
9763 (input_interrupt): Add integer parameter to match prototype
9764 of a signal handler.
9765 (outreg): Use register_data ().
9766 (prepare_resume_reply): Use gdbserver_expedite_regs.
9767 * gdbserver/server.c (main): Dynamically allocate own_buf because
9768 PBUFSIZ is no longer constant. Use registers_to_string () and
9769 registers_from_string ().
9770 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9771 for error (), fatal (), and warning (). Update definition of
9772 PBUFSIZ to use regcache functionality. Add include guard.
9773 * gdbserver/utils.c (fatal): Add missing ``const''.
9774 (warning): New function.
9775
9776 * regformats/regdat.sh: Include "regcache.h" in generated files.
9777 Provide init_registers () function.
9778 * regformats/regdef.h: Add prototype for set_register_cache ().
9779 Add include guard.
9780
9781 * gdbserver/linux-arm-low.c: New file.
9782 * gdbserver/linux-i386-low.c: New file.
9783 * gdbserver/linux-ia64-low.c: New file.
9784 * gdbserver/linux-m68k-low.c: New file.
9785 * gdbserver/linux-mips-low.c: New file.
9786 * gdbserver/linux-ppc-low.c: New file.
9787 * gdbserver/linux-sh-low.c: New file.
9788
9789 * gdbserver/regcache.c: New file.
9790 * gdbserver/regcache.h: New file.
9791
9792 * gdbserver/low-linux.c: Removed obsolete file.
9793
9794 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9795
9796 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9797 * config/i386/linux.mt: Likewise.
9798 * config/ia64/linux.mt: Likewise.
9799 * config/m68k/linux.mh: Likewise.
9800 * config/powerpc/linux.mh: Likewise.
9801 * config/mips/linux.mt: Likewise.
9802
9803 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9804
9805 * config/i386/i386lynx.mh: Mark gdbserver variables
9806 as (currently) obsolete for this target.
9807 * config/i386/nbsd.mt: Likewise.
9808 * config/i386/nbsdelf.mt: Likewise.
9809 * config/m32r/m32r.mt: Likewise.
9810 * config/m68k/m68klynx.mh: Likewise.
9811 * config/m68k/nbsd.mt: Likewise.
9812 * config/m68k/sun3os4.mh: Likewise.
9813 * config/mips/vr5000.mt: Likewise.
9814 * config/ns32k/nbsd.mt: Likewise.
9815 * config/pa/hppabsd.mh: Likewise.
9816 * config/pa/hppaosf.mh: Likewise.
9817 * config/powerpc/nbsd.mt: Likewise.
9818 * config/rs6000/rs6000lynx.mh: Likewise.
9819 * config/s390/s390.mt: Likewise.
9820 * config/s390/s390x.mt: Likewise.
9821 * config/sparc/sparclynx.mh: Likewise.
9822 * config/sparc/sun4os4.mh: Likewise.
9823 * config/i386/x86-64linux.mt: Likewise.
9824 * config/sparc/linux.mh: Likewise.
9825
9826 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9827
9828 * configure.tgt: Configure gdbserver only for known working
9829 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9830 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9831 SUBDIRS if it is configured. Update comment for ${nativefile}.
9832 * configure: Regenerated.
9833
9834 2002-02-13 Michael Snyder <msnyder@redhat.com>
9835
9836 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9837
9838 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9839 (default_gcore_mach): Just return 0, work around a problem in bfd.
9840 (default_gcore_target): OK to return NULL if exec_bfd is null.
9841 (make_mem_sec): Use a cast, avoid a warning.
9842
9843 * procfs.c (find_memory_regions_callback): Use a cast instead of
9844 calling host_pointer_to_address (which complains if
9845 sizeof (host pointer) != sizeof (target pointer)).
9846 (procfs_make_note_section): Avoid overflow in psargs string.
9847
9848 * procfs.c (procfs_make_note_section): Make the default
9849 implementation return an error.
9850
9851 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9852
9853 * procfs.c (procfs_make_note_section): Provide a default definition
9854 (for alpha-dec-osf4.0f). Fix typos.
9855
9856 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9857
9858 * linux-proc.c: Add include of regcache.h.
9859 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9860
9861 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9862
9863 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9864 * memattr.c (create_mem_region): Disallow useless empty region.
9865 Regions are half-open intervals, so allow [A..B) [B..C) as
9866 non-overlapping.
9867
9868 2002-02-13 Michael Chastain <mec@shout.net>
9869
9870 * defs.h: Kill CONST_PTR.
9871 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9872 * c-lang.c (c_builtin_types): Likewise.
9873 * ch-lang.c (ch_builtin_types): Likewise.
9874 * f-lang.c (f_builtin_types): Likewise.
9875 * language.c (unknown_builtin_types): Likewise.
9876 * m2-lang.c (m2_builtin_types): Likewise.
9877 * p-lang.c (pascal_builtin_types): Likewise.
9878 * scm-lang.c (c_builtin_types): Likewise.
9879
9880 2002-02-13 Keith Seitz <keiths@redhat.com>
9881
9882 * arm-tdep.h (arm_get_next_pc): Add declaration.
9883
9884 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9885
9886 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9887 with other related struct-returning functions.
9888 (arm_extract_struct_value_address): New function.
9889 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9890 initialize float_format, double_format and long_double_format as
9891 appropriate to the endianness of the target.
9892 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9893 (arm_use_struct_convention): Delete declaration.
9894 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9895
9896 2002-02-13 Keith Seitz <keiths@redhat.com>
9897
9898 * defs.h (core_addr_to_string_nz): New function.
9899
9900 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9901
9902 Apply missing bits of 2002-01-15 patch.
9903 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9904 (fill_fpregset): Use i387_fill_fsave.
9905
9906 2002-02-12 Keith Seitz <keiths@redhat.com>
9907
9908 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9909 (core_addr_to_string_nz): New function.
9910
9911 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9912
9913 * arm-linux-nat.c: Really include arm-tdep.h.
9914 * config/arm/tm-linux.h (struct type, struct value): Declare.
9915
9916 2002-02-11 Michael Snyder <msnyder@redhat.com>
9917
9918 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9919 (gcore section): Ifdef for Solaris and Unixware only.
9920 (procfs_do_thread_registers): Unixware needs one lwpstatus
9921 per thread (not one prstatus or pstatus).
9922 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9923 not over all gdb threads. For unixware, call elfcore_write_pstatus
9924 once before iterating over threads.
9925
9926 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9927
9928 * arm-tdep.h: New file.
9929 * arm-tdep.c: Include arm-tdep.h.
9930 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9931 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9932 (arm_print_float_info, arm_register_type, convert_to_extended)
9933 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9934 (arm_extract_return_value, arm_register_name): Make static.
9935 (arm_software_single_step): Similarly. Fix types in declaration.
9936 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9937 (arm_store_return_value, arm_store_struct_return): New functions.
9938 (arm_gdbarch_init): Register the above functions. Also register
9939 call_dummy_start_offset, sizeof_call_dummy_words,
9940 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9941 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9942 max_register_virtual_size, register_size. Set up
9943 prologue_cache.saved_regs here, rather than ...
9944 (_initialize_arm_tdep): ... here.
9945 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9946 declarations.
9947 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9948 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9949 (arm_print_float_info, arm_register_type, convert_to_extended)
9950 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9951 (arm_extract_return_value, arm_register_name): Delete declarations.
9952 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9953 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9954 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9955 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9956 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9957 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9958 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9959 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9960 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9961 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9962 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9963 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9964 interface.
9965 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9966 * remote-rdi.c remote-rdp.c: Likewise.
9967 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9968 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9969 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9970 definition.
9971
9972 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9973 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9974 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9975 from non-ARM_ prefixed definitions.
9976 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9977 all uses of above.
9978 * remote-rdi.c remote-rdp.c: Likewise.
9979 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9980
9981 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9982
9983 * arm-tdep.c (arm_frameless_function_invocation)
9984 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9985 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9986 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9987 (arm_pop_frame, arm_get_next_pc): Make static.
9988 (arm_gdbarch_init): Register above in gdbarch structure.
9989 (arm_read_fp): Renamed from arm_target_read_fp.
9990 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9991 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9992 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9993 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9994 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9995 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9996 (arm_pc_is_thumb_dummy): Delete declarations.
9997 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9998 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9999 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10000 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10001
10002 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10003
10004 * symtab.c (compare_search_syms): New function.
10005 (sort_search_symbols): New function.
10006 (search_symbols): Sort symbols after searching rather than
10007 before.
10008
10009 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10010
10011 * NEWS: Linux -> GNU/Linux.
10012
10013 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10014
10015 * gdbarch.sh: For for level one methods, disallow a definition
10016 when partially multi-arched. Add comments explaining rationale.
10017 * gdbarch.h: Re-generate.
10018
10019 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10020
10021 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10022 multi-arch partial.
10023
10024 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10025
10026 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10027 field. Use diff -u.
10028 * gdbarch.c: Re-generate.
10029
10030 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10031
10032 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10033 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10034 partial.
10035
10036 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10037
10038 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10039 multi-arch partial.
10040 (PUSH_ARGUMENTS): Switch to using predefault.
10041 * gdbarch.c: Regenerate.
10042
10043 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10044
10045 * valops.c (PUSH_ARGUMENTS): Delete definition.
10046 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10047 partial. Default to default_push_arguments.
10048 * gdbarch.h, gdbarch.c: Regenerate.
10049
10050 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10051
10052 * defs.h (throw_exception): Rename return_to_top_level. Update
10053 comments.
10054 * utils.c (error_stream, internal_verror, quit): Ditto.
10055 * top.c (throw_exception, catcher): Ditto.
10056 * sparclet-rom.c (sparclet_load): Ditto.
10057 * remote.c (interrupt_query, minitelnet): Ditto.
10058 * remote-sds.c (interrupt_query): Ditto.
10059 * remote-mips.c (mips_error, mips_kill): Ditto.
10060 * ocd.c (interrupt_query): Ditto.
10061 * monitor.c (monitor_interrupt_query): Ditto.
10062 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10063 * target.h: Update comment.
10064
10065 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10066
10067 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10068
10069 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10070 default_double_format.
10071 * gdbarch.h, gdbarch.c: Re-generate.
10072 * findvar.c (floatformat_unknown): Delete variable definition.
10073 * doublest.h (floatformat_unknown): Delete variable declaration.
10074
10075 2002-02-09 Jim Blandy <jimb@redhat.com>
10076
10077 * stabsread.c (read_type): Add code to parse Sun's syntax for
10078 prototyped function types.
10079
10080 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10081
10082 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10083 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10084
10085 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10086
10087 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10088 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10089 now _initialize_xcoffsolib gets called again and overrides the
10090 commands from solib.c in a native configuration.
10091
10092 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10093
10094 * doublest.c (store_typed_floating): Don't try to return a value.
10095 Fixes PR gdb/290.
10096
10097 2002-02-08 Jim Blandy <jimb@redhat.com>
10098
10099 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10100 is prototyped and has no arguments, print its argument list as
10101 `(void)'.
10102
10103 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10104
10105 * MAINTAINERS (write-after-approval): Add myself.
10106 (paper-trail): I've escaped!
10107
10108 2002-02-08 Christopher Faylor <cgf@redhat.com>
10109
10110 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10111 changes.
10112 (_initialize_check_for_gdb_ini): Ditto.
10113
10114 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10115
10116 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10117 xaprintf -> xasprintf.
10118
10119 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10120
10121 * win32-nat.c: Remove use of printf and sprintf functions.
10122
10123 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10124
10125 * arm-tdep.c (arm_frame_chain_valid): Make static.
10126 (arm_push_arguments): Likewise.
10127 (arm_gdbarch_init): New function.
10128 (_initialize_arm_tdep): Call it.
10129 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10130 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10131 (FRAME_CHAIN_VALID): Delete.
10132 (arm_frame_chain_valid): Delete declaration.
10133 (PUSH_ARGUMENTS): Delete.
10134 (arm_push_arguments): Delete declaration.
10135 (CALL_DUMMY_P): Delete.
10136
10137 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10138 Corinna Vinschen <vinschen@redhat.com>
10139
10140 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10141 on builtin float types.
10142
10143 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * utils.c: Include <curses.h> before "bfd.h".
10146 * tui/tui-hooks.c: Likewise.
10147 * tui/tui.c: Likewise.
10148 * tui/tuiCommand.c: Likewise.
10149 * tui/tuiData.c: Likewise.
10150 * tui/tuiDataWin.c: Likewise.
10151 * tui/tuiDisassem.c: Likewise.
10152 * tui/tuiGeneralWin.c: Likewise.
10153 * tui/tuiIO.c: Likewise.
10154 * tui/tuiLayout.c: Likewise.
10155 * tui/tuiRegs.c: Likewise.
10156 * tui/tuiSource.c: Likewise.
10157 * tui/tuiSourceWin.c: Likewise.
10158 * tui/tuiStack.c: Likewise.
10159 * tui/tuiWin.c: Likewise.
10160
10161 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10162
10163 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10164 to include space for pseudoregs as well. Update loops accordingly.
10165 (sh_fp_frame_init_saved_regs): Ditto.
10166 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10167
10168 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10169
10170 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10171 Add Richard Earnshaw to Arm maintainers.
10172
10173 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10174
10175 * defs.h (warning_begin): Delete declaration.
10176
10177 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10178 Delete macro.
10179
10180 2002-02-07 Michael Snyder <msnyder@redhat.com>
10181
10182 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10183 Logic bug, remove misplaced else.
10184
10185 2002-02-07 Klee Dienes <klee@apple.com>
10186
10187 * fork-inferior.c (fork_inferior): Add '!' to the list of
10188 characters that need to be quoted when building a string for the
10189 shell. Quote '!' specifically with a backslash, since CSH chokes
10190 when trying to evaluate "str!str".
10191
10192 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10193
10194 * rdi-share/host.h: Only provide a typedef for bool if it is not
10195 defined.
10196
10197 2002-02-04 Michael Snyder <msnyder@redhat.com>
10198
10199 * breakpoint.h (enum bptype): Add new overlay event bp type.
10200 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10201
10202 * breakpoint.c (create_internal_breakpoint): New function.
10203 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10204 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10205 (create_thread_event_breakpoint): Ditto.
10206 (create_solib_event_breakpoint): Ditto.
10207 (create_overlay_event_breakpoint): New function.
10208 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10209 (update_breakpoints_after_exec): Delete and re-initialize
10210 overlay event breakpoints after an exec. Add FIXME comment
10211 about longjmp breakpoint.
10212 (print_it_typical): Ignore overlay event breakpoints.
10213 (print_one_breakpoint): Ditto.
10214 (mention): Ditto.
10215 (bpstat_what): Do not stop for overlay event breakpoints.
10216 (delete_breakpoint): Don't delete overlay event breakpoints.
10217 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10218 (breakpoint_re_set): Re-create overlay event breakpoint.
10219
10220 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10221 (overlay_manual_command): Disable overlay breakpoints.
10222 (overlay_off_command): Disable overlay breakpoints.
10223
10224 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10225
10226 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10227 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10228 to here from config/tm-arm.h.
10229 (coff_sym_is_thumb): Make static.
10230 (arm_elf_make_msymbol_special): New function.
10231 (arm_coff_make_msymbol_special): New function.
10232 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10233 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10234 (coff_sym_is_thumb): Delete declaration.
10235 (arm_elf_make_msymbol_special): Declare.
10236 (arm_coff_make_msymbol_special): Declare.
10237 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10238 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10239
10240 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10241
10242 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10243
10244 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10245
10246 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10247 * gdbarch.c gdbarch.h: Regenerate.
10248 * arch-utils.c (default_print_float_info): New function.
10249 * arch-utils.h (default_print_float_info): Prototype it.
10250 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10251 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10252 (PRINT_FLOAT_INFO): Document it.
10253
10254 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10255 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10256 (PRINT_FLOAT_INFO): Define.
10257
10258 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10259
10260 * win32-nat.c (_initialize_check_for_gdb_ini):
10261 Add typecast to sprintf argument to suppress a warning.
10262
10263 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10264
10265 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10266 to allow easier handling of pass state.
10267 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10268 that gives exception name and address.
10269 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10270 and set last_sig value to ourstatus->value.sig. Some missing
10271 exceptions added.
10272 (child_continue): Correctly report continue_status.
10273 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10274 TARGET_SIGNAL_0 (new default value).
10275 (child_resume): consider sig argument passed to decide if
10276 the exception should be passed to debuggee or not.
10277
10278 2002-02-05 Michael Snyder <msnyder@redhat.com>
10279
10280 * regcache.c (fetch_register): Call target_fetch_register
10281 only if we don't call FETCH_PSEUDO_REGISTER.
10282 (store_register): Call target_store_register only if we
10283 don't call STORE_PSEUDO_REGISTER.
10284
10285 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10286
10287 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10288 ELF_MAKE_MSYMBOL_SPECIAL.
10289 * gdbarch.c, gdbarch.h: Regenerate.
10290 * arch-utils.c (default_make_msymbol_special): New function.
10291 * arch-utils.h (default_make_msymbol_special): Export.
10292 * elfread.c (elf_symtab_read): Compile use of
10293 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10294 multiarched.
10295 * coffread.c (coff_symtab_read): Ditto, for
10296 COFF_MAKE_MSYMBOL_SPECIAL.
10297
10298 2002-02-05 Jim Blandy <jimb@redhat.com>
10299
10300 * solib-svr4.c (svr4_truncate_ptr): New function.
10301 (svr4_relocate_section_addresses): Do the address arithmetic with
10302 the appropriate truncation for target addresses, even when
10303 CORE_ADDR is larger than a target address.
10304
10305 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10306
10307 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10308 to (int *).
10309
10310 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10311
10312 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10313 code.
10314
10315 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10316
10317 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10318
10319 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10320
10321 * gdbserver/linux-low.c: Remove unused include files.
10322
10323 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10324
10325 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10326 (read_inferior_memory): Use it.
10327 (write_inferior_memory): Likewise.
10328
10329 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10330
10331 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10332 grubbing through sys_errlist.
10333
10334 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10335
10336 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10337
10338 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10339 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10340
10341 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10342
10343 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10344 (do_sfunc, set_cmd_sfunc): New functions.
10345
10346 * command.h (struct cmd_list_element): Add field func.
10347 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10348 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10349 * cli/cli-decode.h: Ditto.
10350
10351 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10352 (help_all, help_cmd_list): Ditto.
10353 (find_cmd, complete_on_cmdlist): Ditto.
10354 * top.c (execute_command): Ditto.
10355
10356 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10357 function.sfunc.
10358
10359 * infcmd.c (notice_args_read): Fix function signature.
10360
10361 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10362 * cli/cli-decode.c (add_set_cmd): Ditto.
10363 * utils.c (initialize_utils): Ditto.
10364 * maint.c (_initialize_maint_cmds): Ditto.
10365 * infrun.c (_initialize_infrun): Ditto.
10366 * demangle.c (_initialize_demangler): Ditto.
10367 * remote.c (add_packet_config_cmd): Ditto.
10368 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10369 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10370 * proc-api.c (_initialize_proc_api): Ditto.
10371 * kod.c (_initialize_kod): Ditto.
10372 * valprint.c (_initialize_valprint): Ditto.
10373 * top.c (init_main): Ditto.
10374 * infcmd.c (_initialize_infcmd): Ditto.
10375 * corefile.c (_initialize_core): Ditto.
10376 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10377 * arch-utils.c (initialize_current_architecture): Ditto.
10378 (_initialize_gdbarch_utils): Ditto.
10379 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10380
10381 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10382 * wince.c (_initialize_inftarg): Ditto.
10383 * symfile.c (_initialize_symfile): Ditto.
10384 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10385 * language.c (_initialize_language): Ditto.
10386 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10387
10388 2002-02-04 Michael Snyder <msnyder@redhat.com>
10389
10390 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10391
10392 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10393
10394 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10395 Add rules for building the register data files.
10396
10397 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10398
10399 * regformats/regdat.sh: Add braces to the definition of
10400 expedite_regs_${arch}.
10401
10402 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10403
10404 * regformats/regdef.h (struct reg): Add comment describing the
10405 requirements for offset and size fields.
10406
10407 2002-02-04 Andreas Schwab <schwab@suse.de>
10408
10409 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10410 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10411
10412 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10413
10414 * gdbarch.sh (copyright): Update years in generated header.
10415 (SMASH_TEXT_ADDRESS): Add rule.
10416 * gdbarch.h, gdbarch.c: Re-generate.
10417 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10418 * dbxread.c: Likewise.
10419 * dwarfread.c: Likewise.
10420 * elfread.c: Likewise.
10421 * somread.c: Likewise.
10422
10423 * arm-tdep.c (arm_smash_text_address): New function.
10424 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10425
10426 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10427
10428 Add support for hardware watchpoints on win32 native.
10429 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10430 CONTEXT_DEBUG_REGISTERS.
10431 (dr variable): New variable. Static array containing a local copy
10432 of debug registers.
10433 (debug_registers_changed): New variable. Reflects when debug registers
10434 are changed and need to be written to inferior.
10435 (debug_registers_used): New variable. Reflects when any debug register
10436 was set, used when new threads are created.
10437 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10438 i386-nat code.
10439 (thread_rec): Set dr array if id is the thread of current_event .
10440 (child_continue, child_resume): Change the debug registers for all
10441 threads if debug_registers_changed.
10442 (child_add_thread): Change the debug registers if debug_registers_used.
10443 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10444 Link nm.h to new nm-cygwin.h file.
10445 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10446 of hardware registers.
10447
10448 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10449
10450 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10451 Restore behavour broken by 2002-01-20 Andrew Cagney
10452 <ac131313@redhat.com> IEEE_FLOAT removal.
10453
10454 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * c-valprint.c (c_val_print): Pass a proper valaddr to
10457 cp_print_class_method.
10458 * valops.c (search_struct_method): If there is only one method
10459 and args is NULL, return that method.
10460
10461 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10462
10463 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10464 accessing tag_name directly.
10465
10466 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10467
10468 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10469 of accessing tag_name directly.
10470
10471 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10472
10473 PR gdb/280
10474 * gdbtypes.c (replace_type): New function.
10475 * gdbtypes.h (replace_type): Add prototype.
10476 * stabsread.c (read_type): Use replace_type.
10477
10478 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10479
10480 * Makefile.in (memattr.o): Add missing dependencies rule.
10481
10482 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10483
10484 * breakpoint.c (break_at_finish_command): Really export.
10485 (break_at_finish_at_depth_command): Ditto.
10486 (tbreak_at_finish_command): Ditto.
10487 * hppa-tdep.c: Include completer.h.
10488 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10489 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10490
10491 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10492
10493 * utils.c (do_write): New function.
10494 (error_stream): Rewrite combining the code from error_begin and
10495 verror.
10496 (verror): Rewrite using error_stream.
10497 (error_begin): Delete function.
10498
10499 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10500
10501 * utils.c (error_begin): Make static.
10502 * defs.h (error_begin): Delete declaration.
10503
10504 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10505 (decode_line_1): Use cplusplus_error instead of error_begin,
10506 cplusplus_hint and return_to_top_level.
10507 * coffread.c (coff_symfile_read): Use error instead of error_begin
10508 and return_to_top_level.
10509 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10510
10511 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10512
10513 * language.h (type_error, range_error): Make string parameter
10514 constant.
10515 * language.c (warning_pre_print): Delete extern declaration.
10516 * dwarfread.c (warning_pre_print): Ditto.
10517 * language.c (type_error, range_error): Rewrite to use verror and
10518 vwarning instead of warning_begin.
10519
10520 2002-02-01 Michael Snyder <msnyder@redhat.com>
10521
10522 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10523 (set_ignore_count): Move misplaced comment back where it belongs.
10524
10525 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10526
10527 * command.h (NO_FUNCTION): Delete macro.
10528 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10529 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10530 * tracepoint.c (_initialize_tracepoint): Ditto.
10531 * cli/cli-decode.c (add_set_cmd): Ditto.
10532 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10533
10534 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10535
10536 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10537 Update ``this'' pointer when calling virtual functions.
10538
10539 2002-02-01 Michael Snyder <msnyder@redhat.com>
10540
10541 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10542 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10543
10544 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10545
10546 * regformats/reg-arm.dat: New file.
10547 * regformats/reg-i386.dat: New file.
10548 * regformats/reg-ia64.dat: New file.
10549 * regformats/reg-m68k.dat: New file.
10550 * regformats/reg-mips.dat: New file.
10551 * regformats/reg-ppc.dat: New file.
10552 * regformats/reg-sh.dat: New file.
10553 * regformats/regdef.h: New file.
10554 * regformats/regdat.sh: New file.
10555
10556 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10557
10558 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10559 (arm_frame_args_address, arm_frame_locals_address): New functions.
10560 (arm_frame_num_args): New function.
10561 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10562 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10563 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10564
10565 2002-01-31 Michael Snyder <msnyder@redhat.com>
10566
10567 * breakpoint.c (break_at_finish_command): Export.
10568 (break_at_finish_at_depth_command): Export.
10569 (tbreak_at_finish_command): Export.
10570 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10571 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10572 "txbreak" commands, which are HPPA specific.
10573
10574 * printcmd.c (disassemble_command): Remove an ancient
10575 artifact of an old merge.
10576
10577 * symfile.h (enum overlay_debugging_state):
10578 Define enum constant values for overlay mode.
10579 * symfile.c (overlay_debugging): Use enums instead of literals.
10580 (overlay_is_mapped, overlay_auto_command,
10581 overlay_manual_command): Ditto.
10582
10583 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10584 breakpoint_here_p, breakpoint_inserted_here_p,
10585 breakpoint_thread_match, bpstat_stop_status,
10586 describe_other_breakpoints, check_duplicates, clear_command):
10587 Coding standard fixes.
10588
10589 * target.c (target_xfer_memory): Add spaces, coding standard.
10590 (do_xfer_memory): Add missing line to trust-readonly
10591 code: check bfd SEC_READONLY flag for section.
10592
10593 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10594
10595 * PROBLEMS: Fix typo, 5.1->5.1.1.
10596
10597 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10598
10599 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10600 data symbols, since we search based on textlow and texthigh.
10601 (find_pc_sect_symtab): Likewise.
10602
10603 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10604
10605 * defs.h (vwarning): Declare.
10606 * utils.c (vwarning): New function.
10607 (warning): Call vwarning.
10608 (warning_begin): Delete function.
10609
10610 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10611 the warning message.
10612 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10613 warning_begin.
10614
10615 2002-01-30 Michael Snyder <msnyder@redhat.com>
10616
10617 * NEWS: Mention "set trust-readonly-sections" command.
10618 Mention generate-core-file command.
10619
10620 2002-01-15 Michael Snyder <msnyder@redhat.com>
10621
10622 * target.c: New command, "set trust-readonly-sections on".
10623 (do_xfer_memory): Honor the suggestion to trust readonly sections
10624 by reading them from the object file instead of from the target.
10625 (initialize_targets): Register command "set trust-readonly-sections".
10626
10627 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10628
10629 * parse.c (target_map_name_to_register): Simplify, search regs and
10630 pseudo-regs using a single loop.
10631
10632 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10633
10634 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10635
10636 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10637
10638 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10639 * config/i386/i386v42mp.mh: Add i387-nat.o .
10640 * i386v4-nat.c: Include i387-nat.h.
10641 (supply_fpregset): Use i387_supply_fsave.
10642 (fill_fpregset): Use i387_fill_fsave.
10643
10644 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10645
10646 * arm-tdep.c (arm_call_dummy_words): Define.
10647 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10648 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10649 (CALL_DUMMY_WORDS): Define.
10650 (arm_call_dummy_words): Declare.
10651 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10652 (arm_linux_call_dummy_words): Declare.
10653
10654 2002-01-30 Andreas Schwab <schwab@suse.de>
10655
10656 * m68klinux-nat.c: Fix last change to use regcache_collect
10657 instead of referencing registers[] directly.
10658
10659 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10660
10661 * parse.c (target_map_name_to_register): Delete code wrapped in
10662 #ifdef REGISTER_NAME_ALIAS_HOOK.
10663
10664 2002-01-28 Michael Snyder <msnyder@redhat.com>
10665
10666 * regcache.c (legacy_read_register_gen): Need to be able to
10667 read pseudo-register as well as real register.
10668 (legacy_write_register_gen): Ditto.
10669
10670 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10671
10672 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10673 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10674 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10675 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10676 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10677 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10678 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10679 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10680 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10681 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10682 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10683 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10684 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10685 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10686 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10687 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10688 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10689 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10690 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10691 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10692
10693 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10694
10695 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10696 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10697 (initialize_current_architecture): Update target_byte_order using
10698 information from BFD.
10699 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10700 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10701
10702 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10703
10704 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10705 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10706
10707 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10708 #ifdef INVALID_FLOAT.
10709 * infcmd.c (do_registers_info): Ditto.
10710 * values.c (unpack_double): Ditto. Add comment.
10711
10712 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10713 already commented out.
10714
10715 2002-01-26 Andreas Schwab <schwab@suse.de>
10716
10717 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10718 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10719 registers and add support for PTRACE_GETREGS.
10720
10721 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10722
10723 GDB 5.1.1 released from 5.1 branch.
10724 * NEWS: Add 5.1.1 news.
10725 * README: Sync with 5.1 branch.
10726
10727 2002-01-23 Fred Fish <fnf@redhat.com>
10728
10729 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10730 stabstring on initial malloc. Reallocing will copy it for us,
10731 if necessary.
10732
10733 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10734
10735 * Makefile.in (hpread_h): Delete.
10736 (HFILES_NO_SRCDIR): Remove hpread.h.
10737 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10738 (hpread.o): Update dependencies.
10739 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10740
10741 * hp-psymtab-read.c: Remove file.
10742 * hp-symtab-read.c: Remove file.
10743 * hpread.h: Remove file.
10744
10745 * hpread.c: Merge all contents of hp-psymtab-read.c,
10746 hp-symtab-read.c and hpread.h into this file, as it was prior to
10747 January 1999.
10748
10749 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10750 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10751 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10752 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10753
10754 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10755
10756 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10757 fill_gregset): Call gdbarch_tdep() just once, assign result to
10758 variable and use that, instead of calling the function several
10759 times.
10760
10761 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10762
10763 * configure.host: Accept sparcv9 as alias for sparc64.
10764 * configure.tgt: Likewise.
10765
10766 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10767
10768 * solib-aix5.c (build_so_list_from_mapfile)
10769 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10770 arguments is not reversed.
10771 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10772 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10773
10774 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10775
10776 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10777 modified version of obsolete sh_fetch_pseudo_register.
10778 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10779 (sh4_register_read): New function.
10780 (sh_pseudo_register_write): New function. Renamed and modified
10781 version of obsolete sh_store_pseudo_register.
10782 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10783 (sh4_register_write): New function.
10784 (sh_gdbarch_init): Remove setting of gdbarch function
10785 fetch_pseudo_register and store_pseudo_register. Remove setting of
10786 register_convert_to_raw, register_convert_to_virtual,
10787 register_convertible.
10788 (sh_sh4_register_convertible): Delete. No longer needed. All is
10789 taken care by architecture specific functions
10790 register_read/register_write.
10791 (sh_sh4_register_convert_to_virtual): Make static.
10792 (sh_sh4_register_convert_to_raw): Ditto.
10793
10794 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10795
10796 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10797 (floatformat_is_nan, floatformat_mantissa): Ditto.
10798
10799 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10800 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10801 builtin_type_ieee_double_little,
10802 builtin_type_ieee_double_littlebyte_bigword,
10803 builtin_type_m68881_ext, builtin_type_i960_ext,
10804 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10805 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10806 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10807 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10808
10809 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10810
10811 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10812 parameter. Set frameless flag if it exists and depended of
10813 whether the scanned function is frameless or not.
10814 (xstormy16_skip_prologue): If function is frameless, return
10815 result of xstormy16_scan_prologue().
10816 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10817 call.
10818
10819 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10820
10821 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10822 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10823 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10824 sh_sh4_register_byte, sh_sh4_register_raw_size,
10825 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10826 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10827 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10828 sh_store_pseudo_register, sh_do_pseudo_register): Call
10829 gdbarch_tdep() just once, assign result to variable and use that,
10830 instead of calling the function several times.
10831
10832 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10833
10834 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10835 macros instead of LAST_FPU_CTRL_REGNUM.
10836 (store_register): Likewise.
10837
10838 2002-01-21 Jim Blandy <jimb@redhat.com>
10839
10840 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10841 is up-to-date before running the program, not just when a program
10842 exits.
10843
10844 2002-01-21 Fred Fish <fnf@redhat.com>
10845
10846 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10847 when we have found all instructions we are looking for.
10848
10849 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10850
10851 * arm-tdep.c (arm_register_name): New function.
10852 (arm_registers_names): Make static.
10853 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10854 (arm_register_name): Declare.
10855 (REGISTER_NAME): Use it.
10856
10857 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10858 Kevin Buettner <kevinb@redhat.com>
10859
10860 Convert arm targets to new FRAME interface.
10861 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10862 (arm_frame_find_save_regs): Delete.
10863 (arm_frame_init_saved_regs): New.
10864 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10865 Allocate extra_info as required. Convert all uses of fsr.regs
10866 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10867 to use extra_info.
10868 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10869 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10870 (check_prologue_cache, save_prologue_cache): Likewise.
10871 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10872 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10873 (FRAME_FIND_SAVED_REGS): Delete.
10874 (arm_frame_find_saved_regs): Delete prototype.
10875 (arm_frame_init_saved_regs): New prototype.
10876 (FRAME_INIT_SAVED_REGS): Define.
10877
10878 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10879
10880 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10881
10882 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10883
10884 From Jeff Law <law@redhat.com>:
10885 * infttrace.c: Include <sys/pstat.h>.
10886 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10887 exec file if the ttrace equivalent fails.
10888
10889 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10890
10891 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10892 (closeLogFile): Ditto.
10893
10894 2002-01-20 Michael Chastain <mec@shout.net>
10895
10896 * top.c (print_gdb_version): Bump copyright year to 2002.
10897
10898 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10899
10900 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10901 Zannoni and Eli Zaretskii.
10902
10903 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10904
10905 * buildsym.c: Update copyright years.
10906 * c-typeprint.c: Likewise.
10907 * dwarf2read.c: Likewise.
10908 * f-typeprint.c: Likewise.
10909 * gdbtypes.c: Likewise.
10910 * gdbtypes.h: Likewise.
10911 * hp-symtab-read.c: Likewise.
10912 * hpread.c: Likewise.
10913 * mdebugread.c: Likewise.
10914 * p-typeprint.c: Likewise.
10915
10916 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10917
10918 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10919 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10920 byte-order selectable.
10921 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10922 * arch-utils.c: Ditto.
10923 (set_endian): Ditto.
10924 (set_endian_from_file): Ditto.
10925 * gdbserver/low-sim.c (create_inferior): Ditto.
10926 * gdbarch.sh: Ditto.
10927 * gdbarch.h: Re-generate.
10928 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10929 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10930 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10931 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10932 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10933 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10934 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10935 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10936 macro definition.
10937 * config/mips/tm-wince.h: Remove #undef of macro
10938 TARGET_BYTE_ORDER_SELECTABLE.
10939 * config/sh/tm-wince.h: Ditto.
10940
10941 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10942
10943 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10944 member function fields. Add accessor macro
10945 TYPE_FN_FIELD_ARTIFICIAL.
10946 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10947 * c-typeprint.c (c_type_print_base): Skip artificial member
10948 functions.
10949
10950 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10951
10952 * f-typeprint.c: Delete unused function f_type_print_args.
10953 * p-typeprint.c: Delete unused function pascal_type_print_args.
10954
10955 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10956
10957 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10958 comment. Add ``artificial'' to ``union field_location''.
10959
10960 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10961
10962 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10963 * mdebugread.c (parse_symbol): Likewise.
10964 * stabsread.c (define_symbol): Likewise.
10965 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10966 initializing TYPE_FIELD_BITPOS to n (obsolete).
10967 (hpread_doc_function_type): Likewise.
10968 * hpread.c (hpread_function_type): Likewise.
10969
10970 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10971
10972 * configure.in (host_makefile_frag): Only require a host makefile
10973 fragment when a native build.
10974 * configure: Re-generate.
10975
10976 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10977
10978 * doublest.h (floatformat_from_type): Declare.
10979 * doublest.c (floatformat_from_type): New function.
10980 (convert_typed_floating): Use.
10981
10982 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10983 call to function floatformat_from_type.
10984
10985 * gdbarch.sh (IEEE_FLOAT): Delete.
10986 * gdbarch.h, gdbarch.c: Re-generate.
10987 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10988 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10989 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10990 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10991 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10992 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10993 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10994 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10995 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10996 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10997 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10998 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10999
11000 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11001 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11002 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11003 * sh-tdep.c (sh_gdbarch_init): Ditto.
11004 * mips-tdep.c (mips_gdbarch_init): Ditto.
11005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11006 * cris-tdep.c (cris_gdbarch_init): Ditto.
11007
11008 2002-01-20 Jiri Smid <smid@suse.cz>
11009
11010 * configure.host, configure.tgt: Support x86-64.
11011 * NEWS: Note new target x86-64.
11012
11013 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11014 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11015 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11016 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11017 x86-64-linux-nat.o): Fix dependencies.
11018
11019 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11020
11021 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11022 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11023 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11024 * config/sparc/xm-sun4os4.h: Delete file.
11025 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11026
11027 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11028
11029 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11030 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11031 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11032 * config/i386/i386lynx.mh (XM_FILE): Delete.
11033 * config/rs6000/xm-rs6000ly.h: Delete file.
11034 * config/sparc/xm-sparclynx.h: Delete file.
11035 * config/m68k/xm-m68klynx.h: Delete file.
11036 * config/i386/xm-i386lynx.h: Delete file.
11037 * config/xm-lynx.h: Delete file.
11038 * config/djgpp/fnchange.lst: Update.
11039
11040 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11041
11042 * alpha-tdep.c (alpha_register_byte): New function.
11043 (alpha_register_raw_size): Ditto.
11044 (alpha_register_virtual_size): Ditto.
11045 (alpha_skip_prologue_internal): Renamed from
11046 alpha_skip_prologue.
11047 (alpha_skip_prologue): New version that calls
11048 alpha_skip_prologue_internal.
11049 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11050 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11051 second argument from alpha_skip_prologue.
11052 (REGISTER_BYTE): Use alpha_register_byte.
11053 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11054 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11055 (FRAMELESS_FUNCTION_INVOCATION): Use
11056 generic_frameless_function_invocation_not.
11057 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11058 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11059
11060 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11061
11062 * config/mips/xm-news-mips.h: Delete file.
11063 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11064
11065 * config/m88k/xm-m88k.h: Delete file.
11066 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11067 * config/m88k/xm-delta88v4.h: Ditto.
11068 * config/m88k/xm-delta88.h: Ditto.
11069
11070 * config/alpha/xm-fbsd.h: Delete file.
11071 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11072
11073 * config/sparc/xm-sparc.h: Delete file.
11074 * Makefile.in (xm-sun4os4.h): Delete dependency.
11075 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11076 * config/sparc/xm-sun4os4.h: Ditto.
11077 * config/sparc/xm-linux.h: Ditto.
11078
11079 * config/i386/xm-windows.h: Delete file.
11080
11081 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11082
11083 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11084 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11085
11086 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11087
11088 * alpha-tdep.c (alpha_call_dummy_words): New.
11089 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11090 (CALL_DUMMY_P): Define.
11091 (CALL_DUMMY_WORDS): Define.
11092 (SIZEOF_CALL_DUMMY_WORDS): Define.
11093
11094 2002-01-19 Per Bothner <per@bothner.com>
11095
11096 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11097 isn't NULL, which can happen with some gcj-3.x-produced code.
11098
11099 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11100
11101 * alpha-tdep.c (alpha_register_virtual_type): New function.
11102 (alpha_init_frame_pc_first): Ditto.
11103 (alpha_fix_call_dummy): Ditto.
11104 (alpha_store_struct_return): Ditto.
11105 (alpha_extract_struct_value_address): Ditto.
11106 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11107 alpha_register_virtual_type.
11108 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11109 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11110 alpha_extract_struct_value_address.
11111 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11112 (INIT_FRAME_PC): Use init_frame_pc_noop.
11113 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11114
11115 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11116
11117 * i386gnu-nat.c: Include "i386-tdep.h".
11118 (fetch_fpregs): Simplify code dealing with uninitialized floating
11119 point states such that it doesn't require FP7_REGNUM.
11120
11121 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11122
11123 * alpha-tdep.c (frame_extra_info): New.
11124 (alpha_find_saved_regs): Make static. Use
11125 frame->extra_info.
11126 (alpha_frame_init_saved_regs): New function.
11127 (alpha_frame_saved_pc): Use frame->extra_info.
11128 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11129 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11130 (init_extra_frame_info): Rename to...
11131 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11132 (alpha_print_extra_frame_info): New function.
11133 (alpha_frame_locals_address): Ditto.
11134 (alpha_frame_args_address): Ditto.
11135 (alpha_pop_frame): Use frame->extra_info.
11136 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11137 alpha_frame_args_address.
11138 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11139 (alpha_find_saved_regs): Remove prototype.
11140 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11141 (EXTRA_FRAME_INFO): Remove.
11142 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11143 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11144
11145 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11146
11147 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11148 (alpha_cannot_fetch_register): Ditto.
11149 (alpha_cannot_store_register): Ditto.
11150 (alpha_register_convertible): Ditto.
11151 (alpha_use_struct_convention): Ditto.
11152 * config/alpha/tm-alpha.h: Update copyright years.
11153 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11154 (INNER_THAN): Use core_addr_lessthan.
11155 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11156 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11157 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11158 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11159 (FRAME_CHAIN): Remove unnecessary cast.
11160
11161 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11162
11163 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11164 obsolete.
11165
11166 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11167
11168 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11169 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11170 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11171 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11172 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11173 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11174 * x86-64-linux-nat.c: Ditto.
11175
11176 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11177
11178 * alpha-tdep.c (alpha_register_name): New function.
11179 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11180 (REGISTER_NAME): Define.
11181
11182 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11183
11184 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11185
11186 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11187
11188 * alpha-tdep.c: Update copyright years.
11189 (alpha_next_pc): New function.
11190 (alpha_software_single_step): Ditto.
11191 * config/alpha/tm-alpha.h: Add prototype for
11192 alpha_software_single_step.
11193
11194 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11195
11196 * alphabsd-nat.c: Update copyright years.
11197 (fill_gregset): Use regcache_collect.
11198 (fill_fpregset): Likewise.
11199 (fetch_inferior_registers): Only fetch integer registers
11200 if requested to do so.
11201 (store_inferior_registers): Only store integer registers
11202 if requested to do so.
11203
11204 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11205
11206 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11207 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11208 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11209 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11210 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11211 * config/arm/linux.mh (XDEPFILES): Delete.
11212 * config/arm/nbsd.mh (XDEPFILES): Delete.
11213 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11214 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11215 * config/i386/i386m3.mh (XDEPFILES): Delete.
11216 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11217 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11218 * config/i386/fbsd.mh (XDEPFILES): Delete.
11219 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11220 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11221 * config/i386/i386v4.mh (XDEPFILES): Delete.
11222 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11223 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11224 * config/i386/i386aix.mh (XDEPFILES): Delete.
11225 * config/i386/go32.mh (XDEPFILES): Delete.
11226 * config/i386/cygwin.mh (XDEPFILES): Delete.
11227 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11228 * config/i386/i386mach.mh (XDEPFILES): Delete.
11229 * config/i386/i386v32.mh (XDEPFILES): Delete.
11230 * config/i386/linux.mh (XDEPFILES): Delete.
11231 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11232 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11233 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11234 * config/i386/i386sco.mh (XDEPFILES): Delete.
11235 * config/i386/i386v.mh (XDEPFILES): Delete.
11236 * config/i386/nbsd.mh (XDEPFILES): Delete.
11237 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11238 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11239 * config/i386/symmetry.mh (XDEPFILES): Delete.
11240 * config/i386/obsd.mh (XDEPFILES): Delete.
11241 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11242 * config/ia64/linux.mh (XDEPFILES): Delete.
11243 * config/ia64/aix.mh (XDEPFILES): Delete.
11244 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11245 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11246 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11247 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11248 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11249 * config/m68k/linux.mh (XDEPFILES): Delete.
11250 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11251 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11252 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11253 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11254 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11255 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11256 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11257 * config/m88k/delta88.mh (XDEPFILES): Delete.
11258 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11259 * config/m88k/m88k.mh (XDEPFILES): Delete.
11260 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11261 * config/mips/linux.mh (XDEPFILES): Delete.
11262 * config/mips/irix6.mh (XDEPFILES): Delete.
11263 * config/mips/irix5.mh (XDEPFILES): Delete.
11264 * config/mips/irix4.mh (XDEPFILES): Delete.
11265 * config/mips/irix3.mh (XDEPFILES): Delete.
11266 * config/mips/decstation.mh (XDEPFILES): Delete.
11267 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11268 (NATDEPFILES): Move core-aout.o to here.
11269 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11270 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11271 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11272 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11273 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11274 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11275 * config/pa/hpux11.mh (XDEPFILES): Delete.
11276 * config/powerpc/aix.mh (XDEPFILES): Delete.
11277 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11278 * config/powerpc/linux.mh (XDEPFILES): Delete.
11279 * config/romp/rtbsd.mh: Rename XDEPFILES.
11280 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11281 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11282 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11283 * config/s390/s390.mh (XDEPFILES): Delete.
11284 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11285 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11286 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11287 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11288 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11289 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11290 * config/sparc/linux.mh (XDEPFILES): Delete.
11291 * config/vax/vaxult.mh (XDEPFILES): Delete.
11292 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11293 * Makefile.in (DEPFILES): Remove XDEPFILES.
11294
11295 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11296
11297 * utils.c (internal_verror): Fix comments, default is yes not no.
11298 Update queries to match. Default to quit and dump core.
11299
11300 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11301
11302 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11303 copyright.
11304 * defs.h, event-top.c, gdbcmd.h: Ditto.
11305 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11306 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11307 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11308 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11309 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11310 * mi/mi-main.c:Ditto.
11311
11312 * stack.c, symfile.c: Update copyright.
11313
11314 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11317 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11318 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11319 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11320
11321 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11322
11323 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11324 * gdbserver/low-lynx.c (myattach): Likewise.
11325 * gdbserver/low-nbsd.c (myattach): Likewise.
11326 * gdbserver/low-sim.c (myattach): Likewise.
11327 * gdbserver/low-sparc.c (myattach): Likewise.
11328 * gdbserver/low-sun3.c (myattach): Likewise.
11329
11330 * gdbserver/low-linux.c (myattach): New function.
11331
11332 * gdbserver/server.c (attach_inferior): New function.
11333 (main): Handle "--attach".
11334
11335 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11336
11337 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11338 maintainer.
11339
11340 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11341
11342 * c-typeprint.c (is_type_conversion_operator): Add additional
11343 check for non-conversion operators.
11344
11345 2002-01-15 Michael Snyder <msnyder@redhat.com>
11346
11347 * linux-proc.c: Add "info proc" command, a la procfs.c.
11348 (read_mapping): New function, abstract and re-use code.
11349 (linux_find_memory_regions): Use new func read_mapping.
11350 (linux_info_proc_cmd): New function, implement "info proc".
11351 (_initialize_linux_proc): Add new command "info proc".
11352
11353 2002-01-15 Michael Snyder <msnyder@redhat.com>
11354
11355 * symfile.c (generic_load): Use bfd_map_over_sections method
11356 instead of manipulating bfd structure members directly.
11357 (add_section_size_callback): New function, bfd sections callback
11358 used by generic_load.
11359 (load_sections_callback): New function, bfd sections callback
11360 used by generic_load.
11361
11362 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11363
11364 [Based on work by Jim Blandy]
11365 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11366 (builtin_type_vec128): Export.
11367 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11368 types.
11369 (builtin_type_vec128): New builtin type for 128 bit vector
11370 registers.
11371 (build_gdbtypes): Initialize builtin_type_v16qi and
11372 builtin_type_v8hi. Create the vec128 register builtin type
11373 structure.
11374 (build_builtin_type_vec128): New function.
11375 (_initialize_gdbtypes): Register builtin_type_v16qi and
11376 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11377 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11378 AltiVec register to new builtin type.
11379
11380 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11381
11382 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11383 to make_cv_type.
11384
11385 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11386
11387 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11388 CLEAN_UP_REGISTER_VALUE.
11389 * regcache.c (supply_register): Update only call.
11390
11391 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11392
11393 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11394 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11395 a29k-*-vxworks* targets as obsolete.
11396
11397 2002-01-14 Michael Snyder <msnyder@redhat.com>
11398
11399 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11400 until we can resolve portability issues.
11401 * gregset.h: Remove references to fpxregs.
11402 * gcore.c (gcore_command): Initialize note_sec to NULL.
11403
11404 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11405
11406 * signals.c (target_signal_to_name): Rewrite. Only use
11407 signals[].name when in bounds and non-NULL.
11408
11409 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11410
11411 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11412 * signals.c (target_signal_to_name): Verify that SIG is within the
11413 bounds of the signals array.
11414
11415 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11416
11417 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11418
11419 2002-01-13 Keith Seitz <keiths@redhat.com>
11420
11421 * stack.c (print_frame_info_base): Print the frame's pc
11422 only if when print_frame_info_listing_hook is not defined.
11423
11424 2002-01-13 Keith Seitz <keiths@redhat.com>
11425
11426 * varobj.c (varobj_set_value): Make sure that there were no
11427 errors evaluating the object before attempting to set its
11428 value.
11429 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11430 so this offset adjustment is no longer necessary.
11431 (create_child): Don't set the error flag if the child is
11432 a CPLUS_FAKE_CHILD.
11433 (value_of_child): If value_fetch_lazy fails, return NULL
11434 so that callers will be notified that an error occurred.
11435 (c_value_of_variable): Delay check of variable's validity
11436 until later. We actually want all structs and unions to have
11437 the value "{...}".
11438 Do not return "???" for variables which could not be evaluated.
11439 This error condition must be returned to the caller so that it
11440 can get the error condition from gdb.
11441 (cplus_name_of_child): Adjust index for vptr before figuring
11442 out the name of the child.
11443 (cplus_value_of_child): If a child's (real) parent is not valid,
11444 don't even bother trying to give a value for it. Just return
11445 an error. Change all instances in this function.
11446 (cplus_type_of_child): If our parent is one of the "fake"
11447 parents, we need to get at the type of the real parent, and
11448 derive the child's true type using this information.
11449
11450 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11451
11452 From 2002-01-09 John Marshall <johnm@falch.net>:
11453 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11454 sources.redhat.com, and tweak some related URLs which had
11455 suffered from linkrot.
11456
11457 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11458
11459 From Jeff law:
11460 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11461 structures passed in registers.
11462
11463 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11464
11465 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11466 white space which prevented compilation. Reported by DSK
11467 <dsk@student.unsw.edu.au>.
11468
11469 2002-01-11 Michael Snyder <msnyder@redhat.com>
11470
11471 * symfile.c (build_section_addr_info_from_section_tab):
11472 Use bfd access method instead of manipulating bfd directly.
11473 (syms_from_objfile): Ditto.
11474 (simple_overlay_update_1): Ditto.
11475 (simple_overlay_update): Ditto.
11476 (generic_load): Ditto.
11477 (overlay_unmapped_address): FIXME comment, bfd access methods.
11478 (sections_overlap): FIXME comment, bfd access methods.
11479 (pc_in_mapped_range): FIXME comment, bfd access methods.
11480 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11481 (section_is_mapped): FIXME comment, bfd access methods.
11482 (section_is_overlay): FIXME comment, bfd access methods.
11483
11484 * symfile.c (generic_load): Whitespace and long line cleanups.
11485 Remove duplicate variable, change several local variables to
11486 more appropriate data types.
11487 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11488
11489 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11490
11491 From Peter Schauer:
11492 * language.c (longest_local_hex_string_custom): Use phex_nz to
11493 convert NUM to a hex string.
11494
11495 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11496
11497 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11498 the function.
11499 Update Copyright year.
11500
11501 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11502
11503 * language.c (longest_raw_hex_string): Delete unused function.
11504
11505 2002-01-11 Petr Sorfa <petrs@caldera.com>
11506
11507 * MAINTAINERS (write-after-approval): Add myself.
11508 * dwarf2read.c (read_tag_string_type): Handling of
11509 DW_AT_byte_size.
11510 (read_tag_string_type): FORTRAN fix to prevent propagation of
11511 first string size.
11512 (set_cu_language): Handling of DW_LANG_Fortran95
11513
11514 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11515
11516 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11517 GETPID(inferior_ptid).
11518 (store_inferior_registers): Likewise.
11519
11520 2002-01-10 Jason Merrill <jason@redhat.com>
11521
11522 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11523 Fix DW_OP_minus.
11524
11525 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11526
11527 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11528 and bfd/elf32-sh-nbsd.c.
11529
11530 2002-01-10 Michael Snyder <msnyder@redhat.com>
11531
11532 * NEWS: Mention --pid and corefile/proc-id behavior change.
11533
11534 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11535 * gcore.c: Include cli/cli-decode.h instead of command.h.
11536
11537 * main.c (captured_main): Add new command line option "--pid".
11538 If the second command line argument (following the symbol-file)
11539 begins with a digit, try to attach to it before trying to open
11540 it as a corefile.
11541 (print_gdb_help): Document the "--pid" argument.
11542
11543 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11544
11545 * completer.c (command_completer): New function.
11546
11547 * completer.h <command_completer>: Add prototype.
11548
11549 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11550 completer for the "help" command.
11551
11552 2002-01-09 Jason Merrill <jason@redhat.com>
11553
11554 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11555
11556 2002-01-09 Michael Snyder <msnyder@redhat.com>
11557
11558 * i386-linux-nat.c (fill_fpxregset): Make global.
11559 (store_fpxregset): Ditto.
11560
11561 * gregset.h (gdb_fpxregset_t): Define.
11562 (supply_fpxregset): Prototype.
11563 (fill_fpxregset): Prototype.
11564
11565 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11566
11567 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11568
11569 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11570 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11571 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11572
11573 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11574
11575 * MAINTAINERS: Update target maintainer rules so that any
11576 Maintainer can approve a tested patch for a maintenance-only
11577 target.
11578
11579 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11580
11581 * MAINTAINERS (write-after-approval): Add myself.
11582
11583 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11584 IN_SIGTRAMP.
11585
11586 2002-01-08 Michael Snyder <msnyder@redhat.com>
11587
11588 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11589 real name of the executable, rather than the /proc name.
11590
11591 2002-01-03 Michael Snyder <msnyder@redhat.com>
11592
11593 Implement a "generate-core-file" command in gdb, save target state.
11594 * gcore.c: New file. Implement new command 'generate-core-file'.
11595 Save a corefile image of the current state of the inferior.
11596 * linux-proc.c: Add linux-specific code for saving corefiles.
11597 * target.h (struct target_ops): Add new target vectors for saving
11598 corefiles; to_find_memory_regions and to_make_corefile_notes.
11599 (target_find_memory_regions): New macro.
11600 (target_make_corefile_notes): New macro.
11601 * target.c (update_current_target): Inherit new target methods.
11602 (dummy_find_memory_regions): New place-holder method.
11603 (dummy_make_corefile_notes): New place-holder method.
11604 (init_dummy_target): Initialize new dummy target vectors.
11605 * exec.c (exec_set_find_memory_regions): New function.
11606 Allow the exec_ops vector for memory regions to be taken over.
11607 (exec_make_note_section): New function, target vector method.
11608 * defs.h (exec_set_find_memory_regions): Export prototype.
11609 * procfs.c (proc_find_memory_regions): New function, corefile method.
11610 (procfs_make_note_section): New function, corefile method.
11611 (init_procfs_ops): Set new target vector pointers.
11612 (find_memory_regions_callback): New function.
11613 (procfs_do_thread_registers): New function.
11614 (procfs_corefile_thread_callback): New function.
11615 * sol-thread.c (sol_find_memory_regions): New function.
11616 (sol_make_note_section): New function.
11617 (init_sol_thread_ops): Initialize new target vectors.
11618 * inftarg.c (inftarg_set_find_memory_regions): New function.
11619 Allow to_find_memory_regions vector to be taken over.
11620 (inftarg_set_make_corefile_notes): New function.
11621 Allow to_make_corefile_notes vector to be taken over.
11622 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11623 interface layer if not target_has_execution (may be a corefile).
11624 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11625 * config/sparc/sun4sol2.mh: Ditto.
11626 * config/alpha/alpha-linux.mh: Ditto.
11627 * config/arm/linux.mh: Ditto.
11628 * config/i386/x86-64linux.mh: Ditto.
11629 * config/ia64/linux.mh: Ditto.
11630 * config/m68k/linux.mh: Ditto.
11631 * config/mips/linux.mh: Ditto.
11632 * config/powerpc/linux.mh: Ditto.
11633 * config/sparc/linux.mh: Ditto.
11634
11635 2002-01-07 Michael Snyder <msnyder@redhat.com>
11636
11637 * arm-linux-nat.c: Remove references to regcache.c internal data
11638 (registers[] and register_valid[]).
11639
11640 2002-01-07 Michael Snyder <msnyder@redhat.com>
11641
11642 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11643 so that attaching to a pid will automatically read the process's
11644 symbol file and shlibs.
11645 * Makefile.in: Add rule for linux-proc.o.
11646 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11647 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11648 * config/arm/linux.mh: Ditto.
11649 * config/i386/linux.mh: Ditto.
11650 * config/i386/x86-64linux.mh: Ditto.
11651 * config/ia64/linux.mh: Ditto.
11652 * config/m68k/linux.mh: Ditto.
11653 * config/mips/linux.mh: Ditto.
11654 * config/powerpc/linux.mh: Ditto.
11655 * config/sparc/linux.mh: Ditto.
11656
11657 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11658
11659 * win32-nat.c: Add i386-tdep.h dependency.
11660
11661 2002-01-07 Michael Snyder <msnyder@redhat.com>
11662
11663 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11664 instead of bfd_get_arch_size. Don't bail out just because
11665 there's no exec_bfd.
11666
11667 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11668 * p-valprint.c (pascal_object_print_value): Ditto.
11669 * somread.c (som_symtab_read): Ditto.
11670 * symfile.c (simple_free_overlay_region_table): Ditto.
11671 * valops.c (value_assign): Ditto.
11672
11673 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11674 use tilde_expand and strerror for opening save-tracepoints file.
11675
11676 * thread-db.c (thread_db_new_objfile): Indendation fix.
11677
11678 * infptrace.c (GDB_MAX_ALLOCA): New define.
11679 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11680 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11681 can be overridden with whatever value is appropriate to the host).
11682 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11683 alloca to allocate potentially large buffer.
11684 * rs6000-nat.c (child_xfer_memory): Ditto.
11685 * symm-nat.c (child_xfer_memory): Ditto.
11686 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11687
11688 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11689
11690 From Nick Clifton <nickc@redhat.com>
11691 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11692
11693 2002-01-07 Michael Snyder <msnyder@redhat.com>
11694
11695 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11696 Don't use exec_bfd if it's NULL.
11697
11698 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11699
11700 * valops.c (value_arg_coerce): Fix formatting.
11701
11702 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11703
11704 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11705 * gnu-nat.c: Ditto.
11706
11707 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11708
11709 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11710 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11711 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11712 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11713 z8k-coff have not been multi-arched. Update z8k-coff build
11714 status.
11715
11716 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11717
11718 * MAINTAINERS: Mark a29k target as obsolete.
11719 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11720 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11721 comments.
11722 * NEWS: Note that a29k targets are obsolete.
11723 * a29k-tdep.c: Mark as obsolete.
11724 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11725 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11726 a29k-*-vxworks* targets as obsolete.
11727 * remote-adapt.c: Obsolete.
11728 * remote-eb.c: Obsolete.
11729 * remote-mm.c: Obsolete.
11730 * remote-udi.c: Obsolete.
11731 * config/a29k/a29k-udi.mt: Obsolete.
11732 * config/a29k/a29k.mt: Obsolete.
11733 * config/a29k/tm-a29k.h: Obsolete.
11734 * config/a29k/tm-vx29k.h: Obsolete.
11735 * config/a29k/vx29k.mt: Obsolete.
11736
11737 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11738
11739 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11740 with BFD_ENDIAN_BIG.
11741
11742 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11743
11744 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11745 * configure, config.in: Re-generate.
11746 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11747 * defs.h: Do not include <endian.h>.
11748
11749 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11750
11751 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11752 * config.in: Regenerate.
11753 * configure.in: Update copyright years.
11754 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11755 * configure: Regenerate.
11756 * i386bsd-nat.c: Update copyright years.
11757 (fill_gregset): Use regcache_collect.
11758 (fetch_inferior_registers): Only fetch integer registers
11759 if requested to do so. Add support for XMM registers
11760 using PT_GETXMMREGS.
11761 (store_inferior_registers): Only store integer registers
11762 if requested to do so. Add support for XMM registers
11763 using PT_SETXMMREGS.
11764 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11765 (store_inferior_registers): Remove.
11766 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11767 (fetch_elfcore_registers): New function.
11768 (i386nbsd_elfcore_fns): New.
11769 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11770 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11771 i386bsd-nat.o.
11772 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11773 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11774 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11775 * config/i386/tm-nbsd.h: Update copyright years.
11776 (HAVE_SSE_REGS): Define.
11777 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11778 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11779 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11780 (SIGCONTEXT_PC_OFFSET): Remove.
11781 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11782
11783 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11784
11785 * configure.tgt: Remove powerpc-*-macos* target.
11786 * config/m68k/xm-mpw.h: Delete file.
11787 * config/xm-mpw.h: Delete file.
11788 * ser-mac.c: Delete file.
11789 * mpw-make.sed: Delete file.
11790 * mpw-config.in: Delete file.
11791 * mac-xdep.c: Delete file.
11792 * mac-gdb.r: Delete file.
11793 * mac-defs.h: Delete file.
11794 * mac-nat.c: Delete file.
11795 * config/powerpc/macos.mh: Delete file.
11796 * config/powerpc/macos.mt: Delete file.
11797 * config/powerpc/nm-macos.h: Delete file.
11798 * config/powerpc/tm-macos.h: Delete file.
11799 * source.c (openp, open_source_file): Remove obsolete code.
11800 * top.c (gdb_readline): Ditto.
11801 * utils.c (query): Ditto.
11802 * event-top.c (display_gdb_prompt): Ditto.
11803 * Makefile.in (ser-mac.o): Delete obsolete target.
11804 * NEWS: Update.
11805
11806 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11807
11808 * defs.h (BIG_ENDIAN): Delete macro definition.
11809 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11810 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11811 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11812 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11813 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11814 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11815 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11816 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11817 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11818 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11819 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11820 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11821 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11822 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11823 * gdbarch.c: Re-generate.
11824
11825 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11826
11827 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11828 for core files.
11829
11830 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11831
11832 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11833
11834 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11835
11836 * value.h (value_ptr): Delete typedef.
11837
11838 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11839
11840 * i386nbsd-nat.c: Update copyright years.
11841 Include i386-tdep.h.
11842
11843 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11844
11845 * stabsread.c: Update copyright years.
11846
11847 From Debashis Mahata <debashis.mahata@wipro.com>:
11848 (read_struct_fields): Deal with Sun C compiler erroneous stab
11849 output for structs and unions.
11850 Fix PR gdb/269.
11851
11852 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11853
11854 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11855 prototype.
11856
11857 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11858
11859 * cp-abi.c: Fix whitespace.
11860 (baseclass_offset): New wrapper function.
11861 * cp-abi.h (baseclass_offset): Add prototype.
11862 (struct cp_abi_ops): Add baseclass_offset pointer.
11863
11864 * valops.c (vb_match): Move to...
11865 * gnu-v2-abi.c (vb_match): here.
11866 * valops.c (baseclass_offset): Move to...
11867 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11868
11869 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11870
11871 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11872 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11873 * hpacc-abi.c (init_hpacc_ops): Likewise.
11874
11875 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11876
11877 * valops.c (find_overload_match): Accept obj as a
11878 reference parameter. Update it before returning.
11879 * value.h (find_overload_match): Update prototype.
11880 * eval.c (evaluate_subexp_standard): Pass object to
11881 find_overload_match by reference.
11882
11883 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11884
11885 * valarith.c: Replace value_ptr with struct value pointer. Remove
11886 register attribute from value declarations.
11887 * valops.c: Ditto.
11888 * value.h: Ditto.
11889 * scm-lang.c (scm_lookup_name): Ditto.
11890
11891 2002-01-03 Michael Snyder <msnyder@redhat.com>
11892
11893 Abstract the functionality of iterating over mapped memory
11894 regions into a general purpose iterator function.
11895 * procfs.c (iterate_over_mappings): New function, general purpose
11896 iterator for memory sections.
11897 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11898 (solib_mappings_callback): New function, callback for above.
11899 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11900 (info_mappings_callback): New function, callback for above.
11901
11902 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11903
11904 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11905
11906 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11907 * i386-tdep.c: Include "elf-bfd.h".
11908 (process_note_abi_tag_sections): New function.
11909 (i386_gdbarch_init): Add code to recognize various OS/ABI
11910 combinations.
11911
11912 * maint.c (_initialize_maint_cmds): Add missing \ in
11913 string-literal.
11914
11915 For older changes see ChangeLog-2001
11916 \f
11917 Local Variables:
11918 mode: change-log
11919 left-margin: 8
11920 fill-column: 74
11921 version-control: never
11922 End:
This page took 0.32814 seconds and 4 git commands to generate.