* configure: Regenerate using the proper version of autoconf.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-20 Joel Brobecker <brobecker@gnat.com>
2
3 * configure: Regenerate using the proper version of autoconf.
4
5 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
6
7 * findvar.c (read_var_value): Temporarily disable TLS code, until
8 complete TLS support is added.
9
10 2002-10-21 Jim Blandy <jimb@redhat.com>
11 Elena Zannoni <ezannoni@redhat.com>
12
13 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
14 for thread local storage locations.
15 (struct symbol): Add objfile field.
16 (SYMBOL_OBJFILE): Define.
17 * dwarf2read.c (is_thread_local): New static variable.
18 (new_symbol): If variable is in thread local fill in address class
19 and objfile appropriately.
20 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
21 stack operation.
22 * printcmd.c (address_info): Print the information for thread
23 local storage variable.
24 * findvar.c (read_var_value): In case of thread local variable,
25 defer to the target vector code to compute address.
26
27 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
28
29 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
30 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
31
32 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
33
34 * symtab.h (address_class): Rename
35 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
36 * hpread.c (hpread_process_one_debug_symbol): Ditto.
37 * printcmd.c (address_info): Ditto.
38 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
39
40 2002-10-20 Mark Kettenis <kettenis@gnu.org>
41
42 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
43 DBREG_DRX macro to acces debug registers.
44
45 * Makefile.in (i386obsd-tdep.o): New target.
46
47 * solib-sunos.c: Include "bcache.h" and "regcache.h".
48 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
49
50 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
51 * config/i386/obsd.mt: New file.
52 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
53 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
54 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
55 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
56 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
57 * i386obsd-tdep.c: New file.
58
59 2002-10-19 Adam Fedor <fedor@gnu.org>
60
61 * objc-exp.y (name_not_typename): Fix invalid comment.
62
63 2002-10-20 Mark Kettenis <kettenis@gnu.org>
64
65 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
66 to allocate partial syms and macro byte caches.
67
68 2002-10-18 David Carlton <carlton@math.stanford.edu>
69
70 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
71
72 2002-10-18 Adam Fedor <fedor@gnu.org>
73
74 * stabsread.c (find_name_end): New function.
75 (define_symbol): Use it.
76
77 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
78
79 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
80 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
81 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
82 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
83
84 2002-10-17 David Carlton <carlton@math.stanford.edu>
85
86 * symfile.h: Add opaque declaration for struct obstack.
87 Declare obsavestring to take a const char *.
88 * symfile.c (obsavestring): Make first argument a const char *.
89
90 2002-10-16 Adam Fedor <fedor@gnu.org>
91
92 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
93 names when matching breakpoints in current file.
94
95 2002-10-16 Kevin Buettner <kevinb@redhat.com>
96
97 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
98 (read_tag_pointer_type): Add address class support.
99 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
100 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
101 New methods.
102 * gdbarch.h, gdbarch.c: Regenerate.
103 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
104 (make_type_with_address_space, recursive_type_dump): Add address
105 class support.
106 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
107 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
108 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
109
110 2002-10-16 Klee Dienes <kdienes@apple.com>
111
112 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
113 to get the last character of a char[] buffer, not
114 name[sizeof(vptr_name)-1].
115
116 2002-10-14 Adam Fedor <fedor@gnu.org>
117
118 * symtab.h: New objc_specific struct.
119 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
120 (SYMBOL_DEMANGLED_NAME): Likewise.
121
122 2002-10-14 Adam Fedor <fedor@gnu.org>
123
124 * symfile.c (init_filename_language_table): Add ObjC file extension.
125
126 2002-10-14 Adam Fedor <fedor@gnu.org>
127
128 * utils.c (puts_filtered_tabular): New function.
129 (fprintf_symbol_filtered): Get ObjC demangled name.
130 * defs.h (puts_filtered_tabular): Declared.
131
132 2002-10-14 Kevin Buettner <kevinb@redhat.com>
133
134 * c-lang.h (c_type_print_varspec_prefix): Delete.
135 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
136 ``need_post_space'' parameter. Adjust all callers.
137
138 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
139
140 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
141 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
142 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
143 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
144
145 2002-10-13 Adam Fedor <fedor@gnu.org>
146
147 * source.c (print_source_lines): Update comments.
148
149 2002-10-13 Adam Fedor <fedor@gnu.org>
150
151 * valops.c (value_of_local): New function.
152 (value_of_this): Use it.
153 * value.h (value_of_local): Declared.
154
155 2002-10-13 Adam Fedor <fedor@gnu.org>
156
157 * parse.c: (length_of_subexp, prefixify_subexp): Handle
158 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
159
160 2002-10-12 Adam Fedor <fedor@gnu.org>
161
162 * language.c (binop_result_type): Add language_objc to case.
163 (integral_type): Likewise.
164 (character_type): Likewise.
165 (string_type): Likewise.
166 (boolean_type): Likewise.
167 (structured_type): Likewise.
168 (binop_type_check): Likewise.
169
170 2002-10-11 Adam Fedor <fedor@gnu.org>
171
172 * printcmd.c (address_info): Print 'self' for ObjC.
173
174 2002-10-11 Adam Fedor <fedor@gnu.org>
175
176 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
177 OP_SELF.
178
179 2002-10-11 Adam Fedor <fedor@gnu.org>
180
181 * language.h (CAST_IS_CONVERSION): Add language_objc.
182
183 2002-10-11 Adam Fedor <fedor@gnu.org>
184
185 * defs.h (enum language): Add language_objc.
186
187 2002-10-11 Klee Dienes <kdienes@apple.com>
188
189 * findvar.c (read_memory_typed_address): New function.
190 * gdbcore.h (read_memory_typed_address): Add prototype.
191 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
192 to read a value destined for a CORE_ADDR, not read_memory_integer.
193 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
194 (f77_get_dynamic_lowerbound): Ditto.
195
196 2002-10-11 Martin M. Hunt <hunt@redhat.com>
197
198 * utils.c (string_to_core_addr): After turning string into
199 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
200 which will do necessary sign-extension, etc.
201
202 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
203
204 * c-exp.y (THIS): Delete token and grammar rule.
205 (yylex): Don't return THIS.
206 * cp-valprint.c (vtbl_ptr_name_old): Delete.
207 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
208 * demangle.c (cplus_markers): Update comment. Put '$'
209 first. Remove CPLUS_MARKER.
210 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
211 * jv-exp.y (THIS): Delete token and grammar rule.
212 (yylex): Don't return THIS.
213 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
214 * objc-exp.y (THIS): Delete token and grammar rule.
215 (yylex): Don't return THIS.
216 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
217 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
218 (read_member_functions): Likewise for opname.
219 (read_tilde_fields): Use is_cplus_marker.
220
221 * defs.h (CPLUS_MARKER): Don't define.
222 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
223 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
224 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
225 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
226 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
227
228 * config/i386/tm-i386v4.h: Delete file.
229 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
230 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
231 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
232 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
233 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
234 * config/i386/i386sco5.mt (TM_FILE): Likewise.
235 * config/i386/i386v4.mt (TM_FILE): Likewise.
236 * config/i386/ncr3000.mt (TM_FILE): Likewise.
237
238 2002-10-10 Marko Mlinar <markom@opencores.org>
239
240 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
241 accidentially not commited 2002-10-09
242 * gdbarch.h, gdbarch.c: Re-generate.
243
244 2002-10-09 Marko Mlinar <markom@opencores.org>
245
246 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
247 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
248 * gdbarch.h, gdbarch.c: Re-generate.
249
250 2002-10-08 Petr Sorfa <petrs@caldera.com>
251
252 Revised and re-submitted by John Wolfe <jlw@caldera.com>
253
254 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
255 so we can work on more than one compilation unit at a time. This
256 helps prepare GDB to handle inter-CU die references.
257 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
258 the code to be defined before struct comp_unit_head.
259 (comp_unit_head): Added new members - offset, cu_head,
260 begin_die, next and dwarf2_abbrevs.
261 (dwarf2_abbrevs): Removed single static var; now member of
262 struct comp_unit_head.
263 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
264 members.
265 (psymtab_to_symtab_1): Changed to work with the new
266 struct comp_unit_head.
267 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
268 constructs the dwarf2_abbrevs[] inside the cu_header.
269 (dwarf2_empty_abbrev_table): Now expects a ptr to a
270 dwarf2_abbrev table to clean up.
271 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
272 handling of dwarf2_abbrevs inside the cu_header.
273 (read_partial_die): Now supports the call to the new
274 dwarf2_lookup_abbrev.
275 (read_full_die): Now supports the call to the new
276 dwarf2_lookup_abbrev.
277
278 2002-10-06 Christopher Faylor <cgf@redhat.com>
279
280 * Makefile.in (install-gdbtk): Add missing continuation backslash to
281 insure that shell variables, such as "transformed_name" are propagated
282 to later shell statements in rule.
283
284 2002-10-06 Mark Kettenis <kettenis@gnu.org>
285
286 * config/i386/nm-i386sco.h: Add protection against
287 multiple-inclusion. Include "i386/nm-i386v.h".
288 (REGISTER_U_ADDR): Remove define.
289 (i386_register_u_addr): Remove prototype.
290
291 2002-10-04 Michael Snyder <msnyder@redhat.com>
292
293 * m32r-stub.c (handle_exception): Make sure exception is "trap"
294 before treating it as a single-step event.
295
296 2002-10-03 Adam Fedor <fedor@gnu.org>
297
298 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
299 (objc_demangle): Remove assignment in if statements, Replace
300 free with xfree.
301 (add_msglist): Likewise.
302 (end_msglist): Likewise.
303 (complare_selectors): Likewise.
304 (selectors_info): Likewise.
305 (compare_classes): Likewise.
306 (classes_info): Likewise.
307 (print_object_command): Likewise.
308 (find_objc_msgcall_submethod): Replace PTR with void *.
309 * objc-lang.h: Remove check for __STDC__.
310
311 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
312
313 * ui-out.h (ui_out_field_fmt_int): New prototype.
314 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
315 of field width and alignment.
316 * stack.c (print_frame_info_base): When printing frame level, use
317 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
318 PR gdb/192
319
320 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
321
322 * MAINTAINERS: Add self to Write After Approval list.
323
324 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
325
326 * infcmd.c (interrupt_target_command_wrapper): Delete.
327 (interrupt_target_command): Make non static.
328 (nofp_registers_info): Make static.
329 * stack.c (return_command_wrapper): Delete.
330 (return_command): Make non static.
331
332 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
333
334 * event-top.c (gdb_setup_readline): New function. Code moved from
335 _initialize_event_loop().
336 (_initialize_event_loop): Call gdb_setup_readline().
337
338 2002-10-02 Andrew Cagney <ac131313@redhat.com>
339
340 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
341 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
342 * gdbarch.h, gdbarch.c: Re-generate.
343
344 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
345
346 Fix PR gdb/778
347 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
348 before recursing.
349 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
350 of fill_in_vptr_fieldno.
351
352 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
353
354 * inferior.h (registers_info, stepi_command, nexti_command,
355 continue_command, interrupt_target_command): Export from infcmd.c.
356 * frame.h (args_info, selected_frame_level_changed_hook,
357 return_command): Export from stack.c.
358 * v850ice.c (stepi_command, nexti_command, continue_command): use
359 prototypes from inferior.h.
360 * tracepoint.c (registers_info, args_info, locals_info): Use
361 prototypes from frame.h and inferior.h.
362 * Makefile.in (mi-main.o): Add dependency on frame.h.
363
364 2002-10-02 Andrew Cagney <ac131313@redhat.com>
365
366 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
367 value in register 3 adjusted by ppc_gp0_regnum.
368
369 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
370
371 2002-10-02 Marko Mlinar <markom@opencores.org>
372
373 * MAINTAINERS: Add myself to the Write After Approval list.
374
375 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
376
377 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
378 of the section for the N64 ABI, fixed.
379
380 * config/mips/tm-irix6.h: Include solib.h.
381
382 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
383
384 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
385 GNU operators.
386
387 2002-10-01 Andrew Cagney <ac131313@redhat.com>
388
389 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
390 and that "mi0" syntax has been removed.
391
392 2002-09-30 David Carlton <carlton@math.stanford.edu>
393
394 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
395 * ppc-sysv-tdep.c: #include "gdb_string.h".
396 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
397 pacify GCC.
398
399 2002-10-01 Andrew Cagney <ac131313@redhat.com>
400
401 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
402 "vrsave"'s register number.
403
404 2002-09-30 Andrew Cagney <ac131313@redhat.com>
405
406 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
407 use frame_unwind_signed_register to obtain the PC.
408 (mips_frame_chain): Handle a generic dummy frame.
409 (mips_init_extra_frame_info): When a generic dummy frame, don't
410 re-compute the frame base.
411 (mips_pop_frame): Handle generic dummy frames.
412 (mips_gdbarch_init): When generic dummy frames, set
413 use_generic_dummy_frames, push_dummy_frame to
414 generic_push_dummy_frame, pc_in_call_dummy to
415 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
416 generic_save_dummy_frame_tos.
417
418 2002-09-30 Andrew Cagney <ac131313@redhat.com>
419
420 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
421 against TOP when TOP was explictly set.
422 (generic_push_dummy_frame): Set TOP to zero.
423
424 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
425
426 * event-loop.c (start_event_loop): Rename variable 'result' to
427 'gdb_result', to avoid conflicts with upcoming intepreters changes.
428
429 2002-09-30 Keith Seitz <keiths@redhat.com>
430
431 * gdb-events.sh (selected_thread_changed): New event.
432 * gdb-events.c: Regenerated.
433 * gdb-events.h: Regenerated.
434
435 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
436
437 * MAINTAINERS: Add self to Write After Approval list.
438
439 2002-09-30 Fernando Nasser <fnasser@redhat.com>
440
441 * disasm.c: New file.
442 * disasm.h: New file.
443 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
444 (compare_lines): Ditto.
445 (dump_insns): Ditto.
446 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
447 argument.
448 (do_assembly_only): Ditto.
449 (do_disassembly): Renamed to gdb_disassembly and moved to
450 disasm.c. Sdded uiout argument.
451 * Makefile.in: Add new files. Reorder SFILES list. Update
452 dependencies. Include libgdb.a later in the insight executable.
453
454 2002-09-29 Andrew Cagney <ac131313@redhat.com>
455
456 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
457 bfd/elf64-alpha-fbsd.c.
458
459 2002-09-29 Andrew Cagney <ac131313@redhat.com>
460
461 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
462 i386gnu-tdep.c.
463
464 2002-09-29 Andrew Cagney <ac131313@redhat.com>
465
466 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
467 __FUNCTION__.
468 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
469 function name.
470 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
471 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
472 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
473 (S_msg_sig_post_reply): Ditto.
474
475 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
476
477 * sh-tdep.c (sh_use_struct_convention): Use definition according
478 to ABI.
479 (sh_push_arguments): Store in register with correct endianess.
480 (sh_default_store_return_value): Ditto.
481 (sh_gdbarch_init): Set sizeof long double to 8.
482
483 2002-09-27 Mark Kettenis <kettenis@gnu.org>
484
485 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
486 Fix some whitespace problems.
487
488 2002-09-27 David Carlton <carlton@math.stanford.edu>
489
490 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
491 (mcore-tdep.o): Ditto.
492 (ns32k-tdep.o): Ditto.
493 (ns32knbsd-tdep.o): Ditto.
494 (sh3-rom.o): Ditto.
495 (vax-tdep.o): Ditto.
496 * cris-tdep.c: #include "gdb_string.h"
497 * mcore-tdep.c: Ditto.
498 * ns32k-tdep.c: Ditto.
499 * ns32knbsd-tdep.c: Ditto.
500 * sh3-rom.c: Ditto.
501 * vax-tdep.c: Ditto.
502
503 2002-09-27 David Carlton <carlton@math.stanford.edu>
504
505 * config/djgpp/fnchange.lst: Add entries for
506 gdb/testsuite/gdb.c++/m-static files.
507
508 2002-09-27 Jim Wilson <wilson@redhat.com>
509
510 * MAINTAINERS: Add myself to the Write After Approval list.
511
512 2002-09-26 Martin M. Hunt <hunt@redhat.com>
513
514 * mips-tdep.c (find_proc_desc): Initialize startaddr.
515
516
517 2002-09-26 Andrew Cagney <ac131313@redhat.com>
518
519 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
520 frame.
521
522 2002-09-26 Andrew Cagney <ac131313@redhat.com>
523
524 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
525 (rs6000_struct_return_address): Delete variable.
526 (rs6000_store_struct_return): Update.
527 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
528 deprecated_extract_struct_value_address.
529 (rs6000_frame_align): New function.
530 (rs6000_gdbarch_init): Set frame_align.
531
532 2002-09-26 Andrew Cagney <ac131313@redhat.com>
533
534 From Grace Sainsbury <graces@redhat.com>:
535 * Makefile.in (gdbtk-main.o): New target.
536 (gdb.o): New target.
537 (main_h): Define.
538 (main.o): Update dependencies.
539 (gdb$(EXEEXT)): Add gdb.o.
540 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
541 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
542 (SUBDIR_GDBTK_CLEAN): Set.
543 (install-gdbtk): Install the insight binary.
544 (uninstall-gdbtk): New target.
545 (all-gdbtk, clean-gdbtk): New rule.
546 * top.c (use_windows): Default to zero.
547 * main.c: Include "main.h".
548 (main): Delete.
549 (struct captured_main_args): Delete.
550 (gdb_main): New function.
551 * main.h: New file.
552 * gdb.c: New File.
553
554 2002-09-25 Andrew Cagney <cagney@redhat.com>
555
556 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
557 (frame_map_regnum_to_name): New function.
558 (frame_map_name_to_regnum): New function.
559 * frame.h (frame_map_name_to_regnum): Declare.
560 (frame_map_regnum_to_name): Declare.
561 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
562 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
563 * parse.c: Do not include "builtin-regs.h".
564 (target_map_name_to_register): Delete function.
565 (write_dollar_variable): Use frame_map_name_to_regnum.
566 * parser-defs.h (target_map_name_to_register): Delete declaration.
567 * expprint.c: Include "frame.h".
568 (print_subexp): Use frame_map_regnum_to_name.
569 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
570 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
571
572 2002-09-25 Andrew Cagney <ac131313@redhat.com>
573
574 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
575 wasn't saved, and the next innermost frame is a dummy, return the
576 dummy frame's link register.
577
578 2002-09-24 Jim Blandy <jimb@redhat.com>
579
580 Fix from Paul Breed:
581 * main.c (captured_main): Add a `break' after the case for 'b'.
582
583 2002-09-24 Keith Seitz <keiths@redhat.com>
584
585 * varobj.c (c_type_of_child): Use get_target_type instead
586 of TYPE_TARGET_TYPE.
587
588 2002-09-22 Fernando Nasser <fnasser@redhat.com>
589
590 * source.c (get_current_or_default_source_symtab_and_line): Remove
591 function.
592 (set_default_source_symtab_and_line): New function. Attempts to
593 determine a source file to list lines from if one is not currently
594 defined.
595 (get_current_source_symtab_and_line): Initialize sal.pc and
596 sal.end fields.
597 (set_current_source_symtab_and_line): Mark argument as const.
598 * source.h: Update declarations and comments.
599 * linespec.c (decode_line_1): Replace call to removed routine above.
600 * stack.c (print_frame_info_base): Ditto.
601 * cli/cli-cmds.c (edit_command): Ditto.
602 (list_command): Ditto.
603
604 2002-09-22 Fernando Nasser <fnasser@redhat.com>
605
606 * source.c (get_current_or_default_source_symtab_and_line): Initialize
607 sal.pc and sal.end fields.
608 (get_current_or_default_source_symtab_and_line): Ditto.
609 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
610 so we do not cause a new source symtab to be searched for (reverting an
611 unintentional change from the 2002-09-20 patch).
612 * scm-lang.c (scm_unpac): Ditto.
613
614 2002-09-21 Andrew Cagney <cagney@redhat.com>
615
616 * complaints.c (symfile_explanations): Remove new-line from
617 ``isolated_message''.
618 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
619 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
620
621 2002-09-20 Nick Clifton <nickc@redhat.com>
622
623 * NEWS: Announce that V850EA ISA is no longer supported.
624 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
625
626 2002-09-20 David Carlton <carlton@math.stanford.edu>
627
628 * Makefile.in (c-lang.o): Correct dependencies.
629 (utils.o): Gather dependencies.
630 (charset.o): Move.
631 * c-lang.c: #include "gdb_string.h"
632
633 2002-09-20 Fernando Nasser <fnasser@redhat.com>
634
635 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
636 * cli/cli-cmds.c (list_command): New function. Implements the new
637 cli edit command.
638 (_init_cli_cmds): Add new command definition.
639 * gdb.1: Document edit command.
640 * doc/gdb.texinfo: Document edit command.
641
642 2002-09-20 Fernando Nasser <fnasser@redhat.com>
643
644 * source.c: Make global variables current_source_symtab and
645 current_source_line static.
646 (list_command): Moved to cli/cli-cmds.c.
647 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
648 (get_first_line_listed): New accessor function.
649 (get_lines_to_list): New accessor function.
650 (get_current_source_symtab_and_line): New function. Retrieves the
651 position in the source code that we consider current.
652 (get_current_or_default_source_symtab_and_line): New function.
653 Like the above but attempts to determine a default position if one
654 is not currently defined.
655 (set_current_source_symtab_and_line): New function. Sets the source
656 code position considered current and returns the previously set one.
657 (clear_current_source_symtab_and_line): Reset stored information about
658 a current source line.
659 (_initialize_source): Remove registration for the "list" command and
660 its alias.
661 * source.h: Add declarations for the new functions above.
662 * symtab.h: Remove declarations for the global variables mentioned
663 above.
664 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
665 obtain current source line.
666 * linespec.c (decode_line_1): Ditto.
667 * macroscope.c (default_macro_scope): Ditto.
668 * scm-lang.c (scm_unpac): Ditto.
669 * stack.c (print_frame_info_base): Ditto.
670 * symfile.c (clear_symtab_users): Ditto.
671 * symtab.c (decode_line_spec): Ditto.
672 * cli/cli-cmds.c (list_command): Moved here from source.c.
673 (ambiguous_line_spec): Moved here from source.c.
674 (_init_cli_cmds): Add definition for "list" and its alias.
675 * Makefile.in: Update dependencies.
676
677 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
678
679 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
680 with what gcc thinks is correct.
681
682 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
683
684 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
685 multiple register push instruction.
686
687 2002-09-19 Jim Blandy <jimb@redhat.com>
688
689 Add support for distinct host and target character sets.
690 * charset.c, charset.h: New files.
691 * c-exp.y: #include "charset.h".
692 (yylex): Convert character and string literals to the target
693 character set, before returning them as the semantic value of the
694 token.
695 * c-lang.c: #include "charset.h".
696 (c_emit_char): Use charset-specific methods to recognize
697 characters with backslash escape forms, to decide which characters
698 to print literally and which to print using numeric escape
699 sequences, and to convert target characters to host characters
700 before printing.
701 * utils.c: #include "charset.h".
702 (no_control_char_error): New function.
703 (parse_escape): Use charset-specific methods to recognize
704 backslash escapes, parse `control character' notation, and convert
705 characters from the host character set to the target character set.
706 * configure.in: Set the default host character set.
707 Check where to find iconv, and what its argument types might be.
708 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
709 * Makefile.in (SFILES): List charset.c.
710 (COMMON_OBS): List charset.o.
711 (charset.o): New rule.
712 (charset_h): New header dependency variable.
713 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
714 (LIBICONV): New variable, set by configure.
715 (CLIBS): Include $(LIBICONV) here.
716 * aclocal.m4, config.in, configure: Regenerated.
717
718 2002-09-19 Joel Brobecker <brobecker@gnat.com>
719
720 * ada-exp.y: Add missing semicolons to end rules. Fixes a
721 bison 1.35 warning.
722
723 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
724
725 * gdb_mbuild.sh: New file.
726
727 2002-09-19 Andrew Cagney <ac131313@redhat.com>
728
729 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
730
731 2002-09-18 Andrew Cagney <ac131313@redhat.com>
732
733 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
734 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
735 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
736 valops.c, value.h: Revert previous change.
737
738 2002-09-18 Michael Snyder <msnyder@redhat.com>
739
740 Preliminary support for Objective-C:
741 * defs.h (language_objc): New enum value.
742 (puts_filtered_tabular): Declaration only, exported from utils.c.
743 (skip_quoted): Delete, declared in completer.h.
744 * c-exp.y: Include completer.h.
745 * p-exp.y: Ditto.
746 * jv-exp.y: Ditto.
747 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
748 New operator enum values.
749 * language.h (CAST_IS_CONVERSION): Test for language_objc.
750 * language.c (binop_result_type): Handle language_objc case.
751 (integral_type, character_type, string_type, boolean_type,
752 structured_type, binop_type_check): Ditto.
753 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
754 (struct objc_specific): Add to general_symbol_info.
755 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
756 (SYMBOL_DEMANGLED_NAME): Handle objc case.
757 * parser-defs.h (struct objc_class_str): New struct type.
758 (start_msglist, end_msglist, add_msglist): Declaration only,
759 exported from objc-lang.c.
760 * value.h (value_of_local, value_nsstring,
761 call_function_by_hand_expecting_type): Exported from valops.c.
762 * valops.c (find_function_addr): Export.
763 (call_function_by_hand_expecting_type): New function.
764 (value_of_local): New function.
765 * symfile.c (init_filename_language_table): Add ".m" extension
766 for Objective-C.
767 * utils.c (puts_filtered_tabular): New function.
768 (fprintf_symbol_filtered): Add objc demangling support (disabled).
769 (set/show demangle): Extend help-string to refer to ObjC.
770 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
771 * stabsread.c (symbol_reference_defined): Objective-C symbols
772 may contain colons: make allowances when scanning stabs strings
773 for colons.
774 (objc_find_colon): New function.
775 * printcmd.c (address_info): If language == objc then print
776 "self" instead of "this".
777 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
778 OP_NSSTRING, and OP_SELF.
779 (prefixify_subexp): Ditto.
780 * source.c (print_source_lines): Mention objc in comment.
781 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
782 method names.
783
784 2002-09-18 Andrew Cagney <ac131313@redhat.com>
785
786 * complaints.h: Update copyright.
787 (struct complaints): Declare.
788 (struct complaint): Make `message' constant.
789 (internal_complaint): Declare.
790 (complaint): Declare.
791 (complaint_root): Delete declaration.
792 (symfile_complaints): Delete declaration.
793 (struct complaints): Add opaque declaration.
794 (clear_complaints): Add a complaints parameter.
795 * complaints.c: Update copyright.
796 (enum complaint_series): Define.
797 (complaint_root): Delete.
798 (struct complaints): Define.
799 (complaint_sentinel, symfile_complaint_book): New variables.
800 (symfile_explanations, symfile_complaints): New variables.
801 New variables.
802 (get_complaints): New function.
803 (vcomplaint): New function.
804 (complaint): New function.
805 (internal_complaint): New function.
806 (complain): Call vcomplain with symfile_complaint.
807 (clear_complaints): Rewrite.
808 (_initialize_complaints): Use add_setshow_command.
809 * Makefile.in (complaints.o): Update dependencies.
810 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
811 to call to clear_complaints.
812 (new_symfile_objfile, reread_symbols): Ditto.
813 (oldsyms_complaint): Delete.
814 (empty_symtab_complaint, unknown_option_complaint): Delete.
815 (free_named_symtabs): Use complaint instead of complain.
816
817 2002-09-18 Michael Snyder <msnyder@redhat.com>
818
819 Contributed by Apple Computer, Inc. Merged with current sources
820 by Adam Fedor <fedor@doc.com> [cagney].
821
822 * objc-lang.c: First clean-up round: comments, indentation.
823 * objc-lang.h: Ditto.
824 * objc-lang.y: Ditto.
825
826 2002-09-18 Andrew Cagney <ac131313@redhat.com>
827
828 * maint.c (maintenance_internal_error): Print the parameter as the
829 error message.
830 (maintenance_internal_warning): New function.
831 (_initialize_maint_cmds): Add command `maint internal-warning'.
832
833 * defs.h (internal_warning, internal_vwarning): Declare.
834 * utils.c (struct internal_problem): Define.
835 (internal_vproblem): New function.
836 (internal_warning): New function.
837 (internal_vwarning): New function.
838 (internal_warning_problem, internal_error_problem): New variables.
839 (internal_verror): Just call internal_vproblem.
840
841 2002-09-18 Michael Snyder <msnyder@redhat.com>
842
843 * objc-lang.c: New file, support for Objective-C.
844 Preliminary check-in, not yet integrated into gdb.
845 * objc-lang.h: New file.
846 * objc-exp.y: New file.
847
848 2002-09-18 Andrew Cagney <ac131313@redhat.com>
849
850 * infrun.c (signal_stop_update): Convert definition to ISO C.
851 (signal_print_update): Ditto.
852 (signal_pass_update): Ditto.
853 * inflow.c (terminal_save_ours): Ditto.
854
855 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
856 comments.
857
858 * config/djgpp/fnchange.lst: Handle name clashes between
859 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
860 bfd/coff-tic80.c.
861
862 * i386-linux-tdep.h: Fix tipo.
863
864 2002-09-18 Adam Fedor <fedor@gnu.org>
865
866 * MAINTAINERS: Add myself to the Write After Approval list.
867
868 2002-09-18 Jim Blandy <jimb@redhat.com>
869
870 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
871 texthigh and textlow to reader-specific structs caused
872 objfile_relocate to miss them. This is fixable, but the work that
873 the change was supposed to prepare GDB for never got done anyway.
874
875 2002-09-18 David Carlton <carlton@math.stanford.edu>
876
877 * MAINTAINERS: Alphabetize Write After Approval list.
878
879 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
880
881 Fix PR gdb/709
882 * values.c (value_static_field): Call read_var_value.
883
884 2002-09-18 Andrew Cagney <ac131313@redhat.com>
885
886 * valops.c (hand_function_call): Align the initial stack pointer
887 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
888 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
889 return value.
890 * mips-tdep.c (mips_frame_align): New function.
891 (mips_gdbarch_init): Set frame_align.
892 * gdbarch.sh (FRAME_ALIGN): New method.
893 * gdbarch.h, gdbarch.c: Re-generate.
894
895 2002-09-18 Michal Ludvig <mludvig@suse.cz>
896
897 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
898 registers.
899
900 2002-09-17 Andrew Cagney <ac131313@redhat.com>
901
902 * NEWS: Mention that MIPS $fp behavior changed.
903 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
904 reference to FP_REGNUM.
905 (mipsnbsd_cannot_store_register): Ditto.
906 * mips-linux-nat.c: Update copyright.
907 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
908 (mips_linux_cannot_store_register): Ditto.
909 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
910 * config/mips/tm-mips.h: Update copyright.
911 (FP_REGNUM): Delete macro.
912 (MIPS_REGISTER_NAMES): Replace "fp" with "".
913 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
914 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
915 (mips_r3041_reg_names, mips_r3051_reg_names)
916 (mips_r3081_reg_names): Replace "fp" with "".
917 Fix PR gdb/480.
918
919 2002-09-17 Theodore A. Roth <troth@verinet.com>
920
921 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
922 generic_read_register_dummy() (PR gdb/703).
923 (avr_push_return_address): #if 0 out unused vars.
924 (avr_gdbarch_init): Enable use of avr_push_return_address().
925
926 2002-09-17 Michael Snyder <msnyder@redhat.com>
927
928 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
929 RTE will take care of it.
930
931 2002-09-17 Andrew Cagney <ac131313@redhat.com>
932
933 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
934 invalid, return SP_REGNUM.
935
936 2002-09-17 Michael Snyder <msnyder@redhat.com>
937
938 * mips-tdep.c (mips_pop_frame): Read saved values of floating
939 point registers without sign extension.
940
941 2002-09-17 Andrew Cagney <cagney@redhat.com>
942
943 * blockframe.c (deprecated_read_register_dummy): Rename
944 generic_read_register_dummy.
945 * frame.c (frame_unwind_signed_register): New function.
946 (frame_unwind_unsigned_register): New function.
947 * frame.h (frame_unwind_signed_register): Declare.
948 (frame_unwind_unsigned_register): Declare.
949 (deprecated_read_register_dummy): Rename
950 generic_read_register_dummy.
951
952 * h8300-tdep.c (h8300_frame_chain): Update.
953 (h8300_frame_saved_pc): Update.
954 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
955 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
956 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
957 (s390_frame_chain): Update.
958 * v850-tdep.c (v850_find_callers_reg): Update.
959 (v850_frame_saved_pc): Update.
960 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
961 (m32r_find_callers_reg): Update.
962 (m32r_frame_saved_pc): Update.
963 * sh-tdep.c (sh_find_callers_reg): Update.
964 (sh64_get_saved_pr): Update.
965 (sh_init_extra_frame_info): Update.
966 (sh_init_extra_frame_info): Update.
967 (sh64_init_extra_frame_info): Update.
968 (sh64_init_extra_frame_info): Update.
969 * mcore-tdep.c (mcore_find_callers_reg): Update.
970 (mcore_frame_saved_pc): Update.
971 (mcore_init_extra_frame_info): Update.
972 * i386-tdep.c (i386_frame_saved_pc): Update.
973 * ia64-tdep.c (ia64_frame_saved_pc): Update.
974 (ia64_init_extra_frame_info): Update.
975 (ia64_init_extra_frame_info): Update.
976 * d10v-tdep.c (d10v_frame_saved_pc): Update.
977 * cris-tdep.c (cris_init_extra_frame_info): Update.
978 * avr-tdep.c (avr_frame_chain): Update.
979 (avr_init_extra_frame_info): Update.
980 (avr_frame_saved_pc): Update.
981 * arm-tdep.c (arm_find_callers_reg): Update.
982 (arm_init_extra_frame_info): Update.
983 (arm_frame_saved_pc): Update.
984
985 2002-09-17 Tom Tromey <tromey@redhat.com>
986
987 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
988 is "'".
989
990 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
991
992 * MAINTAINERS: Remove "non multi-arched" text from h8300.
993 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
994 NEXT_PROLOGUE_INSN.
995 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
996 NEXT_PROLOGUE_INSN.
997
998 2002-09-16 Joel Brobecker <brobecker@gnat.com>
999
1000 * osfsolib.c: Remove file, replaced by solib-osf.c.
1001 * Makefile.in: Remove compilation rules for osfsolib.c.
1002
1003 2002-09-16 David Carlton <carlton@math.stanford.edu>
1004
1005 * cp-valprint.c (cp_print_class_method): Correct args to
1006 check_stub_method_group.
1007
1008 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1009
1010 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1011 `set architecture'. Unify naming convention of functions.
1012 (h8300_skip_prologue): Improve prologue analysis.
1013 (h8300_push_arguments): Rewritten to more closely match GCC's
1014 bizarre argument-passing behavior, along with the comment describing
1015 said behavior.
1016 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1017 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1018 sim, remote-e7000.c, remote-hms.c and remote.c
1019
1020 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1021
1022 * i386-tdep.c (gdb_print_insn_i386): Removed.
1023 (i386_print_insn): New function.
1024 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1025 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1026 tm_print_insn_info.
1027
1028 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1029
1030 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1031 zero.
1032
1033 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1034
1035 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1036 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1037 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1038
1039 2002-09-13 Christopher Faylor <cgf@redhat.com>
1040
1041 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1042
1043 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1044
1045 * gdbtypes.c (check_stub_method): Make static.
1046 (check_stub_method_group): New function.
1047 * gdbtypes.h: Update prototypes.
1048 * cp-support.c: New file.
1049 * cp-support.h: New file.
1050
1051 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1052 (update_method_name_from_physname): New function.
1053 (read_member_functions): Correct method names for operators
1054 and v3 constructors/destructors. Separate v2 constructors and
1055 destructors.
1056 * Makefile.in (stabsread.o): Update dependencies.
1057 (SFILES): Add cp-support.c.
1058 (COMMON_OBS): Add cp-support.o.
1059 (cp_support_h, cp-support.o): Add.
1060
1061 * cp-valprint.c (cp_print_class_method): Call
1062 check_stub_method_group instead of check_stub_method. Remove
1063 extraneous QUITs.
1064 * p-valprint.c (pascal_object_print_class_method): Likewise.
1065 * valops.c (search_struct_method): Likewise.
1066 (find_method_list, value_struct_elt_for_reference): Likewise.
1067
1068 2002-09-13 Andrew Cagney <cagney@redhat.com>
1069
1070 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1071 * gdbarch.h, gdbarch.c: Regenerate.
1072
1073 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1074
1075 * frame.c (find_saved_register): Delete function.
1076 * frame.h (find_saved_register): Delete declaration.
1077 Fix PR gdb/631.
1078
1079 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1080
1081 * mips-tdep.c (read_next_frame_reg): Re-hack using
1082 frame_register_unwind.
1083
1084 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1085
1086 * mips-tdep.c (mips_get_saved_register): Re-hack using
1087 frame_register_unwind.
1088
1089 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1090
1091 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1092 vector. Will be useful for Interix.
1093 * gdbarch.h, gdbarch.c: Regenerate.
1094
1095 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1096 name of the malloc function by NAME_OF_MALLOC.
1097
1098 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1099
1100 * value.h (find_function_in_inferior): Add const keyword to
1101 one of the parameters. Allows us to invoke this function with
1102 a const char *.
1103 * valops.c (find_function_in_inferior): Likewise.
1104
1105 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1106
1107 * exec.c (xfer_memory): Fix compilation warning with old versions
1108 of GCC.
1109 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1110
1111 2002-09-12 David Carlton <carlton@math.stanford.edu>
1112
1113 * symtab.h: Run through gdb_indent.h.
1114 Add 2002 to Copyright year list.
1115
1116 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1117
1118 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1119 mach constants.
1120 * MAINTAINERS: Add myself to write after approval list.
1121
1122 2002-09-11 J. Brobecker <brobecker@gnat.com>
1123
1124 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1125
1126 2002-09-11 J. Brobecker <brobecker@gnat.com>
1127
1128 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1129 Interix.
1130
1131 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1132
1133 * procfs.c (do_detach): Clear current signal, not just fault.
1134 Corrects problem with breakpoint trap signal leaking to detached
1135 process on Tru64.
1136
1137 2002-09-10 Michael Snyder <msnyder@redhat.com>
1138
1139 * buildsym.c (finish_block): Protect against null pointer.
1140
1141 2002-09-10 Andrew Cagney <cagney@redhat.com>
1142
1143 * infcmd.c (default_print_registers_info): Send all output to
1144 ``file'' instead of ``gdb_stdout''.
1145
1146 2002-09-10 Michael Snyder <msnyder@redhat.com>
1147
1148 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1149 LONGEST, and use signed register read (addresses are sign-
1150 extended for mips).
1151
1152 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1153
1154 * event-loop.c (gdb_do_one_event): Make public.
1155 * event-loop.h (gdb_do_one_event): Declare.
1156
1157 2002-09-10 Jeff Law <law@redhat.com>
1158
1159 * infttrace.c (child_resume): Simplify and rework to avoid
1160 TT_PROC_CONTINUE.
1161
1162 2002-09-09 Fred Fish <fnf@intrinsity.com>
1163
1164 * printcmd.c (print_scalar_formatted): "len" is the number of
1165 target bytes, NOT the number of target bits.
1166
1167 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1168
1169 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1170 * top.c (init_main): Set rl_terminal_name.
1171
1172 2002-09-08 Aidan Skinner <aidan@velvet.net>
1173
1174 * ada-lang.c (ada_array_bound, ada_type_match,
1175 _initialize_ada_language): Fix K&R definitions.
1176 * ada-tasks.c (get_current_task): Fix K&R definitions.
1177 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1178
1179 2002-09-07 Christopher Faylor <cgf@redhat.com>
1180
1181 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1182 Add XP.
1183
1184 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1185
1186 * i386-tdep.c (i386_register_virtual_type,
1187 i386_register_convertible, i386_register_convert_to_virtual,
1188 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1189 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1190 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1191 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1192 Don't set push_arguments twice.
1193
1194 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1195 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1196 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1197 sigtramp_end to NULL.
1198 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1199 defines.
1200 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1201
1202 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1203 whitespace.
1204
1205 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1206 * gdbarch.h, gdbarch.c: Re-generate.
1207 * blockframe.c (find_pc_sect_partial_function): Convert to use
1208 SIGTRAMP_START_P predicate.
1209
1210 2002-09-05 Michael Snyder <msnyder@redhat.com>
1211
1212 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1213 generic_dummy_frame method and old method. Also distinguish
1214 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1215 (arm_extract_return_value): Use new regcache method.
1216
1217 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1218 adjustment that doesn't conform to the ABI.
1219 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1220 saved regcache, not from current regcache.
1221
1222 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1223
1224 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1225 * README: Update.
1226
1227 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1228
1229 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1230 if arm_apcs_32 is false.
1231
1232 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1233
1234 GDB 5.3 branch created.
1235
1236 2002-09-03 Theodore A. Roth <troth@verinet.com>
1237
1238 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1239 generic_unwind_get_saved_register.
1240
1241 2002-09-03 David Carlton <carlton@math.stanford.edu>
1242
1243 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1244 argument (PR gdb/653). Update call to smash_to_method_type.
1245 (read_structure_scope): Update call to dwarf2_add_member_fn.
1246
1247 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1248
1249 * x86-64-linux-tdep.c: Include gdb_string.h
1250 * x86-64-linux-nat.c: Ditto.
1251
1252 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1253
1254 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1255 when YYDEBUG is set to 1.
1256 * c-exp.y: Likewise.
1257 * f-exp.y: Likewise.
1258 * jv-exp.y: Likewise.
1259 * m2-exp.y: Likewise.
1260 * p-exp.y: Likewise.
1261
1262 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1263
1264 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1265 dependency list.
1266 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1267 solib_svr4_fetch_link_map_offsets to
1268 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1269 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1270 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1271 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1272 solib-svr4.o, and solib-legacy.o.
1273 * config/i386/tm-nbsd.h: Include solib.h.
1274
1275 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1276
1277 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1278 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1279 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1280 comment noting that this needs its own target configuration.
1281 * config/i386/nbsd.mt: New file.
1282 * config/i386/nbsdaout.mt: Remove.
1283 * config/i386/nbsdelf.mt: Ditto.
1284 * config/i386/tm-nbsdaout.h: Ditto.
1285
1286 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1287
1288 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1289 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1290 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1291 tdep->sigtramp_end.
1292 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1293 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1294 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1295
1296 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1297
1298 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1299 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1300 * i386-tdep.h (i386bsd_init_abi): New prototype.
1301 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1302 function declaration.
1303 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1304 for NetBSD-a.out or NetBSD-ELF.
1305 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1306 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1307 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1308 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1309 and nbsd-tdep.h.
1310 (i386nbsd_pc_in_sigtramp): New function.
1311 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1312 i386nbsd_pc_in_sigtramp.
1313 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1314 and i386nbsdelf_init_abi OS ABI handlers.
1315 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1316 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1317
1318 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1319
1320 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1321 registers if the target really has them.
1322
1323 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1324
1325 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1326 than nbsd-tdep.h.
1327
1328 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1329
1330 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1331 list.
1332 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1333 (alphanbsd_skip_sigtramp_frame): New functions.
1334 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1335 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1336 to alphanbsd_sigcontext_addr.
1337
1338 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1339
1340 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1341 list.
1342 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1343 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1344 nbsd_pc_in_sigtramp.
1345 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1346 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1347 * nbsd-tdep.c: Include gdb_string.h.
1348 (nbsd_pc_in_sigtramp): New function.
1349 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1350 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1351 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1352 ppcnbsd_pc_in_sigtramp.
1353 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1354 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1355 shnbsd_pc_in_sigtramp.
1356 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1357 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1358 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1359
1360 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1361
1362 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1363 watchpoints to NULL.
1364 (insert_breakpoints): set val field of watchpoints if NULL.
1365
1366
1367 2002-08-29 Jim Blandy <jimb@redhat.com>
1368
1369 * symtab.c (lookup_symbol_aux): In the cases where we find a
1370 minimal symbol of an appropriate name and use its address to
1371 select a symtab to read and search, use `name' (as passed to us)
1372 as the demangled name when searching the symtab's global and
1373 static blocks, not the minsym's name.
1374
1375 2002-08-29 Keith Seitz <keiths@redhat.com>
1376
1377 * stack.c (print_frame_info_base): Always set current_source_symtab
1378 and current_source_line.
1379
1380 2002-08-29 Donn Terry <donnte@microsoft.com>
1381
1382 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1383
1384 2002-08-28 Keith Seitz <keiths@redhat.com>
1385
1386 * stack.c (select_frame): Add FIXME concerning selected-frame
1387 events.
1388 (select_frame_command): Send selected-frame-level-changed
1389 event notification, but only if the level actually changed.
1390 (up_silently_base): Add selected-frame-level-changed event
1391 notification.
1392 (down_silently_base): Likewise.
1393
1394 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1395
1396 * Makefile.in: Update dependencies for all gdb/*.c files.
1397
1398 2002-08-27 Tom Tromey <tromey@redhat.com>
1399
1400 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1401 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1402 Update dependencies.
1403 * i387-tdep.c: Include gdb_string.h.
1404 * osabi.c: Likewise.
1405 * i386-linux-nat.c: Likewise.
1406 * lin-lwp.c: Likewise.
1407 * ax-gdb.c: Likewise.
1408 * signals/signals.c: Likewise.
1409 * jv-valprint.c: Likewise.
1410 * p-lang.c: Likewise.
1411 * c-valprint.c: Likewise.
1412 * cp-abi.c: Likewise.
1413
1414 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1415
1416 * cli/cli-script.h (copy_command_lines): Export.
1417 * breakpoint.c: Include cli/cli-script.h.
1418 * Makefile.in (breakpoint.o): Update dependencies.
1419
1420 2002-08-26 Michael Snyder <msnyder@redhat.com>
1421
1422 * breakpoint.c (insert_breakpoints): Protect all references
1423 to 'process_warning'. Shorten long lines.
1424
1425 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1426
1427 * cli/cli-script.c (copy_command_lines): New function.
1428 * defs.h (copy_command_lines): Export.
1429 * testsuite/gdb.base/commands.exp: New tests for commands
1430 attached to a temporary breakpoint, and for commands that
1431 delete the breakpoint they are attached to.
1432
1433 2002-08-26 Michael Snyder <msnyder@redhat.com>
1434
1435 * breakpoint.c (bpstat_stop_status): Instead of copying the
1436 pointer to the breakpoint commands struct, make a new copy
1437 of the struct and point to that.
1438 (bpstat_clear): Free the commands struct.
1439 (bpstat_clear_actions): Free the commands struct.
1440 (bpstat_do_actions): Free the command actions. Also execute
1441 the local cleanups, instead of deleting them.
1442 (delete_breakpoint): Leave the commands field of the bpstat
1443 chain alone -- it will be freed later.
1444
1445 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1446
1447 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1448 deleted in 2002-08-20 commit. This function is still used by
1449 ppc-linux-nat.c.
1450
1451 2002-08-26 Keith Seitz <keiths@redhat.com>
1452
1453 * gdb-events.sh: Add selected-frame-level-changed event.
1454 * gdb-events.c: Regenerated.
1455 * gdb-events.h: Regenerated.
1456
1457 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1458
1459 Fix PR gdb/393:
1460 * inflow.c (terminal_save_ours): New function to save terminal
1461 settings.
1462 * inferior.h (terminal_save_ours): Declare.
1463 * target.c (debug_to_terminal_save_ours): New function.
1464 (cleanup_target): Defaults to_terminal_save_ours.
1465 (update_current_target): Inherit to_terminal_save_ours.
1466 (setup_target_debug): Set to_terminal_save_ours.
1467 * target.h (target_terminal_save_ours): New to save terminal settings.
1468 (target_ops): New member to_terminal_save_ours.
1469 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1470 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1471 * inftarg.c (init_child_ops): Likewise.
1472 * m3-nat.c (init_m3_ops): Likewise.
1473 * procfs.c (init_procfs_ops): Likewise.
1474 * wince.c (init_child_ops): Likewise.
1475 * win32-nat.c (init_child_ops): Likewise.
1476 * sol-thread.c (init_sol_thread_ops): Likewise.
1477
1478 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1479
1480 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1481 use regcache_* functions.
1482 (i386_gdbarch_init): Set store_return_value instead of
1483 deprecated_store_return_value.
1484
1485 * regcache.c (regcache_raw_write_signed,
1486 regcache_raw_write_unsigned): New functions.
1487 * regcache.h (regcache_raw_write_signed,
1488 regcache_raw_write_unsigned): New prototypes.
1489
1490 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1491
1492 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1493 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1494 source file dependencies. Cleanup corresponding generator rules.
1495
1496 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1497
1498 * regcache.h (register_offset_hack): Declare.
1499 (regcache_cooked_read_using_offset_hack): Declare.
1500 (regcache_cooked_write_using_offset_hack): Declare.
1501
1502 * regcache.c (register_offset_hack): New function.
1503 (regcache_cooked_read_using_offset_hack): New function.
1504 (regcache_cooked_write_using_offset_hack): New function.
1505 (regcache_dump): Check that the registers, according to their
1506 offset, are packed hard against each other.
1507 (cooked_xfer_using_offset_hack): New function.
1508
1509 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1510
1511 * regcache.c (struct regcache_descr): Add field register_type.
1512 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1513 in as a parameter
1514 (init_regcache_descr): Initialize register_type. Pass the descr
1515 to init_legacy_regcache_descr. Use register_type instead of
1516 REGISTER_VIRTUAL_TYPE.
1517 (register_type): New function.
1518 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1519 * regcache.h (register_type): Declare.
1520
1521 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1522
1523 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1524 instead of deprecated_store_return_value. Fix fallout from
1525 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1526
1527 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1528
1529 * regcache.c (max_register_size): New function.
1530 (init_legacy_regcache_descr): Ensure that max_register_size is
1531 large enough for REGISTER_VIRTUAL_SIZE.
1532 * regcache.h (max_register_size): Declare.
1533
1534 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1535
1536 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1537 store_return_value.
1538 (e500_extract_return_value): Change type of valbuf pointer to
1539 void.
1540
1541 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1542
1543 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1544 workaround.
1545
1546 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1547 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1548 long long) to prevent compiler warning on 64-bit systems.
1549
1550 2002-08-23 Andrew Cagney <cagney@redhat.com>
1551
1552 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1553 (DEPRECATED_STORE_RETURN_VALUE): New method.
1554 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1555 * gdbarch.h, gdbarch.c: Re-generate.
1556
1557 * values.c (set_return_value): Pass current_regcache to
1558 STORE_RETURN_VALUE.
1559 * arch-utils.h (legacy_store_return_value): Declare.
1560 * arch-utils.c (legacy_store_return_value): New function.
1561 (legacy_extract_return_value): Update parameters.
1562
1563 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1564 STORE_RETURN_VALUE.
1565 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1566 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1567 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1568 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1569 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1570 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1571 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1572 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1573 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1574 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1575
1576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1577 * i386-tdep.c (i386_extract_return_value): Update.
1578 * arch-utils.c (legacy_extract_return_value): Update.
1579 * frv-tdep.c (frv_gdbarch_init): Update.
1580 * cris-tdep.c (cris_gdbarch_init): Update.
1581 * d10v-tdep.c (d10v_gdbarch_init): Update.
1582 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1583 * m68k-tdep.c (m68k_gdbarch_init): Update.
1584 * mcore-tdep.c (mcore_gdbarch_init): Update.
1585 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1586 * s390-tdep.c (s390_gdbarch_init): Update.
1587 * sparc-tdep.c (sparc_gdbarch_init): Update.
1588 * sh-tdep.c (sh_gdbarch_init): Update.
1589 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1590 * v850-tdep.c (v850_gdbarch_init): Update.
1591 * avr-tdep.c (avr_gdbarch_init): Update.
1592 * ia64-tdep.c (ia64_gdbarch_init): Update.
1593 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1594 * vax-tdep.c (vax_gdbarch_init): Update.
1595 * alpha-tdep.c (alpha_gdbarch_init): Update.
1596 * arm-tdep.c (arm_gdbarch_init): Update.
1597 * mips-tdep.c (mips_gdbarch_init): Update.
1598 * i386-tdep.c (i386_gdbarch_init): Update.
1599
1600 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1601
1602 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1603 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1604
1605 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1606
1607 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1608 problems.
1609
1610 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1611
1612 * infrun.c (handle_inferior_event): Move a comment outside of a
1613 function call, in order to avoid indent reformatting this part
1614 of the code in an unreadable way.
1615
1616 2002-08-23 Grace Sainsbury <graces@redhat.com>
1617
1618 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1619 when breakpoints fail. Move general breakpoint error messages to
1620 insert_breakpoints.
1621 * breakpoint.c (insert_breakpoints): Change warnings when
1622 breakpoints are nto inserted to specify the type. Remove call to
1623 memory_error when hardware breakpoints can't be inserted. Remove
1624 multiple calls to warning so all messages are sent to the user at
1625 once.
1626 (delete_breakpoints): Make insert error messsages more explicit.
1627
1628 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1629
1630 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1631 gdbserver/ChangeLog.
1632
1633 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1634
1635 * i386-tdep.c: Include "objfiles.h".
1636 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1637 skip_trampoline_code.
1638 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1639 (CPLUS_MARKER): Define to '.'.
1640
1641 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1642 member.
1643 (linux_corefile_thread_callback): Increase args->num_notes.
1644 (linux_make_note_section): Initialize thread_args.num_notes, and
1645 use it to determine whether notes for any threads were created.
1646
1647 2002-08-23 Donn Terry <donnte@microsoft.com>
1648
1649 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1650 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1651 and PCUNKILL.
1652 (write_with_trace): Conditionalize out the switch branch handling
1653 PCSHOLD if the corresponding macro is not defined. Likewise for
1654 PRSABORT and PRSTOP.
1655 This change will be needed by the Interix port.
1656
1657 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1658
1659 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1660 write_register wherever possible instead of manipulating the
1661 register bytes directly.
1662 Assign VALUE_CONTENTS to a variable and use that.
1663 The GPR numbers are now dependent on the architecture.
1664
1665 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1666
1667 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1668 ev_offset fields.
1669 (skip_prologue): Add support for BookE/e500 instructions.
1670 (e500_extract_return_value): New function.
1671 (frame_get_saved_regs): Add support for saving ev registers and
1672 pseudo gpr's.
1673 (e500_store_return_value): New function.
1674 (rs6000_gdbarch_init): Move up default intializations of
1675 deprecated_extract_return_value and store_return_value. Overwrite
1676 init of store_return_value with e500 specific version.
1677 Set extract_return_value for e500.
1678
1679 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1680
1681 * blockframe.c (generic_call_dummy_register_unwind): Use
1682 regcache_cooked_read to catch cases in which the variable is
1683 stored in a pseudo register.
1684
1685 2002-08-22 Andrew Cagney <cagney@redhat.com>
1686
1687 * NEWS: Mention that the i960 has been made obsolete.
1688 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1689 i960-tdep.c
1690 (remote-nrom.o): Obsolete target.
1691 (remote-nindy.o, i960-tdep.o): Ditto.
1692 * remote-nrom.c: Make file obsolete.
1693 * remote-nindy.c, remote-vx960.c: Ditto.
1694 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1695 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1696 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1697 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1698 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1699 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1700 i960-*-vxworks* obsolete.
1701 * MAINTAINERS: Note that the i960 is obsolete.
1702
1703 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1704
1705 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1706 detach to allow reinitialization.
1707
1708 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1709
1710 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1711 attempt).
1712
1713 2002-08-22 Jim Blandy <jimb@redhat.com>
1714
1715 * coffread.c (coff_symfile_read): Don't try to read the line
1716 number table from disk if the image file doesn't have a symbol
1717 table; we'll never actually look at the info anyway, and Windows
1718 ships DLL's with bogus file offsets for the line number data.
1719
1720 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1721
1722 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1723 an e500 executable.
1724
1725 2002-08-21 Michael Snyder <msnyder@redhat.com>
1726
1727 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1728 (MSYMBOL_SIZE): Replace macro with function.
1729 (DEFAULT_MIPS_TYPE): Delete unused macro.
1730 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1731 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1732
1733 2002-08-21 Jim Blandy <jimb@redhat.com>
1734
1735 * valops.c (value_cast): Simplify and correct logic for doing a
1736 static cast from a pointer to a base class to a pointer to a
1737 derived class.
1738
1739 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1740
1741 * infcmd.c (default_print_registers_info): Replace
1742 do_registers_info.
1743 (registers_info): Use gdbarch_print_registers_info instead of
1744 DO_REGISTERS_INFO.
1745 * inferior.h (default_print_registers_info): Replace
1746 do_registers_info.
1747 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1748 (DO_REGISTERS_INFO): Change to a predicate function.
1749 * gdbarch.h, gdbarch.c: Regenerate.
1750
1751 2002-08-21 Keith Seitz <keiths@redhat.com>
1752
1753 * gdb-events.sh: Add target-changed event.
1754 * gdb-events.c: Regenerated.
1755 * gdb-events.c: Regenerated.
1756 * valops.c (value_assign): Add target-changed event notification
1757 to inlval_register, lval_memory, and lval_reg_frame_relative.
1758
1759 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1760
1761 * NEWS: Add an entry regarding the improvement of the next/step
1762 operation on Alpha Tru64 multi-processor machines.
1763
1764 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1765
1766 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1767 directores.
1768 * Makefile.in: Update all _h macro definitions.
1769 * Makefile.in (install-gdbtk): Move to install section.
1770 (rdi-share/libangsd.a): Move to end of file.
1771
1772 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1773
1774 * frame.c (frame_register_unwind): When a register, set addrp to
1775 the register's byte.
1776
1777 2002-08-20 Michael Snyder <msnyder@redhat.com>
1778
1779 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1780 used locally, so move them from the target machine header to here.
1781 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1782 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1783 Make static.
1784 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1785
1786 2002-08-20 Andrew Cagney <cagney@redhat.com>
1787
1788 * NEWS: Mention that the Apollo line was made obsolete.
1789 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1790 m68*-hp-hpux* obsolete.
1791 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1792 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1793 * buildsym.c (make_blockvector): Make static.
1794 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1795 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1796 (ALLDEPFILES): Remove dstread.c.
1797 (dstread.o): Obsolete make rule.
1798 * dstread.c: Makefile obsolete.
1799 * dst.h: Ditto.
1800 * config/m68k/hp300hpux.mt: Ditto.
1801 * config/m68k/hp300hpux.mh: Ditto.
1802 * config/m68k/hp300bsd.mt: Ditto.
1803 * config/m68k/hp300bsd.mh: Ditto.
1804 * config/m68k/apollo68b.mt: Ditto.
1805 * config/m68k/apollo68v.mh: Ditto.
1806 * config/m68k/apollo68b.mh: Ditto.
1807
1808 2002-08-20 Michael Snyder <msnyder@redhat.com>
1809
1810 * mips-tdep.c (mips_in_return_stub): Make static.
1811 (mips_gdbarch_init): Set in_solib_return_trampoline.
1812 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1813
1814 2002-08-20 Michael Snyder <msnyder@redhat.com>
1815
1816 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1817 * gdbarch.c, gdbarch.h: Regenerate.
1818 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1819 Add.
1820 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1821
1822 2002-08-20 Michael Snyder <msnyder@redhat.com>
1823
1824 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1825 (mips_gdbarch_init): Set skip_trampoline_code,
1826 in_solib_call_trampoline.
1827 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1828 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1829
1830 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1831
1832 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1833
1834 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1835 vector type for ev registers.
1836 (e500_pseudo_register_read): New function.
1837 (e500_pseudo_register_write): New function.
1838 (e500_dwarf2_reg_to_regnum): New function.
1839 (PPC_UISA_NOFP_SPRS): New macro.
1840 (PPC_EV_REGS): New macro.
1841 (PPC_GPRS_PSEUDO_REGS): New macro.
1842 (registers_e500): New register set for e500.
1843 (variants): Add e500 variant.
1844 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1845 before setting architectural dependent variations. Initialize ev
1846 registers numbers. Add case for e500 architecture. Set the
1847 number of pseudo registers.
1848
1849 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1850
1851 * rs6000-tdep.c: Clean up comments.
1852
1853 2002-08-20 Andrew Cagney <cagney@redhat.com>
1854
1855 * h8300-tdep.c: Re-indent file.
1856
1857 2002-08-20 Jim Blandy <jimb@redhat.com>
1858
1859 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1860 default for this.
1861
1862 2002-08-20 Keith Seitz <keiths@redhat.com>
1863
1864 * breakpoints.c (watch_command_1): Use internal breakpoint
1865 when setting a watchpoint_scope breakpoint.
1866
1867 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1868
1869 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1870 (build_builtin_type_vec64i): Ditto.
1871 (build_builtin_type_vec128): Ditto.
1872 (build_builtin_type_vec128i): Ditto.
1873
1874 2002-08-19 Michael Snyder <msnyder@redhat.com>
1875
1876 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1877 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1878 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1879 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1880 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1881 CALL_DUMMY_ADDRESS): Delete.
1882 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1883 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1884 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1885 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1886 push_return_address.
1887 (mips_register_raw_size, mips_eabi_use_struct_convention,
1888 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1889 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1890 mips_init_extra_frame_info, mips_eabi_push_arguments,
1891 mips_n32n64_push_arguments, mips_push_return_address,
1892 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1893 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1894
1895 2002-08-19 Michael Snyder <msnyder@redhat.com>
1896
1897 * mips-tdep.c (mips_frame_num_args): New function.
1898 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1899 frame_saved_pc, frame_args_address, frame_locals_address,
1900 frame_num_args, and frame_args_skip.
1901 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1902 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1903 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1904 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1905
1906 2002-08-20 Michael Snyder <msnyder@redhat.com>
1907
1908 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1909 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1910 * mips-tdep.c (mips_store_struct_return): New function.
1911 (mips_extract_struct_value_address): New function.
1912 (mips_gdbarch_init): Set store_struct_return and
1913 extract_struct_value_address.
1914
1915 2002-08-20 David Carlton <carlton@math.stanford.edu>
1916
1917 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1918 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1919 (read_file_scope): Check that line_header is nonzero before
1920 decoding macro information.
1921
1922 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1923
1924 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1925 flag the general-purpose registers as floating-point on targets
1926 that don't support the floating-point registers.
1927
1928 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1929
1930 * rs6000-tdep.c (altivec_register_p): Delete.
1931 (rs6000_do_altivec_registers): Delete.
1932 (rs6000_altivec_registers_info): Delete.
1933 (rs6000_do_registers_info): Delete.
1934 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1935 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1936
1937 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1938
1939 * infcmd.c (do_registers_info): Print vector registers in hex
1940 format only.
1941 (print_vector_info): Check that printing registers
1942 makes sense.
1943 (print_float_info): Ditto.
1944
1945 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1946
1947 * mips-tdep.c (mips_gdbarch_init): Update.
1948 (mips_o32_extract_return_value): Rewrite.
1949 (mips_o32_store_return_value): Rewrite.
1950 (mips_o32_xfer_return_value): New function.
1951 (mips_xfer_register): Tweak debug print message. Allow for
1952 buf_offset when dumping the value transfered.
1953
1954 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1955
1956 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1957 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1958 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1959 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1960 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1961
1962 2002-08-14 Michael Snyder <msnyder@redhat.com>
1963
1964 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1965
1966 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1967
1968 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1969 register.
1970 (P): New macro to define a register as a pseudo register.
1971 (R, R4, R8, R16, FR32, R64, R0): Updated.
1972 (struct variant): Add new fields for number of pseudo registers
1973 and number of total registers.
1974 (tot_num_registers): New macro replacing....
1975 (num_registers): ...deleted macro.
1976 (num_registers): New function.
1977 (num_pseudo_registers): New function.
1978 (variants): Update all variants to intialize new fields correctly.
1979 Postpone initialization of number of pseudo regs and real regs.
1980 (init_variants): New function.
1981 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1982 registers offsets.
1983
1984 2002-08-19 David Carlton <carlton@math.stanford.edu>
1985
1986 * valops.c (search_struct_field): Change error message to treat
1987 return value of 0 from value_static_field as meaning that field is
1988 optimized out.
1989 (value_struct_elt_for_reference): Ditto.
1990 * values.c (value_static_field): Treat an unresolved location the
1991 same as a nonexistent symbol. Fix PR gdb/635.
1992 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1993 enclosed. Fix PR gdb/574.
1994 * MAINTAINERS: Add self to Write After Approval list.
1995
1996 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1997
1998 * mips-tdep.c (mips_xfer_register): New function.
1999 (mips_n32n64_extract_return_value): Rewrite.
2000 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2001 instead of deprecated_extract_return_value.
2002
2003 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2004
2005 * rs6000-tdep.c (TDEP): Delete macro.
2006 (branch_dest): Replace use of TDEP macro with its body.
2007 (rs6000_pop_frame): Ditto.
2008 (rs6000_push_arguments): Ditto.
2009 (rs6000_skip_trampoline_code): Ditto.
2010 (rs6000_frame_saved_pc): Ditto.
2011 (rs6000_frame_chain): Ditto.
2012 (rs6000_register_name): Ditto.
2013 (rs6000_register_byte): Ditto.
2014 (rs6000_register_raw_size): Ditto.
2015 (rs6000_register_virtual_type): Ditto.
2016 (rs6000_register_convertible): Ditto.
2017 (rs6000_convert_from_func_ptr_addr): Ditto.
2018
2019 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2020
2021 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2022 conditionally.
2023 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2024 MIPS_LINUX_JB_ELEMENT_SIZE.
2025 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2026 for MAX_REGISTER_RAW_SIZE arrays.
2027 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2028 MIPS_LINUX_JB_ELEMENT_SIZE.
2029
2030 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2031
2032 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2033
2034 2002-08-19 Aidan Skinner <aidan@velvet.net>
2035
2036 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2037 ada-valprint.c ada-tasks.c.
2038 (YYFILES): Add ada-exp.y.
2039 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2040 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2041 (ada-exp.tab.o): New target.
2042
2043 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2044
2045 * regcache.c (regcache_xfer_part): New function.
2046 (regcache_raw_read_part): New function.
2047 (regcache_raw_write_part): New function.
2048 (regcache_cooked_read_part): New function.
2049 (regcache_cooked_write_part): New function.
2050 * regcache.h (regcache_raw_read_part): Declare.
2051 (regcache_raw_write_part): Declare.
2052 (regcache_cooked_read_part): Declare.
2053 (regcache_cooked_write_part): Declare.
2054
2055 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2056
2057 * remote.c (remote_open_1): Add async_p.
2058 (remote_async_open_1): Delete.
2059 (open_remote_target): Delete.
2060 (remote_open, extended_remote_open): Update calls to remote_open_1.
2061 (remote_async_open, extended_remote_async_open): Call
2062 remote_open_1 instead of remote_async_open_1.
2063
2064 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2065
2066 * blockframe.c: Fix a few coding standard violations.
2067
2068 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2069
2070 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2071 here from ...
2072 * config/i386/tm-i386sco5.h: ... here. File removed.
2073 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2074
2075 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2076 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2077 (TM_FILE): Set to tm-i386.h.
2078 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2079 * config/i386/tm-i386v.h: Remove file.
2080 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2081 instead of "i386/tm-i386v.h".
2082 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2083 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2084 "i386/tm-i386v.h".
2085 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2086 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2087 "i386/tm-i386.h".
2088
2089 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2090
2091 * config/i386/nm-i386v.h: Add protection against
2092 multiple-inclusion.
2093 (i386_register_u_addr): Remove prototype.
2094 (register_u_addr): New prototype.
2095 (REGISTER_U_ADDR): Redefine accordingly.
2096 * i386v-nat.c: Improve several comments.
2097 (i386_register_u_addr): Change signature and rename to
2098 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2099 ubase variable.
2100
2101 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2102
2103 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2104 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2105 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2106 deprecated_extract_return_value.
2107 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2108 rename mips_o32o64_push_arguments.
2109 (mips_gdbarch_init): Update.
2110 (mips_extract_return_value): Delete.
2111 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2112 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2113 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2114 (mips_n32n64_extract_return_value): Clone
2115 mips_extract_return_value.
2116 (mips_store_return_value): Delete.
2117 (mips_o32_store_return_value): Clone mips_store_return_value.
2118 (mips_o64_store_return_value): Clone mips_store_return_value.
2119 (mips_eabi_store_return_value): Clone mips_store_return_value.
2120 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2121
2122 2002-08-18 Aidan Skinner <aidan@velvet.net>
2123
2124 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2125 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2126
2127 2002-08-18 Aidan Skinner <aidan@velvet.net>
2128
2129 * ada-lang.c: Run through gdb_indent.sh.
2130 * ada-lang.h: Run through gdb_indent.sh.
2131 * ada-tasks.c: Run through gdb_indent.sh.
2132 * ada-typeprint.c: Run through gdb_indent.sh.
2133 * ada-valprint.c: Run through gdb_indent.sh.
2134
2135 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2136
2137 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2138 ABI.
2139
2140 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2141
2142 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2143
2144 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2145 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2146
2147 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2148 write_register_gen instead of write_register_bytes.
2149
2150 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2151 i[3456]-*-osf1mk* configurations have been made obsolete.
2152 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2153 i[3456]86-*-osf1mk* hosts obsolete.
2154 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2155 targets obsolete.
2156 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2157 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2158 config/i386/i386m3.mt, config/i386/nm-m3.h,
2159 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2160 config/i386/i386mk.mh, config/i386/i386mk.mt,
2161 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2162 obsolete.
2163 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2164 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2165 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2166
2167 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2168
2169 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2170 (hppa_value_returned_from_stack): Declare.
2171 (hppa_extract_return_value): Declare.
2172 * config/pa/hppa.mt: New file.
2173 * configure.tgt: Recognize hppa*-*-*.
2174 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2175
2176 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2177
2178 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2179 comment.
2180
2181 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2182
2183 * top.c (gdb_rl_operate_and_get_next): Make sure
2184 operate-and-get-next functions correctly even when the history
2185 list is completely filled.
2186
2187 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2188
2189 * MAINTAINERS (Target Instruction Set Architectures): Rename
2190 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2191 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2192 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2193 already listed under Host/Native.
2194
2195 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2196 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2197 mips*-*-*.
2198
2199 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2200
2201 * config/ia64/ia64.mt: New file.
2202 * config/alpha/alpha.mt: New file.
2203 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2204 ia64-linux-gnu. Mention that ia64-elf is broken.
2205 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2206
2207 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2208
2209 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2210 generic_func_frame_valid instead of func_frame_valid.
2211
2212 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2213
2214 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2215 procfs appears to be broken when debugging on multi-processor
2216 machines. So enable software single stepping in order to avoid
2217 using the procfs interface to do next/step operations, using
2218 internal breakpoints instead.
2219
2220 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2221 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2222 make this pc address equal to the value it would have if the
2223 system stepping capability was used. Also set a new flag used
2224 to ensure that we don't readjust the PC one more time later.
2225
2226 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2227 address by DECR_PC_AFTER_BREAK when software single step is
2228 in use for this architecture, as this has already been taken
2229 care of in handle_inferior_event().
2230
2231 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2232
2233 * infrun.c (handle_inferior_event): Minor reformatting, to make
2234 a rather long condition expression easier to read.
2235
2236 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2237
2238 * Makefile.in (gdbtk.o): Move to end of file.
2239 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2240 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2241 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2242 (gdbtk-wrapper.o, gdbres.o): Ditto.
2243
2244 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2245
2246 * Makefile.in (copying.o): Separate out compile rule.
2247 (hpux-thread.o, procfs.o, signals.o): Ditto.
2248 (v850ice.o, z8k-tdep.o): Ditto.
2249 (tui-file.o): Move to TUI section.
2250 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2251 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2252
2253 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2254
2255 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2256 skip_trampoline_code, for better namespace-proofing.
2257
2258 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2259
2260 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2261
2262 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2263
2264 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2265
2266 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2267 signal, check whether we hit a breakpoint before checking for a
2268 single step breakpoint. Otherwise, GDB fails to notice that a
2269 breakpoint has been hit when stepping onto a breakpoint.
2270
2271 2002-08-16 Keith Seitz <keiths@redhat.com>
2272
2273 * gdb-events.sh (clear_gdb_event_hooks): New function.
2274 * gdb-events.c: Regenerate.
2275 * gdb-events.h: Regenerate.
2276
2277 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2278
2279 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2280 not_a_sw_breakpoint.
2281 * breakpoint.h (bpstat_stop_status): Add parameter names.
2282
2283 2002-08-16 Grace Sainsbury <graces@redhat.com>
2284
2285 * remote.c (remote_insert_hw_breakpoint)
2286 (remote_remove_hw_breakpoint): Fix calculation of length field
2287 for Z-packet.
2288
2289 2002-08-15 Michael Snyder <msnyder@redhat.com>
2290
2291 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2292 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2293 (supply_fpregset): Ditto.
2294
2295 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2296 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2297 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2298 (TARGET_READ_SP): Delete.
2299 (DO_REGISTERS_INFO): Delete.
2300 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2301 Delete.
2302 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2303 from macros to functions.
2304
2305 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2306 (mips_register_convertible, mips_register_convert_to_virtual,
2307 mips_register_convert_to_raw): Make static.
2308 (mips_read_sp): New function.
2309 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2310 (mips_do_registers_info): Make static.
2311 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2312 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2313 (mips_register_convert_from_type, mips_register_convert_to_type):
2314 New functions.
2315 (mips_gdbarch_init): Set up function_start_offset,
2316 register_virtual_size, pc_in_sigtramp.
2317
2318 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2319
2320 * infcmd.c (vector_info): New function.
2321 (_initialize_infcmd): Add command "info vector".
2322 (print_vector_info): New function.
2323
2324 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2325 * gdbarch.h, gdbarch.c: Regenerate.
2326
2327 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2328
2329 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2330 ``print_all''. Only print vector registers when ``print_all''.
2331
2332 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2333
2334 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2335 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2336
2337 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2338 Add `args' parameter.
2339 * gdbarch.h, gdbarch.c: Regenerate.
2340
2341 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2342
2343 * infcmd.c (float_info): Call print_float_info.
2344 (print_float_info): New function. By default, print the
2345 floating-point registers.
2346
2347 * arch-utils.h (default_print_float_info): Delete declaration.
2348 * arch-utils.c (default_print_float_info): Delete function.
2349
2350 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2351
2352 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2353 out define.
2354
2355 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2356 FRAME.
2357
2358 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2359 * configure.host: Make i[3456]86-*-aix host obsolete.
2360 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2361 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2362 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2363 config/i386/xm-i386aix.h: Make files obsolete.
2364 * i386aix-nat.c: Make file obsolete.
2365 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2366 (i386aix-nat.o): Make target obsolete.
2367
2368 * config/i386/nm-gnu.h: Removed.
2369 * config/i386/nm-i386gnu.h: New file.
2370 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2371 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2372 Moved here from ...
2373 * config/i386/tm-i386gnu.h: ... here. Removed.
2374 * config/i386/xm-i386gnu.h: Removed.
2375 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2376 (NAT_FILE): Set to nm-i386gnu.h.
2377 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2378 * i386-tdep.c: New file.
2379 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2380 (i386gnu-tdep.o): Specify dependencies.
2381
2382 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2383
2384 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2385 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2386 Adjust a few comments to reflect reality a bit closer.
2387 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2388 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2389 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2390 target_insert_watchpoint, target_remove_watchpoint):
2391 Move defines to ...
2392 * config/i386/nm-i386sco5.h: ... here.
2393 (kernel_u_size): Add prototype. Improve a few comments and add
2394 protection against multiple inclusion.
2395
2396 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2397 out define.
2398
2399 * uw-thread.c (SP_ARG0): Define if not already defined.
2400 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2401
2402 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2403
2404 * config/i386/tm-i386.h: Don't include "regcache.h".
2405
2406 * i387-tdep.h (i387_print_float_info): New prototype.
2407 * i387-tdep.c (print_i387_value, print_i387_ext,
2408 print_i387_status_word, print_i387_control_word): Add `struct
2409 ui_file *' argument and use it for output.
2410 (i387_print_float_info): Renamed from i387_float_info. Add
2411 `struct gdbarch *' and `struct ui_file *' arguments and use the
2412 latter for output.
2413 * i386-tdep.c: Include "i387-tdep.h".
2414 (i386_gdbarch_init): Set print_float_info.
2415 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2416 (FLOAT_INFO): Remove define.
2417
2418 2002-08-13 Michael Snyder <msnyder@redhat.com>
2419
2420 * mips-tdep.c (mips_push_arguments): Rename to
2421 mips_eabi_push_arguments, and tune for EABI.
2422 (MIPS_REGS_HAVE_HOME_P): Delete.
2423 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2424 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2425 Delete references to mips_regs_have_home_p.
2426
2427 2002-08-14 Keith Seitz <keiths@redhat.com>
2428
2429 * Makefile.in (install-gdbtk): Create insight plugin directory.
2430 Install plugins.tcl file.
2431
2432 2002-08-14 Keith Seitz <keiths@redhat.com>
2433
2434 * configure.in: Move SUBDIRS to near top of the file so that
2435 --enable options may add things to it.
2436 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2437 * configure: Regenerate.
2438
2439 2002-08-13 Michael Snyder <msnyder@redhat.com>
2440
2441 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2442 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2443 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2444
2445 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2446
2447 * vax-tdep.c (vax_get_saved_register): Delete function.
2448 (vax_gdbarch_init): Update.
2449 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2450 (ns32k_gdbarch_init): Update.
2451 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2452 (alpha_gdbarch_init): Update.
2453
2454 2002-08-13 Andrew Cagney <cagney@redhat.com>
2455
2456 * regcache.c (init_regcache_descr): Overallocate the
2457 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2458 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2459 nr_raw_registers.
2460 (set_register_cached): Add range checking assertions. Use
2461 current_regcache.
2462
2463 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2464
2465 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2466 numbers for MMX registers.
2467
2468 2002-08-13 Andrew Cagney <cagney@redhat.com>
2469
2470 * i386-tdep.c (i386_gdbarch_init): Use
2471 generic_unwind_get_saved_register.
2472
2473 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2474
2475 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2476 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2477 target vector.
2478 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2479 Delete. Add comment regarding this now-deleted target method.
2480
2481 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2482
2483 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2484 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2485 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2486 real PC and the page number (if it's within the memory bank window).
2487 (m68hc11_pseudo_register_write): Likewise when saving.
2488 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2489 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2490 (m68hc11_register_raw_size): And use 32-bit for it.
2491 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2492 16K memory bank is used by the prog; also use the virtual pc.
2493
2494 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2495
2496 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2497 (m68hc11_gdbarch_init): Install it in gdbarch.
2498 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2499 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2500 (MSYMBOL_SIZE): New for documentation.
2501 (insn_return_kind): Enum to specify how a function returns.
2502 (frame_extra_info): Cleanup and record the return mode.
2503 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2504 register in address computation.
2505 (m68hc11_get_return_insn): New to obtain the return instruction used
2506 by the function.
2507 (m68hc11_frame_init_saved_regs): Take into account the return
2508 instruction used by the function for far and interrupt functions.
2509 (m68hc11_init_extra_frame_info): Take into account page register.
2510 (m68hc11_frame_args_address): Adjust according to the return mode.
2511 (show_regs): Print page register only when it's used.
2512
2513 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2514
2515 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2516 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2517 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2518 registers.
2519 (m68hc11_register_raw_size): Likewise.
2520
2521 2002-08-13 Andrew Cagney <cagney@redhat.com>
2522
2523 * i386-tdep.c (i386_register_name): Handle mmx registers.
2524 (mmx_regnum_p): New function.
2525 (i386_mmx_names): New array.
2526 (mmx_num_regs): New variable.
2527 (i386_pseudo_register_read): New function.
2528 (i386_pseudo_register_write): New function.
2529 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2530
2531 * regcache.c (regcache_raw_read_unsigned): New function.
2532 (regcache_raw_read_signed): New function.
2533 * regcache.h (regcache_raw_read_unsigned): Declare.
2534 (regcache_raw_read_signed): Declare.
2535
2536 2002-08-13 Andrew Cagney <cagney@redhat.com>
2537
2538 * regcache.c (regcache_raw_read_as_address): Delete function.
2539 (regcache_cooked_read_signed): New function.
2540 (regcache_cooked_read_unsigned): New function.
2541 * regcache.h (regcache_cooked_read_signed): Declare.
2542 (regcache_cooked_read_unsigned): Declare.
2543 (regcache_raw_read_as_address): Delete declaration.
2544
2545 * blockframe.c (generic_read_register_dummy): Use
2546 regcache_cooked_read_unsigned.
2547 * i386-tdep.c (i386_extract_struct_value_address): Use
2548 regcache_cooked_read_unsigned.
2549
2550 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2551
2552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2553 double sizes according to ELF ABI flags.
2554 (gdbarch_tdep): Record elf_flags.
2555
2556 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2557
2558 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2559 (m6812_prolog): They can appear in 68HC12 function prologue.
2560 (m68hc11_frame_chain): Cleanup.
2561
2562 2002-08-12 Andrew Cagney <cagney@redhat.com>
2563
2564 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2565 declarations.
2566 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2567 (i386_linux_register_raw_size): Delete function.
2568 (i386_linux_init_abi): Update.
2569 * i386-tdep.c (i386_register_raw_size): Delete function.
2570 (i386_register_byte): Delete function.
2571 (i386_gdbarch_init): Update.
2572 (i386_register_size): Delete array.
2573 (i386_register_offset): Delete array.
2574
2575 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2576 (REGISTER_RAW_SIZE): Delete macro.
2577 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2578 (REGISTER_BYTE): Delete macro.
2579
2580 2002-08-11 Aidan Skinner <aidan@velvet.net>
2581
2582 * ada-lang.c (ada_lookup_partial_symbol)
2583 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2584 prototype names so that grep ^func works properly.
2585
2586 * ada-lang.c (ada_array_element_type)
2587 (ada_lookup_partial_symbol): Fix typos in parameter list.
2588
2589 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2590 Fix prototype names so that grep ^func works properly.
2591
2592 2002-08-10 Andrew Cagney <cagney@redhat.com>
2593 Elena Zannoni <ezannoni@redhat.com>
2594 Martin M. Hunt <hunt@redhat.com>
2595
2596 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2597 (build_builtin_type_vec128i): Set the vector bit.
2598 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2599 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2600 (build_builtin_type_vec64): New function.
2601 (build_builtin_type_vec64i): New function.
2602 (build_gdbtypes): Initialize builtin_type_vec64 and
2603 builtin_type_vec64i.
2604
2605 2002-08-09 Andrew Cagney <cagney@redhat.com>
2606
2607 * regcache.c (regcache_dump): Compare the register offset
2608 with REGISTER_BYTE.
2609 * arch-utils.c (generic_register_byte): New function.
2610 * arch-utils.h (generic_register_byte): Declare.
2611 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2612 * gdbarch.h, gdbarch.c: Regenerate.
2613
2614 2002-08-09 Andrew Cagney <cagney@redhat.com>
2615
2616 * regcache.c: Include "gdbcmd.h"
2617 (_initialize_regcache): Add commands "maintenance print
2618 registers", "maintenance print raw-registers" and "maintenance
2619 print cooked-registers".
2620 (enum regcache_dump_what): Define.
2621 (dump_endian_bytes): New function.
2622 (regcache_dump): New function.
2623 (regcache_print): New function.
2624 (maintenance_print_registers): New function.
2625 (maintenance_print_raw_registers): New function.
2626 (maintenance_print_cooked_registers): New function.
2627 * Makefile.in (regcache.o): Update dependencies.
2628
2629 2002-08-09 Michael Snyder <msnyder@redhat.com>
2630
2631 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2632 (mips_push_arguments): Correct some comments. Use paddr_nz
2633 for printing addresses in debug output. Replace static
2634 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2635 (mips_n32n64_push_arguments): New function, cloned from
2636 mips_push_arguments and tuned for the n32/n64 ABI.
2637 (mips_push_register): Buffer needs dynamic allocation.
2638 (mips_print_register): Ditto.
2639 (do_gp_register_row): Ditto.
2640 (mips_store_return_value): Ditto.
2641 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2642
2643 2002-08-09 Don Howard <dhoward@redhat.com>
2644
2645 * memattr.c (mem_info_command): Print special case of upper bound
2646 as max CORE_ADDR + 1.
2647
2648 2002-08-08 Michael Snyder <msnyder@redhat.com>
2649
2650 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2651 returns structs by ref if they're too big to fit in two registers.
2652
2653 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2654
2655 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2656 saved regs value.
2657 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2658 mips_find_saved_regs().
2659 (mips_pop_frame): Likewise.
2660
2661 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2662
2663 * blockframe.c (frame_saved_regs_register_unwind): Revise
2664 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2665 frames are in use.
2666
2667 2002-08-09 Grace Sainsbury <graces@redhat.com>
2668
2669 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2670 T-packets; the 'a' is not taken as a register number.
2671 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2672 (remote_stopped_data_address): New functions; add to target
2673 vector.
2674 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2675 prototypes to match other implementations of this
2676 function. replace integer argument with pointer -- the length
2677 field in the Z-packet is the length of what is pointed to or 1 if
2678 pointer is null. Add to target vector.
2679 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2680 target vector.
2681
2682 From Mark Salter:
2683 * remote.c (remote_wait): Add support to extract optional
2684 watchpoint information from T-packet. Ignore unrecognized
2685 optional info in T-packet.
2686 (remote_async_wait): Ditto.
2687
2688 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2689
2690 * cli/cli-dump.c: Change fopen modes to use binary open modes
2691 as defined in include/fopen-bin.h throughout.
2692
2693 2002-08-08 Michael Snyder <msnyder@redhat.com>
2694
2695 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2696
2697 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2698
2699 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2700 assertion failure by returning early after a warning.
2701
2702 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2703
2704 * mips-tdep.c (mips_find_saved_regs): Make static.
2705 (mips_frame_init_saved_regs): New function.
2706 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2707 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2708 (mips_find_saved_regs): Delete declaration.
2709
2710 2002-08-08 Grace Sainsbury <graces@redhat.com>
2711
2712 * remote.c (remote_wait, remote_async_wait): Change
2713 thread_num from int to ULONGEST.
2714 (unpack_varlen_hex): Change result parameter from
2715 int * to ULONGEST *.
2716
2717 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2718
2719 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2720 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2721 powerpc*-*-*.
2722 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2723
2724 2002-08-08 Andrew Cagney <cagney@redhat.com>
2725
2726 * gcore.c (override_derive_stack_segment): Delete variable.
2727 (preempt_derive_stack_segment): Delete function.
2728 (derive_stack_segment): Delete function.
2729 (default_derive_stack_segment): Renamed to derive_stack_segment.
2730 (override_derive_heap_segment): Delete variable.
2731 (preempt_derive_heap_segment): Delete function.
2732 (derive_heap_segment): Delete function.
2733 (default_derive_heap_segment): Rename to derive_heap_segment.
2734
2735 2002-08-06 Michael Snyder <msnyder@redhat.com>
2736
2737 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2738 * mips-tdep.c (mips_EABI_use_struct_convention,
2739 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2740 New functions. (mips_use_struct_convention): Delete.
2741 (mips_gdbarch_init): set use_gdbarch_convention.
2742
2743 2002-08-06 Michael Snyder <msnyder@redhat.com>
2744
2745 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2746 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2747 mips_o32_reg_struct_has_addr): New functions.
2748 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2749
2750 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2751
2752 * regcache.c (pseudo_register): Delete function.
2753 (fetch_register): Delete function.
2754 (store_register): Delete function.
2755 (regcache_raw_read, legacy_read_register_gen): Use
2756 target_fetch_registers instead of fetch_register.
2757 (legacy_write_register_gen, regcache_raw_write): Use
2758 target_store_register instead of store_register.
2759 (write_register_bytes): Ditto.
2760
2761 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2762 (STORE_PSEUDO_REGISTER): Delete.
2763 * gdbarch.h, gdbarch.c: Regenerate.
2764
2765 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2766
2767 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2768 write dump file binary.
2769
2770 2002-08-05 Michael Snyder <msnyder@redhat.com>
2771
2772 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2773 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2774 (mips_gdbarch_init): Set N32 target to be mips64.
2775
2776 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2777
2778 * frame.c (find_saved_register): Break out of loop once saved
2779 register address is found. Don't mention sparc in loop comment
2780 anymore.
2781
2782 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2783
2784 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2785 mips_default_saved_regsize to 8.
2786
2787 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2788
2789 * gcore.c: Do not include <sys/procfs.h>.
2790 * Makefile.in (gcore.o): Update dependencies.
2791
2792 2002-08-06 Andrew Cagney <cagney@redhat.com>
2793
2794 * configure.tgt: Make arc-*-* obsolete.
2795 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2796 * MAINTAINERS: Make arc-elf obsolete.
2797 * arc-tdep.c: Make file obsolete.
2798 * config/arc/arc.mt: Ditto.
2799 * config/arc/tm-arc.h: Ditto.
2800
2801 2002-08-05 Theodore A. Roth <troth@verinet.com>
2802
2803 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2804
2805 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2806
2807 * mcore-tdep.c (mcore_gdbarch_init): Use
2808 generic_unwind_get_saved_register instead of
2809 generic_get_saved_register.
2810 * v850-tdep.c (v850_gdbarch_init): Ditto.
2811 * frv-tdep.c (frv_gdbarch_init): Ditto.
2812 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2813 * s390-tdep.c (s390_gdbarch_init): Ditto.
2814 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2815 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2816 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2817
2818 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2819
2820 * objfiles.h: Add missing #include "symfile.h"
2821
2822 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2823
2824 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2825
2826 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2827 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2828 of FIELD_BITSIZE.
2829
2830 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2831
2832 * NEWS: Cleanup and nitpick.
2833
2834 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2835
2836 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2837
2838 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2839
2840 * Makefile.in (gdbtk-bp.o): Update dependencies.
2841 (gdbtk-register.o): Ditto.
2842 (gdbtk-varobj.o): Ditto.
2843
2844 2002-08-03 Andrew Cagney <cagney@redhat.com>
2845
2846 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2847 m68hc11_fetch_pseudo_register.
2848 (m68hc11_pseudo_register_write): Replace
2849 m68hc11_store_pseudo_register.
2850 (m68hc11_gdbarch_init): Update.
2851
2852 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2853
2854 * gdbarch.sh: Include "gdb_string.h".
2855 * gdbarch.c: Regenerate.
2856
2857 * regcache.c: Include "gdb_string.h".
2858 * ax-general.c: Ditto.
2859 * varobj.c: Ditto.
2860 * std-regs.c: Ditto.
2861 * fbsd-proc.c: Ditto.
2862 * thread.c: Ditto.
2863
2864 * Makefile.in (regcache.o): Update dependencies.
2865 (thread.o, gdbarch.o): Ditto.
2866 (ax-general.o, gdbarch.o): Ditto.
2867 (varobj.o, std-regs.o): Ditto.
2868 (fbsd-proc.o): Specify dependencies.
2869
2870 2002-08-02 Andrew Cagney <cagney@redhat.com>
2871
2872 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2873 regnum.
2874 (regcache_cooked_write): Ditto.
2875
2876 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2877
2878 * regcache.c (regcache_cooked_read): New function.
2879 (regcache_cooked_write): New function.
2880 (read_register_gen): Rewrite using regcache_cooked_read.
2881 (write_register_gen): Rewrite using regcache_cooked_write.
2882
2883 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2884 Declare.
2885
2886 2002-08-02 Andrew Cagney <cagney@redhat.com>
2887
2888 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2889 Replace the architecture methods register_read and register_write.
2890 * gdbarch.h, gdbarch.c: Regenerate.
2891 * regcache.c (init_regcache_descr): Update.
2892 (read_register_gen): Update.
2893 (write_register_gen): Update.
2894 (supply_register): Update comment.
2895
2896 * sh-tdep.c (sh_gdbarch_init): Update.
2897 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2898 `regcache' and `gdbarch' parameters. Make `buffer' a void
2899 pointer. Update code.
2900 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2901 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2902 void pointer. Update code.
2903 (sh64_register_write): Delete.
2904 (sh4_register_read): Delete.
2905 (sh64_register_read): Delete.
2906 (sh4_register_write): Delete.
2907 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2908 void pointer, `to' parameter a void pointer.
2909 (sh_sh64_register_convert_to_raw): Ditto.
2910
2911 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2912
2913 * mips-tdep.c (mips_register_virtual_type): Use architecture
2914 invariant return values.
2915
2916 2002-08-01 Andrew Cagney <cagney@redhat.com>
2917
2918 * linux-proc.c: Include "gdb_string.h".
2919 * Makefile.in (linux-proc.o): Update dependency list.
2920
2921 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2922
2923 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2924 comment.
2925
2926 2002-08-01 Grace Sainsbury <graces@redhat.com>
2927
2928 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2929 to_insert_watchpoint, to_remove_watchpoint,
2930 to_stopped_by_watchpoint, to_stopped_data_address,
2931 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2932 target vecctor. Define their corresponding macros so they call
2933 them.
2934
2935 * target.c: Add default and debug versions of for
2936 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2937 to_insert_watchpoint, to_remove_watchpoint,
2938 to_stopped_by_watchpoint, to_stopped_data_address,
2939 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2940
2941 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2942
2943 * mips-tdep.c (mips_register_virtual_type): New function.
2944 (mips_gdbarch_init): Register mips_register_virtual_type()
2945 with gdbarch machinery.
2946 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2947 this file instead of tm-bigmips.h.
2948 (MIPS_REGSIZE): Delete this macro.
2949 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2950 multiarch version in mips-tdep.c will be found.
2951
2952 2002-08-01 Andrew Cagney <cagney@redhat.com>
2953
2954 * NEWS: Menion that CHILL has been made obsolete.
2955
2956 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2957 * stabsread.c (read_range_type): Ditto.
2958 * gdbtypes.h: Ditto.
2959 * language.c (binop_type_check): Ditto.
2960 (binop_result_type): Ditto.
2961 (integral_type): Ditto.
2962 (character_type): Ditto.
2963 (string_type): Ditto.
2964 (boolean_type): Ditto.
2965 (structured_type): Ditto.
2966 (lang_bool_type): Ditto.
2967 (binop_type_check): Ditto.
2968 * language.h (_LANG_chill): Ditto.
2969 * dwarfread.c (set_cu_language): Ditto.
2970 * dwarfread.c (CHILL_PRODUCER): Ditto.
2971 * dwarfread.c (handle_producer): Ditto.
2972 * expression.h (enum exp_opcode): Ditto.
2973 * eval.c: Ditto for comments.
2974 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2975 * expprint.c (print_subexp): Ditto.
2976 (print_subexp): Ditto.
2977 * valops.c (value_cast): Ditto.
2978 (search_struct_field): Ditto.
2979 * value.h (COERCE_VARYING_ARRAY): Ditto.
2980 * symfile.c (init_filename_language_table): Ditto.
2981 (add_psymbol_with_dem_name_to_list): Ditto.
2982 * valarith.c (value_binop): Ditto.
2983 (value_neg): Ditto.
2984 * valops.c (value_slice): Ditto.
2985 * symtab.h (union language_specific): Ditto.
2986 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2987 (SYMBOL_DEMANGLED_NAME): Ditto.
2988 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2989 * defs.h (enum language): Ditto.
2990 * symtab.c (got_symtab): Ditto.
2991 * utils.c (fprintf_symbol_filtered): Ditto.
2992
2993 * ch-typeprint.c: Make file obsolete.
2994 * ch-valprint.c: Make file obsolete.
2995 * ch-lang.h: Make file obsolete.
2996 * ch-exp.c: Make file obsolete.
2997 * ch-lang.c: Make file obsolete.
2998
2999 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3000 CHILL_LIB.
3001 (TARGET_FLAGS_TO_PASS): Ditto.
3002 (CHILLFLAGS): Obsolete.
3003 (CHILL): Obsolete.
3004 (CHILL_FOR_TARGET): Obsolete.
3005 (CHILL_LIB): Obsolete.
3006 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3007 ch-valprint.c.
3008 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3009 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3010 ch-lang.o.
3011 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3012 targets.
3013
3014 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3015
3016 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3017 This does not change anything at the moment, but will be helpful
3018 later when full Ada support is integrated.
3019
3020 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3021
3022 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3023 help message.
3024
3025 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3026
3027 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3028 and save it in a local variable. Use variable in later test.
3029
3030 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3031
3032 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3033 test. (Thanks to Daniel Jacobowitz.)
3034
3035 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3036
3037 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3038 (mips_abi_strings): Add "n64".
3039 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3040
3041 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3042
3043 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3044 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3045
3046 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3047
3048 * utils.c (host_pointer_to_address, address_to_host_pointer):
3049 Use gdb_assert() instead of explicit call to internal_error().
3050
3051 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3052
3053 * Makefile.in (rs6000-nat.o): Update dependencies.
3054
3055 From Nicholas Duffek:
3056 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3057 (aix-thread.o): New rule.
3058 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3059 * config/powerpc/aix432.mh: New file.
3060
3061 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3062
3063 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3064 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3065 (fetch_core_registers, ppc_linux_supply_gregset)
3066 (ppc_linux_supply_fpregset): New functions.
3067 (ppc_linux_regset_core_fns): New.
3068 (_initialize_ppc_linux_tdep): Call add_core_fns.
3069 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3070 and ppc_linux_supply_gregset.
3071 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3072 (supply_fpregset): Call ppc_linux_supply_fpregset.
3073 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3074 corelow.o.
3075 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3076
3077 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3078
3079 * symtab.c (lookup_symbol): Demangle before lowercasing.
3080
3081 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3082
3083 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3084 declaration.
3085 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3086 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3087 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3088 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3089 "gdb_string.h".
3090 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3091 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3092 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3093 (avr-tdep.o, mon960-rom.o): Ditto.
3094 (aout_stabs_gnu_h): Define.
3095 (symtab_h): Remove $(gdb_obstack_h).
3096
3097 2002-07-30 Jim Blandy <jimb@redhat.com>
3098
3099 Patch from David Carlton <carlton@math.stanford.edu>:
3100 * gdbinit.in: Move the `dir' commands that add GDB's own source
3101 directory to the search path to the end, so that the `gdb' source
3102 directory will be searched first.
3103
3104 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3105
3106 * gdb_obstack.h: New file.
3107 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3108 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3109 * objfiles.h: Include "gdb_obstack.h".
3110 * Makefile.in (gdb_obstack_h): Define.
3111 (symtab_h): Add $(gdb_obstack_h).
3112 (objfiles_h): Add $(gdb_obstack_h).
3113
3114 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3115 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3116 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3117 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3118 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3119 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3120 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3121 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3122
3123 * Makefile.in (bcache.o): Update dependencies.
3124 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3125 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3126 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3127 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3128 (stabsread.o, symfile.o, symmisc.o): Ditto.
3129 (symtab.o, typeprint.o, macroexp.o): Ditto.
3130 (macrotab.o, mdebugread.o): Ditto.
3131 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3132 (coff_ecoff_h, aout_aout64_h): Define.
3133 (aout_stabs_gnu_h, libaout_h): Define.
3134
3135 2002-07-29 Andrew Cagney <cagney@redhat.com>
3136
3137 * regcache.c (struct regcache_descr): Rename nr_registers to
3138 nr_cooked_registers. Revise comments describing the structure
3139 member fields.
3140 (init_regcache_descr): Update.
3141 (init_legacy_regcache_descr): Update.
3142 (read_register_gen, write_register_gen): When a cooked register in
3143 the raw register range, directly access the value from the raw
3144 register cache.
3145
3146 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3147
3148 * z8k-tdep.c: Do not include "obstack.h".
3149 * h8300-tdep.c, h8500-tdep.c: Ditto.
3150 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3151 * valprint.c, v850-tdep.c: Ditto.
3152 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3153 * mn10200-tdep.c: Ditto.
3154
3155 * Makefile.in (z8k-tdep.o): Update dependencies.
3156 (m68hc11-tdep.o, valprint.o): Ditto.
3157 (v850-tdep.o, d10v-tdep.o): Ditto.
3158 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3159 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3160 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3161 (sh_opc_h, gdb_sim_sh_h): Define.
3162 (elf_sh_h, elf_bfd_h): Define.
3163 (opcode_m68hc11_h): Define.
3164 (OPCODES_SRC, OPCODES_DIR): define.
3165 (OPCODES): Use $(OPCODES_DIR).
3166 (gdb_sim_d10v_h): Rename sim_d10v_h.
3167 (gdb_sim_arm_h): Rename sim_arm_h.
3168
3169 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3170
3171 * utils.c (host_pointer_to_address, address_to_host_pointer):
3172 Change internal_error() message to indicate function responsible
3173 for the error.
3174
3175 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3176
3177 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3178 calls to local_hex_string_custom().
3179
3180 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3181
3182 * irix5-nat.c: Move IRIX shared library support from here...
3183 * solib-irix.c: ...to here. Revised substantially to work with
3184 generic solib framework.
3185
3186 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3187 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3188 * mips-irix-tdep.c: New file.
3189
3190 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3191 (mips-irix-tdep.o, solib-irix.o): New rules.
3192 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3193 solib-irix.o.
3194 * config/mips/irix6.mt (TDEPFILES): Likewise.
3195 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3196
3197 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3198
3199 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3200 disabled (via ``#if 0'') includes.
3201
3202 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3203
3204 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3205 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3206 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3207 Add support for the fpscr register.
3208 * rs6000-nat.c (regmap, fetch_inferior_registers)
3209 (store_inferior_registers, fetch_core_registers): Likewise.
3210
3211 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3212
3213 * rs6000-nat.c (language.h): Include.
3214 (special_regs): Delete this array.
3215 (regmap): New function.
3216 (fetch_register, store_register): Use regmap() to map gdb
3217 register numbers to ptrace register numbers. Also, use
3218 outputs from regmap() to make decisions regarding type of
3219 ptrace() call to make. In particular, don't compare against
3220 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3221 (fetch_inferior_registers, store_inferior_registers): Where
3222 possible, obtain register numbers from tdep struct. Don't
3223 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3224 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3225 (LAST_UISA_SP_REGNUM): Delete.
3226
3227 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3228
3229 * rs6000-nat.c (ppc-tdep.h): Include.
3230 (fetch_registers, store_register, fetch_core_registers): Don't
3231 access registers[] directly. Instead, use supply_register() or
3232 regcache_collect() as appropriate.
3233 (find_toc_address): Format hex address with local_hex_string().
3234
3235 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3236
3237 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3238 bfd/elf32-frv.c.
3239
3240 2002-07-24 Tom Tromey <tromey@redhat.com>
3241
3242 * jv-exp.y: Marked all strings with _().
3243 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3244 internal_error.
3245 (MethodInvocation, CastExpression, parse_number, yyerror,
3246 java_type_from_name, push_expression_name, yylex): Typo fixes.
3247
3248 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3249
3250 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3251 (tee_file_flush, tee_file_write, tee_file_fputs)
3252 (tee_file_isatty): New.
3253 * ui-file.h (tee_file_new): Add prototype.
3254
3255 2002-07-24 Aidan Skinner <aidan@velvet.net>
3256
3257 * ada-lang.c: Change k&r style function definitions to prototyped
3258 form.
3259 * ada-typeprint.c: Change k&r style function definitions to prototyped
3260 form.
3261 * ada-valprint.c: Change k&r style function definitions to prototyped
3262 form.
3263
3264 2002-07-24 Andrew Cagney <cagney@redhat.com>
3265
3266 * README: Remove reference to remote-bug.
3267 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3268 remote-bug.c.
3269 (m88k-nat.o): Delete rule.
3270 (m88k-tdep.o): Delete rule.
3271 (remote-bug.o): Delete rule.
3272 * MAINTAINERS: Mark as obsolete.
3273 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3274 * m88k-tdep.c: Make file obsolete.
3275 * config/m88k/m88k.mh: Ditto.
3276 * config/m88k/delta88v4.mh: Ditto.
3277 * config/m88k/delta88v4.mt: Ditto.
3278 * config/m88k/delta88.mt: Ditto.
3279 * config/m88k/delta88.mh: Ditto.
3280 * remote-bug.c: Ditto.
3281 * config/m88k/tm-delta88.h: Ditto.
3282 * config/m88k/nm-delta88v4.h: Ditto.
3283 * config/m88k/xm-delta88.h: Ditto.
3284 * config/m88k/xm-dgux.h: Ditto.
3285 * config/m88k/tm-m88k.h: Ditto.
3286 * config/m88k/nm-m88k.h: Ditto.
3287 * config/m88k/tm-delta88v4.h: Ditto.
3288 * m88k-nat.c: Ditto.
3289 * cxux-nat.c: Ditto.
3290 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3291 and m88*-*-* obsolete.
3292 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3293 m88*-*-* obsolete.
3294
3295 2002-07-24 Andrew Cagney <cagney@redhat.com>
3296
3297 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3298 constant. Same for local pointer variables.
3299 (extract_signed_integer): Ditto.
3300 * defs.h (extract_unsigned_integer): Update.
3301 (extract_signed_integer): Update.
3302
3303 2002-07-24 Andrew Cagney <cagney@redhat.com>
3304
3305 * regcache.c (regcache_raw_write): Change buf parameter to a
3306 constant void pointer.
3307 (regcache_raw_read): Change buf parameter to a void pointer.
3308 (legacy_write_register_gen): Change myaddr parameter a constant
3309 void pointer.
3310 (supply_register): Change val parameter to a const void pointer.
3311 * regcache.h (regcache_raw_write): Update declaration.
3312 (regcache_raw_read): Update declaration.
3313 (supply_register): Update declaration.
3314
3315 2002-07-24 Tom Tromey <tromey@redhat.com>
3316
3317 * defs.h (gdb_readline_wrapper): Declare.
3318 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3319 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3320 * top.c (gdb_readline_wrapper): New function.
3321 (command_line_input): Use it.
3322
3323 2002-07-24 Andrew Cagney <cagney@redhat.com>
3324
3325 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3326 regcache_read and regcache_write.
3327 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3328 * regcache.c: Update.
3329 * sh-tdep.c (sh64_push_arguments): Update comment.
3330 (sh_pseudo_register_read): Update.
3331 (sh_pseudo_register_write): Update.
3332 (sh4_register_read): Update.
3333 (sh4_register_write): Update.
3334 (sh64_pseudo_register_read): Update.
3335 (sh64_pseudo_register_write): Update.
3336 (sh64_register_read): Update.
3337 (sh64_register_write): Update.
3338 * i386-tdep.c (i386_extract_return_value): Update.
3339 (i386_extract_struct_value_address): Update.
3340 (i386_extract_return_value): Update.
3341 * blockframe.c (generic_read_register_dummy): Update.
3342 (generic_call_dummy_register_unwind): Update
3343 * infrun.c (write_inferior_status_register): Update.
3344
3345 2002-07-23 Jim Blandy <jimb@redhat.com>
3346
3347 * parser-defs.h (expression_context_pc): Make this extern.
3348 (Thanks to Michael Snyder.)
3349
3350 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3351
3352 GDB 5.2.1 released from 5.2 branch.
3353 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3354 * README: Update to mention 5.2.1.
3355
3356 2002-07-23 Mark Salter <msalter@redhat.com>
3357
3358 * remote.c (remote_read_bytes): Fix check for error.
3359
3360 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3361
3362 * aix-thread.c (language.h): Include.
3363 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3364 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3365 Print newlines at end of debug messages.
3366 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3367 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3368
3369 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3370
3371 * aix-thread.c (ppc-tdep.h): Include.
3372 (special_register_p): New function.
3373 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3374 (store_regs_user_thread): Use register number information from
3375 gdbarch_tdep struct instead of hardcoded offsets relative to
3376 FIRST_UISA_SP_REGNUM.
3377 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3378 special_register_p() instead of using FPLAST_REGNUM and
3379 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3380 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3381 will be MQ's register number.
3382
3383 2002-07-22 Michael Snyder <msnyder@redhat.com>
3384
3385 * aix-thread.c (ops): Rename to aix_thread_ops.
3386 (base_ops): Rename to base_target.
3387 (ops_attach): Rename to aix_thread_attach.
3388 (ops_detach): Rename to aix_thread_detach.
3389 (ops_resume): Rename to aix_thread_detach.
3390 (ops_wait): Rename to aix_thread_wait.
3391 (ops_kill): Rename to aix_thread_kill.
3392 (init_ops): Rename to init_aix_thread_ops.
3393 (ops_fetch_register): Rename to aix_thread_fetch_register.
3394 (ops_store_register): Rename to aix_thread_store_register.
3395 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3396 (ops_thread_alive): Rename to aix_thread_thread_alive.
3397 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3398 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3399 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3400 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3401 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3402 (store_regs_lib): Rename to store_regs_user_thread.
3403 (store_regs_kern): Rename to store_regs_kernel_thread.
3404
3405 2002-07-22 Michael Snyder <msnyder@redhat.com>
3406
3407 * aix-thread.c (ops_prepare_to_store): Eliminate.
3408 (init_ops): Don't initialize ops.prepare_to_store.
3409 (store_regs_kern): Pre-fetch register buffers from child,
3410 because some registers may not be in the cache. Copy
3411 regs from register cache only if they are cached.
3412 (store_regs_lib): Copy regs from register cache only
3413 if they are cached.
3414 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3415 fill_gprs64): Ditto.
3416
3417 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3418
3419 * aix-thread.c (gdb_assert.h): Include.
3420 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3421 register sizes (from register cache) match size of buffer holding
3422 register data.
3423 (fill_sprs32): Change parameter types to match those in the ptrace()
3424 buffer.
3425 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3426 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3427
3428 2002-07-22 Michael Snyder <msnyder@redhat.com>
3429
3430 * aix-thread.c (supply_sprs64): Cosmetic change.
3431 (supply_sprs32): Cosmetic change.
3432 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3433 (fill_sprs64): Use regcache_collect instead of read_register.
3434 (store_regs_lib): Use regcache_collect instead of
3435 read_register. Use fill_sprs32 instead of fill_sprs64,
3436 if debugging a 32-bit architecture.
3437 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3438 out of the register cache, instead of passing a pointer into
3439 the register cache directly to ptrace. Use regcache_collect
3440 insteaad of read_register.
3441 (ops_prepare_to_store): Use target_read_registers instead
3442 of read_register_bytes.
3443
3444 2002-07-20 Aidan Skinner <aidan@velvet.net>
3445
3446 * MAINTAINERS: Add self under write after approval.
3447
3448 2002-07-20 Aidan Skinner <aidan@velvet.net>
3449
3450 * ada-tasks.c: Change k&r style function definitions to prototyped
3451 form.
3452
3453 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3454
3455 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3456 * x86-64-tdep.c: Include "objfiles.h".
3457 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3458 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3459
3460 2002-07-17 Michal Ludvig <michal@suse.cz>
3461
3462 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3463 (update_context): Initialise cfa variable.
3464
3465 2002-07-17 Michael Snyder <msnyder@redhat.com>
3466
3467 * aix-thread.c: Shorten some long lines.
3468 Bring comments into line with code spec.
3469
3470 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3471
3472 * infrun.c: Re-indent using gdb_indent.sh.
3473
3474 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3475
3476 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3477 Leave the indentation temporarily untouched, to minimize the diffs.
3478
3479 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3480
3481 * stabsread.c: Make os9k sections of the code obsolete,
3482 for real this time.
3483 * stabsread.h: Make os9k sections of the code obsolete.
3484
3485 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3486
3487 * linux-low.c (regsets_store_inferior_registers): Add free()
3488 at the end of a loop to prevent memory leak.
3489 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3490 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3491 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3492 line a comment.
3493 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3494
3495 2002-07-17 Jim Blandy <jimb@redhat.com>
3496
3497 * macrocmd.c (info_macro_command): Remove newline from error
3498 message.
3499
3500 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3501
3502 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3503 (sh_gdbarch_init): Use it for sh-dsp.
3504
3505 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3506
3507 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3508 64-bit DWARF2 format.
3509
3510 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3511
3512 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3513 <sys/proc.h> when not available.
3514
3515 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3516
3517 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3518 * stabsread.c: Make os9k sections of the code obsolete.
3519 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3520 * config/i386/i386os9k.mt: Make file obsolete.
3521 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3522 (COMMON_OBS): Remove os9kread.o
3523 (SFILES): Remove os9kread.c.
3524 (os9kread.o, remote-os9k.o): Make target obsolete.
3525 * remote-os9k.c: Make file obsolete.
3526 * os9kread.c: Make file obsolete.
3527 * Makefile.in
3528
3529 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3530
3531 * NEWS: Mention that the FR30 has been made obsolete.
3532 * fr30-tdep.c: Make file obsolete.
3533 * config/fr30/tm-fr30.h: Ditto.
3534 * config/fr30/fr30.mt: Ditto.
3535 * configure.tgt: Make fr30-*-elf obsolete.
3536 * MAINTAINERS: Make fr30-elf obsolete.
3537
3538 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3539
3540 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3541 found is not inside a section.
3542
3543 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3544
3545 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3546 strerror().
3547 (pdc_realloc): Use xrealloc() instead of realloc().
3548
3549 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3550
3551 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3552 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3553 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3554 macros.
3555
3556 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3557
3558 * aix-thread.c (ptrace_check): Eliminate goto.
3559 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3560 problem.
3561
3562 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3563
3564 * aix-thread.c (gdbcmd.h): Include.
3565 (DEBUG, DBG, DBG2, dbg): Eliminate.
3566 (debug_aix_thread): New static global.
3567 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3568 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3569 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3570 invocations to DBG and DBG2 macros to test against
3571 ``debug_aix_thread'' and call fprintf_unfiltered().
3572 (_initialize_aix_thread): Add new command "set debug aix-thread".
3573
3574 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3575
3576 From Gerhard Tonn <TON@de.ibm.com>:
3577 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3578 instead of supply_register.
3579
3580 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3581
3582 * dwarf2cfi.c: Include "gdb_assert.h".
3583 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3584 non-NULL.
3585 (update_context): Do not use __func__. Add missing ``break''.
3586 (update_context): Do not use __func__.
3587
3588 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3589
3590 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3591 and its setting. Set gdbarch instruction printing functions
3592 directly. For non-rs6000 case use new function
3593 gdb_print_insn_powerpc.
3594 (gdb_print_insn_powerpc): New function.
3595
3596 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3597
3598 * NEWS: Mention that the d30v has been marked obsolete.
3599 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3600 * configure.tgt: Mark d30v-*-* as obsolete.
3601 * d30v-tdep.c: Mark file as obsolete.
3602 * config/d30v/d30v.mt: Ditto.
3603 * config/d30v/tm-d30v.h: Ditto.
3604
3605 2002-07-13 Aidan Skinner <aidan@velvet.net>
3606
3607 * ada-tasks.c (add_task_entry): replace calls to
3608 malloc() with xmalloc
3609 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3610
3611 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3612 ada_finish_decode_line_1, all_sals_for_line
3613 ada_breakpoint_rewrite): replace calls to free() with xfree()
3614
3615 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3616
3617 From Nicholas Duffek (with minor changes by Martin Hunt,
3618 Louis Hamilton, and Kevin Buettner):
3619 * aix-thread.c: New file.
3620
3621 2002-07-12 Petr Sorfa <petrs@caldera.com>
3622
3623 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3624 complaint for invalid attribute class or form.
3625 (read_func_scope): DW_AT_frame_base
3626 better handling of DW_AT_block*.
3627 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3628 better handling of DW_AT_block*.
3629 (read_common_block): DW_AT_location
3630 better handling of DW_AT_block*.
3631 (read_partial_die): DW_AT_location better handling
3632 of DW_AT_block*.
3633 (new_symbol): DW_AT_external better handling of
3634 DW_AT_block*. Proper initialization of variable
3635 "addr".
3636 (attr_form_is_block): New function that returns true
3637 if the attribute's form is of DW_FORM_block*.
3638
3639 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3640
3641 * valops.c (find_method_list): Remove comment about
3642 removed STATIC_MEMFUNCP argument.
3643 (value_find_oload_method_list): Likewise.
3644
3645 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3646
3647 From Nicholas Duffek:
3648 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3649 target_new_objfile_hook.
3650
3651 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3652
3653 From Nicholas Duffek:
3654 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3655 csect.
3656
3657 2002-07-12 Andrew Cagney <cagney@redhat.com>
3658
3659 * MAINTAINERS: Mention --enable-sim-build-warnings.
3660 (m68hc11-elf): Disable sim build warnings.
3661 (m32r-elf): Mark as broken obsolete candidate.
3662 (x86_64-linux-gnu): Mark as buildable with -Werror.
3663 (arm-elf): Change -w to ``,'' which enables warnings but not
3664 -Werror.
3665
3666 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3667
3668 * bcache.h: Update copyright.
3669 (struct bstring, struct bcache): Move definition to "bcache.c".
3670 Replaced by opaque declaration.
3671 (bcache_xfree): Replace free_bcache.
3672 (bcache_xmalloc, bcache_memory_used): Declare.
3673
3674 * bcache.c: Update copyright.
3675 (struct bstring, struct bcache): Moved to here from "bcache.h".
3676 Update comments.
3677 (bcache_xmalloc, bcache_memory_used): New functions.
3678 (bcache_xfree): Replace function free_bcache.
3679
3680 * Makefile.in (objfiles.o): Add $(bcache_h).
3681 (objfiles_h): Remove $(bcache_h).
3682 (symfile.o): Add $(bcache_h).
3683
3684 * symmisc.c: Update copyright.
3685 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3686 (print_objfile_statistics): Use bcache_memory_used.
3687
3688 * symfile.c: Include "bcache.h".
3689 (reread_symbols): Use bcache_xfree.
3690 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3691 (add_psymbol_to_list): Pass psymbol_cache by value.
3692 (add_psymbol_with_dem_name_to_list): Ditto.
3693
3694 * objfiles.h: Update copyright.
3695 (struct bcache): Declare opaque. Do not include "bcache.h".
3696 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3697 bcache'' pointers.
3698 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3699
3700 * objfiles.c: Include "bcache.h". Update copyright.
3701 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3702 macro_cache.
3703 (free_objfile): Use bcache_xfree.
3704
3705 2002-07-11 Grace Sainsbury <graces@redhat.com>
3706
3707 * monitor.c (monitor_fetch_register): Make name a constant.
3708 (monitor_store_register): Same.
3709
3710 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3711
3712 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3713 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3714 (finish_block) For non-function blocks, hash the symbol table. For
3715 function blocks, mark the symbol table as unhashed.
3716 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3717 (msymbol_hash_iw): Likewise.
3718 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3719 value.
3720 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3721 (lookup_minimal_symbol): Likewise for both.
3722 * symtab.h (struct block): Add `hashtable' flag. Comment the
3723 hashtable.
3724 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3725 (ALL_BLOCK_SYMBOLS): Update.
3726 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3727 (struct symbol): Add `hash_next' pointer.
3728 * symtab.c (lookup_block_symbol): Search using the hash table when
3729 possible.
3730 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3731 (search_symbols, find_addr_symbol): Likewise.
3732
3733 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3734 (read_dst_symtab): Likewise.
3735 * jv-lang.c (get_java_class_symtab): Likewise.
3736 * mdebugread.c: Include "gdb_assert.h".
3737 (shrink_block): Assert that the block being modified is not hashed.
3738 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3739 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3740 symbols.
3741 (dump_symtab): Recognize hashed blocks.
3742 * printcmd.c (print_frame_args): Assert that function blocks do not
3743 have hashed symbol tables.
3744 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3745 (fill_in_ada_prototype, debug_print_block): Likewise.
3746 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3747
3748 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3749
3750 * stack.c (print_frame): Use result of frame_address_in_block()
3751 instead of fi->pc when evaluating symbols.
3752 (backtrace_command_1): Ditto.
3753
3754 2002-07-11 Andrew Cagney <cagney@redhat.com>
3755
3756 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3757 Make static.
3758
3759 * arm-tdep.c (arm_register_name): Make return type constant.
3760
3761 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3762
3763 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3764 prototype.
3765 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3766 * s390-tdep.c (s390_fp_regnum): Ditto.
3767 (s390_read_fp): Ditto.
3768 (s390_pop_frame): Ditto.
3769 (_initialize_s390_tdep): Ditto.
3770 * remote.c (get_remote_state): Ditto.
3771 * procfs.c (mappingflags): Ditto.
3772 * memattr.c (_initialize_mem): Ditto.
3773 * mcore-tdep.c (mcore_pop_frame): Ditto.
3774 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3775 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3776 * language.c (set_case_str): Ditto.
3777 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3778 * frv-tdep.c (new_variant): Ditto.
3779 (frv_stopped_data_address): Ditto.
3780 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3781 (context_alloc): Ditto.
3782 (frame_state_alloc): Ditto.
3783 (unwind_tmp_obstack_init): Ditto.
3784 (unwind_tmp_obstack_free): Ditto.
3785 (cfi_read_fp): Ditto.
3786 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3787 (cris_pop_frame): Ditto.
3788 * c-lang.c (scanning_macro_expansion): Ditto.
3789 (finished_macro_expansion): Ditto.
3790 (c_preprocess_and_parse): Ditto.
3791 * gdbarch.sh: Ditto.
3792 * gdbarch.h, gdbarch.c: Regenerate.
3793 * config/mn10200/tm-mn10200.h: Adjust indentation.
3794 * target.c: Adjust indentation.
3795 * symtab.h: Adjust indentation.
3796 * stabsread.h: Adjust indentation.
3797 * remote-es.c: Adjust indentation.
3798 * os9kread.c: Adjust indentation.
3799
3800 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3801
3802 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3803 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3804
3805 2002-07-10 Grace Sainsbury <graces@redhat.com>
3806
3807 * NEWS: Mention m68k, mcore multi-arching.
3808 * MAINTAINERS: Change status of m68k, mcore to reflect
3809 multi-arching.
3810
3811 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3812
3813 * valops.c (find_overload_match): Free oload_syms.
3814
3815 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3816
3817 Define HAVE_SYS_PROC_H if sys/proc.h exists
3818 * configure.in: Add check for sys/proc.h
3819 * config.in: Regenerate.
3820 * configure: Regenerate.
3821
3822 2002-07-09 Grace Sainsbury <graces@redhat.com>
3823
3824 * config/m68k/tm-m68k.h: Remove macros wrapped in
3825 #if !GDB_MULTI_ARCH.
3826
3827 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3828
3829 * config.in, configure: Regenerate.
3830
3831 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3832
3833 * dwarf2cfi.c: Include "gcore.h".
3834 (execute_stack_op): Fix implementation of the
3835 DW_OP_deref and DW_OP_deref_size operators by letting do their
3836 lookup in the target.
3837
3838 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3839
3840 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3841 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3842 tdep->sc_sp_offset.
3843
3844 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3845
3846 Fix PR gdb/595, gdb/602
3847 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3848 Don't call value_cast, just read the vtable pointer; update comments
3849 to match.
3850
3851 2002-07-05 Grace Sainsbury <graces@redhat.com>
3852
3853 * config/mcore/tm-mcore.h: Remove file.
3854 * config/mcore/mcore.mt: Remove definition of TM_FILE
3855 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3856
3857 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3858
3859 * i386bsd-tdep.c: Include "gdb_string.h".
3860
3861 2002-07-04 Grace Sainsbury <graces@redhat.com>
3862
3863 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3864 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3865 mcore-tdep.
3866 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3867 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3868 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3869 (RETVAL_REGNUM): Move macros from tm-mcore.h
3870 (mcore_reg_struct_has_addr): New function.
3871 (mcore_gdbarch_init): Added initializations for the macros removed
3872 from tm-mcore.h.
3873
3874 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3875
3876 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3877 traditonal string branding within the ELF header.
3878
3879 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3880
3881 * symtab.c (remove_params): New function.
3882 (make_symbol_overload_list): Use it instead of cplus_demangle.
3883 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3884
3885 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3886
3887 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3888
3889 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3890 New variables.
3891 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3892 and tdep->sigtramp_end.
3893 * i386obsd-nat.c: New file.
3894 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3895
3896 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3897 Don't call get_current_frame().
3898
3899 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3900
3901 * i386-nat.c (child_post_startup_inferior): New function
3902 calling i386_cleanup_dregs if
3903 I386_USE_GENERIC_WATCHPOINTS is defined.
3904 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3905 conditional to acknowledge that i386-nat.c has its
3906 own child_post_startup_inferior function.
3907
3908 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3909
3910 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3911 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3912 instead of MAX_REGISTER_RAW_SIZE.
3913 (i386_extract_return_value, i386_extract_struct_value_address):
3914 Convert to use regcache.
3915 (i386_gdbarch_init): Set max_register_raw_size and
3916 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3917 Set extract_return_value and extract_struct_value_address instead
3918 of their deprecated variants.
3919
3920 Convert i386 target to generic dummy frames.
3921 * i386-tdep.c: Include "symfile.h".
3922 (i386_frameless_signal_p): Consider a function to be frameless if
3923 the pc points at the first instruction of the function.
3924 (i386_frame_chain): Handle (generic) call dummies.
3925 (i386_frame_saved_pc): Likewise.
3926 (i386_frame_init_saved_regs): Remove code dealing with call
3927 dummies on the stack.
3928 (i386_push_dummy_frame): Removed.
3929 (i386_call_dummy_words): Removed.
3930 (i386_fix_call_dummy): Removed.
3931 (i386_push_return_address): New function.
3932 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3933 parameter, and don't call get_current_frame.
3934 (i386_pop_frame): New function.
3935 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3936 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3937 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3938 call_dummy_length to 0, set call_dummy_words to NULL, set
3939 sizeof_call_dummy_words to 0, set fix_call_dummy to
3940 generic_fix_call_dummy, set pc_in_call_dummy to
3941 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3942 generic_push_dummy_frame, set push_return_address to
3943 i386_push_return_address and set frame_chain_valid to
3944 generic_file_frame_chain_valid.
3945
3946 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3947
3948 * gdbarch.sh (struct regcache): Add opaque declaration.
3949 (EXTRACT_RETURN_VALUE): New architecture method.
3950 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3951 * gdbarch.h, gdbarch.c: Regenerate.
3952 * arch-utils.c (legacy_extract_return_value): New function.
3953 * arch-utils.h (legacy_extract_return_value): Declare.
3954 * values.c (value_being_returned): Re-enable code handling
3955 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3956 deprecated_grub_regcache_for_registers call to block handling
3957 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3958 (EXTRACT_RETURN_VALUE): Do not define.
3959
3960 2002-07-03 Grace Sainsbury <graces@redhat.com>
3961
3962 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3963 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3964 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3965 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3966 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3967 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3968 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3969 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3970 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3971 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3972 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3973 argument so the function fits the prototype in the architecture
3974 vector.
3975 (mcore_pop_frame): Remove argument so the function fits the
3976 prototype. Use get_current_frame instead of the argument.
3977 (mcore_push_arguments): Change type of struct_return so the
3978 function can be used in the architecture vector.
3979 (mcore_store_struct_return): Add.
3980 (mcore_frame_init_saved_regs): Add.
3981 (mcore_gdbarch_init): Add function calls to replace the macros
3982 removed from tm-mcore.h
3983
3984 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3985
3986 * infcmd.c (print_return_value): Remove compatibility code calling
3987 deprecated_grub_regcache_for_registers.
3988
3989 * values.c: Include "regcache.h".
3990 (value_being_returned): Update. Use
3991 deprecated_grub_regcache_for_registers to extract the register
3992 buffer address.
3993 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3994 ``struct regcache''.
3995 * Makefile.in (values.o): Add dependency on $(regcache_h).
3996
3997 * inferior.h (run_stack_dummy): Change type of second parameter to
3998 a ``struct regcache''.
3999 * valops.c (hand_function_call): Change type of retbuf to ``struct
4000 regcache''. Allocate using regcache_xmalloc, clean using
4001 make_cleanup_regcache_xfree.
4002 * infcmd.c (run_stack_dummy): Update. Use
4003 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4004
4005 * regcache.c (do_regcache_xfree): New function.
4006 (make_cleanup_regcache_xfree): New function.
4007 * regcache.h (make_cleanup_regcache_xfree): Declare.
4008
4009 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4010
4011 * event-top.c (command_line_handler): Don't read past
4012 beginning of buffer.
4013
4014 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4015
4016 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4017 struct frame_id.
4018 (varobj_create): Store frame_id for root.
4019 (varobj_gen_name): Use xasprintf.
4020 (varobj_update): Save and restore frame using get_frame_id() and
4021 frame_find_by_id().
4022 (create_child): Use xasprintf.
4023 (new_root_variable): Initialize frame_id.
4024 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4025 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4026 to prevent memory leak.
4027
4028 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4029
4030 * valops.c (hand_function_call): Move declaration of retbuf to
4031 start of function, allocate using malloc, add a cleanup but before
4032 the inf_status cleanup, cleanup the buffer. Rename local variable
4033 old_chain to inf_status_cleanup.
4034
4035 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4036
4037 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4038
4039 * cli/cli-decode.c (cmd_func_p): New function.
4040 (cmd_func): New function.
4041
4042 * command.h: Add cmd_func() and cmd_func_p().
4043
4044 2002-07-03 Grace Sainsbury <graces@redhat.com>
4045
4046 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4047 (REGISTER_SIZE): Remove.
4048 (MAX_REGISTER_RAW_SIZE): Remove.
4049 (REGISTER_VIRTUAL_TYPE): Remove.
4050 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4051 (REGISTER_NAME): Remove.
4052 (USE_GENERIC_DUMMY_FRAMES): Remove.
4053 (CALL_DUMMY): Remove.
4054 (CALL_DUMMY_START_OFFSET): Remove.
4055 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4056 (CALL_DUMMY_LOCATION): Remove.
4057 (FIX_CALL_DUMMY): Remove.
4058 (CALL_DUMMY_ADDRESS): Remove.
4059 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4060 (SAVE_DUMMY_FRAME_TOS): Remove.
4061 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4062 (mcore_register_virtual_type): New function.
4063 (mcore_register_byte): New function.
4064 (mcore_register_size): New function.
4065 (mcore_register_name): New function.
4066 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4067 macros removed from tm-mcore.h.
4068 (mcore_dump_tdep): Add.
4069 (_initialize_mcore_tdep): Add gdbarch_register call.
4070
4071 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4072
4073 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4074 frameless_look_for_prologue, such that we actually call this
4075 function.
4076
4077 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4078
4079 * frame.h (frame_address_in_block): New function.
4080
4081 * blockframe.c (frame_address_in_block): New function extracted
4082 from get_frame_block().
4083 (get_frame_block): Use frame_address_in_block().
4084 (block_innermost_frame): Use frame_address_in_block() to match
4085 the frame pc address against the block boundaries rather than
4086 the frame pc directly. This prevents a failure when a frame pc
4087 is actually a return-address pointing immediately after the end
4088 of the given block.
4089
4090 2002-07-02 Grace Sainsbury <graces@redhat.com>
4091
4092 * MAINTAINERS: Add self under write after approval.
4093
4094 2002-07-02 Grace Sainsbury <graces@redhat.com>
4095
4096 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4097 used in architecture vector. The default is
4098 m68k_local_breakpoint_from_pc.
4099 (m68k_local_breakpoint_from_pc): Add.
4100 (enum): Add register numbers from tm-m68k.h.
4101 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4102 vector.
4103 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4104 GDB_MULTI_ARCH_PARTIAL.
4105 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4106 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4107 m68k-tdep.c.
4108 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4109 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4110 to enum in m68k-tdep.c
4111
4112 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4113
4114 * solib-osf.c (open_map): Compute the list of shared libraries
4115 loaded by the inferior, rather than the list of libraries loaded
4116 by GDB itself. Otherwise, GDB ends up reading the symbols from
4117 the wrong shared libraries...
4118
4119 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4120
4121 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4122 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4123 macros.
4124 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4125 Remove functions.
4126 (FRAMELESS_SIGNAL): Remove function.
4127 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4128 i386_linux_saved_pc_after_call): Removed.
4129 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4130 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4131 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4132
4133 * i386-tdep.c (i386_frameless_signal_p): New function.
4134 (i386_frame_chain): Deal with frameless signals.
4135 (i386_sigtramp_saved_sp): New function.
4136 (i386_frame_saved_pc): Deal with frameless signals.
4137 (i386_saved_pc_after_call): Make sure the correct value is
4138 returned just after entry into a sigtramp.
4139 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4140 i386fbsd4_sc_sp_offset): New variables.
4141 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4142 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4143 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4144 similiar to what we already did for sc_pc_offset.
4145 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4146 tdep->sc_sp_offset.
4147
4148 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4149
4150 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4151
4152 * config/i386/tm-x86-64linux.h: New.
4153 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4154 definitions.
4155 * config/i386/nm-x86-64.h: Rename to ...
4156 * config/i386/nm-x86-64linux.h: ... this one.
4157 * config/i386/x86-64linux.mh: Reflect the above change.
4158
4159 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4160
4161 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4162 with sigcontext_addr. Add sc_sp_offset.
4163 (i386bsd_sigtramp_saved_pc): Remove prototype.
4164 (i386bsd_sicontext_addr): Add prototype.
4165 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4166 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4167 (i386_svr4_sigtramp_saved_pc): Removed.
4168 (i386_svr4_sigcontext_addr): New function.
4169 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4170 Initialize tdep->sigcontext_addr instead. Initialize
4171 tdep->sc_pc_offset and tdep->sc_sp_offset.
4172 (i386_gdbarch_init): Likewise.
4173 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4174 any more.
4175 (i386bsd_sigtramp_saved_pc): Remove function.
4176 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4177 Initialize tdep->sigcontext_addr instead. Initialize
4178 tdep->sc_pc_offset.
4179 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4180 of tdep->sigtramp_saved_pc.
4181 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4182 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4183 instead.
4184
4185 * i386-tdep.c (i386_frameless_function_invocation,
4186 i386_frame_num_args, i386_frame_init_saved_regs,
4187 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4188 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4189 i386_extract_return_value, i386_store_return_value,
4190 i386_extract_struct_value_address, i386_register_virtual_type,
4191 i386_register_convertible, i386_register_convert_to_virtual,
4192 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4193 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4194 static.
4195
4196 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4197
4198 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4199
4200 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4201 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4202 this macro. Include "value.h".
4203
4204 2002-06-30 Aidan Skinner <aidan@velvet.net>
4205
4206 * ada-exp.tab.c: remove as it's a generated file
4207 * ada-lex.c: remove as it's a generated file
4208
4209 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4210
4211 * config/i386/tm-i386.h (struct frame_info, struct
4212 frame_saved_regs, struct value, struct type): Remove forward
4213 declarations.
4214
4215 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4216 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4217 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4218 (FILL_FPXREGSET): Define.
4219
4220 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4221
4222 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4223 i[3456]86-*-netbsd* case.
4224 * config/i386/tm-obsd.h: Removed.
4225 * config/i386/obsd.mt: Removed.
4226 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4227 core-aout.o.
4228 (MH_CFLAGS): Add -DYYDEBUG=0.
4229
4230 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4231 i386nbsd_sc_pc_offset on OpenBSD too.
4232
4233 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4234 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4235 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4236 define.
4237 * i386bsd-tdep.c: Include "arch-utils.h".
4238 (i386bsd_aout_in_solib_call_trampoline): New function.
4239 (i386bsd_init_abi): Set in_solib_call_trampoline to
4240 i386bsd_aout_in_solib_call_trampoline.
4241 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4242 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4243
4244 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4245
4246 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4247 (struct obstack, struct bcache): Add opaque declarations.
4248 * Makefile.in (macrotab_h): Update
4249
4250 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4251
4252 * blockframe.c (generic_find_dummy_frame): Change return type to
4253 ``struct regcache''.
4254 (struct dummy_frame): Replace field ``registers'' with regcache, a
4255 struct regcache object.
4256 (generic_find_dummy_frame): Update.
4257 (generic_push_dummy_frame): Update. Use regcache_xfree,
4258 regcache_xmalloc and regcache_cpy.
4259 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4260 regcache_xfree.
4261 (deprecated_generic_find_dummy_frame): Update.
4262 (generic_read_register_dummy): Update. Use
4263 regcache_read_as_address.
4264 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4265 (generic_get_saved_register): Update. Use regcache_read.
4266
4267 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4268
4269 * Makefile.in (objfiles_h): Add $(bcache_h).
4270 * objfiles.h: Include "bcache.h".
4271
4272 * Makefile.in (symtab_h): Remove $(bcache_h).
4273 * symtab.h: Do not include "bcache.h".
4274
4275 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4276
4277 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4278 generic_func_frame_chain_valid.
4279
4280 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4281
4282 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4283 * config/i386/tm-fbsd.h: Likewise.
4284
4285 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4286
4287 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4288 generic_unwind_get_saved_register.
4289
4290 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4291
4292 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4293 * regcache.c (supply_register): Add missing argument to
4294 register_buffer call.
4295
4296 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4297
4298 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4299 Solaris /bin/grep does not not like it. From Peter Schauer.
4300
4301 2002-06-26 Tom Tromey <tromey@redhat.com>
4302
4303 * command.h (add_setshow_cmd): Declare.
4304 (add_setshow_cmd_full): Declare.
4305 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4306 returns void. Use add_setshow_cmd_full.
4307 (add_setshow_cmd_full): New function.
4308 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4309 (add_setshow_boolean_cmd): Likewise.
4310
4311 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4312
4313 * config/vax/tm-vax.h: Protect from multiple inclusion.
4314 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4315 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4316 * config/vax/tm-vaxbsd.h: ...here. New file.
4317 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4318
4319 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4320
4321 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4322 (BELIEVE_PCC_PROMOTION): Remove.
4323 (AP_REGNUM): Move to...
4324 * config/vax/nm-vax.h: ...here.
4325 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4326 (vax_breakpoint_from_pc): New function.
4327 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4328 and gdbarch_believe_pcc_promotion.
4329
4330 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4331
4332 * Makefile.in (vax_tdep_h): Define.
4333 (vax-tdep.o): Use $(vax_tdep_h).
4334 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4335 (vax_dump_tdep): New function.
4336 (_initialize_vax_tdep): Register vax_dump_tdep.
4337 * vax-tdep.h: Include osabi.h.
4338 (struct gdbarch_tdep): New.
4339
4340 2002-06-26 Andrew Cagney <cagney@redhat.com>
4341
4342 * frame.h (deprecated_generic_find_dummy_frame): Rename
4343 generic_find_dummy_frame.
4344 * blockframe.c (generic_find_dummy_frame): Make static.
4345 (deprecated_generic_find_dummy_frame): New function.
4346 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4347 generic_find_dummy_frame with deprecated_find_dummy_frame.
4348 (sh64_nofp_frame_init_saved_regs): Ditto.
4349 (sh_fp_frame_init_saved_regs): Ditto.
4350 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4351 (s390_frame_chain): Ditto.
4352 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4353
4354 2002-06-26 Grace Sainsbury <graces@redhat.com>
4355
4356 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4357 gdbarch vector are at the top.
4358 (NUM_REGS): Remove.
4359 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4360 (FRAME_ARGS_ADDRESS): Remove.
4361 (FRAME_LOCALS_ADDRESS): Remove.
4362 (FRAME_NUM_ARGS): Remove.
4363 (FRAME_ARGS_SKIP): Remove.
4364 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4365 (m68k_gdbarch_init): Add gdbarch initializations for macros
4366 undefined in tm-m68k.h
4367
4368 2002-06-26 Grace Sainsbury <graces@redhat.com>
4369
4370 * monitor.h: Add the function regname to monitor_ops
4371 structure. This way NUM_REGS does not have to be a constant.
4372 * monitor.c (monitor_fetch_register): Added support for regname
4373 function. The function is called if the array regnames is NULL.
4374 (monitor_store_register): Same.
4375 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4376 regnames array.
4377 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4378 cpu32bug_cmds.regname to point to new function.
4379 * abug-rom.c (abug_regname): Same as above.
4380 (init_abug_cmds): Same.
4381 * dbug-rom.c (dbug_regname): Same as above.
4382 (init_dbug_cmds): Same.
4383 * remote-est.c (est_regname): Same.
4384 (init_est_cmds): Same.
4385 * rom68k-rom.c (rom68k_regname): Same.
4386 (init_rom68k_cmds): Same.
4387
4388 2002-06-25 Tom Tromey <tromey@redhat.com>
4389
4390 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4391
4392 2002-06-25 Andrew Cagney <cagney@redhat.com>
4393
4394 * infrun.c (stop_registers): Change variable's type to ``struct
4395 regcache'''.
4396 (xmalloc_inferior_status): Delete function.
4397 (free_inferior_status): Delete function.
4398 (normal_stop): Use regcache_cpy.
4399 (struct inferior_status): Change type of fields ``stop_registers''
4400 and ``registers'' to ``struct regcache''.
4401 (write_inferior_status_register): Use regcache_write.
4402 (save_inferior_status): Instead of calling
4403 xmalloc_inferior_status, allocate the inf_status buffer directly.
4404 Use regcache_dup_no_passthrough and regcache_dup to save the
4405 buffers.
4406 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4407 Replace the stop_registers regcache instead of overriding it. Use
4408 regcache_xfree. Instead of calling free_inferior_status, xfree
4409 the buffer directly.
4410 (discard_inferior_status): Use regcache_xfree. Instead of calling
4411 free_inferior_status, xfree the buffer directly.
4412 (build_infrun): Use regcache_xmalloc.
4413 (_initialize_infrun): Delete redundant call to build_infrun.
4414
4415 * Makefile.in (infcmd.o): Add $(regcache_h).
4416
4417 * infcmd.c: Include "regcache.h".
4418 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4419 obtain the address of `stop_registers' register buffer.
4420 (print_return_value): Ditto.
4421
4422 * inferior.h (struct regcache): Add opaque declaration.
4423 (stop_registers): Change variable's declared type to ``struct
4424 regcache''.
4425
4426 2002-06-24 Tom Tromey <tromey@redhat.com>
4427
4428 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4429 * target.c (initialize_targets): Fixed typo in
4430 trust-readonly-sections `show' documentation.
4431
4432 * main.c: Marked all strings with _().
4433
4434 2002-06-24 Don Howard <dhoward@redhat.com>
4435
4436 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4437 that means max CORE_ADDR+1.
4438 (lookup_mem_region): Ditto.
4439 (mem_info_command): Ditto.
4440
4441 2002-06-24 Grace Sainsbury <graces@redhat.com>
4442
4443 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4444 (REGISTER_BYTES_OK): Remove.
4445 (REGISTER_BYTES): Remove.
4446 (STORE_STRUCT_RETURN): Remove.
4447 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4448 (STORE_RETURN_VALUE): Remove.
4449 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4450 (FRAME_CHAIN): Remove.
4451 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4452 (FRAME_SAVED_PC): Remove.
4453 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4454 (m68k_store_struct_return): Add.
4455 (m68k_deprecated_extract_return_value): Add.
4456 (m68k_deprecated_extract_struct_value_address): Add.
4457 (m68k_store_return_value): Add.
4458 (m68k_frame_chain): Add.
4459 (m68k_frameless_function_invocation): Add.
4460 (m68k_frame_saved_pc): Add.
4461 (m68k_gdbarch_init): added set_gdbarch calls for new
4462 functions and deleted macros.
4463
4464 2002-06-23 Tom Tromey <tromey@redhat.com>
4465
4466 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4467 (ALLDEPFILES): Likewise.
4468 (udiheaders): Removed.
4469 (udip2soc.o): Likewise.
4470 (udi2go32.o): Likewise.
4471 (udr.o): Likewise.
4472 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4473
4474 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4475
4476 * infrun.c (_initialize_infrun): Delete unnecessary call to
4477 build_infrun.
4478
4479 * regcache.h: Update comments describing the regcache_cpy family
4480 of functions.
4481 (regcache_save, regcache_restore): Delete declaration.
4482 (regcache_save_no_passthrough): Delete declaration.
4483 (regcache_restore_no_passthrough): Delete declaration.
4484 * regcache.c (regcache_save): Delete function.
4485 (regcache_save_no_passthrough): Delete function.
4486 (regcache_restore): Delete function.
4487 (regcache_restore_no_passthrough): Delete function.
4488
4489 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4490
4491 * config/m68k/tm-m68k.h: Fix typo.
4492 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4493 (m68k_frame_init_saved_regs): Declare.
4494
4495 2002-06-21 Jim Blandy <jimb@redhat.com>
4496
4497 Remove some vestiges of Harris 88k support.
4498 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4499 register numbering quirk.
4500 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4501 odd symbols occurring in Harris 88k ELF targets.
4502
4503 2002-06-21 Tom Tromey <tromey@redhat.com>
4504
4505 * gdb_locale.h: New file.
4506 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4507 (defs_h): Added gdb_locale.h.
4508 * configure, config.in: Rebuilt.
4509 * configure.in (PACKAGE): Define.
4510 * defs.h: Include gdb_locale.h.
4511 * main.c (captured_main): Call setlocale, bindtextdomain,
4512 textdomain.
4513
4514 2002-06-21 Dave Brolley <brolley@redhat.com>
4515
4516 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4517 * config/frv/frv.mt: New file.
4518 * config/frv/tm-frv.h: New file.
4519 * configure.tgt: Support frv-*-*.
4520 * Makefile.in (frv-tdep.o): New target.
4521 * frv-tdep.c: New file.
4522 * NEWS: Mention frv.
4523
4524 2002-06-21 Dave Brolley <brolley@redhat.com>
4525
4526 * MAINTAINERS: Add self to "Write After Approval" list.
4527
4528 2002-06-21 Grace Sainsbury <graces@redhat.com>
4529
4530 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4531 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4532 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4533 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4534 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4535
4536 * m68k-tdep.c: Include arch-utils.h
4537 (m68k_register_raw_size): Add.
4538 (m68k_register_virtual_size): Add.
4539 (m68k_register_virtual_type): Add.
4540 (m68k_register_name): Add.
4541 (m68k_stack_align): Add.
4542 (m68k_register_byte): Add.
4543 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4544 tm-m68k.h.
4545
4546 2002-06-21 Grace Sainsbury <graces@redhat.com>
4547
4548 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4549 m68k_find_saved_regs.
4550 (m68k_pop_frame): Removed saved_regs structure, and replaced
4551 references to it with frame->saved_regs.
4552 (m68k_gdbarch_init): Added function calls to initialize the
4553 gdbarch structure.
4554 (m68k_fix_call_dummy): Add.
4555 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4556 (CALL_DUMMY): Remove.
4557 (CALL_DUMMY_LENGTH): Remove.
4558 (CALL_DUMMY_START_OFFSET): Remove.
4559 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4560 (FIX_CALL_DUMMY): Remove.
4561 (PUSH_DUMMY_FRAME): Remove.
4562 (POP_FRAME): Remove.
4563
4564 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4565
4566 * parse.c (parse_fprintf): New function used to avoid calls to
4567 fprintf in bison parser generated debug code.
4568 * parser-defs.h: Declaration of new parse_fprintf function.
4569 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4570 Set YYDEBUG to 1 by default.
4571 Set YYFPRINTF as parse_fprintf.
4572
4573 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4574
4575 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4576 encoding anymore.
4577 (pointer_encoding, enum ptr_encoding): New.
4578 (execute_cfa_program): Take care about pointer encoding.
4579 (dwarf2_build_frame_info): Only call parse_frame_info for
4580 .debug_frame and .eh_frame.
4581 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4582 fixed augmentation handling, added relative addressing,
4583 ignore duplicate FDEs. Added comments.
4584 * dwarf2cfi.c: Reindented.
4585
4586 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4587
4588 * event-top.c (command_handler): Don't use space_at_cmd_start
4589 unless there is sbrk() on the host. Assign time and space data
4590 to union fields of the appropriate length.
4591
4592 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4593
4594 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4595 x86_64_register_name. Return type changed to 'const char *'.
4596 (x86_64_register_name2nr): Rename to x86_64_register_number.
4597 (x86_64_gdbarch_init): Update to reflect the change.
4598 * x86-64-tdep.h: Ditto.
4599 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4600 (supply_fpregset): Ditto.
4601
4602 2002-06-19 Andrew Cagney <cagney@redhat.com>
4603
4604 * regcache.h: Update copyright.
4605 (struct regcache, struct gdbarch): Add opaque declarations.
4606 (current_regcache): Declare global variable.
4607 (regcache_read, regcache_write): Add gdbarch parameter.
4608 (regcache_save, regcache_save_no_passthrough)
4609 (regcache_restore, regcache_restore_no_passthrough)
4610 (regcache_dup, regcache_dup_no_passthrough)
4611 (regcache_cpy, regcache_cpy_no_passthrough)
4612 (deprecated_grub_regcache_for_registers)
4613 (deprecated_grub_regcache_for_register_valid)
4614 (regcache_valid_p): Add function declarations.
4615
4616 * regcache.c: Update copyright.
4617 (regcache_descr_handle): New global variable.
4618 (struct regcache_descr): Define.
4619 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4620 (regcache_descr, xfree_regcache_descr): New functions.
4621 (struct regcache): Define.
4622 (regcache_xmalloc, regcache_xfree): New functions.
4623 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4624 (regcache_dup, regcache_dup_no_passthrough): New functions.
4625 (regcache_valid_p, regcache_read_as_address): New functions.
4626 (deprecated_grub_regcache_for_registers): New function.
4627 (deprecated_grub_regcache_for_register_valid): New function.
4628 (current_regcache): New global variable.
4629 (register_buffer): Add regcache parameter. Update calls.
4630 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4631 (read_register_gen, write_register_gen): Update register_buffer
4632 call. Test for legacy_p instead of gdbarch_register_read_p or
4633 gdbarch_register_write_p.
4634 (regcache_collect): Update register_buffer call.
4635 (build_regcache): Rewrite. Use deprecated grub functions.
4636 (regcache_save, regcache_save_no_passthrough): New functions.
4637 (regcache_restore, regcache_restore_no_passthrough): New
4638 functions.
4639 (_initialize_regcache): Create the regcache_data_handle. Swap
4640 current_regcache global variable.
4641
4642 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4643 parameter to regcache_read and regcache_write calls.
4644 (sh4_register_read): Ditto.
4645 (sh64_pseudo_register_read): Ditto.
4646 (sh64_register_read): Ditto.
4647 (sh_pseudo_register_write): Ditto.
4648 (sh4_register_write): Ditto.
4649 (sh64_pseudo_register_write): Ditto.
4650 (sh64_register_write): Ditto.
4651
4652 * defs.h (XCALLOC): Define.
4653
4654 2002-06-19 Grace Sainsbury <graces@redhat.com>
4655
4656 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4657 * m68k-tdep.c (m68k_gdbarch_init): Added.
4658 (m68k_dump_tdep): Added.
4659
4660 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4661
4662 * ada-lang.c (fill_in_ada_prototype): Update comment.
4663
4664 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4665
4666 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4667 MIPS_ABI_LAST.
4668 (mips_abi_string, mips_abi_strings): New.
4669 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4670 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4671 tdep->mips_abi_string. Honor mips_abi_string. Default to
4672 O32 if no ABI is found.
4673 (mips_dump_tdep): Use mips_abi_strings.
4674 (mips_abi_update): New function.
4675 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4676 ``set mips abi'' and ``show mips abi''. Check the size of
4677 mips_abi_strings.
4678
4679 2002-06-19 Andrew Cagney <cagney@redhat.com>
4680
4681 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4682 constant.
4683
4684 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4685
4686 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4687 current frame using only the first stack size adjustment. All
4688 subsequent size adjustments are not considered to be part of
4689 the "static" part of the current frame.
4690 Compute the address of the saved registers relative to the
4691 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4692 in use in this frame.
4693
4694 2002-06-18 Don Howard <dhoward@redhat.com>
4695
4696 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4697 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4698 suggesting this solution.
4699
4700 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4701
4702 * config/romp/xm-rtbsd.h: Delete file.
4703 * config/romp/rtbsd.mh: Delete file.
4704
4705 2002-06-18 Keith Seitz <keiths@redhat.com>
4706
4707 * breakpoint.c (condition_command): Post breakpoint_modify
4708 when a condition is added to an existing breakpoint.
4709 (commands_command): Likewise for commands.
4710 (set_ignore_count): Likewise for ignore counts.
4711 If no tty, do not simply return, still need to send event
4712 notification.
4713 (ignore_command): Only print a newline if the command came
4714 from a tty.
4715 Don't call breakpoints_changed, since this is now properly
4716 handled by set_ignore_count.
4717
4718 2002-06-18 Andrew Cagney <cagney@redhat.com>
4719
4720 * MAINTAINERS: Note that cris-elf target can be compiled with
4721 -Werror.
4722 * cris-tdep.c (cris_register_name): Make return type constant.
4723 (cris_breakpoint_from_pc): Ditto.
4724
4725 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4726
4727 * frame.h (struct frame_info): Change type of context to
4728 'struct context'.
4729
4730 2002-06-17 Andrew Cagney <cagney@redhat.com>
4731
4732 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4733 pointer.
4734 * gdbarch.h, gdbarch.c: Regenerate.
4735 * config/mips/tm-mips.h (mips_register_name): Update.
4736 * i386-tdep.h (i386_register_name): Update.
4737 * mips-tdep.c (mips_register_name): Update
4738 * alpha-tdep.c (alpha_register_name): Update.
4739 * arch-utils.c (legacy_register_name): Update.
4740 * arch-utils.h (legacy_register_name): Update.
4741 * avr-tdep.c (avr_register_name): Update.
4742 * ia64-tdep.c (ia64_register_name): Update.
4743 * i386-tdep.c (i386_register_name): Update.
4744 * sparc-tdep.c (sparc32_register_name): Update.
4745 (sparc64_register_name): Update.
4746 (sparclite_register_name): Update.
4747 (sparclet_register_name): Update.
4748 * sh-tdep.c (sh_generic_register_name): Update.
4749 (sh_sh_register_name): Update.
4750 (sh_sh3_register_name): Update.
4751 (sh_sh3e_register_name): Update.
4752 (sh_sh_dsp_register_name): Update.
4753 (sh_sh3_dsp_register_name): Update.
4754 (sh_sh4_register_name): Update.
4755 (sh_sh64_register_name): Update.
4756 * s390-tdep.c (s390_register_name): Update.
4757 * rs6000-tdep.c (rs6000_register_name): Update.
4758 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4759 (ns32k_register_name_32382): Update.
4760 * d10v-tdep.c (d10v_ts2_register_name): Update.
4761 (d10v_ts3_register_name): Update.
4762 * xstormy16-tdep.c (xstormy16_register_name): Update.
4763 * vax-tdep.c (vax_register_name): Update.
4764 * v850-tdep.c (v850_register_name): Update.
4765 * m68hc11-tdep.c (m68hc11_register_name): Update.
4766 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4767 (am33_register_name): Update.
4768
4769 2002-06-17 Grace Sainsbury <graces@redhat.com>
4770
4771 * m68k-tdep.c: Reindented.
4772
4773 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4774
4775 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4776 list of predefined types.
4777
4778 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4779
4780 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4781 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4782 REGISTER_CONVERT_TO_RAW): Remove defines.
4783 (i386_register_virtual_type, i386_register_convertible,
4784 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4785 Remove prototypes.
4786 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4787 macros mentioned above.
4788
4789 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4790 (i386lynx_saved_pc_after_call): Remove prototype.
4791 * i386ly-tdep.c: Include "i386-tdep.h".
4792 (i386lynx_saved_pc_after_call): Make static. Use
4793 read_memory_nobpt instead of read_memory. Use
4794 read_memory_unsigned_integer instead of read_memory_integer.
4795 (i386lynx_init_abi): New function.
4796 (i386lynx_coff_osabi_sniffer): New function.
4797 (_initialize_i386bsd_tdep): New function.
4798
4799 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4800 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4801 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4802 (i386_fix_call_dummy): Remove prototype.
4803 * i386-tdep.c (i386_call_dummy_words): New variable.
4804 (i386_gdbarch_init): Adjust for removal of the
4805 macros mentioned above.
4806
4807 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4808
4809 * command.h (add_setshow_auto_boolean_cmd): Replace
4810 add_set_auto_boolean_cmd.
4811 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4812 add_set_auto_boolean_cmd.
4813 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4814 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4815 mask-address'' command.
4816 (show_mask_address): Add cmd parameter.
4817 * remote.c (add_packet_config_cmd): Update. Change type of
4818 set_func and show_func to cmd_sfunc_ftype.
4819 (_initialize_remote): Update `set remote Z-packet'
4820 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4821 (show_remote_protocol_e_packet_cmd): Ditto.
4822 (show_remote_protocol_E_packet_cmd): Ditto.
4823 (show_remote_protocol_P_packet_cmd): Ditto.
4824 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4825 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4826 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4827 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4828 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4829 (show_remote_protocol_Z_packet_cmd): Ditto.
4830 (show_remote_protocol_binary_download_cmd): Ditto.
4831 (show_remote_cmd): Pass NULL to all of above.
4832
4833 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4834
4835 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4836 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4837 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4838 POP_FRAME): Remove defines.
4839 (i386_push_arguments, i386_store_struct_return,
4840 i386_extract_return_value, i386_store_return_value,
4841 i386_extract_struct_value_address, i386_push_dummy_frame,
4842 i386_pop_frame): Renove prototypes.
4843 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4844 macros mentioned above.
4845
4846 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4847
4848 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4849 add_set_boolean_cmd.
4850 (add_setshow_cmd): New function.
4851 * command.h (add_setshow_boolean_cmd): Replace
4852 add_set_boolean_cmd.
4853 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4854 and ``set rdiromatzero''.
4855 * maint.c (_initialize_maint_cmds): Update commented out code.
4856 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4857 * target.c (initialize_targets): Update `set
4858 trust-readonly-sections'.
4859 * remote.c (_initialize_remote): Update `set remotebreak'.
4860
4861 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4862
4863 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4864 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4865 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4866 fit into multi-arch framework.
4867 (i386_breakpoint_from_pc): New function.
4868 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4869 above.
4870
4871 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4872 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4873 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4874 (i386_frameless_function_invocation, i386_frame_num_args,
4875 i386_frame_init_saved_regs): Remove prototypes.
4876 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4877 macros mentioned above.
4878
4879 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4880
4881 * cli/cli-decode.c (set_cmd_cfunc): Update.
4882 (set_cmd_sfunc): Update.
4883 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4884 (set_cmd_sfunc, set_cmd_cfunc): Update.
4885 * cli/cli-decode.h: Update.
4886
4887 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4888
4889 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4890 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4891
4892 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4893
4894 * defs.h (auto_boolean): Declare enum.
4895 * command.h (cmd_auto_boolean): Delete enum.
4896 * mips-tdep.c (mask_address_var): Update.
4897 (mips_mask_address_p): Update.
4898 (show_mask_address): Update.
4899 * remote.c (struct packet_config): Update.
4900 (update_packet_config): Update.
4901 (show_packet_config_cmd): Update.
4902 (packet_ok): Update.
4903 (add_packet_config_cmd): Update.
4904 (_initialize_remote):
4905 * command.h: Update.
4906 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4907 (do_setshow_command): Update.
4908 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4909 * cli/cli-decode.h: Update.
4910
4911 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4912
4913 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4914 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4915 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4916 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4917 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4918 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4919
4920 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4921 list of DJGPP COFF targets.
4922
4923 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4924 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4925 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4926 (FP0_REGNUM): Remove define.
4927 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4928 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4929 (i386_register_virtual_size): Remove protoype.
4930 * i386-tdep.c (i386_register_virtual_size): Removed.
4931 (i386_extract_return_value, i386_store_return_value): Use
4932 FP0_REGNUM instead of NUM_FREGS to determine whether the
4933 floating-point registers are available.
4934 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4935 Adjust for removal of macros mentioned above.
4936
4937 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4938
4939 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4940 comments.
4941 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4942 Remove prototypes.
4943 (supply_gregset, fill_gregset): Remove use of register keyword and
4944 remove declaration for regmap. Use I386_NUM_GREGS instead of
4945 NUM_REGS and NUM_FREGS.
4946 (FPREGSET_FSAVE_OFFSET): Remove.
4947 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4948 NUM_FREGS to determine whether the floating-point registers are
4949 available.
4950
4951 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4952 gnu_store_registers): Replace usage of NUM_GREGS with
4953 I386_NUM_GREGS.
4954
4955 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4956 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4957 usage of NUM_GREGS with I386_NUM_GREGS.
4958
4959 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4960
4961 * i386bsd-nat.c: Include "i386-tdep.h".
4962 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4963 I386_NUM_GREGS.
4964
4965 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4966 and associated comment. They no longer make any sense, since we
4967 don't use this file anymore on Linux.
4968
4969 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4970 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4971 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4972 elements in these arrays.
4973 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4974 MAX_NUM_REGS.
4975
4976 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4977
4978 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4979 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4980
4981 2002-06-14 Andrew Cagney <cagney@redhat.com>
4982
4983 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4984 EXTRACT_RETURN_VALUE.
4985 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4986 EXTRACT_STRUCT_VALUE_ADDRESS.
4987 * gdbarch.h, gdbarch.c: Regenerate.
4988
4989 * values.c (value_being_returned): Handle
4990 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4991 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4992
4993 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4994 * arm-tdep.c (arm_gdbarch_init): Update.
4995 * avr-tdep.c (avr_gdbarch_init): Update.
4996 * cris-tdep.c (cris_gdbarch_init): Update.
4997 * d10v-tdep.c (d10v_gdbarch_init): Update.
4998 * ia64-tdep.c (ia64_gdbarch_init): Update.
4999 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5000 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5001 * s390-tdep.c (s390_gdbarch_init): Update.
5002 * sh-tdep.c (sh_gdbarch_init): Update.
5003 * s390-tdep.c (s390_gdbarch_init): Update.
5004 * sparc-tdep.c (sparc_gdbarch_init): Update.
5005 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5006 * v850-tdep.c (v850_gdbarch_init): Update.
5007 * vax-tdep.c (vax_gdbarch_init): Update.
5008 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5010
5011 * config/arc/tm-arc.h: Update.
5012 * config/d30v/tm-d30v.h: Update.
5013 * config/fr30/tm-fr30.h: Update.
5014 * config/h8300/tm-h8300.h: Update.
5015 * config/h8500/tm-h8500.h: Update.
5016 * config/i386/tm-i386.h: Update.
5017 * config/i386/tm-ptx.h: Update.
5018 * config/i386/tm-symmetry.h: Update.
5019 * config/i960/tm-i960.h: Update.
5020 * config/m32r/tm-m32r.h: Update.
5021 * config/m68k/tm-delta68.h: Update.
5022 * config/m68k/tm-linux.h: Update.
5023 * config/m68k/tm-m68k.h: Update.
5024 * config/m88k/tm-m88k.h: Update.
5025 * config/mcore/tm-mcore.h: Update.
5026 * config/mips/tm-mips.h: Update.
5027 * config/mn10200/tm-mn10200.h: Update.
5028 * config/pa/tm-hppa.h: Update.
5029 * config/pa/tm-hppa64.h: Update.
5030 * config/sparc/tm-sp64.h: Update.
5031 * config/sparc/tm-sparc.h: Update.
5032 * config/sparc/tm-sparclet.h: Update.
5033 * config/z8k/tm-z8k.h: Update.
5034
5035 2002-06-14 Andrew Cagney <cagney@redhat.com>
5036
5037 * Makefile.in (i386_linux_tdep_h): Define.
5038 (i386_tdep_h, i387_tdep_h): Define.
5039 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5040 $(i386_tdep_h) and $(i387_tdep_h).
5041 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5042
5043 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5044
5045 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5046 Already covered by the default.
5047
5048 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5049 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5050 (i386_gdbarch_init): Initialize long_double_format and long_double
5051 bit.
5052
5053 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5054 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5055 Move these to ...
5056 * config/i386/i386sol2.mh: ... here.
5057 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5058 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5059 (SIGCONTEXT_PC_OFFSET): Remove define.
5060 (IN_SIGTRAMP): Remove define.
5061 * i386-sol2-tdep.c: New file.
5062
5063 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5064 * config/i386/tm-i386nw.h: Removed.
5065
5066 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5067 USE_STRUCT_CONVENTION): Remove defines.
5068 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5069 (get_longjmp_target): Remove prototype.
5070 (IN_SIGTRAMP): Remove define.
5071 (i386bsd_in_sigtramp): Remove prototype.
5072 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5073 function. Update comment accordingly
5074 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5075 (FRAME_SAVED_PC): Remove define.
5076 (i386bsd_frame_saved_pc): Remove prototype.
5077 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5078 GET_LONGJMP_TARGET): Remove defines.
5079 (get_longjmp_target): Remove prototype.
5080 (IN_SIGTRAMP): Remove define.
5081 (i386bsd_in_sigtramp): Remove prototype.
5082 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5083 function. Update comment accordingly
5084 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5085 (FRAME_SAVED_PC): Remove define.
5086 (i386bsd_frame_saved_pc): Remove prototype.
5087 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5088 Remove prototype.
5089 (USE_STRUCT_CONVENTION): Remove prototype.
5090 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5091 declaration.
5092 (_initialize_i386bsd_nat): Revise logic to determine some
5093 constants at compile time when compiling a native GDB. Warn if
5094 things don't match up with what we expect.
5095 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5096 Remove variables.
5097 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5098 to use date stored in `struct gdbarch_tdep'.
5099 (i386bsd_sigcontext_offset): Remove varaible.
5100 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5101 stored in `struct gdbarch_tdep'.
5102 (i386bsd_frame_saved_pc): Make static.
5103 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5104 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5105 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5106 i386fbsd4_sc_pc_offset): New variables.
5107 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5108 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5109 functions.
5110 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5111 functions.
5112 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5113 Modify the value of i386fbsd_sigtramp_start and
5114 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5115 i386fbsd_sigtramp_end.
5116 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5117 function.
5118
5119 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5120 define to i386-linux-tdep.h.
5121 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5122 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5123 defines.
5124 (i386_linux_register_name, i386_linux_register_byte,
5125 i386_linux_register_raw_size): Remove prototypes.
5126 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5127 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5128 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5129 TARGET_WRITE_PC): Remove defines.
5130 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5131 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5132 i386_linux_write_pc): Remove prototypes.
5133 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5134 (get_longjmp_target): Remove prototype.
5135 * i386-linux-tdep.h: New file.
5136 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5137 * i386-linux-tdep.c: Include "i386-tdep.h" and
5138 "i386-linux-tdep.h".
5139 (i386_linux_register_name, i386_linux_register_byte,
5140 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5141 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5142 Make static.
5143 (i386_linux_init_abi): New function.
5144 (_initialize_i386_linux_tdep): New function.
5145
5146 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5147 (i386_saved_pc_after_call): Remove prototype.
5148 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5149 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5150 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5151 (i386_register_name, i386_stab_reg_to_regnum,
5152 i386_dwarf_reg_to_regnum): Remove prototypes.
5153 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5154 SIZEOF_SSE_REGS): Remove defines.
5155 (REGISTER_BYTES): Remove define.
5156 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5157 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5158 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5159 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5160 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5161 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5162 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5163 (get_longjmp_target): Remove prototype.
5164 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5165 (sigtramp_saved_pc): Remove define.
5166 (i386v4_sigtramp_saved_pc): Remove prototype.
5167 * config/i386/tm-go32.h (FRAME_CHAIN,
5168 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5169 (i386go32_frame_saved_pc): Remove prototype.
5170 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5171 (get_longjmp_target): Remove prototype.
5172 * i386-tdep.h: Include "osabi.h".
5173 (enum i386_abi): Removed.
5174 (enum struct_return): New enum.
5175 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5176 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5177 sc_pc_offset members.
5178 (i386_gdbarch_register_os_abi): Remove prototype.
5179 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5180 I386_SSE_NUM_REGS): New defines.
5181 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5182 I386_SSE_SIZEOF_REGS): New defines.
5183 (i386_register_name, i386_register_byte, i386_register_raw_size):
5184 New prototypes.
5185 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5186 (i386bsd_sigtramp_saved_pc): New prototype.
5187 * i386-tdep.c: Don't include "elf-bfd.h".
5188 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5189 i386_frame_chain, i386_saved_pc_after_call): Make static.
5190 (i386_frame_saved_pc): Rewrite to call architecture dependent
5191 function to deal with signal handlers. Make static.
5192 (i386go32_frame_saved_pc): Removed.
5193 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5194 Removed.
5195 (i386_get_longjmp_target): New function.
5196 (default_struct_convention, pcc_struct_convention,
5197 reg_struct_convention, valid_conventions, struct_convention): New
5198 variables.
5199 (i386_use_struct_convention): New function.
5200 (i386v4_sigtramp_saved_pc): Renamed to
5201 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5202 (i386_pc_in_sigtramp): New function.
5203 (i386_abi_names): Removed.
5204 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5205 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5206 Removed.
5207 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5208 i386_gdbarch_register_os_abi): Removed.
5209 (struct i386_abi_handler): Removed.
5210 (i386_abi_handler_list): Removed.
5211 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5212 functions.
5213 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5214 i386_nw_init_abi): New functions.
5215 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5216 Use set_gdbarch_xxx() calls instead of relying on macros for a
5217 number of calls.
5218 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5219 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5220 Register the various architecture variants defined in this file.
5221
5222 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5223
5224 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5225 (struct main_type): Remove arg_types member. Update comments for
5226 struct field.
5227 (TYPE_ARG_TYPES): Remove.
5228 (TYPE_FN_FIELD_ARGS): Update.
5229 (smash_to_method_type): Update prototype.
5230
5231 * c-typeprint.c (cp_type_print_method_args): Take method type
5232 instead of argument list. Use new argument layout. Simplify.
5233 (c_type_print_args): Use new argument layout. Simplify.
5234 (c_type_print_base): Update call to cp_type_print_method_args.
5235 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5236 argument; use die->type instead. Update call to
5237 smash_to_method_type.
5238 (read_structure_scope): Update call to dwarf2_add_member_fn.
5239 * gdbtypes.c (allocate_stub_method): Update comment.
5240 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5241 Use new argument layout.
5242 (check_stub_method): Use new argument layout. Don't count
5243 void as an argument.
5244 (print_arg_types): Update comments. Use new argument layout.
5245 (recursive_dump_type): Don't print arg_types member.
5246 * hpread.c (hpread_read_struct_type): Use new argument layout.
5247 (fixup_class_method_type): Likewise.
5248 (hpread_type_lookup): Likewise.
5249 * stabsread.c (read_type): Update calls to read_args and
5250 smash_to_method_type.
5251 (read_args): Use new argument layout. Simplify.
5252 * valops.c (typecmp): Use new argument layout. Update parameters
5253 and comments. Simplify.
5254 (hand_function_call): Use new argument layout.
5255 (search_struct_method): Update call to typecmp.
5256 (find_overload_match): Use new argument layout.
5257
5258 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5259
5260 * NEWS: Mention multithreaded debug support for gdbserver.
5261
5262 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5263
5264 * MAINTAINERS: Mention NEWS.
5265
5266 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5267
5268 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5269 (struct mips_objfile_private, compare_pdr_entries): New.
5270 (non_heuristic_proc_desc): Read the ".pdr" section if it
5271 is present.
5272
5273 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5274
5275 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5276 (arm_debug): New static variable.
5277 (_initialize_arm_tdep): Add ``set debug arm'' command.
5278
5279 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5280
5281 * Makefile.in (sim_arm_h): Define.
5282 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5283 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5284 (arm_register_sim_regno): New function, map an internal REGNUM
5285 onto a simulator register number.
5286 (arm_gdbarch_init): Set register_sim_regno.
5287
5288 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5289
5290 * MAINTAINERS: Add self.
5291
5292 2002-06-11 Jim Blandy <jimb@redhat.com>
5293
5294 * source.c (source_info): Mention whether the symtab has
5295 information about preprocessor macros.
5296
5297 Call the command `info macro', not `show macro'.
5298 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5299 Fix error message.
5300 (_initialize_macrocmd): Register `info_macro_command' in
5301 `infolist', not `showlist'.
5302
5303 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5304
5305 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5306 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5307 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5308 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5309 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5310 unconditionally.
5311 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5312 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5313 (_initialize_mips_tdep): Remove dead code.
5314 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5315 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5316 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5317 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5318 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5319 MIPS_LAST_FP_ARG_REGNUM): Remove.
5320
5321 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5322
5323 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5324 (unwind_tmp_obstack_free, parse_frame_info)
5325 (update_context, cfi_read_fp, cfi_write_fp)
5326 (cfi_frame_chain, cfi_init_extra_frame_info)
5327 (cfi_virtual_frame_pointer): Use the above function.
5328 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5329
5330 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5331
5332 * v850-tdep.c (v850_type_is_scalar): New function.
5333 (v850_use_struct_convention): Match current gcc implementation
5334 as close as possible.
5335 (v850_push_arguments): Fix stack_offset handling. Don't write
5336 struct_addr into register. This is done by v850_store_struct_return.
5337 (v850_extract_return_value): Care for structs.
5338 (v850_store_return_value): Ditto.
5339 (v850_store_struct_return): Actually write address.
5340
5341 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5342
5343 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5344 without debug information too.
5345
5346 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5347
5348 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5349 Make multi-arch pure.
5350 * gdbarch.h, gdbarch.c: Re-generate.
5351 * arm-tdep.c (arm_print_float_info): Update.
5352 * arch-utils.h (default_print_float_info): Update.
5353 * arch-utils.c (default_print_float_info): Update.
5354 * infcmd.c (float_info): Update call.
5355
5356 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5357
5358 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5359 the front of the initialize list.
5360
5361 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5362
5363 * infrun.c (struct inferior_status): Replace fields
5364 selected_frame_address and selected_level with field
5365 selected_frame_id.
5366 (save_inferior_status): Update. Use get_frame_id.
5367 (struct restore_selected_frame_args): Delete.
5368 (restore_selected_frame): Update. Use frame_find_by_id.
5369 (restore_inferior_status): Update.
5370
5371 * breakpoint.h (struct breakpoint): Change type of
5372 watchpoint_frame to frame_id.
5373 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5374 call to get_current_frame.
5375 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5376 get_current_frame.
5377 (watchpoint_check): Use frame_find_by_id.
5378
5379 * frame.h (record_selected_frame): Delete declaration.
5380 * stack.c (record_selected_frame): Delete function.
5381
5382 * frame.h (struct frame_id): Define.
5383 (get_frame_id): Declare.
5384 (frame_find_by_id): Declare.
5385 * frame.c (frame_find_by_id): New function.
5386 (get_frame_id): New function.
5387
5388 2002-06-10 Andrey Volkov <avolkov@transas.com>
5389
5390 * ser-e7kpc.c: Fix duplicated define and call of
5391 _initialize_ser_e7000pc
5392
5393 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5394
5395 * signals/signals.c (target_signal_from_host): Fix #ifdef
5396 SIGRTMIN case.
5397 (do_target_signal_to_host): Likewise.
5398
5399 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5400
5401 * mips-tdep.c (mips_find_abi_section): New function.
5402 (mips_gdbarch_init): Call it.
5403
5404 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5405
5406 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5407 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5408 after Andrew's 2002-06-08 gdbarch change.
5409
5410 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5411
5412 * i386-linux-nat.c (suppy_gregset): Don't supply
5413 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5414 register cache.
5415 (fill_gregset): Don't fetch it under the same circumstances.
5416
5417 2002-06-09 Andrew Cagney <cagney@redhat.com>
5418
5419 * Makefile.in (callback_h): Define.
5420 (remote_sim_h): Update path to remote-sim.h.
5421 (remote-rdp.o): Add $(callback_h).
5422 (remote-sim.o): Use $(callback_h).
5423 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5424 * remote-rdp.c: Include "gdb/callback.h".
5425
5426 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5427
5428 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5429 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5430
5431 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5432
5433 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5434 * rdi-share/serpardr.c: Ditto.
5435 * rdi-share/unixcomm.c: Ditto.
5436 * rdi-share/serdrv.c: Ditto.
5437 * rdi-share/hostchan.h: Ditto.
5438 * rdi-share/hostchan.c: Ditto.
5439 * rdi-share/host.h: Ditto.
5440 * rdi-share/devsw.c: Ditto.
5441
5442 * objfiles.h: Change type of obj_private to void pointer.
5443 * pa64solib.c: Update copyright. Don't include "assert.h", use
5444 strcmp instead of STREQ, use LONGEST, do not use PTR
5445 * somsolib.c: Ditto.
5446
5447 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5448 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5449 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5450
5451 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5452
5453 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5454 (default_get_saved_register): Delete function.
5455 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5456 generic_unwind_get_saved_register.
5457 * gdbarch.h, gdbarch.c: Re-generate.
5458
5459 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5460
5461 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5462 generic_func_frame_chain_valid.
5463 * gdbarch.h, gdbarch.c: Re-generate.
5464 * blockframe.c (generic_func_frame_chain_valid): Only check
5465 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5466 passing FP to PC_IN_CALL_DUMMY.
5467 Fix PR gdb/360.
5468
5469 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5470
5471 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5472 (register_gdbarch_data): Initialize init_p.
5473 (gdbarch_data): Initialize data pointer using the init function.
5474 (init_gdbarch_data): Delete function.
5475 (gdbarch_update_p): Update.
5476 (initialize_non_multiarch): Update.
5477 (struct gdbarch): Add field initialized_p.
5478 * gdbarch.h, gdbarch.c: Re-generate.
5479
5480 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5481
5482 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5483 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5484 better do the things actually here.
5485 * x86-64-tdep.c (x86_64_register_name2nr): New.
5486 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5487 (x86_64_gdbarch_init): Respect the above change.
5488 * x86-64-tdep.h (x86_64_register_name2nr)
5489 (x86_64_register_nr2name): Add prototypes.
5490 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5491
5492 2002-06-06 Michael Snyder <msnyder@redhat.com>
5493
5494 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5495 Delete extra braces and re-indent.
5496 (d10v_store_return_value): Char return values
5497 must be shifted over by one byte in R0.
5498 (d10v_extract_return_value): Delete extra braces, re-indent.
5499
5500 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5501
5502 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5503 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5504 (d10v_integer_to_address): Rewrite.
5505 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5506 the d10v specific functions which take care of converting to the
5507 correct space.
5508
5509 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5510
5511 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5512 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5513
5514 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5515
5516 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5517 includes.
5518 * config/tm-linux.h: Ditto.
5519 * config/alpha/tm-alphalinux.h: Ditto.
5520 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5521 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5522 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5523 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5524 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5525 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5526 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5527 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5528 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5529 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5530 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5531 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5532 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5533 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5534 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5535 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5536 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5537 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5538 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5539 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5540 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5541 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5542 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5543 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5544 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5545 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5546 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5547 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5548 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5549 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5550 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5551 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5552 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5553 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5554 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5555 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5556 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5557
5558 2002-05-04 Aidan Skinner <aidan@velvet.net>
5559
5560 * ada-exp.tab.c: New file
5561 * ada-exp.y: New file
5562 * ada-lang.c: New file
5563 * ada-lang.h: New file
5564 * ada-lex.c: New file
5565 * ada-lex.l: New file
5566 * ada-tasks.c: New file
5567 * ada-typeprint.c: New file
5568 * ada-valprint.c: New file
5569
5570 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5571
5572 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5573 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5574
5575 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5576
5577 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5578 insetead of ppc-linux-tdep.o.
5579 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5580 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5581
5582 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5583
5584 2002-05-07 Christian Groessler <chris@groessler.org>
5585 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5586 bit register contents for little endian hosts.
5587
5588 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5589
5590 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5591 any maintainer.
5592
5593 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5594
5595 * gdbarch.h: Regenerate.
5596
5597 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5598
5599 * MAINTAINERS: Add everyone to write-after-approval list.
5600
5601 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5602
5603 * stack.c (frame_info): Use frame_register_unwind instead of
5604 saved_regs. Mention when the SP is on the stack or in a register.
5605
5606 * frame.h (frame_register_unwind_ftype): Define. Document.
5607 (struct frame_info): Add field register_unwind and
5608 register_unwind_cache.
5609 (frame_register_unwind): Declare.
5610 (generic_unwind_get_saved_register): Declare.
5611
5612 * frame.c (frame_register_unwind): New function.
5613 (generic_unwind_get_saved_register): New function.
5614
5615 * blockframe.c (generic_call_dummy_register_unwind): New function.
5616 (frame_saved_regs_register_unwind): New function.
5617 (set_unwind_by_pc): New function.
5618 (create_new_frame): New function.
5619 (get_prev_frame): New function.
5620
5621 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5622
5623 * a29k-share/: Delete directory.
5624 * remote-vx29k.c: Delete file.
5625
5626 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5627
5628 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5629 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5630
5631 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5632
5633 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5634 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5635 (sparc64nbsd-nat.o)
5636 (sparcnbsd-nat.o)
5637 (sparcnbsd-tdep.o): New dependency lists.
5638 * NEWS: Note new UltraSPARC NetBSD native configuration.
5639 * configure.host (sparc64-*-netbsd*): New host.
5640 * configure.tgt (sparc-*-netbsdelf*)
5641 (sparc-*-netbsd*): Set gdb_target to nbsd.
5642 (sparc64-*-netbsd*): New target.
5643 * sparc64nbsd-nat.c: New file.
5644 * sparcnbsd-nat.c: New file.
5645 * sparcnbsd-tdep.c: New file.
5646 * sparcnbsd-tdep.h: New file.
5647 * config/sparc/nbsd.mt: New file.
5648 * config/sparc/nbsd64.mh: New file.
5649 * config/sparc/nbsd64.mt: New file.
5650 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5651 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5652 (HOST_IPC): Remove.
5653 * config/sparc/nbsdaout.mt: Remove.
5654 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5655 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5656 (HOST_IPC): Remove.
5657 * config/sparc/nbsdelf.mt: Remove.
5658 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5659 sparc-nat.c compatiblity defines.
5660 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5661 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5662 * config/sparc/tm-nbsd64.h: New file.
5663 * config/sparc/tm-nbsdaout.h: Remove.
5664 * config/sparc/xm-nbsd.h: Remove.
5665
5666 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5667
5668 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5669 * sparc-tdep.c: Include osabi.h.
5670 (gdbarch_tdep): Add osabi member.
5671 (_initialize_sparc_tdep): Use gdbarch_register.
5672 (sparc_gdbarch_init): Use generic OS ABI framework.
5673 (sparc_dump_tdep): New function.
5674
5675 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5676
5677 * corefile.c (do_captured_read_memory_integer): Return non-zero
5678 result.
5679 (safe_read_memory_integer): Copy result of memory read when
5680 status is non-zero. Also, add comments.
5681
5682 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5683
5684 * Makefile.in (ppc_tdep_h): Define.
5685 (ppc-linux-nat.o)
5686 (ppc-linux-tdep.o)
5687 (rs6000-tdep.o): Use $(ppc_tdep_h).
5688 (ppc-sysv-tdep.o)
5689 (ppcnbsd-nat.o)
5690 (ppcnbsd-tdep.o): New dependency lists.
5691 * ppc-tdep.h: Use generic OS ABI framework.
5692 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5693 (ppc_linux_init_abi): New functions.
5694 (ppc_sysv_abi_broken_use_struct_convention)
5695 (ppc_sysv_abi_use_struct_convention)
5696 (ppc_sysv_abi_push_arguments): Move to...
5697 * ppc-sysv-tdep.c: ...here.
5698 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5699 * rs6000-tdep.c (process_note_abi_tag_sections)
5700 (get_elfosabi): Remove.
5701 (rs6000_gdbarch_init): Use generic OS ABI framework.
5702 (rs6000_dump_tdep): New function.
5703 (_initialize_rs6000_tdep): Use gdbarch_register.
5704 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5705 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5706 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5707 of ppc-linux-tdep.o.
5708 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5709 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5710 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5711 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5712 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5713 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5714
5715 2002-05-29 Jim Blandy <jimb@redhat.com>
5716
5717 * macroscope.c (default_macro_scope): Put `void' in empty argument
5718 list.
5719
5720 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5721
5722 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5723 * arch-utils.c: Include "sim-regno.h".
5724 * gdbarch.sh: Don't include "sim-regno.h".
5725 * gdbarch.h, gdbarch.c: Regenerate.
5726 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5727 here.
5728 * arch-utils.h (legacy_register_sim_regno): To here.
5729 * remote-sim.c (legacy_register_sim_regno): Move function from
5730 here.
5731 * arch-utils.c (legacy_register_sim_regno): To here.
5732
5733 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5734
5735 * sim-regno.h: New file.
5736 * Makefile.in (sim_regno_h): Define.
5737 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5738 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5739 (legacy_register_sim_regno): New function.
5740 (one2one_register_sim_regno): New function.
5741 (gdbsim_fetch_register): Rewrite.
5742 (gdbsim_store_register): Only store a register when
5743 REGISTER_SIM_REGNO is valid.
5744 * d10v-tdep.c: Include "sim-regno.h".
5745 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5746 (d10v_ts3_register_sim_regno): Ditto.
5747 * gdbarch.sh: Include "sim-regno.h".
5748 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5749 * gdbarch.h, gdbarch.c: Regenerate.
5750 * arch-utils.h (default_register_sim_regno): Delete declaration.
5751 * arch-utils.c (default_register_sim_regno): Delete function.
5752
5753 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5754
5755 * ppcnbsd-nat.c: Rewrite.
5756 * ppcnbsd-tdep.c: New file.
5757 * ppcnbsd-tdep.h: New file.
5758 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5759 solib.o, and solib-svr4.o.
5760 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5761 nbsd-tdep.o, and corelow.o.
5762
5763 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5764
5765 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5766 `tr' and `sed'. Mention that `broken' targets are not expected to
5767 build.
5768
5769 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5770
5771 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5772 Let PC point right after the prologue before looking up symbols.
5773
5774 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5775
5776 * i386-tdep.c (i386_register_virtual_type): Return
5777 builtin_type_vec128i for SSE registers.
5778
5779 * gdbtypes.h (builtin_type_vec128i): Declare.
5780
5781 * gdbtypes.c (build_builtin_type_vec128i): New function.
5782 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5783 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5784 (build_gdbtypes): Initialize new builtin vector types.
5785 (_initialize_gdbtypes): Register new vector types with gdbarch.
5786
5787 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5788
5789 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5790 since it has been multi-arch'd.
5791 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5792 Move Alpha and VAX multi-arch news entries to same section
5793 as other multi-arch news.
5794
5795 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5796
5797 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5798 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5799 static. Rename some register numbers to put them in ns32k-tdep
5800 private namespace.
5801 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5802 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5803 functions.
5804 (_initialize_ns32k_tdep): Use gdbarch_register.
5805 * ns32k-tdep.h: New file.
5806 * ns32knbsd-tdep.c: New file.
5807 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5808 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5809 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5810 REGISTER_BYTES, REGISTER_BYTE): Remove.
5811 * config/ns32k/tm-ns32k.h: New file.
5812 * config/ns32k/tm-umax.h: Remove.
5813
5814 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5815
5816 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5817 ns32k_store_struct_return, ns32k_extract_return_value,
5818 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5819 functions.
5820 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5821 ns32k_saved_pc_after_call.
5822 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5823 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5824 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5825 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5826 ns32k_extract_struct_value_address.
5827
5828 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5829
5830 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5831 ns32k_fix_call_dummy): New.
5832 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5833 ns32k_call_dummy_words.
5834 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5835 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5836 CALL_DUMMY_NARGS): Remove.
5837 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5838
5839 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5840
5841 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5842 ns32k_frame_saved_pc, ns32k_frame_args_address,
5843 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5844 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5845 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5846 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5847 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5848 (BREAKPOINT): Remove..
5849 (FRAME_CHAIN): Define as ns32k_frame_chain.
5850 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5851 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5852 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5853 (FRAME_FIND_SAVED_REGS): Remove.
5854 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5855 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5856 (POP_FRAME): Define as ns32k_pop_frame.
5857
5858 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5859
5860 * ns32k-tdep.c (ns32k_register_byte_32082,
5861 ns32k_register_byte_32382, ns32k_register_raw_size,
5862 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5863 functions.
5864 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5865 ns32k_register_byte_32382.
5866 * config/ns32k/tm-umax.h: Update copyright years.
5867 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5868 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5869 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5870 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5871 (ns32k_get_enter_addr): Fix prototype.
5872
5873 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5874
5875 * ns32k-tdep.c: Update copyright years.
5876 (ns32k_register_name_32082): New function.
5877 (ns32k_register_name_32382): Ditto.
5878 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5879 (REGISTER_NAME): Define as ns32k_register_name_32382.
5880 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5881 (REGISTER_NAME): Define as ns32k_register_name_32082.
5882
5883 2002-05-24 Jim Blandy <jimb@redhat.com>
5884
5885 * dwarf2read.c (free_line_header): Use xfree, not free.
5886
5887 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5888
5889 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5890 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5891
5892 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5893
5894 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5895
5896 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5897
5898 From Ross Alexander at NEC Europe:
5899 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5900
5901 2002-05-23 Michael Snyder <msnyder@redhat.com>
5902
5903 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5904 for input, rather than parse_and_eval_address.
5905
5906 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5907
5908 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5909 * Makefile.in (sim_d10v_h): Update definition.
5910
5911 2002-05-24 Andrew Cagney <cagney@redhat.com>
5912
5913 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5914 change `2002-05-22 Michael Snyder' below.
5915 (d10v_push_arguments): Ditto.
5916 (d10v_extract_return_value): Ditto.
5917
5918 2002-05-23 Jim Blandy <jimb@redhat.com>
5919
5920 * macrotab.c (check_for_redefinition): Don't complain if the new
5921 definition is the same as the previous one. Take more arguments
5922 to allow the comparison.
5923 (macro_define_object, macro_define_function): Pass more arguments
5924 to check_for_redefinition.
5925
5926 2002-05-22 Michael Snyder <msnyder@redhat.com>
5927
5928 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5929 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5930 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5931 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5932 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5933 Add a temp variable to save a call (and a memory read).
5934 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5935 if possible (so that PC_IN_CALL_DUMMY will work).
5936
5937 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5938
5939 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5940
5941 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5942
5943 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5944 fde->cie_ptr.
5945 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5946 (dwarf2_build_frame_info): Add offset to fde->initial_location
5947 so that frames of shared libraries are mapped correctly.
5948 (execute_stack_op): Change type of 'result' from ULONGEST to
5949 CORE_ADDR.
5950
5951 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5952
5953 * config/alpha/tm-nbsd.h: Include solib.h.
5954
5955 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5956
5957 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5958 assumptions about the host's byte order.
5959
5960 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5961
5962 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5963 to dependency list.
5964 * alphanbsd-tdep.c: Include solib-svr4.h.
5965 * shnbsd-tdep.c: Ditto.
5966
5967 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5968
5969 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5970 nbsd-tdep.h to dependency list.
5971 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5972 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5973 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5974 nbsdaout.mh and nbsdelf.mh consistently.
5975 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5976 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5977 nbsdaout.mt and nbsdelf.mh consistently.
5978 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5979 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5980 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5981 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5982 a.out shared library stuff from here...
5983 * config/nm-nbsdaout.h: ...to here.
5984 * config/tm-nbsd.h: Remove.
5985 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5986 * config/arm/nbsd.mh: Remove.
5987 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5988 nbsd-tdep.o.
5989 * config/arm/nbsdaout.mh: New file.
5990 * config/arm/nbsdelf.mh: New file.
5991 * config/arm/nm-nbsdaout.h: New file.
5992 * config/i386/nbsd.mh: Remove.
5993 * config/i386/nbsd.mt: Remove.
5994 * config/i386/nbsdaout.mh: New file.
5995 * config/i386/nbsdaout.mt: New file.
5996 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5997 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5998 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5999 i386_register_u_addr): Remove.
6000 * config/i386/nm-nbsdaout.h: New file.
6001 * config/i386/nm-nbsdelf.h: Remove.
6002 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6003 (USE_STRUCT_CONVENTION): Remove.
6004 * config/i386/tm-nbsdaout.h: New file.
6005 * config/i386/tm-nbsdelf.h: Remove.
6006 * config/m68k/nbsd.mh: Remove.
6007 * config/m68k/nbsd.mt: Remove.
6008 * config/m68k/nbsdaout.mh: New file.
6009 * config/m68k/nbsdaout.mt: New file.
6010 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6011 * config/m68k/nm-nbsdaout.h: New file.
6012 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6013 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6014 * config/ns32k/nbsd.mh: Remove.
6015 * config/ns32k/nbsd.mt: Remove.
6016 * config/ns32k/nbsdaout.mh: New file.
6017 * config/ns32k/nbsdaout.mt: New file.
6018 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6019 * config/ns32k/nm-nbsdaout.h: New file.
6020 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6021 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6022 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6023 (SVR4_SHARED_LIBS): Remove.
6024 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6025 * config/sparc/nbsd.mh: Remove.
6026 * config/sparc/nbsd.mt: Remove.
6027 * config/sparc/nbsdaout.mh: New file.
6028 * config/sparc/nbsdaout.mt: New file.
6029 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6030 * config/sparc/nbsdelf.mt: New file.
6031 * config/sparc/nm-nbsdaout.h: New file.
6032 * config/sparc/nm-nbsdelf.h: Remove.
6033 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6034 * config/sparc/tm-nbsdaout.h: New file.
6035
6036 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6037
6038 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6039 mipsnbsd-tdep.c
6040 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6041
6042 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6043
6044 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6045 shnbsd-nat.c.
6046 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6047
6048 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6049
6050 * NEWS: Note new MIPS NetBSD native configuration.
6051 * configure.host (mips*-*-netbsd*): New host.
6052 * configure.tgt (mips*-*-netbsd*): New target.
6053 * mipsnbsd-nat.c: New file.
6054 * mipsnbsd-tdep.c: New file.
6055 * mipsnbsd-tdep.h: New file.
6056 * config/mips/nbsd.mh: New file.
6057 * config/mips/nbsd.mt: New file.
6058 * config/mips/nm-nbsd.h: New file.
6059 * config/mips/tm-nbsd.h: New file.
6060
6061 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6062
6063 * Makefile.in (SFILES): Add osabi.c.
6064 (COMMON_OBS): Add osabi.o.
6065 (osabi.o): New dependency list.
6066 * osabi.c: New file.
6067 * osabi.h: New file.
6068 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6069
6070 * Makefile.in (alpha_tdep_h): Define and use instead of
6071 alpha-tdep.h.
6072 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6073 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6074 Remove.
6075 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6076 * alpha-tdep.h: Include osabi.h.
6077 (alpha_abi): Remove.
6078 (gdbarch_tdep): Use generic OS ABI framework.
6079 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6080 gdbarch_register_osabi.
6081 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6082 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6083 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6084
6085 * Makefile.in (sh_tdep_h): Add osabi.h.
6086 * sh-tdep.h (sh_osabi): Remove.
6087 (gdbarch_tdep): Use generic OS ABI framework.
6088 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6089 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6090 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6091 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6092
6093 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6094 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6095 gdbarch_register_osabi.
6096 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6097 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6098 (get_elfosabi): Rename to...
6099 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6100 ABI framework support routines.
6101 (arm_gdbarch_init): Use generic OS ABI framework.
6102 (arm_dump_tdep): Likewise.
6103 (_initialize_arm_tdep): Likewise.
6104 * arm-tdep.h: Include osabi.h.
6105 (arm_abi): Remove.
6106 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6107 osabi member.
6108 (arm_gdbarch_register_os_abi): Remove prototype.
6109 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6110 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6111
6112 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6113 * mips-tdep.c: Include osabi.h.
6114 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6115 OS ABI framework.
6116
6117 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6118
6119 * h8300-tdep.c: Fix formatting.
6120
6121 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6122
6123 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6124 printing vector registers.
6125
6126 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6127
6128 From Fernando Nasser:
6129 * remote.c (remote_async_open_1): Re-throw the exception when the
6130 connection fails.
6131 (remote_cisco_open): Ditto.
6132 (remote_open_1): Ditto.
6133
6134 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6135
6136 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6137 (remote_start_remote): Add uiout parameter. Pass through to
6138 remote_start_remote_dummy.
6139 (remote_open_1): Use catch_exception instead of catch_errors.
6140 (remote_async_open_1): Ditto.
6141 (remote_cisco_open): Ditto.
6142
6143 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6144
6145 * remote.c (remote_start_remote): Replace PTR with void pointer.
6146 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6147 static.
6148
6149 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6150
6151 * gdb_indent.sh: Allow the script to be run in the sim directory.
6152
6153 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6154
6155 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6156 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6157
6158 * corelow.c (core_open): Only call set_gdbarch_from_file if
6159 exec_bfd is NULL.
6160
6161 2002-05-17 Andrey Volkov <avolkov@transas.com>
6162
6163 * h8300-tdep.c: Add support of EXR register
6164 * config/h8300/tm-h8300.h: Ditto.
6165
6166 2002-05-17 Andrey Volkov <avolkov@transas.com>
6167
6168 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6169
6170 2002-05-17 Andrey Volkov <avolkov@transas.com>
6171
6172 * h8300-tdep.c: Change literal regnums to REGNO.
6173
6174 2002-05-17 Jim Blandy <jimb@redhat.com>
6175
6176 * NEWS: Note addition of macro support.
6177
6178 Expand preprocessor macros in C expressions.
6179 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6180 (scan_macro_expansion, scanning_macro_expansion,
6181 finished_macro_expansion): New function declarations.
6182 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6183 variable declarations.
6184 * parser-defs.h (expression_context_pc): New declaration.
6185 * parse.c (expression_context_pc): New variable.
6186 (parse_exp_1): Set expression_context_pc, as well as
6187 expression_context_block.
6188 * c-exp.y (yylex): If we're not already reading the result of a
6189 macro expansion, try to macro-expand the next token. When we're
6190 done scanning a macro expansion, switch back to the mainline text.
6191 Commas and `if's in a macro's expansion don't terminate the input.
6192 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6193 (macro_original_text, macro_expanded_text,
6194 expression_macro_lookup_func, expression_macro_lookup_baton): New
6195 variables.
6196 (scan_macro_expansion, scanning_macro_expansion,
6197 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6198 c_preprocess_and_parse): New functions.
6199 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6200 c_preprocess_and_parse, instead of c_parse.
6201 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6202 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6203
6204 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6205
6206 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6207 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6208 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6209
6210 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6211
6212 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6213
6214 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6215
6216 * Makefile.in (sh_tdep_h): Define and use.
6217 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6218 register enum): Move to...
6219 * * sh-tdep.h: ...here.
6220 * sh-tdep.c: Include sh-tdep.h.
6221 * sh3-rom.c: Likewise.
6222 * shnbsd-tdep.c: Likewise.
6223
6224 2002-05-16 Michael Snyder <msnyder@redhat.com>
6225
6226 * arm-tdep.c: Spelling fix in comment.
6227
6228 2002-05-16 Jim Blandy <jimb@redhat.com>
6229
6230 Add commands for manually expanding macros and showing their
6231 definitions.
6232 * macrocmd.c, macroscope.c, macroscope.h: New files.
6233 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6234 (macroscope_h): New variable.
6235 (HFILES_NO_SRCDIR): Add macroscope.h.
6236 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6237 (macroscope.o, macrocmd.o): New rules.
6238
6239 Teach the Dwarf 2 reader to read macro information.
6240 * dwarf2read.c: #include "macrotab.h".
6241 (dwarf_macinfo_buffer): New variable.
6242 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6243 dwarf_macinfo_size.
6244 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6245 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6246 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6247 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6248 dwarf2_macro_spaces_in_definition): New complaints.
6249 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6250 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6251 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6252 the partial symbol table.
6253 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6254 from what's recorded in the partial symbol table.
6255 (read_file_scope): If the compilation unit has a
6256 `DW_AT_macro_info' attribute, read its macro information.
6257 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6258
6259 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6260
6261 Fix PR gdb/546
6262 * ser-tcp.c: Don't include <netinet/udp.h>.
6263
6264 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6265
6266 * MAINTAINERS: Update my email address.
6267
6268 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6269
6270 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6271 include file of the same name.
6272
6273 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6274
6275 * configure.tgt: Mark v850 as multi-arched.
6276 * config/v850/tm-v850.h: Remove file.
6277 * config/v850/v850.mt: Eliminate TM_FILE.
6278
6279 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6280
6281 * v850-tdep.c: Full multi-arch.
6282 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6283 Define GDB_MULTI_ARCH to 2.
6284
6285 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6286
6287 * p-exp.y (current_type): New static variable.
6288 Carries the type of the expression at the position that is parsed.
6289 (push_current_type, pop_current_type): Two new functions. Used
6290 to store/restore current_type in expression on specific tokens.
6291 (search_field): New static variable. Set to one after parsing a point
6292 as at that point only a FIELDNAME token should be searched.
6293 (FIELDNAME): New token. After a point only a token belonging to
6294 current_type type definition is allowed.
6295 (all over token rules): reset and change current_type according
6296 to rules.
6297 (exp '[' rule): insert implicit array index field if
6298 exp is a pascal string type.
6299
6300 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6301
6302 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6303 frame info. Use frame_info's saved_regs instead of matching member
6304 in extra_frame_info throughout.
6305 (v850_frame_init_saved_regs): New function.
6306 (v850_init_extra_frame_info): Move most functionality into
6307 v850_frame_init_saved_regs().
6308 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6309 (v850_frame_find_saved_regs): Remove declaration.
6310 (FRAME_FIND_SAVED_REGS): Remove definition.
6311 (v850_frame_init_saved_regs): Add declaration.
6312 (FRAME_INIT_SAVED_REGS): Add definition.
6313
6314 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6315
6316 * v850-tdep.c: Begin multi-arch'ing v850.
6317 (v850_target_architecture_hook): Remove function.
6318 (v850_gdbarch_init): New function. Add code previously in
6319 v850_target_architecture_hook().
6320 (_initialize_v850_tdep): Don't set target_architecture_hook.
6321 Call register_gdbarch_init() instead.
6322
6323 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6324
6325 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6326 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6327 (fixup_class_method_type): Likewise.
6328
6329 2002-05-15 Jim Blandy <jimb@redhat.com>
6330
6331 Add macro structures to GDB's symbol tables. Nobody puts anything
6332 in them yet.
6333 * symtab.h (struct symtab): New member: `macro_table'.
6334 * buildsym.h (pending_macros): New global variable.
6335 * buildsym.c: #include "macrotab.h".
6336 (buildsym_init): Initialize `pending_macros'.
6337 (end_symtab): If we found macro information while reading a CU's
6338 debugging info, do build a symtab structure for it. Make the
6339 symtab point to the macro information, and clear the
6340 `pending_macros' pointer which held it while we were reading the
6341 debug info.
6342 (really_free_pendings): Free any pending macro table.
6343 * objfiles.h (struct objfile): New member: `macro_cache'.
6344 * objfiles.c (allocate_objfile): Set allocate and free functions
6345 for the macro cache's objstack.
6346 (free_objfile): Empty the macro cache's obstack.
6347 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6348 set new allocate and free functions for it.
6349 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6350 free functions for the macro cache's objstack. (Why is this
6351 function building its own objfile?)
6352 * symmisc.c (print_objfile_statistics): Print statistics on the
6353 macro bcache.
6354 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6355
6356 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6357
6358 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6359 (REGISTER_U_ADDR): Delete definition.
6360 (arm_register_u_addr): Delete declaration.
6361
6362 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6363
6364 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6365 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6366
6367 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6368
6369 * regcache.c (register_valid): Revise comments refering to "Not
6370 available" and "unavailable".
6371 * frame.c (frame_register_read): Ditto.
6372 * findvar.c (value_of_register): Ditto.
6373
6374 2002-05-15 Andrew Cagney <cagney@redhat.com>
6375
6376 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6377 (remote-sim.o): Update dependencies.
6378 (d10v-tdep.o): Specify dependencies.
6379 (sim_d10v_h): Define.
6380
6381 2002-05-14 Jim Blandy <jimb@redhat.com>
6382
6383 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6384 * macrotab.c (macro_lookup_inclusion, find_definition,
6385 new_macro_table): Same.
6386
6387 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6388 not `! strcmp ()'. This is a dubious improvement.
6389 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6390
6391 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6392 although it's not necessary, to avoid a warning.
6393
6394 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6395
6396 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6397 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6398 TYPE_INSTANCE_FLAGS.
6399 (struct main_type): New.
6400 (struct type): Move most members to struct main_type. Change
6401 cv_type and as_type to new type_chain member. Add instance_flags.
6402 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6403 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6404 (finish_cv_type): Remove prototype.
6405 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6406 Set TYPE_CHAIN.
6407 (alloc_type_instance): New function.
6408 (smash_type): New function.
6409 (make_pointer_type, make_reference_type, make_function_type)
6410 (smash_to_member_type, smash_to_method_type): Call smash_type.
6411 (make_qualified_type): New function.
6412 (make_type_with_address_space): Call make_qualified_type.
6413 (make_cv_type): Likewise.
6414 (finish_cv_type): Remove unnecessary function.
6415 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6416 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6417 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6418 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6419 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6420 * hpread.c (hpread_read_struct_type): Likewise.
6421 * stabsread.c (read_struct_type): Likewise.
6422
6423 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6424
6425 * configure.tgt: Add a catch all sh* target, for cases like
6426 sh[2,3,4]-elf and sh-hms.
6427
6428 2002-05-14 Keith Seitz <keiths@redhat.com>
6429
6430 * event-loop.c (create_file_handler): Don't do anything but
6431 update data when we are given a fd which we are already
6432 monitoring.
6433
6434 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6435
6436 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6437 (update_context): Use __func__ in warnings.
6438
6439 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6440
6441 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6442 and tcp_close to net_open and net_close.
6443 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6444 using UDP if requested. Don't try to disable Nagle on UDP
6445 sockets.
6446 * remote.c (remote_serial_open): New function. Warn about UDP.
6447 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6448
6449 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6450
6451 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6452
6453 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6454
6455 * configure.tgt: Remove sh-hms target.
6456 * MAINTAINERS: Don't list sh-hms as a separate target.
6457
6458 2002-05-13 Jim Blandy <jimb@redhat.com>
6459
6460 Add first preprocessor macro-expansion files.
6461 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6462 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6463 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6464 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6465 (COMMON_OBS): Add macrotab.o, macroexp.o.
6466 (macroexp.o, macrotab.o): New rules.
6467
6468 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6469
6470 * config/m88k/tm-m88k.h: Update copyright.
6471 (m88k_target_write_pc): Declare
6472 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6473 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6474 (SHIFT_INST_REGS): Update definition.
6475 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6476 using old definition of TARGET_WRITE_PC.
6477 * regcache.c (generic_target_write_pc): Delete code handling
6478 NNPC_REGNUM.
6479 * gdbarch.sh (NNPC_REGNUM): Delete.
6480 * gdbarch.h, gdbarch.c: Regenerate.
6481
6482 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6483
6484 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6485 builtin reg number.
6486
6487 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6488
6489 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6490 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6491 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6492 access macros.
6493 * c-typeprint.c (cp_type_print_method_args): Likewise.
6494 (c_type_print_args): Likewise.
6495 * d10v-tdep.c (d10v_push_arguments): Likewise.
6496 (d10v_extract_return_value): Likewise.
6497 * expprint.c (print_subexp): Likewise.
6498 * gdbtypes.c (lookup_primitive_typename): Likewise.
6499 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6500 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6501 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6502 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6503 (TYPE_VECTOR): Likewise.
6504 * hpread.c (hpread_read_struct_type)
6505 (fix_static_member_physnames, fixup_class_method_type)
6506 (hpread_type_lookup): Likewise.
6507 * mdebugread.c (parse_symbol, parse_type): Likewise.
6508 * p-lang.c (is_pascal_string_type): Likewise.
6509 * valops.c (hand_function_call): Likewise.
6510 * x86-64-tdep.c (classify_argument): Likewise.
6511
6512 * hpread.c (hpread_read_function_type)
6513 (hpread_read_doc_function_type): Call replace_type.
6514 * dstread.c (create_new_type): Delete.
6515 (decode_dst_structure, process_dst_function): Call alloc_type.
6516 Use type access macros.
6517
6518 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6519
6520 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6521 the're not supported by the current architecture.
6522 (i387_fill_fxsave): Likewise.
6523
6524 2002-05-12 Fred Fish <fnf@redhat.com>
6525
6526 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6527 sect_index_xxx members to index the first slot in section_offsets
6528 if all of the section_offsets are zero.
6529
6530 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6531
6532 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6533 checked in with last change.
6534
6535 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6536
6537 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6538 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6539 config.sub.
6540
6541 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6542
6543 * Makefile.in: Update dependencies.
6544
6545 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6546
6547 * language.c (local_hex_string_custom): Simplify. Do not depend
6548 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6549
6550 * memattr.c (mem_info_command): Replace calls to
6551 longest_local_hex_string and longest_local_hex_string_custom.
6552 * buildsym.c (make_blockvector): Ditto.
6553 * solib.c (info_sharedlibrary_command): Ditto.
6554 * tracepoint.c (tracepoints_info): Ditto.
6555 * symtab.c (print_msymbol_info): Ditto.
6556
6557 * language.c (local_hex_string): Delete.
6558 (local_hex_string_custom): Delete.
6559 (longest_local_hex_string): Rename to local_hex_string.
6560 (longest_local_hex_string_custom): Rename to
6561 local_hex_string_custom.
6562 * language.h (local_hex_string): Change parameter type to LONGEST.
6563 (local_hex_string_custom): Ditto.
6564 (longest_local_hex_string): Delete declaration.
6565 (longest_local_hex_string_custom): Ditto.
6566
6567 * solib.c: Update copyright.
6568 * memattr.c: Update copyright.
6569
6570 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6571
6572 * arch-utils.h (legacy_register_to_value): Declare.
6573 (legacy_value_to_register): Declare.
6574 (legacy_convert_register_p): Declare.
6575 * arch-utils.c (legacy_register_to_value): New function.
6576 (legacy_value_to_register): New function.
6577 (legacy_convert_register_p): New function.
6578
6579 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6580 (VALUE_TO_REGISTER): Define.
6581 (CONVERT_REGISTER_P): Define.
6582 * gdbarch.h, gdbarch.c: Regenerate.
6583
6584 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6585 VALUE_TO_REGISTER.
6586 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6587 CONVERT_REGISTER_P.
6588
6589 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6590 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6591
6592 * Makefile.in: Update dependencies for valops.c.
6593 * valops.c: Include "gdb_assert.h".
6594 (typecmp): Skip THIS parameter to methods.
6595 (find_method_list): Remove static_memfuncp argument,
6596 update callers. Check for stub methods.
6597 (find_value_oload_method_list): Don't set *static_memfuncp.
6598 (find_overload_match): Don't check for stub methods. Assert
6599 that methods are not stubbed. Handle static methods.
6600 (value_find_oload_method_list): Remove static_memfuncp argument.
6601 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6602 to the argument list for static stub methods.
6603 * value.h (value_find_oload_method_list): Update prototype.
6604
6605 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6606
6607 * arch-utils.h (generic_register_size): Declare.
6608 (generic_register_raw_size, generic_register_virtual_size): Delete
6609 declarations.
6610 * arch-utils.c (generic_register_raw_size): Delete.
6611 (generic_register_size): New function.
6612 (generic_register_virtual_size): Delete.
6613
6614 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6615 default generic_register_size.
6616 * gdbarch.h, gdbarch.c: Re-generate.
6617
6618 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6619 register_virtual_size.
6620 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6621 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6622
6623 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6624
6625 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6626 * gdbarch.h, gdbarch.c: Regenerate.
6627 * gnu-v3-abi.c: Update copyright.
6628 (vtable_address_point_offset): Update.
6629 (gnuv3_rtti_type): Update.
6630 (gnuv3_baseclass_offset): Update.
6631 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6632 (init_fetch_link_map_offsets): Update.
6633 * remote.c (get_remote_state): Update.
6634
6635 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6636
6637 * TODO: Remove value_headof/value_from_vtable_info comment.
6638 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6639 * values.c (value_headof, value_from_vtable_info): Delete.
6640 * value.h (value_from_vtable_info): Delete prototype.
6641
6642 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6643
6644 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6645 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6646 $(gdb_regex_h).
6647 (gdb_assert_h): Define.
6648 (gdb_wait_h): Define.
6649 (gdb_regex_h): Define.
6650
6651 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6652
6653 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6654 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6655
6656 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6657
6658 * nbsd-tdep.c: Fix comment.
6659
6660 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6661
6662 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6663 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6664 (nbsd-tdep.o): New dependency list.
6665 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6666 nbsd-tdep.h.
6667 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6668 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6669 * nbsd-tdep.c: New file.
6670 * nbsd-tdep.h: New file.
6671 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6672 nbsd-tdep.h.
6673 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6674 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6675 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6676 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6677
6678 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6679
6680 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6681 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6682 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6683 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6684 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6685 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6686
6687 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6688
6689 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6690 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6691 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6692 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6693 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6694 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6695 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6696
6697 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6698
6699 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6700 fetch_elfcore_registers to...
6701 * i386nbsd-tdep.c: ...here.
6702 (i386nbsd_use_struct_convention): Rename to...
6703 (i386nbsd_aout_use_struct_convention): ...this.
6704 (i386nbsd_supply_reg): New function.
6705 (i386nbsd_fill_reg): New function.
6706 (fetch_core_registers): Use i386nbsd_supply_reg.
6707 (fetch_elfcore_registers): Likewise.
6708 (_initialize_i386nbsd_tdep): New function.
6709 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6710 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6711 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6712 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6713 (i386nbsd_aout_use_struct_convention): ...this.
6714
6715 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6716
6717 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6718 (store_inferior_registers): Use shnbsd_fill_reg.
6719 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6720 sh_nbsd_supply_register): Collapse into...
6721 (shnbsd_supply_reg): ...this.
6722 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6723 (shnbsd_fill_reg): ...this.
6724 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6725 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6726 (fetch_core_registers): Use shnbsd_supply_reg.
6727 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6728 (sh_nbsd_core_fns): Rename to...
6729 (shnbsd_core_fns): ...this.
6730 (sh_nbsd_elfcore_fns): Rename to...
6731 (shnbsd_elfcore_fns): ...this.
6732 (sh_nbsd_init_abi): Rename to...
6733 (shnbsd_init_abi): ...this.
6734 (_initialize_sh_nbsd_tdep): Rename to...
6735 (_initialize_shnbsd_tdep): ...this.
6736 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6737 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6738 sh_nbsd_fill_register): Remove prototypes.
6739 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6740
6741 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6742
6743 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6744 (i387-nat.o): Delete dependency list.
6745 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6746 (x86-64-linux-nat.o): Likewise.
6747 * i387-nat.c: Delete file, moving contents to...
6748 * i387-tdep.c: ...here.
6749 * i387-nat.h: Rename...
6750 * i387-tdep.h: ...to this.
6751 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6752 * i386-linux-nat.c: Likewise.
6753 * i386bsd-nat.c: Likewise.
6754 * i386gnu-nat.c: Likewise.
6755 * i386nbsd-nat.c: Likewise.
6756 * i386v4-nat.c: Likewise.
6757 * x86-64-linux-nat.c: Likewise.
6758 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6759 * config/i386/go32.mh (NATDEPFILES): Likewise.
6760 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6761 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6762 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6763 * config/i386/linux.mh (NATDEPFILES): Likewise.
6764 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6765 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6766 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6767 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6768
6769 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6770
6771 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6772 (alphanbsd-nat.o): Remove dependency list.
6773 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6774 * alphanbsd-nat.c: Delete. Contents moved to...
6775 * alphanbsd-tdep.c: ...here.
6776 (_initialize_alphanbsd_tdep): Register core functions.
6777 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6778
6779 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6780
6781 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6782 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6783 (alphanbsd-nat.o): Likewise.
6784 (alphabsd-tdep.o): New dependency list.
6785 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6786 (fill_gregset): Use alphabsd_fill_reg.
6787 (supply_fpregset): Use alphabsd_supply_fpreg.
6788 (fill_fpregset): Use alphabsd_fill_fpreg.
6789 (fetch_inferior_registers): Use struct reg and struct fpreg
6790 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6791 and alphabsd_supply_fpreg.
6792 (store_inferior_registers): Use struct reg and struct fpreg
6793 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6794 and alphabsd_fill_fpreg.
6795 * alphabsd-tdep.c: New file.
6796 * alphabsd-tdep.h: New file.
6797 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6798 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6799 alphabsd_supply_fpreg.
6800 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6801 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6802
6803 2002-05-11 Eric Christopher <echristo@redhat.com>
6804
6805 * mips-tdep.c (mips_double_register_type): Fix thinko.
6806 (mips_single_register_type): Ditto.
6807 * MAINTAINERS: Add self.
6808
6809 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6810
6811 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6812 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6813 right thing on architectures with different endianness and/or
6814 integer sizes.
6815
6816 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6817
6818 From Christian Limpach <chris@Pin.LU>
6819 * configure.in: Change sed expression which comments out
6820 NATDEPFILES to also comment out continuation lines.
6821 * configure: Regenerate.
6822
6823 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6824
6825 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6826 big patch.
6827
6828 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6829
6830 * sh-tdep.c: Include correct file.
6831
6832 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6833
6834 New support for sh64-elf (sh5) target.
6835
6836 * configure.tgt: For sh64-elf target, default to sh-elf.
6837
6838 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6839 (struct gdbarch_tdep): Add new fields for new registers and ABI
6840 info.
6841
6842 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6843 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6844 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6845 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6846 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6847 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6848 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6849 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6850 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6851 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6852 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6853 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6854 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6855 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6856 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6857 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6858 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6859 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6860 sign_extend, sh64_nofp_frame_init_saved_regs,
6861 sh64_init_extra_frame_info, sh64_get_saved_register,
6862 sh64_extract_struct_value_address, sh64_pop_frame,
6863 sh64_push_arguments, sh64_extract_return_value,
6864 sh64_store_return_value, sh64_show_media_regs,
6865 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6866 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6867 sh_sh64_register_virtual_type,
6868 sh_sh64_register_convert_to_virtual,
6869 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6870 sh64_register_read, sh64_pseudo_register_write,
6871 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6872 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6873 sh64_do_pseudo_register, sh_compact_do_registers_info,
6874 sh64_do_registers_info, sh_gdbarch_init): New functions.
6875
6876 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6877
6878 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6879
6880 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6881
6882 * linespec.c (decode_line_1): Check for a double quote after
6883 a filename correctly.
6884
6885 2002-05-10 Jim Blandy <jimb@redhat.com>
6886
6887 Properly track the size of the current objfile's .debug_line section.
6888 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6889 (DWARF_LINE_SIZE): New macro.
6890 (dwarf2_build_psymtabs_hard): Record the line section's size in
6891 the partial symbol table.
6892 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6893 symbol table.
6894
6895 2002-05-10 Petr Sorfa <petrs@caldera.com>
6896
6897 * ia64-tdep.c: Handle breakpoints on L instruction type
6898 in MLX instruction bundle by moving the breakpoint to
6899 the third slot (X instruction type) as L holds only data.
6900
6901 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6902
6903 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6904 (process_one_symbol): Complain about discarding local symbols
6905 due to a misplaced N_LBRAC entry.
6906
6907 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6908
6909 From Daniel Berlin <dan@cgsoftware.com>
6910 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6911 decrease the depth we are at, in the case of templates.
6912
6913 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6914
6915 * mips-tdep.c (mips_float_register_type): New function.
6916 (mips_double_register_type): New function.
6917 (mips_print_register): Use them.
6918 (do_fp_register_row): Likewise.
6919
6920 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6921
6922 * signals/signals.c (signals): Remove conditional compilation around
6923 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6924 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6925
6926 2002-05-09 Michael Snyder <msnyder@redhat.com>
6927
6928 * remote-rdp.c (remote_rdp_can_run): Remove.
6929
6930 2002-05-09 Tom Tromey <tromey@redhat.com>
6931
6932 * jv-valprint.c (java_val_print): Handle `char' as a special case
6933 of TYPE_CODE_INT.
6934
6935 2002-05-09 Michael Snyder <msnyder@redhat.com>
6936
6937 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6938 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6939 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6940 str r(0123),[sp,#nn].
6941 (arm_skip_prologue): Ditto. Also make disassembly
6942 order-independent by placing it in a loop.
6943
6944 2002-05-06 Michael Snyder <msnyder@redhat.com>
6945
6946 * stabsread.c (read_type): Add recognition for new attribute:
6947 "@V;" means that an array type is actually a vector.
6948 This is analogous to the vector flag that's been added to dwarf2.
6949
6950 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6951
6952 * i386-tdep.h (i386_abi): New enum.
6953 (struct gdbarch_tdep): Replace os_ident member with abi.
6954 (i386_gdbarch_register_os_abi): New prototype.
6955 * i386-tdep.c (i386_abi_names): New array.
6956 (process_note_abi_tag_sections): Removed.
6957 (process_note_sections): New function.
6958 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6959 (struct i386_abi_handler): New struct.
6960 (i386_abi_handler_list): New variable.
6961 (i386_gdbarch_register_os_abi): New function.
6962 (i386_gdbarch_init): Adapt for the changes given above.
6963
6964 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6965
6966 * gregset.h: Say "GNU/Linux".
6967
6968 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6969
6970 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6971 (build_gdbtypes): Build builtin_type_v2_float.
6972 (_initialize_gdbtypes): Register new builtin type.
6973
6974 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6975
6976 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6977 (clear_gdbarch_swap): New function.
6978 (initialize_non_multiarch): Call.
6979 (gdbarch_update_p): Before calling init(), swap out and clear the
6980 existing architecture.
6981 * gdbarch.c: Regenerate.
6982
6983 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6984
6985 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6986 alphanbsd-tdep.c.
6987
6988 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6989
6990 * sh-nbsd-nat.c: Rename to...
6991 * shnbsd-nat.c: ...this.
6992 * sh-nbsd-tdep.c: Rename to...
6993 * shnbsd-tdep.c: ...this.
6994 * sh-nbsd-tdep.h: Rename to...
6995 * shnbsd-tdep.h: ...this.
6996 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6997 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6998
6999 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7000
7001 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7002 concatenation for command help messages.
7003
7004 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7005
7006 * NEWS: Note new sh*-*-netbsdelf* configuration.
7007 * configure.host: Set gdb_host_cpu to sh for all sh*.
7008 (sh*-*-netbsdelf*): New host.
7009 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7010 (sh*-*-netbsdelf*): New target.
7011 * sh-nbsd-nat.c: New file.
7012 * sh-nbsd-tdep.c: New file.
7013 * sh-nbsd-tdep.h: New file.
7014 * config/sh/nbsd.mh: New file.
7015 * config/sh/nbsd.mt: New file.
7016 * config/sh/nm-nbsd.h: New file.
7017 * config/sh/tm-nbsd.h: New file.
7018
7019 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7020
7021 * sh-tdep.c (sh_osabi_names): Declare.
7022 (process_note_abi_tag_sections): New function.
7023 (get_elfosabi): Ditto.
7024 (sh_gdbarch_register_os_abi): Ditto.
7025 (sh_dump_tdep): Ditto.
7026 _initialize_sh_tdep): Use gdbarch_register to register
7027 sh_gdbarch_init and sh_dump_tdep.
7028 * config/sh/tm-sh.h (sh_osabi): Declare.
7029 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7030
7031 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7032
7033 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7034 (thumb_scan_prologue): Ditto.
7035 (arm_find_callers_reg): Ditto.
7036 (arm_frame_chain): Ditto.
7037 (arm_init_extra_frame_info): Ditto.
7038 (arm_frame_saved_pc): Ditto.
7039 (arm_pop_frame): Ditto.
7040 (arm_push_return_address): New function.
7041 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7042 call_dummy_location, call_dummy_breakpoint_offset_p,
7043 call_dummy_breakpoint_offset, call_dummy_p,
7044 call_dummy_stack_adjust_p, call_dummy_words,
7045 sizeof_call_dummy_words, call_dummy_start_offset,
7046 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7047 call_dummy_address, push_return_address and push_dummy_frame for
7048 generic dummy frames.
7049
7050 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7051
7052 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7053 size computation for alloca.
7054 (sh_fp_frame_init_saved_regs): Likewise.
7055
7056 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7057
7058 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7059 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7060 * arm-tdep.c (arm_store_return_value): Use them.
7061 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7062 * remote-rdp.c (remote_rdp_fetch_register): Use
7063 ARM_MAX_REGISTER_RAW_SIZE.
7064 (remote_rdp_store_register): Likewise.
7065
7066 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7067
7068 * dwarf2cfi.c: Code cleanup, removed unused variables,
7069 added default labels to switch {} statements.
7070 * x86-64-tdep.c: Ditto.
7071 * x86-64-linux-nat.c: Ditto.
7072
7073 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7074
7075 * solib.h: Protect against multiple inclusion.
7076
7077 2002-05-06 Jim Blandy <jimb@redhat.com>
7078
7079 Add first preprocessor macro-expansion files.
7080 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7081 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7082 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7083 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7084 (COMMON_OBS): Add macrotab.o, macroexp.o.
7085 (macroexp.o, macrotab.o): New rules.
7086
7087 Separate the job of reading the line number info statement program
7088 header (...expialidocious) out into its own function.
7089 * dwarf2read.c (struct line_head, struct filenames, struct
7090 directories): Replace with...
7091 (struct line_header): New structure, containing the full
7092 contents of the statement program header, including the
7093 include directory and file name tables.
7094 (read_file_scope): If we have line number info, instead of just
7095 calling dwarf_decode_lines to do all the work, call
7096 dwarf_decode_line_header first to get a `struct line_header'
7097 containing the data in the statement program header, and then
7098 pass that to dwarf_decode_lines, which will pick up where that
7099 left off. Be sure to clean up the `struct line_header' object.
7100 (dwarf_decode_line_header, free_line_header, add_include_dir,
7101 add_file_name): New functions.
7102 (dwarf_decode_lines): Move all the code to read the statement
7103 program header into dwarf_decode_line_header. Take the line
7104 header it built as the first argument, instead of the offset to
7105 the compilation unit's line number info. Use the new `struct
7106 line_header' type instead of the old structures. No need to do
7107 cleanups here now, since we don't allocate anything.
7108 (dwarf2_statement_list_fits_in_line_number_section,
7109 dwarf2_line_header_too_long): New complaints.
7110
7111 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7112
7113 * gdbtypes.c (init_vector_type): New function.
7114 (build_builtin_type_vec128): Simplify the representation of SIMD
7115 registers.
7116 (build_gdbtypes): Initialize new builtin vector types.
7117 (_initialize_gdbtypes): Register new vector types with gdbarch.
7118 (builtin_type_v4_float, builtin_type_v4_int32,
7119 builtin_type_v8_int16, builtin_type_v16_int8,
7120 builtin_type_v2_int32, builtin_type_v4_int16,
7121 builtin_type_v8_int8): New (renamed) SIMD types.
7122
7123 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7124
7125 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7126 (i387_fill_fxsave): Likewise.
7127
7128 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7129
7130 * alpha-tdep.c (alpha_extract_return_value): Don't use
7131 non-constant array size in prototype.
7132
7133 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7134
7135 From Brian Taylor <briant at model dot com>:
7136 * ui-out.c (ui_out_field_core_addr): Use the function
7137 longest_local_hex_string_custom'to format addresses > 32 bits
7138 wide.
7139
7140 * ui-out.c (ui_out_field_core_addr): Update comment.
7141
7142 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7143
7144 * stack.c (select_and_print_frame): Make static. Delete the
7145 parameter `level'.
7146 (func_command): Update call.
7147 (select_frame_command): Delete code computing the frame level.
7148 * frame.h (select_and_print_frame): Delete declaration.
7149
7150 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7151
7152 * sparc-tdep.c (sparc_get_saved_register): Comment why
7153 get_prev_frame call is safe.
7154
7155 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7156
7157 * frame.h (select_frame): Delete level parameter.
7158 * stack.c (select_frame): Update. Use frame_relative_level to
7159 obtain the frame's level.
7160 (select_and_print_frame): Update call.
7161 (select_frame_command): Ditto.
7162 (up_silently_base): Ditto.
7163 (down_silently_base): Ditto.
7164 * ocd.c (ocd_start_remote): Ditto.
7165 * remote-rdp.c (remote_rdp_open): Ditto.
7166 * remote-mips.c (mips_initialize): Ditto.
7167 (common_open): Ditto.
7168 * remote-e7000.c (e7000_start_remote): Ditto.
7169 * m3-nat.c (select_thread): Ditto.
7170 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7171 (child_get_current_exception_event): Ditto.
7172 * varobj.c (varobj_create): Ditto.
7173 (varobj_update): Ditto.
7174 (c_value_of_root): Ditto.
7175 * tracepoint.c (finish_tfind_command): Ditto.
7176 * corelow.c (core_open): Ditto.
7177 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7178 * thread.c (info_threads_command): Ditto.
7179 (switch_to_thread): Ditto.
7180 * infrun.c (normal_stop): Ditto.
7181 (restore_selected_frame): Ditto.
7182 (restore_inferior_status): Ditto.
7183 * breakpoint.c (insert_breakpoints): Ditto.
7184 (watchpoint_check): Ditto.
7185 (bpstat_stop_status): Ditto.
7186 (do_enable_breakpoint): Ditto.
7187 * blockframe.c (flush_cached_frames): Ditto.
7188 (reinit_frame_cache): Ditto.
7189
7190 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7191
7192 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7193 maintainer.
7194
7195 2002-05-04 Jim Blandy <jimb@redhat.com>
7196
7197 * gdbtypes.c (replace_type): Doc fix.
7198
7199 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7200
7201 * valprint.c (strcat_longest): Delete commented out function.
7202 Update copyright.
7203
7204 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7205
7206 * MAINTAINERS: Mark a29k as deleted.
7207 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7208 Move new configurations to the top.
7209 * configure.tgt: Remove a29k.
7210 * config/a29k/tm-vx29k.h: Delete.
7211 * config/a29k/vx29k.mt: Delete.
7212 * config/a29k/tm-a29k.h: Delete.
7213 * config/a29k/a29k-udi.mt: Delete.
7214 * config/a29k/a29k.mt: Delete.
7215 * a29k-tdep.c: Delete.
7216 * remote-udi.c: Delete.
7217 * remote-mm.c: Delete.
7218 * remote-eb.c: Delete.
7219 * remote-adapt.c: Delete.
7220 * Makefile.in: Remove obsolete code.
7221 * config/s390/s390x.mt: Ditto.
7222 * config/s390/s390.mt: Ditto.
7223 * config/sparc/sparclynx.mh: Ditto.
7224 * config/sparc/linux.mh: Ditto.
7225 * config/pa/hppaosf.mh: Ditto.
7226 * config/pa/hppabsd.mh: Ditto.
7227 * config/ns32k/nbsd.mt: Ditto.
7228 * config/mips/vr5000.mt: Ditto.
7229 * config/m68k/sun3os4.mh: Ditto.
7230 * config/m68k/nbsd.mt: Ditto.
7231 * config/m68k/m68klynx.mh: Ditto.
7232 * config/m32r/m32r.mt: Ditto.
7233 * config/i386/x86-64linux.mt: Ditto.
7234 * config/i386/nbsdelf.mt: Ditto.
7235 * config/i386/nbsd.mt: Ditto.
7236 * config/i386/i386lynx.mh: Ditto.
7237
7238 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7239
7240 * target.c (debug_print_register): New function. Handle oversize
7241 registers.
7242 (debug_to_fetch_registers): Call.
7243 (debug_to_store_registers): Call.
7244
7245 2002-05-03 Jim Blandy <jimb@redhat.com>
7246
7247 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7248 (read_type): Doc fix.
7249 * gdbtypes.c (replace_type): Doc fix.
7250
7251 * stabsread.c (multiply_defined_struct): New complaint.
7252 (read_struct_type): If the type we were passed isn't empty, or
7253 incomplete, don't read the new struct type into it; complain,
7254 and return the original type unchanged. Take a new `type_code'
7255 argument, which is the type code for the new type.
7256 (read_type): Rather than storing the type's type code here, pass
7257 it as an argument to read_struct_type, and let that take care of
7258 storing it. That way, we don't overwrite the original type code,
7259 so read_struct_type can use it to decide whether we're overwriting
7260 something we shouldn't.
7261 (complain_about_struct_wipeout): New function.
7262
7263 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7264
7265 * gdbarch.sh: Assert that gdbarch is non-NULL.
7266 * gdbarch.c: Regenerate.
7267
7268 2002-05-03 Jason Merrill <jason@redhat.com>
7269
7270 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7271 and return NULL.
7272
7273 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7274
7275 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7276 (x86_64_dwarf2gdb_regno_map_length),
7277 (x86_64_dwarf2_reg_to_regnum): Added.
7278 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7279 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7280 (_initialize_x86_64_tdep): Synced with the change above.
7281 (x86_64_skip_prologue): Reformulated message.
7282
7283 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7284
7285 * f-exp.y: Also use new prev_lexptr variable
7286 to improve error reporting. Based on Michael Snyder
7287 2002-04-24 dated patch to c-exp.y.
7288 * jv-exp.y: Likewise.
7289 * m2-exp.y: Likewise.
7290
7291 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7292
7293 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7294 we are dealing with vectors.
7295
7296 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7297
7298 * config/m68k/tm-nbsd.h: Obvious fix,
7299 correct machine name.
7300
7301 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7302
7303 * p-typeprint.c (pascal_type_print_base): Add support
7304 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7305
7306 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7307
7308 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7309 for fondamental pascal 'char' type.
7310
7311 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7312
7313 * p-lang.h (is_pascal_string_type): Declaration changed,
7314 new sixth argument of type char ** added.
7315 * p-lang.c (is_pascal_string_type): Implementation
7316 changed. Args length_pos, length_size, string_pos, char_size
7317 can now be NULL. New argument arrayname set to the field
7318 name of the char array. Return value set to char array
7319 field index plus one.
7320 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7321 is_pascal_string_type function.
7322
7323 2002-05-02 Andrew Cagney <cagney@redhat.com>
7324
7325 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7326 <cagney@redhat.com> change.
7327 * gdbarch.c: Regenerate.
7328
7329 2002-05-02 Andrew Cagney <cagney@redhat.com>
7330
7331 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7332 before probing for a new one. Detect errorenous gdbarch_init
7333 functions.
7334 * gdbarch.c: Regenerate.
7335
7336 2002-05-01 Andrew Cagney <cagney@redhat.com>
7337
7338 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7339 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7340 * config/v850/tm-v850.h: Ditto. Update copyright.
7341
7342 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7343
7344 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7345 current_gdbarch.
7346
7347 2002-04-30 Michael Snyder <msnyder@redhat.com>
7348
7349 * arm-tdep.c: Whitespace clean-ups.
7350 (arm_skip_prologue): Fix thinko; two lines
7351 should have been removed as part of 4/24 change.
7352
7353 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7354
7355 * rs6000-tdep.c: Added comment describing how fpscr register
7356 numbers were chosen.
7357
7358 2002-04-30 Michael Snyder <msnyder@redhat.com>
7359
7360 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7361
7362 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7363
7364 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7365 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7366 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7367
7368 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7369
7370 From Louis Hamilton <hamilton@redhat.com>:
7371 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7372 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7373 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7374 not bfd-private xcoff data, to determine wordsize.
7375 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7376
7377 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7378
7379 GDB 5.2 released from 5.2 branch.
7380
7381 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7382
7383 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7384 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7385 (x86_64_register_info_table): Added comments with register numbers.
7386
7387 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7388
7389 * rs6000-tdep.c (rs6000_extract_return_value,
7390 rs6000_store_return_value): Handle returning vectors.
7391 (rs6000_gdbarch_init): Use
7392 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7393 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7394 New function.
7395 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7396 vectors.
7397 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7398 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7399
7400 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7401
7402 * hpread.c (hpread_psymtab_to_symtab_1,
7403 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7404 with fprintf_unfiltered (gdb_stderr,...).
7405
7406 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7407
7408 * remote-array.c (printf_monitor, write_monitor,
7409 array_insert_breakpoint, array_remove_breakpoint ):
7410 Replace fprintf (stderr,...
7411 with fprintf_unfiltered (gdb_stderr,....
7412 * remote-es.c: Likewise.
7413 * remote-os9k.c: Likewise.
7414 * remote-st.c: Likewise.
7415
7416 2002-04-28 Andreas Schwab <schwab@suse.de>
7417
7418 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7419 linux-proc.o and gcore.o.
7420
7421 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7422
7423 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7424 code without frame pointers.
7425
7426 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7427
7428 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7429 ON_STACK is needed.
7430
7431 2002-04-26 Ben Elliston <bje@redhat.com>
7432
7433 * target.c (do_xfer_memory): Correct reference to the new option
7434 "trust-readonly-sections".
7435
7436 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7437
7438 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7439 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7440 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7441 vectors.
7442 (read_array_type): Record the fact that this array type is really a
7443 vector (i.e. are passed in by value).
7444
7445 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7446
7447 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7448 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7449 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7450 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7451 * alpha-linux-tdep.c: Include frame.h.
7452 (alpha_linux_sigcontext_addr): New function.
7453 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7454 alpha_linux_sigcontext_addr.
7455 * alpha-osf1-tdep.c: Include gdbcore.h.
7456 (alpha_osf1_sigcontext_addr): New function.
7457 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7458 alpha_osf1_sigcontext_addr.
7459 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7460 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7461
7462 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7463
7464 * stack.c (selected_frame_level):
7465 (select_frame): Do not set selected_frame_level.
7466 * frame.h (selected_frame_level): Delete declaration.
7467
7468 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7469
7470 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7471 convert_from_func_ptr-addr when AIX / PowerOpen.
7472
7473 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7474
7475 * valops.c (hand_function_call): Call
7476 generic_save_call_dummy_addr.
7477 * frame.h (generic_save_call_dummy_addr): Declare.
7478 * blockframe.c (struct dummy_frame): Add fields call_lo and
7479 call_hi.
7480 (generic_find_dummy_frame): Check for PC in range call_lo to
7481 call_hi instead of entry_point_address.
7482 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7483 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7484 (generic_save_call_dummy_addr): New function.
7485
7486 2002-04-24 David S. Miller <davem@redhat.com>
7487
7488 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7489 sparc_skip_prologue.
7490 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7491 information to find prologue when possible.
7492 (sparc_prologue_frameless_p): Call examine_prologue directly.
7493 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7494 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7495 second argument.
7496 (SKIP_PROLOGUE): Likewise.
7497
7498 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7499
7500 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7501 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7502 indicate that the condition it was testing is always true.
7503 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7504 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7505 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7506
7507 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7508
7509 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7510 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7511 tdep->jb_pc and tdep->jb_elt_size.
7512 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7513 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7514 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7515 * alpha-nat.c (get_longjmp_target): Remove.
7516 (JB_ELEMENT_SIZE): Ditto.
7517 (JB_PC): Ditto.
7518 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7519 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7520 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7521 to alpha_get_longjmp_target.
7522 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7523 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7524 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7525
7526 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7527
7528 * README: Update to GDB 5.2.
7529
7530 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7531
7532 * gdbarch.sh (LC_ALL): Set to `c'.
7533
7534 2002-04-25 Theodore A. Roth <troth@verinet.com>
7535
7536 * avr-tdep.c: Ran through gdb_indent.sh.
7537
7538 2002-04-25 Theodore A. Roth <troth@verinet.com>
7539
7540 * MAINTAINERS: Add myself as AVR maintainer.
7541 * NEWS: Note new target avr.
7542
7543 2002-04-25 Theodore A. Roth <troth@verinet.com>
7544
7545 * Makefile.in: Add support for AVR target.
7546 * configure.tgt: Add support for AVR target.
7547 * avr-tdep.c: New file
7548 * config/avr/avr.mt: New file.
7549
7550 2002-04-25 Theodore A. Roth <troth@verinet.com>
7551
7552 * MAINTAINERS: Add myself to write-after-approval.
7553
7554 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7555
7556 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7557 with fprintf_unfiltered (gdb_stderr,....
7558
7559 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7560
7561 Fix PR gdb/508.
7562 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7563
7564 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7565
7566 * p-exp.y: Also use new prev_lexptr variable
7567 to improve error reporting. Based on Michael Snyder
7568 2002-04-24 dated patch to c-exp.y.
7569
7570 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7571
7572 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7573 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7574 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7575 to 0.
7576 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7577 and struct value.
7578 (FUNCTION_START_OFFSET): Remove.
7579 (BREAKPOINT): Ditto.
7580
7581 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7582
7583 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7584 * NEWS: Ditto.
7585
7586 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7587
7588 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7589 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7590 alpha_linux_pc_in_sigtramp.
7591 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7592 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7593 alpha_osf1_pc_in_sigtramp.
7594 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7595 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7596 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7597 alphafbsd_pc_in_sigtramp.
7598 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7599 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7600 alphanbsd_pc_in_sigtramp.
7601 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7602 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7603
7604 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7605
7606 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7607
7608 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7609
7610 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7611 alphanbsd-tdep.c.
7612 (alphanbsd-nat.o): New dependency list.
7613 (alphanbsd-tdep.o): Ditto.
7614 * NEWS: Note new native NetBSD/alpha configuration.
7615 * alphanbsd-nat.c: New file.
7616 * alphanbsd-tdep.c: Ditto.
7617 * configure.host (alpha*-*-netbsd*): New host.
7618 * configure.tgt (alpha*-*-netbsd*): New target.
7619 * config/alpha/nbsd.mh: New file.
7620 * config/alpha/nbsd.mt: Ditto.
7621 * config/alpha/nm-nbsd.h: Ditto.
7622 * config/alpha/tm-nbsd.h: Ditto.
7623
7624 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7625
7626 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7627 (alpha-osf1-tdep.o): New dependency list.
7628 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7629 and skip_sigtramp_frame members.
7630 * alpha-linux-tdep.c: Include gdbcore.h.
7631 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7632 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7633 * alpha-osf1-tdep.c: New file.
7634 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7635 alpha-osf1-dep.c.
7636 (alpha_frame_past_sigtramp_frame): New function.
7637 (alpha_dynamic_sigtramp_offset): Ditto.
7638 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7639 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7640 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7641 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7642 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7643 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7644 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7645 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7646 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7647 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7648 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7649 to find_solib_trampoline_target.
7650 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7651 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7652 (SKIP_TRAMPOLINE_CODE): Remove.
7653 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7654 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7655 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7656 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7657 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7658 (PROC_SIGTRAMP_MAGIC): Ditto.
7659 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7660 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7661 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7662 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7663 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7664
7665 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7666
7667 * NEWS: Note that Alpha targets are now multi-arch.
7668
7669 2002-04-24 Michael Snyder <msnyder@redhat.com>
7670
7671 * parser-defs.h (prev_lexptr): New external variable.
7672 * parse.c (parse_exp_1): Set prev_lexptr to null before
7673 calling the language-specific parser.
7674 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7675 (yyerror): Use prev_lexptr in error reporting.
7676
7677 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7678
7679 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7680 * gregset.h: If FILL_FPXREGSET is defined, provide
7681 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7682 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7683 is defined, call fill_fpxregset.
7684
7685 2002-04-24 Roland McGrath <roland@frob.com>
7686
7687 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7688 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7689 (supply_gregset, supply_fpregset): New functions.
7690
7691 * gnu-nat.c (gnu_find_memory_regions): New function.
7692 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7693 (gnu_xfer_memory): Add a cast.
7694
7695 2002-04-24 Michael Snyder <msnyder@redhat.com>
7696
7697 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7698 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7699 of argument regs ("str r(0123), [r11, #-nn"]).
7700 (arm_skip_prologue): Better handling for frameless functions.
7701 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7702 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7703
7704 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7705
7706 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7707 NUM_PSEUDO_REGS can be used.
7708
7709 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7710
7711 * arch-utils.h: Update copyright.
7712
7713 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7714 * gdbarch.h, gdbarch.c: Re-generate.
7715
7716 * inferior.h (IN_SIGTRAMP): Delete definition.
7717 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7718 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7719
7720 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7721 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7722 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7723 (find_proc_framesize): Ditto.
7724 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7725 (alpha_init_extra_frame_info): Ditto.
7726 * infrun.c (handle_inferior_event): Ditto.
7727 (handle_inferior_event): Ditto.
7728 (check_sigtramp2): Ditto.
7729 * blockframe.c (create_new_frame): Ditto.
7730 (get_prev_frame): Ditto.
7731 * ppc-linux-tdep.c: Update comments.
7732 * i386-linux-tdep.c: Update comments.
7733 * breakpoint.c (bpstat_what): Update comment.
7734
7735 2002-04-24 David S. Miller <davem@redhat.com>
7736
7737 * i960-tdep.c (register_in_window_p): New function.
7738 (i960_find_saved_register): Use it instead of
7739 REGISTER_IN_WINDOW_P.
7740 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7741
7742 * symtab.h (find_stab_function_addr): Kill extern.
7743 * minsyms.c (find_stab_function_addr): Remove from here...
7744 * dbxread.c: ... to here, and mark it static.
7745
7746 2002-04-20 David S. Miller <davem@redhat.com>
7747
7748 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7749 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7750
7751 2002-04-21 David S. Miller <davem@redhat.com>
7752
7753 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7754 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7755 (vx_write_register): Likewise.
7756
7757 2002-04-23 J. Brobecker <brobecker@gnat.com>
7758
7759 * source.c (is_regular_file): New function.
7760 (openp): Check wether file to open is a regular file
7761 to avoid opening directories.
7762
7763 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7764
7765 * findvar.c (extract_signed_integer): Cast printf argument
7766 to suppress format warning.
7767 (extract_unsigned_integer): Likewise.
7768 * infcmd.c (registers_info): Likewise.
7769 * top.c (get_prompt_1): Likewise.
7770 * valops.c (value_assign): Likewise.
7771 * valprint.c (print_decimal): Likewise.
7772
7773 2002-04-22 H.J. Lu (hjl@gnu.org)
7774
7775 * c-exp.y (typebase): Support
7776
7777 [long|long long|short] [signed|unsigned] [int|]
7778
7779 and
7780
7781 signed [long|long long|short] int
7782
7783 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7784
7785 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7786 and vax-tdep.h.
7787 * vax-tdep.h: New file.
7788 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7789 Make several routines static.
7790 (vax_get_saved_register): New function.
7791 (vax_gdbarch_init): New function.
7792 (_initialize_vax_tdep): Register vax_gdbarch_init.
7793 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7794 Remove macros now under the control of gdbarch.
7795
7796 2002-04-22 Michael Snyder <msnyder@redhat.com>
7797
7798 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7799 Some whitespace and coding standards tweaks.
7800
7801 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7802
7803 * vax-tdep.c: Include regcache.h.
7804 (vax_call_dummy_words): New.
7805 (sizeof_vax_call_dummy_words): New.
7806 (vax_fix_call_dummy): New function.
7807 (vax_saved_pc_after_call): Ditto.
7808 * config/vax/tm-vax.h: Don't include regcache.h.
7809 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7810 (CALL_DUMMY): Remove.
7811 (CALL_DUMMY_WORDS): Define.
7812 (SIZEOF_CALL_DUMMY_WORDS): Define.
7813 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7814
7815 2002-04-18 Michael Snyder <msnyder@redhat.com>
7816
7817 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7818
7819 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7820
7821 * vax-tdep.c (vax_frame_chain): New function.
7822 (vax_push_dummy_frame): Ditto.
7823 (vax_pop_frame): Ditto.
7824 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7825 (FRAMELESS_FUNCTION_INVOCATION): Use
7826 generic_frameless_function_invocation_not.
7827 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7828 (POP_FRAME): Use vax_pop_frame.
7829
7830 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7831
7832 * vax-tdep.c (vax_store_struct_return): New function.
7833 (vax_extract_return_value): Ditto.
7834 (vax_store_return_value): Ditto.
7835 (vax_extract_struct_value_address): Ditto.
7836 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7837 vax_store_struct_return.
7838 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7839 (STORE_RETURN_VALUE): Use vax_store_return_value.
7840 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7841
7842 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7843
7844 * vax-tdep.c (vax_frame_saved_pc): New function.
7845 (vax_frame_args_address_correct): Ditto.
7846 (vax_frame_args_address): Ditto.
7847 (vax_frame_locals_address): Ditto.
7848 (vax_frame_num_args): Move code to be in proximity to
7849 other frame-related functions.
7850 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7851 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7852 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7853 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7854 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7855
7856 2002-04-22 H.J. Lu (hjl@gnu.org)
7857
7858 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7859 includedir.
7860
7861 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7862
7863 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7864 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7865 (FRAME_INIT_SAVED_REGS): New macro.
7866
7867 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7868
7869 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7870
7871 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7872
7873 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7874 where needed.
7875 (fetch_osf_core_registers): Likewise.
7876 (supply_gregset): Likewise.
7877
7878 2002-04-22 J. Brobecker <brobecker@gnat.com>
7879
7880 * symfile.h (get_section_index): Define.
7881 * symfile.c (get_section_index): New function.
7882 * mdebugread.c (SC_IS_SBSS): New macro.
7883 (SC_IS_BSS): Return true for the scBss storage class only, as
7884 the scSBss storage class refers to the .sbss section.
7885 (parse_partial_symbols): Discard the symbols which associated
7886 section does not exist.
7887 Make sure to use the .sbss section index for symbols which
7888 storage class is scBss, rather than using the .bss section index.
7889
7890 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7891
7892 * vax-tdep.c: Update copyright years.
7893 (vax_register_name): New function.
7894 (vax_register_byte): Ditto.
7895 (vax_register_raw_size): Ditto.
7896 (vax_register_virtual_size): Ditto.
7897 (vax_register_virtual_type): Ditto.
7898 * config/vax/tm-vax.h: Update copyright years.
7899 (REGISTER_NAMES): Remove.
7900 (REGISTER_NAME): Define.
7901 (REGISTER_BYTE): Use vax_register_byte.
7902 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7903 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7904 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7905
7906 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7907
7908 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7909 declaration
7910 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7911
7912 2002-04-21 David S. Miller <davem@redhat.com>
7913
7914 * arch-utils.c (generic_prologue_frameless_p): Kill
7915 SKIP_PROLOGUE_FRAMELESS_P code.
7916 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7917 references.
7918 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7919 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7920 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7921 references.
7922 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7923 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7924 (sparc_gdbarch_init): Pass it to
7925 set_gdbarch_prologue_frameless_p.
7926
7927 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7928
7929 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7930 (alphabsd-nat.o): New dependency list.
7931
7932 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7933
7934 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7935 alphafbsd-tdep.c.
7936 (alpha-linux-tdep.o): New dependency list.
7937 (alphafbsd-tdep.o): Likewise.
7938
7939 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7940
7941 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7942 to here...
7943 * alpha-tdep.c: ...from here.
7944 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7945
7946 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7947
7948 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7949 prototype from here...
7950 * alpha-tdep.h: ...to here.
7951
7952 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7953
7954 * frame.h (selected_frame_level): Document as deprecated.
7955 (frame_relative_level): Declare.
7956 * stack.c (frame_relative_level): New function.
7957 (selected_frame_level): Document as deprecated.
7958 (select_frame): Do not set the selected_frame_level.
7959
7960 * stack.c (frame_info, record_selected_frame): Update.
7961 (frame_command, current_frame_command): Update.
7962 (up_silently_base, up_command, down_silently_base): Update.
7963 (down_command): Update.
7964 * inflow.c (kill_command): Update.
7965 * tracepoint.c (finish_tfind_command): Update.
7966 * corelow.c (core_open): Update.
7967 * thread.c (info_threads_command): Update.
7968 (do_captured_thread_select): Update.
7969 * infcmd.c (finish_command): Update.
7970 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7971
7972 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7975
7976 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7977
7978 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7979 type const.
7980
7981 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7982
7983 * alphafbsd-tdep.c: Update copyright years. Include
7984 alpha-tdep.h.
7985 (alphafbsd_use_struct_convention): Make static.
7986 (alphafbsd_init_abi): New function.
7987 (_initialize_alphafbsd_tdep): New function.
7988 * config/alpha/tm-fbsd.h: Update copyright years.
7989 (USE_STRUCT_CONVENTION): Remove.
7990
7991 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7992
7993 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7994 an Alpha ABI variant.
7995 (alpha_abi_handler_list): Declare.
7996 (alpha_gdbarch_register_os_abi): New function.
7997 (alpha_gdbarch_init): Give registered ABI variant handlers a
7998 chance to tweak the gdbarch once we have set up defaults.
7999 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8000
8001 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8002
8003 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8004 to standard_coerce_float_to_double.
8005 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8006
8007 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8008
8009 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8010 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8011 from gdbarch_tdep rather than a constant.
8012 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8013 the default text address for all Alpha Unix ABIs.
8014 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8015 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8016
8017 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8018
8019 * alpha-tdep.h: New file. Includes several Alpha target constants
8020 taken from...
8021 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8022 let gdbarch deal with.
8023 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8024 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8025 to dependency list.
8026 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8027 Alpha target register names.
8028 * alphabsd-nat.c: Likewise.
8029 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8030 Alpha target register names. Make serveral routines static.
8031 (alpha_get_saved_register): New function.
8032 (alpha_abi_names): New.
8033 (process_note_abi_tag_sections): New function.
8034 (get_elfosabi): New function.
8035 (alpha_gdbarch_init): New function.
8036 (alpha_dump_tdep): New function.
8037 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8038
8039 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8040
8041 * frame.c (find_saved_register): Delete #ifdef
8042 HAVE_REGISTER_WINDOWS code.
8043 * config/sparc/tm-sparc.h: Update comments.
8044 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8045
8046 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8047
8048 * i960-tdep.c (i960_find_saved_register): New function.
8049 (i960_get_saved_register): New function.
8050 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8051 (i960_get_saved_register): Declare.
8052 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8053
8054 2002-04-20 David S. Miller <davem@redhat.com>
8055
8056 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8057
8058 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8059
8060 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8061 instead of NUM_PSEUDO_REGS.
8062
8063 2002-04-20 David S. Miller <davem@redhat.com>
8064
8065 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8066 GDB_MULTI_ARCH_PARTIAL
8067 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8068 define, let tm-sp64.h do it.
8069
8070 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8071
8072 * frame.c (find_saved_register): Avoid a NULL pointer
8073 dereference and actually walk the frame list.
8074
8075 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8076
8077 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8078 sorted in most most-recent-used order. Document.
8079 * gdbarch.h, gdbarch.c: Regenerate.
8080
8081 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8082
8083 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8084 instead of ->prev.
8085 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8086 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8087 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8088 instead of ->prev.
8089
8090 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8091
8092 Fix PR gdb/471.
8093 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8094 (build_builtin_type_vec128): Ditto.
8095 (append_composite_type_field): Fix calculation of type length in
8096 union case.
8097
8098 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8099
8100 * config/djgpp/README: Update.
8101
8102 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8103 compiler warnings.
8104
8105 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8106
8107 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8108 (alpha_setup_arbitrary_frame): ...to this.
8109 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8110 for alpha_setup_arbitrary_frame.
8111
8112 2002-04-18 Andrew Cagney <cagney@redhat.com>
8113
8114 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8115 * gdbarch.h, gdbarch.c: Regenerate.
8116
8117 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8118 * target.h (memory_breakpoint_from_pc): Update declaration.
8119 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8120
8121 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8122 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8123 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8124 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8125 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8126 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8127 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8128 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8129 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8130 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8131 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8132 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8133
8134 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8135 const pointer.
8136 * monitor.c (monitor_insert_breakpoint): Ditto.
8137 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8138
8139 * config/mcore/tm-mcore.h: Update copyright.
8140 * mem-break.c: Ditto.
8141 * xstormy16-tdep.c: Ditto.
8142
8143 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8144
8145 * p-exp.y: Add precedence rule for '^' token.
8146 This removes the shift/reduce conflicts.
8147 Remove the comment concerning these shift/reduce conflicts.
8148
8149 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8150
8151 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8152 (registers_powerpc_nofp): New register set for processors
8153 without floating point unit.
8154
8155 2002-04-18 David S. Miller <davem@redhat.com>
8156
8157 * MAINTAINERS: Add myself to write-after-approval.
8158
8159 2002-04-17 Michael Snyder <msnyder@redhat.com>
8160
8161 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8162
8163 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8164
8165 * rs6000-tdep.c (frame_initial_stack_address): Use
8166 frame_register_read to read the alloca_reg.
8167
8168 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8169
8170 * frame.c (find_saved_register): Find saved registers in the next
8171 not prev frame.
8172 Fix PR gdb/365.
8173
8174 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8175
8176 * gdbarch.sh (LANG): Set to ``c''.
8177
8178 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8179
8180 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8181
8182 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8183
8184 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8185 Update copyright.
8186
8187 * hpread.c (hpread_get_lntt): Add declaration.
8188 Also fix PR gdb/391.
8189
8190 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8191
8192 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8193 * aclocal.m4, configure: Re-generate.
8194 Fix PR gdb/391.
8195
8196 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8197
8198 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8199 instead of tm_print_insn.
8200
8201 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8202
8203 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8204
8205 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8206
8207 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8208 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8209 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8210
8211 2002-04-12 Don Howard <dhoward@redhat.com>
8212
8213 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8214 max_user_call_depth.
8215 (init_cmd_lists): Initialize the new value;
8216 * cli/cli-script.c (execute_user_command): Limit the call depth of
8217 user defined commands. This avoids a core-dump when user commands
8218 are infinitly recursive.
8219
8220 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8221
8222 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8223 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8224 from tdep struct instead of DEFAULT_LR_SAVE.
8225 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8226 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8227 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8228
8229 2002-04-12 Michael Snyder <msnyder@redhat.com>
8230
8231 * Remote.c: Spelling fix.
8232 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8233 If no symbol found for "sbrk", try "_sbrk".
8234 (make_output_phdrs): Use bfd_section_name.
8235 (gcore_copy_callback): Use bfd_section_name.
8236 * eval.c: Indentation fix-ups.
8237 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8238 in case it gets applied to an address that is already
8239 in the instruction space.
8240 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8241 * symfile.c: Fix indentation, long lines.
8242 * source.c: White space fix-up.
8243
8244 2002-04-12 Andrew Cagney <cagney@redhat.com>
8245
8246 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8247 * frame.c (frame_register_read): New function. Return non-zero on
8248 success.
8249 (read_relative_register_raw_bytes_for_frame): Delete.
8250 (read_relative_register_raw_bytes): Delete.
8251 * frame.h (frame_register_read): Declare.
8252 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8253 * sh-tdep.c: Ditto.
8254 * infcmd.c (do_registers_info): Ditto.
8255 * hppa-tdep.c: Ditto.
8256 * rs6000-tdep.c: Ditto.
8257 * h8500-tdep.c: Ditto.
8258 * mips-tdep.c: Ditto.
8259 * h8300-tdep.c: Ditto.
8260 * z8k-tdep.c: Ditto.
8261
8262 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8263
8264 From Jimi X <jimix@watson.ibm.com>:
8265 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8266 64-bit SysV ABI.
8267
8268 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8269
8270 From Jimi X <jimix@watson.ibm.com>:
8271 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8272 bfd info.
8273
8274 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8275
8276 From Jimi X <jimix@watson.ibm.com>:
8277 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8278 register sets for these processor variants.
8279
8280 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * regformats/reg-ppc.dat: Support FPSCR.
8283
8284 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8285
8286 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8287 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8288 Add fpscr as an invalid/unfetchable register.
8289 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8290 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8291 (fill_fpregset): Add support for register fpscr.
8292 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8293 (fill_gregset): Account for the fact that register ``mq'' might
8294 not exist.
8295 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8296 (registers_power): Add fpscr to register set at slot 71.
8297 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8298 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8299
8300 2002-04-11 Michael Snyder <msnyder@redhat.com>
8301
8302 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8303 * configure: Regenerate.
8304 * config.in: Regenerate.
8305 * acconfig.h: Add define for _SYSCALL32.
8306 * core-sol2.c: Remove #define _SYSCALL32.
8307 * solib-legacy.c: Remove #define _SYSCALL32.
8308
8309 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8310
8311 * stack.c (select_frame): Cleanup internal error message, do not
8312 use %p.
8313
8314 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8315
8316 * stack.c (select_frame): Check that selected_frame and the
8317 specified level are as expected.
8318 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8319 Update copyright.
8320 * frame.h (struct frame_info): Add field `level'. Update
8321 copyright.
8322 Work-in-progress PR gdb/464.
8323
8324 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8325
8326 * maint.c (maint_print_section_info): Rename print_section_info.
8327 (print_bfd_section_info, print_objfile_section_info): Update.
8328 * inferior.h (struct gdbarch): Add opaque declaration.
8329 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8330 * gdbarch.h: Regenerate.
8331
8332 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8333
8334 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8335 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8336 (kernel_u_size): Added.
8337 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8338 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8339
8340 2002-04-04 Jim Ingham <jingham@apple.com>
8341
8342 * valarith.c (find_size_for_pointer_math): New function, either returns
8343 the size for a pointer's target, returns 1 for void *, or errors for
8344 incomplete types.
8345 (value_add, value_sub): use find_size_for_pointer_math.
8346
8347 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8348
8349 * linux-low.c (linux_look_up_symbols): New hook.
8350 (linux_target_ops): Add linux_look_up_symbols.
8351 * remote-utils.c (decode_address): New function.
8352 (look_up_one_symbol): New function.
8353 * server.c (handle_query): Call target look_up_symbols hook.
8354 * server.h (look_up_one_symbol): Add prototype.
8355 * target.h (struct target_ops): Add look_up_symbols hook.
8356
8357 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8358
8359 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8360 override FP_REGNUM with frame->fp. Update copyright.
8361 * parse.c (num_std_regs, std_regs): Delete.
8362 (target_map_name_to_register): Do not search std_regs. Update
8363 function description.
8364 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8365 declarations. Update copyright.
8366 Fix PR gdb/251.
8367
8368 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8369
8370 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8371 after the last symbol in a block.
8372
8373 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8374
8375 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8376 is non zero as a found symbol.
8377
8378 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8379
8380 * findvar.c: Include "builtin-regs.h".
8381 (value_of_register): Call value_of_builtin_reg when applicable.
8382 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8383 (target_map_name_to_register): Call
8384 builtin_reg_map_name_to_regnum.
8385 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8386 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8387 (builtin_regs_h): Define.
8388 (builtin-regs.o): New target.
8389 (findvar.o): Add $(builtin_regs_h).
8390 * builtin-regs.c, builtin-regs.h: New files.
8391 * std-regs.c: New file.
8392 Partial fix for PR gdb/251.
8393
8394 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8395
8396 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8397 it's no longer required.
8398
8399 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8400
8401 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8402
8403 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8404
8405 From Jimi X <jimix@watson.ibm.com>:
8406 * rs6000-tdep.c (rs6000_software_single_step): Use
8407 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8408 and size. Use target_insert_breakpoint() and
8409 target_remove_breakpoint() to insert and remove breakpoints
8410 instead of explicit memory reads and writes.
8411
8412 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8413
8414 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8415 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8416 ELF_OBJECT_FORMAT ifdef.
8417
8418 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8419
8420 From Jimi X <jimix@watson.ibm.com>:
8421 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8422
8423 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8424
8425 From Jimi X <jimix@watson.ibm.com>:
8426 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8427 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8428
8429 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8430
8431 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8432 s/asprintf/xasprintf/.
8433 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8434
8435 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8436
8437 I believe Jeff Law denies responsability for this one:
8438 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8439 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8440 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8441 Work-around for PR gdb/366.
8442
8443 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8444
8445 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8446 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8447 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8448
8449 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8450
8451 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8452 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8453 information.
8454
8455 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8456
8457 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8458 maintainer.
8459
8460 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8461
8462 * README (Reporting Bugs in GDB): Document the bug web page as the
8463 prefered way of submitting bugs.
8464 Fix PR gdb/402.
8465
8466 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8467
8468 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8469 -1. Update comment.
8470 * gdbarch.h, gdbarch.c: Re-generate.
8471
8472 2002-04-07 Andreas Schwab <schwab@suse.de>
8473
8474 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8475 buffer to regcache_collect.
8476
8477 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8478
8479 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8480 * gdbarch.c, gdbarch.h: Re-generate.
8481
8482 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8483
8484 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8485 declaration. Fix -Werror.
8486
8487 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8488
8489 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8490 * gdbarch.c: Regenerate.
8491
8492 2002-04-05 Michael Snyder <msnyder@redhat.com>
8493
8494 * breakpoint.c (clear_command): Rewrite middle section to
8495 combine two loops with identical control conditions.
8496 Add a cleanup to eliminate a memory leak.
8497 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8498
8499 2002-04-05 H.J. Lu (hjl@gnu.org)
8500
8501 * solib-svr4.c (bkpt_names): Add "__start".
8502
8503 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8504
8505 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8506 as test for 64 bit target.
8507
8508 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8509
8510 * h8500-tdep.c (h8500_write_fp): Delete function.
8511 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8512 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8513 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8515 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8516 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8517 (s390_write_fp):
8518 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8519 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8520 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8521 (d10v_write_fp): Delete function.
8522 * inferior.h (write_fp, generic_target_write_fp): Delete
8523 declarations.
8524 * regcache.c (generic_target_write_fp): Delete function.
8525 (write_fp): Delete function.
8526 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8527 * gdbarch.h, gdbarch.c: Regenerate.
8528 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8529 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8530 (sparc64_write_fp): Delete declaration.
8531 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8532 (h8500_write_fp): Delete declaration.
8533
8534 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8535
8536 * sparc-tdep.c (sparc64_write_fp): Delete.
8537 (sparc_push_dummy_frame): Replace write_fp call with code to store
8538 the FP directly.
8539 (sparc_gdbarch_init): Do not initialize write_fp.
8540
8541 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8542
8543 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8544 clause.
8545
8546 2002-03-29 Jim Blandy <jimb@redhat.com>
8547
8548 * stack.c (get_selected_block): Add new argument `addr_in_block',
8549 used to return the exact code address we used to select the block,
8550 not just the block.
8551 * blockframe.c (get_frame_block, get_current_block): Same.
8552 * frame.h (get_frame_block, get_current_block,
8553 get_selected_block): Update declarations.
8554 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8555 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8556
8557 2002-04-05 Michael Snyder <msnyder@redhat.com>
8558
8559 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8560 warning message.
8561
8562 2002-04-05 J. Brobecker <brobecker@gnat.com>
8563
8564 * utils.c (xfullpath): New function.
8565 * defs.h (xfullpath): Add declaration.
8566 * source.c (openp): Use xfullpath in place of gdb_realpath to
8567 avoid resolving the basename part of filenames when the
8568 associated file is a symbolic link. This fixes a potential
8569 inconsistency between the filenames known to GDB and the
8570 filenames it prints in the annotations.
8571 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8572 to be able to match a filename with either the real filename, or
8573 the name of any symbolic link to this file.
8574 (lookup_partial_symtab): Ditto.
8575
8576 2002-04-04 Michael Snyder <msnyder@redhat.com>
8577
8578 * breakpoint.c: Add support for hardware breakpoints in overlays.
8579 (overlay_events_enabled): New state variable.
8580 (insert_breakpoints): Use overlay_events_enabled to decide
8581 whether to attempt to set a breakpoint at the overlay load addr.
8582 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8583 (remove_breakpoint): Use overlay_events_enabled to decide
8584 whether breakpoints need to be removed from overlay load addr.
8585 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8586 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8587 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8588 disable_overlay_breakpoints): Update overlay_events_enabled.
8589
8590 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8591
8592 * dwarf2read.c (struct function_range): New.
8593 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8594 (check_cu_functions): New.
8595 (read_file_scope): Initialize global function lists.
8596 Call dwarf_decode_line after processing children.
8597 (read_func_scope): Add to global function list.
8598 (dwarf_decode_lines): Call check_cu_functions everywhere
8599 record_line is called. Call record_line with a linenumber
8600 of 0 to mark sequence ends.
8601
8602 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8603
8604 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8605 change sync with glibc.
8606
8607 2002-04-03 Jim Blandy <jimb@redhat.com>
8608
8609 * configure.in: Call AC_C_INLINE.
8610 * configure: Regenerated.
8611
8612 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8613
8614 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8615 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8616
8617 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8618
8619 * NEWS: Mention gcore support on FreeBSD/i386.
8620
8621 * fbsd-proc.c: New file.
8622 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8623 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8624
8625 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8626 while statement.
8627
8628 2002-03-29 Jim Blandy <jimb@redhat.com>
8629
8630 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8631 unescaped newlines in string literals, but newer ones don't. So
8632 escape them.
8633
8634 2002-03-26 Michael Snyder <msnyder@redhat.com>
8635 Andrew Cagney <cagney@redhat.com>
8636
8637 * cli/cli-dump.c: New file. Dump memory to file,
8638 restore file to memory.
8639 * cli/cli-dump.h: New file.
8640 * Makefile.in: Add rules, dependencies for cli-dump.o.
8641 * NEWS: Mention new commands.
8642
8643 2002-03-28 Michael Snyder <msnyder@redhat.com>
8644
8645 * symfile.c (symbol_file_add): Move test for null symbols to later.
8646
8647 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8648
8649 From veksler at il.ibm.com:
8650 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8651 the xstrduped original path.
8652 Fix PR gdb/417.
8653
8654 2002-03-27 Michael Snyder <msnyder@redhat.com>
8655
8656 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8657 * infcmd.c (_initialize_infcmd): Ditto.
8658 * language.c (_initialize_language): Ditto.
8659 * symfile.c (_initialize_symfile): Ditto.
8660 * top.c (_init_main): Ditto.
8661 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8662
8663 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8664
8665 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8666 vector registers handling.
8667 (skip_prologue): Handle new AltiVec instructions. Fill in new
8668 fields of frame data.
8669 (frame_get_saved_regs): Fill in information for AltiVec registers.
8670
8671 2002-03-27 Jim Blandy <jimb@redhat.com>
8672
8673 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8674 a function; leave this macro here to invoke that function.
8675 (symbol_init_mangled_name): Declaration for that function.
8676 * symtab.c (symbol_init_mangled_name): New function.
8677
8678 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8679
8680 * valarith.c: Replace strerror with safe_strerror.
8681 * tracepoint.c: Ditto.
8682 * lin-lwp.c: Ditto.
8683 * go32-nat.c: Ditto.
8684 * inflow.c: Ditto.
8685 * gnu-nat.c: Ditto.
8686
8687 2002-03-27 Andreas Schwab <schwab@suse.de>
8688
8689 * event-top.c (command_line_handler): Remove useless if.
8690
8691 2002-03-27 Andreas Jaeger <aj@suse.de>
8692
8693 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8694 comment.
8695
8696 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8697
8698 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8699 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8700 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8701 (x86_64_linux_dr_get_status, supply_gregset),
8702 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8703 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8704 (x86_64_register_info_table): Add.
8705 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8706 (x86_64_register_raw_size, x86_64_register_virtual_type),
8707 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8708 general x86_64_register_info_table.
8709 (i386_gdbarch_init): gdbarch_register_bytes is now set
8710 dynamicaly during initialization.
8711 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8712 * gdbserver/linux-x86-64-low.c: Ditto.
8713
8714 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8715
8716 * gdbserver/server.c (main): Call target_signal_to_host_p
8717 and target_signal_to_host on signals received from the remote.
8718 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8719 target_signal_from_host on signals sent to the remote.
8720 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8721 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8722
8723 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8724
8725 * signals/signals.c: Include "server.h" in gdbserver build.
8726 (target_signal_from_name): Don't use STREQ.
8727 (_initialize_signals): Likewise. Don't include function in
8728 gdbserver build.
8729
8730 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8731
8732 * signals.c: Moved to...
8733 * signals/signals.c: Here.
8734 * Makefile (signals.o): Update.
8735
8736 2002-03-26 Jeff Law (law@redhat.com)
8737
8738 * somread.c (som_symtab_read): Remove some commented out code and
8739 updated related comments. Do not set the minimal symbol table to
8740 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8741 in a dynamic executable.
8742 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8743 where we are unable to find the minimal symbol for the given
8744 PC value.
8745
8746 2002-03-25 Jeff Law (law@redhat.com)
8747
8748 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8749
8750 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8751
8752 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8753
8754 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8755
8756 * command.h: Update copyright.
8757 (struct cmd_list_element): Replace definition with opaque
8758 declaration.
8759 (enum cmd_types): Document that it will eventually be moved to
8760 cli/cli-decode.h
8761 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8762 (MALLOCED_REPLACEMENT): Delete macro.
8763 * Makefile.in (cli_decode_h): Add $(command_h).
8764 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8765 * top.c: Include "cli/cli-decode.h".
8766 * completer.c: Include "cli/cli-decode.h".
8767 * maint.c: Include "cli/cli-decode.h".
8768 * cli/cli-decode.h: Include "command.h".
8769 (enum command_class): Delete.
8770 (enum cmd_types): Comment out.
8771 (enum cmd_auto_boolean): Delete.
8772 (enum var_types): Delete.
8773
8774 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8775
8776 * cli/cli-decode.c: Include "gdb_assert.h".
8777 (add_set_or_show_cmd): New static function.
8778 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8779 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8780 all fields, such as func, from the set command.
8781
8782 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8783
8784 * MAINTAINERS (sh-elf): Change warning flag to -w.
8785
8786 2002-03-23 Andrew Cagney <cagney@redhat.com>
8787
8788 * defs.h (error): Add printf format attribute.
8789 * thread-db.c (thread_from_lwp): Fix error format string.
8790 * stack.c (parse_frame_specification): Ditto.
8791 * cli/cli-decode.c (undef_cmd_error): Ditto.
8792 * scm-lang.c (scm_lookup_name): Ditto.
8793 * tracepoint.c (trace_error): Ditto.
8794 * remote-utils.c (usage): Ditto.
8795 * remote.c (compare_sections_command): Ditto.
8796 Fix PR gdb/328.
8797
8798 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8799
8800 * gdbtypes.c (append_composite_type_field): New function.
8801 (init_composite_type): New function.
8802 * gdbtypes.h (append_composite_type_field): Declare.
8803 (init_composite_type): Ditto.
8804
8805 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8806
8807 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8808 function.
8809 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8810 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8811 structure returning convention for SYSV ABI case, but not
8812 for GNU/Linux, FreeBSD, or NetBSD.
8813
8814 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8815
8816 * symtab.h (lookup_block_symbol): Add mangled_name argument
8817 to prototype.
8818
8819 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8820 with new mangled_name argument.
8821 * linespec.c (decode_line_1): Likewise.
8822 * valops (value_of_this): Likewise.
8823 * symtab.c (lookup_transparent_type): Likewise.
8824 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8825 (lookup_symbol): If we are given a mangled name, pass it down
8826 to lookup_symbol_aux.
8827 (lookup_block_symbol): If we are given a mangled name to check
8828 against, only return symbols which match it.
8829
8830 2002-03-22 Christopher Faylor <cgf@redhat.com>
8831
8832 * win32-nat.c (child_create_inferior): Check for proper shell to use
8833 here, in case the user changes it on the fly.
8834 (_initialize_inftarg): Remove shell path considerations.
8835
8836 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8837
8838 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8839 for gdbarch_max_register_raw_size and max_register_virtual_size.
8840 Adjust copyright year.
8841
8842 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8843
8844 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8845 in a function to cover the entire beginning of the function
8846 as well if it does not already.
8847
8848 2002-03-21 Tom Rix <trix@redhat.com>
8849
8850 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8851 (rs6000_ptrace64): Renamed from ptrace64.
8852
8853 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8854
8855 * gdbserver/remote-utils.c (remote_open): Don't call
8856 getprotobyname, we're all using TCP here so just use
8857 IPPROTO_TCP.
8858 * gdbserver/gdbreplay.c (remote_open): Ditto.
8859
8860 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8861
8862 * regcache.c (_initialize_regcache): No need to call
8863 build_regcache() at this time; it gets called whenever
8864 the gdbarch changes.
8865
8866 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8867
8868 * sparc-nat.c: Include sys/param.h where possible.
8869
8870 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8871
8872 Fix PR gdb/422.
8873 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8874 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8875 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8876 complex types.
8877 * stabsread.c (rs6000_builtin_type): Likewise.
8878 (read_sun_floating_type): Likewise.
8879
8880 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8881
8882 * stabsread.c (read_member_functions): Remove skip code for duplicate
8883 constructor/destructor methods. Use standard parsing for these
8884 methods and just do not chain them to the list of methods after
8885 parsing.
8886
8887 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8888
8889 * coffread.c: Remove redundant static declarations. Replace
8890 occurrences of `PTR' with `void *'.
8891 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8892 * top.h (quit_cover): Likewise.
8893 * defs.h (catch_errors): Likewise.
8894
8895 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8896
8897 * defs.h (XMALLOC): Define.
8898 * gdb-events.sh (XMALLOC): Delete macro.
8899 * gdb-events.c, gdb-events.h: Regenerate.
8900 * gdbarch.sh (XMALLOC): Delete macro.
8901 * gdbarch.c: Regenerate.
8902 * serial.c (XMALLOC): Delete macro.
8903 * ui-file.c (XMALLOC): Ditto.
8904 * ser-unix.h (XMALLOC): Ditto.
8905 * sh-tdep.c (XMALLOC): Ditto.
8906 * ui-out.c (XMALLOC): Ditto.
8907 * utils.c (XMALLOC): Ditto.
8908 * i386-tdep.c (XMALLOC): Ditto.
8909 * gdb-events.c (XMALLOC): Ditto.
8910 * d10v-tdep.c (XMALLOC): Ditto.
8911 * cli-out.c (XMALLOC): Ditto.
8912
8913 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8914 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8915 * ui-file.c, ui-out.c: Ditto.
8916
8917 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8918
8919 * command.h (struct cmd_list_element): Add field context.
8920 (set_cmd_context, get_cmd_context): Declare.
8921 * cli/cli-decode.h: Ditto.
8922 * cli/cli-decode.c (get_cmd_context): New function.
8923 (set_cmd_context): New function.
8924 (add_cmd): Initialize context.
8925 Part of fixing PR gdb/145 and PR gdb/146.
8926
8927 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8928
8929 * cli/cli-decode.c (cmd_type): New function.
8930 * command.h (cmd_type): Declare.
8931 * infrun.c (set_schedlock_func): Call function cmd_type.
8932 * kod.c (kod_set_os): Call cmd_type.
8933 * cris-tdep.c (cris_version_update): Use function cmd_type.
8934 (cris_mode_update, cris_abi_update): Ditto.
8935
8936 * command.h: (execute_cmd_post_hook): Declare.
8937 (execute_cmd_pre_hook): Declare.
8938 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8939 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8940 functions. Execute pre/post hook while ensuring that afterwords
8941 hook_in is cleared.
8942 * top.c (execute_command): Use execute_cmd_post_hook, and
8943 execute_cmd_pre_hook to execute pre/post commands.
8944 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8945 hook_stop_stub.
8946 (hook_stop_stub): Call execute_cmd_pre_hook.
8947
8948 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8949
8950 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8951 set'' and this leads to a core dump. Move xstrdup of
8952 operating_system to after check that it is not NULL.
8953
8954 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8955
8956 * kod.c (kod_set_os): Remove unnecessary check that
8957 ``command->type'' is set_cmd.
8958
8959 * valprint.c (set_input_radix): Use input_radix.
8960 (set_output_radix): Use output_radix.
8961 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8962 isn't reverted.
8963
8964 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8965
8966 * value.h (struct value): Delete field ``substring_addr''. Change
8967 aligner fields to force_doublest_align, force_longest_align,
8968 force_core_addr_align and force_pointer_aligh.
8969
8970 * value.h (struct value): Fix typo in above change.
8971
8972 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8973
8974 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8975 to fix internal_error from ``maintenance print architecture''.
8976
8977 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8978
8979 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8980 for gcc versions after gcc-2.8.1.
8981
8982 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8983
8984 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8985 for method resolution. Restore adjustment of ``this'' pointer after
8986 calling value_struct_elt, which was accidentally removed during the
8987 HP merge.
8988
8989 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8990
8991 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8992 value_of_register.
8993 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8994 get_saved_register.
8995 * value.h (value_of_register): Update.
8996
8997 2002-03-14 Richard Henderson <rth@redhat.com>
8998
8999 * configure.in: Detect declaration for canonicalize_file_name.
9000 * utils.c (canonicalize_file_name): Declare, if needed.
9001 (gdb_realpath): Prefer realpath if available and usable.
9002 * config.in, configure: Rebuild.
9003
9004 2002-03-14 Richard Henderson <rth@redhat.com>
9005
9006 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9007 a constant array bound.
9008
9009 * MAINTAINERS: Add myself to write-after-approval.
9010
9011 2002-03-14 Michael Snyder <msnyder@redhat.com>
9012
9013 * symfile.c (syms_from_objfile): Return immediately if no syms.
9014 (symbol_file_add): Return immediately if no syms.
9015 (find_sym_fns): Return immediately if no syms.
9016
9017 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9018
9019 * gdbserver/remote-util.c (remote_open): Print remote-side's
9020 IP address when remote debugging over the network.
9021
9022 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9023
9024 * config/sparc/fbsd.mh: Fix copyright.
9025 * config/sparc/fbsd.mt: Likewise.
9026
9027 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9028
9029 * MAINTAINERS: Fix typo in name of gdb warnings option.
9030 (x86-64): Fix formating so that this can be parsed by awk.
9031
9032 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9033
9034 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9035 * defs.h: Include "gdb/signals.h".
9036 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9037
9038 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9039
9040 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9041 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9042 from x86-64-tdep.h
9043
9044 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9045 Don Howard <dhoward@redhat.com>
9046
9047 * mips-tdep.c (ST0_FR): Define.
9048 (mips2_fp_compat): New function, temporarily disabled.
9049 (mips_read_fp_register_single): New function.
9050 (mips_read_fp_register_double): New function.
9051 (mips_print_register): Use them.
9052 (do_fp_register_row): Likewise.
9053
9054 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9055
9056 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9057 approval''.
9058
9059 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9060
9061 * stabsread.c (read_member_functions): Fix is_stub test for
9062 static member functions, improve comment.
9063
9064 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9065
9066 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9067 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9068 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9069 commands that set boolean values.
9070 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9071 (arm_rdi_resume): Always initialize PC.
9072 (arm_rdi_open): Don't use rslt as a boolean.
9073 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9074 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9075 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9076 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9077
9078 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9079
9080 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9081 * configure: Rebuilt.
9082
9083 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9084
9085 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9086 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9087
9088 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9089
9090 * cli/cli-decode.c (set_cmd_completer): New function.
9091 * command.h (set_cmd_completer): Declare.
9092 * cli/cli-decode.h (set_cmd_completer): Ditto.
9093
9094 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9095 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9096 * win32-nat.c (_initialize_inftarg): Ditto.
9097 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9098 * proc-api.c (_initialize_proc_api): Ditto.
9099 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9100 * source.c (_initialize_source): Ditto.
9101 * exec.c (_initialize_exec): Ditto.
9102 * solib.c (_initialize_solib): Ditto.
9103 * top.c (init_main): Ditto.
9104 * tracepoint.c (_initialize_tracepoint): Ditto.
9105 * symfile.c (_initialize_symfile): Ditto.
9106 * printcmd.c (_initialize_printcmd): Ditto.
9107 * infcmd.c (_initialize_infcmd): Ditto.
9108 * corefile.c (_initialize_core): Ditto.
9109
9110 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9111
9112 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9113
9114 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9115
9116 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9117
9118 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9119
9120 * NEWS: Update headings, 5.2 has branched.
9121
9122 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9123
9124 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9125 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9126 (register_addr, REGISTER_RAW_SIZE): Likewise.
9127 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9128 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9129
9130 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9131
9132 * MAINTAINERS (x86-64): Add myself.
9133 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9134 changed value_ptr -> struct value *
9135
9136 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9137
9138 * configure.host (sparc64-*-freebsd): Add.
9139 * configure.tgt: Likewise.
9140 * config/sparc/fbsd.mh: New file.
9141 * config/sparc/fbsd.mt: Likewise.
9142 * config/sparc/nm-fbsd.h: Likewise.
9143 * config/sparc/tm-fbsd.h: Likewise.
9144
9145 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9146
9147 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9148 regformats/reg-s390x.dat.
9149
9150 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9151
9152 * utils.c: Add FIXME explaining true/false problem.
9153
9154 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9155
9156 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9157
9158 2002-02-28 Michael Chastain <mec@shout.net>
9159
9160 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9161
9162 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9163
9164 * gdbserver/linux-s390-low.c: New file.
9165 * regformats/reg-s390.dat: New file.
9166 * regformats/reg-s390x.dat: New file.
9167 * gdbserver/configure.srv: Add S/390.
9168 * gdbserver/Makefile.in: Add S/390.
9169 * configure.tgt: Enable gdbserver for S/390.
9170
9171 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9172
9173 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9174 first line of the doc string for "info dos", except at the end of
9175 the sentence, since the short help stops at the first period.
9176
9177 2002-02-28 Jason Merrill <jason@redhat.com>
9178
9179 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9180
9181 2002-02-27 Fred Fish <fnf@redhat.com>
9182
9183 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9184 comment (dumy -> dummy).
9185
9186 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9187
9188 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9189
9190 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9191
9192 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9193
9194 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9195
9196 * gdbserver/acconfig.h: New file.
9197 * gdbserver/i387-fp.c: New file.
9198 * gdbserver/i387-fp.h: New file.
9199 * gdbserver/linux-x86-64.c: New file.
9200 * regformats/reg-x86-64.dat: New file.
9201 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9202 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9203 * gdbserver/configure.in: Add support for regsets.
9204 * gdbserver/config.in: Regenerate.
9205 * gdbserver/configure: Regenerate.
9206 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9207 * gdbserver/linux-low.h: New file.
9208 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9209 for regsets.
9210 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9211 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9212 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9213 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9214 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9215 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9216 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9217 "i387-fp.h". Add PTRACE_GETREGS and friends.
9218 * gdbserver/regcache.c (supply_register): New function.
9219 (supply_register_by_name): New function.
9220 (collect_register): New function.
9221 (collect_register_by_name): New function.
9222
9223 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9224
9225 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9226 (config.status): Add configure.srv dependency.
9227 (server_h): Add config.h dependency.
9228
9229 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9230
9231 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9232 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9233 * gdbserver/configure.srv: Change i386-*-linux* to use
9234 reg-i386-linux.o.
9235
9236 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9237
9238 * x86-64-tdep.c: Re-indent. Update copyright date.
9239
9240 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9241
9242 From Michal Ludvig <mludvig@suse.cz>:
9243 * x86-64-tdep.c (value.h): Delete.
9244 (gdb_assert.h): Include.
9245 (x86_64_register_convert_to_virtual,
9246 x86_64_register_convert_to_raw ): Add check which lets only
9247 floating-point values to be converted.
9248 (value_push): Delete.
9249 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9250 (i386_gdbarch_init): Number of register_bytes fixed.
9251
9252 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9253
9254 * MAINTAINERS: Add x86-64 target.
9255
9256 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9257
9258 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9259 * osfsolib.c (solib_map_sections): Ditto.
9260 * irix5-nat.c (solib_map_sections): Ditto.
9261 * corelow.c (gdb_check_format): Ditto.
9262 * symfile.c (symfile_bfd_open): Ditto.
9263 * solib.c (solib_map_sections): Ditto.
9264 Fix PR gdb/354.
9265
9266 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9267
9268 * remote.c (_initialize_remote): By default, disable ``e'' and
9269 ``E'' step out-of-range packets.
9270
9271 2002-02-26 Andreas Schwab <schwab@suse.de>
9272
9273 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9274 m68k_linux_frame_saved_pc.
9275 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9276 in_sigtramp.
9277 (SIGCONTEXT_PC_OFFSET): Remove.
9278 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9279 m68k_linux_sigtramp_saved_pc): New functions.
9280 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9281 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9282 (UCONTEXT_PC_OFFSET): Define.
9283 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9284 non-RT and RT signal trampolines.
9285
9286 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9289 (TARGET_NBPG, STACK_END_ADDR): Delete
9290 (VARIABLES_INSIDE_BLOCK): Delete.
9291
9292 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9293
9294 * utils.c (perror_with_name): Make string parameter constant.
9295 (print_sys_errmsg): Ditto.
9296 (query): Ditto.
9297 * defs.h (perror_with_name): Update.
9298 (print_sys_errmsg): Update.
9299 (query): Update.
9300
9301 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9302
9303 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9304 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9305
9306 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9307
9308 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9309 if it already matches the current architecture from the exec file.
9310 Include arch-utils.h for gdbarch_info_init prototype.
9311 * Makefile.in (rs6000-nat.o): Update dependencies.
9312
9313 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9314
9315 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9316 list of exported variables.
9317
9318 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9319
9320 * gdbserver/configure.srv: New file.
9321 * gdbserver/configure.in: Use configure.srv instead
9322 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9323 from it.
9324 * gdbserver/configure: Regenerated.
9325 * gdbserver/terminal.h: New file.
9326 * gdbserver/Makefile.in: Update for configure changes. Remove
9327 more unneeded include paths.
9328
9329 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9330
9331 From wiz at danbala:
9332 * config/sparc/tm-sp64.h: Fix grammar and typos.
9333 Fix PR gdb/287.
9334
9335 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9336
9337 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9338 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9339 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9340 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9341 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9342 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9343 * s390-tdep.c: Ditto.
9344 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9345 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9346 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9347 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9348 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9349 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9350 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9351 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9352 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9353 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9354 Fix PR gdb/378.
9355
9356 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9357
9358 * lin-thread.c: Delete file.
9359 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9360 to gdb_proc_service.h.
9361 * configure: Re-generate.
9362
9363 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9364 * serial.c (serial_open): Delete check for "ocd".
9365 Fix PR gdb/349.
9366
9367 * Makefile.in (linux-thread.o): Delete target.
9368 * linux-thread.c: Delete file.
9369
9370 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9371 renamed SH files to be consistent.
9372
9373 * symtab.c (sort_search_symbols): Use xfree.
9374
9375 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9376
9377 * arm-linux-tdep.c (arm_linux_init_abi): Register
9378 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9379 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9380 definition with undef, since we don't want the sysvr4 definition.
9381 (SKIP_TRAMPOLINE_CODE): Likewise.
9382
9383 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9384
9385 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9386
9387 * configure.in: (AC_CHECK_FUNCS) Added test for
9388 canonicalize_file_name Regenerated.
9389 * config.in, configure: Regenerated.
9390 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9391 defined use canonicalize_file_name.
9392
9393 2002-02-23 Michael Chastain <mec@shout.net>
9394
9395 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9396
9397 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9398
9399 * README: Remove references to cygnus.com.
9400 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9401 dot com'' form. Remove references to cygnus.com and sourceware.
9402
9403 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9404
9405 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9406 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9407 1003.1-2001 no longer allows "head -1".
9408 * gdb/Makefile.in (version.c): Likewise.
9409 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9410 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9411 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9412
9413 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9414
9415 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9416 * command.h (cmd_cfunc_eq): Declare.
9417 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9418
9419 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9420 ``struct cmd_list_element *''.
9421 * cli/cli-cmds.c (is_complete_command): Update. Use
9422 cmd_cfunc_eq.
9423 * top.c (execute_command): Pass the command to
9424 is_complete_command.
9425 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9426
9427 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9428
9429 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9430 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9431 architecture defines.
9432 * s390-tdep.c (s390_gdbarch_init): Likewise.
9433
9434 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9435
9436 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9437 (arm_linux_push_arguments): Likewise.
9438 (arm_linux_init_abi): Register them. Also register linux-specific
9439 call_dummy_words.
9440 (find_minsym_and_objfile): Use strcmp, not STREQ.
9441 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9442 (arm_linux_call_dummy_words): Delete declaration.
9443 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9444 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9445 declarations.
9446 (LOWEST_PC): Delete.
9447
9448 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9449
9450 * maint.c (print_section_info): Do not prepend `0x' to filepos
9451 output, it will be handled by local_hex_string_custom.
9452
9453 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9454
9455 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9456 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9457 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9458
9459 2002-02-22 Jim Blandy <jimb@redhat.com>
9460
9461 Indicate that the bcache functions don't change the strings
9462 they're passed.
9463 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9464 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9465
9466 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9467
9468 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9469
9470 2002-02-21 Christopher Faylor <cgf@redhat.com>
9471
9472 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9473 find the complete path to a loaded DLL.
9474
9475 2002-02-21 Fred Fish <fnf@redhat.com>
9476
9477 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9478 that marks the end of the range of a function, enter a line number
9479 entry that has a line number of zero and a PC offset that matches
9480 the end of the function. This starts a range of PC's for which no
9481 line number information is known.
9482 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9483 PC's for which no line number info is found (line number is zero)
9484 then we didn't find any valid line information.
9485 * symtab.h: Document use of zero line number entry.
9486
9487 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9488
9489 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9490 (have_ptrace_getvrregs): Define for run time checks.
9491 (gdb_vrregset_t): New type for Altivec register handling.
9492 (fetch_register, store_register): Fetch/store altivec register
9493 when needed.
9494 (fetch_altivec_register, store_altivec_register): New functions.
9495 (supply_vrregset, fill_vrregset): New functions.
9496 (fetch_altivec_registers, store_altivec_registers): New functions.
9497 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9498 registers as well.
9499
9500 2002-02-21 Jiri Smid <smid@suse.cz>
9501
9502 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9503
9504 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9505
9506 * Makefile.in (armnbsd-nat.o): Update dependencies.
9507 * armnbsd-nat.c (supply_gregset): New function. Common code to
9508 supply the integer register set.
9509 (supply_fparegset): New function. Similar for FPA registers.
9510 (fetch_regs, fetch_fp_regs): Use them.
9511 (fetch_core_registers): Likewise.
9512 (fetch_elfcore_registers): New function.
9513 (arm_netbsd_elfcore_fns): New core-file type specification.
9514 (_initialize_arm_netbsd_nat): Register it.
9515
9516 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9517
9518 * armnbsd-nat.c: Include gdbcore.h.
9519 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9520 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9521 'void' to declaration, to shut up ARI.
9522 (fetch_core_registers): Make static. Rewrite using supply_register.
9523 (arm_netbsd_core_fns): New core-file type specification.
9524 (_initialize_arm_netbsd_nat): New function.
9525
9526 2002-02-21 Christopher Faylor <cgf@redhat.com>
9527
9528 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9529 value.
9530
9531 2002-02-20 Christopher Faylor <cgf@redhat.com>
9532
9533 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9534 fails.
9535
9536 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9537
9538 * jv-exp.y (parse_number): Change type of implicit longs
9539 to builtin_type_uint64.
9540
9541 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9544 to be an integer instead of a `union wait'.
9545
9546 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9547
9548 * mips-linux-nat.c: Call the operating system GNU/Linux.
9549 * mips-linux-tdep.c: Likewise.
9550 * mips-tdep.c: Likewise.
9551
9552 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9553
9554 Fix PR gdb/265.
9555 * jv-exp.y (parse_number): Handle 64-bit integers.
9556
9557 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9558
9559 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9560 AC_STDC_HEADERS to AC_HEADER_STDC.
9561 * gdbserver/configure: Regenerated.
9562
9563 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9564
9565 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9566 is defined.
9567 * sparc-tdep.c (get_longjmp_target): Likewise.
9568
9569 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9570
9571 * News: Add news about ARM and Multi-arch. Mention the new target
9572 arm*-*-netbsd*.
9573
9574 2002-02-19 Jim Blandy <jimb@redhat.com>
9575
9576 * stabsread.c (error_type_complaint): Improve error message.
9577
9578 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9579
9580 * gdbserver/README: Update documentation.
9581 * gdbserver/configure.in: Update configury to match documentation.
9582 * gdbserver/Makefile.in: Likewise.
9583 * gdbserver/configure: Regenerated.
9584 * gdbserver/aclocal.m4: New file, generated by aclocal.
9585 * gdbserver/config.in: New file, generated by autoheader.
9586
9587 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9588
9589 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9590 armnbsd-nat.c.
9591
9592 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9593
9594 * arm-tdep.h (enum arm_float_model): New enum.
9595 (struct gdbarch_tdep): Add fp_model.
9596 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9597 up floating-point conversions until we know the floating-point model
9598 in use by the inferior. Don't complain about being unable to
9599 determine the ABI of the inferior when we don't have one.
9600 (arm_extract_return_value): Support different floating-point models.
9601 (arm_store_return_value): Likewise.
9602 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9603 ARM_FLOAT_SOFT.
9604 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9605
9606 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9607
9608 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9609 of ``current_gdbarch''.
9610
9611 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9612
9613 * armnbsd-nat.c : ANSIfy all function declarations.
9614 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9615 (fetch_inferior_registers): Re-implement in terms of above.
9616 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9617 (store_inferior_registers): Re-implement in terms of above.
9618
9619 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9620
9621 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9622 kernel.
9623 * arm-linux-tdep.c: Likewise.
9624 * config/arm/tm-linux.h: Likewise.
9625
9626 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9627
9628 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9629 * config/arm/nbsd.mt (TM_FILE): Delete.
9630 * config/arm/tm-nbsd.h: Delete.
9631
9632 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9633
9634 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9635 Initialize CALL_DUMMY_LENGTH.
9636
9637 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9638
9639 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9640 function.
9641 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9642 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9643 defines one thing and that is incorrect for this port.
9644 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9645
9646 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9647
9648 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9649
9650 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9651
9652 * win32-nat.c (display_selector): New function. Displays information
9653 about the information returned by GetThreadSelectorEntry API function.
9654 (display_selectors): New function. Displays the infomation of
9655 the selector given as argument, or of CS, DS ans FS selectors
9656 if no argument is given.
9657 ( _initialize_inftarg): Add "w32" as info prefix command.
9658 Add "info w32 selector" as command calling display_selectors.
9659
9660 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9661
9662 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9663 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9664 if not defined.
9665
9666 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9667
9668 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9669
9670 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9671
9672 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9673 (arm_fix_call_dummy): Call it.
9674 (arm_call_dummy_breakpoint_offset): Delete.
9675 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9676 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9677
9678 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9679
9680 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9681 Default to func_frame_chain_valid.
9682 * gdbarch.h, gdbarch.c: Re-generate.
9683 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9684
9685 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9686
9687 * ppc-linux-nat.c: Update copyright.
9688 (fetch_register, store_register): Add tid parameter, don't compute
9689 tid here.
9690 (fetch_ppc_registers, store_ppc_registers): Add tid
9691 parameter. Pass it along to callees.
9692 (fetch_inferior_registers, store_inferior_registers): Compute tid
9693 here, and pass it to calleed functions.
9694 (fill_gregset, supply_fpregset): Clean up formatting.
9695
9696 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9697
9698 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9699 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9700
9701 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9702
9703 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9704 * gdbarch.c gdbarch.h: Regenerate.
9705 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9706 function.
9707 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9708 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9709 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9710
9711 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9712 * arm-tdep.c (arm_get_longjmp_target): New function.
9713 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9714 this to a positive value register arm_get_longjmp_target as the
9715 longjmp handler.
9716 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9717 (arm_linux_init_abi): Set up longjmp description in tdep.
9718 * armnbsd-nat.c (get_longjmp_target): Delete.
9719 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9720 description in tdep.
9721 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9722 (get_longjmp_target): Delete declaration.
9723 (GET_LONGJMP_TARGET): Delete.
9724 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9725 (GET_LONGJMP_TARGET): Delete.
9726
9727 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9728
9729 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9730 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9731 of ``current_gdbarch''.
9732
9733 2002-02-17 Tom Tromey <tromey@redhat.com>
9734
9735 * cli/cli-cmds.c (compare_strings): New function.
9736 (complete_command): Only print each unique item once.
9737 * completer.h (complete_line): Declare.
9738 * completer.c (complete_line): New function.
9739 (line_completion_function): Use it.
9740
9741 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9742
9743 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9744 * gdbarch.h, gdbarch.c: Re-generate.
9745
9746 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9749
9750 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9751
9752 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9753 * valops.c (value_arg_coerce): Don't take the address of a reference
9754 to convert an argument to a reference.
9755
9756 2002-02-15 Christopher Faylor <cgf@redhat.com>
9757
9758 * win32-nat.c (get_image_name): New function.
9759 (handle_load_dll): Use get_image_name function.
9760 (get_child_debug_event): Avoid registering debug events until possibly
9761 execed process is started.
9762 (child_create_inferior): Allow invocation via shell so that command
9763 line redirection, etc. works ok.
9764 (_initialize_inftarg): Add new command: "set shell" to control whether
9765 a shell is used to start a process.
9766
9767 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9768
9769 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9770 instead of find_register_by_number.
9771 (cannot_store_register): Likewise.
9772
9773 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9774
9775 * dwarf2read.c: Replace fprintf (stderr, ...) by
9776 fprintf_unfiltered (gdb_stderr, ...).
9777
9778 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9779
9780 * gdbserver/gdbserver.1: Document --attach.
9781
9782 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9783
9784 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9785 descriptions.
9786 * arm-tdep.c (arm_default_arm_le_breakpoint)
9787 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9788 (arm_default_thumb_be_breakpoint): New. Initialize them from
9789 traditional breakpoint defines.
9790 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9791 (arm_gdbarch_init): Initialize new breakpoint variables.
9792 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9793 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9794 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9795 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9796 code out to ...
9797 (arm_netbsd_init_abi_common): ... here; new function.
9798 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9799 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9800 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9801 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9802
9803 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9804
9805 * arm-tdep.h (enum arm_abi): New enum.
9806 (struct gdbarch_tdep): New structure.
9807 (LOWEST_PC): Provide a default.
9808 (arm_gdbarch_register_os_abi): Declare new function.
9809 * arm-tdep.c (arm_abi_names): New array.
9810 (process_note_abi_tag_sections): New function.
9811 (get_elfosabi): New function.
9812 (arm_gdbarch_register_os_abi): New function.
9813 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9814 support for that ABI has been built in, then call the appropriate
9815 configuration routine. Use gdbarch_num_regs() to get the number
9816 of registers.
9817 (arm_dump_tdep): New function.
9818 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9819 place-holder functions.
9820 (_initialize_arm_tdep): Register them.
9821 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9822
9823 * armnbsd-tdep.c: New file.
9824 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9825 * config/arm/nbsd.mt (TDEPFILES): Add it.
9826 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9827
9828 * armnbsd-nat.c: Include regcache.h.
9829 * Makefile.in (armnbsd-nat.o): Update dependency list.
9830
9831 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9832
9833 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * gdbserver/Makefile.in: Fix typos in target rules.
9836
9837 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9838
9839 Fix part of PR gdb/267.
9840 * linespec.c (find_methods): Handle constructors specially for now.
9841
9842 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9843
9844 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9845 handling.
9846 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9847 standard_coerce_float_to_double().
9848
9849 2002-02-14 Christopher Faylor <cgf@redhat.com>
9850
9851 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9852 GDBINIT_FILENAME.
9853
9854 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9855
9856 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9857 find_variant_by_name, because it confuses the multiarch
9858 framework. Return NULL if there isn't an architecture with the
9859 user supplied name, instead of forcing a different one without
9860 recording the change with the multiarch machinery.
9861 (find_variant_by_name): Delete.
9862
9863 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9864
9865 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9866 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9867
9868 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9869
9870 * stack.c (print_frame_info_base): When calling
9871 print_frame_info_listing_hook, set current_source_symtab.
9872
9873 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9874
9875 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9876 and remove unused $(INCLUDE_DIR).
9877 Add regcache.c to OBS.
9878 Add generated register protocol files to clean target.
9879 Update dependencies for new objects, obsolete old target code.
9880
9881 * gdbserver/linux-low.c: Remove all platform-specific code to
9882 new files. Remove various dead code. Update to use regcache
9883 functionality.
9884 * gdbserver/remote-utils.c (fromhex): Add return statement
9885 to quiet warning.
9886 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9887 constant.
9888 (input_interrupt): Add integer parameter to match prototype
9889 of a signal handler.
9890 (outreg): Use register_data ().
9891 (prepare_resume_reply): Use gdbserver_expedite_regs.
9892 * gdbserver/server.c (main): Dynamically allocate own_buf because
9893 PBUFSIZ is no longer constant. Use registers_to_string () and
9894 registers_from_string ().
9895 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9896 for error (), fatal (), and warning (). Update definition of
9897 PBUFSIZ to use regcache functionality. Add include guard.
9898 * gdbserver/utils.c (fatal): Add missing ``const''.
9899 (warning): New function.
9900
9901 * regformats/regdat.sh: Include "regcache.h" in generated files.
9902 Provide init_registers () function.
9903 * regformats/regdef.h: Add prototype for set_register_cache ().
9904 Add include guard.
9905
9906 * gdbserver/linux-arm-low.c: New file.
9907 * gdbserver/linux-i386-low.c: New file.
9908 * gdbserver/linux-ia64-low.c: New file.
9909 * gdbserver/linux-m68k-low.c: New file.
9910 * gdbserver/linux-mips-low.c: New file.
9911 * gdbserver/linux-ppc-low.c: New file.
9912 * gdbserver/linux-sh-low.c: New file.
9913
9914 * gdbserver/regcache.c: New file.
9915 * gdbserver/regcache.h: New file.
9916
9917 * gdbserver/low-linux.c: Removed obsolete file.
9918
9919 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9922 * config/i386/linux.mt: Likewise.
9923 * config/ia64/linux.mt: Likewise.
9924 * config/m68k/linux.mh: Likewise.
9925 * config/powerpc/linux.mh: Likewise.
9926 * config/mips/linux.mt: Likewise.
9927
9928 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9929
9930 * config/i386/i386lynx.mh: Mark gdbserver variables
9931 as (currently) obsolete for this target.
9932 * config/i386/nbsd.mt: Likewise.
9933 * config/i386/nbsdelf.mt: Likewise.
9934 * config/m32r/m32r.mt: Likewise.
9935 * config/m68k/m68klynx.mh: Likewise.
9936 * config/m68k/nbsd.mt: Likewise.
9937 * config/m68k/sun3os4.mh: Likewise.
9938 * config/mips/vr5000.mt: Likewise.
9939 * config/ns32k/nbsd.mt: Likewise.
9940 * config/pa/hppabsd.mh: Likewise.
9941 * config/pa/hppaosf.mh: Likewise.
9942 * config/powerpc/nbsd.mt: Likewise.
9943 * config/rs6000/rs6000lynx.mh: Likewise.
9944 * config/s390/s390.mt: Likewise.
9945 * config/s390/s390x.mt: Likewise.
9946 * config/sparc/sparclynx.mh: Likewise.
9947 * config/sparc/sun4os4.mh: Likewise.
9948 * config/i386/x86-64linux.mt: Likewise.
9949 * config/sparc/linux.mh: Likewise.
9950
9951 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * configure.tgt: Configure gdbserver only for known working
9954 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9955 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9956 SUBDIRS if it is configured. Update comment for ${nativefile}.
9957 * configure: Regenerated.
9958
9959 2002-02-13 Michael Snyder <msnyder@redhat.com>
9960
9961 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9962
9963 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9964 (default_gcore_mach): Just return 0, work around a problem in bfd.
9965 (default_gcore_target): OK to return NULL if exec_bfd is null.
9966 (make_mem_sec): Use a cast, avoid a warning.
9967
9968 * procfs.c (find_memory_regions_callback): Use a cast instead of
9969 calling host_pointer_to_address (which complains if
9970 sizeof (host pointer) != sizeof (target pointer)).
9971 (procfs_make_note_section): Avoid overflow in psargs string.
9972
9973 * procfs.c (procfs_make_note_section): Make the default
9974 implementation return an error.
9975
9976 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9977
9978 * procfs.c (procfs_make_note_section): Provide a default definition
9979 (for alpha-dec-osf4.0f). Fix typos.
9980
9981 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9982
9983 * linux-proc.c: Add include of regcache.h.
9984 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9985
9986 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9987
9988 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9989 * memattr.c (create_mem_region): Disallow useless empty region.
9990 Regions are half-open intervals, so allow [A..B) [B..C) as
9991 non-overlapping.
9992
9993 2002-02-13 Michael Chastain <mec@shout.net>
9994
9995 * defs.h: Kill CONST_PTR.
9996 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9997 * c-lang.c (c_builtin_types): Likewise.
9998 * ch-lang.c (ch_builtin_types): Likewise.
9999 * f-lang.c (f_builtin_types): Likewise.
10000 * language.c (unknown_builtin_types): Likewise.
10001 * m2-lang.c (m2_builtin_types): Likewise.
10002 * p-lang.c (pascal_builtin_types): Likewise.
10003 * scm-lang.c (c_builtin_types): Likewise.
10004
10005 2002-02-13 Keith Seitz <keiths@redhat.com>
10006
10007 * arm-tdep.h (arm_get_next_pc): Add declaration.
10008
10009 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10010
10011 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10012 with other related struct-returning functions.
10013 (arm_extract_struct_value_address): New function.
10014 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10015 initialize float_format, double_format and long_double_format as
10016 appropriate to the endianness of the target.
10017 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10018 (arm_use_struct_convention): Delete declaration.
10019 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10020
10021 2002-02-13 Keith Seitz <keiths@redhat.com>
10022
10023 * defs.h (core_addr_to_string_nz): New function.
10024
10025 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10026
10027 Apply missing bits of 2002-01-15 patch.
10028 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10029 (fill_fpregset): Use i387_fill_fsave.
10030
10031 2002-02-12 Keith Seitz <keiths@redhat.com>
10032
10033 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10034 (core_addr_to_string_nz): New function.
10035
10036 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10037
10038 * arm-linux-nat.c: Really include arm-tdep.h.
10039 * config/arm/tm-linux.h (struct type, struct value): Declare.
10040
10041 2002-02-11 Michael Snyder <msnyder@redhat.com>
10042
10043 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10044 (gcore section): Ifdef for Solaris and Unixware only.
10045 (procfs_do_thread_registers): Unixware needs one lwpstatus
10046 per thread (not one prstatus or pstatus).
10047 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10048 not over all gdb threads. For unixware, call elfcore_write_pstatus
10049 once before iterating over threads.
10050
10051 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10052
10053 * arm-tdep.h: New file.
10054 * arm-tdep.c: Include arm-tdep.h.
10055 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10056 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10057 (arm_print_float_info, arm_register_type, convert_to_extended)
10058 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10059 (arm_extract_return_value, arm_register_name): Make static.
10060 (arm_software_single_step): Similarly. Fix types in declaration.
10061 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10062 (arm_store_return_value, arm_store_struct_return): New functions.
10063 (arm_gdbarch_init): Register the above functions. Also register
10064 call_dummy_start_offset, sizeof_call_dummy_words,
10065 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10066 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10067 max_register_virtual_size, register_size. Set up
10068 prologue_cache.saved_regs here, rather than ...
10069 (_initialize_arm_tdep): ... here.
10070 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10071 declarations.
10072 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10073 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10074 (arm_print_float_info, arm_register_type, convert_to_extended)
10075 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10076 (arm_extract_return_value, arm_register_name): Delete declarations.
10077 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10078 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10079 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10080 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10081 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10082 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10083 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10084 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10085 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10086 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10087 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10088 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10089 interface.
10090 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10091 * remote-rdi.c remote-rdp.c: Likewise.
10092 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10093 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10094 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10095 definition.
10096
10097 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10098 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10099 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10100 from non-ARM_ prefixed definitions.
10101 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10102 all uses of above.
10103 * remote-rdi.c remote-rdp.c: Likewise.
10104 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10105
10106 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10107
10108 * arm-tdep.c (arm_frameless_function_invocation)
10109 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10110 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10111 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10112 (arm_pop_frame, arm_get_next_pc): Make static.
10113 (arm_gdbarch_init): Register above in gdbarch structure.
10114 (arm_read_fp): Renamed from arm_target_read_fp.
10115 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10116 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10117 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10118 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10119 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10120 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10121 (arm_pc_is_thumb_dummy): Delete declarations.
10122 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10123 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10124 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10125 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10126
10127 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10128
10129 * symtab.c (compare_search_syms): New function.
10130 (sort_search_symbols): New function.
10131 (search_symbols): Sort symbols after searching rather than
10132 before.
10133
10134 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10135
10136 * NEWS: Linux -> GNU/Linux.
10137
10138 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10139
10140 * gdbarch.sh: For for level one methods, disallow a definition
10141 when partially multi-arched. Add comments explaining rationale.
10142 * gdbarch.h: Re-generate.
10143
10144 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10145
10146 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10147 multi-arch partial.
10148
10149 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10150
10151 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10152 field. Use diff -u.
10153 * gdbarch.c: Re-generate.
10154
10155 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10156
10157 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10158 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10159 partial.
10160
10161 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10162
10163 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10164 multi-arch partial.
10165 (PUSH_ARGUMENTS): Switch to using predefault.
10166 * gdbarch.c: Regenerate.
10167
10168 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10169
10170 * valops.c (PUSH_ARGUMENTS): Delete definition.
10171 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10172 partial. Default to default_push_arguments.
10173 * gdbarch.h, gdbarch.c: Regenerate.
10174
10175 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10176
10177 * defs.h (throw_exception): Rename return_to_top_level. Update
10178 comments.
10179 * utils.c (error_stream, internal_verror, quit): Ditto.
10180 * top.c (throw_exception, catcher): Ditto.
10181 * sparclet-rom.c (sparclet_load): Ditto.
10182 * remote.c (interrupt_query, minitelnet): Ditto.
10183 * remote-sds.c (interrupt_query): Ditto.
10184 * remote-mips.c (mips_error, mips_kill): Ditto.
10185 * ocd.c (interrupt_query): Ditto.
10186 * monitor.c (monitor_interrupt_query): Ditto.
10187 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10188 * target.h: Update comment.
10189
10190 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10191
10192 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10193
10194 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10195 default_double_format.
10196 * gdbarch.h, gdbarch.c: Re-generate.
10197 * findvar.c (floatformat_unknown): Delete variable definition.
10198 * doublest.h (floatformat_unknown): Delete variable declaration.
10199
10200 2002-02-09 Jim Blandy <jimb@redhat.com>
10201
10202 * stabsread.c (read_type): Add code to parse Sun's syntax for
10203 prototyped function types.
10204
10205 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10206
10207 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10208 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10209
10210 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10211
10212 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10213 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10214 now _initialize_xcoffsolib gets called again and overrides the
10215 commands from solib.c in a native configuration.
10216
10217 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10218
10219 * doublest.c (store_typed_floating): Don't try to return a value.
10220 Fixes PR gdb/290.
10221
10222 2002-02-08 Jim Blandy <jimb@redhat.com>
10223
10224 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10225 is prototyped and has no arguments, print its argument list as
10226 `(void)'.
10227
10228 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10229
10230 * MAINTAINERS (write-after-approval): Add myself.
10231 (paper-trail): I've escaped!
10232
10233 2002-02-08 Christopher Faylor <cgf@redhat.com>
10234
10235 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10236 changes.
10237 (_initialize_check_for_gdb_ini): Ditto.
10238
10239 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10240
10241 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10242 xaprintf -> xasprintf.
10243
10244 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10245
10246 * win32-nat.c: Remove use of printf and sprintf functions.
10247
10248 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10249
10250 * arm-tdep.c (arm_frame_chain_valid): Make static.
10251 (arm_push_arguments): Likewise.
10252 (arm_gdbarch_init): New function.
10253 (_initialize_arm_tdep): Call it.
10254 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10255 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10256 (FRAME_CHAIN_VALID): Delete.
10257 (arm_frame_chain_valid): Delete declaration.
10258 (PUSH_ARGUMENTS): Delete.
10259 (arm_push_arguments): Delete declaration.
10260 (CALL_DUMMY_P): Delete.
10261
10262 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10263 Corinna Vinschen <vinschen@redhat.com>
10264
10265 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10266 on builtin float types.
10267
10268 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10269
10270 * utils.c: Include <curses.h> before "bfd.h".
10271 * tui/tui-hooks.c: Likewise.
10272 * tui/tui.c: Likewise.
10273 * tui/tuiCommand.c: Likewise.
10274 * tui/tuiData.c: Likewise.
10275 * tui/tuiDataWin.c: Likewise.
10276 * tui/tuiDisassem.c: Likewise.
10277 * tui/tuiGeneralWin.c: Likewise.
10278 * tui/tuiIO.c: Likewise.
10279 * tui/tuiLayout.c: Likewise.
10280 * tui/tuiRegs.c: Likewise.
10281 * tui/tuiSource.c: Likewise.
10282 * tui/tuiSourceWin.c: Likewise.
10283 * tui/tuiStack.c: Likewise.
10284 * tui/tuiWin.c: Likewise.
10285
10286 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10287
10288 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10289 to include space for pseudoregs as well. Update loops accordingly.
10290 (sh_fp_frame_init_saved_regs): Ditto.
10291 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10292
10293 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10294
10295 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10296 Add Richard Earnshaw to Arm maintainers.
10297
10298 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10299
10300 * defs.h (warning_begin): Delete declaration.
10301
10302 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10303 Delete macro.
10304
10305 2002-02-07 Michael Snyder <msnyder@redhat.com>
10306
10307 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10308 Logic bug, remove misplaced else.
10309
10310 2002-02-07 Klee Dienes <klee@apple.com>
10311
10312 * fork-inferior.c (fork_inferior): Add '!' to the list of
10313 characters that need to be quoted when building a string for the
10314 shell. Quote '!' specifically with a backslash, since CSH chokes
10315 when trying to evaluate "str!str".
10316
10317 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10318
10319 * rdi-share/host.h: Only provide a typedef for bool if it is not
10320 defined.
10321
10322 2002-02-04 Michael Snyder <msnyder@redhat.com>
10323
10324 * breakpoint.h (enum bptype): Add new overlay event bp type.
10325 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10326
10327 * breakpoint.c (create_internal_breakpoint): New function.
10328 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10329 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10330 (create_thread_event_breakpoint): Ditto.
10331 (create_solib_event_breakpoint): Ditto.
10332 (create_overlay_event_breakpoint): New function.
10333 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10334 (update_breakpoints_after_exec): Delete and re-initialize
10335 overlay event breakpoints after an exec. Add FIXME comment
10336 about longjmp breakpoint.
10337 (print_it_typical): Ignore overlay event breakpoints.
10338 (print_one_breakpoint): Ditto.
10339 (mention): Ditto.
10340 (bpstat_what): Do not stop for overlay event breakpoints.
10341 (delete_breakpoint): Don't delete overlay event breakpoints.
10342 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10343 (breakpoint_re_set): Re-create overlay event breakpoint.
10344
10345 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10346 (overlay_manual_command): Disable overlay breakpoints.
10347 (overlay_off_command): Disable overlay breakpoints.
10348
10349 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10350
10351 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10352 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10353 to here from config/tm-arm.h.
10354 (coff_sym_is_thumb): Make static.
10355 (arm_elf_make_msymbol_special): New function.
10356 (arm_coff_make_msymbol_special): New function.
10357 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10358 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10359 (coff_sym_is_thumb): Delete declaration.
10360 (arm_elf_make_msymbol_special): Declare.
10361 (arm_coff_make_msymbol_special): Declare.
10362 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10363 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10364
10365 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10366
10367 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10368
10369 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10370
10371 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10372 * gdbarch.c gdbarch.h: Regenerate.
10373 * arch-utils.c (default_print_float_info): New function.
10374 * arch-utils.h (default_print_float_info): Prototype it.
10375 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10376 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10377 (PRINT_FLOAT_INFO): Document it.
10378
10379 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10380 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10381 (PRINT_FLOAT_INFO): Define.
10382
10383 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10384
10385 * win32-nat.c (_initialize_check_for_gdb_ini):
10386 Add typecast to sprintf argument to suppress a warning.
10387
10388 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10389
10390 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10391 to allow easier handling of pass state.
10392 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10393 that gives exception name and address.
10394 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10395 and set last_sig value to ourstatus->value.sig. Some missing
10396 exceptions added.
10397 (child_continue): Correctly report continue_status.
10398 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10399 TARGET_SIGNAL_0 (new default value).
10400 (child_resume): consider sig argument passed to decide if
10401 the exception should be passed to debuggee or not.
10402
10403 2002-02-05 Michael Snyder <msnyder@redhat.com>
10404
10405 * regcache.c (fetch_register): Call target_fetch_register
10406 only if we don't call FETCH_PSEUDO_REGISTER.
10407 (store_register): Call target_store_register only if we
10408 don't call STORE_PSEUDO_REGISTER.
10409
10410 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10411
10412 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10413 ELF_MAKE_MSYMBOL_SPECIAL.
10414 * gdbarch.c, gdbarch.h: Regenerate.
10415 * arch-utils.c (default_make_msymbol_special): New function.
10416 * arch-utils.h (default_make_msymbol_special): Export.
10417 * elfread.c (elf_symtab_read): Compile use of
10418 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10419 multiarched.
10420 * coffread.c (coff_symtab_read): Ditto, for
10421 COFF_MAKE_MSYMBOL_SPECIAL.
10422
10423 2002-02-05 Jim Blandy <jimb@redhat.com>
10424
10425 * solib-svr4.c (svr4_truncate_ptr): New function.
10426 (svr4_relocate_section_addresses): Do the address arithmetic with
10427 the appropriate truncation for target addresses, even when
10428 CORE_ADDR is larger than a target address.
10429
10430 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10431
10432 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10433 to (int *).
10434
10435 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10436
10437 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10438 code.
10439
10440 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10441
10442 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10443
10444 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10445
10446 * gdbserver/linux-low.c: Remove unused include files.
10447
10448 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10449
10450 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10451 (read_inferior_memory): Use it.
10452 (write_inferior_memory): Likewise.
10453
10454 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10457 grubbing through sys_errlist.
10458
10459 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10460
10461 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10462
10463 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10464 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10465
10466 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10467
10468 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10469 (do_sfunc, set_cmd_sfunc): New functions.
10470
10471 * command.h (struct cmd_list_element): Add field func.
10472 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10473 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10474 * cli/cli-decode.h: Ditto.
10475
10476 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10477 (help_all, help_cmd_list): Ditto.
10478 (find_cmd, complete_on_cmdlist): Ditto.
10479 * top.c (execute_command): Ditto.
10480
10481 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10482 function.sfunc.
10483
10484 * infcmd.c (notice_args_read): Fix function signature.
10485
10486 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10487 * cli/cli-decode.c (add_set_cmd): Ditto.
10488 * utils.c (initialize_utils): Ditto.
10489 * maint.c (_initialize_maint_cmds): Ditto.
10490 * infrun.c (_initialize_infrun): Ditto.
10491 * demangle.c (_initialize_demangler): Ditto.
10492 * remote.c (add_packet_config_cmd): Ditto.
10493 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10494 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10495 * proc-api.c (_initialize_proc_api): Ditto.
10496 * kod.c (_initialize_kod): Ditto.
10497 * valprint.c (_initialize_valprint): Ditto.
10498 * top.c (init_main): Ditto.
10499 * infcmd.c (_initialize_infcmd): Ditto.
10500 * corefile.c (_initialize_core): Ditto.
10501 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10502 * arch-utils.c (initialize_current_architecture): Ditto.
10503 (_initialize_gdbarch_utils): Ditto.
10504 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10505
10506 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10507 * wince.c (_initialize_inftarg): Ditto.
10508 * symfile.c (_initialize_symfile): Ditto.
10509 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10510 * language.c (_initialize_language): Ditto.
10511 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10512
10513 2002-02-04 Michael Snyder <msnyder@redhat.com>
10514
10515 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10516
10517 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10518
10519 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10520 Add rules for building the register data files.
10521
10522 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * regformats/regdat.sh: Add braces to the definition of
10525 expedite_regs_${arch}.
10526
10527 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * regformats/regdef.h (struct reg): Add comment describing the
10530 requirements for offset and size fields.
10531
10532 2002-02-04 Andreas Schwab <schwab@suse.de>
10533
10534 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10535 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10536
10537 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10538
10539 * gdbarch.sh (copyright): Update years in generated header.
10540 (SMASH_TEXT_ADDRESS): Add rule.
10541 * gdbarch.h, gdbarch.c: Re-generate.
10542 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10543 * dbxread.c: Likewise.
10544 * dwarfread.c: Likewise.
10545 * elfread.c: Likewise.
10546 * somread.c: Likewise.
10547
10548 * arm-tdep.c (arm_smash_text_address): New function.
10549 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10550
10551 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10552
10553 Add support for hardware watchpoints on win32 native.
10554 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10555 CONTEXT_DEBUG_REGISTERS.
10556 (dr variable): New variable. Static array containing a local copy
10557 of debug registers.
10558 (debug_registers_changed): New variable. Reflects when debug registers
10559 are changed and need to be written to inferior.
10560 (debug_registers_used): New variable. Reflects when any debug register
10561 was set, used when new threads are created.
10562 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10563 i386-nat code.
10564 (thread_rec): Set dr array if id is the thread of current_event .
10565 (child_continue, child_resume): Change the debug registers for all
10566 threads if debug_registers_changed.
10567 (child_add_thread): Change the debug registers if debug_registers_used.
10568 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10569 Link nm.h to new nm-cygwin.h file.
10570 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10571 of hardware registers.
10572
10573 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10574
10575 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10576 Restore behavour broken by 2002-01-20 Andrew Cagney
10577 <ac131313@redhat.com> IEEE_FLOAT removal.
10578
10579 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * c-valprint.c (c_val_print): Pass a proper valaddr to
10582 cp_print_class_method.
10583 * valops.c (search_struct_method): If there is only one method
10584 and args is NULL, return that method.
10585
10586 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10589 accessing tag_name directly.
10590
10591 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10592
10593 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10594 of accessing tag_name directly.
10595
10596 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10597
10598 PR gdb/280
10599 * gdbtypes.c (replace_type): New function.
10600 * gdbtypes.h (replace_type): Add prototype.
10601 * stabsread.c (read_type): Use replace_type.
10602
10603 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10604
10605 * Makefile.in (memattr.o): Add missing dependencies rule.
10606
10607 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10608
10609 * breakpoint.c (break_at_finish_command): Really export.
10610 (break_at_finish_at_depth_command): Ditto.
10611 (tbreak_at_finish_command): Ditto.
10612 * hppa-tdep.c: Include completer.h.
10613 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10614 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10615
10616 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10617
10618 * utils.c (do_write): New function.
10619 (error_stream): Rewrite combining the code from error_begin and
10620 verror.
10621 (verror): Rewrite using error_stream.
10622 (error_begin): Delete function.
10623
10624 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10625
10626 * utils.c (error_begin): Make static.
10627 * defs.h (error_begin): Delete declaration.
10628
10629 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10630 (decode_line_1): Use cplusplus_error instead of error_begin,
10631 cplusplus_hint and return_to_top_level.
10632 * coffread.c (coff_symfile_read): Use error instead of error_begin
10633 and return_to_top_level.
10634 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10635
10636 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10637
10638 * language.h (type_error, range_error): Make string parameter
10639 constant.
10640 * language.c (warning_pre_print): Delete extern declaration.
10641 * dwarfread.c (warning_pre_print): Ditto.
10642 * language.c (type_error, range_error): Rewrite to use verror and
10643 vwarning instead of warning_begin.
10644
10645 2002-02-01 Michael Snyder <msnyder@redhat.com>
10646
10647 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10648 (set_ignore_count): Move misplaced comment back where it belongs.
10649
10650 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10651
10652 * command.h (NO_FUNCTION): Delete macro.
10653 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10654 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10655 * tracepoint.c (_initialize_tracepoint): Ditto.
10656 * cli/cli-decode.c (add_set_cmd): Ditto.
10657 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10658
10659 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10662 Update ``this'' pointer when calling virtual functions.
10663
10664 2002-02-01 Michael Snyder <msnyder@redhat.com>
10665
10666 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10667 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10668
10669 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10670
10671 * regformats/reg-arm.dat: New file.
10672 * regformats/reg-i386.dat: New file.
10673 * regformats/reg-ia64.dat: New file.
10674 * regformats/reg-m68k.dat: New file.
10675 * regformats/reg-mips.dat: New file.
10676 * regformats/reg-ppc.dat: New file.
10677 * regformats/reg-sh.dat: New file.
10678 * regformats/regdef.h: New file.
10679 * regformats/regdat.sh: New file.
10680
10681 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10682
10683 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10684 (arm_frame_args_address, arm_frame_locals_address): New functions.
10685 (arm_frame_num_args): New function.
10686 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10687 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10688 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10689
10690 2002-01-31 Michael Snyder <msnyder@redhat.com>
10691
10692 * breakpoint.c (break_at_finish_command): Export.
10693 (break_at_finish_at_depth_command): Export.
10694 (tbreak_at_finish_command): Export.
10695 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10696 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10697 "txbreak" commands, which are HPPA specific.
10698
10699 * printcmd.c (disassemble_command): Remove an ancient
10700 artifact of an old merge.
10701
10702 * symfile.h (enum overlay_debugging_state):
10703 Define enum constant values for overlay mode.
10704 * symfile.c (overlay_debugging): Use enums instead of literals.
10705 (overlay_is_mapped, overlay_auto_command,
10706 overlay_manual_command): Ditto.
10707
10708 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10709 breakpoint_here_p, breakpoint_inserted_here_p,
10710 breakpoint_thread_match, bpstat_stop_status,
10711 describe_other_breakpoints, check_duplicates, clear_command):
10712 Coding standard fixes.
10713
10714 * target.c (target_xfer_memory): Add spaces, coding standard.
10715 (do_xfer_memory): Add missing line to trust-readonly
10716 code: check bfd SEC_READONLY flag for section.
10717
10718 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10719
10720 * PROBLEMS: Fix typo, 5.1->5.1.1.
10721
10722 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10725 data symbols, since we search based on textlow and texthigh.
10726 (find_pc_sect_symtab): Likewise.
10727
10728 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10729
10730 * defs.h (vwarning): Declare.
10731 * utils.c (vwarning): New function.
10732 (warning): Call vwarning.
10733 (warning_begin): Delete function.
10734
10735 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10736 the warning message.
10737 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10738 warning_begin.
10739
10740 2002-01-30 Michael Snyder <msnyder@redhat.com>
10741
10742 * NEWS: Mention "set trust-readonly-sections" command.
10743 Mention generate-core-file command.
10744
10745 2002-01-15 Michael Snyder <msnyder@redhat.com>
10746
10747 * target.c: New command, "set trust-readonly-sections on".
10748 (do_xfer_memory): Honor the suggestion to trust readonly sections
10749 by reading them from the object file instead of from the target.
10750 (initialize_targets): Register command "set trust-readonly-sections".
10751
10752 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10753
10754 * parse.c (target_map_name_to_register): Simplify, search regs and
10755 pseudo-regs using a single loop.
10756
10757 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10758
10759 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10760
10761 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10762
10763 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10764 * config/i386/i386v42mp.mh: Add i387-nat.o .
10765 * i386v4-nat.c: Include i387-nat.h.
10766 (supply_fpregset): Use i387_supply_fsave.
10767 (fill_fpregset): Use i387_fill_fsave.
10768
10769 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10770
10771 * arm-tdep.c (arm_call_dummy_words): Define.
10772 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10773 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10774 (CALL_DUMMY_WORDS): Define.
10775 (arm_call_dummy_words): Declare.
10776 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10777 (arm_linux_call_dummy_words): Declare.
10778
10779 2002-01-30 Andreas Schwab <schwab@suse.de>
10780
10781 * m68klinux-nat.c: Fix last change to use regcache_collect
10782 instead of referencing registers[] directly.
10783
10784 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10785
10786 * parse.c (target_map_name_to_register): Delete code wrapped in
10787 #ifdef REGISTER_NAME_ALIAS_HOOK.
10788
10789 2002-01-28 Michael Snyder <msnyder@redhat.com>
10790
10791 * regcache.c (legacy_read_register_gen): Need to be able to
10792 read pseudo-register as well as real register.
10793 (legacy_write_register_gen): Ditto.
10794
10795 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10796
10797 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10798 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10799 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10800 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10801 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10802 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10803 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10804 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10805 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10806 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10807 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10808 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10809 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10810 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10811 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10812 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10813 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10814 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10815 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10816 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10817
10818 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10819
10820 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10821 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10822 (initialize_current_architecture): Update target_byte_order using
10823 information from BFD.
10824 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10825 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10826
10827 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10828
10829 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10830 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10831
10832 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10833 #ifdef INVALID_FLOAT.
10834 * infcmd.c (do_registers_info): Ditto.
10835 * values.c (unpack_double): Ditto. Add comment.
10836
10837 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10838 already commented out.
10839
10840 2002-01-26 Andreas Schwab <schwab@suse.de>
10841
10842 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10843 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10844 registers and add support for PTRACE_GETREGS.
10845
10846 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10847
10848 GDB 5.1.1 released from 5.1 branch.
10849 * NEWS: Add 5.1.1 news.
10850 * README: Sync with 5.1 branch.
10851
10852 2002-01-23 Fred Fish <fnf@redhat.com>
10853
10854 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10855 stabstring on initial malloc. Reallocing will copy it for us,
10856 if necessary.
10857
10858 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10859
10860 * Makefile.in (hpread_h): Delete.
10861 (HFILES_NO_SRCDIR): Remove hpread.h.
10862 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10863 (hpread.o): Update dependencies.
10864 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10865
10866 * hp-psymtab-read.c: Remove file.
10867 * hp-symtab-read.c: Remove file.
10868 * hpread.h: Remove file.
10869
10870 * hpread.c: Merge all contents of hp-psymtab-read.c,
10871 hp-symtab-read.c and hpread.h into this file, as it was prior to
10872 January 1999.
10873
10874 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10875 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10876 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10877 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10878
10879 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10880
10881 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10882 fill_gregset): Call gdbarch_tdep() just once, assign result to
10883 variable and use that, instead of calling the function several
10884 times.
10885
10886 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10887
10888 * configure.host: Accept sparcv9 as alias for sparc64.
10889 * configure.tgt: Likewise.
10890
10891 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10892
10893 * solib-aix5.c (build_so_list_from_mapfile)
10894 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10895 arguments is not reversed.
10896 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10897 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10898
10899 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10900
10901 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10902 modified version of obsolete sh_fetch_pseudo_register.
10903 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10904 (sh4_register_read): New function.
10905 (sh_pseudo_register_write): New function. Renamed and modified
10906 version of obsolete sh_store_pseudo_register.
10907 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10908 (sh4_register_write): New function.
10909 (sh_gdbarch_init): Remove setting of gdbarch function
10910 fetch_pseudo_register and store_pseudo_register. Remove setting of
10911 register_convert_to_raw, register_convert_to_virtual,
10912 register_convertible.
10913 (sh_sh4_register_convertible): Delete. No longer needed. All is
10914 taken care by architecture specific functions
10915 register_read/register_write.
10916 (sh_sh4_register_convert_to_virtual): Make static.
10917 (sh_sh4_register_convert_to_raw): Ditto.
10918
10919 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10920
10921 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10922 (floatformat_is_nan, floatformat_mantissa): Ditto.
10923
10924 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10925 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10926 builtin_type_ieee_double_little,
10927 builtin_type_ieee_double_littlebyte_bigword,
10928 builtin_type_m68881_ext, builtin_type_i960_ext,
10929 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10930 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10931 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10932 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10933
10934 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10935
10936 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10937 parameter. Set frameless flag if it exists and depended of
10938 whether the scanned function is frameless or not.
10939 (xstormy16_skip_prologue): If function is frameless, return
10940 result of xstormy16_scan_prologue().
10941 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10942 call.
10943
10944 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10945
10946 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10947 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10948 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10949 sh_sh4_register_byte, sh_sh4_register_raw_size,
10950 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10951 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10952 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10953 sh_store_pseudo_register, sh_do_pseudo_register): Call
10954 gdbarch_tdep() just once, assign result to variable and use that,
10955 instead of calling the function several times.
10956
10957 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10958
10959 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10960 macros instead of LAST_FPU_CTRL_REGNUM.
10961 (store_register): Likewise.
10962
10963 2002-01-21 Jim Blandy <jimb@redhat.com>
10964
10965 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10966 is up-to-date before running the program, not just when a program
10967 exits.
10968
10969 2002-01-21 Fred Fish <fnf@redhat.com>
10970
10971 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10972 when we have found all instructions we are looking for.
10973
10974 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10975
10976 * arm-tdep.c (arm_register_name): New function.
10977 (arm_registers_names): Make static.
10978 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10979 (arm_register_name): Declare.
10980 (REGISTER_NAME): Use it.
10981
10982 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10983 Kevin Buettner <kevinb@redhat.com>
10984
10985 Convert arm targets to new FRAME interface.
10986 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10987 (arm_frame_find_save_regs): Delete.
10988 (arm_frame_init_saved_regs): New.
10989 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10990 Allocate extra_info as required. Convert all uses of fsr.regs
10991 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10992 to use extra_info.
10993 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10994 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10995 (check_prologue_cache, save_prologue_cache): Likewise.
10996 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10997 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10998 (FRAME_FIND_SAVED_REGS): Delete.
10999 (arm_frame_find_saved_regs): Delete prototype.
11000 (arm_frame_init_saved_regs): New prototype.
11001 (FRAME_INIT_SAVED_REGS): Define.
11002
11003 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11004
11005 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11006
11007 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11008
11009 From Jeff Law <law@redhat.com>:
11010 * infttrace.c: Include <sys/pstat.h>.
11011 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11012 exec file if the ttrace equivalent fails.
11013
11014 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11015
11016 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11017 (closeLogFile): Ditto.
11018
11019 2002-01-20 Michael Chastain <mec@shout.net>
11020
11021 * top.c (print_gdb_version): Bump copyright year to 2002.
11022
11023 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11024
11025 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11026 Zannoni and Eli Zaretskii.
11027
11028 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11029
11030 * buildsym.c: Update copyright years.
11031 * c-typeprint.c: Likewise.
11032 * dwarf2read.c: Likewise.
11033 * f-typeprint.c: Likewise.
11034 * gdbtypes.c: Likewise.
11035 * gdbtypes.h: Likewise.
11036 * hp-symtab-read.c: Likewise.
11037 * hpread.c: Likewise.
11038 * mdebugread.c: Likewise.
11039 * p-typeprint.c: Likewise.
11040
11041 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11042
11043 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11044 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11045 byte-order selectable.
11046 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11047 * arch-utils.c: Ditto.
11048 (set_endian): Ditto.
11049 (set_endian_from_file): Ditto.
11050 * gdbserver/low-sim.c (create_inferior): Ditto.
11051 * gdbarch.sh: Ditto.
11052 * gdbarch.h: Re-generate.
11053 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11054 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11055 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11056 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11057 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11058 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11059 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11060 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11061 macro definition.
11062 * config/mips/tm-wince.h: Remove #undef of macro
11063 TARGET_BYTE_ORDER_SELECTABLE.
11064 * config/sh/tm-wince.h: Ditto.
11065
11066 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11067
11068 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11069 member function fields. Add accessor macro
11070 TYPE_FN_FIELD_ARTIFICIAL.
11071 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11072 * c-typeprint.c (c_type_print_base): Skip artificial member
11073 functions.
11074
11075 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11076
11077 * f-typeprint.c: Delete unused function f_type_print_args.
11078 * p-typeprint.c: Delete unused function pascal_type_print_args.
11079
11080 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11081
11082 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11083 comment. Add ``artificial'' to ``union field_location''.
11084
11085 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11086
11087 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11088 * mdebugread.c (parse_symbol): Likewise.
11089 * stabsread.c (define_symbol): Likewise.
11090 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11091 initializing TYPE_FIELD_BITPOS to n (obsolete).
11092 (hpread_doc_function_type): Likewise.
11093 * hpread.c (hpread_function_type): Likewise.
11094
11095 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11096
11097 * configure.in (host_makefile_frag): Only require a host makefile
11098 fragment when a native build.
11099 * configure: Re-generate.
11100
11101 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11102
11103 * doublest.h (floatformat_from_type): Declare.
11104 * doublest.c (floatformat_from_type): New function.
11105 (convert_typed_floating): Use.
11106
11107 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11108 call to function floatformat_from_type.
11109
11110 * gdbarch.sh (IEEE_FLOAT): Delete.
11111 * gdbarch.h, gdbarch.c: Re-generate.
11112 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11113 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11114 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11115 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11116 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11117 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11118 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11119 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11120 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11121 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11122 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11123 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11124
11125 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11126 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11127 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11128 * sh-tdep.c (sh_gdbarch_init): Ditto.
11129 * mips-tdep.c (mips_gdbarch_init): Ditto.
11130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11131 * cris-tdep.c (cris_gdbarch_init): Ditto.
11132
11133 2002-01-20 Jiri Smid <smid@suse.cz>
11134
11135 * configure.host, configure.tgt: Support x86-64.
11136 * NEWS: Note new target x86-64.
11137
11138 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11139 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11140 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11141 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11142 x86-64-linux-nat.o): Fix dependencies.
11143
11144 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11145
11146 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11147 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11148 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11149 * config/sparc/xm-sun4os4.h: Delete file.
11150 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11151
11152 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11153
11154 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11155 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11156 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11157 * config/i386/i386lynx.mh (XM_FILE): Delete.
11158 * config/rs6000/xm-rs6000ly.h: Delete file.
11159 * config/sparc/xm-sparclynx.h: Delete file.
11160 * config/m68k/xm-m68klynx.h: Delete file.
11161 * config/i386/xm-i386lynx.h: Delete file.
11162 * config/xm-lynx.h: Delete file.
11163 * config/djgpp/fnchange.lst: Update.
11164
11165 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11166
11167 * alpha-tdep.c (alpha_register_byte): New function.
11168 (alpha_register_raw_size): Ditto.
11169 (alpha_register_virtual_size): Ditto.
11170 (alpha_skip_prologue_internal): Renamed from
11171 alpha_skip_prologue.
11172 (alpha_skip_prologue): New version that calls
11173 alpha_skip_prologue_internal.
11174 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11175 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11176 second argument from alpha_skip_prologue.
11177 (REGISTER_BYTE): Use alpha_register_byte.
11178 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11179 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11180 (FRAMELESS_FUNCTION_INVOCATION): Use
11181 generic_frameless_function_invocation_not.
11182 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11183 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11184
11185 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11186
11187 * config/mips/xm-news-mips.h: Delete file.
11188 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11189
11190 * config/m88k/xm-m88k.h: Delete file.
11191 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11192 * config/m88k/xm-delta88v4.h: Ditto.
11193 * config/m88k/xm-delta88.h: Ditto.
11194
11195 * config/alpha/xm-fbsd.h: Delete file.
11196 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11197
11198 * config/sparc/xm-sparc.h: Delete file.
11199 * Makefile.in (xm-sun4os4.h): Delete dependency.
11200 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11201 * config/sparc/xm-sun4os4.h: Ditto.
11202 * config/sparc/xm-linux.h: Ditto.
11203
11204 * config/i386/xm-windows.h: Delete file.
11205
11206 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11207
11208 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11209 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11210
11211 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11212
11213 * alpha-tdep.c (alpha_call_dummy_words): New.
11214 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11215 (CALL_DUMMY_P): Define.
11216 (CALL_DUMMY_WORDS): Define.
11217 (SIZEOF_CALL_DUMMY_WORDS): Define.
11218
11219 2002-01-19 Per Bothner <per@bothner.com>
11220
11221 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11222 isn't NULL, which can happen with some gcj-3.x-produced code.
11223
11224 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11225
11226 * alpha-tdep.c (alpha_register_virtual_type): New function.
11227 (alpha_init_frame_pc_first): Ditto.
11228 (alpha_fix_call_dummy): Ditto.
11229 (alpha_store_struct_return): Ditto.
11230 (alpha_extract_struct_value_address): Ditto.
11231 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11232 alpha_register_virtual_type.
11233 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11234 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11235 alpha_extract_struct_value_address.
11236 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11237 (INIT_FRAME_PC): Use init_frame_pc_noop.
11238 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11239
11240 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11241
11242 * i386gnu-nat.c: Include "i386-tdep.h".
11243 (fetch_fpregs): Simplify code dealing with uninitialized floating
11244 point states such that it doesn't require FP7_REGNUM.
11245
11246 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11247
11248 * alpha-tdep.c (frame_extra_info): New.
11249 (alpha_find_saved_regs): Make static. Use
11250 frame->extra_info.
11251 (alpha_frame_init_saved_regs): New function.
11252 (alpha_frame_saved_pc): Use frame->extra_info.
11253 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11254 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11255 (init_extra_frame_info): Rename to...
11256 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11257 (alpha_print_extra_frame_info): New function.
11258 (alpha_frame_locals_address): Ditto.
11259 (alpha_frame_args_address): Ditto.
11260 (alpha_pop_frame): Use frame->extra_info.
11261 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11262 alpha_frame_args_address.
11263 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11264 (alpha_find_saved_regs): Remove prototype.
11265 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11266 (EXTRA_FRAME_INFO): Remove.
11267 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11268 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11269
11270 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11271
11272 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11273 (alpha_cannot_fetch_register): Ditto.
11274 (alpha_cannot_store_register): Ditto.
11275 (alpha_register_convertible): Ditto.
11276 (alpha_use_struct_convention): Ditto.
11277 * config/alpha/tm-alpha.h: Update copyright years.
11278 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11279 (INNER_THAN): Use core_addr_lessthan.
11280 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11281 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11282 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11283 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11284 (FRAME_CHAIN): Remove unnecessary cast.
11285
11286 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11287
11288 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11289 obsolete.
11290
11291 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11292
11293 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11294 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11295 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11296 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11297 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11298 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11299 * x86-64-linux-nat.c: Ditto.
11300
11301 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11302
11303 * alpha-tdep.c (alpha_register_name): New function.
11304 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11305 (REGISTER_NAME): Define.
11306
11307 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11308
11309 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11310
11311 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11312
11313 * alpha-tdep.c: Update copyright years.
11314 (alpha_next_pc): New function.
11315 (alpha_software_single_step): Ditto.
11316 * config/alpha/tm-alpha.h: Add prototype for
11317 alpha_software_single_step.
11318
11319 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11320
11321 * alphabsd-nat.c: Update copyright years.
11322 (fill_gregset): Use regcache_collect.
11323 (fill_fpregset): Likewise.
11324 (fetch_inferior_registers): Only fetch integer registers
11325 if requested to do so.
11326 (store_inferior_registers): Only store integer registers
11327 if requested to do so.
11328
11329 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11330
11331 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11332 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11333 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11334 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11335 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11336 * config/arm/linux.mh (XDEPFILES): Delete.
11337 * config/arm/nbsd.mh (XDEPFILES): Delete.
11338 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11339 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11340 * config/i386/i386m3.mh (XDEPFILES): Delete.
11341 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11342 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11343 * config/i386/fbsd.mh (XDEPFILES): Delete.
11344 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11345 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11346 * config/i386/i386v4.mh (XDEPFILES): Delete.
11347 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11348 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11349 * config/i386/i386aix.mh (XDEPFILES): Delete.
11350 * config/i386/go32.mh (XDEPFILES): Delete.
11351 * config/i386/cygwin.mh (XDEPFILES): Delete.
11352 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11353 * config/i386/i386mach.mh (XDEPFILES): Delete.
11354 * config/i386/i386v32.mh (XDEPFILES): Delete.
11355 * config/i386/linux.mh (XDEPFILES): Delete.
11356 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11357 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11358 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11359 * config/i386/i386sco.mh (XDEPFILES): Delete.
11360 * config/i386/i386v.mh (XDEPFILES): Delete.
11361 * config/i386/nbsd.mh (XDEPFILES): Delete.
11362 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11363 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11364 * config/i386/symmetry.mh (XDEPFILES): Delete.
11365 * config/i386/obsd.mh (XDEPFILES): Delete.
11366 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11367 * config/ia64/linux.mh (XDEPFILES): Delete.
11368 * config/ia64/aix.mh (XDEPFILES): Delete.
11369 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11370 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11371 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11372 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11373 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11374 * config/m68k/linux.mh (XDEPFILES): Delete.
11375 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11376 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11377 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11378 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11379 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11380 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11381 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11382 * config/m88k/delta88.mh (XDEPFILES): Delete.
11383 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11384 * config/m88k/m88k.mh (XDEPFILES): Delete.
11385 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11386 * config/mips/linux.mh (XDEPFILES): Delete.
11387 * config/mips/irix6.mh (XDEPFILES): Delete.
11388 * config/mips/irix5.mh (XDEPFILES): Delete.
11389 * config/mips/irix4.mh (XDEPFILES): Delete.
11390 * config/mips/irix3.mh (XDEPFILES): Delete.
11391 * config/mips/decstation.mh (XDEPFILES): Delete.
11392 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11393 (NATDEPFILES): Move core-aout.o to here.
11394 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11395 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11396 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11397 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11398 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11399 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11400 * config/pa/hpux11.mh (XDEPFILES): Delete.
11401 * config/powerpc/aix.mh (XDEPFILES): Delete.
11402 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11403 * config/powerpc/linux.mh (XDEPFILES): Delete.
11404 * config/romp/rtbsd.mh: Rename XDEPFILES.
11405 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11406 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11407 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11408 * config/s390/s390.mh (XDEPFILES): Delete.
11409 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11410 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11411 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11412 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11413 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11414 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11415 * config/sparc/linux.mh (XDEPFILES): Delete.
11416 * config/vax/vaxult.mh (XDEPFILES): Delete.
11417 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11418 * Makefile.in (DEPFILES): Remove XDEPFILES.
11419
11420 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11421
11422 * utils.c (internal_verror): Fix comments, default is yes not no.
11423 Update queries to match. Default to quit and dump core.
11424
11425 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11426
11427 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11428 copyright.
11429 * defs.h, event-top.c, gdbcmd.h: Ditto.
11430 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11431 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11432 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11433 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11434 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11435 * mi/mi-main.c:Ditto.
11436
11437 * stack.c, symfile.c: Update copyright.
11438
11439 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11440
11441 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11442 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11443 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11444 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11445
11446 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11447
11448 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11449 * gdbserver/low-lynx.c (myattach): Likewise.
11450 * gdbserver/low-nbsd.c (myattach): Likewise.
11451 * gdbserver/low-sim.c (myattach): Likewise.
11452 * gdbserver/low-sparc.c (myattach): Likewise.
11453 * gdbserver/low-sun3.c (myattach): Likewise.
11454
11455 * gdbserver/low-linux.c (myattach): New function.
11456
11457 * gdbserver/server.c (attach_inferior): New function.
11458 (main): Handle "--attach".
11459
11460 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11461
11462 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11463 maintainer.
11464
11465 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * c-typeprint.c (is_type_conversion_operator): Add additional
11468 check for non-conversion operators.
11469
11470 2002-01-15 Michael Snyder <msnyder@redhat.com>
11471
11472 * linux-proc.c: Add "info proc" command, a la procfs.c.
11473 (read_mapping): New function, abstract and re-use code.
11474 (linux_find_memory_regions): Use new func read_mapping.
11475 (linux_info_proc_cmd): New function, implement "info proc".
11476 (_initialize_linux_proc): Add new command "info proc".
11477
11478 2002-01-15 Michael Snyder <msnyder@redhat.com>
11479
11480 * symfile.c (generic_load): Use bfd_map_over_sections method
11481 instead of manipulating bfd structure members directly.
11482 (add_section_size_callback): New function, bfd sections callback
11483 used by generic_load.
11484 (load_sections_callback): New function, bfd sections callback
11485 used by generic_load.
11486
11487 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11488
11489 [Based on work by Jim Blandy]
11490 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11491 (builtin_type_vec128): Export.
11492 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11493 types.
11494 (builtin_type_vec128): New builtin type for 128 bit vector
11495 registers.
11496 (build_gdbtypes): Initialize builtin_type_v16qi and
11497 builtin_type_v8hi. Create the vec128 register builtin type
11498 structure.
11499 (build_builtin_type_vec128): New function.
11500 (_initialize_gdbtypes): Register builtin_type_v16qi and
11501 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11502 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11503 AltiVec register to new builtin type.
11504
11505 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11506
11507 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11508 to make_cv_type.
11509
11510 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11511
11512 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11513 CLEAN_UP_REGISTER_VALUE.
11514 * regcache.c (supply_register): Update only call.
11515
11516 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11517
11518 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11519 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11520 a29k-*-vxworks* targets as obsolete.
11521
11522 2002-01-14 Michael Snyder <msnyder@redhat.com>
11523
11524 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11525 until we can resolve portability issues.
11526 * gregset.h: Remove references to fpxregs.
11527 * gcore.c (gcore_command): Initialize note_sec to NULL.
11528
11529 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11530
11531 * signals.c (target_signal_to_name): Rewrite. Only use
11532 signals[].name when in bounds and non-NULL.
11533
11534 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11535
11536 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11537 * signals.c (target_signal_to_name): Verify that SIG is within the
11538 bounds of the signals array.
11539
11540 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11541
11542 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11543
11544 2002-01-13 Keith Seitz <keiths@redhat.com>
11545
11546 * stack.c (print_frame_info_base): Print the frame's pc
11547 only if when print_frame_info_listing_hook is not defined.
11548
11549 2002-01-13 Keith Seitz <keiths@redhat.com>
11550
11551 * varobj.c (varobj_set_value): Make sure that there were no
11552 errors evaluating the object before attempting to set its
11553 value.
11554 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11555 so this offset adjustment is no longer necessary.
11556 (create_child): Don't set the error flag if the child is
11557 a CPLUS_FAKE_CHILD.
11558 (value_of_child): If value_fetch_lazy fails, return NULL
11559 so that callers will be notified that an error occurred.
11560 (c_value_of_variable): Delay check of variable's validity
11561 until later. We actually want all structs and unions to have
11562 the value "{...}".
11563 Do not return "???" for variables which could not be evaluated.
11564 This error condition must be returned to the caller so that it
11565 can get the error condition from gdb.
11566 (cplus_name_of_child): Adjust index for vptr before figuring
11567 out the name of the child.
11568 (cplus_value_of_child): If a child's (real) parent is not valid,
11569 don't even bother trying to give a value for it. Just return
11570 an error. Change all instances in this function.
11571 (cplus_type_of_child): If our parent is one of the "fake"
11572 parents, we need to get at the type of the real parent, and
11573 derive the child's true type using this information.
11574
11575 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11576
11577 From 2002-01-09 John Marshall <johnm@falch.net>:
11578 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11579 sources.redhat.com, and tweak some related URLs which had
11580 suffered from linkrot.
11581
11582 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11583
11584 From Jeff law:
11585 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11586 structures passed in registers.
11587
11588 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11589
11590 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11591 white space which prevented compilation. Reported by DSK
11592 <dsk@student.unsw.edu.au>.
11593
11594 2002-01-11 Michael Snyder <msnyder@redhat.com>
11595
11596 * symfile.c (build_section_addr_info_from_section_tab):
11597 Use bfd access method instead of manipulating bfd directly.
11598 (syms_from_objfile): Ditto.
11599 (simple_overlay_update_1): Ditto.
11600 (simple_overlay_update): Ditto.
11601 (generic_load): Ditto.
11602 (overlay_unmapped_address): FIXME comment, bfd access methods.
11603 (sections_overlap): FIXME comment, bfd access methods.
11604 (pc_in_mapped_range): FIXME comment, bfd access methods.
11605 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11606 (section_is_mapped): FIXME comment, bfd access methods.
11607 (section_is_overlay): FIXME comment, bfd access methods.
11608
11609 * symfile.c (generic_load): Whitespace and long line cleanups.
11610 Remove duplicate variable, change several local variables to
11611 more appropriate data types.
11612 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11613
11614 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11615
11616 From Peter Schauer:
11617 * language.c (longest_local_hex_string_custom): Use phex_nz to
11618 convert NUM to a hex string.
11619
11620 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11621
11622 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11623 the function.
11624 Update Copyright year.
11625
11626 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11627
11628 * language.c (longest_raw_hex_string): Delete unused function.
11629
11630 2002-01-11 Petr Sorfa <petrs@caldera.com>
11631
11632 * MAINTAINERS (write-after-approval): Add myself.
11633 * dwarf2read.c (read_tag_string_type): Handling of
11634 DW_AT_byte_size.
11635 (read_tag_string_type): FORTRAN fix to prevent propagation of
11636 first string size.
11637 (set_cu_language): Handling of DW_LANG_Fortran95
11638
11639 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11640
11641 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11642 GETPID(inferior_ptid).
11643 (store_inferior_registers): Likewise.
11644
11645 2002-01-10 Jason Merrill <jason@redhat.com>
11646
11647 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11648 Fix DW_OP_minus.
11649
11650 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11651
11652 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11653 and bfd/elf32-sh-nbsd.c.
11654
11655 2002-01-10 Michael Snyder <msnyder@redhat.com>
11656
11657 * NEWS: Mention --pid and corefile/proc-id behavior change.
11658
11659 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11660 * gcore.c: Include cli/cli-decode.h instead of command.h.
11661
11662 * main.c (captured_main): Add new command line option "--pid".
11663 If the second command line argument (following the symbol-file)
11664 begins with a digit, try to attach to it before trying to open
11665 it as a corefile.
11666 (print_gdb_help): Document the "--pid" argument.
11667
11668 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11669
11670 * completer.c (command_completer): New function.
11671
11672 * completer.h <command_completer>: Add prototype.
11673
11674 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11675 completer for the "help" command.
11676
11677 2002-01-09 Jason Merrill <jason@redhat.com>
11678
11679 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11680
11681 2002-01-09 Michael Snyder <msnyder@redhat.com>
11682
11683 * i386-linux-nat.c (fill_fpxregset): Make global.
11684 (store_fpxregset): Ditto.
11685
11686 * gregset.h (gdb_fpxregset_t): Define.
11687 (supply_fpxregset): Prototype.
11688 (fill_fpxregset): Prototype.
11689
11690 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11691
11692 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11693
11694 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11695 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11696 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11697
11698 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11699
11700 * MAINTAINERS: Update target maintainer rules so that any
11701 Maintainer can approve a tested patch for a maintenance-only
11702 target.
11703
11704 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11705
11706 * MAINTAINERS (write-after-approval): Add myself.
11707
11708 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11709 IN_SIGTRAMP.
11710
11711 2002-01-08 Michael Snyder <msnyder@redhat.com>
11712
11713 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11714 real name of the executable, rather than the /proc name.
11715
11716 2002-01-03 Michael Snyder <msnyder@redhat.com>
11717
11718 Implement a "generate-core-file" command in gdb, save target state.
11719 * gcore.c: New file. Implement new command 'generate-core-file'.
11720 Save a corefile image of the current state of the inferior.
11721 * linux-proc.c: Add linux-specific code for saving corefiles.
11722 * target.h (struct target_ops): Add new target vectors for saving
11723 corefiles; to_find_memory_regions and to_make_corefile_notes.
11724 (target_find_memory_regions): New macro.
11725 (target_make_corefile_notes): New macro.
11726 * target.c (update_current_target): Inherit new target methods.
11727 (dummy_find_memory_regions): New place-holder method.
11728 (dummy_make_corefile_notes): New place-holder method.
11729 (init_dummy_target): Initialize new dummy target vectors.
11730 * exec.c (exec_set_find_memory_regions): New function.
11731 Allow the exec_ops vector for memory regions to be taken over.
11732 (exec_make_note_section): New function, target vector method.
11733 * defs.h (exec_set_find_memory_regions): Export prototype.
11734 * procfs.c (proc_find_memory_regions): New function, corefile method.
11735 (procfs_make_note_section): New function, corefile method.
11736 (init_procfs_ops): Set new target vector pointers.
11737 (find_memory_regions_callback): New function.
11738 (procfs_do_thread_registers): New function.
11739 (procfs_corefile_thread_callback): New function.
11740 * sol-thread.c (sol_find_memory_regions): New function.
11741 (sol_make_note_section): New function.
11742 (init_sol_thread_ops): Initialize new target vectors.
11743 * inftarg.c (inftarg_set_find_memory_regions): New function.
11744 Allow to_find_memory_regions vector to be taken over.
11745 (inftarg_set_make_corefile_notes): New function.
11746 Allow to_make_corefile_notes vector to be taken over.
11747 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11748 interface layer if not target_has_execution (may be a corefile).
11749 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11750 * config/sparc/sun4sol2.mh: Ditto.
11751 * config/alpha/alpha-linux.mh: Ditto.
11752 * config/arm/linux.mh: Ditto.
11753 * config/i386/x86-64linux.mh: Ditto.
11754 * config/ia64/linux.mh: Ditto.
11755 * config/m68k/linux.mh: Ditto.
11756 * config/mips/linux.mh: Ditto.
11757 * config/powerpc/linux.mh: Ditto.
11758 * config/sparc/linux.mh: Ditto.
11759
11760 2002-01-07 Michael Snyder <msnyder@redhat.com>
11761
11762 * arm-linux-nat.c: Remove references to regcache.c internal data
11763 (registers[] and register_valid[]).
11764
11765 2002-01-07 Michael Snyder <msnyder@redhat.com>
11766
11767 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11768 so that attaching to a pid will automatically read the process's
11769 symbol file and shlibs.
11770 * Makefile.in: Add rule for linux-proc.o.
11771 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11772 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11773 * config/arm/linux.mh: Ditto.
11774 * config/i386/linux.mh: Ditto.
11775 * config/i386/x86-64linux.mh: Ditto.
11776 * config/ia64/linux.mh: Ditto.
11777 * config/m68k/linux.mh: Ditto.
11778 * config/mips/linux.mh: Ditto.
11779 * config/powerpc/linux.mh: Ditto.
11780 * config/sparc/linux.mh: Ditto.
11781
11782 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11783
11784 * win32-nat.c: Add i386-tdep.h dependency.
11785
11786 2002-01-07 Michael Snyder <msnyder@redhat.com>
11787
11788 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11789 instead of bfd_get_arch_size. Don't bail out just because
11790 there's no exec_bfd.
11791
11792 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11793 * p-valprint.c (pascal_object_print_value): Ditto.
11794 * somread.c (som_symtab_read): Ditto.
11795 * symfile.c (simple_free_overlay_region_table): Ditto.
11796 * valops.c (value_assign): Ditto.
11797
11798 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11799 use tilde_expand and strerror for opening save-tracepoints file.
11800
11801 * thread-db.c (thread_db_new_objfile): Indendation fix.
11802
11803 * infptrace.c (GDB_MAX_ALLOCA): New define.
11804 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11805 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11806 can be overridden with whatever value is appropriate to the host).
11807 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11808 alloca to allocate potentially large buffer.
11809 * rs6000-nat.c (child_xfer_memory): Ditto.
11810 * symm-nat.c (child_xfer_memory): Ditto.
11811 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11812
11813 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11814
11815 From Nick Clifton <nickc@redhat.com>
11816 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11817
11818 2002-01-07 Michael Snyder <msnyder@redhat.com>
11819
11820 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11821 Don't use exec_bfd if it's NULL.
11822
11823 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11824
11825 * valops.c (value_arg_coerce): Fix formatting.
11826
11827 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11828
11829 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11830 * gnu-nat.c: Ditto.
11831
11832 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11833
11834 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11835 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11836 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11837 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11838 z8k-coff have not been multi-arched. Update z8k-coff build
11839 status.
11840
11841 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11842
11843 * MAINTAINERS: Mark a29k target as obsolete.
11844 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11845 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11846 comments.
11847 * NEWS: Note that a29k targets are obsolete.
11848 * a29k-tdep.c: Mark as obsolete.
11849 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11850 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11851 a29k-*-vxworks* targets as obsolete.
11852 * remote-adapt.c: Obsolete.
11853 * remote-eb.c: Obsolete.
11854 * remote-mm.c: Obsolete.
11855 * remote-udi.c: Obsolete.
11856 * config/a29k/a29k-udi.mt: Obsolete.
11857 * config/a29k/a29k.mt: Obsolete.
11858 * config/a29k/tm-a29k.h: Obsolete.
11859 * config/a29k/tm-vx29k.h: Obsolete.
11860 * config/a29k/vx29k.mt: Obsolete.
11861
11862 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11863
11864 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11865 with BFD_ENDIAN_BIG.
11866
11867 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11868
11869 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11870 * configure, config.in: Re-generate.
11871 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11872 * defs.h: Do not include <endian.h>.
11873
11874 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11875
11876 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11877 * config.in: Regenerate.
11878 * configure.in: Update copyright years.
11879 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11880 * configure: Regenerate.
11881 * i386bsd-nat.c: Update copyright years.
11882 (fill_gregset): Use regcache_collect.
11883 (fetch_inferior_registers): Only fetch integer registers
11884 if requested to do so. Add support for XMM registers
11885 using PT_GETXMMREGS.
11886 (store_inferior_registers): Only store integer registers
11887 if requested to do so. Add support for XMM registers
11888 using PT_SETXMMREGS.
11889 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11890 (store_inferior_registers): Remove.
11891 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11892 (fetch_elfcore_registers): New function.
11893 (i386nbsd_elfcore_fns): New.
11894 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11895 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11896 i386bsd-nat.o.
11897 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11898 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11899 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11900 * config/i386/tm-nbsd.h: Update copyright years.
11901 (HAVE_SSE_REGS): Define.
11902 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11903 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11904 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11905 (SIGCONTEXT_PC_OFFSET): Remove.
11906 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11907
11908 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11909
11910 * configure.tgt: Remove powerpc-*-macos* target.
11911 * config/m68k/xm-mpw.h: Delete file.
11912 * config/xm-mpw.h: Delete file.
11913 * ser-mac.c: Delete file.
11914 * mpw-make.sed: Delete file.
11915 * mpw-config.in: Delete file.
11916 * mac-xdep.c: Delete file.
11917 * mac-gdb.r: Delete file.
11918 * mac-defs.h: Delete file.
11919 * mac-nat.c: Delete file.
11920 * config/powerpc/macos.mh: Delete file.
11921 * config/powerpc/macos.mt: Delete file.
11922 * config/powerpc/nm-macos.h: Delete file.
11923 * config/powerpc/tm-macos.h: Delete file.
11924 * source.c (openp, open_source_file): Remove obsolete code.
11925 * top.c (gdb_readline): Ditto.
11926 * utils.c (query): Ditto.
11927 * event-top.c (display_gdb_prompt): Ditto.
11928 * Makefile.in (ser-mac.o): Delete obsolete target.
11929 * NEWS: Update.
11930
11931 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11932
11933 * defs.h (BIG_ENDIAN): Delete macro definition.
11934 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11935 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11936 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11937 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11938 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11939 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11940 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11941 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11942 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11943 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11944 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11945 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11946 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11947 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11948 * gdbarch.c: Re-generate.
11949
11950 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11951
11952 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11953 for core files.
11954
11955 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11956
11957 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11958
11959 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11960
11961 * value.h (value_ptr): Delete typedef.
11962
11963 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11964
11965 * i386nbsd-nat.c: Update copyright years.
11966 Include i386-tdep.h.
11967
11968 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11969
11970 * stabsread.c: Update copyright years.
11971
11972 From Debashis Mahata <debashis.mahata@wipro.com>:
11973 (read_struct_fields): Deal with Sun C compiler erroneous stab
11974 output for structs and unions.
11975 Fix PR gdb/269.
11976
11977 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11978
11979 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11980 prototype.
11981
11982 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11983
11984 * cp-abi.c: Fix whitespace.
11985 (baseclass_offset): New wrapper function.
11986 * cp-abi.h (baseclass_offset): Add prototype.
11987 (struct cp_abi_ops): Add baseclass_offset pointer.
11988
11989 * valops.c (vb_match): Move to...
11990 * gnu-v2-abi.c (vb_match): here.
11991 * valops.c (baseclass_offset): Move to...
11992 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11993
11994 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11995
11996 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11997 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11998 * hpacc-abi.c (init_hpacc_ops): Likewise.
11999
12000 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12001
12002 * valops.c (find_overload_match): Accept obj as a
12003 reference parameter. Update it before returning.
12004 * value.h (find_overload_match): Update prototype.
12005 * eval.c (evaluate_subexp_standard): Pass object to
12006 find_overload_match by reference.
12007
12008 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12009
12010 * valarith.c: Replace value_ptr with struct value pointer. Remove
12011 register attribute from value declarations.
12012 * valops.c: Ditto.
12013 * value.h: Ditto.
12014 * scm-lang.c (scm_lookup_name): Ditto.
12015
12016 2002-01-03 Michael Snyder <msnyder@redhat.com>
12017
12018 Abstract the functionality of iterating over mapped memory
12019 regions into a general purpose iterator function.
12020 * procfs.c (iterate_over_mappings): New function, general purpose
12021 iterator for memory sections.
12022 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12023 (solib_mappings_callback): New function, callback for above.
12024 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12025 (info_mappings_callback): New function, callback for above.
12026
12027 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12028
12029 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12030
12031 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12032 * i386-tdep.c: Include "elf-bfd.h".
12033 (process_note_abi_tag_sections): New function.
12034 (i386_gdbarch_init): Add code to recognize various OS/ABI
12035 combinations.
12036
12037 * maint.c (_initialize_maint_cmds): Add missing \ in
12038 string-literal.
12039
12040 For older changes see ChangeLog-2001
12041 \f
12042 Local Variables:
12043 mode: change-log
12044 left-margin: 8
12045 fill-column: 74
12046 version-control: never
12047 End: