2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9cc0d196
EZ
12002-10-23 Elena Zannoni <ezannoni@redhat.com>
2
3 * symtab.c (symbol_demangled_name): New function.
4 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
5 turning most of it into a function.
6 (symbol_demangled_name): Export.
7
19de93d0
MS
82002-10-23 Michael Snyder <msnyder@redhat.com>
9
10 * valops.c (value_of_local): Restore quotes in error message.
11
89aad1f9
EZ
122002-10-23 Elena Zannoni <ezannoni@redhat.com>
13
14 * symtab.c (symbol_init_language_specific): New function.
15 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
16 turning most of it into a function.
17 (symbol_init_language_specific): Export.
18
d9fa45fe
DC
192002-10-23 David Carlton <carlton@math.stanford.edu>
20
21 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
22 (dwarf_attr_name): Ditto.
23 (dwarf_type_encoding_name): Ditto.
24 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
25 (process_die): Handle DW_TAG_namespace,
26 DW_TAG_imported_declaration, DW_TAG_imported_module.
27 (read_namespace): New function.
28
1045b512
JB
292002-10-22 Joel Brobecker <brobecker@gnat.com>
30
31 * configure.in: Define NEW_PROC_API on Interix too.
32 * configure: Regenerate.
33
342002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
35
36 * configure: Regenerate using the proper version of autoconf.
37
3987b9d4
EZ
382002-10-21 Elena Zannoni <ezannoni@redhat.com>
39
40 * findvar.c (read_var_value): Temporarily disable TLS code, until
41 complete TLS support is added.
42
9d774e44
EZ
432002-10-21 Jim Blandy <jimb@redhat.com>
44 Elena Zannoni <ezannoni@redhat.com>
45
46 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
47 for thread local storage locations.
48 (struct symbol): Add objfile field.
49 (SYMBOL_OBJFILE): Define.
50 * dwarf2read.c (is_thread_local): New static variable.
51 (new_symbol): If variable is in thread local fill in address class
52 and objfile appropriately.
53 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
54 stack operation.
55 * printcmd.c (address_info): Print the information for thread
56 local storage variable.
57 * findvar.c (read_var_value): In case of thread local variable,
58 defer to the target vector code to compute address.
59
bc4a16ae
EZ
602002-10-21 Elena Zannoni <ezannoni@redhat.com>
61
62 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
63 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
64
407caf07
EZ
652002-10-21 Elena Zannoni <ezannoni@redhat.com>
66
67 * symtab.h (address_class): Rename
68 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
69 * hpread.c (hpread_process_one_debug_symbol): Ditto.
70 * printcmd.c (address_info): Ditto.
71 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
72
005328e3
MK
732002-10-20 Mark Kettenis <kettenis@gnu.org>
74
afdb036a
MK
75 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
76 DBREG_DRX macro to acces debug registers.
77
ca02e098
MK
78 * Makefile.in (i386obsd-tdep.o): New target.
79
03cc47f7
MK
80 * solib-sunos.c: Include "bcache.h" and "regcache.h".
81 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
82
005328e3
MK
83 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
84 * config/i386/obsd.mt: New file.
85 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
86 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
87 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
88 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
89 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
90 * i386obsd-tdep.c: New file.
91
9c96f9f2
AF
922002-10-19 Adam Fedor <fedor@gnu.org>
93
94 * objc-exp.y (name_not_typename): Fix invalid comment.
95
ce1ed485
MK
962002-10-20 Mark Kettenis <kettenis@gnu.org>
97
98 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
99 to allocate partial syms and macro byte caches.
100
1efc7aaa
DC
1012002-10-18 David Carlton <carlton@math.stanford.edu>
102
103 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
104
7e1d63ec
AF
1052002-10-18 Adam Fedor <fedor@gnu.org>
106
107 * stabsread.c (find_name_end): New function.
108 (define_symbol): Use it.
109
6e8d29a9
DJ
1102002-10-18 Daniel Jacobowitz <drow@mvista.com>
111
112 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
113 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
114 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
115 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
116
1efc7aaa 1172002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
118
119 * symfile.h: Add opaque declaration for struct obstack.
120 Declare obsavestring to take a const char *.
121 * symfile.c (obsavestring): Make first argument a const char *.
122
1aeae86e
AF
1232002-10-16 Adam Fedor <fedor@gnu.org>
124
125 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
126 names when matching breakpoints in current file.
127
8b2dbe47
KB
1282002-10-16 Kevin Buettner <kevinb@redhat.com>
129
130 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
131 (read_tag_pointer_type): Add address class support.
132 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
133 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
134 New methods.
135 * gdbarch.h, gdbarch.c: Regenerate.
136 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
137 (make_type_with_address_space, recursive_type_dump): Add address
138 class support.
139 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
140 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
141 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
142
74451869
KD
1432002-10-16 Klee Dienes <kdienes@apple.com>
144
145 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
146 to get the last character of a char[] buffer, not
147 name[sizeof(vptr_name)-1].
148
ff4cb3e8
AF
1492002-10-14 Adam Fedor <fedor@gnu.org>
150
151 * symtab.h: New objc_specific struct.
152 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
153 (SYMBOL_DEMANGLED_NAME): Likewise.
154
da2cf7e0
AF
1552002-10-14 Adam Fedor <fedor@gnu.org>
156
157 * symfile.c (init_filename_language_table): Add ObjC file extension.
158
4a351cef
AF
1592002-10-14 Adam Fedor <fedor@gnu.org>
160
161 * utils.c (puts_filtered_tabular): New function.
162 (fprintf_symbol_filtered): Get ObjC demangled name.
163 * defs.h (puts_filtered_tabular): Declared.
164
9750e763
KB
1652002-10-14 Kevin Buettner <kevinb@redhat.com>
166
167 * c-lang.h (c_type_print_varspec_prefix): Delete.
168 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
169 ``need_post_space'' parameter. Adjust all callers.
170
eee771c1
DJ
1712002-10-14 Daniel Jacobowitz <drow@mvista.com>
172
173 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
174 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
175 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
176 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
177
46c82446
AF
1782002-10-13 Adam Fedor <fedor@gnu.org>
179
180 * source.c (print_source_lines): Update comments.
181
d069f99d
AF
1822002-10-13 Adam Fedor <fedor@gnu.org>
183
184 * valops.c (value_of_local): New function.
185 (value_of_this): Use it.
186 * value.h (value_of_local): Declared.
187
53c551b7
AF
1882002-10-13 Adam Fedor <fedor@gnu.org>
189
190 * parse.c: (length_of_subexp, prefixify_subexp): Handle
191 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
192
eb392fbf
AF
1932002-10-12 Adam Fedor <fedor@gnu.org>
194
195 * language.c (binop_result_type): Add language_objc to case.
196 (integral_type): Likewise.
197 (character_type): Likewise.
198 (string_type): Likewise.
199 (boolean_type): Likewise.
200 (structured_type): Likewise.
201 (binop_type_check): Likewise.
202
e2b23ee9
AF
2032002-10-11 Adam Fedor <fedor@gnu.org>
204
205 * printcmd.c (address_info): Print 'self' for ObjC.
206
b01ab485
AF
2072002-10-11 Adam Fedor <fedor@gnu.org>
208
209 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
210 OP_SELF.
211
806e6073
AF
2122002-10-11 Adam Fedor <fedor@gnu.org>
213
214 * language.h (CAST_IS_CONVERSION): Add language_objc.
215
50f85cdf
AF
2162002-10-11 Adam Fedor <fedor@gnu.org>
217
218 * defs.h (enum language): Add language_objc.
219
0d540cdf
KD
2202002-10-11 Klee Dienes <kdienes@apple.com>
221
222 * findvar.c (read_memory_typed_address): New function.
223 * gdbcore.h (read_memory_typed_address): Add prototype.
224 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
225 to read a value destined for a CORE_ADDR, not read_memory_integer.
226 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
227 (f77_get_dynamic_lowerbound): Ditto.
228
d5dc7960
MH
2292002-10-11 Martin M. Hunt <hunt@redhat.com>
230
231 * utils.c (string_to_core_addr): After turning string into
232 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
233 which will do necessary sign-extension, etc.
234
8343f86c
DJ
2352002-10-11 Daniel Jacobowitz <drow@mvista.com>
236
237 * c-exp.y (THIS): Delete token and grammar rule.
238 (yylex): Don't return THIS.
239 * cp-valprint.c (vtbl_ptr_name_old): Delete.
240 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
241 * demangle.c (cplus_markers): Update comment. Put '$'
242 first. Remove CPLUS_MARKER.
243 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
244 * jv-exp.y (THIS): Delete token and grammar rule.
245 (yylex): Don't return THIS.
246 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
247 * objc-exp.y (THIS): Delete token and grammar rule.
248 (yylex): Don't return THIS.
249 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
250 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
251 (read_member_functions): Likewise for opname.
252 (read_tilde_fields): Use is_cplus_marker.
253
254 * defs.h (CPLUS_MARKER): Don't define.
255 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
256 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
257 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
258 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
259 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
260
261 * config/i386/tm-i386v4.h: Delete file.
262 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
263 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
264 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
265 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
266 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
267 * config/i386/i386sco5.mt (TM_FILE): Likewise.
268 * config/i386/i386v4.mt (TM_FILE): Likewise.
269 * config/i386/ncr3000.mt (TM_FILE): Likewise.
270
967c0d83
MM
2712002-10-10 Marko Mlinar <markom@opencores.org>
272
273 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
274 accidentially not commited 2002-10-09
275 * gdbarch.h, gdbarch.c: Re-generate.
276
f74fa174
MM
2772002-10-09 Marko Mlinar <markom@opencores.org>
278
279 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
280 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
281 * gdbarch.h, gdbarch.c: Re-generate.
282
57349743
JB
2832002-10-08 Petr Sorfa <petrs@caldera.com>
284
285 Revised and re-submitted by John Wolfe <jlw@caldera.com>
286
287 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
288 so we can work on more than one compilation unit at a time. This
289 helps prepare GDB to handle inter-CU die references.
290 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
291 the code to be defined before struct comp_unit_head.
292 (comp_unit_head): Added new members - offset, cu_head,
293 begin_die, next and dwarf2_abbrevs.
294 (dwarf2_abbrevs): Removed single static var; now member of
295 struct comp_unit_head.
296 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
297 members.
298 (psymtab_to_symtab_1): Changed to work with the new
299 struct comp_unit_head.
300 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
301 constructs the dwarf2_abbrevs[] inside the cu_header.
302 (dwarf2_empty_abbrev_table): Now expects a ptr to a
303 dwarf2_abbrev table to clean up.
304 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
305 handling of dwarf2_abbrevs inside the cu_header.
306 (read_partial_die): Now supports the call to the new
307 dwarf2_lookup_abbrev.
308 (read_full_die): Now supports the call to the new
309 dwarf2_lookup_abbrev.
310
4092aadb
CF
3112002-10-06 Christopher Faylor <cgf@redhat.com>
312
313 * Makefile.in (install-gdbtk): Add missing continuation backslash to
314 insure that shell variables, such as "transformed_name" are propagated
315 to later shell statements in rule.
316
af0b2512
MK
3172002-10-06 Mark Kettenis <kettenis@gnu.org>
318
319 * config/i386/nm-i386sco.h: Add protection against
320 multiple-inclusion. Include "i386/nm-i386v.h".
321 (REGISTER_U_ADDR): Remove define.
322 (i386_register_u_addr): Remove prototype.
323
d6020d45
MS
3242002-10-04 Michael Snyder <msnyder@redhat.com>
325
326 * m32r-stub.c (handle_exception): Make sure exception is "trap"
327 before treating it as a single-step event.
328
7248f48e
AF
3292002-10-03 Adam Fedor <fedor@gnu.org>
330
331 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
332 (objc_demangle): Remove assignment in if statements, Replace
333 free with xfree.
334 (add_msglist): Likewise.
335 (end_msglist): Likewise.
336 (complare_selectors): Likewise.
337 (selectors_info): Likewise.
338 (compare_classes): Likewise.
339 (classes_info): Likewise.
340 (print_object_command): Likewise.
341 (find_objc_msgcall_submethod): Replace PTR with void *.
342 * objc-lang.h: Remove check for __STDC__.
343
52c6a6ac
JJ
3442002-10-03 Jeff Johnston <jjohnstn@redhat.com>
345
346 * ui-out.h (ui_out_field_fmt_int): New prototype.
347 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
348 of field width and alignment.
349 * stack.c (print_frame_info_base): When printing frame level, use
350 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
351 PR gdb/192
352
7e3cec17
JJ
3532002-10-03 Jeff Johnston <jjohnstn@redhat.com>
354
355 * MAINTAINERS: Add self to Write After Approval list.
356
a58dd373
EZ
3572002-10-02 Elena Zannoni <ezannoni@redhat.com>
358
359 * infcmd.c (interrupt_target_command_wrapper): Delete.
360 (interrupt_target_command): Make non static.
361 (nofp_registers_info): Make static.
362 * stack.c (return_command_wrapper): Delete.
363 (return_command): Make non static.
364
cee6ddeb
EZ
3652002-10-02 Elena Zannoni <ezannoni@redhat.com>
366
367 * event-top.c (gdb_setup_readline): New function. Code moved from
368 _initialize_event_loop().
369 (_initialize_event_loop): Call gdb_setup_readline().
370
c4ed33b9
AC
3712002-10-02 Andrew Cagney <ac131313@redhat.com>
372
373 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
374 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
375 * gdbarch.h, gdbarch.c: Re-generate.
376
cef4f5dd
DJ
3772002-10-02 Daniel Jacobowitz <drow@mvista.com>
378
379 Fix PR gdb/778
380 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
381 before recursing.
382 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
383 of fill_in_vptr_fieldno.
384
36dc181b 3852002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 386
36dc181b
EZ
387 * inferior.h (registers_info, stepi_command, nexti_command,
388 continue_command, interrupt_target_command): Export from infcmd.c.
389 * frame.h (args_info, selected_frame_level_changed_hook,
390 return_command): Export from stack.c.
391 * v850ice.c (stepi_command, nexti_command, continue_command): use
392 prototypes from inferior.h.
393 * tracepoint.c (registers_info, args_info, locals_info): Use
394 prototypes from frame.h and inferior.h.
395 * Makefile.in (mi-main.o): Add dependency on frame.h.
396
6f99cb26
AC
3972002-10-02 Andrew Cagney <ac131313@redhat.com>
398
da3eff49
AC
399 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
400 value in register 3 adjusted by ppc_gp0_regnum.
401
6f99cb26
AC
402 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
403
da615bee
MM
4042002-10-02 Marko Mlinar <markom@opencores.org>
405
406 * MAINTAINERS: Add myself to the Write After Approval list.
407
d154bee2
AO
4082002-10-01 Alexandre Oliva <aoliva@redhat.com>
409
62a49b2c
AO
410 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
411 of the section for the N64 ABI, fixed.
412
d154bee2
AO
413 * config/mips/tm-irix6.h: Include solib.h.
414
ed348acc
EZ
4152002-10-01 Elena Zannoni <ezannoni@redhat.com>
416
417 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
418 GNU operators.
419
da0f9dcd
AC
4202002-10-01 Andrew Cagney <ac131313@redhat.com>
421
422 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
423 and that "mi0" syntax has been removed.
424
bdf64bac
DC
4252002-09-30 David Carlton <carlton@math.stanford.edu>
426
427 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
428 * ppc-sysv-tdep.c: #include "gdb_string.h".
429 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
430 pacify GCC.
431
54c2a1e6
AC
4322002-10-01 Andrew Cagney <ac131313@redhat.com>
433
434 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
435 "vrsave"'s register number.
436
cedea778
AC
4372002-09-30 Andrew Cagney <ac131313@redhat.com>
438
439 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
440 use frame_unwind_signed_register to obtain the PC.
441 (mips_frame_chain): Handle a generic dummy frame.
442 (mips_init_extra_frame_info): When a generic dummy frame, don't
443 re-compute the frame base.
444 (mips_pop_frame): Handle generic dummy frames.
445 (mips_gdbarch_init): When generic dummy frames, set
446 use_generic_dummy_frames, push_dummy_frame to
447 generic_push_dummy_frame, pc_in_call_dummy to
448 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
449 generic_save_dummy_frame_tos.
450
68315eb8
AC
4512002-09-30 Andrew Cagney <ac131313@redhat.com>
452
453 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
454 against TOP when TOP was explictly set.
455 (generic_push_dummy_frame): Set TOP to zero.
456
3b8630c3
EZ
4572002-09-30 Elena Zannoni <ezannoni@redhat.com>
458
459 * event-loop.c (start_event_loop): Rename variable 'result' to
460 'gdb_result', to avoid conflicts with upcoming intepreters changes.
461
28ee05e9
KS
4622002-09-30 Keith Seitz <keiths@redhat.com>
463
464 * gdb-events.sh (selected_thread_changed): New event.
465 * gdb-events.c: Regenerated.
466 * gdb-events.h: Regenerated.
467
6eecb1c8
HPN
4682002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
469
470 * MAINTAINERS: Add self to Write After Approval list.
471
92df71f0
FN
4722002-09-30 Fernando Nasser <fnasser@redhat.com>
473
3b8630c3
EZ
474 * disasm.c: New file.
475 * disasm.h: New file.
92df71f0
FN
476 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
477 (compare_lines): Ditto.
478 (dump_insns): Ditto.
3b8630c3
EZ
479 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
480 argument.
92df71f0 481 (do_assembly_only): Ditto.
3b8630c3
EZ
482 (do_disassembly): Renamed to gdb_disassembly and moved to
483 disasm.c. Sdded uiout argument.
484 * Makefile.in: Add new files. Reorder SFILES list. Update
485 dependencies. Include libgdb.a later in the insight executable.
92df71f0 486
0c22854d
AC
4872002-09-29 Andrew Cagney <ac131313@redhat.com>
488
489 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
490 bfd/elf64-alpha-fbsd.c.
491
e67f2023
AC
4922002-09-29 Andrew Cagney <ac131313@redhat.com>
493
494 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
495 i386gnu-tdep.c.
496
89396210
AC
4972002-09-29 Andrew Cagney <ac131313@redhat.com>
498
499 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
500 __FUNCTION__.
501 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
502 function name.
503 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
504 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
505 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
506 (S_msg_sig_post_reply): Ditto.
507
7079c36c
CV
5082002-09-28 Corinna Vinschen <vinschen@redhat.com>
509
89396210
AC
510 * sh-tdep.c (sh_use_struct_convention): Use definition according
511 to ABI.
7079c36c
CV
512 (sh_push_arguments): Store in register with correct endianess.
513 (sh_default_store_return_value): Ditto.
514 (sh_gdbarch_init): Set sizeof long double to 8.
515
975ac915
MK
5162002-09-27 Mark Kettenis <kettenis@gnu.org>
517
518 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
519 Fix some whitespace problems.
520
9bbe19fb
DC
5212002-09-27 David Carlton <carlton@math.stanford.edu>
522
523 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
524 (mcore-tdep.o): Ditto.
525 (ns32k-tdep.o): Ditto.
526 (ns32knbsd-tdep.o): Ditto.
527 (sh3-rom.o): Ditto.
528 (vax-tdep.o): Ditto.
529 * cris-tdep.c: #include "gdb_string.h"
530 * mcore-tdep.c: Ditto.
531 * ns32k-tdep.c: Ditto.
532 * ns32knbsd-tdep.c: Ditto.
533 * sh3-rom.c: Ditto.
534 * vax-tdep.c: Ditto.
535
43b2fdc7
DC
5362002-09-27 David Carlton <carlton@math.stanford.edu>
537
538 * config/djgpp/fnchange.lst: Add entries for
539 gdb/testsuite/gdb.c++/m-static files.
540
e8cfbbd9
JW
5412002-09-27 Jim Wilson <wilson@redhat.com>
542
543 * MAINTAINERS: Add myself to the Write After Approval list.
544
43b2fdc7 5452002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
546
547 * mips-tdep.c (find_proc_desc): Initialize startaddr.
548
549
9f3b7f07
AC
5502002-09-26 Andrew Cagney <ac131313@redhat.com>
551
552 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
553 frame.
554
11269d7e
AC
5552002-09-26 Andrew Cagney <ac131313@redhat.com>
556
557 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
558 (rs6000_struct_return_address): Delete variable.
559 (rs6000_store_struct_return): Update.
560 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
561 deprecated_extract_struct_value_address.
562 (rs6000_frame_align): New function.
563 (rs6000_gdbarch_init): Set frame_align.
564
f15ab4a7
AC
5652002-09-26 Andrew Cagney <ac131313@redhat.com>
566
567 From Grace Sainsbury <graces@redhat.com>:
568 * Makefile.in (gdbtk-main.o): New target.
569 (gdb.o): New target.
570 (main_h): Define.
571 (main.o): Update dependencies.
572 (gdb$(EXEEXT)): Add gdb.o.
573 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
574 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
575 (SUBDIR_GDBTK_CLEAN): Set.
576 (install-gdbtk): Install the insight binary.
577 (uninstall-gdbtk): New target.
578 (all-gdbtk, clean-gdbtk): New rule.
579 * top.c (use_windows): Default to zero.
580 * main.c: Include "main.h".
581 (main): Delete.
582 (struct captured_main_args): Delete.
583 (gdb_main): New function.
584 * main.h: New file.
585 * gdb.c: New File.
586
e36180d7
AC
5872002-09-25 Andrew Cagney <cagney@redhat.com>
588
589 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
590 (frame_map_regnum_to_name): New function.
591 (frame_map_name_to_regnum): New function.
592 * frame.h (frame_map_name_to_regnum): Declare.
593 (frame_map_regnum_to_name): Declare.
594 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
595 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
596 * parse.c: Do not include "builtin-regs.h".
597 (target_map_name_to_register): Delete function.
598 (write_dollar_variable): Use frame_map_name_to_regnum.
599 * parser-defs.h (target_map_name_to_register): Delete declaration.
600 * expprint.c: Include "frame.h".
601 (print_subexp): Use frame_map_regnum_to_name.
602 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
603 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
604
8b69000d
AC
6052002-09-25 Andrew Cagney <ac131313@redhat.com>
606
607 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
608 wasn't saved, and the next innermost frame is a dummy, return the
609 dummy frame's link register.
610
046ca86a
JB
6112002-09-24 Jim Blandy <jimb@redhat.com>
612
613 Fix from Paul Breed:
614 * main.c (captured_main): Add a `break' after the case for 'b'.
615
94b66fa7
KS
6162002-09-24 Keith Seitz <keiths@redhat.com>
617
618 * varobj.c (c_type_of_child): Use get_target_type instead
619 of TYPE_TARGET_TYPE.
620
c214a6fd
FN
6212002-09-22 Fernando Nasser <fnasser@redhat.com>
622
53cb0458
FN
623 * source.c (get_current_or_default_source_symtab_and_line): Remove
624 function.
625 (set_default_source_symtab_and_line): New function. Attempts to
626 determine a source file to list lines from if one is not currently
627 defined.
628 (get_current_source_symtab_and_line): Initialize sal.pc and
629 sal.end fields.
630 (set_current_source_symtab_and_line): Mark argument as const.
631 * source.h: Update declarations and comments.
632 * linespec.c (decode_line_1): Replace call to removed routine above.
633 * stack.c (print_frame_info_base): Ditto.
634 * cli/cli-cmds.c (edit_command): Ditto.
635 (list_command): Ditto.
636
6372002-09-22 Fernando Nasser <fnasser@redhat.com>
638
d6020d45 639 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 640 sal.pc and sal.end fields.
c214a6fd
FN
641 (get_current_or_default_source_symtab_and_line): Ditto.
642 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
643 so we do not cause a new source symtab to be searched for (reverting an
644 unintentional change from the 2002-09-20 patch).
645 * scm-lang.c (scm_unpac): Ditto.
646
cc3b68a5
AC
6472002-09-21 Andrew Cagney <cagney@redhat.com>
648
649 * complaints.c (symfile_explanations): Remove new-line from
650 ``isolated_message''.
651 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
652 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
653
5835abe7
NC
6542002-09-20 Nick Clifton <nickc@redhat.com>
655
656 * NEWS: Announce that V850EA ISA is no longer supported.
657 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
658
a15ef5f5
DC
6592002-09-20 David Carlton <carlton@math.stanford.edu>
660
06ba1b39
DC
661 * Makefile.in (c-lang.o): Correct dependencies.
662 (utils.o): Gather dependencies.
663 (charset.o): Move.
a15ef5f5
DC
664 * c-lang.c: #include "gdb_string.h"
665
87885426
FN
6662002-09-20 Fernando Nasser <fnasser@redhat.com>
667
668 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
669 * cli/cli-cmds.c (list_command): New function. Implements the new
670 cli edit command.
671 (_init_cli_cmds): Add new command definition.
672 * gdb.1: Document edit command.
673 * doc/gdb.texinfo: Document edit command.
674
6752002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
676
677 * source.c: Make global variables current_source_symtab and
678 current_source_line static.
679 (list_command): Moved to cli/cli-cmds.c.
680 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
681 (get_first_line_listed): New accessor function.
682 (get_lines_to_list): New accessor function.
683 (get_current_source_symtab_and_line): New function. Retrieves the
684 position in the source code that we consider current.
685 (get_current_or_default_source_symtab_and_line): New function.
686 Like the above but attempts to determine a default position if one
687 is not currently defined.
688 (set_current_source_symtab_and_line): New function. Sets the source
689 code position considered current and returns the previously set one.
690 (clear_current_source_symtab_and_line): Reset stored information about
691 a current source line.
692 (_initialize_source): Remove registration for the "list" command and
693 its alias.
694 * source.h: Add declarations for the new functions above.
695 * symtab.h: Remove declarations for the global variables mentioned
696 above.
697 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
698 obtain current source line.
699 * linespec.c (decode_line_1): Ditto.
700 * macroscope.c (default_macro_scope): Ditto.
701 * scm-lang.c (scm_unpac): Ditto.
702 * stack.c (print_frame_info_base): Ditto.
703 * symfile.c (clear_symtab_users): Ditto.
704 * symtab.c (decode_line_spec): Ditto.
705 * cli/cli-cmds.c (list_command): Moved here from source.c.
706 (ambiguous_line_spec): Moved here from source.c.
707 (_init_cli_cmds): Add definition for "list" and its alias.
708 * Makefile.in: Update dependencies.
709
ddd216ea
CV
7102002-09-20 Corinna Vinschen <vinschen@redhat.com>
711
712 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
713 with what gcc thinks is correct.
714
6d305052
CV
7152002-09-20 Corinna Vinschen <vinschen@redhat.com>
716
717 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
718 multiple register push instruction.
719
234b45d4
KB
7202002-09-19 Jim Blandy <jimb@redhat.com>
721
722 Add support for distinct host and target character sets.
723 * charset.c, charset.h: New files.
724 * c-exp.y: #include "charset.h".
725 (yylex): Convert character and string literals to the target
726 character set, before returning them as the semantic value of the
727 token.
728 * c-lang.c: #include "charset.h".
729 (c_emit_char): Use charset-specific methods to recognize
730 characters with backslash escape forms, to decide which characters
731 to print literally and which to print using numeric escape
732 sequences, and to convert target characters to host characters
733 before printing.
734 * utils.c: #include "charset.h".
735 (no_control_char_error): New function.
736 (parse_escape): Use charset-specific methods to recognize
737 backslash escapes, parse `control character' notation, and convert
738 characters from the host character set to the target character set.
739 * configure.in: Set the default host character set.
740 Check where to find iconv, and what its argument types might be.
741 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
742 * Makefile.in (SFILES): List charset.c.
743 (COMMON_OBS): List charset.o.
744 (charset.o): New rule.
745 (charset_h): New header dependency variable.
746 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
747 (LIBICONV): New variable, set by configure.
748 (CLIBS): Include $(LIBICONV) here.
749 * aclocal.m4, config.in, configure: Regenerated.
750
525d6a61
JB
7512002-09-19 Joel Brobecker <brobecker@gnat.com>
752
753 * ada-exp.y: Add missing semicolons to end rules. Fixes a
754 bison 1.35 warning.
755
3ed93867
RE
7562002-09-19 Richard Earnshaw <rearnsha@arm.com>
757
758 * gdb_mbuild.sh: New file.
759
437666f8
AC
7602002-09-19 Andrew Cagney <ac131313@redhat.com>
761
762 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
763
389e51db
AC
7642002-09-18 Andrew Cagney <ac131313@redhat.com>
765
766 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
767 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
768 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
769 valops.c, value.h: Revert previous change.
770
3b4efeaa
MS
7712002-09-18 Michael Snyder <msnyder@redhat.com>
772
773 Preliminary support for Objective-C:
774 * defs.h (language_objc): New enum value.
775 (puts_filtered_tabular): Declaration only, exported from utils.c.
776 (skip_quoted): Delete, declared in completer.h.
777 * c-exp.y: Include completer.h.
778 * p-exp.y: Ditto.
779 * jv-exp.y: Ditto.
780 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
781 New operator enum values.
782 * language.h (CAST_IS_CONVERSION): Test for language_objc.
783 * language.c (binop_result_type): Handle language_objc case.
784 (integral_type, character_type, string_type, boolean_type,
785 structured_type, binop_type_check): Ditto.
786 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
787 (struct objc_specific): Add to general_symbol_info.
788 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
789 (SYMBOL_DEMANGLED_NAME): Handle objc case.
790 * parser-defs.h (struct objc_class_str): New struct type.
791 (start_msglist, end_msglist, add_msglist): Declaration only,
792 exported from objc-lang.c.
793 * value.h (value_of_local, value_nsstring,
794 call_function_by_hand_expecting_type): Exported from valops.c.
795 * valops.c (find_function_addr): Export.
796 (call_function_by_hand_expecting_type): New function.
797 (value_of_local): New function.
798 * symfile.c (init_filename_language_table): Add ".m" extension
799 for Objective-C.
800 * utils.c (puts_filtered_tabular): New function.
801 (fprintf_symbol_filtered): Add objc demangling support (disabled).
802 (set/show demangle): Extend help-string to refer to ObjC.
803 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
804 * stabsread.c (symbol_reference_defined): Objective-C symbols
805 may contain colons: make allowances when scanning stabs strings
806 for colons.
807 (objc_find_colon): New function.
808 * printcmd.c (address_info): If language == objc then print
809 "self" instead of "this".
810 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
811 OP_NSSTRING, and OP_SELF.
812 (prefixify_subexp): Ditto.
813 * source.c (print_source_lines): Mention objc in comment.
814 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
815 method names.
816
b9caf505
AC
8172002-09-18 Andrew Cagney <ac131313@redhat.com>
818
819 * complaints.h: Update copyright.
820 (struct complaints): Declare.
821 (struct complaint): Make `message' constant.
822 (internal_complaint): Declare.
823 (complaint): Declare.
824 (complaint_root): Delete declaration.
825 (symfile_complaints): Delete declaration.
826 (struct complaints): Add opaque declaration.
827 (clear_complaints): Add a complaints parameter.
828 * complaints.c: Update copyright.
829 (enum complaint_series): Define.
830 (complaint_root): Delete.
831 (struct complaints): Define.
832 (complaint_sentinel, symfile_complaint_book): New variables.
833 (symfile_explanations, symfile_complaints): New variables.
834 New variables.
835 (get_complaints): New function.
836 (vcomplaint): New function.
837 (complaint): New function.
838 (internal_complaint): New function.
839 (complain): Call vcomplain with symfile_complaint.
840 (clear_complaints): Rewrite.
841 (_initialize_complaints): Use add_setshow_command.
842 * Makefile.in (complaints.o): Update dependencies.
843 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
844 to call to clear_complaints.
845 (new_symfile_objfile, reread_symbols): Ditto.
846 (oldsyms_complaint): Delete.
847 (empty_symtab_complaint, unknown_option_complaint): Delete.
848 (free_named_symtabs): Use complaint instead of complain.
849
d2e6263c
MS
8502002-09-18 Michael Snyder <msnyder@redhat.com>
851
5fb2031a
AC
852 Contributed by Apple Computer, Inc. Merged with current sources
853 by Adam Fedor <fedor@doc.com> [cagney].
854
d2e6263c
MS
855 * objc-lang.c: First clean-up round: comments, indentation.
856 * objc-lang.h: Ditto.
857 * objc-lang.y: Ditto.
858
dec43320
AC
8592002-09-18 Andrew Cagney <ac131313@redhat.com>
860
861 * maint.c (maintenance_internal_error): Print the parameter as the
862 error message.
863 (maintenance_internal_warning): New function.
864 (_initialize_maint_cmds): Add command `maint internal-warning'.
865
866 * defs.h (internal_warning, internal_vwarning): Declare.
867 * utils.c (struct internal_problem): Define.
868 (internal_vproblem): New function.
869 (internal_warning): New function.
870 (internal_vwarning): New function.
871 (internal_warning_problem, internal_error_problem): New variables.
872 (internal_verror): Just call internal_vproblem.
873
b81654f1
MS
8742002-09-18 Michael Snyder <msnyder@redhat.com>
875
876 * objc-lang.c: New file, support for Objective-C.
877 Preliminary check-in, not yet integrated into gdb.
878 * objc-lang.h: New file.
879 * objc-exp.y: New file.
880
0542c381
AC
8812002-09-18 Andrew Cagney <ac131313@redhat.com>
882
7bda5e4a
AC
883 * infrun.c (signal_stop_update): Convert definition to ISO C.
884 (signal_print_update): Ditto.
885 (signal_pass_update): Ditto.
886 * inflow.c (terminal_save_ours): Ditto.
887
5247b418
AC
888 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
889 comments.
890
fc60962c
AC
891 * config/djgpp/fnchange.lst: Handle name clashes between
892 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
893 bfd/coff-tic80.c.
894
0542c381
AC
895 * i386-linux-tdep.h: Fix tipo.
896
5b924b9b
AF
8972002-09-18 Adam Fedor <fedor@gnu.org>
898
899 * MAINTAINERS: Add myself to the Write After Approval list.
900
5afc051b
JB
9012002-09-18 Jim Blandy <jimb@redhat.com>
902
903 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
904 texthigh and textlow to reader-specific structs caused
905 objfile_relocate to miss them. This is fixable, but the work that
906 the change was supposed to prepare GDB for never got done anyway.
907
eb944380
DC
9082002-09-18 David Carlton <carlton@math.stanford.edu>
909
910 * MAINTAINERS: Alphabetize Write After Approval list.
911
948e66d9
DJ
9122002-09-18 Daniel Jacobowitz <drow@mvista.com>
913
914 Fix PR gdb/709
915 * values.c (value_static_field): Call read_var_value.
916
dc604539
AC
9172002-09-18 Andrew Cagney <ac131313@redhat.com>
918
919 * valops.c (hand_function_call): Align the initial stack pointer
920 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
921 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
922 return value.
923 * mips-tdep.c (mips_frame_align): New function.
924 (mips_gdbarch_init): Set frame_align.
925 * gdbarch.sh (FRAME_ALIGN): New method.
926 * gdbarch.h, gdbarch.c: Re-generate.
927
cb7e422f
ML
9282002-09-18 Michal Ludvig <mludvig@suse.cz>
929
930 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
931 registers.
932
a094c6fb
AC
9332002-09-17 Andrew Cagney <ac131313@redhat.com>
934
935 * NEWS: Mention that MIPS $fp behavior changed.
936 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
937 reference to FP_REGNUM.
938 (mipsnbsd_cannot_store_register): Ditto.
939 * mips-linux-nat.c: Update copyright.
940 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
941 (mips_linux_cannot_store_register): Ditto.
942 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
943 * config/mips/tm-mips.h: Update copyright.
944 (FP_REGNUM): Delete macro.
945 (MIPS_REGISTER_NAMES): Replace "fp" with "".
946 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
947 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
948 (mips_r3041_reg_names, mips_r3051_reg_names)
949 (mips_r3081_reg_names): Replace "fp" with "".
950 Fix PR gdb/480.
951
45cf40d1
TR
9522002-09-17 Theodore A. Roth <troth@verinet.com>
953
954 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
955 generic_read_register_dummy() (PR gdb/703).
956 (avr_push_return_address): #if 0 out unused vars.
957 (avr_gdbarch_init): Enable use of avr_push_return_address().
958
c7e701b5
MS
9592002-09-17 Michael Snyder <msnyder@redhat.com>
960
d76ba2a5 961 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
962 RTE will take care of it.
963
20bcf01c
AC
9642002-09-17 Andrew Cagney <ac131313@redhat.com>
965
966 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
967 invalid, return SP_REGNUM.
968
009a9971 9692002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
970
971 * mips-tdep.c (mips_pop_frame): Read saved values of floating
972 point registers without sign extension.
973
135c175f
AC
9742002-09-17 Andrew Cagney <cagney@redhat.com>
975
976 * blockframe.c (deprecated_read_register_dummy): Rename
977 generic_read_register_dummy.
978 * frame.c (frame_unwind_signed_register): New function.
979 (frame_unwind_unsigned_register): New function.
980 * frame.h (frame_unwind_signed_register): Declare.
981 (frame_unwind_unsigned_register): Declare.
982 (deprecated_read_register_dummy): Rename
983 generic_read_register_dummy.
984
985 * h8300-tdep.c (h8300_frame_chain): Update.
986 (h8300_frame_saved_pc): Update.
987 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
988 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
989 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
990 (s390_frame_chain): Update.
991 * v850-tdep.c (v850_find_callers_reg): Update.
992 (v850_frame_saved_pc): Update.
993 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
994 (m32r_find_callers_reg): Update.
995 (m32r_frame_saved_pc): Update.
996 * sh-tdep.c (sh_find_callers_reg): Update.
997 (sh64_get_saved_pr): Update.
998 (sh_init_extra_frame_info): Update.
999 (sh_init_extra_frame_info): Update.
1000 (sh64_init_extra_frame_info): Update.
1001 (sh64_init_extra_frame_info): Update.
1002 * mcore-tdep.c (mcore_find_callers_reg): Update.
1003 (mcore_frame_saved_pc): Update.
1004 (mcore_init_extra_frame_info): Update.
1005 * i386-tdep.c (i386_frame_saved_pc): Update.
1006 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1007 (ia64_init_extra_frame_info): Update.
1008 (ia64_init_extra_frame_info): Update.
1009 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1010 * cris-tdep.c (cris_init_extra_frame_info): Update.
1011 * avr-tdep.c (avr_frame_chain): Update.
1012 (avr_init_extra_frame_info): Update.
1013 (avr_frame_saved_pc): Update.
1014 * arm-tdep.c (arm_find_callers_reg): Update.
1015 (arm_init_extra_frame_info): Update.
1016 (arm_frame_saved_pc): Update.
1017
a741e514
TT
10182002-09-17 Tom Tromey <tromey@redhat.com>
1019
1020 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1021 is "'".
1022
d1a8e808
CV
10232002-09-17 Corinna Vinschen <vinschen@redhat.com>
1024
1025 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1026 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1027 NEXT_PROLOGUE_INSN.
1028 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1029 NEXT_PROLOGUE_INSN.
1030
d9025a18
JB
10312002-09-16 Joel Brobecker <brobecker@gnat.com>
1032
1033 * osfsolib.c: Remove file, replaced by solib-osf.c.
1034 * Makefile.in: Remove compilation rules for osfsolib.c.
1035
1b2ef1b6
DC
10362002-09-16 David Carlton <carlton@math.stanford.edu>
1037
1038 * cp-valprint.c (cp_print_class_method): Correct args to
1039 check_stub_method_group.
1040
928e48af
CV
10412002-09-16 Corinna Vinschen <vinschen@redhat.com>
1042
1043 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1044 `set architecture'. Unify naming convention of functions.
1045 (h8300_skip_prologue): Improve prologue analysis.
1046 (h8300_push_arguments): Rewritten to more closely match GCC's
1047 bizarre argument-passing behavior, along with the comment describing
1048 said behavior.
1049 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1050 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1051 sim, remote-e7000.c, remote-hms.c and remote.c
1052
5e3397bb
MK
10532002-09-15 Mark Kettenis <kettenis@gnu.org>
1054
1055 * i386-tdep.c (gdb_print_insn_i386): Removed.
1056 (i386_print_insn): New function.
1057 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1058 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1059 tm_print_insn_info.
1060
f710f4fc
MK
10612002-09-14 Mark Kettenis <kettenis@gnu.org>
1062
1063 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1064 zero.
1065
db54fef4
CV
10662002-09-14 Corinna Vinschen <vinschen@redhat.com>
1067
1068 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1069 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1070 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1071
2becadee
CF
10722002-09-13 Christopher Faylor <cgf@redhat.com>
1073
1074 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1075
de17c821
DJ
10762002-09-13 Daniel Jacobowitz <drow@mvista.com>
1077
1078 * gdbtypes.c (check_stub_method): Make static.
1079 (check_stub_method_group): New function.
1080 * gdbtypes.h: Update prototypes.
1081 * cp-support.c: New file.
1082 * cp-support.h: New file.
1083
1084 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1085 (update_method_name_from_physname): New function.
1086 (read_member_functions): Correct method names for operators
1087 and v3 constructors/destructors. Separate v2 constructors and
1088 destructors.
1089 * Makefile.in (stabsread.o): Update dependencies.
1090 (SFILES): Add cp-support.c.
1091 (COMMON_OBS): Add cp-support.o.
1092 (cp_support_h, cp-support.o): Add.
1093
1094 * cp-valprint.c (cp_print_class_method): Call
1095 check_stub_method_group instead of check_stub_method. Remove
1096 extraneous QUITs.
1097 * p-valprint.c (pascal_object_print_class_method): Likewise.
1098 * valops.c (search_struct_method): Likewise.
1099 (find_method_list, value_struct_elt_for_reference): Likewise.
1100
e76cff22
AC
11012002-09-13 Andrew Cagney <cagney@redhat.com>
1102
1103 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1104 * gdbarch.h, gdbarch.c: Regenerate.
1105
905abb3f
AC
11062002-09-13 Andrew Cagney <ac131313@redhat.com>
1107
1108 * frame.c (find_saved_register): Delete function.
1109 * frame.h (find_saved_register): Delete declaration.
1110 Fix PR gdb/631.
1111
64159455
AC
1112Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1113
1114 * mips-tdep.c (read_next_frame_reg): Re-hack using
1115 frame_register_unwind.
1116
795e1e11
AC
1117Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1118
1119 * mips-tdep.c (mips_get_saved_register): Re-hack using
1120 frame_register_unwind.
1121
5720643c
JB
11222002-09-12 Joel Brobecker <brobecker@gnat.com>
1123
1124 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1125 vector. Will be useful for Interix.
1126 * gdbarch.h, gdbarch.c: Regenerate.
1127
1128 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1129 name of the malloc function by NAME_OF_MALLOC.
1130
3bada2a2
JB
11312002-09-12 Joel Brobecker <brobecker@gnat.com>
1132
1133 * value.h (find_function_in_inferior): Add const keyword to
1134 one of the parameters. Allows us to invoke this function with
1135 a const char *.
1136 * valops.c (find_function_in_inferior): Likewise.
1137
3db26b01
JB
11382002-09-12 Joel Brobecker <brobecker@gnat.com>
1139
1140 * exec.c (xfer_memory): Fix compilation warning with old versions
1141 of GCC.
1142 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1143
17c5ed2c
DC
11442002-09-12 David Carlton <carlton@math.stanford.edu>
1145
1146 * symtab.h: Run through gdb_indent.h.
1147 Add 2002 to Copyright year list.
1148
ecd1107e
AM
11492002-09-12 Alan Modra <amodra@bigpond.net.au>
1150
1151 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1152 mach constants.
1153 * MAINTAINERS: Add myself to write after approval list.
1154
e64f66d1
JB
11552002-09-11 J. Brobecker <brobecker@gnat.com>
1156
1157 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1158
f9395794
JB
11592002-09-11 J. Brobecker <brobecker@gnat.com>
1160
1161 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1162 Interix.
1163
1a303dec
MS
11642002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1165
1166 * procfs.c (do_detach): Clear current signal, not just fault.
1167 Corrects problem with breakpoint trap signal leaking to detached
1168 process on Tru64.
1169
c0219d42
MS
11702002-09-10 Michael Snyder <msnyder@redhat.com>
1171
1172 * buildsym.c (finish_block): Protect against null pointer.
1173
9d84ac84
AC
11742002-09-10 Andrew Cagney <cagney@redhat.com>
1175
1176 * infcmd.c (default_print_registers_info): Send all output to
1177 ``file'' instead of ``gdb_stdout''.
1178
77d8f2b4
MS
11792002-09-10 Michael Snyder <msnyder@redhat.com>
1180
1181 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1182 LONGEST, and use signed register read (addresses are sign-
1183 extended for mips).
1184
99656a61
SC
11852002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1186
1187 * event-loop.c (gdb_do_one_event): Make public.
1188 * event-loop.h (gdb_do_one_event): Declare.
1189
da12f4d8
JL
11902002-09-10 Jeff Law <law@redhat.com>
1191
1192 * infttrace.c (child_resume): Simplify and rework to avoid
1193 TT_PROC_CONTINUE.
1194
d0aee0c4
FF
11952002-09-09 Fred Fish <fnf@intrinsity.com>
1196
1197 * printcmd.c (print_scalar_formatted): "len" is the number of
1198 target bytes, NOT the number of target bits.
1199
7cb3ec5e
EZ
12002002-09-09 Elena Zannoni <ezannoni@redhat.com>
1201
1202 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1203 * top.c (init_main): Set rl_terminal_name.
1204
4dc81987
AS
12052002-09-08 Aidan Skinner <aidan@velvet.net>
1206
1207 * ada-lang.c (ada_array_bound, ada_type_match,
1208 _initialize_ada_language): Fix K&R definitions.
1209 * ada-tasks.c (get_current_task): Fix K&R definitions.
1210 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1211
842330b4
CF
12122002-09-07 Christopher Faylor <cgf@redhat.com>
1213
1214 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1215 Add XP.
1216
43156d82
MK
12172002-09-06 Mark Kettenis <kettenis@gnu.org>
1218
66da5fd8
MK
1219 * i386-tdep.c (i386_register_virtual_type,
1220 i386_register_convertible, i386_register_convert_to_virtual,
1221 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1222 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1223 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1224 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1225 Don't set push_arguments twice.
1226
4b218c18
MK
1227 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1228 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1229 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1230 sigtramp_end to NULL.
1231 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1232 defines.
1233 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1234
4cc314d5
MK
1235 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1236 whitespace.
1237
43156d82
MK
1238 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1239 * gdbarch.h, gdbarch.c: Re-generate.
1240 * blockframe.c (find_pc_sect_partial_function): Convert to use
1241 SIGTRAMP_START_P predicate.
1242
6672060b
MS
12432002-09-05 Michael Snyder <msnyder@redhat.com>
1244
a90c3637
MS
1245 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1246 generic_dummy_frame method and old method. Also distinguish
1247 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1248 (arm_extract_return_value): Use new regcache method.
a90c3637 1249
6672060b
MS
1250 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1251 adjustment that doesn't conform to the ABI.
1252 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1253 saved regcache, not from current regcache.
1254
299ffc64
AC
12552002-09-05 Andrew Cagney <ac131313@redhat.com>
1256
1257 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1258 * README: Update.
1259
a3a2ee65
JT
12602002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1261
1262 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1263 if arm_apcs_32 is false.
1264
2bc7eea9
AC
12652002-09-04 Andrew Cagney <ac131313@redhat.com>
1266
1267 GDB 5.3 branch created.
1268
8a55a7c5
TR
12692002-09-03 Theodore A. Roth <troth@verinet.com>
1270
1271 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1272 generic_unwind_get_saved_register.
1273
e26fb1d7
DC
12742002-09-03 David Carlton <carlton@math.stanford.edu>
1275
1276 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1277 argument (PR gdb/653). Update call to smash_to_method_type.
1278 (read_structure_scope): Update call to dwarf2_add_member_fn.
1279
30d52491
ML
12802002-09-03 Michal Ludvig <mludvig@suse.cz>
1281
1282 * x86-64-linux-tdep.c: Include gdb_string.h
1283 * x86-64-linux-nat.c: Ditto.
1284
06891d83
JT
12852002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1286
1287 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1288 when YYDEBUG is set to 1.
1289 * c-exp.y: Likewise.
1290 * f-exp.y: Likewise.
1291 * jv-exp.y: Likewise.
1292 * m2-exp.y: Likewise.
1293 * p-exp.y: Likewise.
1294
7d400e77
JT
12952002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1296
1297 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1298 dependency list.
1299 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1300 solib_svr4_fetch_link_map_offsets to
1301 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1302 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1303 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1304 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1305 solib-svr4.o, and solib-legacy.o.
1306 * config/i386/tm-nbsd.h: Include solib.h.
1307
704a27c4
JT
13082002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1309
1310 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1311 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1312 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1313 comment noting that this needs its own target configuration.
1314 * config/i386/nbsd.mt: New file.
1315 * config/i386/nbsdaout.mt: Remove.
1316 * config/i386/nbsdelf.mt: Ditto.
1317 * config/i386/tm-nbsdaout.h: Ditto.
1318
d66198e1
JT
13192002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1320
1321 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1322 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1323 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1324 tdep->sigtramp_end.
1325 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1326 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1327 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1328
3cac699e
JT
13292002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1330
1331 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1332 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1333 * i386-tdep.h (i386bsd_init_abi): New prototype.
1334 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1335 function declaration.
1336 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1337 for NetBSD-a.out or NetBSD-ELF.
1338 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1339 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1340 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1341 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1342 and nbsd-tdep.h.
1343 (i386nbsd_pc_in_sigtramp): New function.
1344 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1345 i386nbsd_pc_in_sigtramp.
1346 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1347 and i386nbsdelf_init_abi OS ABI handlers.
1348 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1349 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1350
7010ca0a
MK
13512002-09-02 Mark Kettenis <kettenis@gnu.org>
1352
1353 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1354 registers if the target really has them.
1355
6dd93b72
JT
13562002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1357
1358 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1359 than nbsd-tdep.h.
1360
2ca8ae21
JT
13612002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1362
1363 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1364 list.
1365 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1366 (alphanbsd_skip_sigtramp_frame): New functions.
1367 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1368 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1369 to alphanbsd_sigcontext_addr.
1370
3d9b49b0
JT
13712002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1372
1373 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1374 list.
1375 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1376 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1377 nbsd_pc_in_sigtramp.
1378 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1379 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1380 * nbsd-tdep.c: Include gdb_string.h.
1381 (nbsd_pc_in_sigtramp): New function.
1382 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1383 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1384 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1385 ppcnbsd_pc_in_sigtramp.
1386 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1387 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1388 shnbsd_pc_in_sigtramp.
1389 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1390 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1391 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1392
c860120c
PM
13932002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1394
1395 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1396 watchpoints to NULL.
1397 (insert_breakpoints): set val field of watchpoints if NULL.
1398
1399
c7612d53
JB
14002002-08-29 Jim Blandy <jimb@redhat.com>
1401
1402 * symtab.c (lookup_symbol_aux): In the cases where we find a
1403 minimal symbol of an appropriate name and use its address to
1404 select a symtab to read and search, use `name' (as passed to us)
1405 as the demangled name when searching the symtab's global and
1406 static blocks, not the minsym's name.
1407
66609862
KS
14082002-08-29 Keith Seitz <keiths@redhat.com>
1409
1410 * stack.c (print_frame_info_base): Always set current_source_symtab
1411 and current_source_line.
1412
151fefe2
JB
14132002-08-29 Donn Terry <donnte@microsoft.com>
1414
1415 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1416
bfb3754e
KS
14172002-08-28 Keith Seitz <keiths@redhat.com>
1418
1419 * stack.c (select_frame): Add FIXME concerning selected-frame
1420 events.
1421 (select_frame_command): Send selected-frame-level-changed
1422 event notification, but only if the level actually changed.
1423 (up_silently_base): Add selected-frame-level-changed event
1424 notification.
1425 (down_silently_base): Likewise.
1426
e822a2a0
AC
14272002-08-28 Andrew Cagney <ac131313@redhat.com>
1428
1429 * Makefile.in: Update dependencies for all gdb/*.c files.
1430
309367d4
TT
14312002-08-27 Tom Tromey <tromey@redhat.com>
1432
1433 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1434 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1435 Update dependencies.
1436 * i387-tdep.c: Include gdb_string.h.
1437 * osabi.c: Likewise.
1438 * i386-linux-nat.c: Likewise.
1439 * lin-lwp.c: Likewise.
1440 * ax-gdb.c: Likewise.
1441 * signals/signals.c: Likewise.
1442 * jv-valprint.c: Likewise.
1443 * p-lang.c: Likewise.
1444 * c-valprint.c: Likewise.
1445 * cp-abi.c: Likewise.
1446
e1507482
EZ
14472002-08-27 Elena Zannoni <ezannoni@redhat.com>
1448
1449 * cli/cli-script.h (copy_command_lines): Export.
1450 * breakpoint.c: Include cli/cli-script.h.
1451 * Makefile.in (breakpoint.o): Update dependencies.
1452
c6510018
MS
14532002-08-26 Michael Snyder <msnyder@redhat.com>
1454
1455 * breakpoint.c (insert_breakpoints): Protect all references
1456 to 'process_warning'. Shorten long lines.
1457
c2b8ed2c
MS
14582002-08-26 Joel Brobecker <brobecker@gnat.com>
1459
1460 * cli/cli-script.c (copy_command_lines): New function.
1461 * defs.h (copy_command_lines): Export.
1462 * testsuite/gdb.base/commands.exp: New tests for commands
1463 attached to a temporary breakpoint, and for commands that
1464 delete the breakpoint they are attached to.
1465
14662002-08-26 Michael Snyder <msnyder@redhat.com>
1467
1468 * breakpoint.c (bpstat_stop_status): Instead of copying the
1469 pointer to the breakpoint commands struct, make a new copy
1470 of the struct and point to that.
1471 (bpstat_clear): Free the commands struct.
1472 (bpstat_clear_actions): Free the commands struct.
1473 (bpstat_do_actions): Free the command actions. Also execute
1474 the local cleanups, instead of deleting them.
1475 (delete_breakpoint): Leave the commands field of the bpstat
1476 chain alone -- it will be freed later.
1477
64b84175
KB
14782002-08-26 Kevin Buettner <kevinb@redhat.com>
1479
1480 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1481 deleted in 2002-08-20 commit. This function is still used by
1482 ppc-linux-nat.c.
1483
55970da6
KS
14842002-08-26 Keith Seitz <keiths@redhat.com>
1485
1486 * gdb-events.sh: Add selected-frame-level-changed event.
1487 * gdb-events.c: Regenerated.
1488 * gdb-events.h: Regenerated.
1489
a790ad35
SC
14902002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1491
1492 Fix PR gdb/393:
1493 * inflow.c (terminal_save_ours): New function to save terminal
1494 settings.
1495 * inferior.h (terminal_save_ours): Declare.
1496 * target.c (debug_to_terminal_save_ours): New function.
1497 (cleanup_target): Defaults to_terminal_save_ours.
1498 (update_current_target): Inherit to_terminal_save_ours.
1499 (setup_target_debug): Set to_terminal_save_ours.
1500 * target.h (target_terminal_save_ours): New to save terminal settings.
1501 (target_ops): New member to_terminal_save_ours.
1502 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1503 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1504 * inftarg.c (init_child_ops): Likewise.
1505 * m3-nat.c (init_m3_ops): Likewise.
1506 * procfs.c (init_procfs_ops): Likewise.
1507 * wince.c (init_child_ops): Likewise.
1508 * win32-nat.c (init_child_ops): Likewise.
1509 * sol-thread.c (init_sol_thread_ops): Likewise.
1510
c00dcbe9
MK
15112002-08-26 Mark Kettenis <kettenis@gnu.org>
1512
3d7f4f49
MK
1513 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1514 use regcache_* functions.
1515 (i386_gdbarch_init): Set store_return_value instead of
1516 deprecated_store_return_value.
1517
c00dcbe9
MK
1518 * regcache.c (regcache_raw_write_signed,
1519 regcache_raw_write_unsigned): New functions.
1520 * regcache.h (regcache_raw_write_signed,
1521 regcache_raw_write_unsigned): New prototypes.
1522
0e0d15ca
AC
15232002-08-25 Andrew Cagney <ac131313@redhat.com>
1524
1525 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1526 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1527 source file dependencies. Cleanup corresponding generator rules.
1528
d3b22ed5
AC
15292002-08-25 Andrew Cagney <ac131313@redhat.com>
1530
1531 * regcache.h (register_offset_hack): Declare.
1532 (regcache_cooked_read_using_offset_hack): Declare.
1533 (regcache_cooked_write_using_offset_hack): Declare.
1534
1535 * regcache.c (register_offset_hack): New function.
1536 (regcache_cooked_read_using_offset_hack): New function.
1537 (regcache_cooked_write_using_offset_hack): New function.
1538 (regcache_dump): Check that the registers, according to their
1539 offset, are packed hard against each other.
1540 (cooked_xfer_using_offset_hack): New function.
1541
bb425013
AC
15422002-08-25 Andrew Cagney <ac131313@redhat.com>
1543
1544 * regcache.c (struct regcache_descr): Add field register_type.
1545 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1546 in as a parameter
1547 (init_regcache_descr): Initialize register_type. Pass the descr
1548 to init_legacy_regcache_descr. Use register_type instead of
1549 REGISTER_VIRTUAL_TYPE.
1550 (register_type): New function.
1551 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1552 * regcache.h (register_type): Declare.
1553
d0403e00
AC
15542002-08-25 Andrew Cagney <ac131313@redhat.com>
1555
1556 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1557 instead of deprecated_store_return_value. Fix fallout from
1558 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1559
0ed04cce
AC
15602002-08-25 Andrew Cagney <ac131313@redhat.com>
1561
1562 * regcache.c (max_register_size): New function.
1563 (init_legacy_regcache_descr): Ensure that max_register_size is
1564 large enough for REGISTER_VIRTUAL_SIZE.
1565 * regcache.h (max_register_size): Declare.
1566
46d79c04
AC
15672002-08-24 Andrew Cagney <ac131313@redhat.com>
1568
1569 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1570 store_return_value.
1571 (e500_extract_return_value): Change type of valbuf pointer to
1572 void.
1573
853c7bd0
MK
15742002-08-24 Mark Kettenis <kettenis@gnu.org>
1575
cd87e769
MK
1576 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1577 workaround.
1578
853c7bd0
MK
1579 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1580 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1581 long long) to prevent compiler warning on 64-bit systems.
1582
ebba8386
AC
15832002-08-23 Andrew Cagney <cagney@redhat.com>
1584
1585 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1586 (DEPRECATED_STORE_RETURN_VALUE): New method.
1587 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1588 * gdbarch.h, gdbarch.c: Re-generate.
1589
1590 * values.c (set_return_value): Pass current_regcache to
1591 STORE_RETURN_VALUE.
1592 * arch-utils.h (legacy_store_return_value): Declare.
1593 * arch-utils.c (legacy_store_return_value): New function.
1594 (legacy_extract_return_value): Update parameters.
1595
1596 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1597 STORE_RETURN_VALUE.
1598 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1599 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1600 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1601 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1602 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1603 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1604 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1605 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1606 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1607 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1608
1609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1610 * i386-tdep.c (i386_extract_return_value): Update.
1611 * arch-utils.c (legacy_extract_return_value): Update.
1612 * frv-tdep.c (frv_gdbarch_init): Update.
1613 * cris-tdep.c (cris_gdbarch_init): Update.
1614 * d10v-tdep.c (d10v_gdbarch_init): Update.
1615 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1616 * m68k-tdep.c (m68k_gdbarch_init): Update.
1617 * mcore-tdep.c (mcore_gdbarch_init): Update.
1618 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1619 * s390-tdep.c (s390_gdbarch_init): Update.
1620 * sparc-tdep.c (sparc_gdbarch_init): Update.
1621 * sh-tdep.c (sh_gdbarch_init): Update.
1622 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1623 * v850-tdep.c (v850_gdbarch_init): Update.
1624 * avr-tdep.c (avr_gdbarch_init): Update.
1625 * ia64-tdep.c (ia64_gdbarch_init): Update.
1626 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1627 * vax-tdep.c (vax_gdbarch_init): Update.
1628 * alpha-tdep.c (alpha_gdbarch_init): Update.
1629 * arm-tdep.c (arm_gdbarch_init): Update.
1630 * mips-tdep.c (mips_gdbarch_init): Update.
1631 * i386-tdep.c (i386_gdbarch_init): Update.
1632
5bd8c6d0
AC
16332002-08-23 Andrew Cagney <ac131313@redhat.com>
1634
1635 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1636 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1637
e73e1724
MK
16382002-08-24 Mark Kettenis <kettenis@gnu.org>
1639
1640 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1641 problems.
1642
3e6564e1
JB
16432002-08-23 Joel Brobecker <brobecker@gnat.com>
1644
1645 * infrun.c (handle_inferior_event): Move a comment outside of a
1646 function call, in order to avoid indent reformatting this part
1647 of the code in an unreadable way.
1648
81d0cc19
GS
16492002-08-23 Grace Sainsbury <graces@redhat.com>
1650
1651 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1652 when breakpoints fail. Move general breakpoint error messages to
1653 insert_breakpoints.
1654 * breakpoint.c (insert_breakpoints): Change warnings when
1655 breakpoints are nto inserted to specify the type. Remove call to
1656 memory_error when hardware breakpoints can't be inserted. Remove
1657 multiple calls to warning so all messages are sent to the user at
1658 once.
1659 (delete_breakpoints): Make insert error messsages more explicit.
1660
17574093
DJ
16612002-08-23 Daniel Jacobowitz <drow@mvista.com>
1662
1663 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1664 gdbserver/ChangeLog.
1665
8acc2935
MK
16662002-08-23 Mark Kettenis <kettenis@gnu.org>
1667
dfe01d39
MK
1668 * i386-tdep.c: Include "objfiles.h".
1669 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1670 skip_trampoline_code.
1671 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1672 (CPLUS_MARKER): Define to '.'.
1673
8acc2935
MK
1674 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1675 member.
1676 (linux_corefile_thread_callback): Increase args->num_notes.
1677 (linux_make_note_section): Initialize thread_args.num_notes, and
1678 use it to determine whether notes for any threads were created.
1679
151fefe2 16802002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1681
1682 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1683 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1684 and PCUNKILL.
1685 (write_with_trace): Conditionalize out the switch branch handling
1686 PCSHOLD if the corresponding macro is not defined. Likewise for
1687 PRSABORT and PRSTOP.
1688 This change will be needed by the Interix port.
1689
e1507482
EZ
16902002-08-22 Elena Zannoni <ezannoni@redhat.com>
1691
1692 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1693 write_register wherever possible instead of manipulating the
1694 register bytes directly.
1695 Assign VALUE_CONTENTS to a variable and use that.
1696 The GPR numbers are now dependent on the architecture.
1697
96ff0de4
EZ
16982002-08-22 Elena Zannoni <ezannoni@redhat.com>
1699
1700 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1701 ev_offset fields.
1702 (skip_prologue): Add support for BookE/e500 instructions.
1703 (e500_extract_return_value): New function.
1704 (frame_get_saved_regs): Add support for saving ev registers and
1705 pseudo gpr's.
1706 (e500_store_return_value): New function.
1707 (rs6000_gdbarch_init): Move up default intializations of
1708 deprecated_extract_return_value and store_return_value. Overwrite
1709 init of store_return_value with e500 specific version.
1710 Set extract_return_value for e500.
1711
fbefca5b
EZ
17122002-08-22 Elena Zannoni <ezannoni@redhat.com>
1713
1714 * blockframe.c (generic_call_dummy_register_unwind): Use
1715 regcache_cooked_read to catch cases in which the variable is
1716 stored in a pseudo register.
1717
4d210288
AC
17182002-08-22 Andrew Cagney <cagney@redhat.com>
1719
1720 * NEWS: Mention that the i960 has been made obsolete.
1721 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1722 i960-tdep.c
1723 (remote-nrom.o): Obsolete target.
1724 (remote-nindy.o, i960-tdep.o): Ditto.
1725 * remote-nrom.c: Make file obsolete.
1726 * remote-nindy.c, remote-vx960.c: Ditto.
1727 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1728 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1729 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1730 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1731 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1732 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1733 i960-*-vxworks* obsolete.
1734 * MAINTAINERS: Note that the i960 is obsolete.
1735
6c0c456d
CV
17362002-08-21 Corinna Vinschen <vinschen@redhat.com
1737
1738 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1739 detach to allow reinitialization.
1740
9f9d12b3
AC
17412002-08-22 Andrew Cagney <ac131313@redhat.com>
1742
1743 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1744 attempt).
1745
ebeb39fe
JB
17462002-08-22 Jim Blandy <jimb@redhat.com>
1747
1748 * coffread.c (coff_symfile_read): Don't try to read the line
1749 number table from disk if the image file doesn't have a symbol
1750 table; we'll never actually look at the info anyway, and Windows
1751 ships DLL's with bogus file offsets for the line number data.
1752
5bf1c677
EZ
17532002-08-21 Elena Zannoni <ezannoni@redhat.com>
1754
1755 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1756 an e500 executable.
1757
71b8ef93
MS
17582002-08-21 Michael Snyder <msnyder@redhat.com>
1759
1760 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1761 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1762 (DEFAULT_MIPS_TYPE): Delete unused macro.
1763 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1764 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1765
d174216d
JB
17662002-08-21 Jim Blandy <jimb@redhat.com>
1767
1768 * valops.c (value_cast): Simplify and correct logic for doing a
1769 static cast from a pointer to a base class to a pointer to a
1770 derived class.
1771
0ab7a791
AC
17722002-08-21 Andrew Cagney <ac131313@redhat.com>
1773
1774 * infcmd.c (default_print_registers_info): Replace
1775 do_registers_info.
1776 (registers_info): Use gdbarch_print_registers_info instead of
1777 DO_REGISTERS_INFO.
1778 * inferior.h (default_print_registers_info): Replace
1779 do_registers_info.
1780 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1781 (DO_REGISTERS_INFO): Change to a predicate function.
1782 * gdbarch.h, gdbarch.c: Regenerate.
1783
e23792cc
KS
17842002-08-21 Keith Seitz <keiths@redhat.com>
1785
1786 * gdb-events.sh: Add target-changed event.
1787 * gdb-events.c: Regenerated.
1788 * gdb-events.c: Regenerated.
1789 * valops.c (value_assign): Add target-changed event notification
1790 to inlval_register, lval_memory, and lval_reg_frame_relative.
1791
9fb14e79
JB
17922002-08-21 Joel Brobecker <brobecker@gnat.com>
1793
1794 * NEWS: Add an entry regarding the improvement of the next/step
1795 operation on Alpha Tru64 multi-processor machines.
1796
6d39a69f
AC
17972002-08-21 Andrew Cagney <ac131313@redhat.com>
1798
72acd513
AC
1799 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1800 directores.
342af04b 1801 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1802 * Makefile.in (install-gdbtk): Move to install section.
1803 (rdi-share/libangsd.a): Move to end of file.
1804
fa5f27c7
AC
18052002-08-19 Andrew Cagney <ac131313@redhat.com>
1806
1807 * frame.c (frame_register_unwind): When a register, set addrp to
1808 the register's byte.
1809
5a89d8aa
MS
18102002-08-20 Michael Snyder <msnyder@redhat.com>
1811
1812 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1813 used locally, so move them from the target machine header to here.
1814 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1815 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1816 Make static.
1817 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1818
822e978b
AC
18192002-08-20 Andrew Cagney <cagney@redhat.com>
1820
1821 * NEWS: Mention that the Apollo line was made obsolete.
1822 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1823 m68*-hp-hpux* obsolete.
1824 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1825 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1826 * buildsym.c (make_blockvector): Make static.
1827 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1828 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1829 (ALLDEPFILES): Remove dstread.c.
1830 (dstread.o): Obsolete make rule.
1831 * dstread.c: Makefile obsolete.
1832 * dst.h: Ditto.
1833 * config/m68k/hp300hpux.mt: Ditto.
1834 * config/m68k/hp300hpux.mh: Ditto.
1835 * config/m68k/hp300bsd.mt: Ditto.
1836 * config/m68k/hp300bsd.mh: Ditto.
1837 * config/m68k/apollo68b.mt: Ditto.
1838 * config/m68k/apollo68v.mh: Ditto.
1839 * config/m68k/apollo68b.mh: Ditto.
1840
e41b17f0
MS
18412002-08-20 Michael Snyder <msnyder@redhat.com>
1842
1843 * mips-tdep.c (mips_in_return_stub): Make static.
1844 (mips_gdbarch_init): Set in_solib_return_trampoline.
1845 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1846
d50355b6
MS
18472002-08-20 Michael Snyder <msnyder@redhat.com>
1848
1849 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1850 * gdbarch.c, gdbarch.h: Regenerate.
1851 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1852 Add.
1853 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1854
757a7cc6
MS
18552002-08-20 Michael Snyder <msnyder@redhat.com>
1856
1857 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1858 (mips_gdbarch_init): Set skip_trampoline_code,
1859 in_solib_call_trampoline.
1860 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1861 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1862
c8001721
EZ
18632002-08-20 Elena Zannoni <ezannoni@redhat.com>
1864
1865 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1866
1867 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1868 vector type for ev registers.
1869 (e500_pseudo_register_read): New function.
1870 (e500_pseudo_register_write): New function.
1871 (e500_dwarf2_reg_to_regnum): New function.
1872 (PPC_UISA_NOFP_SPRS): New macro.
1873 (PPC_EV_REGS): New macro.
1874 (PPC_GPRS_PSEUDO_REGS): New macro.
1875 (registers_e500): New register set for e500.
1876 (variants): Add e500 variant.
1877 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1878 before setting architectural dependent variations. Initialize ev
1879 registers numbers. Add case for e500 architecture. Set the
1880 number of pseudo registers.
1881
64366f1c
EZ
18822002-08-20 Elena Zannoni <ezannoni@redhat.com>
1883
1884 * rs6000-tdep.c: Clean up comments.
1885
7e78f0ca
AC
18862002-08-20 Andrew Cagney <cagney@redhat.com>
1887
1888 * h8300-tdep.c: Re-indent file.
1889
697f7479
JB
18902002-08-20 Jim Blandy <jimb@redhat.com>
1891
1892 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1893 default for this.
697f7479 1894
e86ae29f
KS
18952002-08-20 Keith Seitz <keiths@redhat.com>
1896
1897 * breakpoints.c (watch_command_1): Use internal breakpoint
1898 when setting a watchpoint_scope breakpoint.
1899
216b504f
EZ
19002002-08-20 Elena Zannoni <ezannoni@redhat.com>
1901
1902 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1903 (build_builtin_type_vec64i): Ditto.
1904 (build_builtin_type_vec128): Ditto.
1905 (build_builtin_type_vec128i): Ditto.
1906
f7ab6ec6
MS
19072002-08-19 Michael Snyder <msnyder@redhat.com>
1908
1909 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1910 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1911 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1912 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1913 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1914 CALL_DUMMY_ADDRESS): Delete.
1915 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1916 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1917 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1918 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1919 push_return_address.
1920 (mips_register_raw_size, mips_eabi_use_struct_convention,
1921 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1922 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1923 mips_init_extra_frame_info, mips_eabi_push_arguments,
1924 mips_n32n64_push_arguments, mips_push_return_address,
1925 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1926 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1927
b5d1566e
MS
19282002-08-19 Michael Snyder <msnyder@redhat.com>
1929
1930 * mips-tdep.c (mips_frame_num_args): New function.
1931 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1932 frame_saved_pc, frame_args_address, frame_locals_address,
1933 frame_num_args, and frame_args_skip.
1934 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1935 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1936 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1937 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1938
2f1488ce
MS
19392002-08-20 Michael Snyder <msnyder@redhat.com>
1940
1941 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1942 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1943 * mips-tdep.c (mips_store_struct_return): New function.
1944 (mips_extract_struct_value_address): New function.
1945 (mips_gdbarch_init): Set store_struct_return and
1946 extract_struct_value_address.
1947
41ff2da1
DC
19482002-08-20 David Carlton <carlton@math.stanford.edu>
1949
1950 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1951 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1952 (read_file_scope): Check that line_header is nonzero before
1953 decoding macro information.
1954
e5451d58
MK
19552002-08-20 Mark Kettenis <kettenis@gnu.org>
1956
1957 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1958 flag the general-purpose registers as floating-point on targets
1959 that don't support the floating-point registers.
1960
4a6daafa
EZ
19612002-08-20 Elena Zannoni <ezannoni@redhat.com>
1962
1963 * rs6000-tdep.c (altivec_register_p): Delete.
1964 (rs6000_do_altivec_registers): Delete.
1965 (rs6000_altivec_registers_info): Delete.
1966 (rs6000_do_registers_info): Delete.
1967 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1968 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1969
ab4327e0
EZ
19702002-08-20 Elena Zannoni <ezannoni@redhat.com>
1971
1972 * infcmd.c (do_registers_info): Print vector registers in hex
1973 format only.
1974 (print_vector_info): Check that printing registers
1975 makes sense.
1976 (print_float_info): Ditto.
1977
cb1d2653
AC
19782002-08-20 Andrew Cagney <ac131313@redhat.com>
1979
1980 * mips-tdep.c (mips_gdbarch_init): Update.
1981 (mips_o32_extract_return_value): Rewrite.
1982 (mips_o32_store_return_value): Rewrite.
1983 (mips_o32_xfer_return_value): New function.
1984 (mips_xfer_register): Tweak debug print message. Allow for
1985 buf_offset when dumping the value transfered.
1986
dfc3d9b2
AC
19872002-08-20 Andrew Cagney <ac131313@redhat.com>
1988
1989 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1990 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1991 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1992 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1993 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1994
7807aa61
MS
19952002-08-14 Michael Snyder <msnyder@redhat.com>
1996
1997 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1998
489461e2
EZ
19992002-08-19 Elena Zannoni <ezannoni@redhat.com>
2000
2001 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2002 register.
2003 (P): New macro to define a register as a pseudo register.
2004 (R, R4, R8, R16, FR32, R64, R0): Updated.
2005 (struct variant): Add new fields for number of pseudo registers
2006 and number of total registers.
2007 (tot_num_registers): New macro replacing....
2008 (num_registers): ...deleted macro.
2009 (num_registers): New function.
2010 (num_pseudo_registers): New function.
2011 (variants): Update all variants to intialize new fields correctly.
2012 Postpone initialization of number of pseudo regs and real regs.
2013 (init_variants): New function.
2014 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2015 registers offsets.
2016
fcaffe4c
DC
20172002-08-19 David Carlton <carlton@math.stanford.edu>
2018
2c2738a0
DC
2019 * valops.c (search_struct_field): Change error message to treat
2020 return value of 0 from value_static_field as meaning that field is
2021 optimized out.
2022 (value_struct_elt_for_reference): Ditto.
2023 * values.c (value_static_field): Treat an unresolved location the
2024 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2025 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2026 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2027 * MAINTAINERS: Add self to Write After Approval list.
2028
88658117
AC
20292002-08-19 Andrew Cagney <ac131313@redhat.com>
2030
2031 * mips-tdep.c (mips_xfer_register): New function.
2032 (mips_n32n64_extract_return_value): Rewrite.
2033 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2034 instead of deprecated_extract_return_value.
2035
21283beb
EZ
20362002-08-19 Elena Zannoni <ezannoni@redhat.com>
2037
2038 * rs6000-tdep.c (TDEP): Delete macro.
2039 (branch_dest): Replace use of TDEP macro with its body.
2040 (rs6000_pop_frame): Ditto.
2041 (rs6000_push_arguments): Ditto.
2042 (rs6000_skip_trampoline_code): Ditto.
2043 (rs6000_frame_saved_pc): Ditto.
2044 (rs6000_frame_chain): Ditto.
2045 (rs6000_register_name): Ditto.
2046 (rs6000_register_byte): Ditto.
2047 (rs6000_register_raw_size): Ditto.
2048 (rs6000_register_virtual_type): Ditto.
2049 (rs6000_register_convertible): Ditto.
2050 (rs6000_convert_from_func_ptr_addr): Ditto.
2051
bf072999
DJ
20522002-08-19 Daniel Jacobowitz <drow@mvista.com>
2053
2054 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2055 conditionally.
2056 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2057 MIPS_LINUX_JB_ELEMENT_SIZE.
2058 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2059 for MAX_REGISTER_RAW_SIZE arrays.
2060 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2061 MIPS_LINUX_JB_ELEMENT_SIZE.
2062
9b949a49
PM
20632002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2064
2065 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2066
6d3e79c6
AS
20672002-08-19 Aidan Skinner <aidan@velvet.net>
2068
2069 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2070 ada-valprint.c ada-tasks.c.
2071 (YYFILES): Add ada-exp.y.
2072 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2073 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2074 (ada-exp.tab.o): New target.
2075
06c0b04e
AC
20762002-08-18 Andrew Cagney <ac131313@redhat.com>
2077
2078 * regcache.c (regcache_xfer_part): New function.
2079 (regcache_raw_read_part): New function.
2080 (regcache_raw_write_part): New function.
2081 (regcache_cooked_read_part): New function.
2082 (regcache_cooked_write_part): New function.
2083 * regcache.h (regcache_raw_read_part): Declare.
2084 (regcache_raw_write_part): Declare.
2085 (regcache_cooked_read_part): Declare.
2086 (regcache_cooked_write_part): Declare.
2087
92d1e331
DJ
20882002-08-18 Daniel Jacobowitz <drow@mvista.com>
2089
2090 * remote.c (remote_open_1): Add async_p.
2091 (remote_async_open_1): Delete.
2092 (open_remote_target): Delete.
2093 (remote_open, extended_remote_open): Update calls to remote_open_1.
2094 (remote_async_open, extended_remote_async_open): Call
2095 remote_open_1 instead of remote_async_open_1.
2096
247055de
MK
20972002-08-19 Mark Kettenis <kettenis@gnu.org>
2098
2099 * blockframe.c: Fix a few coding standard violations.
2100
641eda39
MK
21012002-08-19 Mark Kettenis <kettenis@gnu.org>
2102
0b717710
MK
2103 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2104 here from ...
2105 * config/i386/tm-i386sco5.h: ... here. File removed.
2106 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2107
26d28e12 2108 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2109 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2110 (TM_FILE): Set to tm-i386.h.
2111 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2112 * config/i386/tm-i386v.h: Remove file.
2113 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2114 instead of "i386/tm-i386v.h".
2115 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2116 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2117 "i386/tm-i386v.h".
2118 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2119 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2120 "i386/tm-i386.h".
2121
d4e0bab4
MK
21222002-08-18 Mark Kettenis <kettenis@gnu.org>
2123
2124 * config/i386/nm-i386v.h: Add protection against
2125 multiple-inclusion.
2126 (i386_register_u_addr): Remove prototype.
2127 (register_u_addr): New prototype.
2128 (REGISTER_U_ADDR): Redefine accordingly.
2129 * i386v-nat.c: Improve several comments.
2130 (i386_register_u_addr): Change signature and rename to
2131 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2132 ubase variable.
2133
46cac009
AC
21342002-08-18 Andrew Cagney <ac131313@redhat.com>
2135
2136 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2137 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2138 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2139 deprecated_extract_return_value.
2140 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2141 rename mips_o32o64_push_arguments.
2142 (mips_gdbarch_init): Update.
2143 (mips_extract_return_value): Delete.
2144 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2145 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2146 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2147 (mips_n32n64_extract_return_value): Clone
2148 mips_extract_return_value.
2149 (mips_store_return_value): Delete.
2150 (mips_o32_store_return_value): Clone mips_store_return_value.
2151 (mips_o64_store_return_value): Clone mips_store_return_value.
2152 (mips_eabi_store_return_value): Clone mips_store_return_value.
2153 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2154
d2e4a39e
AS
21552002-08-18 Aidan Skinner <aidan@velvet.net>
2156
0c30c098
AS
2157 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2158 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2159
21602002-08-18 Aidan Skinner <aidan@velvet.net>
2161
2162 * ada-lang.c: Run through gdb_indent.sh.
2163 * ada-lang.h: Run through gdb_indent.sh.
2164 * ada-tasks.c: Run through gdb_indent.sh.
2165 * ada-typeprint.c: Run through gdb_indent.sh.
2166 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2167
01fc4e33
AC
21682002-08-18 Andrew Cagney <ac131313@redhat.com>
2169
2170 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2171 ABI.
2172
d8ee244c
MK
21732002-08-18 Mark Kettenis <kettenis@gnu.org>
2174
c38d8261
MK
2175 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2176
222db64c
MK
2177 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2178 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2179
c2848c82
MK
2180 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2181 write_register_gen instead of write_register_bytes.
2182
d8ee244c
MK
2183 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2184 i[3456]-*-osf1mk* configurations have been made obsolete.
2185 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2186 i[3456]86-*-osf1mk* hosts obsolete.
2187 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2188 targets obsolete.
2189 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2190 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2191 config/i386/i386m3.mt, config/i386/nm-m3.h,
2192 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2193 config/i386/i386mk.mh, config/i386/i386mk.mt,
2194 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2195 obsolete.
2196 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2197 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2198 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2199
61d8d407
AC
22002002-08-18 Andrew Cagney <ac131313@redhat.com>
2201
2202 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2203 (hppa_value_returned_from_stack): Declare.
2204 (hppa_extract_return_value): Declare.
2205 * config/pa/hppa.mt: New file.
2206 * configure.tgt: Recognize hppa*-*-*.
2207 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2208
0c52bd59
MK
22092002-08-18 Mark Kettenis <kettenis@gnu.org>
2210
2211 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2212 comment.
2213
b5686e99
MK
22142002-08-17 Mark Kettenis <kettenis@gnu.org>
2215
2216 * top.c (gdb_rl_operate_and_get_next): Make sure
2217 operate-and-get-next functions correctly even when the history
2218 list is completely filled.
2219
c1bab85b
AC
22202002-08-18 Andrew Cagney <ac131313@redhat.com>
2221
2222 * MAINTAINERS (Target Instruction Set Architectures): Rename
2223 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2224 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2225 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2226 already listed under Host/Native.
2227
2228 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2229 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2230 mips*-*-*.
2231
32089c7c
AC
22322002-08-17 Andrew Cagney <ac131313@redhat.com>
2233
2234 * config/ia64/ia64.mt: New file.
2235 * config/alpha/alpha.mt: New file.
2236 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2237 ia64-linux-gnu. Mention that ia64-elf is broken.
2238 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2239
b4671f85
MK
22402002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2241
2242 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2243 generic_func_frame_valid instead of func_frame_valid.
2244
c8edd8b4
JB
22452002-08-16 Joel Brobecker <brobecker@gnat.com>
2246
2247 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2248 procfs appears to be broken when debugging on multi-processor
2249 machines. So enable software single stepping in order to avoid
2250 using the procfs interface to do next/step operations, using
2251 internal breakpoints instead.
2252
2253 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2254 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2255 make this pc address equal to the value it would have if the
2256 system stepping capability was used. Also set a new flag used
2257 to ensure that we don't readjust the PC one more time later.
2258
2259 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2260 address by DECR_PC_AFTER_BREAK when software single step is
2261 in use for this architecture, as this has already been taken
2262 care of in handle_inferior_event().
2263
238617f6
JB
22642002-08-16 Joel Brobecker <brobecker@gnat.com>
2265
2266 * infrun.c (handle_inferior_event): Minor reformatting, to make
2267 a rather long condition expression easier to read.
2268
541a7aac
AC
22692002-08-16 Andrew Cagney <ac131313@redhat.com>
2270
2271 * Makefile.in (gdbtk.o): Move to end of file.
2272 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2273 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2274 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2275 (gdbtk-wrapper.o, gdbres.o): Ditto.
2276
f92d4a7b
AC
22772002-08-16 Andrew Cagney <ac131313@redhat.com>
2278
2279 * Makefile.in (copying.o): Separate out compile rule.
2280 (hpux-thread.o, procfs.o, signals.o): Ditto.
2281 (v850ice.o, z8k-tdep.o): Ditto.
2282 (tui-file.o): Move to TUI section.
2283 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2284 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2285
1cce71eb
JB
22862002-08-16 Joel Brobecker <brobecker@gnat.com>
2287
2288 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2289 skip_trampoline_code, for better namespace-proofing.
2290
2291 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2292
0851f23d
JB
22932002-08-16 Joel Brobecker <brobecker@gnat.com>
2294
2295 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2296
f8d40ec8
JB
22972002-08-16 Joel Brobecker <brobecker@gnat.com>
2298
2299 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2300 signal, check whether we hit a breakpoint before checking for a
2301 single step breakpoint. Otherwise, GDB fails to notice that a
2302 breakpoint has been hit when stepping onto a breakpoint.
2303
63d022e0
KS
23042002-08-16 Keith Seitz <keiths@redhat.com>
2305
2306 * gdb-events.sh (clear_gdb_event_hooks): New function.
2307 * gdb-events.c: Regenerate.
2308 * gdb-events.h: Regenerate.
2309
6e31adb3
AC
23102002-08-16 Andrew Cagney <ac131313@redhat.com>
2311
2312 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2313 not_a_sw_breakpoint.
2314 * breakpoint.h (bpstat_stop_status): Add parameter names.
2315
c8189ed1
GS
23162002-08-16 Grace Sainsbury <graces@redhat.com>
2317
2318 * remote.c (remote_insert_hw_breakpoint)
2319 (remote_remove_hw_breakpoint): Fix calculation of length field
2320 for Z-packet.
2321
d05285fa
MS
23222002-08-15 Michael Snyder <msnyder@redhat.com>
2323
466d7106
MS
2324 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2325 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2326 (supply_fpregset): Ditto.
2327
d05285fa
MS
2328 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2329 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2330 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2331 (TARGET_READ_SP): Delete.
bf1f5b4c 2332 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2333 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2334 Delete.
2335 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2336 from macros to functions.
bf1f5b4c 2337
d05285fa
MS
2338 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2339 (mips_register_convertible, mips_register_convert_to_virtual,
2340 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2341 (mips_read_sp): New function.
2342 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2343 (mips_do_registers_info): Make static.
2344 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2345 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2346 (mips_register_convert_from_type, mips_register_convert_to_type):
2347 New functions.
2348 (mips_gdbarch_init): Set up function_start_offset,
2349 register_virtual_size, pc_in_sigtramp.
d05285fa 2350
e76f1f2e
AC
23512002-08-15 Andrew Cagney <ac131313@redhat.com>
2352
2353 * infcmd.c (vector_info): New function.
2354 (_initialize_infcmd): Add command "info vector".
2355 (print_vector_info): New function.
2356
2357 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2358 * gdbarch.h, gdbarch.c: Regenerate.
2359
4782dc19
AC
23602002-08-15 Andrew Cagney <ac131313@redhat.com>
2361
2362 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2363 ``print_all''. Only print vector registers when ``print_all''.
2364
23e3a7ac
AC
23652002-08-15 Andrew Cagney <ac131313@redhat.com>
2366
8e186fd6
AC
2367 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2368 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2369
23e3a7ac
AC
2370 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2371 Add `args' parameter.
2372 * gdbarch.h, gdbarch.c: Regenerate.
2373
2374 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2375
2376 * infcmd.c (float_info): Call print_float_info.
2377 (print_float_info): New function. By default, print the
2378 floating-point registers.
2379
2380 * arch-utils.h (default_print_float_info): Delete declaration.
2381 * arch-utils.c (default_print_float_info): Delete function.
2382
e0ca2bb9
MK
23832002-08-16 Mark Kettenis <kettenis@gnu.org>
2384
3f733acc
MK
2385 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2386 out define.
2387
7d8d2918
MK
2388 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2389 FRAME.
2390
1c7cc583
MK
2391 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2392 * configure.host: Make i[3456]86-*-aix host obsolete.
2393 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2394 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2395 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2396 config/i386/xm-i386aix.h: Make files obsolete.
2397 * i386aix-nat.c: Make file obsolete.
2398 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2399 (i386aix-nat.o): Make target obsolete.
2400
e0ca2bb9
MK
2401 * config/i386/nm-gnu.h: Removed.
2402 * config/i386/nm-i386gnu.h: New file.
2403 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2404 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2405 Moved here from ...
2406 * config/i386/tm-i386gnu.h: ... here. Removed.
2407 * config/i386/xm-i386gnu.h: Removed.
2408 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2409 (NAT_FILE): Set to nm-i386gnu.h.
2410 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2411 * i386-tdep.c: New file.
2412 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2413 (i386gnu-tdep.o): Specify dependencies.
2414
16057ec7 24152002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2416
6b99ee2e
MK
2417 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2418 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2419 Adjust a few comments to reflect reality a bit closer.
2420 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2421 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2422 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2423 target_insert_watchpoint, target_remove_watchpoint):
2424 Move defines to ...
2425 * config/i386/nm-i386sco5.h: ... here.
2426 (kernel_u_size): Add prototype. Improve a few comments and add
2427 protection against multiple inclusion.
2428
d9a6f65c
MK
2429 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2430 out define.
2431
047eff6a
MK
2432 * uw-thread.c (SP_ARG0): Define if not already defined.
2433 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2434
dcdb1290
MK
2435 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2436
5d2d0b2a
MK
2437 * config/i386/tm-i386.h: Don't include "regcache.h".
2438
61113f8b
MK
2439 * i387-tdep.h (i387_print_float_info): New prototype.
2440 * i387-tdep.c (print_i387_value, print_i387_ext,
2441 print_i387_status_word, print_i387_control_word): Add `struct
2442 ui_file *' argument and use it for output.
2443 (i387_print_float_info): Renamed from i387_float_info. Add
2444 `struct gdbarch *' and `struct ui_file *' arguments and use the
2445 latter for output.
2446 * i386-tdep.c: Include "i387-tdep.h".
2447 (i386_gdbarch_init): Set print_float_info.
2448 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2449 (FLOAT_INFO): Remove define.
2450
46e0f506
MS
24512002-08-13 Michael Snyder <msnyder@redhat.com>
2452
2453 * mips-tdep.c (mips_push_arguments): Rename to
2454 mips_eabi_push_arguments, and tune for EABI.
2455 (MIPS_REGS_HAVE_HOME_P): Delete.
2456 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2457 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2458 Delete references to mips_regs_have_home_p.
2459
409268de
KS
24602002-08-14 Keith Seitz <keiths@redhat.com>
2461
2462 * Makefile.in (install-gdbtk): Create insight plugin directory.
2463 Install plugins.tcl file.
2464
ffc6a242
KS
24652002-08-14 Keith Seitz <keiths@redhat.com>
2466
2467 * configure.in: Move SUBDIRS to near top of the file so that
2468 --enable options may add things to it.
2469 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2470 * configure: Regenerate.
2471
ebafbe83
MS
24722002-08-13 Michael Snyder <msnyder@redhat.com>
2473
2474 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2475 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2476 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2477
32f6f25d
AC
24782002-08-13 Andrew Cagney <ac131313@redhat.com>
2479
2480 * vax-tdep.c (vax_get_saved_register): Delete function.
2481 (vax_gdbarch_init): Update.
2482 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2483 (ns32k_gdbarch_init): Update.
2484 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2485 (alpha_gdbarch_init): Update.
2486
53826de9
AC
24872002-08-13 Andrew Cagney <cagney@redhat.com>
2488
2489 * regcache.c (init_regcache_descr): Overallocate the
2490 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2491 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2492 nr_raw_registers.
2493 (set_register_cached): Add range checking assertions. Use
2494 current_regcache.
2495
16057ec7 24962002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2497
2498 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2499 numbers for MMX registers.
2500
7b4c2dce
AC
25012002-08-13 Andrew Cagney <cagney@redhat.com>
2502
2503 * i386-tdep.c (i386_gdbarch_init): Use
2504 generic_unwind_get_saved_register.
2505
1e03ad20
KB
25062002-08-13 Kevin Buettner <kevinb@redhat.com>
2507
2508 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2509 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2510 target vector.
2511 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2512 Delete. Add comment regarding this now-deleted target method.
2513
548bcbec
SC
25142002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2515
2516 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2517 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2518 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2519 real PC and the page number (if it's within the memory bank window).
2520 (m68hc11_pseudo_register_write): Likewise when saving.
2521 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2522 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2523 (m68hc11_register_raw_size): And use 32-bit for it.
2524 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2525 16K memory bank is used by the prog; also use the virtual pc.
2526
7df11f59
SC
25272002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2528
2529 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2530 (m68hc11_gdbarch_init): Install it in gdbarch.
2531 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2532 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2533 (MSYMBOL_SIZE): New for documentation.
2534 (insn_return_kind): Enum to specify how a function returns.
2535 (frame_extra_info): Cleanup and record the return mode.
2536 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2537 register in address computation.
2538 (m68hc11_get_return_insn): New to obtain the return instruction used
2539 by the function.
2540 (m68hc11_frame_init_saved_regs): Take into account the return
2541 instruction used by the function for far and interrupt functions.
2542 (m68hc11_init_extra_frame_info): Take into account page register.
2543 (m68hc11_frame_args_address): Adjust according to the return mode.
2544 (show_regs): Print page register only when it's used.
2545
5706502a
SC
25462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2547
2548 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2549 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2550 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2551 registers.
2552 (m68hc11_register_raw_size): Likewise.
2553
28fc6740
AC
25542002-08-13 Andrew Cagney <cagney@redhat.com>
2555
2556 * i386-tdep.c (i386_register_name): Handle mmx registers.
2557 (mmx_regnum_p): New function.
2558 (i386_mmx_names): New array.
2559 (mmx_num_regs): New variable.
2560 (i386_pseudo_register_read): New function.
2561 (i386_pseudo_register_write): New function.
2562 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2563
2564 * regcache.c (regcache_raw_read_unsigned): New function.
2565 (regcache_raw_read_signed): New function.
2566 * regcache.h (regcache_raw_read_unsigned): Declare.
2567 (regcache_raw_read_signed): Declare.
2568
a378f419
AC
25692002-08-13 Andrew Cagney <cagney@redhat.com>
2570
2571 * regcache.c (regcache_raw_read_as_address): Delete function.
2572 (regcache_cooked_read_signed): New function.
2573 (regcache_cooked_read_unsigned): New function.
2574 * regcache.h (regcache_cooked_read_signed): Declare.
2575 (regcache_cooked_read_unsigned): Declare.
2576 (regcache_raw_read_as_address): Delete declaration.
2577
2578 * blockframe.c (generic_read_register_dummy): Use
2579 regcache_cooked_read_unsigned.
2580 * i386-tdep.c (i386_extract_struct_value_address): Use
2581 regcache_cooked_read_unsigned.
2582
81967506
SC
25832002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2584
2585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2586 double sizes according to ELF ABI flags.
2587 (gdbarch_tdep): Record elf_flags.
2588
ffe1f3ee
SC
25892002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2590
2591 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2592 (m6812_prolog): They can appear in 68HC12 function prologue.
2593 (m68hc11_frame_chain): Cleanup.
2594
98216c5d
AC
25952002-08-12 Andrew Cagney <cagney@redhat.com>
2596
2597 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2598 declarations.
2599 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2600 (i386_linux_register_raw_size): Delete function.
2601 (i386_linux_init_abi): Update.
2602 * i386-tdep.c (i386_register_raw_size): Delete function.
2603 (i386_register_byte): Delete function.
2604 (i386_gdbarch_init): Update.
2605 (i386_register_size): Delete array.
2606 (i386_register_offset): Delete array.
2607
2608 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2609 (REGISTER_RAW_SIZE): Delete macro.
2610 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2611 (REGISTER_BYTE): Delete macro.
2612
3b19021e
AS
26132002-08-11 Aidan Skinner <aidan@velvet.net>
2614
2615 * ada-lang.c (ada_lookup_partial_symbol)
2616 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2617 prototype names so that grep ^func works properly.
2618
2619 * ada-lang.c (ada_array_element_type)
2620 (ada_lookup_partial_symbol): Fix typos in parameter list.
2621
2622 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2623 Fix prototype names so that grep ^func works properly.
2624
b063e7a2
AC
26252002-08-10 Andrew Cagney <cagney@redhat.com>
2626 Elena Zannoni <ezannoni@redhat.com>
2627 Martin M. Hunt <hunt@redhat.com>
2628
2629 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2630 (build_builtin_type_vec128i): Set the vector bit.
2631 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2632 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2633 (build_builtin_type_vec64): New function.
2634 (build_builtin_type_vec64i): New function.
2635 (build_gdbtypes): Initialize builtin_type_vec64 and
2636 builtin_type_vec64i.
2637
a7e3c2ad
AC
26382002-08-09 Andrew Cagney <cagney@redhat.com>
2639
2640 * regcache.c (regcache_dump): Compare the register offset
2641 with REGISTER_BYTE.
2642 * arch-utils.c (generic_register_byte): New function.
2643 * arch-utils.h (generic_register_byte): Declare.
2644 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2645 * gdbarch.h, gdbarch.c: Regenerate.
2646
af030b9a
AC
26472002-08-09 Andrew Cagney <cagney@redhat.com>
2648
2649 * regcache.c: Include "gdbcmd.h"
2650 (_initialize_regcache): Add commands "maintenance print
2651 registers", "maintenance print raw-registers" and "maintenance
2652 print cooked-registers".
2653 (enum regcache_dump_what): Define.
2654 (dump_endian_bytes): New function.
2655 (regcache_dump): New function.
2656 (regcache_print): New function.
2657 (maintenance_print_registers): New function.
2658 (maintenance_print_raw_registers): New function.
2659 (maintenance_print_cooked_registers): New function.
2660 * Makefile.in (regcache.o): Update dependencies.
2661
cb3d25d1
MS
26622002-08-09 Michael Snyder <msnyder@redhat.com>
2663
2664 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2665 (mips_push_arguments): Correct some comments. Use paddr_nz
2666 for printing addresses in debug output. Replace static
2667 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2668 (mips_n32n64_push_arguments): New function, cloned from
2669 mips_push_arguments and tuned for the n32/n64 ABI.
2670 (mips_push_register): Buffer needs dynamic allocation.
2671 (mips_print_register): Ditto.
2672 (do_gp_register_row): Ditto.
2673 (mips_store_return_value): Ditto.
2674 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2675
2163ab9d
DH
26762002-08-09 Don Howard <dhoward@redhat.com>
2677
2678 * memattr.c (mem_info_command): Print special case of upper bound
2679 as max CORE_ADDR + 1.
2680
b78bcb18
MS
26812002-08-08 Michael Snyder <msnyder@redhat.com>
2682
2683 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2684 returns structs by ref if they're too big to fit in two registers.
2685
ffabd70d
KB
26862002-08-09 Kevin Buettner <kevinb@redhat.com>
2687
2688 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2689 saved regs value.
2690 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2691 mips_find_saved_regs().
2692 (mips_pop_frame): Likewise.
2693
fbcdb4a3
KB
26942002-08-09 Kevin Buettner <kevinb@redhat.com>
2695
2696 * blockframe.c (frame_saved_regs_register_unwind): Revise
2697 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2698 frames are in use.
2699
3c3bea1c
GS
27002002-08-09 Grace Sainsbury <graces@redhat.com>
2701
2702 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2703 T-packets; the 'a' is not taken as a register number.
2704 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2705 (remote_stopped_data_address): New functions; add to target
2706 vector.
2707 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2708 prototypes to match other implementations of this
2709 function. replace integer argument with pointer -- the length
2710 field in the Z-packet is the length of what is pointed to or 1 if
2711 pointer is null. Add to target vector.
2712 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2713 target vector.
2714
2715 From Mark Salter:
2716 * remote.c (remote_wait): Add support to extract optional
2717 watchpoint information from T-packet. Ignore unrecognized
2718 optional info in T-packet.
2719 (remote_async_wait): Ditto.
2720
5d1d95de
CV
27212002-08-09 Corinna Vinschen <vinschen@redhat.com>
2722
2723 * cli/cli-dump.c: Change fopen modes to use binary open modes
2724 as defined in include/fopen-bin.h throughout.
2725
c86b5b38
MS
27262002-08-08 Michael Snyder <msnyder@redhat.com>
2727
2728 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2729
b30590dc
KB
27302002-08-08 Kevin Buettner <kevinb@redhat.com>
2731
2732 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2733 assertion failure by returning early after a warning.
2734
498868ed
KB
27352002-08-08 Kevin Buettner <kevinb@redhat.com>
2736
2737 * mips-tdep.c (mips_find_saved_regs): Make static.
2738 (mips_frame_init_saved_regs): New function.
2739 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2740 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2741 (mips_find_saved_regs): Delete declaration.
2742
b2dd6311
GS
27432002-08-08 Grace Sainsbury <graces@redhat.com>
2744
3c3bea1c
GS
2745 * remote.c (remote_wait, remote_async_wait): Change
2746 thread_num from int to ULONGEST.
2747 (unpack_varlen_hex): Change result parameter from
2748 int * to ULONGEST *.
b2dd6311 2749
ea47855f
AC
27502002-08-08 Andrew Cagney <ac131313@redhat.com>
2751
2752 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2753 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2754 powerpc*-*-*.
2755 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2756
69db8bae
AC
27572002-08-08 Andrew Cagney <cagney@redhat.com>
2758
2759 * gcore.c (override_derive_stack_segment): Delete variable.
2760 (preempt_derive_stack_segment): Delete function.
2761 (derive_stack_segment): Delete function.
2762 (default_derive_stack_segment): Renamed to derive_stack_segment.
2763 (override_derive_heap_segment): Delete variable.
2764 (preempt_derive_heap_segment): Delete function.
2765 (derive_heap_segment): Delete function.
2766 (default_derive_heap_segment): Rename to derive_heap_segment.
2767
cb811fe7
MS
27682002-08-06 Michael Snyder <msnyder@redhat.com>
2769
2770 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2771 * mips-tdep.c (mips_EABI_use_struct_convention,
2772 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2773 New functions. (mips_use_struct_convention): Delete.
2774 (mips_gdbarch_init): set use_gdbarch_convention.
2775
8b389c40
MS
27762002-08-06 Michael Snyder <msnyder@redhat.com>
2777
2778 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2779 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2780 mips_o32_reg_struct_has_addr): New functions.
2781 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2782
5c27f28a
AC
27832002-08-07 Andrew Cagney <ac131313@redhat.com>
2784
2785 * regcache.c (pseudo_register): Delete function.
2786 (fetch_register): Delete function.
2787 (store_register): Delete function.
2788 (regcache_raw_read, legacy_read_register_gen): Use
2789 target_fetch_registers instead of fetch_register.
2790 (legacy_write_register_gen, regcache_raw_write): Use
2791 target_store_register instead of store_register.
2792 (write_register_bytes): Ditto.
2793
2794 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2795 (STORE_PSEUDO_REGISTER): Delete.
2796 * gdbarch.h, gdbarch.c: Regenerate.
2797
5b331675
CV
27982002-08-06 Corinna Vinschen <vinschen@redhat.com>
2799
2800 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2801 write dump file binary.
2802
6acdf5c7
MS
28032002-08-05 Michael Snyder <msnyder@redhat.com>
2804
2805 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2806 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2807 (mips_gdbarch_init): Set N32 target to be mips64.
2808
b2f01c35
KB
28092002-08-06 Kevin Buettner <kevinb@redhat.com>
2810
2811 * frame.c (find_saved_register): Break out of loop once saved
2812 register address is found. Don't mention sparc in loop comment
2813 anymore.
2814
63db5580
KB
28152002-08-06 Kevin Buettner <kevinb@redhat.com>
2816
2817 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2818 mips_default_saved_regsize to 8.
2819
5e34e75e
AC
28202002-08-06 Andrew Cagney <ac131313@redhat.com>
2821
2822 * gcore.c: Do not include <sys/procfs.h>.
2823 * Makefile.in (gcore.o): Update dependencies.
2824
eb4c54a2
AC
28252002-08-06 Andrew Cagney <cagney@redhat.com>
2826
2827 * configure.tgt: Make arc-*-* obsolete.
2828 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2829 * MAINTAINERS: Make arc-elf obsolete.
2830 * arc-tdep.c: Make file obsolete.
2831 * config/arc/arc.mt: Ditto.
2832 * config/arc/tm-arc.h: Ditto.
2833
ced15480
TR
28342002-08-05 Theodore A. Roth <troth@verinet.com>
2835
c1bab85b 2836 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2837
b4743822
AC
28382002-08-05 Andrew Cagney <ac131313@redhat.com>
2839
2840 * mcore-tdep.c (mcore_gdbarch_init): Use
2841 generic_unwind_get_saved_register instead of
2842 generic_get_saved_register.
2843 * v850-tdep.c (v850_gdbarch_init): Ditto.
2844 * frv-tdep.c (frv_gdbarch_init): Ditto.
2845 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2846 * s390-tdep.c (s390_gdbarch_init): Ditto.
2847 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2848 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2849 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2850
3956d554
JB
28512002-08-05 Joel Brobecker <brobecker@gnat.com>
2852
2853 * objfiles.h: Add missing #include "symfile.h"
2854
2855 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2856
8249c0d6
AC
28572002-08-04 Andrew Cagney <ac131313@redhat.com>
2858
2859 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2860 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2861 of FIELD_BITSIZE.
2862
b9d14705
DJ
28632002-08-04 Daniel Jacobowitz <drow@mvista.com>
2864
2865 * NEWS: Cleanup and nitpick.
2866
dd73b9bb
AC
28672002-08-03 Andrew Cagney <ac131313@redhat.com>
2868
2869 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2870
043a27f8
AC
28712002-08-03 Andrew Cagney <ac131313@redhat.com>
2872
2873 * Makefile.in (gdbtk-bp.o): Update dependencies.
2874 (gdbtk-register.o): Ditto.
2875 (gdbtk-varobj.o): Ditto.
2876
46ce284d
AC
28772002-08-03 Andrew Cagney <cagney@redhat.com>
2878
2879 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2880 m68hc11_fetch_pseudo_register.
2881 (m68hc11_pseudo_register_write): Replace
2882 m68hc11_store_pseudo_register.
2883 (m68hc11_gdbarch_init): Update.
2884
b66d6d2e
AC
2885Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2886
2887 * gdbarch.sh: Include "gdb_string.h".
2888 * gdbarch.c: Regenerate.
2889
2890 * regcache.c: Include "gdb_string.h".
2891 * ax-general.c: Ditto.
2892 * varobj.c: Ditto.
2893 * std-regs.c: Ditto.
2894 * fbsd-proc.c: Ditto.
2895 * thread.c: Ditto.
2896
2897 * Makefile.in (regcache.o): Update dependencies.
2898 (thread.o, gdbarch.o): Ditto.
2899 (ax-general.o, gdbarch.o): Ditto.
2900 (varobj.o, std-regs.o): Ditto.
2901 (fbsd-proc.o): Specify dependencies.
2902
29e1842b
AC
29032002-08-02 Andrew Cagney <cagney@redhat.com>
2904
2905 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2906 regnum.
2907 (regcache_cooked_write): Ditto.
2908
68365089
AC
29092002-08-02 Andrew Cagney <ac131313@redhat.com>
2910
2911 * regcache.c (regcache_cooked_read): New function.
2912 (regcache_cooked_write): New function.
2913 (read_register_gen): Rewrite using regcache_cooked_read.
2914 (write_register_gen): Rewrite using regcache_cooked_write.
2915
2916 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2917 Declare.
2918
d8124050
AC
29192002-08-02 Andrew Cagney <cagney@redhat.com>
2920
2921 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2922 Replace the architecture methods register_read and register_write.
2923 * gdbarch.h, gdbarch.c: Regenerate.
2924 * regcache.c (init_regcache_descr): Update.
2925 (read_register_gen): Update.
2926 (write_register_gen): Update.
2927 (supply_register): Update comment.
2928
2929 * sh-tdep.c (sh_gdbarch_init): Update.
2930 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2931 `regcache' and `gdbarch' parameters. Make `buffer' a void
2932 pointer. Update code.
2933 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2934 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2935 void pointer. Update code.
2936 (sh64_register_write): Delete.
2937 (sh4_register_read): Delete.
2938 (sh64_register_read): Delete.
2939 (sh4_register_write): Delete.
2940 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2941 void pointer, `to' parameter a void pointer.
2942 (sh_sh64_register_convert_to_raw): Ditto.
2943
a6425924
KB
29442002-08-01 Kevin Buettner <kevinb@redhat.com>
2945
2946 * mips-tdep.c (mips_register_virtual_type): Use architecture
2947 invariant return values.
2948
ff5922b5
AC
29492002-08-01 Andrew Cagney <cagney@redhat.com>
2950
2951 * linux-proc.c: Include "gdb_string.h".
2952 * Makefile.in (linux-proc.o): Update dependency list.
2953
32a6503c
KB
29542002-08-01 Kevin Buettner <kevinb@redhat.com>
2955
2956 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2957 comment.
2958
ccaa32c7
GS
29592002-08-01 Grace Sainsbury <graces@redhat.com>
2960
2961 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2962 to_insert_watchpoint, to_remove_watchpoint,
2963 to_stopped_by_watchpoint, to_stopped_data_address,
2964 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2965 target vecctor. Define their corresponding macros so they call
2966 them.
2967
2968 * target.c: Add default and debug versions of for
2969 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2970 to_insert_watchpoint, to_remove_watchpoint,
2971 to_stopped_by_watchpoint, to_stopped_data_address,
2972 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2973
78fde5f8
KB
29742002-08-01 Kevin Buettner <kevinb@redhat.com>
2975
2976 * mips-tdep.c (mips_register_virtual_type): New function.
2977 (mips_gdbarch_init): Register mips_register_virtual_type()
2978 with gdbarch machinery.
2979 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2980 this file instead of tm-bigmips.h.
2981 (MIPS_REGSIZE): Delete this macro.
2982 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2983 multiarch version in mips-tdep.c will be found.
2984
db034ac5
AC
29852002-08-01 Andrew Cagney <cagney@redhat.com>
2986
2987 * NEWS: Menion that CHILL has been made obsolete.
2988
2989 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2990 * stabsread.c (read_range_type): Ditto.
2991 * gdbtypes.h: Ditto.
2992 * language.c (binop_type_check): Ditto.
2993 (binop_result_type): Ditto.
2994 (integral_type): Ditto.
2995 (character_type): Ditto.
2996 (string_type): Ditto.
2997 (boolean_type): Ditto.
2998 (structured_type): Ditto.
2999 (lang_bool_type): Ditto.
3000 (binop_type_check): Ditto.
3001 * language.h (_LANG_chill): Ditto.
3002 * dwarfread.c (set_cu_language): Ditto.
3003 * dwarfread.c (CHILL_PRODUCER): Ditto.
3004 * dwarfread.c (handle_producer): Ditto.
3005 * expression.h (enum exp_opcode): Ditto.
3006 * eval.c: Ditto for comments.
3007 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3008 * expprint.c (print_subexp): Ditto.
3009 (print_subexp): Ditto.
3010 * valops.c (value_cast): Ditto.
3011 (search_struct_field): Ditto.
3012 * value.h (COERCE_VARYING_ARRAY): Ditto.
3013 * symfile.c (init_filename_language_table): Ditto.
3014 (add_psymbol_with_dem_name_to_list): Ditto.
3015 * valarith.c (value_binop): Ditto.
3016 (value_neg): Ditto.
3017 * valops.c (value_slice): Ditto.
3018 * symtab.h (union language_specific): Ditto.
3019 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3020 (SYMBOL_DEMANGLED_NAME): Ditto.
3021 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3022 * defs.h (enum language): Ditto.
3023 * symtab.c (got_symtab): Ditto.
3024 * utils.c (fprintf_symbol_filtered): Ditto.
3025
3026 * ch-typeprint.c: Make file obsolete.
3027 * ch-valprint.c: Make file obsolete.
3028 * ch-lang.h: Make file obsolete.
3029 * ch-exp.c: Make file obsolete.
3030 * ch-lang.c: Make file obsolete.
3031
3032 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3033 CHILL_LIB.
3034 (TARGET_FLAGS_TO_PASS): Ditto.
3035 (CHILLFLAGS): Obsolete.
3036 (CHILL): Obsolete.
3037 (CHILL_FOR_TARGET): Obsolete.
3038 (CHILL_LIB): Obsolete.
3039 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3040 ch-valprint.c.
3041 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3042 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3043 ch-lang.o.
3044 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3045 targets.
3046
8aaf0b47
JB
30472002-07-31 Joel Brobecker <brobecker@gnat.com>
3048
3049 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3050 This does not change anything at the moment, but will be helpful
3051 later when full Ada support is integrated.
3052
f3a7b3a5
KB
30532002-07-31 Kevin Buettner <kevinb@redhat.com>
3054
3055 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3056 help message.
3057
fb850278
KB
30582002-07-31 Kevin Buettner <kevinb@redhat.com>
3059
3060 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3061 and save it in a local variable. Use variable in later test.
3062
e3bddbfa
KB
30632002-07-31 Kevin Buettner <kevinb@redhat.com>
3064
3065 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3066 test. (Thanks to Daniel Jacobowitz.)
3067
28d169de
KB
30682002-07-31 Kevin Buettner <kevinb@redhat.com>
3069
3070 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3071 (mips_abi_strings): Add "n64".
3072 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3073
7fe7e44e
KB
30742002-07-31 Kevin Buettner <kevinb@redhat.com>
3075
3076 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3077 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3078
c6caf090
KB
30792002-07-31 Kevin Buettner <kevinb@redhat.com>
3080
3081 * utils.c (host_pointer_to_address, address_to_host_pointer):
3082 Use gdb_assert() instead of explicit call to internal_error().
3083
c41669e0
KB
30842002-07-30 Kevin Buettner <kevinb@redhat.com>
3085
3086 * Makefile.in (rs6000-nat.o): Update dependencies.
3087
3088 From Nicholas Duffek:
3089 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3090 (aix-thread.o): New rule.
3091 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3092 * config/powerpc/aix432.mh: New file.
3093
2fda4977
DJ
30942002-07-30 Daniel Jacobowitz <drow@mvista.com>
3095
3096 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3097 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3098 (fetch_core_registers, ppc_linux_supply_gregset)
3099 (ppc_linux_supply_fpregset): New functions.
3100 (ppc_linux_regset_core_fns): New.
3101 (_initialize_ppc_linux_tdep): Call add_core_fns.
3102 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3103 and ppc_linux_supply_gregset.
3104 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3105 (supply_fpregset): Call ppc_linux_supply_fpregset.
3106 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3107 corelow.o.
3108 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3109
729051e6
DJ
31102002-07-30 Daniel Jacobowitz <drow@mvista.com>
3111
3112 * symtab.c (lookup_symbol): Demangle before lowercasing.
3113
5f8a3188
AC
31142002-07-30 Andrew Cagney <ac131313@redhat.com>
3115
3116 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3117 declaration.
3118 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3119 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3120 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3121 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3122 "gdb_string.h".
3123 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3124 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3125 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3126 (avr-tdep.o, mon960-rom.o): Ditto.
3127 (aout_stabs_gnu_h): Define.
3128 (symtab_h): Remove $(gdb_obstack_h).
3129
67f07146
JB
31302002-07-30 Jim Blandy <jimb@redhat.com>
3131
3132 Patch from David Carlton <carlton@math.stanford.edu>:
3133 * gdbinit.in: Move the `dir' commands that add GDB's own source
3134 directory to the search path to the end, so that the `gdb' source
3135 directory will be searched first.
3136
04ea0df1
AC
31372002-07-29 Andrew Cagney <ac131313@redhat.com>
3138
3139 * gdb_obstack.h: New file.
3140 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3141 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3142 * objfiles.h: Include "gdb_obstack.h".
3143 * Makefile.in (gdb_obstack_h): Define.
3144 (symtab_h): Add $(gdb_obstack_h).
3145 (objfiles_h): Add $(gdb_obstack_h).
3146
3147 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3148 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3149 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3150 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3151 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3152 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3153 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3154 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3155
3156 * Makefile.in (bcache.o): Update dependencies.
3157 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3158 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3159 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3160 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3161 (stabsread.o, symfile.o, symmisc.o): Ditto.
3162 (symtab.o, typeprint.o, macroexp.o): Ditto.
3163 (macrotab.o, mdebugread.o): Ditto.
3164 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3165 (coff_ecoff_h, aout_aout64_h): Define.
3166 (aout_stabs_gnu_h, libaout_h): Define.
3167
d138e37a
AC
31682002-07-29 Andrew Cagney <cagney@redhat.com>
3169
3170 * regcache.c (struct regcache_descr): Rename nr_registers to
3171 nr_cooked_registers. Revise comments describing the structure
3172 member fields.
3173 (init_regcache_descr): Update.
3174 (init_legacy_regcache_descr): Update.
3175 (read_register_gen, write_register_gen): When a cooked register in
3176 the raw register range, directly access the value from the raw
3177 register cache.
3178
460e6ec3
AC
31792002-07-29 Andrew Cagney <ac131313@redhat.com>
3180
3181 * z8k-tdep.c: Do not include "obstack.h".
3182 * h8300-tdep.c, h8500-tdep.c: Ditto.
3183 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3184 * valprint.c, v850-tdep.c: Ditto.
3185 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3186 * mn10200-tdep.c: Ditto.
3187
3188 * Makefile.in (z8k-tdep.o): Update dependencies.
3189 (m68hc11-tdep.o, valprint.o): Ditto.
3190 (v850-tdep.o, d10v-tdep.o): Ditto.
3191 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3192 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3193 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3194 (sh_opc_h, gdb_sim_sh_h): Define.
3195 (elf_sh_h, elf_bfd_h): Define.
3196 (opcode_m68hc11_h): Define.
3197 (OPCODES_SRC, OPCODES_DIR): define.
3198 (OPCODES): Use $(OPCODES_DIR).
3199 (gdb_sim_d10v_h): Rename sim_d10v_h.
3200 (gdb_sim_arm_h): Rename sim_arm_h.
3201
790c9cf0
KB
32022002-07-26 Kevin Buettner <kevinb@redhat.com>
3203
3204 * utils.c (host_pointer_to_address, address_to_host_pointer):
3205 Change internal_error() message to indicate function responsible
3206 for the error.
3207
9647fa49
KB
32082002-07-26 Kevin Buettner <kevinb@redhat.com>
3209
3210 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3211 calls to local_hex_string_custom().
3212
dabbe2c0
KB
32132002-07-26 Kevin Buettner <kevinb@redhat.com>
3214
3215 * irix5-nat.c: Move IRIX shared library support from here...
3216 * solib-irix.c: ...to here. Revised substantially to work with
3217 generic solib framework.
3218
b96d0a4e
KB
3219 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3220 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3221 * mips-irix-tdep.c: New file.
3222
313fb2f6
KB
3223 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3224 (mips-irix-tdep.o, solib-irix.o): New rules.
3225 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3226 solib-irix.o.
3227 * config/mips/irix6.mt (TDEPFILES): Likewise.
3228 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3229
ab2eaf26
KB
32302002-07-26 Kevin Buettner <kevinb@redhat.com>
3231
177e4768 3232 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3233 disabled (via ``#if 0'') includes.
3234
7244546a
KB
32352002-07-26 Kevin Buettner <kevinb@redhat.com>
3236
3237 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3238 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3239 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3240 Add support for the fpscr register.
3241 * rs6000-nat.c (regmap, fetch_inferior_registers)
3242 (store_inferior_registers, fetch_core_registers): Likewise.
3243
dd7be90a
KB
32442002-07-26 Kevin Buettner <kevinb@redhat.com>
3245
3246 * rs6000-nat.c (language.h): Include.
3247 (special_regs): Delete this array.
3248 (regmap): New function.
3249 (fetch_register, store_register): Use regmap() to map gdb
3250 register numbers to ptrace register numbers. Also, use
3251 outputs from regmap() to make decisions regarding type of
3252 ptrace() call to make. In particular, don't compare against
3253 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3254 (fetch_inferior_registers, store_inferior_registers): Where
3255 possible, obtain register numbers from tdep struct. Don't
3256 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3257 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3258 (LAST_UISA_SP_REGNUM): Delete.
3259
11bf77db
KB
32602002-07-25 Kevin Buettner <kevinb@redhat.com>
3261
3262 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3263 (fetch_registers, store_register, fetch_core_registers): Don't
3264 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3265 regcache_collect() as appropriate.
3266 (find_toc_address): Format hex address with local_hex_string().
3267
06afebeb
AC
32682002-07-25 Andrew Cagney <ac131313@redhat.com>
3269
3270 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3271 bfd/elf32-frv.c.
3272
8c554d79
TT
32732002-07-24 Tom Tromey <tromey@redhat.com>
3274
3275 * jv-exp.y: Marked all strings with _().
3276 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3277 internal_error.
3278 (MethodInvocation, CastExpression, parse_number, yyerror,
3279 java_type_from_name, push_expression_name, yylex): Typo fixes.
3280
e4c242d9
DJ
32812002-07-24 Daniel Jacobowitz <drow@mvista.com>
3282
3283 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3284 (tee_file_flush, tee_file_write, tee_file_fputs)
3285 (tee_file_isatty): New.
3286 * ui-file.h (tee_file_new): Add prototype.
3287
ebf56fd3
AS
32882002-07-24 Aidan Skinner <aidan@velvet.net>
3289
3290 * ada-lang.c: Change k&r style function definitions to prototyped
3291 form.
3292 * ada-typeprint.c: Change k&r style function definitions to prototyped
3293 form.
3294 * ada-valprint.c: Change k&r style function definitions to prototyped
3295 form.
3296
7fb623f7
AC
32972002-07-24 Andrew Cagney <cagney@redhat.com>
3298
3299 * README: Remove reference to remote-bug.
3300 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3301 remote-bug.c.
3302 (m88k-nat.o): Delete rule.
3303 (m88k-tdep.o): Delete rule.
3304 (remote-bug.o): Delete rule.
3305 * MAINTAINERS: Mark as obsolete.
3306 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3307 * m88k-tdep.c: Make file obsolete.
3308 * config/m88k/m88k.mh: Ditto.
3309 * config/m88k/delta88v4.mh: Ditto.
3310 * config/m88k/delta88v4.mt: Ditto.
3311 * config/m88k/delta88.mt: Ditto.
3312 * config/m88k/delta88.mh: Ditto.
3313 * remote-bug.c: Ditto.
3314 * config/m88k/tm-delta88.h: Ditto.
3315 * config/m88k/nm-delta88v4.h: Ditto.
3316 * config/m88k/xm-delta88.h: Ditto.
3317 * config/m88k/xm-dgux.h: Ditto.
3318 * config/m88k/tm-m88k.h: Ditto.
3319 * config/m88k/nm-m88k.h: Ditto.
3320 * config/m88k/tm-delta88v4.h: Ditto.
3321 * m88k-nat.c: Ditto.
3322 * cxux-nat.c: Ditto.
3323 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3324 and m88*-*-* obsolete.
3325 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3326 m88*-*-* obsolete.
3327
37611a2b
AC
33282002-07-24 Andrew Cagney <cagney@redhat.com>
3329
3330 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3331 constant. Same for local pointer variables.
3332 (extract_signed_integer): Ditto.
3333 * defs.h (extract_unsigned_integer): Update.
3334 (extract_signed_integer): Update.
3335
1aaa5f99
AC
33362002-07-24 Andrew Cagney <cagney@redhat.com>
3337
3338 * regcache.c (regcache_raw_write): Change buf parameter to a
3339 constant void pointer.
3340 (regcache_raw_read): Change buf parameter to a void pointer.
3341 (legacy_write_register_gen): Change myaddr parameter a constant
3342 void pointer.
3343 (supply_register): Change val parameter to a const void pointer.
3344 * regcache.h (regcache_raw_write): Update declaration.
3345 (regcache_raw_read): Update declaration.
3346 (supply_register): Update declaration.
3347
b4f5539f
TT
33482002-07-24 Tom Tromey <tromey@redhat.com>
3349
3350 * defs.h (gdb_readline_wrapper): Declare.
3351 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3352 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3353 * top.c (gdb_readline_wrapper): New function.
3354 (command_line_input): Use it.
3355
0818c12a
AC
33562002-07-24 Andrew Cagney <cagney@redhat.com>
3357
3358 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3359 regcache_read and regcache_write.
3360 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3361 * regcache.c: Update.
3362 * sh-tdep.c (sh64_push_arguments): Update comment.
3363 (sh_pseudo_register_read): Update.
3364 (sh_pseudo_register_write): Update.
3365 (sh4_register_read): Update.
3366 (sh4_register_write): Update.
3367 (sh64_pseudo_register_read): Update.
3368 (sh64_pseudo_register_write): Update.
3369 (sh64_register_read): Update.
3370 (sh64_register_write): Update.
3371 * i386-tdep.c (i386_extract_return_value): Update.
3372 (i386_extract_struct_value_address): Update.
3373 (i386_extract_return_value): Update.
3374 * blockframe.c (generic_read_register_dummy): Update.
3375 (generic_call_dummy_register_unwind): Update
3376 * infrun.c (write_inferior_status_register): Update.
3377
f7321c06
JB
33782002-07-23 Jim Blandy <jimb@redhat.com>
3379
3380 * parser-defs.h (expression_context_pc): Make this extern.
3381 (Thanks to Michael Snyder.)
3382
2037aebb
AC
33832002-07-23 Andrew Cagney <ac131313@redhat.com>
3384
3385 GDB 5.2.1 released from 5.2 branch.
3386 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3387 * README: Update to mention 5.2.1.
3388
66504d44
MS
33892002-07-23 Mark Salter <msalter@redhat.com>
3390
3391 * remote.c (remote_read_bytes): Fix check for error.
3392
27bae383
KB
33932002-07-22 Kevin Buettner <kevinb@redhat.com>
3394
3395 * aix-thread.c (language.h): Include.
3396 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3397 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3398 Print newlines at end of debug messages.
3399 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3400 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3401
34022002-07-22 Kevin Buettner <kevinb@redhat.com>
3403
3404 * aix-thread.c (ppc-tdep.h): Include.
3405 (special_register_p): New function.
3406 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3407 (store_regs_user_thread): Use register number information from
3408 gdbarch_tdep struct instead of hardcoded offsets relative to
3409 FIRST_UISA_SP_REGNUM.
3410 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3411 special_register_p() instead of using FPLAST_REGNUM and
3412 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3413 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3414 will be MQ's register number.
3415
34162002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3417
3418 * aix-thread.c (ops): Rename to aix_thread_ops.
3419 (base_ops): Rename to base_target.
3420 (ops_attach): Rename to aix_thread_attach.
3421 (ops_detach): Rename to aix_thread_detach.
3422 (ops_resume): Rename to aix_thread_detach.
3423 (ops_wait): Rename to aix_thread_wait.
3424 (ops_kill): Rename to aix_thread_kill.
3425 (init_ops): Rename to init_aix_thread_ops.
3426 (ops_fetch_register): Rename to aix_thread_fetch_register.
3427 (ops_store_register): Rename to aix_thread_store_register.
3428 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3429 (ops_thread_alive): Rename to aix_thread_thread_alive.
3430 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3431 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3432 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3433 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3434 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3435 (store_regs_lib): Rename to store_regs_user_thread.
3436 (store_regs_kern): Rename to store_regs_kernel_thread.
3437
27bae383 34382002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3439
3440 * aix-thread.c (ops_prepare_to_store): Eliminate.
3441 (init_ops): Don't initialize ops.prepare_to_store.
3442 (store_regs_kern): Pre-fetch register buffers from child,
3443 because some registers may not be in the cache. Copy
3444 regs from register cache only if they are cached.
3445 (store_regs_lib): Copy regs from register cache only
3446 if they are cached.
3447 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3448 fill_gprs64): Ditto.
3449
61c5da0b
KB
34502002-07-22 Kevin Buettner <kevinb@redhat.com>
3451
3452 * aix-thread.c (gdb_assert.h): Include.
3453 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3454 register sizes (from register cache) match size of buffer holding
3455 register data.
3456 (fill_sprs32): Change parameter types to match those in the ptrace()
3457 buffer.
3458 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3459 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3460
34612002-07-22 Michael Snyder <msnyder@redhat.com>
3462
3463 * aix-thread.c (supply_sprs64): Cosmetic change.
3464 (supply_sprs32): Cosmetic change.
3465 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3466 (fill_sprs64): Use regcache_collect instead of read_register.
3467 (store_regs_lib): Use regcache_collect instead of
3468 read_register. Use fill_sprs32 instead of fill_sprs64,
3469 if debugging a 32-bit architecture.
3470 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3471 out of the register cache, instead of passing a pointer into
3472 the register cache directly to ptrace. Use regcache_collect
3473 insteaad of read_register.
3474 (ops_prepare_to_store): Use target_read_registers instead
3475 of read_register_bytes.
3476
36479eb1
AS
34772002-07-20 Aidan Skinner <aidan@velvet.net>
3478
3479 * MAINTAINERS: Add self under write after approval.
3480
80ae6ee2
AS
34812002-07-20 Aidan Skinner <aidan@velvet.net>
3482
3483 * ada-tasks.c: Change k&r style function definitions to prototyped
3484 form.
3485
8a8ab2b9
AC
34862002-07-19 Andrew Cagney <ac131313@redhat.com>
3487
3488 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3489 * x86-64-tdep.c: Include "objfiles.h".
3490 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3491 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3492
fb16b900
ML
34932002-07-17 Michal Ludvig <michal@suse.cz>
3494
3495 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3496 (update_context): Initialise cfa variable.
3497
0fe7bf7b
MS
34982002-07-17 Michael Snyder <msnyder@redhat.com>
3499
3500 * aix-thread.c: Shorten some long lines.
3501 Bring comments into line with code spec.
3502
488f131b
JB
35032002-07-18 Joel Brobecker <brobecker@gnat.com>
3504
3505 * infrun.c: Re-indent using gdb_indent.sh.
3506
46c415d2
JB
35072002-07-18 Joel Brobecker <brobecker@gnat.com>
3508
3509 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3510 Leave the indentation temporarily untouched, to minimize the diffs.
3511
cdecafbe
EZ
35122002-07-18 Elena Zannoni <ezannoni@redhat.com>
3513
3514 * stabsread.c: Make os9k sections of the code obsolete,
3515 for real this time.
3516 * stabsread.h: Make os9k sections of the code obsolete.
3517
7b6aa020
ML
35182002-07-18 Michal Ludvig <mludvig@suse.cz>
3519
09ec9b38
ML
3520 * linux-low.c (regsets_store_inferior_registers): Add free()
3521 at the end of a loop to prevent memory leak.
3522 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3523 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3524 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3525 line a comment.
4894ac5d 3526 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3527
233282cd
JB
35282002-07-17 Jim Blandy <jimb@redhat.com>
3529
3530 * macrocmd.c (info_macro_command): Remove newline from error
3531 message.
3532
7b6aa020 35332002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3534
3535 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3536 (sh_gdbarch_init): Use it for sh-dsp.
3537
f7ef9339
KB
35382002-07-16 Kevin Buettner <kevinb@redhat.com>
3539
3540 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3541 64-bit DWARF2 format.
3542
8dd72958
JB
35432002-07-16 Joel Brobecker <brobecker@gnat.com>
3544
3545 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3546 <sys/proc.h> when not available.
3547
a99a9e1b
AC
35482002-07-16 Andrew Cagney <ac131313@redhat.com>
3549
3550 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3551 * stabsread.c: Make os9k sections of the code obsolete.
3552 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3553 * config/i386/i386os9k.mt: Make file obsolete.
3554 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3555 (COMMON_OBS): Remove os9kread.o
3556 (SFILES): Remove os9kread.c.
3557 (os9kread.o, remote-os9k.o): Make target obsolete.
3558 * remote-os9k.c: Make file obsolete.
3559 * os9kread.c: Make file obsolete.
3560 * Makefile.in
3561
7a3085c1
AC
35622002-07-16 Andrew Cagney <ac131313@redhat.com>
3563
3564 * NEWS: Mention that the FR30 has been made obsolete.
3565 * fr30-tdep.c: Make file obsolete.
3566 * config/fr30/tm-fr30.h: Ditto.
3567 * config/fr30/fr30.mt: Ditto.
3568 * configure.tgt: Make fr30-*-elf obsolete.
3569 * MAINTAINERS: Make fr30-elf obsolete.
3570
28a93f5a
PM
35712002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3572
3573 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3574 found is not inside a section.
3575
be006b8b
KB
35762002-07-15 Kevin Buettner <kevinb@redhat.com>
3577
3578 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3579 strerror().
3580 (pdc_realloc): Use xrealloc() instead of realloc().
3581
14fa3751
KB
35822002-07-15 Kevin Buettner <kevinb@redhat.com>
3583
3584 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3585 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3586 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3587 macros.
3588
42cc437f
KB
35892002-07-15 Kevin Buettner <kevinb@redhat.com>
3590
3591 * aix-thread.c (ptrace_check): Eliminate goto.
3592 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3593 problem.
3594
8e2c28d4
KB
35952002-07-15 Kevin Buettner <kevinb@redhat.com>
3596
3597 * aix-thread.c (gdbcmd.h): Include.
3598 (DEBUG, DBG, DBG2, dbg): Eliminate.
3599 (debug_aix_thread): New static global.
3600 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3601 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3602 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3603 invocations to DBG and DBG2 macros to test against
3604 ``debug_aix_thread'' and call fprintf_unfiltered().
3605 (_initialize_aix_thread): Add new command "set debug aix-thread".
3606
30413464
AC
36072002-07-15 Andrew Cagney <ac131313@redhat.com>
3608
3609 From Gerhard Tonn <TON@de.ibm.com>:
3610 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3611 instead of supply_register.
3612
7c43edc1
AC
36132002-07-15 Andrew Cagney <ac131313@redhat.com>
3614
3615 * dwarf2cfi.c: Include "gdb_assert.h".
3616 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3617 non-NULL.
3618 (update_context): Do not use __func__. Add missing ``break''.
3619 (update_context): Do not use __func__.
3620
9364a0ef
EZ
36212002-07-15 Elena Zannoni <ezannoni@redhat.com>
3622
3623 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3624 and its setting. Set gdbarch instruction printing functions
3625 directly. For non-rs6000 case use new function
3626 gdb_print_insn_powerpc.
3627 (gdb_print_insn_powerpc): New function.
3628
3fbeef0b
AC
36292002-07-13 Andrew Cagney <ac131313@redhat.com>
3630
92eb23c5 3631 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3632 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3633 * configure.tgt: Mark d30v-*-* as obsolete.
3634 * d30v-tdep.c: Mark file as obsolete.
3635 * config/d30v/d30v.mt: Ditto.
3636 * config/d30v/tm-d30v.h: Ditto.
3637
aacb1f0a
AS
36382002-07-13 Aidan Skinner <aidan@velvet.net>
3639
3640 * ada-tasks.c (add_task_entry): replace calls to
3641 malloc() with xmalloc
3642 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3643
3644 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3645 ada_finish_decode_line_1, all_sals_for_line
3646 ada_breakpoint_rewrite): replace calls to free() with xfree()
3647
c11d79f2
KB
36482002-07-12 Kevin Buettner <kevinb@redhat.com>
3649
3650 From Nicholas Duffek (with minor changes by Martin Hunt,
3651 Louis Hamilton, and Kevin Buettner):
3652 * aix-thread.c: New file.
3653
8e19ed76
PS
36542002-07-12 Petr Sorfa <petrs@caldera.com>
3655
3656 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3657 complaint for invalid attribute class or form.
3658 (read_func_scope): DW_AT_frame_base
3659 better handling of DW_AT_block*.
3660 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3661 better handling of DW_AT_block*.
3662 (read_common_block): DW_AT_location
3663 better handling of DW_AT_block*.
3664 (read_partial_die): DW_AT_location better handling
3665 of DW_AT_block*.
3666 (new_symbol): DW_AT_external better handling of
3667 DW_AT_block*. Proper initialization of variable
3668 "addr".
3669 (attr_form_is_block): New function that returns true
3670 if the attribute's form is of DW_FORM_block*.
3671
295401f7
DJ
36722002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3673
3674 * valops.c (find_method_list): Remove comment about
3675 removed STATIC_MEMFUNCP argument.
3676 (value_find_oload_method_list): Likewise.
3677
e42dc924
KB
36782002-07-12 Kevin Buettner <kevinb@redhat.com>
3679
3680 From Nicholas Duffek:
3681 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3682 target_new_objfile_hook.
3683
6904b546
KB
36842002-07-12 Kevin Buettner <kevinb@redhat.com>
3685
3686 From Nicholas Duffek:
3687 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3688 csect.
3689
53fe9346
AC
36902002-07-12 Andrew Cagney <cagney@redhat.com>
3691
3692 * MAINTAINERS: Mention --enable-sim-build-warnings.
3693 (m68hc11-elf): Disable sim build warnings.
3694 (m32r-elf): Mark as broken obsolete candidate.
3695 (x86_64-linux-gnu): Mark as buildable with -Werror.
3696 (arm-elf): Change -w to ``,'' which enables warnings but not
3697 -Werror.
3698
af5f3db6
AC
36992002-07-12 Andrew Cagney <ac131313@redhat.com>
3700
3701 * bcache.h: Update copyright.
3702 (struct bstring, struct bcache): Move definition to "bcache.c".
3703 Replaced by opaque declaration.
3704 (bcache_xfree): Replace free_bcache.
3705 (bcache_xmalloc, bcache_memory_used): Declare.
3706
3707 * bcache.c: Update copyright.
3708 (struct bstring, struct bcache): Moved to here from "bcache.h".
3709 Update comments.
3710 (bcache_xmalloc, bcache_memory_used): New functions.
3711 (bcache_xfree): Replace function free_bcache.
3712
3713 * Makefile.in (objfiles.o): Add $(bcache_h).
3714 (objfiles_h): Remove $(bcache_h).
3715 (symfile.o): Add $(bcache_h).
3716
3717 * symmisc.c: Update copyright.
3718 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3719 (print_objfile_statistics): Use bcache_memory_used.
3720
3721 * symfile.c: Include "bcache.h".
3722 (reread_symbols): Use bcache_xfree.
3723 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3724 (add_psymbol_to_list): Pass psymbol_cache by value.
3725 (add_psymbol_with_dem_name_to_list): Ditto.
3726
3727 * objfiles.h: Update copyright.
3728 (struct bcache): Declare opaque. Do not include "bcache.h".
3729 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3730 bcache'' pointers.
3731 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3732
3733 * objfiles.c: Include "bcache.h". Update copyright.
3734 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3735 macro_cache.
3736 (free_objfile): Use bcache_xfree.
3737
444199e7
GS
37382002-07-11 Grace Sainsbury <graces@redhat.com>
3739
3740 * monitor.c (monitor_fetch_register): Make name a constant.
3741 (monitor_store_register): Same.
3742
261397f8
DJ
37432002-07-11 Daniel Jacobowitz <drow@mvista.com>
3744
3745 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3746 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3747 (finish_block) For non-function blocks, hash the symbol table. For
3748 function blocks, mark the symbol table as unhashed.
3749 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3750 (msymbol_hash_iw): Likewise.
3751 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3752 value.
3753 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3754 (lookup_minimal_symbol): Likewise for both.
3755 * symtab.h (struct block): Add `hashtable' flag. Comment the
3756 hashtable.
3757 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3758 (ALL_BLOCK_SYMBOLS): Update.
3759 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3760 (struct symbol): Add `hash_next' pointer.
3761 * symtab.c (lookup_block_symbol): Search using the hash table when
3762 possible.
3763 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3764 (search_symbols, find_addr_symbol): Likewise.
3765
3766 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3767 (read_dst_symtab): Likewise.
3768 * jv-lang.c (get_java_class_symtab): Likewise.
3769 * mdebugread.c: Include "gdb_assert.h".
3770 (shrink_block): Assert that the block being modified is not hashed.
3771 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3772 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3773 symbols.
3774 (dump_symtab): Recognize hashed blocks.
3775 * printcmd.c (print_frame_args): Assert that function blocks do not
3776 have hashed symbol tables.
3777 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3778 (fill_in_ada_prototype, debug_print_block): Likewise.
3779 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3780
6f0eaa01
CV
37812002-07-11 Corinna Vinschen <vinschen@redhat.com>
3782
3783 * stack.c (print_frame): Use result of frame_address_in_block()
3784 instead of fi->pc when evaluating symbols.
3785 (backtrace_command_1): Ditto.
3786
a208b0cb
AC
37872002-07-11 Andrew Cagney <cagney@redhat.com>
3788
3789 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3790 Make static.
3791
3792 * arm-tdep.c (arm_register_name): Make return type constant.
3793
a6b6b089
AC
37942002-07-10 Andrew Cagney <ac131313@redhat.com>
3795
5ae5f592
AC
3796 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3797 prototype.
3798 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3799 * s390-tdep.c (s390_fp_regnum): Ditto.
3800 (s390_read_fp): Ditto.
3801 (s390_pop_frame): Ditto.
3802 (_initialize_s390_tdep): Ditto.
3803 * remote.c (get_remote_state): Ditto.
3804 * procfs.c (mappingflags): Ditto.
3805 * memattr.c (_initialize_mem): Ditto.
3806 * mcore-tdep.c (mcore_pop_frame): Ditto.
3807 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3808 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3809 * language.c (set_case_str): Ditto.
3810 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3811 * frv-tdep.c (new_variant): Ditto.
3812 (frv_stopped_data_address): Ditto.
3813 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3814 (context_alloc): Ditto.
3815 (frame_state_alloc): Ditto.
3816 (unwind_tmp_obstack_init): Ditto.
3817 (unwind_tmp_obstack_free): Ditto.
3818 (cfi_read_fp): Ditto.
3819 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3820 (cris_pop_frame): Ditto.
3821 * c-lang.c (scanning_macro_expansion): Ditto.
3822 (finished_macro_expansion): Ditto.
3823 (c_preprocess_and_parse): Ditto.
3824 * gdbarch.sh: Ditto.
3825 * gdbarch.h, gdbarch.c: Regenerate.
3826 * config/mn10200/tm-mn10200.h: Adjust indentation.
3827 * target.c: Adjust indentation.
3828 * symtab.h: Adjust indentation.
3829 * stabsread.h: Adjust indentation.
3830 * remote-es.c: Adjust indentation.
3831 * os9kread.c: Adjust indentation.
3832
38332002-07-10 Andrew Cagney <ac131313@redhat.com>
3834
a6b6b089
AC
3835 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3836 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3837
a1789893
GS
38382002-07-10 Grace Sainsbury <graces@redhat.com>
3839
3840 * NEWS: Mention m68k, mcore multi-arching.
3841 * MAINTAINERS: Change status of m68k, mcore to reflect
3842 multi-arching.
3843
02f0d45d
DJ
38442002-07-10 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * valops.c (find_overload_match): Free oload_syms.
3847
f15f768e
JB
38482002-07-09 Joel Brobecker <brobecker@gnat.com>
3849
3850 Define HAVE_SYS_PROC_H if sys/proc.h exists
3851 * configure.in: Add check for sys/proc.h
3852 * config.in: Regenerate.
3853 * configure: Regenerate.
3854
902a7139
GS
38552002-07-09 Grace Sainsbury <graces@redhat.com>
3856
3857 * config/m68k/tm-m68k.h: Remove macros wrapped in
3858 #if !GDB_MULTI_ARCH.
3859
a534e424
AC
38602002-07-08 Andrew Cagney <ac131313@redhat.com>
3861
3862 * config.in, configure: Regenerate.
3863
9b94f7bf
MK
38642002-07-08 Mark Kettenis <kettenis@gnu.org>
3865
3866 * dwarf2cfi.c: Include "gcore.h".
3867 (execute_stack_op): Fix implementation of the
3868 DW_OP_deref and DW_OP_deref_size operators by letting do their
3869 lookup in the target.
3870
1d34db41
MK
38712002-07-07 Mark Kettenis <kettenis@gnu.org>
3872
3873 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3874 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3875 tdep->sc_sp_offset.
3876
79d5b63a
DJ
38772002-07-05 Daniel Jacobowitz <drow@mvista.com>
3878
3879 Fix PR gdb/595, gdb/602
3880 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3881 Don't call value_cast, just read the vtable pointer; update comments
3882 to match.
3883
3bb912e8
GS
38842002-07-05 Grace Sainsbury <graces@redhat.com>
3885
3886 * config/mcore/tm-mcore.h: Remove file.
3887 * config/mcore/mcore.mt: Remove definition of TM_FILE
3888 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3889
ca39387d
MK
38902002-07-05 Mark Kettenis <kettenis@gnu.org>
3891
3892 * i386bsd-tdep.c: Include "gdb_string.h".
3893
efdc1108
GS
38942002-07-04 Grace Sainsbury <graces@redhat.com>
3895
3896 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3897 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3898 mcore-tdep.
3899 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3900 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3901 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3902 (RETVAL_REGNUM): Move macros from tm-mcore.h
3903 (mcore_reg_struct_has_addr): New function.
3904 (mcore_gdbarch_init): Added initializations for the macros removed
3905 from tm-mcore.h.
3906
bb21884d
MK
39072002-07-04 Mark Kettenis <kettenis@gnu.org>
3908
3909 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3910 traditonal string branding within the ELF header.
3911
228c6d41
DJ
39122002-07-04 Daniel Jacobowitz <drow@mvista.com>
3913
3914 * symtab.c (remove_params): New function.
3915 (make_symbol_overload_list): Use it instead of cplus_demangle.
3916 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3917
2404952e
MK
39182002-07-04 Mark Kettenis <kettenis@gnu.org>
3919
e5e4acad
MK
3920 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3921
baadce09
MK
3922 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3923 New variables.
3924 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3925 and tdep->sigtramp_end.
3926 * i386obsd-nat.c: New file.
3927 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3928
2404952e
MK
3929 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3930 Don't call get_current_frame().
3931
9b4f1ba7
PM
39322002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3933
3934 * i386-nat.c (child_post_startup_inferior): New function
3935 calling i386_cleanup_dregs if
3936 I386_USE_GENERIC_WATCHPOINTS is defined.
3937 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3938 conditional to acknowledge that i386-nat.c has its
3939 own child_post_startup_inferior function.
3940
c0d1d883
MK
39412002-07-04 Mark Kettenis <kettenis@gnu.org>
3942
00f8375e
MK
3943 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3944 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3945 instead of MAX_REGISTER_RAW_SIZE.
3946 (i386_extract_return_value, i386_extract_struct_value_address):
3947 Convert to use regcache.
3948 (i386_gdbarch_init): Set max_register_raw_size and
3949 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3950 Set extract_return_value and extract_struct_value_address instead
3951 of their deprecated variants.
3952
c0d1d883
MK
3953 Convert i386 target to generic dummy frames.
3954 * i386-tdep.c: Include "symfile.h".
3955 (i386_frameless_signal_p): Consider a function to be frameless if
3956 the pc points at the first instruction of the function.
3957 (i386_frame_chain): Handle (generic) call dummies.
3958 (i386_frame_saved_pc): Likewise.
3959 (i386_frame_init_saved_regs): Remove code dealing with call
3960 dummies on the stack.
3961 (i386_push_dummy_frame): Removed.
3962 (i386_call_dummy_words): Removed.
3963 (i386_fix_call_dummy): Removed.
3964 (i386_push_return_address): New function.
3965 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3966 parameter, and don't call get_current_frame.
3967 (i386_pop_frame): New function.
3968 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3969 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3970 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3971 call_dummy_length to 0, set call_dummy_words to NULL, set
3972 sizeof_call_dummy_words to 0, set fix_call_dummy to
3973 generic_fix_call_dummy, set pc_in_call_dummy to
3974 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3975 generic_push_dummy_frame, set push_return_address to
3976 i386_push_return_address and set frame_chain_valid to
3977 generic_file_frame_chain_valid.
3978
049ee0e4
AC
39792002-07-03 Andrew Cagney <ac131313@redhat.com>
3980
3981 * gdbarch.sh (struct regcache): Add opaque declaration.
3982 (EXTRACT_RETURN_VALUE): New architecture method.
3983 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3984 * gdbarch.h, gdbarch.c: Regenerate.
3985 * arch-utils.c (legacy_extract_return_value): New function.
3986 * arch-utils.h (legacy_extract_return_value): Declare.
3987 * values.c (value_being_returned): Re-enable code handling
3988 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3989 deprecated_grub_regcache_for_registers call to block handling
3990 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3991 (EXTRACT_RETURN_VALUE): Do not define.
3992
4e0d9804
GS
39932002-07-03 Grace Sainsbury <graces@redhat.com>
3994
3995 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3996 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3997 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3998 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3999 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4000 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4001 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4002 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4003 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4004 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4005 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4006 argument so the function fits the prototype in the architecture
4007 vector.
4008 (mcore_pop_frame): Remove argument so the function fits the
4009 prototype. Use get_current_frame instead of the argument.
4010 (mcore_push_arguments): Change type of struct_return so the
4011 function can be used in the architecture vector.
4012 (mcore_store_struct_return): Add.
4013 (mcore_frame_init_saved_regs): Add.
4014 (mcore_gdbarch_init): Add function calls to replace the macros
4015 removed from tm-mcore.h
4016
36160dc4
AC
40172002-07-03 Andrew Cagney <ac131313@redhat.com>
4018
4019 * infcmd.c (print_return_value): Remove compatibility code calling
4020 deprecated_grub_regcache_for_registers.
4021
4022 * values.c: Include "regcache.h".
4023 (value_being_returned): Update. Use
4024 deprecated_grub_regcache_for_registers to extract the register
4025 buffer address.
4026 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4027 ``struct regcache''.
4028 * Makefile.in (values.o): Add dependency on $(regcache_h).
4029
4030 * inferior.h (run_stack_dummy): Change type of second parameter to
4031 a ``struct regcache''.
4032 * valops.c (hand_function_call): Change type of retbuf to ``struct
4033 regcache''. Allocate using regcache_xmalloc, clean using
4034 make_cleanup_regcache_xfree.
4035 * infcmd.c (run_stack_dummy): Update. Use
4036 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4037
4038 * regcache.c (do_regcache_xfree): New function.
4039 (make_cleanup_regcache_xfree): New function.
4040 * regcache.h (make_cleanup_regcache_xfree): Declare.
4041
e64d9b3d
MH
40422002-07-03 Martin M. Hunt <hunt@redhat.com>
4043
4dd79c29
MH
4044 * event-top.c (command_line_handler): Don't read past
4045 beginning of buffer.
e64d9b3d 4046
4dd79c29
MH
40472002-07-03 Martin M. Hunt <hunt@redhat.com>
4048
e64d9b3d
MH
4049 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4050 struct frame_id.
4051 (varobj_create): Store frame_id for root.
4052 (varobj_gen_name): Use xasprintf.
4053 (varobj_update): Save and restore frame using get_frame_id() and
4054 frame_find_by_id().
4055 (create_child): Use xasprintf.
4056 (new_root_variable): Initialize frame_id.
4057 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4058 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4059 to prevent memory leak.
4060
26e6c56a
AC
40612002-07-03 Andrew Cagney <ac131313@redhat.com>
4062
4063 * valops.c (hand_function_call): Move declaration of retbuf to
4064 start of function, allocate using malloc, add a cleanup but before
4065 the inf_status cleanup, cleanup the buffer. Rename local variable
4066 old_chain to inf_status_cleanup.
4067
f436dd25
MH
40682002-07-03 Martin M. Hunt <hunt@redhat.com>
4069
4070 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4071
4072 * cli/cli-decode.c (cmd_func_p): New function.
4073 (cmd_func): New function.
4074
4075 * command.h: Add cmd_func() and cmd_func_p().
4076
4cfe2084
GS
40772002-07-03 Grace Sainsbury <graces@redhat.com>
4078
4079 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4080 (REGISTER_SIZE): Remove.
4081 (MAX_REGISTER_RAW_SIZE): Remove.
4082 (REGISTER_VIRTUAL_TYPE): Remove.
4083 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4084 (REGISTER_NAME): Remove.
4085 (USE_GENERIC_DUMMY_FRAMES): Remove.
4086 (CALL_DUMMY): Remove.
4087 (CALL_DUMMY_START_OFFSET): Remove.
4088 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4089 (CALL_DUMMY_LOCATION): Remove.
4090 (FIX_CALL_DUMMY): Remove.
4091 (CALL_DUMMY_ADDRESS): Remove.
4092 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4093 (SAVE_DUMMY_FRAME_TOS): Remove.
4094 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4095 (mcore_register_virtual_type): New function.
4096 (mcore_register_byte): New function.
4097 (mcore_register_size): New function.
4098 (mcore_register_name): New function.
4099 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4100 macros removed from tm-mcore.h.
4101 (mcore_dump_tdep): Add.
4102 (_initialize_mcore_tdep): Add gdbarch_register call.
4103
4fd667e9
MK
41042002-07-03 Mark Kettenis <kettenis@gnu.org>
4105
4106 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4107 frameless_look_for_prologue, such that we actually call this
4108 function.
4109
42f99ac2
JB
41102002-07-02 Joel Brobecker <brobecker@gnat.com>
4111
4112 * frame.h (frame_address_in_block): New function.
4113
4114 * blockframe.c (frame_address_in_block): New function extracted
4115 from get_frame_block().
4116 (get_frame_block): Use frame_address_in_block().
4117 (block_innermost_frame): Use frame_address_in_block() to match
4118 the frame pc address against the block boundaries rather than
4119 the frame pc directly. This prevents a failure when a frame pc
4120 is actually a return-address pointing immediately after the end
4121 of the given block.
4122
103a1597 41232002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4124
4125 * MAINTAINERS: Add self under write after approval.
4126
41272002-07-02 Grace Sainsbury <graces@redhat.com>
4128
103a1597
GS
4129 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4130 used in architecture vector. The default is
4131 m68k_local_breakpoint_from_pc.
4132 (m68k_local_breakpoint_from_pc): Add.
4133 (enum): Add register numbers from tm-m68k.h.
4134 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4135 vector.
4136 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4137 GDB_MULTI_ARCH_PARTIAL.
4138 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4139 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4140 m68k-tdep.c.
4141 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4142 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4143 to enum in m68k-tdep.c
4144
7a5a0534
JB
41452002-07-02 Joel Brobecker <brobecker@gnat.com>
4146
4147 * solib-osf.c (open_map): Compute the list of shared libraries
4148 loaded by the inferior, rather than the list of libraries loaded
4149 by GDB itself. Otherwise, GDB ends up reading the symbols from
4150 the wrong shared libraries...
4151
6f558d74
MK
41522002-07-02 Mark Kettenis <kettenis@gnu.org>
4153
b7d15bf7
MK
4154 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4155 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4156 macros.
4157 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4158 Remove functions.
4159 (FRAMELESS_SIGNAL): Remove function.
4160 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4161 i386_linux_saved_pc_after_call): Removed.
4162 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4163 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4164 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4165
6bff26de
MK
4166 * i386-tdep.c (i386_frameless_signal_p): New function.
4167 (i386_frame_chain): Deal with frameless signals.
4168 (i386_sigtramp_saved_sp): New function.
4169 (i386_frame_saved_pc): Deal with frameless signals.
4170 (i386_saved_pc_after_call): Make sure the correct value is
4171 returned just after entry into a sigtramp.
4172 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4173 i386fbsd4_sc_sp_offset): New variables.
4174 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4175 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4176 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4177 similiar to what we already did for sc_pc_offset.
4178 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4179 tdep->sc_sp_offset.
4180
6f558d74
MK
4181 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4182
145564b7
ML
41832002-07-02 Michal Ludvig <mludvig@suse.cz>
4184
4185 * config/i386/tm-x86-64linux.h: New.
4186 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4187 definitions.
4188 * config/i386/nm-x86-64.h: Rename to ...
4189 * config/i386/nm-x86-64linux.h: ... this one.
4190 * config/i386/x86-64linux.mh: Reflect the above change.
4191
3a1e71e3
MK
41922002-07-01 Mark Kettenis <kettenis@gnu.org>
4193
21d0e8a4
MK
4194 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4195 with sigcontext_addr. Add sc_sp_offset.
4196 (i386bsd_sigtramp_saved_pc): Remove prototype.
4197 (i386bsd_sicontext_addr): Add prototype.
4198 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4199 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4200 (i386_svr4_sigtramp_saved_pc): Removed.
4201 (i386_svr4_sigcontext_addr): New function.
4202 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4203 Initialize tdep->sigcontext_addr instead. Initialize
4204 tdep->sc_pc_offset and tdep->sc_sp_offset.
4205 (i386_gdbarch_init): Likewise.
4206 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4207 any more.
4208 (i386bsd_sigtramp_saved_pc): Remove function.
4209 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4210 Initialize tdep->sigcontext_addr instead. Initialize
4211 tdep->sc_pc_offset.
4212 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4213 of tdep->sigtramp_saved_pc.
4214 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4215 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4216 instead.
4217
3a1e71e3
MK
4218 * i386-tdep.c (i386_frameless_function_invocation,
4219 i386_frame_num_args, i386_frame_init_saved_regs,
4220 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4221 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4222 i386_extract_return_value, i386_store_return_value,
4223 i386_extract_struct_value_address, i386_register_virtual_type,
4224 i386_register_convertible, i386_register_convert_to_virtual,
4225 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4226 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4227 static.
4228
52e9098c
MK
42292002-07-01 Mark Kettenis <kettenis@gnu.org>
4230
77b13a25
MK
4231 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4232
52e9098c
MK
4233 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4234 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4235 this macro. Include "value.h".
4236
1b372fff
AS
42372002-06-30 Aidan Skinner <aidan@velvet.net>
4238
4239 * ada-exp.tab.c: remove as it's a generated file
4240 * ada-lex.c: remove as it's a generated file
4241
9c5045b5
MK
42422002-06-30 Mark Kettenis <kettenis@gnu.org>
4243
4a93c5bb
MK
4244 * config/i386/tm-i386.h (struct frame_info, struct
4245 frame_saved_regs, struct value, struct type): Remove forward
4246 declarations.
4247
322d4fe0
MK
4248 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4249 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4250 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4251 (FILL_FPXREGSET): Define.
4252
fdd8263d
MK
4253 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4254
482e577b
MK
4255 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4256 i[3456]86-*-netbsd* case.
4257 * config/i386/tm-obsd.h: Removed.
4258 * config/i386/obsd.mt: Removed.
4259 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4260 core-aout.o.
4261 (MH_CFLAGS): Add -DYYDEBUG=0.
4262
6916549a
MK
4263 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4264 i386nbsd_sc_pc_offset on OpenBSD too.
4265
9c5045b5
MK
4266 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4267 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4268 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4269 define.
4270 * i386bsd-tdep.c: Include "arch-utils.h".
4271 (i386bsd_aout_in_solib_call_trampoline): New function.
4272 (i386bsd_init_abi): Set in_solib_call_trampoline to
4273 i386bsd_aout_in_solib_call_trampoline.
4274 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4275 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4276
aa84d1bb
AC
42772002-06-28 Andrew Cagney <ac131313@redhat.com>
4278
4279 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4280 (struct obstack, struct bcache): Add opaque declarations.
4281 * Makefile.in (macrotab_h): Update
4282
b4d83933
AC
42832002-06-28 Andrew Cagney <ac131313@redhat.com>
4284
4285 * blockframe.c (generic_find_dummy_frame): Change return type to
4286 ``struct regcache''.
4287 (struct dummy_frame): Replace field ``registers'' with regcache, a
4288 struct regcache object.
4289 (generic_find_dummy_frame): Update.
4290 (generic_push_dummy_frame): Update. Use regcache_xfree,
4291 regcache_xmalloc and regcache_cpy.
4292 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4293 regcache_xfree.
4294 (deprecated_generic_find_dummy_frame): Update.
4295 (generic_read_register_dummy): Update. Use
4296 regcache_read_as_address.
4297 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4298 (generic_get_saved_register): Update. Use regcache_read.
4299
08c0b5bc
AC
43002002-06-28 Andrew Cagney <ac131313@redhat.com>
4301
4302 * Makefile.in (objfiles_h): Add $(bcache_h).
4303 * objfiles.h: Include "bcache.h".
4304
4305 * Makefile.in (symtab_h): Remove $(bcache_h).
4306 * symtab.h: Do not include "bcache.h".
4307
1f89801a
AC
43082002-06-28 Andrew Cagney <ac131313@redhat.com>
4309
4310 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4311 generic_func_frame_chain_valid.
4312
b9644b58
DB
43132002-06-28 David O'Brien <obrien@FreeBSD.org>
4314
4315 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4316 * config/i386/tm-fbsd.h: Likewise.
4317
dd486634
AC
43182002-06-28 Andrew Cagney <ac131313@redhat.com>
4319
4320 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4321 generic_unwind_get_saved_register.
4322
0b434a00
AC
43232002-06-27 Andrew Cagney <ac131313@redhat.com>
4324
4325 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4326 * regcache.c (supply_register): Add missing argument to
4327 register_buffer call.
4328
f30e5a77
AC
43292002-06-27 Andrew Cagney <ac131313@redhat.com>
4330
4331 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4332 Solaris /bin/grep does not not like it. From Peter Schauer.
4333
9f064c95
TT
43342002-06-26 Tom Tromey <tromey@redhat.com>
4335
4336 * command.h (add_setshow_cmd): Declare.
4337 (add_setshow_cmd_full): Declare.
4338 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4339 returns void. Use add_setshow_cmd_full.
4340 (add_setshow_cmd_full): New function.
4341 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4342 (add_setshow_boolean_cmd): Likewise.
4343
099c7589
JT
43442002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4345
4346 * config/vax/tm-vax.h: Protect from multiple inclusion.
4347 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4348 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4349 * config/vax/tm-vaxbsd.h: ...here. New file.
4350 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4351
1d049c5e
JT
43522002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4353
4354 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4355 (BELIEVE_PCC_PROMOTION): Remove.
4356 (AP_REGNUM): Move to...
4357 * config/vax/nm-vax.h: ...here.
4358 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4359 (vax_breakpoint_from_pc): New function.
4360 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4361 and gdbarch_believe_pcc_promotion.
4362
4791e091
JT
43632002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4364
4365 * Makefile.in (vax_tdep_h): Define.
4366 (vax-tdep.o): Use $(vax_tdep_h).
4367 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4368 (vax_dump_tdep): New function.
4369 (_initialize_vax_tdep): Register vax_dump_tdep.
4370 * vax-tdep.h: Include osabi.h.
4371 (struct gdbarch_tdep): New.
4372
da130f98
AC
43732002-06-26 Andrew Cagney <cagney@redhat.com>
4374
4375 * frame.h (deprecated_generic_find_dummy_frame): Rename
4376 generic_find_dummy_frame.
4377 * blockframe.c (generic_find_dummy_frame): Make static.
4378 (deprecated_generic_find_dummy_frame): New function.
4379 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4380 generic_find_dummy_frame with deprecated_find_dummy_frame.
4381 (sh64_nofp_frame_init_saved_regs): Ditto.
4382 (sh_fp_frame_init_saved_regs): Ditto.
4383 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4384 (s390_frame_chain): Ditto.
4385 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4386
6300c360
GS
43872002-06-26 Grace Sainsbury <graces@redhat.com>
4388
4389 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4390 gdbarch vector are at the top.
4391 (NUM_REGS): Remove.
4392 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4393 (FRAME_ARGS_ADDRESS): Remove.
4394 (FRAME_LOCALS_ADDRESS): Remove.
4395 (FRAME_NUM_ARGS): Remove.
4396 (FRAME_ARGS_SKIP): Remove.
4397 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4398 (m68k_gdbarch_init): Add gdbarch initializations for macros
4399 undefined in tm-m68k.h
4400
1c617db8
GS
44012002-06-26 Grace Sainsbury <graces@redhat.com>
4402
4403 * monitor.h: Add the function regname to monitor_ops
4404 structure. This way NUM_REGS does not have to be a constant.
4405 * monitor.c (monitor_fetch_register): Added support for regname
4406 function. The function is called if the array regnames is NULL.
4407 (monitor_store_register): Same.
da130f98
AC
4408 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4409 regnames array.
1c617db8
GS
4410 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4411 cpu32bug_cmds.regname to point to new function.
4412 * abug-rom.c (abug_regname): Same as above.
4413 (init_abug_cmds): Same.
4414 * dbug-rom.c (dbug_regname): Same as above.
4415 (init_dbug_cmds): Same.
4416 * remote-est.c (est_regname): Same.
4417 (init_est_cmds): Same.
4418 * rom68k-rom.c (rom68k_regname): Same.
4419 (init_rom68k_cmds): Same.
4420
ea9365bb
TT
44212002-06-25 Tom Tromey <tromey@redhat.com>
4422
4423 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4424
72cec141
AC
44252002-06-25 Andrew Cagney <cagney@redhat.com>
4426
4427 * infrun.c (stop_registers): Change variable's type to ``struct
4428 regcache'''.
4429 (xmalloc_inferior_status): Delete function.
4430 (free_inferior_status): Delete function.
4431 (normal_stop): Use regcache_cpy.
4432 (struct inferior_status): Change type of fields ``stop_registers''
4433 and ``registers'' to ``struct regcache''.
4434 (write_inferior_status_register): Use regcache_write.
4435 (save_inferior_status): Instead of calling
4436 xmalloc_inferior_status, allocate the inf_status buffer directly.
4437 Use regcache_dup_no_passthrough and regcache_dup to save the
4438 buffers.
4439 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4440 Replace the stop_registers regcache instead of overriding it. Use
4441 regcache_xfree. Instead of calling free_inferior_status, xfree
4442 the buffer directly.
4443 (discard_inferior_status): Use regcache_xfree. Instead of calling
4444 free_inferior_status, xfree the buffer directly.
4445 (build_infrun): Use regcache_xmalloc.
4446 (_initialize_infrun): Delete redundant call to build_infrun.
4447
4448 * Makefile.in (infcmd.o): Add $(regcache_h).
4449
4450 * infcmd.c: Include "regcache.h".
4451 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4452 obtain the address of `stop_registers' register buffer.
4453 (print_return_value): Ditto.
4454
4455 * inferior.h (struct regcache): Add opaque declaration.
4456 (stop_registers): Change variable's declared type to ``struct
4457 regcache''.
4458
defc6f8c
TT
44592002-06-24 Tom Tromey <tromey@redhat.com>
4460
c0e624e7
TT
4461 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4462 * target.c (initialize_targets): Fixed typo in
4463 trust-readonly-sections `show' documentation.
4464
defc6f8c
TT
4465 * main.c: Marked all strings with _().
4466
2b236d82
DH
44672002-06-24 Don Howard <dhoward@redhat.com>
4468
4469 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4470 that means max CORE_ADDR+1.
4471 (lookup_mem_region): Ditto.
4472 (mem_info_command): Ditto.
4473
942dc0e9
GS
44742002-06-24 Grace Sainsbury <graces@redhat.com>
4475
4476 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4477 (REGISTER_BYTES_OK): Remove.
4478 (REGISTER_BYTES): Remove.
4479 (STORE_STRUCT_RETURN): Remove.
4480 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4481 (STORE_RETURN_VALUE): Remove.
4482 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4483 (FRAME_CHAIN): Remove.
4484 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4485 (FRAME_SAVED_PC): Remove.
4486 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4487 (m68k_store_struct_return): Add.
4488 (m68k_deprecated_extract_return_value): Add.
4489 (m68k_deprecated_extract_struct_value_address): Add.
4490 (m68k_store_return_value): Add.
4491 (m68k_frame_chain): Add.
4492 (m68k_frameless_function_invocation): Add.
4493 (m68k_frame_saved_pc): Add.
4494 (m68k_gdbarch_init): added set_gdbarch calls for new
4495 functions and deleted macros.
4496
03c30d4d
TT
44972002-06-23 Tom Tromey <tromey@redhat.com>
4498
4499 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4500 (ALLDEPFILES): Likewise.
4501 (udiheaders): Removed.
4502 (udip2soc.o): Likewise.
4503 (udi2go32.o): Likewise.
4504 (udr.o): Likewise.
4505 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4506
37e71372
AC
45072002-06-22 Andrew Cagney <ac131313@redhat.com>
4508
06a6ac57
AC
4509 * infrun.c (_initialize_infrun): Delete unnecessary call to
4510 build_infrun.
4511
37e71372
AC
4512 * regcache.h: Update comments describing the regcache_cpy family
4513 of functions.
4514 (regcache_save, regcache_restore): Delete declaration.
4515 (regcache_save_no_passthrough): Delete declaration.
4516 (regcache_restore_no_passthrough): Delete declaration.
4517 * regcache.c (regcache_save): Delete function.
4518 (regcache_save_no_passthrough): Delete function.
4519 (regcache_restore): Delete function.
4520 (regcache_restore_no_passthrough): Delete function.
4521
78f6d055
AC
45222002-06-21 Andrew Cagney <ac131313@redhat.com>
4523
4524 * config/m68k/tm-m68k.h: Fix typo.
4525 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4526 (m68k_frame_init_saved_regs): Declare.
4527
78b119cb
JB
45282002-06-21 Jim Blandy <jimb@redhat.com>
4529
4530 Remove some vestiges of Harris 88k support.
4531 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4532 register numbering quirk.
4533 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4534 odd symbols occurring in Harris 88k ELF targets.
4535
0fbb3da7
TT
45362002-06-21 Tom Tromey <tromey@redhat.com>
4537
4538 * gdb_locale.h: New file.
4539 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4540 (defs_h): Added gdb_locale.h.
4541 * configure, config.in: Rebuilt.
4542 * configure.in (PACKAGE): Define.
4543 * defs.h: Include gdb_locale.h.
4544 * main.c (captured_main): Call setlocale, bindtextdomain,
4545 textdomain.
4546
456f8b9d
DB
45472002-06-21 Dave Brolley <brolley@redhat.com>
4548
4549 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4550 * config/frv/frv.mt: New file.
4551 * config/frv/tm-frv.h: New file.
4552 * configure.tgt: Support frv-*-*.
4553 * Makefile.in (frv-tdep.o): New target.
4554 * frv-tdep.c: New file.
4555 * NEWS: Mention frv.
4556
cdd463f9
DB
45572002-06-21 Dave Brolley <brolley@redhat.com>
4558
4559 * MAINTAINERS: Add self to "Write After Approval" list.
4560
5d3ed2e3
GS
45612002-06-21 Grace Sainsbury <graces@redhat.com>
4562
4563 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4564 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4565 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4566 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4567 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4568
4569 * m68k-tdep.c: Include arch-utils.h
4570 (m68k_register_raw_size): Add.
4571 (m68k_register_virtual_size): Add.
4572 (m68k_register_virtual_type): Add.
4573 (m68k_register_name): Add.
4574 (m68k_stack_align): Add.
4575 (m68k_register_byte): Add.
4576 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4577 tm-m68k.h.
4578
7f8e7424
GS
45792002-06-21 Grace Sainsbury <graces@redhat.com>
4580
a2c6a6d5 4581 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4582 m68k_find_saved_regs.
4583 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4584 references to it with frame->saved_regs.
7f8e7424
GS
4585 (m68k_gdbarch_init): Added function calls to initialize the
4586 gdbarch structure.
a2c6a6d5
GS
4587 (m68k_fix_call_dummy): Add.
4588 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4589 (CALL_DUMMY): Remove.
4590 (CALL_DUMMY_LENGTH): Remove.
4591 (CALL_DUMMY_START_OFFSET): Remove.
4592 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4593 (FIX_CALL_DUMMY): Remove.
4594 (PUSH_DUMMY_FRAME): Remove.
4595 (POP_FRAME): Remove.
7f8e7424 4596
f461f5cf
PM
45972002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4598
4599 * parse.c (parse_fprintf): New function used to avoid calls to
4600 fprintf in bison parser generated debug code.
4601 * parser-defs.h: Declaration of new parse_fprintf function.
4602 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4603 Set YYDEBUG to 1 by default.
4604 Set YYFPRINTF as parse_fprintf.
4605
7f0c12ed
ML
46062002-06-21 Michal Ludvig <mludvig@suse.cz>
4607
4608 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4609 encoding anymore.
4610 (pointer_encoding, enum ptr_encoding): New.
4611 (execute_cfa_program): Take care about pointer encoding.
4612 (dwarf2_build_frame_info): Only call parse_frame_info for
4613 .debug_frame and .eh_frame.
4614 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4615 fixed augmentation handling, added relative addressing,
4616 ignore duplicate FDEs. Added comments.
19d833a2 4617 * dwarf2cfi.c: Reindented.
7f0c12ed 4618
87c4a039
EZ
46192002-06-20 Elena Zannoni <ezannoni@redhat.com>
4620
4621 * event-top.c (command_handler): Don't use space_at_cmd_start
4622 unless there is sbrk() on the host. Assign time and space data
4623 to union fields of the appropriate length.
4624
1cf877ad
ML
46252002-06-20 Michal Ludvig <mludvig@suse.cz>
4626
4627 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4628 x86_64_register_name. Return type changed to 'const char *'.
4629 (x86_64_register_name2nr): Rename to x86_64_register_number.
4630 (x86_64_gdbarch_init): Update to reflect the change.
4631 * x86-64-tdep.h: Ditto.
4632 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4633 (supply_fpregset): Ditto.
4634
3fadccb3
AC
46352002-06-19 Andrew Cagney <cagney@redhat.com>
4636
4637 * regcache.h: Update copyright.
4638 (struct regcache, struct gdbarch): Add opaque declarations.
4639 (current_regcache): Declare global variable.
4640 (regcache_read, regcache_write): Add gdbarch parameter.
4641 (regcache_save, regcache_save_no_passthrough)
4642 (regcache_restore, regcache_restore_no_passthrough)
4643 (regcache_dup, regcache_dup_no_passthrough)
4644 (regcache_cpy, regcache_cpy_no_passthrough)
4645 (deprecated_grub_regcache_for_registers)
4646 (deprecated_grub_regcache_for_register_valid)
4647 (regcache_valid_p): Add function declarations.
4648
4649 * regcache.c: Update copyright.
4650 (regcache_descr_handle): New global variable.
4651 (struct regcache_descr): Define.
4652 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4653 (regcache_descr, xfree_regcache_descr): New functions.
4654 (struct regcache): Define.
4655 (regcache_xmalloc, regcache_xfree): New functions.
4656 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4657 (regcache_dup, regcache_dup_no_passthrough): New functions.
4658 (regcache_valid_p, regcache_read_as_address): New functions.
4659 (deprecated_grub_regcache_for_registers): New function.
4660 (deprecated_grub_regcache_for_register_valid): New function.
4661 (current_regcache): New global variable.
4662 (register_buffer): Add regcache parameter. Update calls.
4663 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4664 (read_register_gen, write_register_gen): Update register_buffer
4665 call. Test for legacy_p instead of gdbarch_register_read_p or
4666 gdbarch_register_write_p.
4667 (regcache_collect): Update register_buffer call.
4668 (build_regcache): Rewrite. Use deprecated grub functions.
4669 (regcache_save, regcache_save_no_passthrough): New functions.
4670 (regcache_restore, regcache_restore_no_passthrough): New
4671 functions.
4672 (_initialize_regcache): Create the regcache_data_handle. Swap
4673 current_regcache global variable.
4674
4675 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4676 parameter to regcache_read and regcache_write calls.
4677 (sh4_register_read): Ditto.
4678 (sh64_pseudo_register_read): Ditto.
4679 (sh64_register_read): Ditto.
4680 (sh_pseudo_register_write): Ditto.
4681 (sh4_register_write): Ditto.
4682 (sh64_pseudo_register_write): Ditto.
4683 (sh64_register_write): Ditto.
4684
4685 * defs.h (XCALLOC): Define.
4686
152d9db6
GS
46872002-06-19 Grace Sainsbury <graces@redhat.com>
4688
4689 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4690 * m68k-tdep.c (m68k_gdbarch_init): Added.
4691 (m68k_dump_tdep): Added.
4692
170911c7
DJ
46932002-06-19 Daniel Jacobowitz <drow@mvista.com>
4694
4695 * ada-lang.c (fill_in_ada_prototype): Update comment.
4696
2e4ebe70
DJ
46972002-06-19 Daniel Jacobowitz <drow@mvista.com>
4698
4699 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4700 MIPS_ABI_LAST.
4701 (mips_abi_string, mips_abi_strings): New.
4702 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4703 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4704 tdep->mips_abi_string. Honor mips_abi_string. Default to
4705 O32 if no ABI is found.
4706 (mips_dump_tdep): Use mips_abi_strings.
4707 (mips_abi_update): New function.
4708 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4709 ``set mips abi'' and ``show mips abi''. Check the size of
4710 mips_abi_strings.
4711
16775908
AC
47122002-06-19 Andrew Cagney <cagney@redhat.com>
4713
4714 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4715 constant.
4716
5051bfa4 47172002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4718
5051bfa4
JB
4719 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4720 current frame using only the first stack size adjustment. All
4721 subsequent size adjustments are not considered to be part of
4722 the "static" part of the current frame.
4723 Compute the address of the saved registers relative to the
4724 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4725 in use in this frame.
4726
56468235
DH
47272002-06-18 Don Howard <dhoward@redhat.com>
4728
4729 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4730 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4731 suggesting this solution.
4732
0b624158
AC
47332002-06-18 Andrew Cagney <ac131313@redhat.com>
4734
4735 * config/romp/xm-rtbsd.h: Delete file.
4736 * config/romp/rtbsd.mh: Delete file.
4737
221ea385
KS
47382002-06-18 Keith Seitz <keiths@redhat.com>
4739
4740 * breakpoint.c (condition_command): Post breakpoint_modify
4741 when a condition is added to an existing breakpoint.
4742 (commands_command): Likewise for commands.
4743 (set_ignore_count): Likewise for ignore counts.
4744 If no tty, do not simply return, still need to send event
4745 notification.
4746 (ignore_command): Only print a newline if the command came
4747 from a tty.
4748 Don't call breakpoints_changed, since this is now properly
4749 handled by set_ignore_count.
4750
5402eed1
AC
47512002-06-18 Andrew Cagney <cagney@redhat.com>
4752
4753 * MAINTAINERS: Note that cris-elf target can be compiled with
4754 -Werror.
4755 * cris-tdep.c (cris_register_name): Make return type constant.
4756 (cris_breakpoint_from_pc): Ditto.
4757
cc22880b
ML
47582002-06-18 Michal Ludvig <mludvig@suse.cz>
4759
4760 * frame.h (struct frame_info): Change type of context to
4761 'struct context'.
4762
fa88f677
AC
47632002-06-17 Andrew Cagney <cagney@redhat.com>
4764
4765 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4766 pointer.
4767 * gdbarch.h, gdbarch.c: Regenerate.
4768 * config/mips/tm-mips.h (mips_register_name): Update.
4769 * i386-tdep.h (i386_register_name): Update.
4770 * mips-tdep.c (mips_register_name): Update
4771 * alpha-tdep.c (alpha_register_name): Update.
4772 * arch-utils.c (legacy_register_name): Update.
4773 * arch-utils.h (legacy_register_name): Update.
4774 * avr-tdep.c (avr_register_name): Update.
4775 * ia64-tdep.c (ia64_register_name): Update.
4776 * i386-tdep.c (i386_register_name): Update.
4777 * sparc-tdep.c (sparc32_register_name): Update.
4778 (sparc64_register_name): Update.
4779 (sparclite_register_name): Update.
4780 (sparclet_register_name): Update.
4781 * sh-tdep.c (sh_generic_register_name): Update.
4782 (sh_sh_register_name): Update.
4783 (sh_sh3_register_name): Update.
4784 (sh_sh3e_register_name): Update.
4785 (sh_sh_dsp_register_name): Update.
4786 (sh_sh3_dsp_register_name): Update.
4787 (sh_sh4_register_name): Update.
4788 (sh_sh64_register_name): Update.
4789 * s390-tdep.c (s390_register_name): Update.
4790 * rs6000-tdep.c (rs6000_register_name): Update.
4791 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4792 (ns32k_register_name_32382): Update.
4793 * d10v-tdep.c (d10v_ts2_register_name): Update.
4794 (d10v_ts3_register_name): Update.
4795 * xstormy16-tdep.c (xstormy16_register_name): Update.
4796 * vax-tdep.c (vax_register_name): Update.
4797 * v850-tdep.c (v850_register_name): Update.
4798 * m68hc11-tdep.c (m68hc11_register_name): Update.
4799 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4800 (am33_register_name): Update.
4801
ea1e7ef6
GS
48022002-06-17 Grace Sainsbury <graces@redhat.com>
4803
4804 * m68k-tdep.c: Reindented.
4805
9b02dd1b
AC
48062002-06-17 Andrew Cagney <ac131313@redhat.com>
4807
4808 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4809 list of predefined types.
4810
8758dec1
MK
48112002-06-16 Mark Kettenis <kettenis@gnu.org>
4812
b6197528
MK
4813 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4814 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4815 REGISTER_CONVERT_TO_RAW): Remove defines.
4816 (i386_register_virtual_type, i386_register_convertible,
4817 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4818 Remove prototypes.
4819 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4820 macros mentioned above.
4821
82b47e62
MK
4822 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4823 (i386lynx_saved_pc_after_call): Remove prototype.
4824 * i386ly-tdep.c: Include "i386-tdep.h".
4825 (i386lynx_saved_pc_after_call): Make static. Use
4826 read_memory_nobpt instead of read_memory. Use
4827 read_memory_unsigned_integer instead of read_memory_integer.
4828 (i386lynx_init_abi): New function.
4829 (i386lynx_coff_osabi_sniffer): New function.
4830 (_initialize_i386bsd_tdep): New function.
4831
8758dec1
MK
4832 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4833 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4834 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4835 (i386_fix_call_dummy): Remove prototype.
4836 * i386-tdep.c (i386_call_dummy_words): New variable.
4837 (i386_gdbarch_init): Adjust for removal of the
4838 macros mentioned above.
4839
e9e68a56
AC
48402002-06-15 Andrew Cagney <ac131313@redhat.com>
4841
4842 * command.h (add_setshow_auto_boolean_cmd): Replace
4843 add_set_auto_boolean_cmd.
4844 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4845 add_set_auto_boolean_cmd.
4846 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4847 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4848 mask-address'' command.
4849 (show_mask_address): Add cmd parameter.
4850 * remote.c (add_packet_config_cmd): Update. Change type of
4851 set_func and show_func to cmd_sfunc_ftype.
4852 (_initialize_remote): Update `set remote Z-packet'
4853 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4854 (show_remote_protocol_e_packet_cmd): Ditto.
4855 (show_remote_protocol_E_packet_cmd): Ditto.
4856 (show_remote_protocol_P_packet_cmd): Ditto.
4857 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4858 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4859 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4860 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4861 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4862 (show_remote_protocol_Z_packet_cmd): Ditto.
4863 (show_remote_protocol_binary_download_cmd): Ditto.
4864 (show_remote_cmd): Pass NULL to all of above.
4865
fc08ec52
MK
48662002-06-15 Mark Kettenis <kettenis@gnu.org>
4867
4868 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4869 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4870 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4871 POP_FRAME): Remove defines.
4872 (i386_push_arguments, i386_store_struct_return,
4873 i386_extract_return_value, i386_store_return_value,
4874 i386_extract_struct_value_address, i386_push_dummy_frame,
4875 i386_pop_frame): Renove prototypes.
4876 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4877 macros mentioned above.
4878
e707bbc2
AC
48792002-06-15 Andrew Cagney <ac131313@redhat.com>
4880
4881 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4882 add_set_boolean_cmd.
4883 (add_setshow_cmd): New function.
4884 * command.h (add_setshow_boolean_cmd): Replace
4885 add_set_boolean_cmd.
4886 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4887 and ``set rdiromatzero''.
4888 * maint.c (_initialize_maint_cmds): Update commented out code.
4889 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4890 * target.c (initialize_targets): Update `set
4891 trust-readonly-sections'.
4892 * remote.c (_initialize_remote): Update `set remotebreak'.
4893
42fdc8df
MK
48942002-06-15 Mark Kettenis <kettenis@gnu.org>
4895
93924b6b
MK
4896 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4897 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4898 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4899 fit into multi-arch framework.
4900 (i386_breakpoint_from_pc): New function.
4901 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4902 above.
4903
42fdc8df
MK
4904 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4905 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4906 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4907 (i386_frameless_function_invocation, i386_frame_num_args,
4908 i386_frame_init_saved_regs): Remove prototypes.
4909 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4910 macros mentioned above.
4911
9773a94b
AC
49122002-06-15 Andrew Cagney <ac131313@redhat.com>
4913
4914 * cli/cli-decode.c (set_cmd_cfunc): Update.
4915 (set_cmd_sfunc): Update.
4916 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4917 (set_cmd_sfunc, set_cmd_cfunc): Update.
4918 * cli/cli-decode.h: Update.
4919
6e157172
MK
49202002-06-15 Mark Kettenis <kettenis@gnu.org>
4921
4922 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4923 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4924
7f19b9a2
AC
49252002-06-15 Andrew Cagney <ac131313@redhat.com>
4926
4927 * defs.h (auto_boolean): Declare enum.
4928 * command.h (cmd_auto_boolean): Delete enum.
4929 * mips-tdep.c (mask_address_var): Update.
4930 (mips_mask_address_p): Update.
4931 (show_mask_address): Update.
4932 * remote.c (struct packet_config): Update.
4933 (update_packet_config): Update.
4934 (show_packet_config_cmd): Update.
4935 (packet_ok): Update.
4936 (add_packet_config_cmd): Update.
4937 (_initialize_remote):
4938 * command.h: Update.
4939 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4940 (do_setshow_command): Update.
4941 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4942 * cli/cli-decode.h: Update.
4943
1cf88de5
MK
49442002-06-15 Mark Kettenis <kettenis@gnu.org>
4945
22ba8cf2
MK
4946 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4947 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4948 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4949 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4950 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4951 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4952
762c5349
MK
4953 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4954 list of DJGPP COFF targets.
4955
091198bb
MK
4956 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4957 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4958 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4959 (FP0_REGNUM): Remove define.
4960 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4961 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4962 (i386_register_virtual_size): Remove protoype.
4963 * i386-tdep.c (i386_register_virtual_size): Removed.
4964 (i386_extract_return_value, i386_store_return_value): Use
4965 FP0_REGNUM instead of NUM_FREGS to determine whether the
4966 floating-point registers are available.
4967 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4968 Adjust for removal of macros mentioned above.
4969
49702002-06-15 Mark Kettenis <kettenis@gnu.org>
4971
fcc9bf01
MK
4972 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4973 comments.
4974 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4975 Remove prototypes.
4976 (supply_gregset, fill_gregset): Remove use of register keyword and
4977 remove declaration for regmap. Use I386_NUM_GREGS instead of
4978 NUM_REGS and NUM_FREGS.
4979 (FPREGSET_FSAVE_OFFSET): Remove.
4980 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4981 NUM_FREGS to determine whether the floating-point registers are
4982 available.
4983
65e78234
MK
4984 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4985 gnu_store_registers): Replace usage of NUM_GREGS with
4986 I386_NUM_GREGS.
4987
98df6387
MK
4988 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4989 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4990 usage of NUM_GREGS with I386_NUM_GREGS.
4991
099a9414
MK
4992 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4993
57976e88
MK
4994 * i386bsd-nat.c: Include "i386-tdep.h".
4995 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4996 I386_NUM_GREGS.
4997
b335f4a6
MK
4998 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4999 and associated comment. They no longer make any sense, since we
5000 don't use this file anymore on Linux.
5001
1cf88de5
MK
5002 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5003 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5004 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5005 elements in these arrays.
5006 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5007 MAX_NUM_REGS.
5008
daa66587
MK
50092002-06-15 Mark Kettenis <kettenis@gnu.org>
5010
5011 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5012 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5013
26e9b323
AC
50142002-06-14 Andrew Cagney <cagney@redhat.com>
5015
5016 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5017 EXTRACT_RETURN_VALUE.
5018 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5019 EXTRACT_STRUCT_VALUE_ADDRESS.
5020 * gdbarch.h, gdbarch.c: Regenerate.
5021
5022 * values.c (value_being_returned): Handle
5023 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5024 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5025
5026 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5027 * arm-tdep.c (arm_gdbarch_init): Update.
5028 * avr-tdep.c (avr_gdbarch_init): Update.
5029 * cris-tdep.c (cris_gdbarch_init): Update.
5030 * d10v-tdep.c (d10v_gdbarch_init): Update.
5031 * ia64-tdep.c (ia64_gdbarch_init): Update.
5032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5034 * s390-tdep.c (s390_gdbarch_init): Update.
5035 * sh-tdep.c (sh_gdbarch_init): Update.
5036 * s390-tdep.c (s390_gdbarch_init): Update.
5037 * sparc-tdep.c (sparc_gdbarch_init): Update.
5038 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5039 * v850-tdep.c (v850_gdbarch_init): Update.
5040 * vax-tdep.c (vax_gdbarch_init): Update.
5041 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5043
5044 * config/arc/tm-arc.h: Update.
5045 * config/d30v/tm-d30v.h: Update.
5046 * config/fr30/tm-fr30.h: Update.
5047 * config/h8300/tm-h8300.h: Update.
5048 * config/h8500/tm-h8500.h: Update.
5049 * config/i386/tm-i386.h: Update.
5050 * config/i386/tm-ptx.h: Update.
5051 * config/i386/tm-symmetry.h: Update.
5052 * config/i960/tm-i960.h: Update.
5053 * config/m32r/tm-m32r.h: Update.
5054 * config/m68k/tm-delta68.h: Update.
5055 * config/m68k/tm-linux.h: Update.
5056 * config/m68k/tm-m68k.h: Update.
5057 * config/m88k/tm-m88k.h: Update.
5058 * config/mcore/tm-mcore.h: Update.
5059 * config/mips/tm-mips.h: Update.
5060 * config/mn10200/tm-mn10200.h: Update.
5061 * config/pa/tm-hppa.h: Update.
5062 * config/pa/tm-hppa64.h: Update.
5063 * config/sparc/tm-sp64.h: Update.
5064 * config/sparc/tm-sparc.h: Update.
5065 * config/sparc/tm-sparclet.h: Update.
5066 * config/z8k/tm-z8k.h: Update.
5067
5179e78f
AC
50682002-06-14 Andrew Cagney <cagney@redhat.com>
5069
5070 * Makefile.in (i386_linux_tdep_h): Define.
5071 (i386_tdep_h, i387_tdep_h): Define.
5072 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5073 $(i386_tdep_h) and $(i387_tdep_h).
5074 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5075
8201327c
MK
50762002-06-14 Mark Kettenis <kettenis@gnu.org>
5077
edf393ac
MK
5078 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5079 Already covered by the default.
5080
896fb97d
MK
5081 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5082 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5083 (i386_gdbarch_init): Initialize long_double_format and long_double
5084 bit.
5085
8201327c
MK
5086 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5087 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5088 Move these to ...
5089 * config/i386/i386sol2.mh: ... here.
5090 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5091 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5092 (SIGCONTEXT_PC_OFFSET): Remove define.
5093 (IN_SIGTRAMP): Remove define.
5094 * i386-sol2-tdep.c: New file.
5095
5096 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5097 * config/i386/tm-i386nw.h: Removed.
5098
5099 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5100 USE_STRUCT_CONVENTION): Remove defines.
5101 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5102 (get_longjmp_target): Remove prototype.
5103 (IN_SIGTRAMP): Remove define.
5104 (i386bsd_in_sigtramp): Remove prototype.
5105 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5106 function. Update comment accordingly
5107 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5108 (FRAME_SAVED_PC): Remove define.
5109 (i386bsd_frame_saved_pc): Remove prototype.
5110 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5111 GET_LONGJMP_TARGET): Remove defines.
5112 (get_longjmp_target): Remove prototype.
5113 (IN_SIGTRAMP): Remove define.
5114 (i386bsd_in_sigtramp): Remove prototype.
5115 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5116 function. Update comment accordingly
5117 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5118 (FRAME_SAVED_PC): Remove define.
5119 (i386bsd_frame_saved_pc): Remove prototype.
5120 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5121 Remove prototype.
5122 (USE_STRUCT_CONVENTION): Remove prototype.
5123 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5124 declaration.
5125 (_initialize_i386bsd_nat): Revise logic to determine some
5126 constants at compile time when compiling a native GDB. Warn if
5127 things don't match up with what we expect.
5128 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5129 Remove variables.
5130 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5131 to use date stored in `struct gdbarch_tdep'.
5132 (i386bsd_sigcontext_offset): Remove varaible.
5133 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5134 stored in `struct gdbarch_tdep'.
5135 (i386bsd_frame_saved_pc): Make static.
5136 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5137 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5138 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5139 i386fbsd4_sc_pc_offset): New variables.
5140 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5141 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5142 functions.
5143 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5144 functions.
5145 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5146 Modify the value of i386fbsd_sigtramp_start and
5147 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5148 i386fbsd_sigtramp_end.
5149 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5150 function.
5151
5152 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5153 define to i386-linux-tdep.h.
5154 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5155 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5156 defines.
5157 (i386_linux_register_name, i386_linux_register_byte,
5158 i386_linux_register_raw_size): Remove prototypes.
5159 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5160 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5161 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5162 TARGET_WRITE_PC): Remove defines.
5163 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5164 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5165 i386_linux_write_pc): Remove prototypes.
5166 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5167 (get_longjmp_target): Remove prototype.
5168 * i386-linux-tdep.h: New file.
5169 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5170 * i386-linux-tdep.c: Include "i386-tdep.h" and
5171 "i386-linux-tdep.h".
5172 (i386_linux_register_name, i386_linux_register_byte,
5173 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5174 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5175 Make static.
5176 (i386_linux_init_abi): New function.
5177 (_initialize_i386_linux_tdep): New function.
5178
5179 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5180 (i386_saved_pc_after_call): Remove prototype.
5181 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5182 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5183 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5184 (i386_register_name, i386_stab_reg_to_regnum,
5185 i386_dwarf_reg_to_regnum): Remove prototypes.
5186 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5187 SIZEOF_SSE_REGS): Remove defines.
5188 (REGISTER_BYTES): Remove define.
5189 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5190 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5191 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5192 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5193 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5194 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5195 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5196 (get_longjmp_target): Remove prototype.
5197 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5198 (sigtramp_saved_pc): Remove define.
5199 (i386v4_sigtramp_saved_pc): Remove prototype.
5200 * config/i386/tm-go32.h (FRAME_CHAIN,
5201 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5202 (i386go32_frame_saved_pc): Remove prototype.
5203 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5204 (get_longjmp_target): Remove prototype.
5205 * i386-tdep.h: Include "osabi.h".
5206 (enum i386_abi): Removed.
5207 (enum struct_return): New enum.
5208 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5209 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5210 sc_pc_offset members.
5211 (i386_gdbarch_register_os_abi): Remove prototype.
5212 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5213 I386_SSE_NUM_REGS): New defines.
5214 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5215 I386_SSE_SIZEOF_REGS): New defines.
5216 (i386_register_name, i386_register_byte, i386_register_raw_size):
5217 New prototypes.
5218 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5219 (i386bsd_sigtramp_saved_pc): New prototype.
5220 * i386-tdep.c: Don't include "elf-bfd.h".
5221 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5222 i386_frame_chain, i386_saved_pc_after_call): Make static.
5223 (i386_frame_saved_pc): Rewrite to call architecture dependent
5224 function to deal with signal handlers. Make static.
5225 (i386go32_frame_saved_pc): Removed.
5226 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5227 Removed.
5228 (i386_get_longjmp_target): New function.
5229 (default_struct_convention, pcc_struct_convention,
5230 reg_struct_convention, valid_conventions, struct_convention): New
5231 variables.
5232 (i386_use_struct_convention): New function.
5233 (i386v4_sigtramp_saved_pc): Renamed to
5234 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5235 (i386_pc_in_sigtramp): New function.
5236 (i386_abi_names): Removed.
5237 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5238 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5239 Removed.
5240 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5241 i386_gdbarch_register_os_abi): Removed.
5242 (struct i386_abi_handler): Removed.
5243 (i386_abi_handler_list): Removed.
5244 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5245 functions.
5246 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5247 i386_nw_init_abi): New functions.
5248 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5249 Use set_gdbarch_xxx() calls instead of relying on macros for a
5250 number of calls.
5251 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5252 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5253 Register the various architecture variants defined in this file.
5254
ad2f7632
DJ
52552002-06-14 Daniel Jacobowitz <drow@mvista.com>
5256
5257 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5258 (struct main_type): Remove arg_types member. Update comments for
5259 struct field.
5260 (TYPE_ARG_TYPES): Remove.
5261 (TYPE_FN_FIELD_ARGS): Update.
5262 (smash_to_method_type): Update prototype.
5263
5264 * c-typeprint.c (cp_type_print_method_args): Take method type
5265 instead of argument list. Use new argument layout. Simplify.
5266 (c_type_print_args): Use new argument layout. Simplify.
5267 (c_type_print_base): Update call to cp_type_print_method_args.
5268 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5269 argument; use die->type instead. Update call to
5270 smash_to_method_type.
5271 (read_structure_scope): Update call to dwarf2_add_member_fn.
5272 * gdbtypes.c (allocate_stub_method): Update comment.
5273 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5274 Use new argument layout.
5275 (check_stub_method): Use new argument layout. Don't count
5276 void as an argument.
5277 (print_arg_types): Update comments. Use new argument layout.
5278 (recursive_dump_type): Don't print arg_types member.
5279 * hpread.c (hpread_read_struct_type): Use new argument layout.
5280 (fixup_class_method_type): Likewise.
5281 (hpread_type_lookup): Likewise.
5282 * stabsread.c (read_type): Update calls to read_args and
5283 smash_to_method_type.
5284 (read_args): Use new argument layout. Simplify.
5285 * valops.c (typecmp): Use new argument layout. Update parameters
5286 and comments. Simplify.
5287 (hand_function_call): Use new argument layout.
5288 (search_struct_method): Update call to typecmp.
5289 (find_overload_match): Use new argument layout.
5290
6da02953
DJ
52912002-06-13 Daniel Jacobowitz <drow@mvista.com>
5292
5293 * NEWS: Mention multithreaded debug support for gdbserver.
5294
519b2366
DJ
52952002-06-13 Daniel Jacobowitz <drow@mvista.com>
5296
5297 * MAINTAINERS: Mention NEWS.
5298
6c0d6680
DJ
52992002-06-13 Daniel Jacobowitz <drow@mvista.com>
5300
5301 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5302 (struct mips_objfile_private, compare_pdr_entries): New.
5303 (non_heuristic_proc_desc): Read the ".pdr" section if it
5304 is present.
5305
6529d2dd
AC
53062002-06-12 Andrew Cagney <ac131313@redhat.com>
5307
5308 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5309 (arm_debug): New static variable.
5310 (_initialize_arm_tdep): Add ``set debug arm'' command.
5311
26216b98
AC
53122002-06-12 Andrew Cagney <ac131313@redhat.com>
5313
5314 * Makefile.in (sim_arm_h): Define.
5315 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5316 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5317 (arm_register_sim_regno): New function, map an internal REGNUM
5318 onto a simulator register number.
5319 (arm_gdbarch_init): Set register_sim_regno.
5320
814b3ba0
AH
53212002-06-09 Aldy Hernandez <aldyh@redhat.com>
5322
5323 * MAINTAINERS: Add self.
5324
475b0867
JB
53252002-06-11 Jim Blandy <jimb@redhat.com>
5326
919d772c
JB
5327 * source.c (source_info): Mention whether the symtab has
5328 information about preprocessor macros.
5329
475b0867
JB
5330 Call the command `info macro', not `show macro'.
5331 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5332 Fix error message.
5333 (_initialize_macrocmd): Register `info_macro_command' in
5334 `infolist', not `showlist'.
5335
9e364162
DJ
53362002-06-11 Daniel Jacobowitz <drow@mvista.com>
5337
5338 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5339 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5340 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5341 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5342 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5343 unconditionally.
5344 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5345 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5346 (_initialize_mips_tdep): Remove dead code.
5347 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5348 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5349 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5350 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5351 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5352 MIPS_LAST_FP_ARG_REGNUM): Remove.
5353
23aa4c72
ML
53542002-06-11 Michal Ludvig <mludvig@suse.cz>
5355
5356 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5357 (unwind_tmp_obstack_free, parse_frame_info)
5358 (update_context, cfi_read_fp, cfi_write_fp)
5359 (cfi_frame_chain, cfi_init_extra_frame_info)
5360 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5361 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5362
70eb15a4
CV
53632002-06-11 Corinna Vinschen <vinschen@redhat.com>
5364
5365 * v850-tdep.c (v850_type_is_scalar): New function.
5366 (v850_use_struct_convention): Match current gcc implementation
5367 as close as possible.
5368 (v850_push_arguments): Fix stack_offset handling. Don't write
5369 struct_addr into register. This is done by v850_store_struct_return.
5370 (v850_extract_return_value): Care for structs.
5371 (v850_store_return_value): Ditto.
5372 (v850_store_struct_return): Actually write address.
5373
482a4d06
ML
53742002-06-11 Michal Ludvig <mludvig@suse.cz>
5375
5376 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5377 without debug information too.
5378
d855c300
AC
53792002-06-10 Andrew Cagney <ac131313@redhat.com>
5380
5381 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5382 Make multi-arch pure.
5383 * gdbarch.h, gdbarch.c: Re-generate.
5384 * arm-tdep.c (arm_print_float_info): Update.
5385 * arch-utils.h (default_print_float_info): Update.
5386 * arch-utils.c (default_print_float_info): Update.
5387 * infcmd.c (float_info): Update call.
5388
dd12a101
AC
53892002-06-10 Andrew Cagney <ac131313@redhat.com>
5390
5391 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5392 the front of the initialize list.
5393
101dcfbe
AC
53942002-06-10 Andrew Cagney <ac131313@redhat.com>
5395
5396 * infrun.c (struct inferior_status): Replace fields
5397 selected_frame_address and selected_level with field
5398 selected_frame_id.
5399 (save_inferior_status): Update. Use get_frame_id.
5400 (struct restore_selected_frame_args): Delete.
5401 (restore_selected_frame): Update. Use frame_find_by_id.
5402 (restore_inferior_status): Update.
5403
5404 * breakpoint.h (struct breakpoint): Change type of
5405 watchpoint_frame to frame_id.
5406 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5407 call to get_current_frame.
5408 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5409 get_current_frame.
5410 (watchpoint_check): Use frame_find_by_id.
5411
5412 * frame.h (record_selected_frame): Delete declaration.
5413 * stack.c (record_selected_frame): Delete function.
5414
5415 * frame.h (struct frame_id): Define.
5416 (get_frame_id): Declare.
5417 (frame_find_by_id): Declare.
5418 * frame.c (frame_find_by_id): New function.
5419 (get_frame_id): New function.
5420
304270b6
AV
54212002-06-10 Andrey Volkov <avolkov@transas.com>
5422
5423 * ser-e7kpc.c: Fix duplicated define and call of
5424 _initialize_ser_e7000pc
5425
2f2cf184
DJ
54262002-06-09 Daniel Jacobowitz <drow@mvista.com>
5427
5428 * signals/signals.c (target_signal_from_host): Fix #ifdef
5429 SIGRTMIN case.
5430 (do_target_signal_to_host): Likewise.
5431
caaa3122
DJ
54322002-06-09 Daniel Jacobowitz <drow@mvista.com>
5433
5434 * mips-tdep.c (mips_find_abi_section): New function.
5435 (mips_gdbarch_init): Call it.
5436
6ac5df3a
MK
54372002-06-09 Mark Kettenis <kettenis@gnu.org>
5438
5439 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5440 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5441 after Andrew's 2002-06-08 gdbarch change.
5442
82ea117a
MK
54432002-06-09 Mark Kettenis <kettenis@gnu.org>
5444
5445 * i386-linux-nat.c (suppy_gregset): Don't supply
5446 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5447 register cache.
5448 (fill_gregset): Don't fetch it under the same circumstances.
5449
3c25f8c7
AC
54502002-06-09 Andrew Cagney <cagney@redhat.com>
5451
5452 * Makefile.in (callback_h): Define.
5453 (remote_sim_h): Update path to remote-sim.h.
5454 (remote-rdp.o): Add $(callback_h).
5455 (remote-sim.o): Use $(callback_h).
5456 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5457 * remote-rdp.c: Include "gdb/callback.h".
5458
1029b7fa
MK
54592002-06-09 Mark Kettenis <kettenis@gnu.org>
5460
5461 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5462 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5463
616675d3
AC
54642002-06-08 Andrew Cagney <ac131313@redhat.com>
5465
a3efda28
AC
5466 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5467 * rdi-share/serpardr.c: Ditto.
5468 * rdi-share/unixcomm.c: Ditto.
5469 * rdi-share/serdrv.c: Ditto.
5470 * rdi-share/hostchan.h: Ditto.
5471 * rdi-share/hostchan.c: Ditto.
5472 * rdi-share/host.h: Ditto.
5473 * rdi-share/devsw.c: Ditto.
5474
c5f10366
AC
5475 * objfiles.h: Change type of obj_private to void pointer.
5476 * pa64solib.c: Update copyright. Don't include "assert.h", use
5477 strcmp instead of STREQ, use LONGEST, do not use PTR
5478 * somsolib.c: Ditto.
5479
616675d3
AC
5480 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5481 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5482 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5483
e4b415d9
AC
54842002-06-08 Andrew Cagney <ac131313@redhat.com>
5485
5486 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5487 (default_get_saved_register): Delete function.
5488 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5489 generic_unwind_get_saved_register.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5491
ca0d0b52
AC
54922002-06-08 Andrew Cagney <ac131313@redhat.com>
5493
5494 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5495 generic_func_frame_chain_valid.
5496 * gdbarch.h, gdbarch.c: Re-generate.
5497 * blockframe.c (generic_func_frame_chain_valid): Only check
5498 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5499 passing FP to PC_IN_CALL_DUMMY.
5500 Fix PR gdb/360.
5501
76860b5f
AC
55022002-06-08 Andrew Cagney <ac131313@redhat.com>
5503
5504 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5505 (register_gdbarch_data): Initialize init_p.
5506 (gdbarch_data): Initialize data pointer using the init function.
5507 (init_gdbarch_data): Delete function.
5508 (gdbarch_update_p): Update.
5509 (initialize_non_multiarch): Update.
5510 (struct gdbarch): Add field initialized_p.
5511 * gdbarch.h, gdbarch.c: Re-generate.
5512
8dda9770
ML
55132002-06-07 Michal Ludvig <mludvig@suse.cz>
5514
5515 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5516 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5517 better do the things actually here.
5518 * x86-64-tdep.c (x86_64_register_name2nr): New.
5519 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5520 (x86_64_gdbarch_init): Respect the above change.
5521 * x86-64-tdep.h (x86_64_register_name2nr)
5522 (x86_64_register_nr2name): Add prototypes.
5523 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5524
3d79a47c
MS
55252002-06-06 Michael Snyder <msnyder@redhat.com>
5526
7bd91a28
MS
5527 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5528 Delete extra braces and re-indent.
5529 (d10v_store_return_value): Char return values
3d79a47c
MS
5530 must be shifted over by one byte in R0.
5531 (d10v_extract_return_value): Delete extra braces, re-indent.
5532
095a4c96
EZ
55332002-06-06 Elena Zannoni <ezannoni@redhat.com>
5534
5535 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5536 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5537 (d10v_integer_to_address): Rewrite.
5538 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5539 the d10v specific functions which take care of converting to the
5540 correct space.
5541
e8a77ca4
EZ
55422002-06-06 Elena Zannoni <ezannoni@redhat.com>
5543
5544 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5545 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5546
4f2e4a4f
AC
55472002-06-02 Andrew Cagney <ac131313@redhat.com>
5548
5549 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5550 includes.
5551 * config/tm-linux.h: Ditto.
5552 * config/alpha/tm-alphalinux.h: Ditto.
5553 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5554 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5555 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5556 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5557 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5558 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5559 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5560 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5561 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5562 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5563 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5564 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5565 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5566 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5567 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5568 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5569 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5570 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5571 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5572 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5573 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5574 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5575 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5576 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5577 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5578 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5579 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5580 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5581 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5582 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5583 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5584 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5585 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5586 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5587 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5588 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5589 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5590
ae2ab2ce
AS
55912002-05-04 Aidan Skinner <aidan@velvet.net>
5592
5593 * ada-exp.tab.c: New file
5594 * ada-exp.y: New file
5595 * ada-lang.c: New file
5596 * ada-lang.h: New file
5597 * ada-lex.c: New file
5598 * ada-lex.l: New file
5599 * ada-tasks.c: New file
5600 * ada-typeprint.c: New file
5601 * ada-valprint.c: New file
5602
0ddd0135
JT
56032002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5604
5605 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5606 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5607
750fbacc
JT
56082002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5609
5610 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5611 insetead of ppc-linux-tdep.o.
5612 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5613 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5614
df94e18a
AC
56152002-06-02 Andrew Cagney <ac131313@redhat.com>
5616
5617 2002-05-07 Christian Groessler <chris@groessler.org>
5618 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5619 bit register contents for little endian hosts.
5620
1a38ab75
AC
56212002-06-01 Andrew Cagney <ac131313@redhat.com>
5622
5623 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5624 any maintainer.
5625
8b1632ac
AC
56262002-06-01 Andrew Cagney <ac131313@redhat.com>
5627
5628 * gdbarch.h: Regenerate.
5629
627054c8
AC
56302002-06-01 Andrew Cagney <ac131313@redhat.com>
5631
5632 * MAINTAINERS: Add everyone to write-after-approval list.
5633
4f460812
AC
56342002-06-01 Andrew Cagney <ac131313@redhat.com>
5635
5636 * stack.c (frame_info): Use frame_register_unwind instead of
5637 saved_regs. Mention when the SP is on the stack or in a register.
5638
5639 * frame.h (frame_register_unwind_ftype): Define. Document.
5640 (struct frame_info): Add field register_unwind and
5641 register_unwind_cache.
5642 (frame_register_unwind): Declare.
5643 (generic_unwind_get_saved_register): Declare.
5644
5645 * frame.c (frame_register_unwind): New function.
5646 (generic_unwind_get_saved_register): New function.
5647
5648 * blockframe.c (generic_call_dummy_register_unwind): New function.
5649 (frame_saved_regs_register_unwind): New function.
5650 (set_unwind_by_pc): New function.
5651 (create_new_frame): New function.
5652 (get_prev_frame): New function.
5653
de888f76
AC
56542002-05-30 Andrew Cagney <ac131313@redhat.com>
5655
5656 * a29k-share/: Delete directory.
5657 * remote-vx29k.c: Delete file.
5658
2f2c3626
JT
56592002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5660
5661 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5662 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5663
9ce5c36a
JT
56642002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5665
5666 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5667 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5668 (sparc64nbsd-nat.o)
5669 (sparcnbsd-nat.o)
5670 (sparcnbsd-tdep.o): New dependency lists.
5671 * NEWS: Note new UltraSPARC NetBSD native configuration.
5672 * configure.host (sparc64-*-netbsd*): New host.
5673 * configure.tgt (sparc-*-netbsdelf*)
5674 (sparc-*-netbsd*): Set gdb_target to nbsd.
5675 (sparc64-*-netbsd*): New target.
5676 * sparc64nbsd-nat.c: New file.
5677 * sparcnbsd-nat.c: New file.
5678 * sparcnbsd-tdep.c: New file.
5679 * sparcnbsd-tdep.h: New file.
5680 * config/sparc/nbsd.mt: New file.
5681 * config/sparc/nbsd64.mh: New file.
5682 * config/sparc/nbsd64.mt: New file.
5683 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5684 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5685 (HOST_IPC): Remove.
5686 * config/sparc/nbsdaout.mt: Remove.
5687 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5688 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5689 (HOST_IPC): Remove.
5690 * config/sparc/nbsdelf.mt: Remove.
5691 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5692 sparc-nat.c compatiblity defines.
5693 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5694 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5695 * config/sparc/tm-nbsd64.h: New file.
5696 * config/sparc/tm-nbsdaout.h: Remove.
5697 * config/sparc/xm-nbsd.h: Remove.
5698
ef3cf062
JT
56992002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5700
5701 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5702 * sparc-tdep.c: Include osabi.h.
5703 (gdbarch_tdep): Add osabi member.
5704 (_initialize_sparc_tdep): Use gdbarch_register.
5705 (sparc_gdbarch_init): Use generic OS ABI framework.
5706 (sparc_dump_tdep): New function.
5707
ee8ff470
KB
57082002-05-30 Kevin Buettner <kevinb@redhat.com>
5709
5710 * corefile.c (do_captured_read_memory_integer): Return non-zero
5711 result.
5712 (safe_read_memory_integer): Copy result of memory read when
5713 status is non-zero. Also, add comments.
5714
7b112f9c
JT
57152002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5716
5717 * Makefile.in (ppc_tdep_h): Define.
5718 (ppc-linux-nat.o)
5719 (ppc-linux-tdep.o)
5720 (rs6000-tdep.o): Use $(ppc_tdep_h).
5721 (ppc-sysv-tdep.o)
5722 (ppcnbsd-nat.o)
5723 (ppcnbsd-tdep.o): New dependency lists.
5724 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5725 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5726 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5727 (ppc_sysv_abi_broken_use_struct_convention)
5728 (ppc_sysv_abi_use_struct_convention)
5729 (ppc_sysv_abi_push_arguments): Move to...
5730 * ppc-sysv-tdep.c: ...here.
5731 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5732 * rs6000-tdep.c (process_note_abi_tag_sections)
5733 (get_elfosabi): Remove.
5734 (rs6000_gdbarch_init): Use generic OS ABI framework.
5735 (rs6000_dump_tdep): New function.
5736 (_initialize_rs6000_tdep): Use gdbarch_register.
5737 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5738 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5739 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5740 of ppc-linux-tdep.o.
5741 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5742 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5743 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5744 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5745 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5746 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5747
480dd42a
JB
57482002-05-29 Jim Blandy <jimb@redhat.com>
5749
5750 * macroscope.c (default_macro_scope): Put `void' in empty argument
5751 list.
5752
4182591f
AC
57532002-05-29 Andrew Cagney <ac131313@redhat.com>
5754
5755 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5756 * arch-utils.c: Include "sim-regno.h".
5757 * gdbarch.sh: Don't include "sim-regno.h".
5758 * gdbarch.h, gdbarch.c: Regenerate.
5759 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5760 here.
5761 * arch-utils.h (legacy_register_sim_regno): To here.
5762 * remote-sim.c (legacy_register_sim_regno): Move function from
5763 here.
5764 * arch-utils.c (legacy_register_sim_regno): To here.
5765
8238d0bf
AC
57662002-05-28 Andrew Cagney <ac131313@redhat.com>
5767
5768 * sim-regno.h: New file.
5769 * Makefile.in (sim_regno_h): Define.
5770 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5771 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5772 (legacy_register_sim_regno): New function.
5773 (one2one_register_sim_regno): New function.
5774 (gdbsim_fetch_register): Rewrite.
5775 (gdbsim_store_register): Only store a register when
5776 REGISTER_SIM_REGNO is valid.
5777 * d10v-tdep.c: Include "sim-regno.h".
5778 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5779 (d10v_ts3_register_sim_regno): Ditto.
5780 * gdbarch.sh: Include "sim-regno.h".
5781 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5782 * gdbarch.h, gdbarch.c: Regenerate.
5783 * arch-utils.h (default_register_sim_regno): Delete declaration.
5784 * arch-utils.c (default_register_sim_regno): Delete function.
5785
485721b1
JT
57862002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5787
5788 * ppcnbsd-nat.c: Rewrite.
5789 * ppcnbsd-tdep.c: New file.
5790 * ppcnbsd-tdep.h: New file.
5791 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5792 solib.o, and solib-svr4.o.
5793 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5794 nbsd-tdep.o, and corelow.o.
5795
697f244d
AC
57962002-05-28 Andrew Cagney <ac131313@redhat.com>
5797
5798 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5799 `tr' and `sed'. Mention that `broken' targets are not expected to
5800 build.
5801
f08caad1 58022002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5803
5804 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5805 Let PC point right after the prologue before looking up symbols.
5806
3139facc
MH
58072002-05-27 Martin M. Hunt <hunt@redhat.com>
5808
5809 * i386-tdep.c (i386_register_virtual_type): Return
5810 builtin_type_vec128i for SSE registers.
5811
5812 * gdbtypes.h (builtin_type_vec128i): Declare.
5813
5814 * gdbtypes.c (build_builtin_type_vec128i): New function.
5815 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5816 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5817 (build_gdbtypes): Initialize new builtin vector types.
5818 (_initialize_gdbtypes): Register new vector types with gdbarch.
5819
6e3ba3b8
JT
58202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5821
5822 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5823 since it has been multi-arch'd.
5824 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5825 Move Alpha and VAX multi-arch news entries to same section
5826 as other multi-arch news.
5827
93d5585d
JT
58282002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5829
5830 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5831 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5832 static. Rename some register numbers to put them in ns32k-tdep
5833 private namespace.
5834 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5835 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5836 functions.
5837 (_initialize_ns32k_tdep): Use gdbarch_register.
5838 * ns32k-tdep.h: New file.
5839 * ns32knbsd-tdep.c: New file.
5840 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5841 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5842 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5843 REGISTER_BYTES, REGISTER_BYTE): Remove.
5844 * config/ns32k/tm-ns32k.h: New file.
5845 * config/ns32k/tm-umax.h: Remove.
5846
efb2c70e
JT
58472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5848
5849 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5850 ns32k_store_struct_return, ns32k_extract_return_value,
5851 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5852 functions.
5853 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5854 ns32k_saved_pc_after_call.
5855 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5856 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5857 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5858 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5859 ns32k_extract_struct_value_address.
5860
7bcc927b
JT
58612002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5862
5863 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5864 ns32k_fix_call_dummy): New.
5865 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5866 ns32k_call_dummy_words.
5867 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5868 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5869 CALL_DUMMY_NARGS): Remove.
5870 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5871
78f9d765
JT
58722002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5873
5874 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5875 ns32k_frame_saved_pc, ns32k_frame_args_address,
5876 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5877 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5878 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5879 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5880 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5881 (BREAKPOINT): Remove..
5882 (FRAME_CHAIN): Define as ns32k_frame_chain.
5883 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5884 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5885 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5886 (FRAME_FIND_SAVED_REGS): Remove.
5887 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5888 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5889 (POP_FRAME): Define as ns32k_pop_frame.
5890
f2c762e0
JT
58912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5892
5893 * ns32k-tdep.c (ns32k_register_byte_32082,
5894 ns32k_register_byte_32382, ns32k_register_raw_size,
5895 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5896 functions.
5897 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5898 ns32k_register_byte_32382.
5899 * config/ns32k/tm-umax.h: Update copyright years.
5900 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5901 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5902 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5903 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5904 (ns32k_get_enter_addr): Fix prototype.
5905
af137673
JT
59062002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5907
5908 * ns32k-tdep.c: Update copyright years.
5909 (ns32k_register_name_32082): New function.
5910 (ns32k_register_name_32382): Ditto.
5911 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5912 (REGISTER_NAME): Define as ns32k_register_name_32382.
5913 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5914 (REGISTER_NAME): Define as ns32k_register_name_32082.
5915
a8bc7b56
JB
59162002-05-24 Jim Blandy <jimb@redhat.com>
5917
5918 * dwarf2read.c (free_line_header): Use xfree, not free.
5919
83a45910
JT
59202002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5921
5922 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5923 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5924
0db71247
AC
59252002-05-23 Andrew Cagney <ac131313@redhat.com>
5926
5927 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5928
b9e5e4dd
AC
59292002-05-23 Andrew Cagney <ac131313@redhat.com>
5930
5931 From Ross Alexander at NEC Europe:
5932 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5933
de530e84
MS
59342002-05-23 Michael Snyder <msnyder@redhat.com>
5935
5936 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5937 for input, rather than parse_and_eval_address.
5938
b91b96f4
AC
59392002-05-23 Andrew Cagney <ac131313@redhat.com>
5940
5941 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5942 * Makefile.in (sim_d10v_h): Update definition.
5943
8b279e7a
AC
59442002-05-24 Andrew Cagney <cagney@redhat.com>
5945
5946 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5947 change `2002-05-22 Michael Snyder' below.
5948 (d10v_push_arguments): Ditto.
5949 (d10v_extract_return_value): Ditto.
5950
0a3d0425
JB
59512002-05-23 Jim Blandy <jimb@redhat.com>
5952
5953 * macrotab.c (check_for_redefinition): Don't complain if the new
5954 definition is the same as the previous one. Take more arguments
5955 to allow the comparison.
5956 (macro_define_object, macro_define_function): Pass more arguments
5957 to check_for_redefinition.
5958
78eac43e
MS
59592002-05-22 Michael Snyder <msnyder@redhat.com>
5960
5961 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5962 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5963 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5964 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5965 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5966 Add a temp variable to save a call (and a memory read).
5967 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5968 if possible (so that PC_IN_CALL_DUMMY will work).
5969
9bc1edb8
CV
59702002-05-22 Corinna Vinschen <vinschen@redhat.com>
5971
5972 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5973
005ef3d2
ML
59742002-05-22 Michal Ludvig <mludvig@suse.cz>
5975
5976 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5977 fde->cie_ptr.
5978 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5979 (dwarf2_build_frame_info): Add offset to fde->initial_location
5980 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5981 (execute_stack_op): Change type of 'result' from ULONGEST to
5982 CORE_ADDR.
005ef3d2 5983
fcf4f891
JT
59842002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5985
5986 * config/alpha/tm-nbsd.h: Include solib.h.
5987
cfef91e4
JT
59882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5989
5990 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5991 assumptions about the host's byte order.
5992
9964235a
JT
59932002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5994
5995 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5996 to dependency list.
5997 * alphanbsd-tdep.c: Include solib-svr4.h.
5998 * shnbsd-tdep.c: Ditto.
5999
9eeef8ef
JT
60002002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6001
6002 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6003 nbsd-tdep.h to dependency list.
6004 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6005 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6006 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6007 nbsdaout.mh and nbsdelf.mh consistently.
6008 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6009 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6010 nbsdaout.mt and nbsdelf.mh consistently.
6011 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6012 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6013 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6014 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6015 a.out shared library stuff from here...
6016 * config/nm-nbsdaout.h: ...to here.
6017 * config/tm-nbsd.h: Remove.
6018 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6019 * config/arm/nbsd.mh: Remove.
6020 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6021 nbsd-tdep.o.
6022 * config/arm/nbsdaout.mh: New file.
6023 * config/arm/nbsdelf.mh: New file.
6024 * config/arm/nm-nbsdaout.h: New file.
6025 * config/i386/nbsd.mh: Remove.
6026 * config/i386/nbsd.mt: Remove.
6027 * config/i386/nbsdaout.mh: New file.
6028 * config/i386/nbsdaout.mt: New file.
6029 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6030 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6031 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6032 i386_register_u_addr): Remove.
6033 * config/i386/nm-nbsdaout.h: New file.
6034 * config/i386/nm-nbsdelf.h: Remove.
6035 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6036 (USE_STRUCT_CONVENTION): Remove.
6037 * config/i386/tm-nbsdaout.h: New file.
6038 * config/i386/tm-nbsdelf.h: Remove.
6039 * config/m68k/nbsd.mh: Remove.
6040 * config/m68k/nbsd.mt: Remove.
6041 * config/m68k/nbsdaout.mh: New file.
6042 * config/m68k/nbsdaout.mt: New file.
6043 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6044 * config/m68k/nm-nbsdaout.h: New file.
6045 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6046 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6047 * config/ns32k/nbsd.mh: Remove.
6048 * config/ns32k/nbsd.mt: Remove.
6049 * config/ns32k/nbsdaout.mh: New file.
6050 * config/ns32k/nbsdaout.mt: New file.
6051 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6052 * config/ns32k/nm-nbsdaout.h: New file.
6053 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6054 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6055 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6056 (SVR4_SHARED_LIBS): Remove.
6057 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6058 * config/sparc/nbsd.mh: Remove.
6059 * config/sparc/nbsd.mt: Remove.
6060 * config/sparc/nbsdaout.mh: New file.
6061 * config/sparc/nbsdaout.mt: New file.
6062 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6063 * config/sparc/nbsdelf.mt: New file.
6064 * config/sparc/nm-nbsdaout.h: New file.
6065 * config/sparc/nm-nbsdelf.h: Remove.
6066 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6067 * config/sparc/tm-nbsdaout.h: New file.
6068
257ce470
JT
60692002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6070
6071 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6072 mipsnbsd-tdep.c
6073 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6074
76a6d5fe
JT
60752002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6076
6077 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6078 shnbsd-nat.c.
6079 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6080
45888261
JT
60812002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6082
6083 * NEWS: Note new MIPS NetBSD native configuration.
6084 * configure.host (mips*-*-netbsd*): New host.
6085 * configure.tgt (mips*-*-netbsd*): New target.
6086 * mipsnbsd-nat.c: New file.
6087 * mipsnbsd-tdep.c: New file.
6088 * mipsnbsd-tdep.h: New file.
6089 * config/mips/nbsd.mh: New file.
6090 * config/mips/nbsd.mt: New file.
6091 * config/mips/nm-nbsd.h: New file.
6092 * config/mips/tm-nbsd.h: New file.
6093
70f80edf
JT
60942002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6095
6096 * Makefile.in (SFILES): Add osabi.c.
6097 (COMMON_OBS): Add osabi.o.
6098 (osabi.o): New dependency list.
6099 * osabi.c: New file.
6100 * osabi.h: New file.
6101 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6102
6103 * Makefile.in (alpha_tdep_h): Define and use instead of
6104 alpha-tdep.h.
6105 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6106 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6107 Remove.
6108 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6109 * alpha-tdep.h: Include osabi.h.
6110 (alpha_abi): Remove.
6111 (gdbarch_tdep): Use generic OS ABI framework.
6112 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6113 gdbarch_register_osabi.
6114 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6115 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6116 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6117
6118 * Makefile.in (sh_tdep_h): Add osabi.h.
6119 * sh-tdep.h (sh_osabi): Remove.
6120 (gdbarch_tdep): Use generic OS ABI framework.
6121 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6122 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6123 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6124 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6125
6126 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6127 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6128 gdbarch_register_osabi.
6129 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6130 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6131 (get_elfosabi): Rename to...
6132 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6133 ABI framework support routines.
6134 (arm_gdbarch_init): Use generic OS ABI framework.
6135 (arm_dump_tdep): Likewise.
6136 (_initialize_arm_tdep): Likewise.
6137 * arm-tdep.h: Include osabi.h.
6138 (arm_abi): Remove.
6139 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6140 osabi member.
6141 (arm_gdbarch_register_os_abi): Remove prototype.
6142 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6143 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6144
6145 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6146 * mips-tdep.c: Include osabi.h.
6147 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6148 OS ABI framework.
6149
d194345b
KH
61502002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6151
6152 * h8300-tdep.c: Fix formatting.
6153
70c6b0d1
EZ
61542002-05-20 Elena Zannoni <ezannoni@redhat.com>
6155
6156 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6157 printing vector registers.
6158
165b8e33
AC
61592002-05-19 Andrew Cagney <ac131313@redhat.com>
6160
6161 From Fernando Nasser:
6162 * remote.c (remote_async_open_1): Re-throw the exception when the
6163 connection fails.
6164 (remote_cisco_open): Ditto.
6165 (remote_open_1): Ditto.
6166
36918e70
AC
61672002-05-19 Andrew Cagney <ac131313@redhat.com>
6168
6169 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6170 (remote_start_remote): Add uiout parameter. Pass through to
6171 remote_start_remote_dummy.
6172 (remote_open_1): Use catch_exception instead of catch_errors.
6173 (remote_async_open_1): Ditto.
6174 (remote_cisco_open): Ditto.
6175
ae44c0c4
AC
61762002-05-19 Andrew Cagney <ac131313@redhat.com>
6177
6178 * remote.c (remote_start_remote): Replace PTR with void pointer.
6179 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6180 static.
6181
8efe637d
AC
61822002-05-18 Andrew Cagney <ac131313@redhat.com>
6183
6184 * gdb_indent.sh: Allow the script to be run in the sim directory.
6185
2f1b5984
MK
61862002-05-18 Mark Kettenis <kettenis@gnu.org>
6187
f0f625e2
MK
6188 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6189 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6190
2f1b5984
MK
6191 * corelow.c (core_open): Only call set_gdbarch_from_file if
6192 exec_bfd is NULL.
6193
fc974602
AV
61942002-05-17 Andrey Volkov <avolkov@transas.com>
6195
6196 * h8300-tdep.c: Add support of EXR register
6197 * config/h8300/tm-h8300.h: Ditto.
6198
906709f4
AV
61992002-05-17 Andrey Volkov <avolkov@transas.com>
6200
6201 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6202
6e591d68
AV
62032002-05-17 Andrey Volkov <avolkov@transas.com>
6204
6205 * h8300-tdep.c: Change literal regnums to REGNO.
6206
84f0252a
JB
62072002-05-17 Jim Blandy <jimb@redhat.com>
6208
e0e9281e
JB
6209 * NEWS: Note addition of macro support.
6210
84f0252a
JB
6211 Expand preprocessor macros in C expressions.
6212 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6213 (scan_macro_expansion, scanning_macro_expansion,
6214 finished_macro_expansion): New function declarations.
6215 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6216 variable declarations.
6217 * parser-defs.h (expression_context_pc): New declaration.
6218 * parse.c (expression_context_pc): New variable.
6219 (parse_exp_1): Set expression_context_pc, as well as
6220 expression_context_block.
6221 * c-exp.y (yylex): If we're not already reading the result of a
6222 macro expansion, try to macro-expand the next token. When we're
6223 done scanning a macro expansion, switch back to the mainline text.
6224 Commas and `if's in a macro's expansion don't terminate the input.
6225 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6226 (macro_original_text, macro_expanded_text,
6227 expression_macro_lookup_func, expression_macro_lookup_baton): New
6228 variables.
6229 (scan_macro_expansion, scanning_macro_expansion,
6230 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6231 c_preprocess_and_parse): New functions.
6232 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6233 c_preprocess_and_parse, instead of c_parse.
6234 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6235 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6236
1c509ca8
JR
6237Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6238
6239 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6240 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6241 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6242
2250ee0c
CV
62432002-05-17 Corinna Vinschen <vinschen@redhat.com>
6244
6245 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6246
ab3b8126
JT
62472002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * Makefile.in (sh_tdep_h): Define and use.
6250 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6251 register enum): Move to...
6252 * * sh-tdep.h: ...here.
6253 * sh-tdep.c: Include sh-tdep.h.
6254 * sh3-rom.c: Likewise.
6255 * shnbsd-tdep.c: Likewise.
6256
ed9d4749
MS
62572002-05-16 Michael Snyder <msnyder@redhat.com>
6258
6259 * arm-tdep.c: Spelling fix in comment.
6260
2e276125
JB
62612002-05-16 Jim Blandy <jimb@redhat.com>
6262
6821892e
JB
6263 Add commands for manually expanding macros and showing their
6264 definitions.
6265 * macrocmd.c, macroscope.c, macroscope.h: New files.
6266 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6267 (macroscope_h): New variable.
6268 (HFILES_NO_SRCDIR): Add macroscope.h.
6269 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6270 (macroscope.o, macrocmd.o): New rules.
6271
2e276125
JB
6272 Teach the Dwarf 2 reader to read macro information.
6273 * dwarf2read.c: #include "macrotab.h".
6274 (dwarf_macinfo_buffer): New variable.
6275 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6276 dwarf_macinfo_size.
6277 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6278 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6279 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6280 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6281 dwarf2_macro_spaces_in_definition): New complaints.
6282 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6283 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6284 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6285 the partial symbol table.
6286 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6287 from what's recorded in the partial symbol table.
6288 (read_file_scope): If the compilation unit has a
6289 `DW_AT_macro_info' attribute, read its macro information.
6290 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6291
2f53fe6c
DJ
62922002-05-16 Daniel Jacobowitz <drow@mvista.com>
6293
6294 Fix PR gdb/546
6295 * ser-tcp.c: Don't include <netinet/udp.h>.
6296
2be99286
SC
62972002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6298
6299 * MAINTAINERS: Update my email address.
6300
c9af212b 63012002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6302
6303 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6304 include file of the same name.
6305
bf5f1a52
CV
63062002-05-16 Corinna Vinschen <vinschen@redhat.com>
6307
6308 * configure.tgt: Mark v850 as multi-arched.
6309 * config/v850/tm-v850.h: Remove file.
6310 * config/v850/v850.mt: Eliminate TM_FILE.
6311
435e042a
CV
63122002-05-16 Corinna Vinschen <vinschen@redhat.com>
6313
6314 * v850-tdep.c: Full multi-arch.
6315 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6316 Define GDB_MULTI_ARCH to 2.
6317
9819c6c8
PM
63182002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6319
6320 * p-exp.y (current_type): New static variable.
6321 Carries the type of the expression at the position that is parsed.
6322 (push_current_type, pop_current_type): Two new functions. Used
6323 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6324 (search_field): New static variable. Set to one after parsing a point
6325 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6326 (FIELDNAME): New token. After a point only a token belonging to
6327 current_type type definition is allowed.
6328 (all over token rules): reset and change current_type according
6329 to rules.
6330 (exp '[' rule): insert implicit array index field if
6331 exp is a pascal string type.
6332
3a06899a
CV
63332002-05-16 Corinna Vinschen <vinschen@redhat.com>
6334
6335 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6336 frame info. Use frame_info's saved_regs instead of matching member
6337 in extra_frame_info throughout.
6338 (v850_frame_init_saved_regs): New function.
6339 (v850_init_extra_frame_info): Move most functionality into
6340 v850_frame_init_saved_regs().
6341 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6342 (v850_frame_find_saved_regs): Remove declaration.
6343 (FRAME_FIND_SAVED_REGS): Remove definition.
6344 (v850_frame_init_saved_regs): Add declaration.
6345 (FRAME_INIT_SAVED_REGS): Add definition.
6346
6ed14b0e
CV
63472002-05-16 Corinna Vinschen <vinschen@redhat.com>
6348
6349 * v850-tdep.c: Begin multi-arch'ing v850.
6350 (v850_target_architecture_hook): Remove function.
6351 (v850_gdbarch_init): New function. Add code previously in
6352 v850_target_architecture_hook().
6353 (_initialize_v850_tdep): Don't set target_architecture_hook.
6354 Call register_gdbarch_init() instead.
6355
42725910
DJ
63562002-05-16 Daniel Jacobowitz <drow@mvista.com>
6357
6358 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6359 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6360 (fixup_class_method_type): Likewise.
6361
99d9066e
JB
63622002-05-15 Jim Blandy <jimb@redhat.com>
6363
6364 Add macro structures to GDB's symbol tables. Nobody puts anything
6365 in them yet.
6366 * symtab.h (struct symtab): New member: `macro_table'.
6367 * buildsym.h (pending_macros): New global variable.
6368 * buildsym.c: #include "macrotab.h".
6369 (buildsym_init): Initialize `pending_macros'.
6370 (end_symtab): If we found macro information while reading a CU's
6371 debugging info, do build a symtab structure for it. Make the
6372 symtab point to the macro information, and clear the
6373 `pending_macros' pointer which held it while we were reading the
6374 debug info.
6375 (really_free_pendings): Free any pending macro table.
6376 * objfiles.h (struct objfile): New member: `macro_cache'.
6377 * objfiles.c (allocate_objfile): Set allocate and free functions
6378 for the macro cache's objstack.
6379 (free_objfile): Empty the macro cache's obstack.
6380 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6381 set new allocate and free functions for it.
6382 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6383 free functions for the macro cache's objstack. (Why is this
6384 function building its own objfile?)
6385 * symmisc.c (print_objfile_statistics): Print statistics on the
6386 macro bcache.
6387 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6388
c899585b
RE
63892002-05-15 Richard Earnshaw <rearnsha@arm.com>
6390
6391 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6392 (REGISTER_U_ADDR): Delete definition.
6393 (arm_register_u_addr): Delete declaration.
6394
a6cdd8c5
RE
63952002-05-15 Richard Earnshaw <rearnsha@arm.com>
6396
6397 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6398 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6399
c97dcfc7
AC
64002002-05-14 Andrew Cagney <ac131313@redhat.com>
6401
6402 * regcache.c (register_valid): Revise comments refering to "Not
6403 available" and "unavailable".
6404 * frame.c (frame_register_read): Ditto.
6405 * findvar.c (value_of_register): Ditto.
6406
93021b7d
AC
64072002-05-15 Andrew Cagney <cagney@redhat.com>
6408
6409 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6410 (remote-sim.o): Update dependencies.
6411 (d10v-tdep.o): Specify dependencies.
6412 (sim_d10v_h): Define.
6413
a86bc61c
JB
64142002-05-14 Jim Blandy <jimb@redhat.com>
6415
6416 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6417 * macrotab.c (macro_lookup_inclusion, find_definition,
6418 new_macro_table): Same.
6419
6420 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6421 not `! strcmp ()'. This is a dubious improvement.
6422 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6423
6424 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6425 although it's not necessary, to avoid a warning.
6426
2fdde8f8
DJ
64272002-05-14 Daniel Jacobowitz <drow@mvista.com>
6428
6429 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6430 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6431 TYPE_INSTANCE_FLAGS.
6432 (struct main_type): New.
6433 (struct type): Move most members to struct main_type. Change
6434 cv_type and as_type to new type_chain member. Add instance_flags.
6435 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6436 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6437 (finish_cv_type): Remove prototype.
6438 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6439 Set TYPE_CHAIN.
6440 (alloc_type_instance): New function.
6441 (smash_type): New function.
6442 (make_pointer_type, make_reference_type, make_function_type)
6443 (smash_to_member_type, smash_to_method_type): Call smash_type.
6444 (make_qualified_type): New function.
6445 (make_type_with_address_space): Call make_qualified_type.
6446 (make_cv_type): Likewise.
6447 (finish_cv_type): Remove unnecessary function.
6448 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6449 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6450 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6451 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6452 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6453 * hpread.c (hpread_read_struct_type): Likewise.
6454 * stabsread.c (read_struct_type): Likewise.
6455
843fedf4
EZ
64562002-05-14 Elena Zannoni <ezannoni@redhat.com>
6457
6458 * configure.tgt: Add a catch all sh* target, for cases like
6459 sh[2,3,4]-elf and sh-hms.
6460
05a6c72c
KS
64612002-05-14 Keith Seitz <keiths@redhat.com>
6462
6463 * event-loop.c (create_file_handler): Don't do anything but
6464 update data when we are given a fd which we are already
6465 monitoring.
6466
5d085aaf
ML
64672002-05-14 Michal Ludvig <mludvig@suse.cz>
6468
6469 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6470 (update_context): Use __func__ in warnings.
6471
9db8d71f
DJ
64722002-05-14 Daniel Jacobowitz <drow@mvista.com>
6473
6474 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6475 and tcp_close to net_open and net_close.
6476 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6477 using UDP if requested. Don't try to disable Nagle on UDP
6478 sockets.
6479 * remote.c (remote_serial_open): New function. Warn about UDP.
6480 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6481
5dbc6baa
EZ
64822002-05-13 Elena Zannoni <ezannoni@redhat.com>
6483
6484 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6485
cc3023f7
EZ
64862002-05-13 Elena Zannoni <ezannoni@redhat.com>
6487
6488 * configure.tgt: Remove sh-hms target.
6489 * MAINTAINERS: Don't list sh-hms as a separate target.
6490
ec2bcbe7
JB
64912002-05-13 Jim Blandy <jimb@redhat.com>
6492
6493 Add first preprocessor macro-expansion files.
6494 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6495 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6496 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6497 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6498 (COMMON_OBS): Add macrotab.o, macroexp.o.
6499 (macroexp.o, macrotab.o): New rules.
6500
6d531722
AC
65012002-05-13 Andrew Cagney <ac131313@redhat.com>
6502
6503 * config/m88k/tm-m88k.h: Update copyright.
6504 (m88k_target_write_pc): Declare
6505 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6506 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6507 (SHIFT_INST_REGS): Update definition.
6508 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6509 using old definition of TARGET_WRITE_PC.
6510 * regcache.c (generic_target_write_pc): Delete code handling
6511 NNPC_REGNUM.
6512 * gdbarch.sh (NNPC_REGNUM): Delete.
6513 * gdbarch.h, gdbarch.c: Regenerate.
6514
3e3f2739
RE
65152002-05-13 Richard Earnshaw <rearnsha@arm.com>
6516
6517 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6518 builtin reg number.
6519
0004e5a2
DJ
65202002-05-13 Daniel Jacobowitz <drow@mvista.com>
6521
6522 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6523 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6524 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6525 access macros.
6526 * c-typeprint.c (cp_type_print_method_args): Likewise.
6527 (c_type_print_args): Likewise.
6528 * d10v-tdep.c (d10v_push_arguments): Likewise.
6529 (d10v_extract_return_value): Likewise.
6530 * expprint.c (print_subexp): Likewise.
6531 * gdbtypes.c (lookup_primitive_typename): Likewise.
6532 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6533 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6534 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6535 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6536 (TYPE_VECTOR): Likewise.
6537 * hpread.c (hpread_read_struct_type)
6538 (fix_static_member_physnames, fixup_class_method_type)
6539 (hpread_type_lookup): Likewise.
6540 * mdebugread.c (parse_symbol, parse_type): Likewise.
6541 * p-lang.c (is_pascal_string_type): Likewise.
6542 * valops.c (hand_function_call): Likewise.
6543 * x86-64-tdep.c (classify_argument): Likewise.
6544
6545 * hpread.c (hpread_read_function_type)
6546 (hpread_read_doc_function_type): Call replace_type.
6547 * dstread.c (create_new_type): Delete.
6548 (decode_dst_structure, process_dst_function): Call alloc_type.
6549 Use type access macros.
6550
dff95cc7
MK
65512002-05-12 Mark Kettenis <kettenis@gnu.org>
6552
6553 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6554 the're not supported by the current architecture.
6555 (i387_fill_fxsave): Likewise.
6556
bbcd32ad
FF
65572002-05-12 Fred Fish <fnf@redhat.com>
6558
6559 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6560 sect_index_xxx members to index the first slot in section_offsets
6561 if all of the section_offsets are zero.
6562
89cf4787
MK
65632002-05-12 Mark Kettenis <kettenis@gnu.org>
6564
6565 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6566 checked in with last change.
6567
1f77ffc5
MK
65682002-05-12 Mark Kettenis <kettenis@gnu.org>
6569
6570 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6571 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6572 config.sub.
6573
89b8b4a9
DJ
65742002-05-12 Daniel Jacobowitz <drow@mvista.com>
6575
6576 * Makefile.in: Update dependencies.
6577
14a5e767
AC
65782002-05-11 Andrew Cagney <ac131313@redhat.com>
6579
6580 * language.c (local_hex_string_custom): Simplify. Do not depend
6581 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6582
6583 * memattr.c (mem_info_command): Replace calls to
6584 longest_local_hex_string and longest_local_hex_string_custom.
6585 * buildsym.c (make_blockvector): Ditto.
6586 * solib.c (info_sharedlibrary_command): Ditto.
6587 * tracepoint.c (tracepoints_info): Ditto.
6588 * symtab.c (print_msymbol_info): Ditto.
6589
6590 * language.c (local_hex_string): Delete.
6591 (local_hex_string_custom): Delete.
6592 (longest_local_hex_string): Rename to local_hex_string.
6593 (longest_local_hex_string_custom): Rename to
6594 local_hex_string_custom.
6595 * language.h (local_hex_string): Change parameter type to LONGEST.
6596 (local_hex_string_custom): Ditto.
6597 (longest_local_hex_string): Delete declaration.
6598 (longest_local_hex_string_custom): Ditto.
6599
6600 * solib.c: Update copyright.
6601 * memattr.c: Update copyright.
6602
13d01224
AC
66032002-05-11 Andrew Cagney <ac131313@redhat.com>
6604
6605 * arch-utils.h (legacy_register_to_value): Declare.
6606 (legacy_value_to_register): Declare.
6607 (legacy_convert_register_p): Declare.
6608 * arch-utils.c (legacy_register_to_value): New function.
6609 (legacy_value_to_register): New function.
6610 (legacy_convert_register_p): New function.
6611
6612 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6613 (VALUE_TO_REGISTER): Define.
6614 (CONVERT_REGISTER_P): Define.
6615 * gdbarch.h, gdbarch.c: Regenerate.
6616
6617 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6618 VALUE_TO_REGISTER.
6619 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6620 CONVERT_REGISTER_P.
6621
4a1970e4
DJ
66222005-05-11 Daniel Jacobowitz <drow@mvista.com>
6623 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6624
6625 * Makefile.in: Update dependencies for valops.c.
6626 * valops.c: Include "gdb_assert.h".
6627 (typecmp): Skip THIS parameter to methods.
6628 (find_method_list): Remove static_memfuncp argument,
6629 update callers. Check for stub methods.
6630 (find_value_oload_method_list): Don't set *static_memfuncp.
6631 (find_overload_match): Don't check for stub methods. Assert
6632 that methods are not stubbed. Handle static methods.
6633 (value_find_oload_method_list): Remove static_memfuncp argument.
6634 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6635 to the argument list for static stub methods.
6636 * value.h (value_find_oload_method_list): Update prototype.
6637
b2e75d78
AC
66382002-05-11 Andrew Cagney <ac131313@redhat.com>
6639
6640 * arch-utils.h (generic_register_size): Declare.
6641 (generic_register_raw_size, generic_register_virtual_size): Delete
6642 declarations.
6643 * arch-utils.c (generic_register_raw_size): Delete.
6644 (generic_register_size): New function.
6645 (generic_register_virtual_size): Delete.
6646
6647 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6648 default generic_register_size.
6649 * gdbarch.h, gdbarch.c: Re-generate.
6650
6651 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6652 register_virtual_size.
6653 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6654 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6655
451fbdda
AC
66562002-05-11 Andrew Cagney <ac131313@redhat.com>
6657
6658 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6659 * gdbarch.h, gdbarch.c: Regenerate.
6660 * gnu-v3-abi.c: Update copyright.
6661 (vtable_address_point_offset): Update.
6662 (gnuv3_rtti_type): Update.
6663 (gnuv3_baseclass_offset): Update.
6664 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6665 (init_fetch_link_map_offsets): Update.
6666 * remote.c (get_remote_state): Update.
6667
6d2f5cea
DJ
66682002-05-11 Daniel Jacobowitz <drow@mvista.com>
6669
6670 * TODO: Remove value_headof/value_from_vtable_info comment.
6671 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6672 * values.c (value_headof, value_from_vtable_info): Delete.
6673 * value.h (value_from_vtable_info): Delete prototype.
6674
d2324da4
AC
66752002-05-11 Andrew Cagney <ac131313@redhat.com>
6676
6677 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6678 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6679 $(gdb_regex_h).
6680 (gdb_assert_h): Define.
6681 (gdb_wait_h): Define.
6682 (gdb_regex_h): Define.
6683
5c717440
DJ
66842002-05-11 Daniel Jacobowitz <drow@mvista.com>
6685
6686 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6687 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6688
6c7861b3
JT
66892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6690
6691 * nbsd-tdep.c: Fix comment.
6692
ea5bc2a6
JT
66932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6694
6695 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6696 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6697 (nbsd-tdep.o): New dependency list.
6698 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6699 nbsd-tdep.h.
6700 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6701 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6702 * nbsd-tdep.c: New file.
6703 * nbsd-tdep.h: New file.
6704 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6705 nbsd-tdep.h.
6706 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6707 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6708 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6709 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6710
b28da865
JT
67112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6714 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6715 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6716 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6717 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6718 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6719
4b8ff1fa
JT
67202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6721
6722 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6723 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6724 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6725 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6726 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6727 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6728 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6729
dfe6eb1f
JT
67302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6731
6732 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6733 fetch_elfcore_registers to...
6734 * i386nbsd-tdep.c: ...here.
6735 (i386nbsd_use_struct_convention): Rename to...
6736 (i386nbsd_aout_use_struct_convention): ...this.
6737 (i386nbsd_supply_reg): New function.
6738 (i386nbsd_fill_reg): New function.
6739 (fetch_core_registers): Use i386nbsd_supply_reg.
6740 (fetch_elfcore_registers): Likewise.
6741 (_initialize_i386nbsd_tdep): New function.
6742 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6743 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6744 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6745 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6746 (i386nbsd_aout_use_struct_convention): ...this.
6747
20cb8cda
JT
67482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6749
6750 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6751 (store_inferior_registers): Use shnbsd_fill_reg.
6752 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6753 sh_nbsd_supply_register): Collapse into...
6754 (shnbsd_supply_reg): ...this.
6755 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6756 (shnbsd_fill_reg): ...this.
6757 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6758 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6759 (fetch_core_registers): Use shnbsd_supply_reg.
6760 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6761 (sh_nbsd_core_fns): Rename to...
6762 (shnbsd_core_fns): ...this.
6763 (sh_nbsd_elfcore_fns): Rename to...
6764 (shnbsd_elfcore_fns): ...this.
6765 (sh_nbsd_init_abi): Rename to...
6766 (shnbsd_init_abi): ...this.
6767 (_initialize_sh_nbsd_tdep): Rename to...
6768 (_initialize_shnbsd_tdep): ...this.
6769 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6770 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6771 sh_nbsd_fill_register): Remove prototypes.
6772 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6773
e750d25e
JT
67742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6775
6776 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6777 (i387-nat.o): Delete dependency list.
6778 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6779 (x86-64-linux-nat.o): Likewise.
6780 * i387-nat.c: Delete file, moving contents to...
6781 * i387-tdep.c: ...here.
6782 * i387-nat.h: Rename...
6783 * i387-tdep.h: ...to this.
6784 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6785 * i386-linux-nat.c: Likewise.
6786 * i386bsd-nat.c: Likewise.
6787 * i386gnu-nat.c: Likewise.
6788 * i386nbsd-nat.c: Likewise.
6789 * i386v4-nat.c: Likewise.
6790 * x86-64-linux-nat.c: Likewise.
6791 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6792 * config/i386/go32.mh (NATDEPFILES): Likewise.
6793 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6794 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6795 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6796 * config/i386/linux.mh (NATDEPFILES): Likewise.
6797 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6798 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6799 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6800 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6801
1aee598a
JT
68022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6803
6804 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6805 (alphanbsd-nat.o): Remove dependency list.
6806 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6807 * alphanbsd-nat.c: Delete. Contents moved to...
6808 * alphanbsd-tdep.c: ...here.
6809 (_initialize_alphanbsd_tdep): Register core functions.
6810 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6811
12bcb0fe
JT
68122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6813
6814 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6815 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6816 (alphanbsd-nat.o): Likewise.
6817 (alphabsd-tdep.o): New dependency list.
6818 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6819 (fill_gregset): Use alphabsd_fill_reg.
6820 (supply_fpregset): Use alphabsd_supply_fpreg.
6821 (fill_fpregset): Use alphabsd_fill_fpreg.
6822 (fetch_inferior_registers): Use struct reg and struct fpreg
6823 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6824 and alphabsd_supply_fpreg.
6825 (store_inferior_registers): Use struct reg and struct fpreg
6826 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6827 and alphabsd_fill_fpreg.
6828 * alphabsd-tdep.c: New file.
6829 * alphabsd-tdep.h: New file.
6830 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6831 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6832 alphabsd_supply_fpreg.
6833 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6834 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6835
361d1df0
EC
68362002-05-11 Eric Christopher <echristo@redhat.com>
6837
6838 * mips-tdep.c (mips_double_register_type): Fix thinko.
6839 (mips_single_register_type): Ditto.
6840 * MAINTAINERS: Add self.
6841
92dd7cee
MK
68422002-05-11 Mark Kettenis <kettenis@gnu.org>
6843
6844 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6845 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6846 right thing on architectures with different endianness and/or
6847 integer sizes.
6848
e27da16d
JT
68492002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6850
6851 From Christian Limpach <chris@Pin.LU>
6852 * configure.in: Change sed expression which comments out
6853 NATDEPFILES to also comment out continuation lines.
6854 * configure: Regenerate.
6855
ddde02bd
EZ
68562002-05-10 Elena Zannoni <ezannoni@redhat.com>
6857
6858 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6859 big patch.
6860
1c922164
EZ
68612002-05-10 Elena Zannoni <ezannoni@redhat.com>
6862
6863 * sh-tdep.c: Include correct file.
6864
283150cd
EZ
68652002-05-10 Elena Zannoni <ezannoni@redhat.com>
6866
6867 New support for sh64-elf (sh5) target.
6868
6869 * configure.tgt: For sh64-elf target, default to sh-elf.
6870
6871 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6872 (struct gdbarch_tdep): Add new fields for new registers and ABI
6873 info.
361d1df0 6874
283150cd
EZ
6875 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6876 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6877 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6878 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6879 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6880 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6881 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6882 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6883 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6884 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6885 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6886 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6887 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6888 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6889 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6890 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6891 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6892 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6893 sign_extend, sh64_nofp_frame_init_saved_regs,
6894 sh64_init_extra_frame_info, sh64_get_saved_register,
6895 sh64_extract_struct_value_address, sh64_pop_frame,
6896 sh64_push_arguments, sh64_extract_return_value,
6897 sh64_store_return_value, sh64_show_media_regs,
6898 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6899 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6900 sh_sh64_register_virtual_type,
6901 sh_sh64_register_convert_to_virtual,
6902 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6903 sh64_register_read, sh64_pseudo_register_write,
6904 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6905 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6906 sh64_do_pseudo_register, sh_compact_do_registers_info,
6907 sh64_do_registers_info, sh_gdbarch_init): New functions.
6908
3117ed25
EZ
69092002-05-10 Elena Zannoni <ezannoni@redhat.com>
6910
6911 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6912
2654e6d4
DJ
69132002-05-10 Daniel Jacobowitz <drow@mvista.com>
6914
6915 * linespec.c (decode_line_1): Check for a double quote after
6916 a filename correctly.
6917
9ab3e532
JB
69182002-05-10 Jim Blandy <jimb@redhat.com>
6919
6920 Properly track the size of the current objfile's .debug_line section.
6921 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6922 (DWARF_LINE_SIZE): New macro.
6923 (dwarf2_build_psymtabs_hard): Record the line section's size in
6924 the partial symbol table.
6925 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6926 symbol table.
6927
126fa72d
PS
69282002-05-10 Petr Sorfa <petrs@caldera.com>
6929
6930 * ia64-tdep.c: Handle breakpoints on L instruction type
6931 in MLX instruction bundle by moving the breakpoint to
6932 the third slot (X instruction type) as L holds only data.
6933
1f077a3e
KB
69342002-05-10 Kevin Buettner <kevinb@redhat.com>
6935
6936 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6937 (process_one_symbol): Complain about discarding local symbols
6938 due to a misplaced N_LBRAC entry.
6939
8120c9d5 69402002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6941
6942 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6943 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6944 decrease the depth we are at, in the case of templates.
361d1df0 6945
67b2c998
DJ
69462002-05-09 Daniel Jacobowitz <drow@mvista.com>
6947
6948 * mips-tdep.c (mips_float_register_type): New function.
6949 (mips_double_register_type): New function.
6950 (mips_print_register): Use them.
6951 (do_fp_register_row): Likewise.
6952
fd326606
DJ
69532002-05-09 Daniel Jacobowitz <drow@mvista.com>
6954
6609d9af 6955 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6956 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6957 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6958
bef35864
MS
69592002-05-09 Michael Snyder <msnyder@redhat.com>
6960
6961 * remote-rdp.c (remote_rdp_can_run): Remove.
6962
c55a3f73
TT
69632002-05-09 Tom Tromey <tromey@redhat.com>
6964
6965 * jv-valprint.c (java_val_print): Handle `char' as a special case
6966 of TYPE_CODE_INT.
6967
b8d5e71d
MS
69682002-05-09 Michael Snyder <msnyder@redhat.com>
6969
6970 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6971 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6972 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6973 str r(0123),[sp,#nn].
361d1df0 6974 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6975 order-independent by placing it in a loop.
6976
e2cd42dd
MS
69772002-05-06 Michael Snyder <msnyder@redhat.com>
6978
6979 * stabsread.c (read_type): Add recognition for new attribute:
6980 "@V;" means that an array type is actually a vector.
6981 This is analogous to the vector flag that's been added to dwarf2.
6982
3ce1502b
MK
69832002-05-09 Mark Kettenis <kettenis@gnu.org>
6984
6985 * i386-tdep.h (i386_abi): New enum.
6986 (struct gdbarch_tdep): Replace os_ident member with abi.
6987 (i386_gdbarch_register_os_abi): New prototype.
6988 * i386-tdep.c (i386_abi_names): New array.
6989 (process_note_abi_tag_sections): Removed.
6990 (process_note_sections): New function.
6991 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6992 (struct i386_abi_handler): New struct.
6993 (i386_abi_handler_list): New variable.
6994 (i386_gdbarch_register_os_abi): New function.
6995 (i386_gdbarch_init): Adapt for the changes given above.
6996
084c156a
DJ
69972002-05-08 Daniel Jacobowitz <drow@mvista.com>
6998
6999 * gregset.h: Say "GNU/Linux".
7000
6599f021
EZ
70012002-05-08 Elena Zannoni <ezannoni@redhat.com>
7002
7003 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7004 (build_gdbtypes): Build builtin_type_v2_float.
7005 (_initialize_gdbtypes): Register new builtin type.
7006
40af4b0c
AC
70072002-05-08 Andrew Cagney <ac131313@redhat.com>
7008
7009 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7010 (clear_gdbarch_swap): New function.
7011 (initialize_non_multiarch): Call.
7012 (gdbarch_update_p): Before calling init(), swap out and clear the
7013 existing architecture.
7014 * gdbarch.c: Regenerate.
7015
4fe84f46
JT
70162002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7017
7018 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7019 alphanbsd-tdep.c.
7020
4015edd1
JT
70212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7022
7023 * sh-nbsd-nat.c: Rename to...
7024 * shnbsd-nat.c: ...this.
7025 * sh-nbsd-tdep.c: Rename to...
7026 * shnbsd-tdep.c: ...this.
7027 * sh-nbsd-tdep.h: Rename to...
7028 * shnbsd-tdep.h: ...this.
7029 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7030 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7031
0e2bd219
RE
70322002-05-08 Richard Earnshaw <rearnsha@arm.com>
7033
7034 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7035 concatenation for command help messages.
7036
13a38d45
JT
70372002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7038
7039 * NEWS: Note new sh*-*-netbsdelf* configuration.
7040 * configure.host: Set gdb_host_cpu to sh for all sh*.
7041 (sh*-*-netbsdelf*): New host.
7042 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7043 (sh*-*-netbsdelf*): New target.
7044 * sh-nbsd-nat.c: New file.
7045 * sh-nbsd-tdep.c: New file.
7046 * sh-nbsd-tdep.h: New file.
7047 * config/sh/nbsd.mh: New file.
7048 * config/sh/nbsd.mt: New file.
7049 * config/sh/nm-nbsd.h: New file.
7050 * config/sh/tm-nbsd.h: New file.
7051
d658f924
JT
70522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7053
7054 * sh-tdep.c (sh_osabi_names): Declare.
7055 (process_note_abi_tag_sections): New function.
7056 (get_elfosabi): Ditto.
7057 (sh_gdbarch_register_os_abi): Ditto.
7058 (sh_dump_tdep): Ditto.
7059 _initialize_sh_tdep): Use gdbarch_register to register
7060 sh_gdbarch_init and sh_dump_tdep.
7061 * config/sh/tm-sh.h (sh_osabi): Declare.
7062 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7063
848cfffb
AC
70642002-05-07 Andrew Cagney <ac131313@redhat.com>
7065
7066 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7067 (thumb_scan_prologue): Ditto.
7068 (arm_find_callers_reg): Ditto.
7069 (arm_frame_chain): Ditto.
7070 (arm_init_extra_frame_info): Ditto.
7071 (arm_frame_saved_pc): Ditto.
7072 (arm_pop_frame): Ditto.
7073 (arm_push_return_address): New function.
7074 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7075 call_dummy_location, call_dummy_breakpoint_offset_p,
7076 call_dummy_breakpoint_offset, call_dummy_p,
7077 call_dummy_stack_adjust_p, call_dummy_words,
7078 sizeof_call_dummy_words, call_dummy_start_offset,
7079 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7080 call_dummy_address, push_return_address and push_dummy_frame for
7081 generic dummy frames.
7082
e7d717c0
JT
70832002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7084
7085 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7086 size computation for alloca.
7087 (sh_fp_frame_init_saved_regs): Likewise.
7088
7bbcf283
RE
70892002-05-07 Richard Earnshaw <rearnsha@arm.com>
7090
7091 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7092 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7093 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7094 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7095 * remote-rdp.c (remote_rdp_fetch_register): Use
7096 ARM_MAX_REGISTER_RAW_SIZE.
7097 (remote_rdp_store_register): Likewise.
7098
4657573b
ML
70992002-05-07 Michal Ludvig <mludvig@suse.cz>
7100
361d1df0 7101 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7102 added default labels to switch {} statements.
7103 * x86-64-tdep.c: Ditto.
7104 * x86-64-linux-nat.c: Ditto.
7105
010f3b2f
JT
71062002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7107
7108 * solib.h: Protect against multiple inclusion.
7109
debd256d
JB
71102002-05-06 Jim Blandy <jimb@redhat.com>
7111
9ab3e532
JB
7112 Add first preprocessor macro-expansion files.
7113 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7114 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7115 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7116 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7117 (COMMON_OBS): Add macrotab.o, macroexp.o.
7118 (macroexp.o, macrotab.o): New rules.
7119
debd256d
JB
7120 Separate the job of reading the line number info statement program
7121 header (...expialidocious) out into its own function.
7122 * dwarf2read.c (struct line_head, struct filenames, struct
7123 directories): Replace with...
7124 (struct line_header): New structure, containing the full
7125 contents of the statement program header, including the
7126 include directory and file name tables.
7127 (read_file_scope): If we have line number info, instead of just
7128 calling dwarf_decode_lines to do all the work, call
7129 dwarf_decode_line_header first to get a `struct line_header'
7130 containing the data in the statement program header, and then
7131 pass that to dwarf_decode_lines, which will pick up where that
7132 left off. Be sure to clean up the `struct line_header' object.
7133 (dwarf_decode_line_header, free_line_header, add_include_dir,
7134 add_file_name): New functions.
7135 (dwarf_decode_lines): Move all the code to read the statement
7136 program header into dwarf_decode_line_header. Take the line
7137 header it built as the first argument, instead of the offset to
7138 the compilation unit's line number info. Use the new `struct
7139 line_header' type instead of the old structures. No need to do
7140 cleanups here now, since we don't allocate anything.
7141 (dwarf2_statement_list_fits_in_line_number_section,
7142 dwarf2_line_header_too_long): New complaints.
7143
ac3aafc7
EZ
71442002-05-06 Elena Zannoni <ezannoni@redhat.com>
7145
7146 * gdbtypes.c (init_vector_type): New function.
7147 (build_builtin_type_vec128): Simplify the representation of SIMD
7148 registers.
7149 (build_gdbtypes): Initialize new builtin vector types.
7150 (_initialize_gdbtypes): Register new vector types with gdbarch.
7151 (builtin_type_v4_float, builtin_type_v4_int32,
7152 builtin_type_v8_int16, builtin_type_v16_int8,
7153 builtin_type_v2_int32, builtin_type_v4_int16,
7154 builtin_type_v8_int8): New (renamed) SIMD types.
7155
13e49980
MK
71562002-05-06 Mark Kettenis <kettenis@gnu.org>
7157
7158 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7159 (i387_fill_fxsave): Likewise.
7160
997b20b8
AO
71612002-05-05 Alexandre Oliva <aoliva@redhat.com>
7162
7163 * alpha-tdep.c (alpha_extract_return_value): Don't use
7164 non-constant array size in prototype.
7165
535c96ce
AC
71662002-05-04 Andrew Cagney <ac131313@redhat.com>
7167
7168 From Brian Taylor <briant at model dot com>:
7169 * ui-out.c (ui_out_field_core_addr): Use the function
7170 longest_local_hex_string_custom'to format addresses > 32 bits
7171 wide.
7172
7173 * ui-out.c (ui_out_field_core_addr): Update comment.
7174
bedfa57b
AC
71752002-05-04 Andrew Cagney <ac131313@redhat.com>
7176
7177 * stack.c (select_and_print_frame): Make static. Delete the
7178 parameter `level'.
7179 (func_command): Update call.
7180 (select_frame_command): Delete code computing the frame level.
7181 * frame.h (select_and_print_frame): Delete declaration.
7182
f621c63e
AC
71832002-05-04 Andrew Cagney <ac131313@redhat.com>
7184
7185 * sparc-tdep.c (sparc_get_saved_register): Comment why
7186 get_prev_frame call is safe.
7187
0f7d239c
AC
71882002-05-04 Andrew Cagney <ac131313@redhat.com>
7189
7190 * frame.h (select_frame): Delete level parameter.
7191 * stack.c (select_frame): Update. Use frame_relative_level to
7192 obtain the frame's level.
7193 (select_and_print_frame): Update call.
7194 (select_frame_command): Ditto.
7195 (up_silently_base): Ditto.
7196 (down_silently_base): Ditto.
7197 * ocd.c (ocd_start_remote): Ditto.
7198 * remote-rdp.c (remote_rdp_open): Ditto.
7199 * remote-mips.c (mips_initialize): Ditto.
7200 (common_open): Ditto.
7201 * remote-e7000.c (e7000_start_remote): Ditto.
7202 * m3-nat.c (select_thread): Ditto.
7203 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7204 (child_get_current_exception_event): Ditto.
7205 * varobj.c (varobj_create): Ditto.
7206 (varobj_update): Ditto.
7207 (c_value_of_root): Ditto.
7208 * tracepoint.c (finish_tfind_command): Ditto.
7209 * corelow.c (core_open): Ditto.
7210 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7211 * thread.c (info_threads_command): Ditto.
7212 (switch_to_thread): Ditto.
7213 * infrun.c (normal_stop): Ditto.
7214 (restore_selected_frame): Ditto.
7215 (restore_inferior_status): Ditto.
7216 * breakpoint.c (insert_breakpoints): Ditto.
7217 (watchpoint_check): Ditto.
7218 (bpstat_stop_status): Ditto.
7219 (do_enable_breakpoint): Ditto.
7220 * blockframe.c (flush_cached_frames): Ditto.
7221 (reinit_frame_cache): Ditto.
7222
71d6c7b1
AC
72232002-05-04 Andrew Cagney <ac131313@redhat.com>
7224
7225 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7226 maintainer.
7227
cda6c68a
JB
72282002-05-04 Jim Blandy <jimb@redhat.com>
7229
7230 * gdbtypes.c (replace_type): Doc fix.
7231
5c1c87f0
AC
72322002-05-04 Andrew Cagney <ac131313@redhat.com>
7233
7234 * valprint.c (strcat_longest): Delete commented out function.
7235 Update copyright.
7236
cd9bfe15
AC
72372002-05-04 Andrew Cagney <ac131313@redhat.com>
7238
7239 * MAINTAINERS: Mark a29k as deleted.
7240 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7241 Move new configurations to the top.
7242 * configure.tgt: Remove a29k.
7243 * config/a29k/tm-vx29k.h: Delete.
7244 * config/a29k/vx29k.mt: Delete.
7245 * config/a29k/tm-a29k.h: Delete.
7246 * config/a29k/a29k-udi.mt: Delete.
7247 * config/a29k/a29k.mt: Delete.
7248 * a29k-tdep.c: Delete.
7249 * remote-udi.c: Delete.
7250 * remote-mm.c: Delete.
7251 * remote-eb.c: Delete.
7252 * remote-adapt.c: Delete.
7253 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7254 * config/s390/s390x.mt: Ditto.
7255 * config/s390/s390.mt: Ditto.
7256 * config/sparc/sparclynx.mh: Ditto.
7257 * config/sparc/linux.mh: Ditto.
7258 * config/pa/hppaosf.mh: Ditto.
7259 * config/pa/hppabsd.mh: Ditto.
7260 * config/ns32k/nbsd.mt: Ditto.
7261 * config/mips/vr5000.mt: Ditto.
7262 * config/m68k/sun3os4.mh: Ditto.
7263 * config/m68k/nbsd.mt: Ditto.
7264 * config/m68k/m68klynx.mh: Ditto.
7265 * config/m32r/m32r.mt: Ditto.
7266 * config/i386/x86-64linux.mt: Ditto.
7267 * config/i386/nbsdelf.mt: Ditto.
7268 * config/i386/nbsd.mt: Ditto.
7269 * config/i386/i386lynx.mh: Ditto.
7270
bf0c5130
AC
72712002-05-04 Andrew Cagney <ac131313@redhat.com>
7272
7273 * target.c (debug_print_register): New function. Handle oversize
7274 registers.
7275 (debug_to_fetch_registers): Call.
7276 (debug_to_store_registers): Call.
7277
2ae1c2d2
JB
72782002-05-03 Jim Blandy <jimb@redhat.com>
7279
13a393b0
JB
7280 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7281 (read_type): Doc fix.
7282 * gdbtypes.c (replace_type): Doc fix.
7283
2ae1c2d2
JB
7284 * stabsread.c (multiply_defined_struct): New complaint.
7285 (read_struct_type): If the type we were passed isn't empty, or
7286 incomplete, don't read the new struct type into it; complain,
7287 and return the original type unchanged. Take a new `type_code'
7288 argument, which is the type code for the new type.
7289 (read_type): Rather than storing the type's type code here, pass
7290 it as an argument to read_struct_type, and let that take care of
7291 storing it. That way, we don't overwrite the original type code,
7292 so read_struct_type can use it to decide whether we're overwriting
7293 something we shouldn't.
7294 (complain_about_struct_wipeout): New function.
7295
8de9bdc4
AC
72962002-05-03 Andrew Cagney <ac131313@redhat.com>
7297
7298 * gdbarch.sh: Assert that gdbarch is non-NULL.
7299 * gdbarch.c: Regenerate.
7300
f773fdbb
JM
73012002-05-03 Jason Merrill <jason@redhat.com>
7302
7303 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7304 and return NULL.
7305
0e04a514
ML
73062002-05-03 Michal Ludvig <mludvig@suse.cz>
7307
7308 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7309 (x86_64_dwarf2gdb_regno_map_length),
7310 (x86_64_dwarf2_reg_to_regnum): Added.
7311 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7312 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7313 (_initialize_x86_64_tdep): Synced with the change above.
7314 (x86_64_skip_prologue): Reformulated message.
7315
065432a8
PM
73162002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7317
7318 * f-exp.y: Also use new prev_lexptr variable
7319 to improve error reporting. Based on Michael Snyder
7320 2002-04-24 dated patch to c-exp.y.
7321 * jv-exp.y: Likewise.
7322 * m2-exp.y: Likewise.
7323
a3162708
EZ
73242002-05-02 Elena Zannoni <ezannoni@redhat.com>
7325
7326 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7327 we are dealing with vectors.
7328
03620c38
PM
73292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7330
7331 * config/m68k/tm-nbsd.h: Obvious fix,
7332 correct machine name.
7333
6604db2e
PM
73342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7335
7336 * p-typeprint.c (pascal_type_print_base): Add support
7337 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7338
0906b739
PM
73392002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7340
7341 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7342 for fondamental pascal 'char' type.
7343
e2625b33
PM
73442002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7345
7346 * p-lang.h (is_pascal_string_type): Declaration changed,
7347 new sixth argument of type char ** added.
361d1df0 7348 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7349 changed. Args length_pos, length_size, string_pos, char_size
7350 can now be NULL. New argument arrayname set to the field
7351 name of the char array. Return value set to char array
7352 field index plus one.
361d1df0 7353 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7354 is_pascal_string_type function.
7355
cf17c188
AC
73562002-05-02 Andrew Cagney <cagney@redhat.com>
7357
7358 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7359 <cagney@redhat.com> change.
7360 * gdbarch.c: Regenerate.
7361
52bca491
AC
73622002-05-02 Andrew Cagney <cagney@redhat.com>
7363
7364 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7365 before probing for a new one. Detect errorenous gdbarch_init
7366 functions.
7367 * gdbarch.c: Regenerate.
7368
d5e72505
AC
73692002-05-01 Andrew Cagney <cagney@redhat.com>
7370
7371 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7372 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7373 * config/v850/tm-v850.h: Ditto. Update copyright.
7374
af566d9f
AC
73752002-04-30 Andrew Cagney <ac131313@redhat.com>
7376
7377 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7378 current_gdbarch.
7379
880d85fa
MS
73802002-04-30 Michael Snyder <msnyder@redhat.com>
7381
94c30b78
MS
7382 * arm-tdep.c: Whitespace clean-ups.
7383 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7384 should have been removed as part of 4/24 change.
7385
6f5987a6
KB
73862002-04-30 Kevin Buettner <kevinb@redhat.com>
7387
7388 * rs6000-tdep.c: Added comment describing how fpscr register
7389 numbers were chosen.
7390
1a113c93
MS
73912002-04-30 Michael Snyder <msnyder@redhat.com>
7392
7393 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7394
9a6f53fe
EZ
73952002-04-29 Elena Zannoni <ezannoni@redhat.com>
7396
7397 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7398 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7399 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7400
11ed25ac
KB
74012002-04-29 Kevin Buettner <kevinb@redhat.com>
7402
7403 From Louis Hamilton <hamilton@redhat.com>:
7404 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7405 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7406 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7407 not bfd-private xcoff data, to determine wordsize.
7408 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7409
ae232405
AC
74102002-04-29 Andrew Cagney <ac131313@redhat.com>
7411
7412 GDB 5.2 released from 5.2 branch.
7413
91fd20f7
ML
74142002-04-29 Michal Ludvig <mludvig@suse.cz>
7415
7416 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7417 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7418 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7419
2dc5091b
EZ
74202002-04-29 Elena Zannoni <ezannoni@redhat.com>
7421
7422 * rs6000-tdep.c (rs6000_extract_return_value,
7423 rs6000_store_return_value): Handle returning vectors.
7424 (rs6000_gdbarch_init): Use
7425 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7426 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7427 New function.
7428 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7429 vectors.
7430 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7431 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7432
2b9848d8
PM
74332002-04-24 Pierre Muller <ics.u-strasbg.fr>
7434
7435 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7436 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7437 with fprintf_unfiltered (gdb_stderr,...).
7438
f8d17dc5
PM
74392002-04-24 Pierre Muller <ics.u-strasbg.fr>
7440
7441 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7442 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7443 Replace fprintf (stderr,...
7444 with fprintf_unfiltered (gdb_stderr,....
7445 * remote-es.c: Likewise.
7446 * remote-os9k.c: Likewise.
7447 * remote-st.c: Likewise.
7448
2f2f1ad1
AS
74492002-04-28 Andreas Schwab <schwab@suse.de>
7450
7451 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7452 linux-proc.o and gcore.o.
7453
b6779aa2
AC
74542002-04-26 Michal Ludvig <mludvig@suse.cz>
7455
7456 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7457 code without frame pointers.
7458
7e57f5f4
AC
74592002-04-26 Andrew Cagney <ac131313@redhat.com>
7460
7461 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7462 ON_STACK is needed.
7463
2ceb85d0
BE
74642002-04-26 Ben Elliston <bje@redhat.com>
7465
7466 * target.c (do_xfer_memory): Correct reference to the new option
7467 "trust-readonly-sections".
7468
f5f8a009
EZ
74692002-04-26 Elena Zannoni <ezannoni@redhat.com>
7470
7471 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7472 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7473 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7474 vectors.
7475 (read_array_type): Record the fact that this array type is really a
7476 vector (i.e. are passed in by value).
7477
5868c862
JT
74782002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7479
7480 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7481 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7482 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7483 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7484 * alpha-linux-tdep.c: Include frame.h.
7485 (alpha_linux_sigcontext_addr): New function.
7486 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7487 alpha_linux_sigcontext_addr.
7488 * alpha-osf1-tdep.c: Include gdbcore.h.
7489 (alpha_osf1_sigcontext_addr): New function.
7490 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7491 alpha_osf1_sigcontext_addr.
7492 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7493 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7494
bfb01f37
AC
74952002-04-26 Andrew Cagney <ac131313@redhat.com>
7496
361d1df0 7497 * stack.c (selected_frame_level):
bfb01f37
AC
7498 (select_frame): Do not set selected_frame_level.
7499 * frame.h (selected_frame_level): Delete declaration.
7500
15813d3f
AC
75012002-04-26 Andrew Cagney <ac131313@redhat.com>
7502
7503 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7504 convert_from_func_ptr-addr when AIX / PowerOpen.
7505
6096c27a
AC
75062002-04-25 Andrew Cagney <ac131313@redhat.com>
7507
7508 * valops.c (hand_function_call): Call
7509 generic_save_call_dummy_addr.
7510 * frame.h (generic_save_call_dummy_addr): Declare.
7511 * blockframe.c (struct dummy_frame): Add fields call_lo and
7512 call_hi.
7513 (generic_find_dummy_frame): Check for PC in range call_lo to
7514 call_hi instead of entry_point_address.
7515 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7516 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7517 (generic_save_call_dummy_addr): New function.
7518
f510d44e
DM
75192002-04-24 David S. Miller <davem@redhat.com>
7520
7521 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7522 sparc_skip_prologue.
7523 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7524 information to find prologue when possible.
7525 (sparc_prologue_frameless_p): Call examine_prologue directly.
7526 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7527 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7528 second argument.
7529 (SKIP_PROLOGUE): Likewise.
7530
15d72a92
JT
75312002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7532
7533 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7534 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7535 indicate that the condition it was testing is always true.
7536 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7537 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7538 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7539
accc6d1f
JT
75402002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7543 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7544 tdep->jb_pc and tdep->jb_elt_size.
7545 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7546 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7547 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7548 * alpha-nat.c (get_longjmp_target): Remove.
7549 (JB_ELEMENT_SIZE): Ditto.
7550 (JB_PC): Ditto.
7551 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7552 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7553 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7554 to alpha_get_longjmp_target.
7555 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7556 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7557 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7558
1bfdc549
AC
75592002-04-25 Andrew Cagney <ac131313@redhat.com>
7560
7561 * README: Update to GDB 5.2.
7562
1bd316f0
AC
75632002-04-25 Andrew Cagney <ac131313@redhat.com>
7564
7565 * gdbarch.sh (LC_ALL): Set to `c'.
7566
2e5ff58c
TR
75672002-04-25 Theodore A. Roth <troth@verinet.com>
7568
7569 * avr-tdep.c: Ran through gdb_indent.sh.
7570
e33ce519
TR
75712002-04-25 Theodore A. Roth <troth@verinet.com>
7572
7573 * MAINTAINERS: Add myself as AVR maintainer.
7574 * NEWS: Note new target avr.
7575
8818c391
TR
75762002-04-25 Theodore A. Roth <troth@verinet.com>
7577
7578 * Makefile.in: Add support for AVR target.
7579 * configure.tgt: Add support for AVR target.
7580 * avr-tdep.c: New file
7581 * config/avr/avr.mt: New file.
7582
79509c2d
TR
75832002-04-25 Theodore A. Roth <troth@verinet.com>
7584
7585 * MAINTAINERS: Add myself to write-after-approval.
7586
dac8068e
PM
75872002-04-24 Pierre Muller <ics.u-strasbg.fr>
7588
7589 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7590 with fprintf_unfiltered (gdb_stderr,....
7591
25bf3106
PM
75922002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7593
7594 Fix PR gdb/508.
7595 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7596
24467a86
PM
75972002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7598
7599 * p-exp.y: Also use new prev_lexptr variable
7600 to improve error reporting. Based on Michael Snyder
7601 2002-04-24 dated patch to c-exp.y.
7602
95b80706
JT
76032002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7604
7605 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7606 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7607 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7608 to 0.
7609 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7610 and struct value.
7611 (FUNCTION_START_OFFSET): Remove.
7612 (BREAKPOINT): Ditto.
7613
e90cc612
JT
76142002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7615
7616 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7617 * NEWS: Ditto.
7618
6c72f9f9
JT
76192002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7620
7621 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7622 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7623 alpha_linux_pc_in_sigtramp.
7624 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7625 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7626 alpha_osf1_pc_in_sigtramp.
7627 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7628 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7629 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7630 alphafbsd_pc_in_sigtramp.
7631 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7632 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7633 alphanbsd_pc_in_sigtramp.
7634 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7635 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7636
5e4f3379
JT
76372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7638
7639 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7640
da8ca43d
JT
76412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7642
7643 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7644 alphanbsd-tdep.c.
7645 (alphanbsd-nat.o): New dependency list.
7646 (alphanbsd-tdep.o): Ditto.
7647 * NEWS: Note new native NetBSD/alpha configuration.
7648 * alphanbsd-nat.c: New file.
7649 * alphanbsd-tdep.c: Ditto.
7650 * configure.host (alpha*-*-netbsd*): New host.
7651 * configure.tgt (alpha*-*-netbsd*): New target.
7652 * config/alpha/nbsd.mh: New file.
7653 * config/alpha/nbsd.mt: Ditto.
7654 * config/alpha/nm-nbsd.h: Ditto.
7655 * config/alpha/tm-nbsd.h: Ditto.
7656
36a6271d
JT
76572002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7658
7659 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7660 (alpha-osf1-tdep.o): New dependency list.
7661 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7662 and skip_sigtramp_frame members.
7663 * alpha-linux-tdep.c: Include gdbcore.h.
7664 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7665 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7666 * alpha-osf1-tdep.c: New file.
7667 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7668 alpha-osf1-dep.c.
7669 (alpha_frame_past_sigtramp_frame): New function.
7670 (alpha_dynamic_sigtramp_offset): Ditto.
7671 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7672 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7673 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7674 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7675 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7676 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7677 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7678 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7679 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7680 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7681 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7682 to find_solib_trampoline_target.
7683 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7684 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7685 (SKIP_TRAMPOLINE_CODE): Remove.
7686 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7687 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7688 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7689 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7690 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7691 (PROC_SIGTRAMP_MAGIC): Ditto.
7692 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7693 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7694 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7695 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7696 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7697
2f4bc57b
JT
76982002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7699
7700 * NEWS: Note that Alpha targets are now multi-arch.
7701
665132f9
MS
77022002-04-24 Michael Snyder <msnyder@redhat.com>
7703
7704 * parser-defs.h (prev_lexptr): New external variable.
7705 * parse.c (parse_exp_1): Set prev_lexptr to null before
7706 calling the language-specific parser.
7707 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7708 (yyerror): Use prev_lexptr in error reporting.
7709
32872fa7
DJ
77102002-04-24 Daniel Jacobowitz <drow@mvista.com>
7711
7712 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7713 * gregset.h: If FILL_FPXREGSET is defined, provide
7714 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7715 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7716 is defined, call fill_fpxregset.
7717
57e76fac
MS
77182002-04-24 Roland McGrath <roland@frob.com>
7719
7720 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7721 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7722 (supply_gregset, supply_fpregset): New functions.
7723
7724 * gnu-nat.c (gnu_find_memory_regions): New function.
7725 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7726 (gnu_xfer_memory): Add a cast.
7727
f43845b3
MS
77282002-04-24 Michael Snyder <msnyder@redhat.com>
7729
361d1df0 7730 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7731 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7732 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7733 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7734 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7735 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7736
a0abec03
AC
7737Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7738
7739 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7740 NUM_PSEUDO_REGS can be used.
7741
d7bd68ca
AC
77422002-04-24 Andrew Cagney <ac131313@redhat.com>
7743
7744 * arch-utils.h: Update copyright.
7745
7746 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7747 * gdbarch.h, gdbarch.c: Re-generate.
7748
7749 * inferior.h (IN_SIGTRAMP): Delete definition.
7750 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7751 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7752
7753 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7754 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7755 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7756 (find_proc_framesize): Ditto.
7757 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7758 (alpha_init_extra_frame_info): Ditto.
7759 * infrun.c (handle_inferior_event): Ditto.
7760 (handle_inferior_event): Ditto.
7761 (check_sigtramp2): Ditto.
7762 * blockframe.c (create_new_frame): Ditto.
7763 (get_prev_frame): Ditto.
7764 * ppc-linux-tdep.c: Update comments.
7765 * i386-linux-tdep.c: Update comments.
7766 * breakpoint.c (bpstat_what): Update comment.
7767
4867e41e
DM
77682002-04-24 David S. Miller <davem@redhat.com>
7769
21d83aa5
DM
7770 * i960-tdep.c (register_in_window_p): New function.
7771 (i960_find_saved_register): Use it instead of
7772 REGISTER_IN_WINDOW_P.
7773 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7774
4867e41e
DM
7775 * symtab.h (find_stab_function_addr): Kill extern.
7776 * minsyms.c (find_stab_function_addr): Remove from here...
7777 * dbxread.c: ... to here, and mark it static.
7778
69cdf6a2
DM
77792002-04-20 David S. Miller <davem@redhat.com>
7780
7781 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7782 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7783
5a595886
DM
77842002-04-21 David S. Miller <davem@redhat.com>
7785
7786 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7787 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7788 (vx_write_register): Likewise.
7789
1da1a192
JB
77902002-04-23 J. Brobecker <brobecker@gnat.com>
7791
7792 * source.c (is_regular_file): New function.
7793 (openp): Check wether file to open is a regular file
7794 to avoid opening directories.
7795
baa6f10b
JT
77962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7797
7798 * findvar.c (extract_signed_integer): Cast printf argument
7799 to suppress format warning.
7800 (extract_unsigned_integer): Likewise.
7801 * infcmd.c (registers_info): Likewise.
7802 * top.c (get_prompt_1): Likewise.
7803 * valops.c (value_assign): Likewise.
7804 * valprint.c (print_decimal): Likewise.
7805
b2c4da81
L
78062002-04-22 H.J. Lu (hjl@gnu.org)
7807
7808 * c-exp.y (typebase): Support
361d1df0 7809
b2c4da81
L
7810 [long|long long|short] [signed|unsigned] [int|]
7811
7812 and
7813
7814 signed [long|long long|short] int
7815
f267bd6a
JT
78162002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7819 and vax-tdep.h.
7820 * vax-tdep.h: New file.
7821 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7822 Make several routines static.
7823 (vax_get_saved_register): New function.
7824 (vax_gdbarch_init): New function.
7825 (_initialize_vax_tdep): Register vax_gdbarch_init.
7826 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7827 Remove macros now under the control of gdbarch.
7828
da3c6d4a
MS
78292002-04-22 Michael Snyder <msnyder@redhat.com>
7830
11d3b27d
MS
7831 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7832 Some whitespace and coding standards tweaks.
da3c6d4a 7833
a33f7558
JT
78342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7835
7836 * vax-tdep.c: Include regcache.h.
7837 (vax_call_dummy_words): New.
7838 (sizeof_vax_call_dummy_words): New.
7839 (vax_fix_call_dummy): New function.
7840 (vax_saved_pc_after_call): Ditto.
7841 * config/vax/tm-vax.h: Don't include regcache.h.
7842 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7843 (CALL_DUMMY): Remove.
7844 (CALL_DUMMY_WORDS): Define.
7845 (SIZEOF_CALL_DUMMY_WORDS): Define.
7846 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7847
47a73475
MS
78482002-04-18 Michael Snyder <msnyder@redhat.com>
7849
7850 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7851
52efde73
JT
78522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7853
7854 * vax-tdep.c (vax_frame_chain): New function.
7855 (vax_push_dummy_frame): Ditto.
7856 (vax_pop_frame): Ditto.
7857 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7858 (FRAMELESS_FUNCTION_INVOCATION): Use
7859 generic_frameless_function_invocation_not.
7860 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7861 (POP_FRAME): Use vax_pop_frame.
7862
ea74468c
JT
78632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * vax-tdep.c (vax_store_struct_return): New function.
7866 (vax_extract_return_value): Ditto.
7867 (vax_store_return_value): Ditto.
7868 (vax_extract_struct_value_address): Ditto.
7869 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7870 vax_store_struct_return.
7871 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7872 (STORE_RETURN_VALUE): Use vax_store_return_value.
7873 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7874
5516aa92
JT
78752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7876
7877 * vax-tdep.c (vax_frame_saved_pc): New function.
7878 (vax_frame_args_address_correct): Ditto.
7879 (vax_frame_args_address): Ditto.
7880 (vax_frame_locals_address): Ditto.
7881 (vax_frame_num_args): Move code to be in proximity to
7882 other frame-related functions.
7883 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7884 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7885 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7886 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7887 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7888
36af0b35
L
78892002-04-22 H.J. Lu (hjl@gnu.org)
7890
7891 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7892 includedir.
7893
ab62c900
JT
78942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7895
7896 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7897 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7898 (FRAME_INIT_SAVED_REGS): New macro.
7899
7232b100
JT
79002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7901
7902 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7903
b70d2aee
JT
79042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7905
7906 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7907 where needed.
7908 (fetch_osf_core_registers): Likewise.
7909 (supply_gregset): Likewise.
7910
a0e8a2d1 79112002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7912
a0e8a2d1
JB
7913 * symfile.h (get_section_index): Define.
7914 * symfile.c (get_section_index): New function.
7915 * mdebugread.c (SC_IS_SBSS): New macro.
7916 (SC_IS_BSS): Return true for the scBss storage class only, as
7917 the scSBss storage class refers to the .sbss section.
7918 (parse_partial_symbols): Discard the symbols which associated
7919 section does not exist.
7920 Make sure to use the .sbss section index for symbols which
7921 storage class is scBss, rather than using the .bss section index.
7922
51eb8b08
JT
79232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7924
7925 * vax-tdep.c: Update copyright years.
7926 (vax_register_name): New function.
7927 (vax_register_byte): Ditto.
7928 (vax_register_raw_size): Ditto.
7929 (vax_register_virtual_size): Ditto.
7930 (vax_register_virtual_type): Ditto.
7931 * config/vax/tm-vax.h: Update copyright years.
7932 (REGISTER_NAMES): Remove.
7933 (REGISTER_NAME): Define.
7934 (REGISTER_BYTE): Use vax_register_byte.
7935 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7936 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7937 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7938
6cc1c0a8
AC
79392002-04-21 Andrew Cagney <ac131313@redhat.com>
7940
7941 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7942 declaration
7943 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7944
9319a2fe
DM
79452002-04-21 David S. Miller <davem@redhat.com>
7946
7947 * arch-utils.c (generic_prologue_frameless_p): Kill
7948 SKIP_PROLOGUE_FRAMELESS_P code.
7949 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7950 references.
7951 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7952 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7953 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7954 references.
7955 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7956 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7957 (sparc_gdbarch_init): Pass it to
7958 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7959
e9ed6d01
JT
79602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7961
7962 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7963 (alphabsd-nat.o): New dependency list.
7964
36012033
JT
79652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7966
7967 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7968 alphafbsd-tdep.c.
7969 (alpha-linux-tdep.o): New dependency list.
7970 (alphafbsd-tdep.o): Likewise.
7971
3379287a
JT
79722002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7975 to here...
7976 * alpha-tdep.c: ...from here.
7977 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7978
4bcbd6cb
JT
79792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7980
7981 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7982 prototype from here...
7983 * alpha-tdep.h: ...to here.
7984
b31da25e
AC
79852002-04-21 Andrew Cagney <ac131313@redhat.com>
7986
7987 * frame.h (selected_frame_level): Document as deprecated.
7988 (frame_relative_level): Declare.
7989 * stack.c (frame_relative_level): New function.
7990 (selected_frame_level): Document as deprecated.
7991 (select_frame): Do not set the selected_frame_level.
7992
7993 * stack.c (frame_info, record_selected_frame): Update.
7994 (frame_command, current_frame_command): Update.
7995 (up_silently_base, up_command, down_silently_base): Update.
7996 (down_command): Update.
7997 * inflow.c (kill_command): Update.
7998 * tracepoint.c (finish_tfind_command): Update.
7999 * corelow.c (core_open): Update.
8000 * thread.c (info_threads_command): Update.
8001 (do_captured_thread_select): Update.
8002 * infcmd.c (finish_command): Update.
8003 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8004
9c1d6fe5
JT
80052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8006
8007 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8008
ab89facf
AC
80092002-04-21 Andrew Cagney <ac131313@redhat.com>
8010
8011 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8012 type const.
8013
82a4efa1
JT
80142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8015
8016 * alphafbsd-tdep.c: Update copyright years. Include
8017 alpha-tdep.h.
8018 (alphafbsd_use_struct_convention): Make static.
8019 (alphafbsd_init_abi): New function.
8020 (_initialize_alphafbsd_tdep): New function.
8021 * config/alpha/tm-fbsd.h: Update copyright years.
8022 (USE_STRUCT_CONVENTION): Remove.
8023
44dffaac
JT
80242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8027 an Alpha ABI variant.
8028 (alpha_abi_handler_list): Declare.
8029 (alpha_gdbarch_register_os_abi): New function.
8030 (alpha_gdbarch_init): Give registered ABI variant handlers a
8031 chance to tweak the gdbarch once we have set up defaults.
8032 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8033
65585be4
JT
80342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8035
8036 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8037 to standard_coerce_float_to_double.
8038 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8039
d9b023cc
JT
80402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8041
8042 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8043 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8044 from gdbarch_tdep rather than a constant.
8045 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8046 the default text address for all Alpha Unix ABIs.
8047 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8048 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8049
dc129d82
JT
80502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8051
8052 * alpha-tdep.h: New file. Includes several Alpha target constants
8053 taken from...
8054 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8055 let gdbarch deal with.
8056 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8057 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8058 to dependency list.
8059 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8060 Alpha target register names.
8061 * alphabsd-nat.c: Likewise.
8062 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8063 Alpha target register names. Make serveral routines static.
8064 (alpha_get_saved_register): New function.
8065 (alpha_abi_names): New.
8066 (process_note_abi_tag_sections): New function.
8067 (get_elfosabi): New function.
8068 (alpha_gdbarch_init): New function.
8069 (alpha_dump_tdep): New function.
8070 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8071
d49d1e0a
AC
80722002-04-21 Andrew Cagney <ac131313@redhat.com>
8073
8074 * frame.c (find_saved_register): Delete #ifdef
8075 HAVE_REGISTER_WINDOWS code.
8076 * config/sparc/tm-sparc.h: Update comments.
8077 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8078
92e8c9ed
AC
80792002-04-21 Andrew Cagney <ac131313@redhat.com>
8080
8081 * i960-tdep.c (i960_find_saved_register): New function.
8082 (i960_get_saved_register): New function.
8083 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8084 (i960_get_saved_register): Declare.
8085 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8086
e1925118
DM
80872002-04-20 David S. Miller <davem@redhat.com>
8088
8089 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8090
29673b29
AC
80912002-04-20 Andrew Cagney <ac131313@redhat.com>
8092
8093 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8094 instead of NUM_PSEUDO_REGS.
8095
6c86dcd5
DM
80962002-04-20 David S. Miller <davem@redhat.com>
8097
8098 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8099 GDB_MULTI_ARCH_PARTIAL
8100 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8101 define, let tm-sp64.h do it.
8102
aa40ec90
JT
81032002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8104
8105 * frame.c (find_saved_register): Avoid a NULL pointer
8106 dereference and actually walk the frame list.
8107
0f79675b
AC
81082002-04-20 Andrew Cagney <ac131313@redhat.com>
8109
8110 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8111 sorted in most most-recent-used order. Document.
8112 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8113
f91305dd 81142002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8115
8116 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8117 instead of ->prev.
8118 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8119 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8120 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8121 instead of ->prev.
8122
73d322b1
EZ
81232002-04-19 Elena Zannoni <ezannoni@redhat.com>
8124
8125 Fix PR gdb/471.
8126 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8127 (build_builtin_type_vec128): Ditto.
8128 (append_composite_type_field): Fix calculation of type length in
8129 union case.
8130
ccd9a834
EZ
81312002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8132
8133 * config/djgpp/README: Update.
8134
8135 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8136 compiler warnings.
8137
a57f9e49
JT
81382002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8139
8140 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8141 (alpha_setup_arbitrary_frame): ...to this.
8142 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8143 for alpha_setup_arbitrary_frame.
8144
f4f9705a
AC
81452002-04-18 Andrew Cagney <cagney@redhat.com>
8146
8147 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8148 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8149
f4f9705a
AC
8150 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8151 * target.h (memory_breakpoint_from_pc): Update declaration.
8152 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8153
8154 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8155 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8156 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8157 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8158 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8159 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8160 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8161 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8162 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8163 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8164 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8165 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8166
8167 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8168 const pointer.
8169 * monitor.c (monitor_insert_breakpoint): Ditto.
8170 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8171
8172 * config/mcore/tm-mcore.h: Update copyright.
8173 * mem-break.c: Ditto.
8174 * xstormy16-tdep.c: Ditto.
8175
29f319b8
PM
81762002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8177
8178 * p-exp.y: Add precedence rule for '^' token.
8179 This removes the shift/reduce conflicts.
8180 Remove the comment concerning these shift/reduce conflicts.
8181
ebeac11a
EZ
81822002-04-18 Elena Zannoni <ezannoni@redhat.com>
8183
8184 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8185 (registers_powerpc_nofp): New register set for processors
8186 without floating point unit.
8187
27c31547
DM
81882002-04-18 David S. Miller <davem@redhat.com>
8189
8190 * MAINTAINERS: Add myself to write-after-approval.
8191
47a73475
MS
81922002-04-17 Michael Snyder <msnyder@redhat.com>
8193
8194 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8195
953836b2
AC
81962002-04-17 Andrew Cagney <ac131313@redhat.com>
8197
8198 * rs6000-tdep.c (frame_initial_stack_address): Use
8199 frame_register_read to read the alloca_reg.
8200
8b0d4340
AC
82012002-04-17 Andrew Cagney <ac131313@redhat.com>
8202
8203 * frame.c (find_saved_register): Find saved registers in the next
8204 not prev frame.
8205 Fix PR gdb/365.
8206
d8864532
AC
82072002-04-17 Andrew Cagney <ac131313@redhat.com>
8208
8209 * gdbarch.sh (LANG): Set to ``c''.
8210
36cc83a3 82112002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8212
36cc83a3 8213 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8214
2f4150cc 82152002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8216
8217 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8218 Update copyright.
8219
628703c6 8220 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8221 Also fix PR gdb/391.
361d1df0 8222
56157b4a
AC
82232002-04-14 Andrew Cagney <ac131313@redhat.com>
8224
8225 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8226 * aclocal.m4, configure: Re-generate.
8227 Fix PR gdb/391.
361d1df0 8228
6d1e3329
EZ
82292002-04-14 Elena Zannoni <ezannoni@redhat.com>
8230
8231 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8232 instead of tm_print_insn.
8233
cb06fa07
EZ
82342002-04-14 Elena Zannoni <ezannoni@redhat.com>
8235
8236 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8237
f208ba17
AC
82382002-04-14 Andrew Cagney <ac131313@redhat.com>
8239
8240 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8241 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8242 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8243
20f01a46
DH
82442002-04-12 Don Howard <dhoward@redhat.com>
8245
8246 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8247 max_user_call_depth.
8248 (init_cmd_lists): Initialize the new value;
8249 * cli/cli-script.c (execute_user_command): Limit the call depth of
8250 user defined commands. This avoids a core-dump when user commands
8251 are infinitly recursive.
8252
a88376a3
KB
82532002-04-12 Kevin Buettner <kevinb@redhat.com>
8254
8255 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8256 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8257 from tdep struct instead of DEFAULT_LR_SAVE.
8258 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8259 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8260 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8261
f2172603
MS
82622002-04-12 Michael Snyder <msnyder@redhat.com>
8263
694f61fb 8264 * Remote.c: Spelling fix.
20fe79c8
MS
8265 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8266 If no symbol found for "sbrk", try "_sbrk".
8267 (make_output_phdrs): Use bfd_section_name.
8268 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8269 * eval.c: Indentation fix-ups.
169a7369
MS
8270 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8271 in case it gets applied to an address that is already
8272 in the instruction space.
de74f71f
MS
8273 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8274 * symfile.c: Fix indentation, long lines.
f2172603
MS
8275 * source.c: White space fix-up.
8276
cda5a58a
AC
82772002-04-12 Andrew Cagney <cagney@redhat.com>
8278
8279 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8280 * frame.c (frame_register_read): New function. Return non-zero on
8281 success.
8282 (read_relative_register_raw_bytes_for_frame): Delete.
8283 (read_relative_register_raw_bytes): Delete.
8284 * frame.h (frame_register_read): Declare.
8285 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8286 * sh-tdep.c: Ditto.
8287 * infcmd.c (do_registers_info): Ditto.
8288 * hppa-tdep.c: Ditto.
8289 * rs6000-tdep.c: Ditto.
8290 * h8500-tdep.c: Ditto.
8291 * mips-tdep.c: Ditto.
8292 * h8300-tdep.c: Ditto.
8293 * z8k-tdep.c: Ditto.
8294
2ea5f656
KB
82952002-04-12 Kevin Buettner <kevinb@redhat.com>
8296
8297 From Jimi X <jimix@watson.ibm.com>:
8298 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8299 64-bit SysV ABI.
8300
27b15785
KB
83012002-04-12 Kevin Buettner <kevinb@redhat.com>
8302
8303 From Jimi X <jimix@watson.ibm.com>:
8304 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8305 bfd info.
8306
5d57ee30
KB
83072002-04-12 Kevin Buettner <kevinb@redhat.com>
8308
8309 From Jimi X <jimix@watson.ibm.com>:
8310 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8311 register sets for these processor variants.
8312
bc1e36ca
DJ
83132002-04-11 Daniel Jacobowitz <drow@mvista.com>
8314
bc1e36ca
DJ
8315 * regformats/reg-ppc.dat: Support FPSCR.
8316
e3f36dbd
KB
83172002-04-11 Kevin Buettner <kevinb@redhat.com>
8318
8319 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8320 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8321 Add fpscr as an invalid/unfetchable register.
8322 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8323 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8324 (fill_fpregset): Add support for register fpscr.
8325 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8326 (fill_gregset): Account for the fact that register ``mq'' might
8327 not exist.
8328 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8329 (registers_power): Add fpscr to register set at slot 71.
8330 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8331 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8332
943c9c25
MS
83332002-04-11 Michael Snyder <msnyder@redhat.com>
8334
8335 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8336 * configure: Regenerate.
8337 * config.in: Regenerate.
8338 * acconfig.h: Add define for _SYSCALL32.
8339 * core-sol2.c: Remove #define _SYSCALL32.
8340 * solib-legacy.c: Remove #define _SYSCALL32.
8341
d8c0a2e7
AC
83422002-04-10 Andrew Cagney <ac131313@redhat.com>
8343
8344 * stack.c (select_frame): Cleanup internal error message, do not
8345 use %p.
8346
7cc19214
AC
83472002-04-10 Andrew Cagney <ac131313@redhat.com>
8348
8349 * stack.c (select_frame): Check that selected_frame and the
8350 specified level are as expected.
8351 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8352 Update copyright.
8353 * frame.h (struct frame_info): Add field `level'. Update
8354 copyright.
8355 Work-in-progress PR gdb/464.
8356
67a2b77e
AC
83572002-04-10 Andrew Cagney <ac131313@redhat.com>
8358
8359 * maint.c (maint_print_section_info): Rename print_section_info.
8360 (print_bfd_section_info, print_objfile_section_info): Update.
8361 * inferior.h (struct gdbarch): Add opaque declaration.
8362 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8363 * gdbarch.h: Regenerate.
8364
8cfda98c
ML
83652002-04-10 Michal Ludvig <mludvig@suse.cz>
8366
8367 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8368 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8369 (kernel_u_size): Added.
8370 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8371 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8372
ca439ad2 83732002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8374
ca439ad2
JI
8375 * valarith.c (find_size_for_pointer_math): New function, either returns
8376 the size for a pointer's target, returns 1 for void *, or errors for
8377 incomplete types.
8378 (value_add, value_sub): use find_size_for_pointer_math.
8379
2f2893d9
DJ
83802002-04-09 Daniel Jacobowitz <drow@mvista.com>
8381
8382 * linux-low.c (linux_look_up_symbols): New hook.
8383 (linux_target_ops): Add linux_look_up_symbols.
8384 * remote-utils.c (decode_address): New function.
8385 (look_up_one_symbol): New function.
8386 * server.c (handle_query): Call target look_up_symbols hook.
8387 * server.h (look_up_one_symbol): Add prototype.
8388 * target.h (struct target_ops): Add look_up_symbols hook.
8389
96cb11df
AC
83902002-04-09 Andrew Cagney <ac131313@redhat.com>
8391
8392 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8393 override FP_REGNUM with frame->fp. Update copyright.
8394 * parse.c (num_std_regs, std_regs): Delete.
8395 (target_map_name_to_register): Do not search std_regs. Update
8396 function description.
8397 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8398 declarations. Update copyright.
8399 Fix PR gdb/251.
361d1df0 8400
97658e92
DJ
84012002-04-09 Daniel Jacobowitz <drow@mvista.com>
8402
8403 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8404 after the last symbol in a block.
8405
6044e3eb
PM
84062002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8407
8408 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8409 is non zero as a found symbol.
8410
0406ec40
AC
84112002-04-08 Andrew Cagney <ac131313@redhat.com>
8412
8413 * findvar.c: Include "builtin-regs.h".
8414 (value_of_register): Call value_of_builtin_reg when applicable.
8415 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8416 (target_map_name_to_register): Call
8417 builtin_reg_map_name_to_regnum.
8418 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8419 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8420 (builtin_regs_h): Define.
8421 (builtin-regs.o): New target.
8422 (findvar.o): Add $(builtin_regs_h).
8423 * builtin-regs.c, builtin-regs.h: New files.
8424 * std-regs.c: New file.
8425 Partial fix for PR gdb/251.
8426
56a6dfb9
KB
84272002-04-08 Kevin Buettner <kevinb@redhat.com>
8428
8429 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8430 it's no longer required.
8431
3a808432
AC
84322002-04-08 Andrew Cagney <ac131313@redhat.com>
8433
8434 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8435
7c40d541
KB
84362002-04-08 Kevin Buettner <kevinb@redhat.com>
8437
8438 From Jimi X <jimix@watson.ibm.com>:
8439 * rs6000-tdep.c (rs6000_software_single_step): Use
8440 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8441 and size. Use target_insert_breakpoint() and
8442 target_remove_breakpoint() to insert and remove breakpoints
8443 instead of explicit memory reads and writes.
8444
cc9836a8
KB
84452002-04-08 Kevin Buettner <kevinb@redhat.com>
8446
8447 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8448 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8449 ELF_OBJECT_FORMAT ifdef.
8450
7495d1dc
KB
84512002-04-08 Kevin Buettner <kevinb@redhat.com>
8452
8453 From Jimi X <jimix@watson.ibm.com>:
8454 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8455
4288e836
KB
84562002-04-08 Kevin Buettner <kevinb@redhat.com>
8457
8458 From Jimi X <jimix@watson.ibm.com>:
8459 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8460 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8461
a4e4e501
MK
84622002-04-07 Mark Kettenis <kettenis@gnu.org>
8463
8464 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8465 s/asprintf/xasprintf/.
8466 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8467
006defba
AC
84682002-04-07 Andrew Cagney <ac131313@redhat.com>
8469
8470 I believe Jeff Law denies responsability for this one:
8471 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8472 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8473 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8474 Work-around for PR gdb/366.
8475
7aa83cac
EZ
84762002-04-07 Elena Zannoni <ezannoni@redhat.com>
8477
8478 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8479 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8480 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8481
cf1fcca1
EZ
84822002-04-07 Elena Zannoni <ezannoni@redhat.com>
8483
8484 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8485 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8486 information.
8487
3f289e6f
AC
84882002-04-07 Andrew Cagney <ac131313@redhat.com>
8489
8490 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8491 maintainer.
8492
129188f6
AC
84932002-04-07 Andrew Cagney <ac131313@redhat.com>
8494
8495 * README (Reporting Bugs in GDB): Document the bug web page as the
8496 prefered way of submitting bugs.
8497 Fix PR gdb/402.
8498
1200cd6e
AC
84992002-04-06 Andrew Cagney <ac131313@redhat.com>
8500
8501 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8502 -1. Update comment.
8503 * gdbarch.h, gdbarch.c: Re-generate.
8504
2853c33c
AS
85052002-04-07 Andreas Schwab <schwab@suse.de>
8506
8507 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8508 buffer to regcache_collect.
8509
c2169756
AC
85102002-04-06 Andrew Cagney <ac131313@redhat.com>
8511
8512 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8513 * gdbarch.c, gdbarch.h: Re-generate.
8514
25f1b008
AC
85152002-04-06 Andrew Cagney <ac131313@redhat.com>
8516
8517 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8518 declaration. Fix -Werror.
8519
59263426
DJ
85202002-04-05 Daniel Jacobowitz <drow@mvista.com>
8521
8522 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8523 * gdbarch.c: Regenerate.
8524
f5db4da3
MS
85252002-04-05 Michael Snyder <msnyder@redhat.com>
8526
80f8a6eb
MS
8527 * breakpoint.c (clear_command): Rewrite middle section to
8528 combine two loops with identical control conditions.
8529 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8530 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8531
ad3dcc5c
L
85322002-04-05 H.J. Lu (hjl@gnu.org)
8533
8534 * solib-svr4.c (bkpt_names): Add "__start".
8535
f32e7a74
AC
85362002-04-04 Andrew Cagney <ac131313@redhat.com>
8537
8538 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8539 as test for 64 bit target.
8540
8227c0ff
AC
85412002-04-05 Andrew Cagney <ac131313@redhat.com>
8542
8543 * h8500-tdep.c (h8500_write_fp): Delete function.
8544 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8545 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8546 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8548 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8549 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8550 (s390_write_fp):
8551 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8552 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8553 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8554 (d10v_write_fp): Delete function.
8555 * inferior.h (write_fp, generic_target_write_fp): Delete
8556 declarations.
8557 * regcache.c (generic_target_write_fp): Delete function.
8558 (write_fp): Delete function.
8559 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8560 * gdbarch.h, gdbarch.c: Regenerate.
8561 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8562 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8563 (sparc64_write_fp): Delete declaration.
8564 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8565 (h8500_write_fp): Delete declaration.
8566
2757dd86
AC
85672002-04-04 Andrew Cagney <ac131313@redhat.com>
8568
8569 * sparc-tdep.c (sparc64_write_fp): Delete.
8570 (sparc_push_dummy_frame): Replace write_fp call with code to store
8571 the FP directly.
8572 (sparc_gdbarch_init): Do not initialize write_fp.
8573
c69255e1
KB
85742002-04-05 Kevin Buettner <kevinb@redhat.com>
8575
8576 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8577 clause.
8578
ae767bfb
JB
85792002-03-29 Jim Blandy <jimb@redhat.com>
8580
8581 * stack.c (get_selected_block): Add new argument `addr_in_block',
8582 used to return the exact code address we used to select the block,
8583 not just the block.
8584 * blockframe.c (get_frame_block, get_current_block): Same.
8585 * frame.h (get_frame_block, get_current_block,
8586 get_selected_block): Update declarations.
8587 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8588 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8589
84d2ac95
MS
85902002-04-05 Michael Snyder <msnyder@redhat.com>
8591
8592 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8593 warning message.
8594
596aa3bf
JB
85952002-04-05 J. Brobecker <brobecker@gnat.com>
8596
8597 * utils.c (xfullpath): New function.
8598 * defs.h (xfullpath): Add declaration.
8599 * source.c (openp): Use xfullpath in place of gdb_realpath to
8600 avoid resolving the basename part of filenames when the
8601 associated file is a symbolic link. This fixes a potential
8602 inconsistency between the filenames known to GDB and the
8603 filenames it prints in the annotations.
8604 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8605 to be able to match a filename with either the real filename, or
8606 the name of any symbolic link to this file.
8607 (lookup_partial_symtab): Ditto.
8608
c02f5703
MS
86092002-04-04 Michael Snyder <msnyder@redhat.com>
8610
8611 * breakpoint.c: Add support for hardware breakpoints in overlays.
8612 (overlay_events_enabled): New state variable.
8613 (insert_breakpoints): Use overlay_events_enabled to decide
8614 whether to attempt to set a breakpoint at the overlay load addr.
8615 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8616 (remove_breakpoint): Use overlay_events_enabled to decide
8617 whether breakpoints need to be removed from overlay load addr.
8618 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8619 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8620 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8621 disable_overlay_breakpoints): Update overlay_events_enabled.
8622
5fb290d7
DJ
86232002-04-04 Daniel Jacobowitz <drow@mvista.com>
8624
8625 * dwarf2read.c (struct function_range): New.
8626 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8627 (check_cu_functions): New.
8628 (read_file_scope): Initialize global function lists.
8629 Call dwarf_decode_line after processing children.
8630 (read_func_scope): Add to global function list.
8631 (dwarf_decode_lines): Call check_cu_functions everywhere
8632 record_line is called. Call record_line with a linenumber
8633 of 0 to mark sequence ends.
8634
7b3fabf0
ML
86352002-04-04 Michal Ludvig <mludvig@suse.cz>
8636
361d1df0 8637 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8638 change sync with glibc.
8639
bce58c09
JB
86402002-04-03 Jim Blandy <jimb@redhat.com>
8641
8642 * configure.in: Call AC_C_INLINE.
8643 * configure: Regenerated.
361d1df0 8644
2fccf04a
DJ
86452002-04-01 Daniel Jacobowitz <drow@mvista.com>
8646
8647 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8648 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8649
2d1bfe2e
MK
86502002-03-31 Mark Kettenis <kettenis@gnu.org>
8651
a5941fbf
MK
8652 * NEWS: Mention gcore support on FreeBSD/i386.
8653
a90cd31d
MK
8654 * fbsd-proc.c: New file.
8655 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8656 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8657
2d1bfe2e
MK
8658 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8659 while statement.
8660
9eb6e5a1
JB
86612002-03-29 Jim Blandy <jimb@redhat.com>
8662
8663 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8664 unescaped newlines in string literals, but newer ones don't. So
8665 escape them.
8666
f02df580
MS
86672002-03-26 Michael Snyder <msnyder@redhat.com>
8668 Andrew Cagney <cagney@redhat.com>
8669
361d1df0 8670 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8671 restore file to memory.
8672 * cli/cli-dump.h: New file.
8673 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8674 * NEWS: Mention new commands.
f02df580 8675
109f874e
MS
86762002-03-28 Michael Snyder <msnyder@redhat.com>
8677
8678 * symfile.c (symbol_file_add): Move test for null symbols to later.
8679
520f6ade
AC
86802002-03-27 Andrew Cagney <ac131313@redhat.com>
8681
8682 From veksler at il.ibm.com:
8683 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8684 the xstrduped original path.
8685 Fix PR gdb/417.
8686
d4654627
MS
86872002-03-27 Michael Snyder <msnyder@redhat.com>
8688
8689 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8690 * infcmd.c (_initialize_infcmd): Ditto.
8691 * language.c (_initialize_language): Ditto.
8692 * symfile.c (_initialize_symfile): Ditto.
8693 * top.c (_init_main): Ditto.
8694 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8695
6be8bc0c
EZ
86962002-03-27 Elena Zannoni <ezannoni@redhat.com>
8697
8698 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8699 vector registers handling.
8700 (skip_prologue): Handle new AltiVec instructions. Fill in new
8701 fields of frame data.
8702 (frame_get_saved_regs): Fill in information for AltiVec registers.
8703
12af6855
JB
87042002-03-27 Jim Blandy <jimb@redhat.com>
8705
8706 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8707 a function; leave this macro here to invoke that function.
8708 (symbol_init_mangled_name): Declaration for that function.
8709 * symtab.c (symbol_init_mangled_name): New function.
8710
dc672865
AC
87112002-03-27 Andrew Cagney <ac131313@redhat.com>
8712
8713 * valarith.c: Replace strerror with safe_strerror.
8714 * tracepoint.c: Ditto.
8715 * lin-lwp.c: Ditto.
8716 * go32-nat.c: Ditto.
8717 * inflow.c: Ditto.
8718 * gnu-nat.c: Ditto.
8719
d96429cd
AS
87202002-03-27 Andreas Schwab <schwab@suse.de>
8721
8722 * event-top.c (command_line_handler): Remove useless if.
8723
7e336ba1
AJ
87242002-03-27 Andreas Jaeger <aj@suse.de>
8725
8726 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8727 comment.
8728
de220d0f
ML
87292002-03-27 Michal Ludvig <mludvig@suse.cz>
8730
8731 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8732 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8733 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8734 (x86_64_linux_dr_get_status, supply_gregset),
8735 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8736 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8737 (x86_64_register_info_table): Add.
8738 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8739 (x86_64_register_raw_size, x86_64_register_virtual_type),
8740 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8741 general x86_64_register_info_table.
8742 (i386_gdbarch_init): gdbarch_register_bytes is now set
8743 dynamicaly during initialization.
8744 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8745 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8746
0e98d0a7
DJ
87472002-03-27 Daniel Jacobowitz <drow@mvista.com>
8748
8749 * gdbserver/server.c (main): Call target_signal_to_host_p
8750 and target_signal_to_host on signals received from the remote.
8751 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8752 target_signal_from_host on signals sent to the remote.
8753 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8754 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8755
3130066b
DJ
87562002-03-27 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * signals/signals.c: Include "server.h" in gdbserver build.
8759 (target_signal_from_name): Don't use STREQ.
8760 (_initialize_signals): Likewise. Don't include function in
8761 gdbserver build.
8762
9aedf4f4
DJ
87632002-03-27 Daniel Jacobowitz <drow@mvista.com>
8764
8765 * signals.c: Moved to...
8766 * signals/signals.c: Here.
7e336ba1 8767 * Makefile (signals.o): Update.
9aedf4f4 8768
3fa41cdb
JL
87692002-03-26 Jeff Law (law@redhat.com)
8770
8771 * somread.c (som_symtab_read): Remove some commented out code and
8772 updated related comments. Do not set the minimal symbol table to
8773 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8774 in a dynamic executable.
8775 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8776 where we are unable to find the minimal symbol for the given
8777 PC value.
8778
ee677e8d
MS
87792002-03-25 Jeff Law (law@redhat.com)
8780
8781 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8782
e76e1718
ML
87832002-03-25 Michal Ludvig <mludvig@suse.cz>
8784
8785 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8786
18a642a1
AC
87872002-03-23 Andrew Cagney <ac131313@redhat.com>
8788
8789 * command.h: Update copyright.
8790 (struct cmd_list_element): Replace definition with opaque
8791 declaration.
8792 (enum cmd_types): Document that it will eventually be moved to
8793 cli/cli-decode.h
8794 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8795 (MALLOCED_REPLACEMENT): Delete macro.
8796 * Makefile.in (cli_decode_h): Add $(command_h).
8797 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8798 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8799 * completer.c: Include "cli/cli-decode.h".
8800 * maint.c: Include "cli/cli-decode.h".
8801 * cli/cli-decode.h: Include "command.h".
8802 (enum command_class): Delete.
8803 (enum cmd_types): Comment out.
8804 (enum cmd_auto_boolean): Delete.
8805 (enum var_types): Delete.
8806
b2875cc0
AC
88072002-03-23 Andrew Cagney <ac131313@redhat.com>
8808
8809 * cli/cli-decode.c: Include "gdb_assert.h".
8810 (add_set_or_show_cmd): New static function.
8811 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8812 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8813 all fields, such as func, from the set command.
8814
3b45974e
AC
88152002-03-23 Andrew Cagney <ac131313@redhat.com>
8816
8817 * MAINTAINERS (sh-elf): Change warning flag to -w.
8818
823ca731
AC
88192002-03-23 Andrew Cagney <cagney@redhat.com>
8820
8821 * defs.h (error): Add printf format attribute.
8822 * thread-db.c (thread_from_lwp): Fix error format string.
8823 * stack.c (parse_frame_specification): Ditto.
8824 * cli/cli-decode.c (undef_cmd_error): Ditto.
8825 * scm-lang.c (scm_lookup_name): Ditto.
8826 * tracepoint.c (trace_error): Ditto.
8827 * remote-utils.c (usage): Ditto.
8828 * remote.c (compare_sections_command): Ditto.
8829 Fix PR gdb/328.
8830
0e101458
AC
88312002-03-22 Andrew Cagney <ac131313@redhat.com>
8832
8833 * gdbtypes.c (append_composite_type_field): New function.
8834 (init_composite_type): New function.
8835 * gdbtypes.h (append_composite_type_field): Declare.
8836 (init_composite_type): Ditto.
8837
8e0662df
EZ
88382002-03-22 Elena Zannoni <ezannoni@redhat.com>
8839
8840 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8841 function.
8e0662df
EZ
8842 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8843 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8844 structure returning convention for SYSV ABI case, but not
8845 for GNU/Linux, FreeBSD, or NetBSD.
8846
3121eff0
DJ
88472002-03-22 Daniel Jacobowitz <drow@mvista.com>
8848
8849 * symtab.h (lookup_block_symbol): Add mangled_name argument
8850 to prototype.
8851
8852 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8853 with new mangled_name argument.
8854 * linespec.c (decode_line_1): Likewise.
8855 * valops (value_of_this): Likewise.
8856 * symtab.c (lookup_transparent_type): Likewise.
8857 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8858 (lookup_symbol): If we are given a mangled name, pass it down
8859 to lookup_symbol_aux.
8860 (lookup_block_symbol): If we are given a mangled name to check
8861 against, only return symbols which match it.
8862
349b409f
CF
88632002-03-22 Christopher Faylor <cgf@redhat.com>
8864
8865 * win32-nat.c (child_create_inferior): Check for proper shell to use
8866 here, in case the user changes it on the fly.
8867 (_initialize_inftarg): Remove shell path considerations.
8868
2a873819
EZ
88692002-03-21 Elena Zannoni <ezannoni@redhat.com>
8870
8871 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8872 for gdbarch_max_register_raw_size and max_register_virtual_size.
8873 Adjust copyright year.
8874
a1b9830c
DJ
88752002-03-21 Daniel Jacobowitz <drow@mvista.com>
8876
8877 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8878 in a function to cover the entire beginning of the function
8879 as well if it does not already.
8880
8b5790f2
TR
88812002-03-21 Tom Rix <trix@redhat.com>
8882
8883 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8884 (rs6000_ptrace64): Renamed from ptrace64.
8885
bdbe5747
MH
88862002-03-20 Martin M. Hunt <hunt@redhat.com>
8887
8888 * gdbserver/remote-utils.c (remote_open): Don't call
8889 getprotobyname, we're all using TCP here so just use
8890 IPPROTO_TCP.
7e336ba1 8891 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8892
88932002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8894
bdbe5747
MH
8895 * regcache.c (_initialize_regcache): No need to call
8896 build_regcache() at this time; it gets called whenever
8897 the gdbarch changes.
8898
7781cd62
DB
88992002-03-20 David O'Brien <obrien@FreeBSD.org>
8900
8901 * sparc-nat.c: Include sys/param.h where possible.
8902
f65ca430
DJ
89032002-03-20 Daniel Jacobowitz <drow@mvista.com>
8904
8905 Fix PR gdb/422.
8906 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8907 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8908 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8909 complex types.
8910 * stabsread.c (rs6000_builtin_type): Likewise.
8911 (read_sun_floating_type): Likewise.
8912
0c867556
PS
89132002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8914
8915 * stabsread.c (read_member_functions): Remove skip code for duplicate
8916 constructor/destructor methods. Use standard parsing for these
8917 methods and just do not chain them to the list of methods after
8918 parsing.
8919
12b9c64f
AO
89202002-03-19 Alexandre Oliva <aoliva@redhat.com>
8921
8922 * coffread.c: Remove redundant static declarations. Replace
8923 occurrences of `PTR' with `void *'.
8924 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8925 * top.h (quit_cover): Likewise.
8926 * defs.h (catch_errors): Likewise.
8927
349c5d5f
AC
89282002-03-18 Andrew Cagney <ac131313@redhat.com>
8929
8930 * defs.h (XMALLOC): Define.
8931 * gdb-events.sh (XMALLOC): Delete macro.
8932 * gdb-events.c, gdb-events.h: Regenerate.
8933 * gdbarch.sh (XMALLOC): Delete macro.
8934 * gdbarch.c: Regenerate.
8935 * serial.c (XMALLOC): Delete macro.
8936 * ui-file.c (XMALLOC): Ditto.
8937 * ser-unix.h (XMALLOC): Ditto.
8938 * sh-tdep.c (XMALLOC): Ditto.
8939 * ui-out.c (XMALLOC): Ditto.
8940 * utils.c (XMALLOC): Ditto.
8941 * i386-tdep.c (XMALLOC): Ditto.
8942 * gdb-events.c (XMALLOC): Ditto.
8943 * d10v-tdep.c (XMALLOC): Ditto.
8944 * cli-out.c (XMALLOC): Ditto.
8945
8946 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8947 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8948 * ui-file.c, ui-out.c: Ditto.
8949
7d0766f3
AC
89502002-03-18 Andrew Cagney <ac131313@redhat.com>
8951
8952 * command.h (struct cmd_list_element): Add field context.
8953 (set_cmd_context, get_cmd_context): Declare.
8954 * cli/cli-decode.h: Ditto.
8955 * cli/cli-decode.c (get_cmd_context): New function.
8956 (set_cmd_context): New function.
8957 (add_cmd): Initialize context.
8958 Part of fixing PR gdb/145 and PR gdb/146.
8959
5913bcb0
AC
89602002-03-17 Andrew Cagney <ac131313@redhat.com>
8961
1868c04e
AC
8962 * cli/cli-decode.c (cmd_type): New function.
8963 * command.h (cmd_type): Declare.
8964 * infrun.c (set_schedlock_func): Call function cmd_type.
8965 * kod.c (kod_set_os): Call cmd_type.
8966 * cris-tdep.c (cris_version_update): Use function cmd_type.
8967 (cris_mode_update, cris_abi_update): Ditto.
8968
5913bcb0
AC
8969 * command.h: (execute_cmd_post_hook): Declare.
8970 (execute_cmd_pre_hook): Declare.
8971 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8972 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8973 functions. Execute pre/post hook while ensuring that afterwords
8974 hook_in is cleared.
8975 * top.c (execute_command): Use execute_cmd_post_hook, and
8976 execute_cmd_pre_hook to execute pre/post commands.
8977 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8978 hook_stop_stub.
8979 (hook_stop_stub): Call execute_cmd_pre_hook.
8980
b51450c9
AC
89812002-03-17 Andrew Cagney <ac131313@redhat.com>
8982
8983 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8984 set'' and this leads to a core dump. Move xstrdup of
8985 operating_system to after check that it is not NULL.
8986
f66c9f11
AC
89872002-03-17 Andrew Cagney <ac131313@redhat.com>
8988
8e694ecf
AC
8989 * kod.c (kod_set_os): Remove unnecessary check that
8990 ``command->type'' is set_cmd.
8991
f66c9f11
AC
8992 * valprint.c (set_input_radix): Use input_radix.
8993 (set_output_radix): Use output_radix.
8994 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8995 isn't reverted.
8996
9d01611c
AC
89972002-03-16 Andrew Cagney <ac131313@redhat.com>
8998
8999 * value.h (struct value): Delete field ``substring_addr''. Change
9000 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9001 force_core_addr_align and force_pointer_aligh.
9002
9003 * value.h (struct value): Fix typo in above change.
9d01611c 9004
4156bb53
PS
90052002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9006
9007 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9008 to fix internal_error from ``maintenance print architecture''.
9009
0e5e3ea6
PS
90102002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9011
9012 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9013 for gcc versions after gcc-2.8.1.
9014
9b013045
PS
90152002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9016
9017 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9018 for method resolution. Restore adjustment of ``this'' pointer after
9019 calling value_struct_elt, which was accidentally removed during the
9020 HP merge.
9021
376c9600
AC
90222002-03-15 Andrew Cagney <ac131313@redhat.com>
9023
9024 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9025 value_of_register.
9026 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9027 get_saved_register.
9028 * value.h (value_of_register): Update.
9029
a4db0f07
RH
90302002-03-14 Richard Henderson <rth@redhat.com>
9031
9032 * configure.in: Detect declaration for canonicalize_file_name.
9033 * utils.c (canonicalize_file_name): Declare, if needed.
9034 (gdb_realpath): Prefer realpath if available and usable.
9035 * config.in, configure: Rebuild.
9036
96383835
RH
90372002-03-14 Richard Henderson <rth@redhat.com>
9038
9039 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9040 a constant array bound.
9041
9042 * MAINTAINERS: Add myself to write-after-approval.
9043
75245b24
MS
90442002-03-14 Michael Snyder <msnyder@redhat.com>
9045
9046 * symfile.c (syms_from_objfile): Return immediately if no syms.
9047 (symbol_file_add): Return immediately if no syms.
9048 (find_sym_fns): Return immediately if no syms.
9049
e641a1ca
ML
90502002-03-13 Michal Ludvig <mludvig@suse.cz>
9051
9052 * gdbserver/remote-util.c (remote_open): Print remote-side's
9053 IP address when remote debugging over the network.
7e336ba1 9054
df08bfec
DB
90552002-03-12 David O'Brien <obrien@FreeBSD.org>
9056
9057 * config/sparc/fbsd.mh: Fix copyright.
9058 * config/sparc/fbsd.mt: Likewise.
9059
9a57864f
RE
90602002-03-11 Richard Earnshaw <rearnsha@arm.com>
9061
9062 * MAINTAINERS: Fix typo in name of gdb warnings option.
9063 (x86-64): Fix formating so that this can be parsed by awk.
9064
dd7bf85e
DJ
90652002-03-10 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9068 * defs.h: Include "gdb/signals.h".
9069 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9070
33a0a2ac
ML
90712002-03-10 Michal Ludvig <mludvig@suse.cz>
9072
9073 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9074 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9075 from x86-64-tdep.h
9076
dd824b04
DJ
90772002-03-10 Daniel Jacobowitz <drow@mvista.com>
9078 Don Howard <dhoward@redhat.com>
9079
9080 * mips-tdep.c (ST0_FR): Define.
9081 (mips2_fp_compat): New function, temporarily disabled.
9082 (mips_read_fp_register_single): New function.
9083 (mips_read_fp_register_double): New function.
9084 (mips_print_register): Use them.
9085 (do_fp_register_row): Likewise.
9086
6a41ff59
AC
90872002-03-09 Andrew Cagney <ac131313@redhat.com>
9088
9089 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9090 approval''.
9091
4ea09c10
PS
90922002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9093
9094 * stabsread.c (read_member_functions): Fix is_stub test for
9095 static member functions, improve comment.
9096
6ccc741d
RE
90972002-03-07 Richard Earnshaw <rearnsha@arm.com>
9098
9099 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9100 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9101 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9102 commands that set boolean values.
9103 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9104 (arm_rdi_resume): Always initialize PC.
9105 (arm_rdi_open): Don't use rslt as a boolean.
9106 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9107 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9108 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9109 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9110
438013df
AO
91112002-03-06 Alexandre Oliva <aoliva@redhat.com>
9112
9113 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9114 * configure: Rebuilt.
9115
70ed8774
SC
91162002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9117
9118 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9119 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9120
5ba2abeb
AC
91212002-03-06 Andrew Cagney <ac131313@redhat.com>
9122
9123 * cli/cli-decode.c (set_cmd_completer): New function.
9124 * command.h (set_cmd_completer): Declare.
9125 * cli/cli-decode.h (set_cmd_completer): Ditto.
9126
9127 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9128 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9129 * win32-nat.c (_initialize_inftarg): Ditto.
9130 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9131 * proc-api.c (_initialize_proc_api): Ditto.
9132 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9133 * source.c (_initialize_source): Ditto.
9134 * exec.c (_initialize_exec): Ditto.
9135 * solib.c (_initialize_solib): Ditto.
9136 * top.c (init_main): Ditto.
9137 * tracepoint.c (_initialize_tracepoint): Ditto.
9138 * symfile.c (_initialize_symfile): Ditto.
9139 * printcmd.c (_initialize_printcmd): Ditto.
9140 * infcmd.c (_initialize_infcmd): Ditto.
9141 * corefile.c (_initialize_core): Ditto.
9142
f779ca99
AC
91432002-03-05 Andrew Cagney <ac131313@redhat.com>
9144
9145 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9146
01a3934b
AC
91472002-03-05 Andrew Cagney <ac131313@redhat.com>
9148
9149 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9150
37057839
AC
91512002-03-05 Andrew Cagney <ac131313@redhat.com>
9152
9153 * NEWS: Update headings, 5.2 has branched.
9154
c6ecbae5
DJ
91552002-03-04 Daniel Jacobowitz <drow@mvista.com>
9156
9157 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9158 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9159 (register_addr, REGISTER_RAW_SIZE): Likewise.
9160 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9161 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9162
e9f30c21
ML
91632002-03-03 Michal Ludvig <mludvig@suse.cz>
9164
9165 * MAINTAINERS (x86-64): Add myself.
9166 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9167 changed value_ptr -> struct value *
9168
54394ac3
DB
91692002-03-01 David O'Brien <obrien@FreeBSD.org>
9170
9171 * configure.host (sparc64-*-freebsd): Add.
9172 * configure.tgt: Likewise.
9173 * config/sparc/fbsd.mh: New file.
9174 * config/sparc/fbsd.mt: Likewise.
9175 * config/sparc/nm-fbsd.h: Likewise.
9176 * config/sparc/tm-fbsd.h: Likewise.
9177
bfe95955
DJ
91782002-03-01 Daniel Jacobowitz <drow@mvista.com>
9179
9180 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9181 regformats/reg-s390x.dat.
9182
f33c6cbf
AC
91832002-03-01 Andrew Cagney <ac131313@redhat.com>
9184
9185 * utils.c: Add FIXME explaining true/false problem.
9186
5ecaa7dd
AC
91872002-02-28 Andrew Cagney <ac131313@redhat.com>
9188
9189 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9190
2a251cc2
MC
91912002-02-28 Michael Chastain <mec@shout.net>
9192
9193 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9194
6a8031a3 91952002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9196
9197 * gdbserver/linux-s390-low.c: New file.
9198 * regformats/reg-s390.dat: New file.
9199 * regformats/reg-s390x.dat: New file.
9200 * gdbserver/configure.srv: Add S/390.
9201 * gdbserver/Makefile.in: Add S/390.
9202 * configure.tgt: Enable gdbserver for S/390.
9203
ac469903
EZ
92042002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9205
9206 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9207 first line of the doc string for "info dos", except at the end of
9208 the sentence, since the short help stops at the first period.
9209
985cb1a3
JM
92102002-02-28 Jason Merrill <jason@redhat.com>
9211
9212 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9213
c570663e
FF
92142002-02-27 Fred Fish <fnf@redhat.com>
9215
9216 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9217 comment (dumy -> dummy).
9218
43630227
PS
92192002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9220
9221 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9222
b84911e8
RB
92232002-02-27 Rodney Brown <rbrown64@csc.com.au>
9224
9225 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9226
58caa3dc
DJ
92272002-02-27 Daniel Jacobowitz <drow@mvista.com>
9228
9229 * gdbserver/acconfig.h: New file.
9230 * gdbserver/i387-fp.c: New file.
9231 * gdbserver/i387-fp.h: New file.
9232 * gdbserver/linux-x86-64.c: New file.
9233 * regformats/reg-x86-64.dat: New file.
9234 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9235 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9236 * gdbserver/configure.in: Add support for regsets.
9237 * gdbserver/config.in: Regenerate.
9238 * gdbserver/configure: Regenerate.
9239 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9240 * gdbserver/linux-low.h: New file.
9241 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9242 for regsets.
9243 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9244 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9245 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9246 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9247 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9248 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9249 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9250 "i387-fp.h". Add PTRACE_GETREGS and friends.
9251 * gdbserver/regcache.c (supply_register): New function.
9252 (supply_register_by_name): New function.
9253 (collect_register): New function.
9254 (collect_register_by_name): New function.
9255
93652174
DJ
92562002-02-27 Daniel Jacobowitz <drow@mvista.com>
9257
9258 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9259 (config.status): Add configure.srv dependency.
9260 (server_h): Add config.h dependency.
9261
a02e4a61
DJ
92622002-02-27 Daniel Jacobowitz <drow@mvista.com>
9263
9264 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9265 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9266 * gdbserver/configure.srv: Change i386-*-linux* to use
9267 reg-i386-linux.o.
9268
ce0eebec
AC
92692002-02-26 Andrew Cagney <ac131313@redhat.com>
9270
9271 * x86-64-tdep.c: Re-indent. Update copyright date.
9272
82dbc5f7
AC
92732002-02-26 Andrew Cagney <ac131313@redhat.com>
9274
9275 From Michal Ludvig <mludvig@suse.cz>:
9276 * x86-64-tdep.c (value.h): Delete.
9277 (gdb_assert.h): Include.
9278 (x86_64_register_convert_to_virtual,
9279 x86_64_register_convert_to_raw ): Add check which lets only
9280 floating-point values to be converted.
9281 (value_push): Delete.
9282 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9283 (i386_gdbarch_init): Number of register_bytes fixed.
9284
e4621584
AC
92852002-02-26 Andrew Cagney <ac131313@redhat.com>
9286
9287 * MAINTAINERS: Add x86-64 target.
9288
81a9a963
AC
92892002-02-26 Andrew Cagney <ac131313@redhat.com>
9290
9291 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9292 * osfsolib.c (solib_map_sections): Ditto.
9293 * irix5-nat.c (solib_map_sections): Ditto.
9294 * corelow.c (gdb_check_format): Ditto.
9295 * symfile.c (symfile_bfd_open): Ditto.
9296 * solib.c (solib_map_sections): Ditto.
9297 Fix PR gdb/354.
7e336ba1 9298
0f017ab9
AC
92992002-02-26 Andrew Cagney <ac131313@redhat.com>
9300
9301 * remote.c (_initialize_remote): By default, disable ``e'' and
9302 ``E'' step out-of-range packets.
9303
75738c29
AS
93042002-02-26 Andreas Schwab <schwab@suse.de>
9305
9306 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9307 m68k_linux_frame_saved_pc.
9308 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9309 in_sigtramp.
9310 (SIGCONTEXT_PC_OFFSET): Remove.
9311 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9312 m68k_linux_sigtramp_saved_pc): New functions.
9313 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9314 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9315 (UCONTEXT_PC_OFFSET): Define.
9316 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9317 non-RT and RT signal trampolines.
9318
7e8ed687
RE
93192002-02-26 Richard Earnshaw <rearnsha@arm.com>
9320
9321 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9322 (TARGET_NBPG, STACK_END_ADDR): Delete
9323 (VARIABLES_INSIDE_BLOCK): Delete.
9324
6972bc8b
AC
93252002-02-25 Andrew Cagney <ac131313@redhat.com>
9326
9327 * utils.c (perror_with_name): Make string parameter constant.
9328 (print_sys_errmsg): Ditto.
9329 (query): Ditto.
9330 * defs.h (perror_with_name): Update.
9331 (print_sys_errmsg): Update.
9332 (query): Update.
9333
aa32f823
DJ
93342002-02-25 Daniel Jacobowitz <drow@mvista.com>
9335
9336 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9337 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9338
19caaa45
PS
93392002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9340
9341 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9342 if it already matches the current architecture from the exec file.
9343 Include arch-utils.h for gdbarch_info_init prototype.
9344 * Makefile.in (rs6000-nat.o): Update dependencies.
9345
d951901f
EZ
93462002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9347
9348 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9349 list of exported variables.
9350
7ea81414
DJ
93512002-02-24 Daniel Jacobowitz <drow@mvista.com>
9352
9353 * gdbserver/configure.srv: New file.
9354 * gdbserver/configure.in: Use configure.srv instead
9355 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9356 from it.
9357 * gdbserver/configure: Regenerated.
9358 * gdbserver/terminal.h: New file.
9359 * gdbserver/Makefile.in: Update for configure changes. Remove
9360 more unneeded include paths.
9361
080fe24b
AC
93622002-02-24 Andrew Cagney <ac131313@redhat.com>
9363
9364 From wiz at danbala:
9365 * config/sparc/tm-sp64.h: Fix grammar and typos.
9366 Fix PR gdb/287.
9367
8605d56e
AC
93682002-02-24 Andrew Cagney <ac131313@redhat.com>
9369
9370 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9371 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9372 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9373 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9374 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9375 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9376 * s390-tdep.c: Ditto.
92362027
AC
9377 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9378 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9379 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9380 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9381 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9382 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9383 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9384 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9385 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9386 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9387 Fix PR gdb/378.
7e336ba1 9388
8ed32cc0
AC
93892002-02-23 Andrew Cagney <ac131313@redhat.com>
9390
a3007b6f
AC
9391 * lin-thread.c: Delete file.
9392 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9393 to gdb_proc_service.h.
9394 * configure: Re-generate.
9395
50a9e2f1
AC
9396 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9397 * serial.c (serial_open): Delete check for "ocd".
9398 Fix PR gdb/349.
9399
8b6e7932
AC
9400 * Makefile.in (linux-thread.o): Delete target.
9401 * linux-thread.c: Delete file.
9402
d155c46b
AC
9403 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9404 renamed SH files to be consistent.
9405
8ed32cc0
AC
9406 * symtab.c (sort_search_symbols): Use xfree.
9407
0e18d038
RE
94082002-02-23 Richard Earnshaw <rearnsha@arm.com>
9409
9410 * arm-linux-tdep.c (arm_linux_init_abi): Register
9411 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9412 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9413 definition with undef, since we don't want the sysvr4 definition.
9414 (SKIP_TRAMPOLINE_CODE): Likewise.
9415
27aac7ff
AC
94162002-02-23 Andrew Cagney <ac131313@redhat.com>
9417
9418 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9419
9420 * configure.in: (AC_CHECK_FUNCS) Added test for
9421 canonicalize_file_name Regenerated.
9422 * config.in, configure: Regenerated.
9423 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9424 defined use canonicalize_file_name.
7e336ba1 9425
65a6e0ee
MC
94262002-02-23 Michael Chastain <mec@shout.net>
9427
9428 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9429
47b95330
AC
94302002-02-23 Andrew Cagney <ac131313@redhat.com>
9431
9432 * README: Remove references to cygnus.com.
9433 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9434 dot com'' form. Remove references to cygnus.com and sourceware.
9435
696f451b
AC
94362002-02-23 Andrew Cagney <ac131313@redhat.com>
9437
9438 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9439 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9440 1003.1-2001 no longer allows "head -1".
9441 * gdb/Makefile.in (version.c): Likewise.
9442 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9443 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9444 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9445
bbaca940
AC
94462002-02-23 Andrew Cagney <ac131313@redhat.com>
9447
9448 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9449 * command.h (cmd_cfunc_eq): Declare.
9450 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9451
9452 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9453 ``struct cmd_list_element *''.
9454 * cli/cli-cmds.c (is_complete_command): Update. Use
9455 cmd_cfunc_eq.
9456 * top.c (execute_command): Pass the command to
9457 is_complete_command.
9458 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9459
b8b8b047
AC
94602002-02-23 Andrew Cagney <ac131313@redhat.com>
9461
9462 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9463 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9464 architecture defines.
9465 * s390-tdep.c (s390_gdbarch_init): Likewise.
9466
19d3fc80
RE
94672002-02-23 Richard Earnshaw <rearnsha@arm.com>
9468
9469 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9470 (arm_linux_push_arguments): Likewise.
9471 (arm_linux_init_abi): Register them. Also register linux-specific
9472 call_dummy_words.
9473 (find_minsym_and_objfile): Use strcmp, not STREQ.
9474 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9475 (arm_linux_call_dummy_words): Delete declaration.
9476 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9477 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9478 declarations.
9479 (LOWEST_PC): Delete.
9480
3ab13650
PS
94812002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9482
9483 * maint.c (print_section_info): Do not prepend `0x' to filepos
9484 output, it will be handled by local_hex_string_custom.
9485
19d3fc80 94862002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9487
9488 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9489 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9490 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9491
d85a5daf
JB
94922002-02-22 Jim Blandy <jimb@redhat.com>
9493
9494 Indicate that the bcache functions don't change the strings
9495 they're passed.
9496 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9497 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9498
eeb25b8a
PM
94992002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9500
9501 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9502
6badb179
CF
95032002-02-21 Christopher Faylor <cgf@redhat.com>
9504
9505 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9506 find the complete path to a loaded DLL.
9507
e8717518
FF
95082002-02-21 Fred Fish <fnf@redhat.com>
9509
9510 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9511 that marks the end of the range of a function, enter a line number
9512 entry that has a line number of zero and a PC offset that matches
9513 the end of the function. This starts a range of PC's for which no
9514 line number information is known.
9515 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9516 PC's for which no line number info is found (line number is zero)
9517 then we didn't find any valid line information.
9518 * symtab.h: Document use of zero line number entry.
9519
9abe5450
EZ
95202002-02-21 Elena Zannoni <ezannoni@redhat.com>
9521
9522 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9523 (have_ptrace_getvrregs): Define for run time checks.
9524 (gdb_vrregset_t): New type for Altivec register handling.
9525 (fetch_register, store_register): Fetch/store altivec register
9526 when needed.
9527 (fetch_altivec_register, store_altivec_register): New functions.
9528 (supply_vrregset, fill_vrregset): New functions.
9529 (fetch_altivec_registers, store_altivec_registers): New functions.
9530 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9531 registers as well.
9532
aaa38bb5
AJ
95332002-02-21 Jiri Smid <smid@suse.cz>
9534
9535 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9536
b34db576
RE
95372002-02-21 Richard Earnshaw <rearnsha@arm.com>
9538
9539 * Makefile.in (armnbsd-nat.o): Update dependencies.
9540 * armnbsd-nat.c (supply_gregset): New function. Common code to
9541 supply the integer register set.
9542 (supply_fparegset): New function. Similar for FPA registers.
9543 (fetch_regs, fetch_fp_regs): Use them.
9544 (fetch_core_registers): Likewise.
9545 (fetch_elfcore_registers): New function.
9546 (arm_netbsd_elfcore_fns): New core-file type specification.
9547 (_initialize_arm_netbsd_nat): Register it.
9548
3e56fc4b
RE
95492002-02-21 Richard Earnshaw <rearnsha@arm.com>
9550
9551 * armnbsd-nat.c: Include gdbcore.h.
9552 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9553 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9554 'void' to declaration, to shut up ARI.
9555 (fetch_core_registers): Make static. Rewrite using supply_register.
9556 (arm_netbsd_core_fns): New core-file type specification.
9557 (_initialize_arm_netbsd_nat): New function.
9558
097f6b0b
CF
95592002-02-21 Christopher Faylor <cgf@redhat.com>
9560
9561 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9562 value.
9563
c914e0cc
CF
95642002-02-20 Christopher Faylor <cgf@redhat.com>
9565
9566 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9567 fails.
9568
385fa495
DJ
95692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9570
9571 * jv-exp.y (parse_number): Change type of implicit longs
9572 to builtin_type_uint64.
9573
e5f1222d
DJ
95742002-02-20 Daniel Jacobowitz <drow@mvista.com>
9575
9576 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9577 to be an integer instead of a `union wait'.
9578
75c9abc6
DJ
95792002-02-20 Daniel Jacobowitz <drow@mvista.com>
9580
9581 * mips-linux-nat.c: Call the operating system GNU/Linux.
9582 * mips-linux-tdep.c: Likewise.
9583 * mips-tdep.c: Likewise.
9584
551792a5
DJ
95852002-02-20 Daniel Jacobowitz <drow@mvista.com>
9586
9587 Fix PR gdb/265.
9588 * jv-exp.y (parse_number): Handle 64-bit integers.
9589
ee6e2b82
DJ
95902002-02-20 Daniel Jacobowitz <drow@mvista.com>
9591
9592 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9593 AC_STDC_HEADERS to AC_HEADER_STDC.
9594 * gdbserver/configure: Regenerated.
9595
a48442a0
RE
95962002-02-20 Richard Earnshaw <rearnsha@arm.com>
9597
9598 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9599 is defined.
9600 * sparc-tdep.c (get_longjmp_target): Likewise.
9601
fe419ffc
RE
96022002-02-20 Richard Earnshaw <rearnsha@arm.com>
9603
9604 * News: Add news about ARM and Multi-arch. Mention the new target
9605 arm*-*-netbsd*.
9606
5832ed7e
JB
96072002-02-19 Jim Blandy <jimb@redhat.com>
9608
9609 * stabsread.c (error_type_complaint): Improve error message.
9610
84563040
DJ
96112002-02-19 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * gdbserver/README: Update documentation.
9614 * gdbserver/configure.in: Update configury to match documentation.
9615 * gdbserver/Makefile.in: Likewise.
9616 * gdbserver/configure: Regenerated.
9617 * gdbserver/aclocal.m4: New file, generated by aclocal.
9618 * gdbserver/config.in: New file, generated by autoheader.
9619
375fd65b
RE
96202002-02-19 Richard Earnshaw <rearnsha@arm.com>
9621
9622 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9623 armnbsd-nat.c.
9624
08216dd7
RE
96252002-02-19 Richard Earnshaw <rearnsha@arm.com>
9626
9627 * arm-tdep.h (enum arm_float_model): New enum.
9628 (struct gdbarch_tdep): Add fp_model.
9629 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9630 up floating-point conversions until we know the floating-point model
9631 in use by the inferior. Don't complain about being unable to
9632 determine the ABI of the inferior when we don't have one.
9633 (arm_extract_return_value): Support different floating-point models.
9634 (arm_store_return_value): Likewise.
aaa38bb5 9635 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9636 ARM_FLOAT_SOFT.
9637 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9638
65d6d66a
PS
96392002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9640
9641 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9642 of ``current_gdbarch''.
9643
47221191
RE
96442002-02-19 Richard Earnshaw <rearnsha@arm.com>
9645
9646 * armnbsd-nat.c : ANSIfy all function declarations.
9647 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9648 (fetch_inferior_registers): Re-implement in terms of above.
9649 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9650 (store_inferior_registers): Re-implement in terms of above.
9651
fdf39c9a
RE
96522002-02-19 Richard Earnshaw <rearnsha@arm.com>
9653
aaa38bb5 9654 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9655 kernel.
9656 * arm-linux-tdep.c: Likewise.
9657 * config/arm/tm-linux.h: Likewise.
9658
93247f88
RE
96592002-02-19 Richard Earnshaw <rearnsha@arm.com>
9660
9661 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9662 * config/arm/nbsd.mt (TM_FILE): Delete.
9663 * config/arm/tm-nbsd.h: Delete.
9664
d7b486e7
RE
96652002-02-19 Richard Earnshaw <rearnsha@arm.com>
9666
9667 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9668 Initialize CALL_DUMMY_LENGTH.
9669
41d39a95
RE
96702002-02-19 Richard Earnshaw <rearnsha@arm.com>
9671
9672 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9673 function.
9674 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9675 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9676 defines one thing and that is incorrect for this port.
9677 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9678
e1195560
PM
96792002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9680
9681 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9682
c1748f97
PM
96832002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9684
9685 * win32-nat.c (display_selector): New function. Displays information
9686 about the information returned by GetThreadSelectorEntry API function.
9687 (display_selectors): New function. Displays the infomation of
9688 the selector given as argument, or of CS, DS ans FS selectors
9689 if no argument is given.
9690 ( _initialize_inftarg): Add "w32" as info prefix command.
9691 Add "info w32 selector" as command calling display_selectors.
9692
e41e6bbf
PM
96932002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9694
9695 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9696 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9697 if not defined.
9698
0d3a9f48
RE
96992002-02-18 Richard Earnshaw <rearnsha@arm.com>
9700
9701 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9702
3fb4b924
RE
97032002-02-18 Richard Earnshaw <rearnsha@arm.com>
9704
9705 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9706 (arm_fix_call_dummy): Call it.
9707 (arm_call_dummy_breakpoint_offset): Delete.
9708 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9709 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9710
7f55af32
AC
97112002-02-18 Andrew Cagney <ac131313@redhat.com>
9712
9713 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9714 Default to func_frame_chain_valid.
9715 * gdbarch.h, gdbarch.c: Re-generate.
9716 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9717
05f13b9c
EZ
97182002-02-18 Elena Zannoni <ezannoni@redhat.com>
9719
9720 * ppc-linux-nat.c: Update copyright.
9721 (fetch_register, store_register): Add tid parameter, don't compute
9722 tid here.
9723 (fetch_ppc_registers, store_ppc_registers): Add tid
9724 parameter. Pass it along to callees.
9725 (fetch_inferior_registers, store_inferior_registers): Compute tid
9726 here, and pass it to calleed functions.
9727 (fill_gregset, supply_fpregset): Clean up formatting.
9728
d7afb4c9
RE
97292002-02-18 Richard Earnshaw <rearnsha@arm.com>
9730
9731 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9732 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9733
9df628e0
RE
97342002-02-18 Richard Earnshaw <rearnsha@arm.com>
9735
9736 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9737 * gdbarch.c gdbarch.h: Regenerate.
9738 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9739 function.
9740 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9741 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9742 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9743
9744 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9745 * arm-tdep.c (arm_get_longjmp_target): New function.
9746 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9747 this to a positive value register arm_get_longjmp_target as the
9748 longjmp handler.
9749 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9750 (arm_linux_init_abi): Set up longjmp description in tdep.
9751 * armnbsd-nat.c (get_longjmp_target): Delete.
9752 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9753 description in tdep.
9754 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9755 (get_longjmp_target): Delete declaration.
9756 (GET_LONGJMP_TARGET): Delete.
9757 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9758 (GET_LONGJMP_TARGET): Delete.
9759
57bc8964
KB
97602002-02-17 Kevin Buettner <kevinb@redhat.com>
9761
9762 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9763 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9764 of ``current_gdbarch''.
9765
83d31a92
TT
97662002-02-17 Tom Tromey <tromey@redhat.com>
9767
9768 * cli/cli-cmds.c (compare_strings): New function.
9769 (complete_command): Only print each unique item once.
9770 * completer.h (complete_line): Declare.
9771 * completer.c (complete_line): New function.
9772 (line_completion_function): Use it.
9773
17ef5d92
AC
97742002-02-16 Andrew Cagney <ac131313@redhat.com>
9775
9776 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9777 * gdbarch.h, gdbarch.c: Re-generate.
9778
491b8946
DJ
97792002-02-16 Daniel Jacobowitz <drow@mvista.com>
9780
9781 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9782
97832002-02-16 Daniel Jacobowitz <drow@mvista.com>
9784
9785 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9786 * valops.c (value_arg_coerce): Don't take the address of a reference
9787 to convert an argument to a reference.
9788
dfe7f3ac
CF
97892002-02-15 Christopher Faylor <cgf@redhat.com>
9790
9791 * win32-nat.c (get_image_name): New function.
9792 (handle_load_dll): Use get_image_name function.
9793 (get_child_debug_event): Avoid registering debug events until possibly
9794 execed process is started.
9795 (child_create_inferior): Allow invocation via shell so that command
9796 line redirection, etc. works ok.
9797 (_initialize_inftarg): Add new command: "set shell" to control whether
9798 a shell is used to start a process.
9799
1d33e73a
DJ
98002002-02-15 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9803 instead of find_register_by_number.
9804 (cannot_store_register): Likewise.
9805
48cd0caa
PM
98062002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9807
aaa38bb5 9808 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9809 fprintf_unfiltered (gdb_stderr, ...).
9810
8656e7d8
DJ
98112002-02-15 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * gdbserver/gdbserver.1: Document --attach.
9814
66e810cd
RE
98152002-02-15 Richard Earnshaw <rearnsha@arm.com>
9816
9817 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9818 descriptions.
9819 * arm-tdep.c (arm_default_arm_le_breakpoint)
9820 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9821 (arm_default_thumb_be_breakpoint): New. Initialize them from
9822 traditional breakpoint defines.
9823 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9824 (arm_gdbarch_init): Initialize new breakpoint variables.
9825 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9826 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9827 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9828 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9829 code out to ...
9830 (arm_netbsd_init_abi_common): ... here; new function.
9831 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9832 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9833 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9834 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9835
97e03143
RE
98362002-02-15 Richard Earnshaw <rearnsha@arm.com>
9837
9838 * arm-tdep.h (enum arm_abi): New enum.
9839 (struct gdbarch_tdep): New structure.
9840 (LOWEST_PC): Provide a default.
9841 (arm_gdbarch_register_os_abi): Declare new function.
9842 * arm-tdep.c (arm_abi_names): New array.
9843 (process_note_abi_tag_sections): New function.
9844 (get_elfosabi): New function.
9845 (arm_gdbarch_register_os_abi): New function.
9846 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9847 support for that ABI has been built in, then call the appropriate
9848 configuration routine. Use gdbarch_num_regs() to get the number
9849 of registers.
9850 (arm_dump_tdep): New function.
9851 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9852 place-holder functions.
9853 (_initialize_arm_tdep): Register them.
9854 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9855
9856 * armnbsd-tdep.c: New file.
9857 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9858 * config/arm/nbsd.mt (TDEPFILES): Add it.
9859 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9860
9861 * armnbsd-nat.c: Include regcache.h.
9862 * Makefile.in (armnbsd-nat.o): Update dependency list.
9863
9864 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9865
ad68be46
DJ
98662002-02-14 Daniel Jacobowitz <drow@mvista.com>
9867
9868 * gdbserver/Makefile.in: Fix typos in target rules.
9869
003d6d1d
DJ
98702002-02-14 Daniel Jacobowitz <drow@mvista.com>
9871
aaa38bb5 9872 Fix part of PR gdb/267.
003d6d1d
DJ
9873 * linespec.c (find_methods): Handle constructors specially for now.
9874
6b230f1b
CV
98752002-02-14 Corinna Vinschen <vinschen@redhat.com>
9876
9877 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9878 handling.
9879 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9880 standard_coerce_float_to_double().
9881
1ea98d12
CF
98822002-02-14 Christopher Faylor <cgf@redhat.com>
9883
9884 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9885 GDBINIT_FILENAME.
9886
dd47e6fd
EZ
98872002-02-14 Elena Zannoni <ezannoni@redhat.com>
9888
9889 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9890 find_variant_by_name, because it confuses the multiarch
9891 framework. Return NULL if there isn't an architecture with the
9892 user supplied name, instead of forcing a different one without
9893 recording the change with the multiarch machinery.
9894 (find_variant_by_name): Delete.
9895
d7e39b9e
PS
98962002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9897
9898 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9899 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9900
76e42a4f
MH
99012002-02-13 Martin M. Hunt <hunt@redhat.com>
9902
aaa38bb5 9903 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9904 print_frame_info_listing_hook, set current_source_symtab.
9905
0a30fbc4
DJ
99062002-02-14 Daniel Jacobowitz <drow@mvista.com>
9907
9908 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9909 and remove unused $(INCLUDE_DIR).
9910 Add regcache.c to OBS.
9911 Add generated register protocol files to clean target.
9912 Update dependencies for new objects, obsolete old target code.
9913
9914 * gdbserver/linux-low.c: Remove all platform-specific code to
9915 new files. Remove various dead code. Update to use regcache
9916 functionality.
9917 * gdbserver/remote-utils.c (fromhex): Add return statement
9918 to quiet warning.
9919 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9920 constant.
9921 (input_interrupt): Add integer parameter to match prototype
9922 of a signal handler.
9923 (outreg): Use register_data ().
9924 (prepare_resume_reply): Use gdbserver_expedite_regs.
9925 * gdbserver/server.c (main): Dynamically allocate own_buf because
9926 PBUFSIZ is no longer constant. Use registers_to_string () and
9927 registers_from_string ().
9928 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9929 for error (), fatal (), and warning (). Update definition of
9930 PBUFSIZ to use regcache functionality. Add include guard.
9931 * gdbserver/utils.c (fatal): Add missing ``const''.
9932 (warning): New function.
9933
9934 * regformats/regdat.sh: Include "regcache.h" in generated files.
9935 Provide init_registers () function.
9936 * regformats/regdef.h: Add prototype for set_register_cache ().
9937 Add include guard.
9938
9939 * gdbserver/linux-arm-low.c: New file.
9940 * gdbserver/linux-i386-low.c: New file.
9941 * gdbserver/linux-ia64-low.c: New file.
9942 * gdbserver/linux-m68k-low.c: New file.
9943 * gdbserver/linux-mips-low.c: New file.
9944 * gdbserver/linux-ppc-low.c: New file.
9945 * gdbserver/linux-sh-low.c: New file.
9946
9947 * gdbserver/regcache.c: New file.
9948 * gdbserver/regcache.h: New file.
9949
9950 * gdbserver/low-linux.c: Removed obsolete file.
9951
4cc841d0
DJ
99522002-02-14 Daniel Jacobowitz <drow@mvista.com>
9953
9954 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9955 * config/i386/linux.mt: Likewise.
9956 * config/ia64/linux.mt: Likewise.
9957 * config/m68k/linux.mh: Likewise.
9958 * config/powerpc/linux.mh: Likewise.
9959 * config/mips/linux.mt: Likewise.
9960
9961 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9962
9963 * config/i386/i386lynx.mh: Mark gdbserver variables
9964 as (currently) obsolete for this target.
9965 * config/i386/nbsd.mt: Likewise.
9966 * config/i386/nbsdelf.mt: Likewise.
9967 * config/m32r/m32r.mt: Likewise.
9968 * config/m68k/m68klynx.mh: Likewise.
9969 * config/m68k/nbsd.mt: Likewise.
9970 * config/m68k/sun3os4.mh: Likewise.
9971 * config/mips/vr5000.mt: Likewise.
9972 * config/ns32k/nbsd.mt: Likewise.
9973 * config/pa/hppabsd.mh: Likewise.
9974 * config/pa/hppaosf.mh: Likewise.
9975 * config/powerpc/nbsd.mt: Likewise.
9976 * config/rs6000/rs6000lynx.mh: Likewise.
9977 * config/s390/s390.mt: Likewise.
9978 * config/s390/s390x.mt: Likewise.
9979 * config/sparc/sparclynx.mh: Likewise.
9980 * config/sparc/sun4os4.mh: Likewise.
9981 * config/i386/x86-64linux.mt: Likewise.
9982 * config/sparc/linux.mh: Likewise.
9983
a85f51e7
DJ
99842002-02-14 Daniel Jacobowitz <drow@mvista.com>
9985
9986 * configure.tgt: Configure gdbserver only for known working
9987 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9988 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9989 SUBDIRS if it is configured. Update comment for ${nativefile}.
9990 * configure: Regenerated.
9991
65554fef
MS
99922002-02-13 Michael Snyder <msnyder@redhat.com>
9993
670a52db
MS
9994 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9995
6dbdc4a3
MS
9996 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9997 (default_gcore_mach): Just return 0, work around a problem in bfd.
9998 (default_gcore_target): OK to return NULL if exec_bfd is null.
9999 (make_mem_sec): Use a cast, avoid a warning.
10000
10001 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10002 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10003 sizeof (host pointer) != sizeof (target pointer)).
10004 (procfs_make_note_section): Avoid overflow in psargs string.
10005
aaa38bb5 10006 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10007 implementation return an error.
10008
100092002-02-13 Rodney Brown <rbrown64@csc.com.au>
10010
10011 * procfs.c (procfs_make_note_section): Provide a default definition
10012 (for alpha-dec-osf4.0f). Fix typos.
10013
1e4d76e7
EZ
100142002-02-13 Elena Zannoni <ezannoni@redhat.com>
10015
10016 * linux-proc.c: Add include of regcache.h.
10017 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10018
b6d1a1d5
AC
100192002-02-13 Andrew Cagney <ac131313@redhat.com>
10020
10021 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10022 * memattr.c (create_mem_region): Disallow useless empty region.
10023 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10024 non-overlapping.
b6d1a1d5 10025
6c6ea35e
MC
100262002-02-13 Michael Chastain <mec@shout.net>
10027
10028 * defs.h: Kill CONST_PTR.
10029 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10030 * c-lang.c (c_builtin_types): Likewise.
10031 * ch-lang.c (ch_builtin_types): Likewise.
10032 * f-lang.c (f_builtin_types): Likewise.
10033 * language.c (unknown_builtin_types): Likewise.
10034 * m2-lang.c (m2_builtin_types): Likewise.
10035 * p-lang.c (pascal_builtin_types): Likewise.
10036 * scm-lang.c (c_builtin_types): Likewise.
10037
3e0b0f48
KS
100382002-02-13 Keith Seitz <keiths@redhat.com>
10039
10040 * arm-tdep.h (arm_get_next_pc): Add declaration.
10041
67255d04
RE
100422002-02-13 Richard Earnshaw <rearnsha@arm.com>
10043
10044 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10045 with other related struct-returning functions.
10046 (arm_extract_struct_value_address): New function.
10047 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10048 initialize float_format, double_format and long_double_format as
10049 appropriate to the endianness of the target.
10050 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10051 (arm_use_struct_convention): Delete declaration.
10052 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10053
079777f6
KS
100542002-02-13 Keith Seitz <keiths@redhat.com>
10055
10056 * defs.h (core_addr_to_string_nz): New function.
10057
34588f23
MK
100582002-02-13 Mark Kettenis <kettenis@gnu.org>
10059
10060 Apply missing bits of 2002-01-15 patch.
10061 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10062 (fill_fpregset): Use i387_fill_fsave.
10063
49b563f9
KS
100642002-02-12 Keith Seitz <keiths@redhat.com>
10065
49b563f9
KS
10066 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10067 (core_addr_to_string_nz): New function.
10068
aeb98c60
RE
100692002-02-11 Richard Earnshaw <rearnsha@arm.com>
10070
10071 * arm-linux-nat.c: Really include arm-tdep.h.
10072 * config/arm/tm-linux.h (struct type, struct value): Declare.
10073
65554fef
MS
100742002-02-11 Michael Snyder <msnyder@redhat.com>
10075
10076 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10077 (gcore section): Ifdef for Solaris and Unixware only.
10078 (procfs_do_thread_registers): Unixware needs one lwpstatus
10079 per thread (not one prstatus or pstatus).
10080 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10081 not over all gdb threads. For unixware, call elfcore_write_pstatus
10082 once before iterating over threads.
10083
34e8f22d
RE
100842002-02-11 Richard Earnshaw <rearnsha@arm.com>
10085
10086 * arm-tdep.h: New file.
10087 * arm-tdep.c: Include arm-tdep.h.
10088 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10089 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10090 (arm_print_float_info, arm_register_type, convert_to_extended)
10091 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10092 (arm_extract_return_value, arm_register_name): Make static.
10093 (arm_software_single_step): Similarly. Fix types in declaration.
10094 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10095 (arm_store_return_value, arm_store_struct_return): New functions.
10096 (arm_gdbarch_init): Register the above functions. Also register
10097 call_dummy_start_offset, sizeof_call_dummy_words,
10098 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10099 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10100 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10101 prologue_cache.saved_regs here, rather than ...
10102 (_initialize_arm_tdep): ... here.
10103 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10104 declarations.
10105 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10106 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10107 (arm_print_float_info, arm_register_type, convert_to_extended)
10108 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10109 (arm_extract_return_value, arm_register_name): Delete declarations.
10110 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10111 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10112 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10113 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10114 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10115 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10116 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10117 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10118 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10119 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10120 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10121 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10122 interface.
10123 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10124 * remote-rdi.c remote-rdp.c: Likewise.
10125 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10126 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10127 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10128 definition.
10129
10130 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10131 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10132 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10133 from non-ARM_ prefixed definitions.
10134 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10135 all uses of above.
10136 * remote-rdi.c remote-rdp.c: Likewise.
10137 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10138
148754e5
RE
101392002-02-11 Richard Earnshaw <rearnsha@arm.com>
10140
10141 * arm-tdep.c (arm_frameless_function_invocation)
10142 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10143 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10144 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10145 (arm_pop_frame, arm_get_next_pc): Make static.
10146 (arm_gdbarch_init): Register above in gdbarch structure.
10147 (arm_read_fp): Renamed from arm_target_read_fp.
10148 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10149 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10150 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10151 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10152 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10153 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10154 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10155 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10156 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10157 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10158 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10159
434d2d4f
DJ
101602002-02-10 Daniel Jacobowitz <drow@mvista.com>
10161
10162 * symtab.c (compare_search_syms): New function.
10163 (sort_search_symbols): New function.
10164 (search_symbols): Sort symbols after searching rather than
10165 before.
10166
55241689
AC
101672002-02-10 Andrew Cagney <ac131313@redhat.com>
10168
10169 * NEWS: Linux -> GNU/Linux.
10170
028c194b
AC
101712002-02-10 Andrew Cagney <ac131313@redhat.com>
10172
10173 * gdbarch.sh: For for level one methods, disallow a definition
10174 when partially multi-arched. Add comments explaining rationale.
10175 * gdbarch.h: Re-generate.
10176
6acf50cd
AC
101772002-02-10 Andrew Cagney <ac131313@redhat.com>
10178
10179 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10180 multi-arch partial.
aaa38bb5 10181
50248794
AC
101822002-02-10 Andrew Cagney <ac131313@redhat.com>
10183
10184 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10185 field. Use diff -u.
10186 * gdbarch.c: Re-generate.
10187
c30e0066
AC
101882002-02-10 Andrew Cagney <ac131313@redhat.com>
10189
9b56c5f3 10190 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10191 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10192 partial.
10193
6e6d6484
AC
101942002-02-10 Andrew Cagney <ac131313@redhat.com>
10195
10196 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10197 multi-arch partial.
10198 (PUSH_ARGUMENTS): Switch to using predefault.
10199 * gdbarch.c: Regenerate.
10200
c203844d
AC
102012002-02-10 Andrew Cagney <ac131313@redhat.com>
10202
10203 * valops.c (PUSH_ARGUMENTS): Delete definition.
10204 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10205 partial. Default to default_push_arguments.
10206 * gdbarch.h, gdbarch.c: Regenerate.
10207
b5a2688f
AC
102082002-02-09 Andrew Cagney <ac131313@redhat.com>
10209
10210 * defs.h (throw_exception): Rename return_to_top_level. Update
10211 comments.
10212 * utils.c (error_stream, internal_verror, quit): Ditto.
10213 * top.c (throw_exception, catcher): Ditto.
10214 * sparclet-rom.c (sparclet_load): Ditto.
10215 * remote.c (interrupt_query, minitelnet): Ditto.
10216 * remote-sds.c (interrupt_query): Ditto.
10217 * remote-mips.c (mips_error, mips_kill): Ditto.
10218 * ocd.c (interrupt_query): Ditto.
10219 * monitor.c (monitor_interrupt_query): Ditto.
10220 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10221 * target.h: Update comment.
aaa38bb5 10222
b5a2688f 10223 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10224
2fa5c1e0
AC
102252002-02-09 Andrew Cagney <ac131313@redhat.com>
10226
10227 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10228 default_double_format.
10229 * gdbarch.h, gdbarch.c: Re-generate.
10230 * findvar.c (floatformat_unknown): Delete variable definition.
10231 * doublest.h (floatformat_unknown): Delete variable declaration.
10232
da966255
JB
102332002-02-09 Jim Blandy <jimb@redhat.com>
10234
10235 * stabsread.c (read_type): Add code to parse Sun's syntax for
10236 prototyped function types.
10237
123a4891
AC
102382002-02-09 Andrew Cagney <ac131313@redhat.com>
10239
10240 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10241 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10242
fb39c8f3
PS
102432002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10244
10245 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10246 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10247 now _initialize_xcoffsolib gets called again and overrides the
10248 commands from solib.c in a native configuration.
10249
0b87a11d
MK
102502002-02-09 Mark Kettenis <kettenis@gnu.org>
10251
10252 * doublest.c (store_typed_floating): Don't try to return a value.
10253 Fixes PR gdb/290.
10254
bdc2fc72
JB
102552002-02-08 Jim Blandy <jimb@redhat.com>
10256
10257 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10258 is prototyped and has no arguments, print its argument list as
10259 `(void)'.
10260
da69bbcf
CD
102612002-02-08 Chris Demetriou <cgd@broadcom.com>
10262
10263 * MAINTAINERS (write-after-approval): Add myself.
10264 (paper-trail): I've escaped!
aaa38bb5 10265
b69571f5
CF
102662002-02-08 Christopher Faylor <cgf@redhat.com>
10267
10268 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10269 changes.
10270 (_initialize_check_for_gdb_ini): Ditto.
10271
f6871398
MH
102722002-02-08 Martin M. Hunt <hunt@redhat.com>
10273
10274 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10275 xaprintf -> xasprintf.
10276
4e52d31c
PM
102772002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10278
10279 * win32-nat.c: Remove use of printf and sprintf functions.
10280
39bbf761
RE
102812002-02-08 Richard Earnshaw <rearnsha@arm.com>
10282
10283 * arm-tdep.c (arm_frame_chain_valid): Make static.
10284 (arm_push_arguments): Likewise.
10285 (arm_gdbarch_init): New function.
10286 (_initialize_arm_tdep): Call it.
10287 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10288 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10289 (FRAME_CHAIN_VALID): Delete.
10290 (arm_frame_chain_valid): Delete declaration.
10291 (PUSH_ARGUMENTS): Delete.
10292 (arm_push_arguments): Delete declaration.
10293 (CALL_DUMMY_P): Delete.
10294
9c9532c9
CV
102952002-02-08 Andrew Cagney <ac131313@redhat.com>
10296 Corinna Vinschen <vinschen@redhat.com>
10297
10298 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10299 on builtin float types.
10300
4e8f7a8b
DJ
103012002-02-08 Daniel Jacobowitz <drow@mvista.com>
10302
10303 * utils.c: Include <curses.h> before "bfd.h".
10304 * tui/tui-hooks.c: Likewise.
10305 * tui/tui.c: Likewise.
10306 * tui/tuiCommand.c: Likewise.
10307 * tui/tuiData.c: Likewise.
10308 * tui/tuiDataWin.c: Likewise.
10309 * tui/tuiDisassem.c: Likewise.
10310 * tui/tuiGeneralWin.c: Likewise.
10311 * tui/tuiIO.c: Likewise.
10312 * tui/tuiLayout.c: Likewise.
10313 * tui/tuiRegs.c: Likewise.
10314 * tui/tuiSource.c: Likewise.
10315 * tui/tuiSourceWin.c: Likewise.
10316 * tui/tuiStack.c: Likewise.
10317 * tui/tuiWin.c: Likewise.
10318
cd4bffcf
EZ
103192002-02-07 Elena Zannoni <ezannoni@redhat.com>
10320
10321 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10322 to include space for pseudoregs as well. Update loops accordingly.
10323 (sh_fp_frame_init_saved_regs): Ditto.
10324 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10325
26806ce2
AC
103262002-02-07 Andrew Cagney <ac131313@redhat.com>
10327
10328 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10329 Add Richard Earnshaw to Arm maintainers.
10330
97fdab62
AC
103312002-02-07 Andrew Cagney <ac131313@redhat.com>
10332
a6b98203
AC
10333 * defs.h (warning_begin): Delete declaration.
10334
97fdab62
AC
10335 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10336 Delete macro.
10337
78b29b40
MS
103382002-02-07 Michael Snyder <msnyder@redhat.com>
10339
aaa38bb5 10340 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10341 Logic bug, remove misplaced else.
10342
d8849953
KD
103432002-02-07 Klee Dienes <klee@apple.com>
10344
10345 * fork-inferior.c (fork_inferior): Add '!' to the list of
10346 characters that need to be quoted when building a string for the
10347 shell. Quote '!' specifically with a backslash, since CSH chokes
10348 when trying to evaluate "str!str".
aaa38bb5 10349
095778a0
NC
103502002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10351
10352 * rdi-share/host.h: Only provide a typedef for bool if it is not
10353 defined.
10354
1900040c
MS
103552002-02-04 Michael Snyder <msnyder@redhat.com>
10356
10357 * breakpoint.h (enum bptype): Add new overlay event bp type.
10358 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10359
1900040c
MS
10360 * breakpoint.c (create_internal_breakpoint): New function.
10361 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10362 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10363 (create_thread_event_breakpoint): Ditto.
10364 (create_solib_event_breakpoint): Ditto.
10365 (create_overlay_event_breakpoint): New function.
10366 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10367 (update_breakpoints_after_exec): Delete and re-initialize
10368 overlay event breakpoints after an exec. Add FIXME comment
10369 about longjmp breakpoint.
10370 (print_it_typical): Ignore overlay event breakpoints.
10371 (print_one_breakpoint): Ditto.
10372 (mention): Ditto.
10373 (bpstat_what): Do not stop for overlay event breakpoints.
10374 (delete_breakpoint): Don't delete overlay event breakpoints.
10375 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10376 (breakpoint_re_set): Re-create overlay event breakpoint.
10377
10378 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10379 (overlay_manual_command): Disable overlay breakpoints.
10380 (overlay_off_command): Disable overlay breakpoints.
10381
082fc60d
RE
103822002-02-06 Richard Earnshaw <rearnsha@arm.com>
10383
10384 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10385 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10386 to here from config/tm-arm.h.
10387 (coff_sym_is_thumb): Make static.
10388 (arm_elf_make_msymbol_special): New function.
10389 (arm_coff_make_msymbol_special): New function.
10390 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10391 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10392 (coff_sym_is_thumb): Delete declaration.
10393 (arm_elf_make_msymbol_special): Declare.
10394 (arm_coff_make_msymbol_special): Declare.
10395 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10396 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10397
039c5766
RE
103982002-02-06 Richard Earnshaw <rearnsha@arm.com>
10399
10400 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10401
104022002-02-06 Richard Earnshaw <rearnsha@arm.com>
10403
10404 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10405 * gdbarch.c gdbarch.h: Regenerate.
10406 * arch-utils.c (default_print_float_info): New function.
10407 * arch-utils.h (default_print_float_info): Prototype it.
10408 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10409 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10410 (PRINT_FLOAT_INFO): Document it.
10411
10412 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10413 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10414 (PRINT_FLOAT_INFO): Define.
10415
58fa08f0
PM
104162002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10417
aaa38bb5 10418 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10419 Add typecast to sprintf argument to suppress a warning.
10420
7393af7c
PM
104212002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10422
58fa08f0 10423 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10424 to allow easier handling of pass state.
10425 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10426 that gives exception name and address.
10427 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10428 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10429 exceptions added.
aaa38bb5
AJ
10430 (child_continue): Correctly report continue_status.
10431 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10432 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10433 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10434 the exception should be passed to debuggee or not.
10435
6af4589c
MS
104362002-02-05 Michael Snyder <msnyder@redhat.com>
10437
10438 * regcache.c (fetch_register): Call target_fetch_register
10439 only if we don't call FETCH_PSEUDO_REGISTER.
10440 (store_register): Call target_store_register only if we
10441 don't call STORE_PSEUDO_REGISTER.
10442
a2cf933a
EZ
104432002-02-05 Elena Zannoni <ezannoni@redhat.com>
10444
10445 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10446 ELF_MAKE_MSYMBOL_SPECIAL.
10447 * gdbarch.c, gdbarch.h: Regenerate.
10448 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10449 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10450 * elfread.c (elf_symtab_read): Compile use of
10451 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10452 multiarched.
10453 * coffread.c (coff_symtab_read): Ditto, for
10454 COFF_MAKE_MSYMBOL_SPECIAL.
10455
6bb7be43
JB
104562002-02-05 Jim Blandy <jimb@redhat.com>
10457
10458 * solib-svr4.c (svr4_truncate_ptr): New function.
10459 (svr4_relocate_section_addresses): Do the address arithmetic with
10460 the appropriate truncation for target addresses, even when
10461 CORE_ADDR is larger than a target address.
10462
e18651ec
DJ
104632002-02-05 Daniel Jacobowitz <drow@mvista.com>
10464
10465 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10466 to (int *).
10467
6b2725be
DJ
104682002-02-05 Daniel Jacobowitz <drow@mvista.com>
10469
10470 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10471 code.
10472
fca9e603
DJ
104732002-02-05 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10476
6c537a52
DJ
104772002-02-05 Daniel Jacobowitz <drow@mvista.com>
10478
10479 * gdbserver/linux-low.c: Remove unused include files.
10480
d844cde6
DJ
104812002-02-05 Daniel Jacobowitz <drow@mvista.com>
10482
10483 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10484 (read_inferior_memory): Use it.
10485 (write_inferior_memory): Likewise.
10486
d07c63e7
DJ
104872002-02-05 Daniel Jacobowitz <drow@mvista.com>
10488
10489 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10490 grubbing through sys_errlist.
10491
da6d8c04
DJ
104922002-02-05 Daniel Jacobowitz <drow@mvista.com>
10493
10494 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10495
5b421780
PM
104962002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10497 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10498
9f60d481
AC
104992002-02-04 Andrew Cagney <ac131313@redhat.com>
10500
10501 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10502 (do_sfunc, set_cmd_sfunc): New functions.
10503
10504 * command.h (struct cmd_list_element): Add field func.
10505 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10506 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10507 * cli/cli-decode.h: Ditto.
10508
10509 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10510 (help_all, help_cmd_list): Ditto.
10511 (find_cmd, complete_on_cmdlist): Ditto.
10512 * top.c (execute_command): Ditto.
10513
10514 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10515 function.sfunc.
10516
10517 * infcmd.c (notice_args_read): Fix function signature.
10518
10519 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10520 * cli/cli-decode.c (add_set_cmd): Ditto.
10521 * utils.c (initialize_utils): Ditto.
10522 * maint.c (_initialize_maint_cmds): Ditto.
10523 * infrun.c (_initialize_infrun): Ditto.
10524 * demangle.c (_initialize_demangler): Ditto.
10525 * remote.c (add_packet_config_cmd): Ditto.
10526 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10527 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10528 * proc-api.c (_initialize_proc_api): Ditto.
10529 * kod.c (_initialize_kod): Ditto.
10530 * valprint.c (_initialize_valprint): Ditto.
10531 * top.c (init_main): Ditto.
10532 * infcmd.c (_initialize_infcmd): Ditto.
10533 * corefile.c (_initialize_core): Ditto.
10534 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10535 * arch-utils.c (initialize_current_architecture): Ditto.
10536 (_initialize_gdbarch_utils): Ditto.
10537 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10538
10539 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10540 * wince.c (_initialize_inftarg): Ditto.
10541 * symfile.c (_initialize_symfile): Ditto.
10542 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10543 * language.c (_initialize_language): Ditto.
10544 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10545
f9ba0717
MS
105462002-02-04 Michael Snyder <msnyder@redhat.com>
10547
10548 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10549
0c74b2a7
DJ
105502002-02-04 Daniel Jacobowitz <drow@mvista.com>
10551
10552 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10553 Add rules for building the register data files.
10554
c638789f
DJ
105552002-02-04 Daniel Jacobowitz <drow@mvista.com>
10556
10557 * regformats/regdat.sh: Add braces to the definition of
10558 expedite_regs_${arch}.
10559
db253027
DJ
105602002-02-04 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * regformats/regdef.h (struct reg): Add comment describing the
10563 requirements for offset and size fields.
10564
206be19c
AS
105652002-02-04 Andreas Schwab <schwab@suse.de>
10566
10567 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10568 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10569
181c1381
RE
105702002-02-04 Richard Earnshaw <rearnsha@arm.com>
10571
10572 * gdbarch.sh (copyright): Update years in generated header.
10573 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10574 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10575 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10576 * dbxread.c: Likewise.
10577 * dwarfread.c: Likewise.
10578 * elfread.c: Likewise.
10579 * somread.c: Likewise.
10580
10581 * arm-tdep.c (arm_smash_text_address): New function.
10582 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10583
fa4ba8da
PM
105842002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10585
10586 Add support for hardware watchpoints on win32 native.
aaa38bb5 10587 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10588 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10589 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10590 of debug registers.
10591 (debug_registers_changed): New variable. Reflects when debug registers
10592 are changed and need to be written to inferior.
aaa38bb5 10593 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10594 was set, used when new threads are created.
10595 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10596 i386-nat code.
10597 (thread_rec): Set dr array if id is the thread of current_event .
10598 (child_continue, child_resume): Change the debug registers for all
10599 threads if debug_registers_changed.
10600 (child_add_thread): Change the debug registers if debug_registers_used.
10601 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10602 Link nm.h to new nm-cygwin.h file.
10603 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10604 of hardware registers.
10605
a73c86fb
AC
106062002-02-03 Andrew Cagney <ac131313@redhat.com>
10607
10608 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10609 Restore behavour broken by 2002-01-20 Andrew Cagney
10610 <ac131313@redhat.com> IEEE_FLOAT removal.
10611
acf5ed49
DJ
106122002-02-03 Daniel Jacobowitz <drow@mvista.com>
10613
10614 * c-valprint.c (c_val_print): Pass a proper valaddr to
10615 cp_print_class_method.
10616 * valops.c (search_struct_method): If there is only one method
10617 and args is NULL, return that method.
10618
493d28d5
DJ
106192002-02-03 Daniel Jacobowitz <drow@mvista.com>
10620
10621 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10622 accessing tag_name directly.
10623
7495dfdb
DJ
106242002-02-03 Daniel Jacobowitz <drow@mvista.com>
10625
10626 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10627 of accessing tag_name directly.
10628
dd6bda65
DJ
106292002-02-03 Daniel Jacobowitz <drow@mvista.com>
10630
10631 PR gdb/280
10632 * gdbtypes.c (replace_type): New function.
10633 * gdbtypes.h (replace_type): Add prototype.
10634 * stabsread.c (read_type): Use replace_type.
10635
88fe217c
RE
106362002-02-03 Richard Earnshaw <rearnsha@arm.com>
10637
10638 * Makefile.in (memattr.o): Add missing dependencies rule.
10639
e5d66720
PS
106402002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10641
10642 * breakpoint.c (break_at_finish_command): Really export.
10643 (break_at_finish_at_depth_command): Ditto.
10644 (tbreak_at_finish_command): Ditto.
10645 * hppa-tdep.c: Include completer.h.
10646 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10647 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10648
fffee0be
AC
106492002-02-01 Andrew Cagney <ac131313@redhat.com>
10650
10651 * utils.c (do_write): New function.
10652 (error_stream): Rewrite combining the code from error_begin and
10653 verror.
10654 (verror): Rewrite using error_stream.
10655 (error_begin): Delete function.
10656
255e7dbf
AC
106572002-02-01 Andrew Cagney <ac131313@redhat.com>
10658
10659 * utils.c (error_begin): Make static.
10660 * defs.h (error_begin): Delete declaration.
10661
10662 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10663 (decode_line_1): Use cplusplus_error instead of error_begin,
10664 cplusplus_hint and return_to_top_level.
10665 * coffread.c (coff_symfile_read): Use error instead of error_begin
10666 and return_to_top_level.
10667 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10668
ddfe3c15
AC
106692002-02-01 Andrew Cagney <ac131313@redhat.com>
10670
10671 * language.h (type_error, range_error): Make string parameter
10672 constant.
10673 * language.c (warning_pre_print): Delete extern declaration.
10674 * dwarfread.c (warning_pre_print): Ditto.
10675 * language.c (type_error, range_error): Rewrite to use verror and
10676 vwarning instead of warning_begin.
10677
03ac34d5
MS
106782002-02-01 Michael Snyder <msnyder@redhat.com>
10679
261c4ca2
MS
10680 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10681 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10682
e00d1dc8
AC
106832002-02-01 Andrew Cagney <ac131313@redhat.com>
10684
10685 * command.h (NO_FUNCTION): Delete macro.
10686 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10687 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10688 * tracepoint.c (_initialize_tracepoint): Ditto.
10689 * cli/cli-decode.c (add_set_cmd): Ditto.
10690 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10691
76b79d6e
DJ
106922002-02-01 Daniel Jacobowitz <drow@mvista.com>
10693
10694 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10695 Update ``this'' pointer when calling virtual functions.
10696
799f9e91
MS
106972002-02-01 Michael Snyder <msnyder@redhat.com>
10698
c7bd442c 10699 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10700 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10701
3cf384d4
DJ
107022002-02-01 Daniel Jacobowitz <drow@mvista.com>
10703
10704 * regformats/reg-arm.dat: New file.
10705 * regformats/reg-i386.dat: New file.
10706 * regformats/reg-ia64.dat: New file.
10707 * regformats/reg-m68k.dat: New file.
10708 * regformats/reg-mips.dat: New file.
10709 * regformats/reg-ppc.dat: New file.
10710 * regformats/reg-sh.dat: New file.
10711 * regformats/regdef.h: New file.
10712 * regformats/regdat.sh: New file.
10713
0defa245
RE
107142002-02-01 Richard Earnshaw <reanrsha@arm.com>
10715
10716 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10717 (arm_frame_args_address, arm_frame_locals_address): New functions.
10718 (arm_frame_num_args): New function.
10719 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10720 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10721 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10722
405f26e6
MS
107232002-01-31 Michael Snyder <msnyder@redhat.com>
10724
502fd408
MS
10725 * breakpoint.c (break_at_finish_command): Export.
10726 (break_at_finish_at_depth_command): Export.
10727 (tbreak_at_finish_command): Export.
d6020d45 10728 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10729 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10730 "txbreak" commands, which are HPPA specific.
502fd408 10731
7d35e135
MS
10732 * printcmd.c (disassemble_command): Remove an ancient
10733 artifact of an old merge.
10734
aaa38bb5 10735 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10736 Define enum constant values for overlay mode.
10737 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10738 (overlay_is_mapped, overlay_auto_command,
10739 overlay_manual_command): Ditto.
d874f1e2 10740
aaa38bb5
AJ
10741 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10742 breakpoint_here_p, breakpoint_inserted_here_p,
10743 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10744 describe_other_breakpoints, check_duplicates, clear_command):
10745 Coding standard fixes.
10746
8add0441 10747 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10748 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10749 code: check bfd SEC_READONLY flag for section.
10750
e351066e
AC
107512002-01-31 Andrew Cagney <ac131313@redhat.com>
10752
7d35e135 10753 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10754
8a48e967
DJ
107552002-01-30 Daniel Jacobowitz <drow@mvista.com>
10756
10757 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10758 data symbols, since we search based on textlow and texthigh.
10759 (find_pc_sect_symtab): Likewise.
10760
f5a96129
AC
107612002-01-30 Andrew Cagney <ac131313@redhat.com>
10762
10763 * defs.h (vwarning): Declare.
f5a96129
AC
10764 * utils.c (vwarning): New function.
10765 (warning): Call vwarning.
10766 (warning_begin): Delete function.
10767
10768 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10769 the warning message.
10770 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10771 warning_begin.
10772
cefd4ef5
MS
107732002-01-30 Michael Snyder <msnyder@redhat.com>
10774
1a703748
MS
10775 * NEWS: Mention "set trust-readonly-sections" command.
10776 Mention generate-core-file command.
cefd4ef5 10777
3a11626d
MS
107782002-01-15 Michael Snyder <msnyder@redhat.com>
10779
10780 * target.c: New command, "set trust-readonly-sections on".
10781 (do_xfer_memory): Honor the suggestion to trust readonly sections
10782 by reading them from the object file instead of from the target.
10783 (initialize_targets): Register command "set trust-readonly-sections".
10784
d1c7e53b
AC
107852002-01-29 Andrew Cagney <ac131313@redhat.com>
10786
10787 * parse.c (target_map_name_to_register): Simplify, search regs and
10788 pseudo-regs using a single loop.
10789
e2c9a72c
AC
107902002-01-30 Andrew Cagney <ac131313@redhat.com>
10791
10792 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10793
69824b4e
MK
107942002-01-15 Rodney Brown <rbrown64@csc.com.au>
10795
10796 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10797 * config/i386/i386v42mp.mh: Add i387-nat.o .
10798 * i386v4-nat.c: Include i387-nat.h.
10799 (supply_fpregset): Use i387_supply_fsave.
10800 (fill_fpregset): Use i387_fill_fsave.
10801
6eb69eab
RE
108022002-01-30 Richard Earnshaw <rearnsha@arm.com>
10803
10804 * arm-tdep.c (arm_call_dummy_words): Define.
10805 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10806 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10807 (CALL_DUMMY_WORDS): Define.
10808 (arm_call_dummy_words): Declare.
10809 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10810 (arm_linux_call_dummy_words): Declare.
10811
9852326a
AS
108122002-01-30 Andreas Schwab <schwab@suse.de>
10813
10814 * m68klinux-nat.c: Fix last change to use regcache_collect
10815 instead of referencing registers[] directly.
10816
977a3030
AC
108172002-01-29 Andrew Cagney <ac131313@redhat.com>
10818
10819 * parse.c (target_map_name_to_register): Delete code wrapped in
10820 #ifdef REGISTER_NAME_ALIAS_HOOK.
10821
2076c72b
MS
108222002-01-28 Michael Snyder <msnyder@redhat.com>
10823
10824 * regcache.c (legacy_read_register_gen): Need to be able to
10825 read pseudo-register as well as real register.
10826 (legacy_write_register_gen): Ditto.
10827
8fcc723b
AC
108282002-01-28 Andrew Cagney <ac131313@redhat.com>
10829
10830 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10831 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10832 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10833 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10834 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10835 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10836 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10837 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10838 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10839 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10840 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10841 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10842 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10843 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10844 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10845 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10846 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10847 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10848 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10849 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10850
afe64c1a
AC
108512002-01-28 Andrew Cagney <ac131313@redhat.com>
10852
10853 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10854 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10855 (initialize_current_architecture): Update target_byte_order using
10856 information from BFD.
aaa38bb5 10857 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10858 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10859
75bc7ddf
AC
108602002-01-28 Andrew Cagney <ac131313@redhat.com>
10861
10862 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10863 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10864
10865 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10866 #ifdef INVALID_FLOAT.
10867 * infcmd.c (do_registers_info): Ditto.
10868 * values.c (unpack_double): Ditto. Add comment.
10869
10870 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10871 already commented out.
10872
0280a90a
AS
108732002-01-26 Andreas Schwab <schwab@suse.de>
10874
10875 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10876 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10877 registers and add support for PTRACE_GETREGS.
10878
7072a954
AC
108792002-01-24 Andrew Cagney <ac131313@redhat.com>
10880
10881 GDB 5.1.1 released from 5.1 branch.
10882 * NEWS: Add 5.1.1 news.
10883 * README: Sync with 5.1 branch.
10884
86f902e0
FF
108852002-01-23 Fred Fish <fnf@redhat.com>
10886
10887 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10888 stabstring on initial malloc. Reallocing will copy it for us,
10889 if necessary.
10890
8af51c36
EZ
108912002-01-23 Elena Zannoni <ezannoni@redhat.com>
10892
aaa38bb5 10893 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10894 (HFILES_NO_SRCDIR): Remove hpread.h.
10895 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10896 (hpread.o): Update dependencies.
10897 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10898
10899 * hp-psymtab-read.c: Remove file.
10900 * hp-symtab-read.c: Remove file.
10901 * hpread.h: Remove file.
10902
10903 * hpread.c: Merge all contents of hp-psymtab-read.c,
10904 hp-symtab-read.c and hpread.h into this file, as it was prior to
10905 January 1999.
10906
10907 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10908 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10909 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10910 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10911
dc5cfeb6
EZ
109122002-01-23 Elena Zannoni <ezannoni@redhat.com>
10913
10914 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10915 fill_gregset): Call gdbarch_tdep() just once, assign result to
10916 variable and use that, instead of calling the function several
10917 times.
10918
ea87b71b
AO
109192002-01-24 Alexandre Oliva <aoliva@redhat.com>
10920
10921 * configure.host: Accept sparcv9 as alias for sparc64.
10922 * configure.tgt: Likewise.
10923
13fc0c2f
KB
109242002-01-22 Kevin Buettner <kevinb@redhat.com>
10925
10926 * solib-aix5.c (build_so_list_from_mapfile)
10927 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10928 arguments is not reversed.
10929 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10930 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10931
7bd872fe
EZ
109322002-01-22 Elena Zannoni <ezannoni@redhat.com>
10933
10934 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10935 modified version of obsolete sh_fetch_pseudo_register.
10936 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10937 (sh4_register_read): New function.
10938 (sh_pseudo_register_write): New function. Renamed and modified
10939 version of obsolete sh_store_pseudo_register.
10940 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10941 (sh4_register_write): New function.
10942 (sh_gdbarch_init): Remove setting of gdbarch function
10943 fetch_pseudo_register and store_pseudo_register. Remove setting of
10944 register_convert_to_raw, register_convert_to_virtual,
10945 register_convertible.
10946 (sh_sh4_register_convertible): Delete. No longer needed. All is
10947 taken care by architecture specific functions
10948 register_read/register_write.
10949 (sh_sh4_register_convert_to_virtual): Make static.
10950 (sh_sh4_register_convert_to_raw): Ditto.
10951
069e84fd
AC
109522002-01-22 Andrew Cagney <ac131313@redhat.com>
10953
10954 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10955 (floatformat_is_nan, floatformat_mantissa): Ditto.
10956
10957 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10958 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10959 builtin_type_ieee_double_little,
10960 builtin_type_ieee_double_littlebyte_bigword,
10961 builtin_type_m68881_ext, builtin_type_i960_ext,
10962 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10963 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10964 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10965 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10966
211a4f69
CV
109672002-01-22 Corinna Vinschen <vinschen@redhat.com>
10968
10969 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10970 parameter. Set frameless flag if it exists and depended of
10971 whether the scanned function is frameless or not.
10972 (xstormy16_skip_prologue): If function is frameless, return
10973 result of xstormy16_scan_prologue().
10974 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10975 call.
10976
f81353e4
EZ
109772002-01-21 Elena Zannoni <ezannoni@redhat.com>
10978
10979 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10980 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10981 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10982 sh_sh4_register_byte, sh_sh4_register_raw_size,
10983 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10984 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10985 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10986 sh_store_pseudo_register, sh_do_pseudo_register): Call
10987 gdbarch_tdep() just once, assign result to variable and use that,
10988 instead of calling the function several times.
10989
63c73a17
MK
109902002-01-20 Mark Kettenis <kettenis@gnu.org>
10991
10992 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10993 macros instead of LAST_FPU_CTRL_REGNUM.
10994 (store_register): Likewise.
10995
39ad761d
JB
109962002-01-21 Jim Blandy <jimb@redhat.com>
10997
10998 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10999 is up-to-date before running the program, not just when a program
11000 exits.
11001
3d74b771
FF
110022002-01-21 Fred Fish <fnf@redhat.com>
11003
11004 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11005 when we have found all instructions we are looking for.
11006
966fbf70
RE
110072002-01-21 Richard Earnshaw <rearnsha@arm.com>
11008
11009 * arm-tdep.c (arm_register_name): New function.
11010 (arm_registers_names): Make static.
11011 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11012 (arm_register_name): Declare.
11013 (REGISTER_NAME): Use it.
11014
c3b4394c
RE
110152002-01-21 Richard Earnshaw <rearnsha@arm.com>
11016 Kevin Buettner <kevinb@redhat.com>
11017
11018 Convert arm targets to new FRAME interface.
11019 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11020 (arm_frame_find_save_regs): Delete.
11021 (arm_frame_init_saved_regs): New.
11022 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11023 Allocate extra_info as required. Convert all uses of fsr.regs
11024 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11025 to use extra_info.
11026 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11027 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11028 (check_prologue_cache, save_prologue_cache): Likewise.
11029 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11030 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11031 (FRAME_FIND_SAVED_REGS): Delete.
11032 (arm_frame_find_saved_regs): Delete prototype.
11033 (arm_frame_init_saved_regs): New prototype.
11034 (FRAME_INIT_SAVED_REGS): Define.
11035
61d99182
AC
110362002-01-20 Andrew Cagney <ac131313@redhat.com>
11037
11038 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11039
6aaea291
AC
110402002-01-20 Andrew Cagney <ac131313@redhat.com>
11041
11042 From Jeff Law <law@redhat.com>:
11043 * infttrace.c: Include <sys/pstat.h>.
11044 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11045 exec file if the ttrace equivalent fails.
11046
15f698d2
AC
110472002-01-20 Andrew Cagney <ac131313@redhat.com>
11048
11049 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11050 (closeLogFile): Ditto.
11051
f86ddd7c
MC
110522002-01-20 Michael Chastain <mec@shout.net>
11053
11054 * top.c (print_gdb_version): Bump copyright year to 2002.
11055
904507ce
AC
110562002-01-20 Andrew Cagney <ac131313@redhat.com>
11057
11058 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11059 Zannoni and Eli Zaretskii.
11060
d7f0b9ce
DJ
110612002-01-20 Daniel Jacobowitz <drow@mvista.com>
11062
11063 * buildsym.c: Update copyright years.
11064 * c-typeprint.c: Likewise.
11065 * dwarf2read.c: Likewise.
11066 * f-typeprint.c: Likewise.
11067 * gdbtypes.c: Likewise.
11068 * gdbtypes.h: Likewise.
11069 * hp-symtab-read.c: Likewise.
11070 * hpread.c: Likewise.
11071 * mdebugread.c: Likewise.
11072 * p-typeprint.c: Likewise.
11073
3fd3d7d2
AC
110742002-01-20 Andrew Cagney <ac131313@redhat.com>
11075
11076 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11077 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11078 byte-order selectable.
11079 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11080 * arch-utils.c: Ditto.
11081 (set_endian): Ditto.
11082 (set_endian_from_file): Ditto.
11083 * gdbserver/low-sim.c (create_inferior): Ditto.
11084 * gdbarch.sh: Ditto.
11085 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11086 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11087 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11088 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11089 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11090 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11091 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11092 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11093 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11094 macro definition.
11095 * config/mips/tm-wince.h: Remove #undef of macro
11096 TARGET_BYTE_ORDER_SELECTABLE.
11097 * config/sh/tm-wince.h: Ditto.
11098
b02dede2
DJ
110992002-01-20 Daniel Jacobowitz <drow@mvista.com>
11100
11101 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11102 member function fields. Add accessor macro
11103 TYPE_FN_FIELD_ARTIFICIAL.
11104 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11105 * c-typeprint.c (c_type_print_base): Skip artificial member
11106 functions.
11107
c3643761
DJ
111082002-01-20 Daniel Jacobowitz <drow@mvista.com>
11109
11110 * f-typeprint.c: Delete unused function f_type_print_args.
11111 * p-typeprint.c: Delete unused function pascal_type_print_args.
11112
8176bb6d
DJ
111132002-01-20 Daniel Jacobowitz <drow@mvista.com>
11114
11115 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11116 comment. Add ``artificial'' to ``union field_location''.
11117
11118 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11119
11120 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11121 * mdebugread.c (parse_symbol): Likewise.
11122 * stabsread.c (define_symbol): Likewise.
11123 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11124 initializing TYPE_FIELD_BITPOS to n (obsolete).
11125 (hpread_doc_function_type): Likewise.
11126 * hpread.c (hpread_function_type): Likewise.
11127
7fd60527
AC
111282002-01-20 Andrew Cagney <ac131313@redhat.com>
11129
11130 * configure.in (host_makefile_frag): Only require a host makefile
11131 fragment when a native build.
11132 * configure: Re-generate.
11133
c2f05ac9
AC
111342002-01-20 Andrew Cagney <ac131313@redhat.com>
11135
11136 * doublest.h (floatformat_from_type): Declare.
11137 * doublest.c (floatformat_from_type): New function.
11138 (convert_typed_floating): Use.
11139
11140 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11141 call to function floatformat_from_type.
11142
11143 * gdbarch.sh (IEEE_FLOAT): Delete.
11144 * gdbarch.h, gdbarch.c: Re-generate.
11145 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11146 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11147 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11148 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11149 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11150 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11151 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11152 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11153 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11154 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11155 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11156 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11157
11158 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11159 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11160 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11161 * sh-tdep.c (sh_gdbarch_init): Ditto.
11162 * mips-tdep.c (mips_gdbarch_init): Ditto.
11163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11164 * cris-tdep.c (cris_gdbarch_init): Ditto.
11165
abf22e64
AJ
111662002-01-20 Jiri Smid <smid@suse.cz>
11167
11168 * configure.host, configure.tgt: Support x86-64.
11169 * NEWS: Note new target x86-64.
11170
b7c4cbf8
AJ
11171 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11172 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11173 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11174 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11175 x86-64-linux-nat.o): Fix dependencies.
11176
82600034
AC
111772002-01-19 Andrew Cagney <ac131313@redhat.com>
11178
11179 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11180 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11181 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11182 * config/sparc/xm-sun4os4.h: Delete file.
11183 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11184
bbe5c628
AC
111852002-01-19 Andrew Cagney <ac131313@redhat.com>
11186
11187 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11188 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11189 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11190 * config/i386/i386lynx.mh (XM_FILE): Delete.
11191 * config/rs6000/xm-rs6000ly.h: Delete file.
11192 * config/sparc/xm-sparclynx.h: Delete file.
11193 * config/m68k/xm-m68klynx.h: Delete file.
11194 * config/i386/xm-i386lynx.h: Delete file.
11195 * config/xm-lynx.h: Delete file.
11196 * config/djgpp/fnchange.lst: Update.
11197
f8453e34
JT
111982002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11199
11200 * alpha-tdep.c (alpha_register_byte): New function.
11201 (alpha_register_raw_size): Ditto.
11202 (alpha_register_virtual_size): Ditto.
11203 (alpha_skip_prologue_internal): Renamed from
11204 alpha_skip_prologue.
11205 (alpha_skip_prologue): New version that calls
11206 alpha_skip_prologue_internal.
11207 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11208 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11209 second argument from alpha_skip_prologue.
11210 (REGISTER_BYTE): Use alpha_register_byte.
11211 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11212 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11213 (FRAMELESS_FUNCTION_INVOCATION): Use
11214 generic_frameless_function_invocation_not.
11215 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11216 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11217
52d9e613
AC
112182002-01-19 Andrew Cagney <ac131313@redhat.com>
11219
11220 * config/mips/xm-news-mips.h: Delete file.
11221 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11222
11223 * config/m88k/xm-m88k.h: Delete file.
11224 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11225 * config/m88k/xm-delta88v4.h: Ditto.
11226 * config/m88k/xm-delta88.h: Ditto.
11227
11228 * config/alpha/xm-fbsd.h: Delete file.
11229 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11230
11231 * config/sparc/xm-sparc.h: Delete file.
11232 * Makefile.in (xm-sun4os4.h): Delete dependency.
11233 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11234 * config/sparc/xm-sun4os4.h: Ditto.
11235 * config/sparc/xm-linux.h: Ditto.
11236
11237 * config/i386/xm-windows.h: Delete file.
11238
2d1b2124
AC
112392002-01-19 Andrew Cagney <ac131313@redhat.com>
11240
11241 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11242 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11243
ee1f65f0
JT
112442002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11245
11246 * alpha-tdep.c (alpha_call_dummy_words): New.
11247 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11248 (CALL_DUMMY_P): Define.
11249 (CALL_DUMMY_WORDS): Define.
11250 (SIZEOF_CALL_DUMMY_WORDS): Define.
11251
98081e55
PB
112522002-01-19 Per Bothner <per@bothner.com>
11253
11254 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11255 isn't NULL, which can happen with some gcj-3.x-produced code.
11256
0d056799
JT
112572002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11258
11259 * alpha-tdep.c (alpha_register_virtual_type): New function.
11260 (alpha_init_frame_pc_first): Ditto.
11261 (alpha_fix_call_dummy): Ditto.
11262 (alpha_store_struct_return): Ditto.
11263 (alpha_extract_struct_value_address): Ditto.
11264 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11265 alpha_register_virtual_type.
11266 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11267 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11268 alpha_extract_struct_value_address.
11269 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11270 (INIT_FRAME_PC): Use init_frame_pc_noop.
11271 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11272
4604bcad
MK
112732002-01-19 Mark Kettenis <kettenis@gnu.org>
11274
11275 * i386gnu-nat.c: Include "i386-tdep.h".
11276 (fetch_fpregs): Simplify code dealing with uninitialized floating
11277 point states such that it doesn't require FP7_REGNUM.
11278
140f9984
JT
112792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11280
abf22e64
AJ
11281 * alpha-tdep.c (frame_extra_info): New.
11282 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11283 frame->extra_info.
11284 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11285 (alpha_frame_saved_pc): Use frame->extra_info.
11286 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11287 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11288 (init_extra_frame_info): Rename to...
11289 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11290 (alpha_print_extra_frame_info): New function.
140f9984
JT
11291 (alpha_frame_locals_address): Ditto.
11292 (alpha_frame_args_address): Ditto.
abf22e64 11293 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11294 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11295 alpha_frame_args_address.
abf22e64 11296 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11297 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11298 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11299 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11300 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11301 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11302
d734c450
JT
113032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11304
11305 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11306 (alpha_cannot_fetch_register): Ditto.
11307 (alpha_cannot_store_register): Ditto.
11308 (alpha_register_convertible): Ditto.
11309 (alpha_use_struct_convention): Ditto.
11310 * config/alpha/tm-alpha.h: Update copyright years.
11311 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11312 (INNER_THAN): Use core_addr_lessthan.
11313 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11314 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11315 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11316 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11317 (FRAME_CHAIN): Remove unnecessary cast.
11318
b4ceaee6
AC
113192002-01-18 Andrew Cagney <ac131313@redhat.com>
11320
11321 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11322 obsolete.
11323
0a65a603
AC
113242002-01-18 Andrew Cagney <ac131313@redhat.com>
11325
11326 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11327 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11328 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11329 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11330 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11331 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11332 * x86-64-linux-nat.c: Ditto.
11333
636a6dfc
JT
113342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11335
abf22e64 11336 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11337 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11338 (REGISTER_NAME): Define.
11339
acceddb6
JT
113402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11341
11342 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11343
ec32e4be
JT
113442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11345
11346 * alpha-tdep.c: Update copyright years.
11347 (alpha_next_pc): New function.
11348 (alpha_software_single_step): Ditto.
11349 * config/alpha/tm-alpha.h: Add prototype for
11350 alpha_software_single_step.
11351
e771a871
JT
113522002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11353
11354 * alphabsd-nat.c: Update copyright years.
11355 (fill_gregset): Use regcache_collect.
11356 (fill_fpregset): Likewise.
11357 (fetch_inferior_registers): Only fetch integer registers
11358 if requested to do so.
11359 (store_inferior_registers): Only store integer registers
11360 if requested to do so.
11361
7708fa01
AC
113622002-01-17 Andrew Cagney <ac131313@redhat.com>
11363
11364 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11365 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11366 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11367 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11368 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11369 * config/arm/linux.mh (XDEPFILES): Delete.
11370 * config/arm/nbsd.mh (XDEPFILES): Delete.
11371 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11372 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11373 * config/i386/i386m3.mh (XDEPFILES): Delete.
11374 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11375 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11376 * config/i386/fbsd.mh (XDEPFILES): Delete.
11377 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11378 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11379 * config/i386/i386v4.mh (XDEPFILES): Delete.
11380 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11381 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11382 * config/i386/i386aix.mh (XDEPFILES): Delete.
11383 * config/i386/go32.mh (XDEPFILES): Delete.
11384 * config/i386/cygwin.mh (XDEPFILES): Delete.
11385 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11386 * config/i386/i386mach.mh (XDEPFILES): Delete.
11387 * config/i386/i386v32.mh (XDEPFILES): Delete.
11388 * config/i386/linux.mh (XDEPFILES): Delete.
11389 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11390 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11391 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11392 * config/i386/i386sco.mh (XDEPFILES): Delete.
11393 * config/i386/i386v.mh (XDEPFILES): Delete.
11394 * config/i386/nbsd.mh (XDEPFILES): Delete.
11395 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11396 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11397 * config/i386/symmetry.mh (XDEPFILES): Delete.
11398 * config/i386/obsd.mh (XDEPFILES): Delete.
11399 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11400 * config/ia64/linux.mh (XDEPFILES): Delete.
11401 * config/ia64/aix.mh (XDEPFILES): Delete.
11402 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11403 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11404 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11405 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11406 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11407 * config/m68k/linux.mh (XDEPFILES): Delete.
11408 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11409 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11410 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11411 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11412 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11413 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11414 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11415 * config/m88k/delta88.mh (XDEPFILES): Delete.
11416 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11417 * config/m88k/m88k.mh (XDEPFILES): Delete.
11418 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11419 * config/mips/linux.mh (XDEPFILES): Delete.
11420 * config/mips/irix6.mh (XDEPFILES): Delete.
11421 * config/mips/irix5.mh (XDEPFILES): Delete.
11422 * config/mips/irix4.mh (XDEPFILES): Delete.
11423 * config/mips/irix3.mh (XDEPFILES): Delete.
11424 * config/mips/decstation.mh (XDEPFILES): Delete.
11425 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11426 (NATDEPFILES): Move core-aout.o to here.
11427 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11428 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11429 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11430 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11431 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11432 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11433 * config/pa/hpux11.mh (XDEPFILES): Delete.
11434 * config/powerpc/aix.mh (XDEPFILES): Delete.
11435 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11436 * config/powerpc/linux.mh (XDEPFILES): Delete.
11437 * config/romp/rtbsd.mh: Rename XDEPFILES.
11438 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11439 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11440 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11441 * config/s390/s390.mh (XDEPFILES): Delete.
11442 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11443 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11444 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11445 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11446 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11447 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11448 * config/sparc/linux.mh (XDEPFILES): Delete.
11449 * config/vax/vaxult.mh (XDEPFILES): Delete.
11450 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11451 * Makefile.in (DEPFILES): Remove XDEPFILES.
11452
375fc983
AC
114532002-01-17 Andrew Cagney <ac131313@redhat.com>
11454
11455 * utils.c (internal_verror): Fix comments, default is yes not no.
11456 Update queries to match. Default to quit and dump core.
11457
8926118c
AC
114582002-01-17 Andrew Cagney <ac131313@redhat.com>
11459
11460 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11461 copyright.
11462 * defs.h, event-top.c, gdbcmd.h: Ditto.
11463 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11464 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11465 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11466 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11467 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11468 * mi/mi-main.c:Ditto.
11469
11470 * stack.c, symfile.c: Update copyright.
11471
45b7b345
DJ
114722002-01-17 Daniel Jacobowitz <drow@mvista.com>
11473
db728ff7
DJ
11474 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11475 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11476 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11477 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11478
db728ff7
DJ
114792002-01-17 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11482 * gdbserver/low-lynx.c (myattach): Likewise.
11483 * gdbserver/low-nbsd.c (myattach): Likewise.
11484 * gdbserver/low-sim.c (myattach): Likewise.
11485 * gdbserver/low-sparc.c (myattach): Likewise.
11486 * gdbserver/low-sun3.c (myattach): Likewise.
11487
11488 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11489
db728ff7 11490 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11491 (main): Handle "--attach".
11492
8de3c354
AC
114932002-01-16 Andrew Cagney <ac131313@redhat.com>
11494
11495 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11496 maintainer.
11497
b0129042
DJ
114982002-01-15 Daniel Jacobowitz <drow@mvista.com>
11499
11500 * c-typeprint.c (is_type_conversion_operator): Add additional
11501 check for non-conversion operators.
11502
ba8679fb 115032002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11504
11505 * linux-proc.c: Add "info proc" command, a la procfs.c.
11506 (read_mapping): New function, abstract and re-use code.
11507 (linux_find_memory_regions): Use new func read_mapping.
11508 (linux_info_proc_cmd): New function, implement "info proc".
11509 (_initialize_linux_proc): Add new command "info proc".
11510
e4f9b4d5
MS
115112002-01-15 Michael Snyder <msnyder@redhat.com>
11512
11513 * symfile.c (generic_load): Use bfd_map_over_sections method
11514 instead of manipulating bfd structure members directly.
11515 (add_section_size_callback): New function, bfd sections callback
11516 used by generic_load.
11517 (load_sections_callback): New function, bfd sections callback
11518 used by generic_load.
11519
08cf96df
EZ
115202002-01-15 Elena Zannoni <ezannoni@redhat.com>
11521
abf22e64 11522 [Based on work by Jim Blandy]
08cf96df
EZ
11523 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11524 (builtin_type_vec128): Export.
11525 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11526 types.
11527 (builtin_type_vec128): New builtin type for 128 bit vector
11528 registers.
11529 (build_gdbtypes): Initialize builtin_type_v16qi and
11530 builtin_type_v8hi. Create the vec128 register builtin type
11531 structure.
11532 (build_builtin_type_vec128): New function.
abf22e64 11533 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11534 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11535 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11536 AltiVec register to new builtin type.
11537
d7242108
DJ
115382001-01-15 Daniel Jacobowitz <drow@mvista.com>
11539
11540 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11541 to make_cv_type.
11542
4ee3352d
AC
115432002-01-14 Andrew Cagney <ac131313@redhat.com>
11544
11545 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11546 CLEAN_UP_REGISTER_VALUE.
11547 * regcache.c (supply_register): Update only call.
11548
f015b2e7
AC
115492002-01-14 Andrew Cagney <ac131313@redhat.com>
11550
11551 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11552 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11553 a29k-*-vxworks* targets as obsolete.
11554
356ae49d
MS
115552002-01-14 Michael Snyder <msnyder@redhat.com>
11556
11557 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11558 until we can resolve portability issues.
11559 * gregset.h: Remove references to fpxregs.
11560 * gcore.c (gcore_command): Initialize note_sec to NULL.
11561
ade8f45e
AC
115622002-01-13 Andrew Cagney <ac131313@redhat.com>
11563
11564 * signals.c (target_signal_to_name): Rewrite. Only use
11565 signals[].name when in bounds and non-NULL.
abf22e64 11566
89c49e7a
AC
115672002-01-13 Andrew Cagney <ac131313@redhat.com>
11568
11569 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11570 * signals.c (target_signal_to_name): Verify that SIG is within the
11571 bounds of the signals array.
11572
4daa9f9f
AC
115732002-01-13 Andrew Cagney <ac131313@redhat.com>
11574
11575 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11576
ba4bbdcb
KS
115772002-01-13 Keith Seitz <keiths@redhat.com>
11578
11579 * stack.c (print_frame_info_base): Print the frame's pc
11580 only if when print_frame_info_listing_hook is not defined.
11581
575bbeb6
KS
115822002-01-13 Keith Seitz <keiths@redhat.com>
11583
11584 * varobj.c (varobj_set_value): Make sure that there were no
11585 errors evaluating the object before attempting to set its
11586 value.
11587 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11588 so this offset adjustment is no longer necessary.
11589 (create_child): Don't set the error flag if the child is
11590 a CPLUS_FAKE_CHILD.
11591 (value_of_child): If value_fetch_lazy fails, return NULL
11592 so that callers will be notified that an error occurred.
11593 (c_value_of_variable): Delay check of variable's validity
11594 until later. We actually want all structs and unions to have
11595 the value "{...}".
11596 Do not return "???" for variables which could not be evaluated.
11597 This error condition must be returned to the caller so that it
11598 can get the error condition from gdb.
11599 (cplus_name_of_child): Adjust index for vptr before figuring
11600 out the name of the child.
11601 (cplus_value_of_child): If a child's (real) parent is not valid,
11602 don't even bother trying to give a value for it. Just return
11603 an error. Change all instances in this function.
11604 (cplus_type_of_child): If our parent is one of the "fake"
11605 parents, we need to get at the type of the real parent, and
11606 derive the child's true type using this information.
11607
b76898ab
AC
116082002-01-13 Andrew Cagney <ac131313@redhat.com>
11609
11610 From 2002-01-09 John Marshall <johnm@falch.net>:
11611 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11612 sources.redhat.com, and tweak some related URLs which had
11613 suffered from linkrot.
11614
b6649e88
AC
116152002-01-13 Andrew Cagney <ac131313@redhat.com>
11616
11617 From Jeff law:
11618 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11619 structures passed in registers.
11620
82cc5033
EZ
116212002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11622
11623 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11624 white space which prevented compilation. Reported by DSK
11625 <dsk@student.unsw.edu.au>.
11626
ba5f2f8a
MS
116272002-01-11 Michael Snyder <msnyder@redhat.com>
11628
fbd35540
MS
11629 * symfile.c (build_section_addr_info_from_section_tab):
11630 Use bfd access method instead of manipulating bfd directly.
11631 (syms_from_objfile): Ditto.
11632 (simple_overlay_update_1): Ditto.
11633 (simple_overlay_update): Ditto.
11634 (generic_load): Ditto.
11635 (overlay_unmapped_address): FIXME comment, bfd access methods.
11636 (sections_overlap): FIXME comment, bfd access methods.
11637 (pc_in_mapped_range): FIXME comment, bfd access methods.
11638 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11639 (section_is_mapped): FIXME comment, bfd access methods.
11640 (section_is_overlay): FIXME comment, bfd access methods.
11641
ba5f2f8a
MS
11642 * symfile.c (generic_load): Whitespace and long line cleanups.
11643 Remove duplicate variable, change several local variables to
11644 more appropriate data types.
11645 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11646
17df2af6
AC
116472002-01-12 Andrew Cagney <ac131313@redhat.com>
11648
11649 From Peter Schauer:
11650 * language.c (longest_local_hex_string_custom): Use phex_nz to
11651 convert NUM to a hex string.
11652
ec920329
EZ
116532002-01-12 Elena Zannoni <ezannoni@redhat.com>
11654
11655 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11656 the function.
538a76d6 11657 Update Copyright year.
ec920329 11658
3abd2e01
AC
116592002-01-12 Andrew Cagney <ac131313@redhat.com>
11660
11661 * language.c (longest_raw_hex_string): Delete unused function.
11662
b21b22e0
PS
116632002-01-11 Petr Sorfa <petrs@caldera.com>
11664
11665 * MAINTAINERS (write-after-approval): Add myself.
11666 * dwarf2read.c (read_tag_string_type): Handling of
11667 DW_AT_byte_size.
11668 (read_tag_string_type): FORTRAN fix to prevent propagation of
11669 first string size.
11670 (set_cu_language): Handling of DW_LANG_Fortran95
11671
747fe712
RE
116722002-01-11 Richard Earnshaw <rearnsha@arm.com>
11673
11674 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11675 GETPID(inferior_ptid).
11676 (store_inferior_registers): Likewise.
11677
f1bea926
JM
116782002-01-10 Jason Merrill <jason@redhat.com>
11679
11680 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11681 Fix DW_OP_minus.
11682
ae940673
AC
116832002-01-10 Andrew Cagney <ac131313@redhat.com>
11684
11685 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11686 and bfd/elf32-sh-nbsd.c.
11687
00546b04
MS
116882002-01-10 Michael Snyder <msnyder@redhat.com>
11689
352ed7b4
MS
11690 * NEWS: Mention --pid and corefile/proc-id behavior change.
11691
c18be923
MS
11692 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11693 * gcore.c: Include cli/cli-decode.h instead of command.h.
11694
00546b04
MS
11695 * main.c (captured_main): Add new command line option "--pid".
11696 If the second command line argument (following the symbol-file)
11697 begins with a digit, try to attach to it before trying to open
11698 it as a corefile.
11699 (print_gdb_help): Document the "--pid" argument.
11700
db60ec62
EZ
117012002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11702
11703 * completer.c (command_completer): New function.
11704
11705 * completer.h <command_completer>: Add prototype.
11706
11707 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11708 completer for the "help" command.
11709
39c22d1a
JM
117102002-01-09 Jason Merrill <jason@redhat.com>
11711
11712 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11713
c564377f
MS
117142002-01-09 Michael Snyder <msnyder@redhat.com>
11715
975aec09
MS
11716 * i386-linux-nat.c (fill_fpxregset): Make global.
11717 (store_fpxregset): Ditto.
11718
db4a10fa
MS
11719 * gregset.h (gdb_fpxregset_t): Define.
11720 (supply_fpxregset): Prototype.
11721 (fill_fpxregset): Prototype.
11722
c564377f
MS
11723 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11724
c3d45d70
RE
117252002-01-09 Richard Earnshaw <rearnsha@arm.com>
11726
11727 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11728 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11729 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11730
fcc87af1
AC
117312002-01-09 Andrew Cagney <ac131313@redhat.com>
11732
11733 * MAINTAINERS: Update target maintainer rules so that any
11734 Maintainer can approve a tested patch for a maintenance-only
11735 target.
11736
dd96c05b
RE
117372002-01-09 Richard Earnshaw <rearnsha@arm.com>
11738
d4297db9 11739 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11740
d4297db9 11741 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11742 IN_SIGTRAMP.
11743
145fdc6e
MS
117442002-01-08 Michael Snyder <msnyder@redhat.com>
11745
11746 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11747 real name of the executable, rather than the /proc name.
11748
be4d1333
MS
117492002-01-03 Michael Snyder <msnyder@redhat.com>
11750
11751 Implement a "generate-core-file" command in gdb, save target state.
11752 * gcore.c: New file. Implement new command 'generate-core-file'.
11753 Save a corefile image of the current state of the inferior.
11754 * linux-proc.c: Add linux-specific code for saving corefiles.
11755 * target.h (struct target_ops): Add new target vectors for saving
11756 corefiles; to_find_memory_regions and to_make_corefile_notes.
11757 (target_find_memory_regions): New macro.
11758 (target_make_corefile_notes): New macro.
11759 * target.c (update_current_target): Inherit new target methods.
11760 (dummy_find_memory_regions): New place-holder method.
11761 (dummy_make_corefile_notes): New place-holder method.
11762 (init_dummy_target): Initialize new dummy target vectors.
11763 * exec.c (exec_set_find_memory_regions): New function.
11764 Allow the exec_ops vector for memory regions to be taken over.
11765 (exec_make_note_section): New function, target vector method.
11766 * defs.h (exec_set_find_memory_regions): Export prototype.
11767 * procfs.c (proc_find_memory_regions): New function, corefile method.
11768 (procfs_make_note_section): New function, corefile method.
11769 (init_procfs_ops): Set new target vector pointers.
11770 (find_memory_regions_callback): New function.
11771 (procfs_do_thread_registers): New function.
11772 (procfs_corefile_thread_callback): New function.
11773 * sol-thread.c (sol_find_memory_regions): New function.
11774 (sol_make_note_section): New function.
11775 (init_sol_thread_ops): Initialize new target vectors.
11776 * inftarg.c (inftarg_set_find_memory_regions): New function.
11777 Allow to_find_memory_regions vector to be taken over.
11778 (inftarg_set_make_corefile_notes): New function.
11779 Allow to_make_corefile_notes vector to be taken over.
11780 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11781 interface layer if not target_has_execution (may be a corefile).
11782 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11783 * config/sparc/sun4sol2.mh: Ditto.
11784 * config/alpha/alpha-linux.mh: Ditto.
11785 * config/arm/linux.mh: Ditto.
11786 * config/i386/x86-64linux.mh: Ditto.
11787 * config/ia64/linux.mh: Ditto.
11788 * config/m68k/linux.mh: Ditto.
11789 * config/mips/linux.mh: Ditto.
11790 * config/powerpc/linux.mh: Ditto.
11791 * config/sparc/linux.mh: Ditto.
11792
c6b92abd
MS
117932002-01-07 Michael Snyder <msnyder@redhat.com>
11794
11795 * arm-linux-nat.c: Remove references to regcache.c internal data
11796 (registers[] and register_valid[]).
11797
4b09dc8c
MS
117982002-01-07 Michael Snyder <msnyder@redhat.com>
11799
abf22e64
AJ
11800 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11801 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11802 symbol file and shlibs.
11803 * Makefile.in: Add rule for linux-proc.o.
11804 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11805 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11806 * config/arm/linux.mh: Ditto.
11807 * config/i386/linux.mh: Ditto.
11808 * config/i386/x86-64linux.mh: Ditto.
11809 * config/ia64/linux.mh: Ditto.
11810 * config/m68k/linux.mh: Ditto.
11811 * config/mips/linux.mh: Ditto.
11812 * config/powerpc/linux.mh: Ditto.
11813 * config/sparc/linux.mh: Ditto.
11814
c25b74ac
PM
118152002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11816
11817 * win32-nat.c: Add i386-tdep.h dependency.
11818
94cd915f
MS
118192002-01-07 Michael Snyder <msnyder@redhat.com>
11820
c7cccb76
MS
11821 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11822 instead of bfd_get_arch_size. Don't bail out just because
11823 there's no exec_bfd.
abf22e64 11824
34c0bd93
MS
11825 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11826 * p-valprint.c (pascal_object_print_value): Ditto.
11827 * somread.c (som_symtab_read): Ditto.
11828 * symfile.c (simple_free_overlay_region_table): Ditto.
11829 * valops.c (value_assign): Ditto.
11830
21c1c920
MS
11831 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11832 use tilde_expand and strerror for opening save-tracepoints file.
11833
5bbd998e
MS
11834 * thread-db.c (thread_db_new_objfile): Indendation fix.
11835
94cd915f
MS
11836 * infptrace.c (GDB_MAX_ALLOCA): New define.
11837 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11838 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11839 can be overridden with whatever value is appropriate to the host).
11840 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11841 alloca to allocate potentially large buffer.
11842 * rs6000-nat.c (child_xfer_memory): Ditto.
11843 * symm-nat.c (child_xfer_memory): Ditto.
11844 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11845
494e8a93
JSC
118462002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11847
11848 From Nick Clifton <nickc@redhat.com>
11849 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11850
d0e1d48e
MS
118512002-01-07 Michael Snyder <msnyder@redhat.com>
11852
abf22e64 11853 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11854 Don't use exec_bfd if it's NULL.
11855
290b2c7a
MK
118562002-01-06 Mark Kettenis <kettenis@gnu.org>
11857
abf22e64 11858 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11859
aef21287
AC
118602002-01-06 Andrew Cagney <ac131313@redhat.com>
11861
11862 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11863 * gnu-nat.c: Ditto.
11864
30efa627
AC
118652002-01-06 Andrew Cagney <ac131313@redhat.com>
11866
11867 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11868 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11869 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11870 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11871 z8k-coff have not been multi-arched. Update z8k-coff build
11872 status.
11873
9b4ff276
AC
118742002-01-06 Andrew Cagney <ac131313@redhat.com>
11875
11876 * MAINTAINERS: Mark a29k target as obsolete.
11877 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11878 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11879 comments.
11880 * NEWS: Note that a29k targets are obsolete.
11881 * a29k-tdep.c: Mark as obsolete.
11882 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11883 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11884 a29k-*-vxworks* targets as obsolete.
11885 * remote-adapt.c: Obsolete.
11886 * remote-eb.c: Obsolete.
11887 * remote-mm.c: Obsolete.
11888 * remote-udi.c: Obsolete.
11889 * config/a29k/a29k-udi.mt: Obsolete.
11890 * config/a29k/a29k.mt: Obsolete.
11891 * config/a29k/tm-a29k.h: Obsolete.
11892 * config/a29k/tm-vx29k.h: Obsolete.
11893 * config/a29k/vx29k.mt: Obsolete.
11894
a9011d31
AC
118952002-01-05 Andrew Cagney <ac131313@redhat.com>
11896
11897 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11898 with BFD_ENDIAN_BIG.
11899
9299404e
AC
119002002-01-05 Andrew Cagney <ac131313@redhat.com>
11901
11902 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11903 * configure, config.in: Re-generate.
11904 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11905 * defs.h: Do not include <endian.h>.
11906
7e89e357
JT
119072002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11908
11909 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11910 * config.in: Regenerate.
11911 * configure.in: Update copyright years.
11912 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11913 * configure: Regenerate.
11914 * i386bsd-nat.c: Update copyright years.
11915 (fill_gregset): Use regcache_collect.
11916 (fetch_inferior_registers): Only fetch integer registers
11917 if requested to do so. Add support for XMM registers
11918 using PT_GETXMMREGS.
11919 (store_inferior_registers): Only store integer registers
11920 if requested to do so. Add support for XMM registers
11921 using PT_SETXMMREGS.
11922 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11923 (store_inferior_registers): Remove.
11924 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11925 (fetch_elfcore_registers): New function.
11926 (i386nbsd_elfcore_fns): New.
11927 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11928 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11929 i386bsd-nat.o.
11930 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11931 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11932 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11933 * config/i386/tm-nbsd.h: Update copyright years.
11934 (HAVE_SSE_REGS): Define.
11935 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11936 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11937 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11938 (SIGCONTEXT_PC_OFFSET): Remove.
11939 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11940
a752853e
AC
119412002-01-05 Andrew Cagney <ac131313@redhat.com>
11942
11943 * configure.tgt: Remove powerpc-*-macos* target.
11944 * config/m68k/xm-mpw.h: Delete file.
11945 * config/xm-mpw.h: Delete file.
11946 * ser-mac.c: Delete file.
11947 * mpw-make.sed: Delete file.
11948 * mpw-config.in: Delete file.
11949 * mac-xdep.c: Delete file.
11950 * mac-gdb.r: Delete file.
11951 * mac-defs.h: Delete file.
11952 * mac-nat.c: Delete file.
11953 * config/powerpc/macos.mh: Delete file.
11954 * config/powerpc/macos.mt: Delete file.
11955 * config/powerpc/nm-macos.h: Delete file.
11956 * config/powerpc/tm-macos.h: Delete file.
11957 * source.c (openp, open_source_file): Remove obsolete code.
11958 * top.c (gdb_readline): Ditto.
11959 * utils.c (query): Ditto.
11960 * event-top.c (display_gdb_prompt): Ditto.
11961 * Makefile.in (ser-mac.o): Delete obsolete target.
11962 * NEWS: Update.
11963
d7449b42
AC
119642002-01-04 Andrew Cagney <ac131313@redhat.com>
11965
11966 * defs.h (BIG_ENDIAN): Delete macro definition.
11967 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11968 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11969 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11970 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11971 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11972 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11973 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11974 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11975 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11976 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11977 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11978 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11979 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11980 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11981 * gdbarch.c: Re-generate.
11982
356374e8
DJ
119832002-01-04 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11986 for core files.
11987
a2b8f8f8
JT
119882002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11989
11990 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11991
12466af9
AC
119922002-01-04 Andrew Cagney <ac131313@redhat.com>
11993
11994 * value.h (value_ptr): Delete typedef.
11995
3549ab40
JT
119962002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11997
11998 * i386nbsd-nat.c: Update copyright years.
11999 Include i386-tdep.h.
12000
fedbd091
EZ
120012002-01-04 Elena Zannoni <ezannoni@redhat.com>
12002
12003 * stabsread.c: Update copyright years.
12004
12005 From Debashis Mahata <debashis.mahata@wipro.com>:
12006 (read_struct_fields): Deal with Sun C compiler erroneous stab
12007 output for structs and unions.
fec8b34f 12008 Fix PR gdb/269.
fedbd091 12009
eb43544b
DJ
120102002-01-04 Daniel Jacobowitz <drow@mvista.com>
12011
12012 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12013 prototype.
12014
1514d34e
DJ
120152002-01-04 Daniel Jacobowitz <drow@mvista.com>
12016
12017 * cp-abi.c: Fix whitespace.
12018 (baseclass_offset): New wrapper function.
12019 * cp-abi.h (baseclass_offset): Add prototype.
12020 (struct cp_abi_ops): Add baseclass_offset pointer.
12021
12022 * valops.c (vb_match): Move to...
12023 * gnu-v2-abi.c (vb_match): here.
12024 * valops.c (baseclass_offset): Move to...
12025 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12026
12027 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12028
12029 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12030 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12031 * hpacc-abi.c (init_hpacc_ops): Likewise.
12032
7f8c9282
DJ
120332002-01-04 Daniel Jacobowitz <drow@mvista.com>
12034
12035 * valops.c (find_overload_match): Accept obj as a
12036 reference parameter. Update it before returning.
12037 * value.h (find_overload_match): Update prototype.
12038 * eval.c (evaluate_subexp_standard): Pass object to
12039 find_overload_match by reference.
12040
f23631e4
AC
120412002-01-03 Andrew Cagney <ac131313@redhat.com>
12042
12043 * valarith.c: Replace value_ptr with struct value pointer. Remove
12044 register attribute from value declarations.
12045 * valops.c: Ditto.
12046 * value.h: Ditto.
12047 * scm-lang.c (scm_lookup_name): Ditto.
12048
79e10fab 120492002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12050
79e10fab
AC
12051 Abstract the functionality of iterating over mapped memory
12052 regions into a general purpose iterator function.
abf22e64 12053 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12054 iterator for memory sections.
12055 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12056 (solib_mappings_callback): New function, callback for above.
12057 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12058 (info_mappings_callback): New function, callback for above.
12059
12060 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12061
c5ad026a
MK
120622002-01-01 Mark Kettenis <kettenis@gnu.org>
12063
d2a7c97a
MK
12064 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12065 * i386-tdep.c: Include "elf-bfd.h".
12066 (process_note_abi_tag_sections): New function.
12067 (i386_gdbarch_init): Add code to recognize various OS/ABI
12068 combinations.
12069
c5ad026a
MK
12070 * maint.c (_initialize_maint_cmds): Add missing \ in
12071 string-literal.
12072
a1a5b71e 12073For older changes see ChangeLog-2001
c906108c
SS
12074\f
12075Local Variables:
12076mode: change-log
12077left-margin: 8
12078fill-column: 74
12079version-control: never
12080End:
This page took 0.891038 seconds and 4 git commands to generate.