2002-10-23 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
88cda038
EZ
12002-10-23 Elena Zannoni <ezannoni@redhat.com>
2
3 * symtab.h: Update comment.
4
2625d86c
MS
52002-10-23 Michael Snyder <msnyder@redhat.com>
6
7 * printcmd.c (address_info): Restore quotes in output.
8 * valops.c (value_of_local): Restore quotes in error message.
9
9cc0d196
EZ
102002-10-23 Elena Zannoni <ezannoni@redhat.com>
11
12 * symtab.c (symbol_demangled_name): New function.
13 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
14 turning most of it into a function.
15 (symbol_demangled_name): Export.
16
19de93d0
MS
172002-10-23 Michael Snyder <msnyder@redhat.com>
18
19 * valops.c (value_of_local): Restore quotes in error message.
20
89aad1f9
EZ
212002-10-23 Elena Zannoni <ezannoni@redhat.com>
22
23 * symtab.c (symbol_init_language_specific): New function.
24 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
25 turning most of it into a function.
26 (symbol_init_language_specific): Export.
27
d9fa45fe
DC
282002-10-23 David Carlton <carlton@math.stanford.edu>
29
30 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
31 (dwarf_attr_name): Ditto.
32 (dwarf_type_encoding_name): Ditto.
33 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
34 (process_die): Handle DW_TAG_namespace,
35 DW_TAG_imported_declaration, DW_TAG_imported_module.
36 (read_namespace): New function.
37
1045b512
JB
382002-10-22 Joel Brobecker <brobecker@gnat.com>
39
40 * configure.in: Define NEW_PROC_API on Interix too.
41 * configure: Regenerate.
42
432002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
44
45 * configure: Regenerate using the proper version of autoconf.
46
3987b9d4
EZ
472002-10-21 Elena Zannoni <ezannoni@redhat.com>
48
49 * findvar.c (read_var_value): Temporarily disable TLS code, until
50 complete TLS support is added.
51
9d774e44
EZ
522002-10-21 Jim Blandy <jimb@redhat.com>
53 Elena Zannoni <ezannoni@redhat.com>
54
55 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
56 for thread local storage locations.
57 (struct symbol): Add objfile field.
58 (SYMBOL_OBJFILE): Define.
59 * dwarf2read.c (is_thread_local): New static variable.
60 (new_symbol): If variable is in thread local fill in address class
61 and objfile appropriately.
62 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
63 stack operation.
64 * printcmd.c (address_info): Print the information for thread
65 local storage variable.
66 * findvar.c (read_var_value): In case of thread local variable,
67 defer to the target vector code to compute address.
68
bc4a16ae
EZ
692002-10-21 Elena Zannoni <ezannoni@redhat.com>
70
71 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
72 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
73
407caf07
EZ
742002-10-21 Elena Zannoni <ezannoni@redhat.com>
75
76 * symtab.h (address_class): Rename
77 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
78 * hpread.c (hpread_process_one_debug_symbol): Ditto.
79 * printcmd.c (address_info): Ditto.
80 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
81
005328e3
MK
822002-10-20 Mark Kettenis <kettenis@gnu.org>
83
afdb036a
MK
84 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
85 DBREG_DRX macro to acces debug registers.
86
ca02e098
MK
87 * Makefile.in (i386obsd-tdep.o): New target.
88
03cc47f7
MK
89 * solib-sunos.c: Include "bcache.h" and "regcache.h".
90 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
91
005328e3
MK
92 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
93 * config/i386/obsd.mt: New file.
94 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
95 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
96 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
97 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
98 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
99 * i386obsd-tdep.c: New file.
100
9c96f9f2
AF
1012002-10-19 Adam Fedor <fedor@gnu.org>
102
103 * objc-exp.y (name_not_typename): Fix invalid comment.
104
ce1ed485
MK
1052002-10-20 Mark Kettenis <kettenis@gnu.org>
106
107 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
108 to allocate partial syms and macro byte caches.
109
1efc7aaa
DC
1102002-10-18 David Carlton <carlton@math.stanford.edu>
111
112 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
113
7e1d63ec
AF
1142002-10-18 Adam Fedor <fedor@gnu.org>
115
116 * stabsread.c (find_name_end): New function.
117 (define_symbol): Use it.
118
6e8d29a9
DJ
1192002-10-18 Daniel Jacobowitz <drow@mvista.com>
120
121 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
122 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
123 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
124 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
125
1efc7aaa 1262002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
127
128 * symfile.h: Add opaque declaration for struct obstack.
129 Declare obsavestring to take a const char *.
130 * symfile.c (obsavestring): Make first argument a const char *.
131
1aeae86e
AF
1322002-10-16 Adam Fedor <fedor@gnu.org>
133
134 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
135 names when matching breakpoints in current file.
136
8b2dbe47
KB
1372002-10-16 Kevin Buettner <kevinb@redhat.com>
138
139 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
140 (read_tag_pointer_type): Add address class support.
141 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
142 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
143 New methods.
144 * gdbarch.h, gdbarch.c: Regenerate.
145 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
146 (make_type_with_address_space, recursive_type_dump): Add address
147 class support.
148 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
149 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
150 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
151
74451869
KD
1522002-10-16 Klee Dienes <kdienes@apple.com>
153
154 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
155 to get the last character of a char[] buffer, not
156 name[sizeof(vptr_name)-1].
157
ff4cb3e8
AF
1582002-10-14 Adam Fedor <fedor@gnu.org>
159
160 * symtab.h: New objc_specific struct.
161 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
162 (SYMBOL_DEMANGLED_NAME): Likewise.
163
da2cf7e0
AF
1642002-10-14 Adam Fedor <fedor@gnu.org>
165
166 * symfile.c (init_filename_language_table): Add ObjC file extension.
167
4a351cef
AF
1682002-10-14 Adam Fedor <fedor@gnu.org>
169
170 * utils.c (puts_filtered_tabular): New function.
171 (fprintf_symbol_filtered): Get ObjC demangled name.
172 * defs.h (puts_filtered_tabular): Declared.
173
9750e763
KB
1742002-10-14 Kevin Buettner <kevinb@redhat.com>
175
176 * c-lang.h (c_type_print_varspec_prefix): Delete.
177 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
178 ``need_post_space'' parameter. Adjust all callers.
179
eee771c1
DJ
1802002-10-14 Daniel Jacobowitz <drow@mvista.com>
181
182 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
183 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
184 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
185 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
186
46c82446
AF
1872002-10-13 Adam Fedor <fedor@gnu.org>
188
189 * source.c (print_source_lines): Update comments.
190
d069f99d
AF
1912002-10-13 Adam Fedor <fedor@gnu.org>
192
193 * valops.c (value_of_local): New function.
194 (value_of_this): Use it.
195 * value.h (value_of_local): Declared.
196
53c551b7
AF
1972002-10-13 Adam Fedor <fedor@gnu.org>
198
199 * parse.c: (length_of_subexp, prefixify_subexp): Handle
200 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
201
eb392fbf
AF
2022002-10-12 Adam Fedor <fedor@gnu.org>
203
204 * language.c (binop_result_type): Add language_objc to case.
205 (integral_type): Likewise.
206 (character_type): Likewise.
207 (string_type): Likewise.
208 (boolean_type): Likewise.
209 (structured_type): Likewise.
210 (binop_type_check): Likewise.
211
e2b23ee9
AF
2122002-10-11 Adam Fedor <fedor@gnu.org>
213
214 * printcmd.c (address_info): Print 'self' for ObjC.
215
b01ab485
AF
2162002-10-11 Adam Fedor <fedor@gnu.org>
217
218 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
219 OP_SELF.
220
806e6073
AF
2212002-10-11 Adam Fedor <fedor@gnu.org>
222
223 * language.h (CAST_IS_CONVERSION): Add language_objc.
224
50f85cdf
AF
2252002-10-11 Adam Fedor <fedor@gnu.org>
226
227 * defs.h (enum language): Add language_objc.
228
0d540cdf
KD
2292002-10-11 Klee Dienes <kdienes@apple.com>
230
231 * findvar.c (read_memory_typed_address): New function.
232 * gdbcore.h (read_memory_typed_address): Add prototype.
233 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
234 to read a value destined for a CORE_ADDR, not read_memory_integer.
235 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
236 (f77_get_dynamic_lowerbound): Ditto.
237
d5dc7960
MH
2382002-10-11 Martin M. Hunt <hunt@redhat.com>
239
240 * utils.c (string_to_core_addr): After turning string into
241 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
242 which will do necessary sign-extension, etc.
243
8343f86c
DJ
2442002-10-11 Daniel Jacobowitz <drow@mvista.com>
245
246 * c-exp.y (THIS): Delete token and grammar rule.
247 (yylex): Don't return THIS.
248 * cp-valprint.c (vtbl_ptr_name_old): Delete.
249 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
250 * demangle.c (cplus_markers): Update comment. Put '$'
251 first. Remove CPLUS_MARKER.
252 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
253 * jv-exp.y (THIS): Delete token and grammar rule.
254 (yylex): Don't return THIS.
255 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
256 * objc-exp.y (THIS): Delete token and grammar rule.
257 (yylex): Don't return THIS.
258 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
259 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
260 (read_member_functions): Likewise for opname.
261 (read_tilde_fields): Use is_cplus_marker.
262
263 * defs.h (CPLUS_MARKER): Don't define.
264 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
265 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
266 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
267 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
268 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
269
270 * config/i386/tm-i386v4.h: Delete file.
271 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
272 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
273 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
274 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
275 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
276 * config/i386/i386sco5.mt (TM_FILE): Likewise.
277 * config/i386/i386v4.mt (TM_FILE): Likewise.
278 * config/i386/ncr3000.mt (TM_FILE): Likewise.
279
967c0d83
MM
2802002-10-10 Marko Mlinar <markom@opencores.org>
281
282 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
283 accidentially not commited 2002-10-09
284 * gdbarch.h, gdbarch.c: Re-generate.
285
f74fa174
MM
2862002-10-09 Marko Mlinar <markom@opencores.org>
287
288 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
289 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
290 * gdbarch.h, gdbarch.c: Re-generate.
291
57349743
JB
2922002-10-08 Petr Sorfa <petrs@caldera.com>
293
294 Revised and re-submitted by John Wolfe <jlw@caldera.com>
295
296 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
297 so we can work on more than one compilation unit at a time. This
298 helps prepare GDB to handle inter-CU die references.
299 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
300 the code to be defined before struct comp_unit_head.
301 (comp_unit_head): Added new members - offset, cu_head,
302 begin_die, next and dwarf2_abbrevs.
303 (dwarf2_abbrevs): Removed single static var; now member of
304 struct comp_unit_head.
305 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
306 members.
307 (psymtab_to_symtab_1): Changed to work with the new
308 struct comp_unit_head.
309 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
310 constructs the dwarf2_abbrevs[] inside the cu_header.
311 (dwarf2_empty_abbrev_table): Now expects a ptr to a
312 dwarf2_abbrev table to clean up.
313 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
314 handling of dwarf2_abbrevs inside the cu_header.
315 (read_partial_die): Now supports the call to the new
316 dwarf2_lookup_abbrev.
317 (read_full_die): Now supports the call to the new
318 dwarf2_lookup_abbrev.
319
4092aadb
CF
3202002-10-06 Christopher Faylor <cgf@redhat.com>
321
322 * Makefile.in (install-gdbtk): Add missing continuation backslash to
323 insure that shell variables, such as "transformed_name" are propagated
324 to later shell statements in rule.
325
af0b2512
MK
3262002-10-06 Mark Kettenis <kettenis@gnu.org>
327
328 * config/i386/nm-i386sco.h: Add protection against
329 multiple-inclusion. Include "i386/nm-i386v.h".
330 (REGISTER_U_ADDR): Remove define.
331 (i386_register_u_addr): Remove prototype.
332
d6020d45
MS
3332002-10-04 Michael Snyder <msnyder@redhat.com>
334
335 * m32r-stub.c (handle_exception): Make sure exception is "trap"
336 before treating it as a single-step event.
337
7248f48e
AF
3382002-10-03 Adam Fedor <fedor@gnu.org>
339
340 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
341 (objc_demangle): Remove assignment in if statements, Replace
342 free with xfree.
343 (add_msglist): Likewise.
344 (end_msglist): Likewise.
345 (complare_selectors): Likewise.
346 (selectors_info): Likewise.
347 (compare_classes): Likewise.
348 (classes_info): Likewise.
349 (print_object_command): Likewise.
350 (find_objc_msgcall_submethod): Replace PTR with void *.
351 * objc-lang.h: Remove check for __STDC__.
352
52c6a6ac
JJ
3532002-10-03 Jeff Johnston <jjohnstn@redhat.com>
354
355 * ui-out.h (ui_out_field_fmt_int): New prototype.
356 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
357 of field width and alignment.
358 * stack.c (print_frame_info_base): When printing frame level, use
359 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
360 PR gdb/192
361
7e3cec17
JJ
3622002-10-03 Jeff Johnston <jjohnstn@redhat.com>
363
364 * MAINTAINERS: Add self to Write After Approval list.
365
a58dd373
EZ
3662002-10-02 Elena Zannoni <ezannoni@redhat.com>
367
368 * infcmd.c (interrupt_target_command_wrapper): Delete.
369 (interrupt_target_command): Make non static.
370 (nofp_registers_info): Make static.
371 * stack.c (return_command_wrapper): Delete.
372 (return_command): Make non static.
373
cee6ddeb
EZ
3742002-10-02 Elena Zannoni <ezannoni@redhat.com>
375
376 * event-top.c (gdb_setup_readline): New function. Code moved from
377 _initialize_event_loop().
378 (_initialize_event_loop): Call gdb_setup_readline().
379
c4ed33b9
AC
3802002-10-02 Andrew Cagney <ac131313@redhat.com>
381
382 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
383 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
384 * gdbarch.h, gdbarch.c: Re-generate.
385
cef4f5dd
DJ
3862002-10-02 Daniel Jacobowitz <drow@mvista.com>
387
388 Fix PR gdb/778
389 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
390 before recursing.
391 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
392 of fill_in_vptr_fieldno.
393
36dc181b 3942002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 395
36dc181b
EZ
396 * inferior.h (registers_info, stepi_command, nexti_command,
397 continue_command, interrupt_target_command): Export from infcmd.c.
398 * frame.h (args_info, selected_frame_level_changed_hook,
399 return_command): Export from stack.c.
400 * v850ice.c (stepi_command, nexti_command, continue_command): use
401 prototypes from inferior.h.
402 * tracepoint.c (registers_info, args_info, locals_info): Use
403 prototypes from frame.h and inferior.h.
404 * Makefile.in (mi-main.o): Add dependency on frame.h.
405
6f99cb26
AC
4062002-10-02 Andrew Cagney <ac131313@redhat.com>
407
da3eff49
AC
408 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
409 value in register 3 adjusted by ppc_gp0_regnum.
410
6f99cb26
AC
411 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
412
da615bee
MM
4132002-10-02 Marko Mlinar <markom@opencores.org>
414
415 * MAINTAINERS: Add myself to the Write After Approval list.
416
d154bee2
AO
4172002-10-01 Alexandre Oliva <aoliva@redhat.com>
418
62a49b2c
AO
419 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
420 of the section for the N64 ABI, fixed.
421
d154bee2
AO
422 * config/mips/tm-irix6.h: Include solib.h.
423
ed348acc
EZ
4242002-10-01 Elena Zannoni <ezannoni@redhat.com>
425
426 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
427 GNU operators.
428
da0f9dcd
AC
4292002-10-01 Andrew Cagney <ac131313@redhat.com>
430
431 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
432 and that "mi0" syntax has been removed.
433
bdf64bac
DC
4342002-09-30 David Carlton <carlton@math.stanford.edu>
435
436 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
437 * ppc-sysv-tdep.c: #include "gdb_string.h".
438 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
439 pacify GCC.
440
54c2a1e6
AC
4412002-10-01 Andrew Cagney <ac131313@redhat.com>
442
443 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
444 "vrsave"'s register number.
445
cedea778
AC
4462002-09-30 Andrew Cagney <ac131313@redhat.com>
447
448 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
449 use frame_unwind_signed_register to obtain the PC.
450 (mips_frame_chain): Handle a generic dummy frame.
451 (mips_init_extra_frame_info): When a generic dummy frame, don't
452 re-compute the frame base.
453 (mips_pop_frame): Handle generic dummy frames.
454 (mips_gdbarch_init): When generic dummy frames, set
455 use_generic_dummy_frames, push_dummy_frame to
456 generic_push_dummy_frame, pc_in_call_dummy to
457 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
458 generic_save_dummy_frame_tos.
459
68315eb8
AC
4602002-09-30 Andrew Cagney <ac131313@redhat.com>
461
462 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
463 against TOP when TOP was explictly set.
464 (generic_push_dummy_frame): Set TOP to zero.
465
3b8630c3
EZ
4662002-09-30 Elena Zannoni <ezannoni@redhat.com>
467
468 * event-loop.c (start_event_loop): Rename variable 'result' to
469 'gdb_result', to avoid conflicts with upcoming intepreters changes.
470
28ee05e9
KS
4712002-09-30 Keith Seitz <keiths@redhat.com>
472
473 * gdb-events.sh (selected_thread_changed): New event.
474 * gdb-events.c: Regenerated.
475 * gdb-events.h: Regenerated.
476
6eecb1c8
HPN
4772002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
478
479 * MAINTAINERS: Add self to Write After Approval list.
480
92df71f0
FN
4812002-09-30 Fernando Nasser <fnasser@redhat.com>
482
3b8630c3
EZ
483 * disasm.c: New file.
484 * disasm.h: New file.
92df71f0
FN
485 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
486 (compare_lines): Ditto.
487 (dump_insns): Ditto.
3b8630c3
EZ
488 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
489 argument.
92df71f0 490 (do_assembly_only): Ditto.
3b8630c3
EZ
491 (do_disassembly): Renamed to gdb_disassembly and moved to
492 disasm.c. Sdded uiout argument.
493 * Makefile.in: Add new files. Reorder SFILES list. Update
494 dependencies. Include libgdb.a later in the insight executable.
92df71f0 495
0c22854d
AC
4962002-09-29 Andrew Cagney <ac131313@redhat.com>
497
498 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
499 bfd/elf64-alpha-fbsd.c.
500
e67f2023
AC
5012002-09-29 Andrew Cagney <ac131313@redhat.com>
502
503 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
504 i386gnu-tdep.c.
505
89396210
AC
5062002-09-29 Andrew Cagney <ac131313@redhat.com>
507
508 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
509 __FUNCTION__.
510 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
511 function name.
512 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
513 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
514 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
515 (S_msg_sig_post_reply): Ditto.
516
7079c36c
CV
5172002-09-28 Corinna Vinschen <vinschen@redhat.com>
518
89396210
AC
519 * sh-tdep.c (sh_use_struct_convention): Use definition according
520 to ABI.
7079c36c
CV
521 (sh_push_arguments): Store in register with correct endianess.
522 (sh_default_store_return_value): Ditto.
523 (sh_gdbarch_init): Set sizeof long double to 8.
524
975ac915
MK
5252002-09-27 Mark Kettenis <kettenis@gnu.org>
526
527 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
528 Fix some whitespace problems.
529
9bbe19fb
DC
5302002-09-27 David Carlton <carlton@math.stanford.edu>
531
532 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
533 (mcore-tdep.o): Ditto.
534 (ns32k-tdep.o): Ditto.
535 (ns32knbsd-tdep.o): Ditto.
536 (sh3-rom.o): Ditto.
537 (vax-tdep.o): Ditto.
538 * cris-tdep.c: #include "gdb_string.h"
539 * mcore-tdep.c: Ditto.
540 * ns32k-tdep.c: Ditto.
541 * ns32knbsd-tdep.c: Ditto.
542 * sh3-rom.c: Ditto.
543 * vax-tdep.c: Ditto.
544
43b2fdc7
DC
5452002-09-27 David Carlton <carlton@math.stanford.edu>
546
547 * config/djgpp/fnchange.lst: Add entries for
548 gdb/testsuite/gdb.c++/m-static files.
549
e8cfbbd9
JW
5502002-09-27 Jim Wilson <wilson@redhat.com>
551
552 * MAINTAINERS: Add myself to the Write After Approval list.
553
43b2fdc7 5542002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
555
556 * mips-tdep.c (find_proc_desc): Initialize startaddr.
557
558
9f3b7f07
AC
5592002-09-26 Andrew Cagney <ac131313@redhat.com>
560
561 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
562 frame.
563
11269d7e
AC
5642002-09-26 Andrew Cagney <ac131313@redhat.com>
565
566 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
567 (rs6000_struct_return_address): Delete variable.
568 (rs6000_store_struct_return): Update.
569 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
570 deprecated_extract_struct_value_address.
571 (rs6000_frame_align): New function.
572 (rs6000_gdbarch_init): Set frame_align.
573
f15ab4a7
AC
5742002-09-26 Andrew Cagney <ac131313@redhat.com>
575
576 From Grace Sainsbury <graces@redhat.com>:
577 * Makefile.in (gdbtk-main.o): New target.
578 (gdb.o): New target.
579 (main_h): Define.
580 (main.o): Update dependencies.
581 (gdb$(EXEEXT)): Add gdb.o.
582 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
583 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
584 (SUBDIR_GDBTK_CLEAN): Set.
585 (install-gdbtk): Install the insight binary.
586 (uninstall-gdbtk): New target.
587 (all-gdbtk, clean-gdbtk): New rule.
588 * top.c (use_windows): Default to zero.
589 * main.c: Include "main.h".
590 (main): Delete.
591 (struct captured_main_args): Delete.
592 (gdb_main): New function.
593 * main.h: New file.
594 * gdb.c: New File.
595
e36180d7
AC
5962002-09-25 Andrew Cagney <cagney@redhat.com>
597
598 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
599 (frame_map_regnum_to_name): New function.
600 (frame_map_name_to_regnum): New function.
601 * frame.h (frame_map_name_to_regnum): Declare.
602 (frame_map_regnum_to_name): Declare.
603 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
604 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
605 * parse.c: Do not include "builtin-regs.h".
606 (target_map_name_to_register): Delete function.
607 (write_dollar_variable): Use frame_map_name_to_regnum.
608 * parser-defs.h (target_map_name_to_register): Delete declaration.
609 * expprint.c: Include "frame.h".
610 (print_subexp): Use frame_map_regnum_to_name.
611 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
612 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
613
8b69000d
AC
6142002-09-25 Andrew Cagney <ac131313@redhat.com>
615
616 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
617 wasn't saved, and the next innermost frame is a dummy, return the
618 dummy frame's link register.
619
046ca86a
JB
6202002-09-24 Jim Blandy <jimb@redhat.com>
621
622 Fix from Paul Breed:
623 * main.c (captured_main): Add a `break' after the case for 'b'.
624
94b66fa7
KS
6252002-09-24 Keith Seitz <keiths@redhat.com>
626
627 * varobj.c (c_type_of_child): Use get_target_type instead
628 of TYPE_TARGET_TYPE.
629
c214a6fd
FN
6302002-09-22 Fernando Nasser <fnasser@redhat.com>
631
53cb0458
FN
632 * source.c (get_current_or_default_source_symtab_and_line): Remove
633 function.
634 (set_default_source_symtab_and_line): New function. Attempts to
635 determine a source file to list lines from if one is not currently
636 defined.
637 (get_current_source_symtab_and_line): Initialize sal.pc and
638 sal.end fields.
639 (set_current_source_symtab_and_line): Mark argument as const.
640 * source.h: Update declarations and comments.
641 * linespec.c (decode_line_1): Replace call to removed routine above.
642 * stack.c (print_frame_info_base): Ditto.
643 * cli/cli-cmds.c (edit_command): Ditto.
644 (list_command): Ditto.
645
6462002-09-22 Fernando Nasser <fnasser@redhat.com>
647
d6020d45 648 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 649 sal.pc and sal.end fields.
c214a6fd
FN
650 (get_current_or_default_source_symtab_and_line): Ditto.
651 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
652 so we do not cause a new source symtab to be searched for (reverting an
653 unintentional change from the 2002-09-20 patch).
654 * scm-lang.c (scm_unpac): Ditto.
655
cc3b68a5
AC
6562002-09-21 Andrew Cagney <cagney@redhat.com>
657
658 * complaints.c (symfile_explanations): Remove new-line from
659 ``isolated_message''.
660 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
661 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
662
5835abe7
NC
6632002-09-20 Nick Clifton <nickc@redhat.com>
664
665 * NEWS: Announce that V850EA ISA is no longer supported.
666 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
667
a15ef5f5
DC
6682002-09-20 David Carlton <carlton@math.stanford.edu>
669
06ba1b39
DC
670 * Makefile.in (c-lang.o): Correct dependencies.
671 (utils.o): Gather dependencies.
672 (charset.o): Move.
a15ef5f5
DC
673 * c-lang.c: #include "gdb_string.h"
674
87885426
FN
6752002-09-20 Fernando Nasser <fnasser@redhat.com>
676
677 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
678 * cli/cli-cmds.c (list_command): New function. Implements the new
679 cli edit command.
680 (_init_cli_cmds): Add new command definition.
681 * gdb.1: Document edit command.
682 * doc/gdb.texinfo: Document edit command.
683
6842002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
685
686 * source.c: Make global variables current_source_symtab and
687 current_source_line static.
688 (list_command): Moved to cli/cli-cmds.c.
689 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
690 (get_first_line_listed): New accessor function.
691 (get_lines_to_list): New accessor function.
692 (get_current_source_symtab_and_line): New function. Retrieves the
693 position in the source code that we consider current.
694 (get_current_or_default_source_symtab_and_line): New function.
695 Like the above but attempts to determine a default position if one
696 is not currently defined.
697 (set_current_source_symtab_and_line): New function. Sets the source
698 code position considered current and returns the previously set one.
699 (clear_current_source_symtab_and_line): Reset stored information about
700 a current source line.
701 (_initialize_source): Remove registration for the "list" command and
702 its alias.
703 * source.h: Add declarations for the new functions above.
704 * symtab.h: Remove declarations for the global variables mentioned
705 above.
706 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
707 obtain current source line.
708 * linespec.c (decode_line_1): Ditto.
709 * macroscope.c (default_macro_scope): Ditto.
710 * scm-lang.c (scm_unpac): Ditto.
711 * stack.c (print_frame_info_base): Ditto.
712 * symfile.c (clear_symtab_users): Ditto.
713 * symtab.c (decode_line_spec): Ditto.
714 * cli/cli-cmds.c (list_command): Moved here from source.c.
715 (ambiguous_line_spec): Moved here from source.c.
716 (_init_cli_cmds): Add definition for "list" and its alias.
717 * Makefile.in: Update dependencies.
718
ddd216ea
CV
7192002-09-20 Corinna Vinschen <vinschen@redhat.com>
720
721 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
722 with what gcc thinks is correct.
723
6d305052
CV
7242002-09-20 Corinna Vinschen <vinschen@redhat.com>
725
726 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
727 multiple register push instruction.
728
234b45d4
KB
7292002-09-19 Jim Blandy <jimb@redhat.com>
730
731 Add support for distinct host and target character sets.
732 * charset.c, charset.h: New files.
733 * c-exp.y: #include "charset.h".
734 (yylex): Convert character and string literals to the target
735 character set, before returning them as the semantic value of the
736 token.
737 * c-lang.c: #include "charset.h".
738 (c_emit_char): Use charset-specific methods to recognize
739 characters with backslash escape forms, to decide which characters
740 to print literally and which to print using numeric escape
741 sequences, and to convert target characters to host characters
742 before printing.
743 * utils.c: #include "charset.h".
744 (no_control_char_error): New function.
745 (parse_escape): Use charset-specific methods to recognize
746 backslash escapes, parse `control character' notation, and convert
747 characters from the host character set to the target character set.
748 * configure.in: Set the default host character set.
749 Check where to find iconv, and what its argument types might be.
750 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
751 * Makefile.in (SFILES): List charset.c.
752 (COMMON_OBS): List charset.o.
753 (charset.o): New rule.
754 (charset_h): New header dependency variable.
755 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
756 (LIBICONV): New variable, set by configure.
757 (CLIBS): Include $(LIBICONV) here.
758 * aclocal.m4, config.in, configure: Regenerated.
759
525d6a61
JB
7602002-09-19 Joel Brobecker <brobecker@gnat.com>
761
762 * ada-exp.y: Add missing semicolons to end rules. Fixes a
763 bison 1.35 warning.
764
3ed93867
RE
7652002-09-19 Richard Earnshaw <rearnsha@arm.com>
766
767 * gdb_mbuild.sh: New file.
768
437666f8
AC
7692002-09-19 Andrew Cagney <ac131313@redhat.com>
770
771 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
772
389e51db
AC
7732002-09-18 Andrew Cagney <ac131313@redhat.com>
774
775 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
776 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
777 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
778 valops.c, value.h: Revert previous change.
779
3b4efeaa
MS
7802002-09-18 Michael Snyder <msnyder@redhat.com>
781
782 Preliminary support for Objective-C:
783 * defs.h (language_objc): New enum value.
784 (puts_filtered_tabular): Declaration only, exported from utils.c.
785 (skip_quoted): Delete, declared in completer.h.
786 * c-exp.y: Include completer.h.
787 * p-exp.y: Ditto.
788 * jv-exp.y: Ditto.
789 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
790 New operator enum values.
791 * language.h (CAST_IS_CONVERSION): Test for language_objc.
792 * language.c (binop_result_type): Handle language_objc case.
793 (integral_type, character_type, string_type, boolean_type,
794 structured_type, binop_type_check): Ditto.
795 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
796 (struct objc_specific): Add to general_symbol_info.
797 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
798 (SYMBOL_DEMANGLED_NAME): Handle objc case.
799 * parser-defs.h (struct objc_class_str): New struct type.
800 (start_msglist, end_msglist, add_msglist): Declaration only,
801 exported from objc-lang.c.
802 * value.h (value_of_local, value_nsstring,
803 call_function_by_hand_expecting_type): Exported from valops.c.
804 * valops.c (find_function_addr): Export.
805 (call_function_by_hand_expecting_type): New function.
806 (value_of_local): New function.
807 * symfile.c (init_filename_language_table): Add ".m" extension
808 for Objective-C.
809 * utils.c (puts_filtered_tabular): New function.
810 (fprintf_symbol_filtered): Add objc demangling support (disabled).
811 (set/show demangle): Extend help-string to refer to ObjC.
812 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
813 * stabsread.c (symbol_reference_defined): Objective-C symbols
814 may contain colons: make allowances when scanning stabs strings
815 for colons.
816 (objc_find_colon): New function.
817 * printcmd.c (address_info): If language == objc then print
818 "self" instead of "this".
819 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
820 OP_NSSTRING, and OP_SELF.
821 (prefixify_subexp): Ditto.
822 * source.c (print_source_lines): Mention objc in comment.
823 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
824 method names.
825
b9caf505
AC
8262002-09-18 Andrew Cagney <ac131313@redhat.com>
827
828 * complaints.h: Update copyright.
829 (struct complaints): Declare.
830 (struct complaint): Make `message' constant.
831 (internal_complaint): Declare.
832 (complaint): Declare.
833 (complaint_root): Delete declaration.
834 (symfile_complaints): Delete declaration.
835 (struct complaints): Add opaque declaration.
836 (clear_complaints): Add a complaints parameter.
837 * complaints.c: Update copyright.
838 (enum complaint_series): Define.
839 (complaint_root): Delete.
840 (struct complaints): Define.
841 (complaint_sentinel, symfile_complaint_book): New variables.
842 (symfile_explanations, symfile_complaints): New variables.
843 New variables.
844 (get_complaints): New function.
845 (vcomplaint): New function.
846 (complaint): New function.
847 (internal_complaint): New function.
848 (complain): Call vcomplain with symfile_complaint.
849 (clear_complaints): Rewrite.
850 (_initialize_complaints): Use add_setshow_command.
851 * Makefile.in (complaints.o): Update dependencies.
852 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
853 to call to clear_complaints.
854 (new_symfile_objfile, reread_symbols): Ditto.
855 (oldsyms_complaint): Delete.
856 (empty_symtab_complaint, unknown_option_complaint): Delete.
857 (free_named_symtabs): Use complaint instead of complain.
858
d2e6263c
MS
8592002-09-18 Michael Snyder <msnyder@redhat.com>
860
5fb2031a
AC
861 Contributed by Apple Computer, Inc. Merged with current sources
862 by Adam Fedor <fedor@doc.com> [cagney].
863
d2e6263c
MS
864 * objc-lang.c: First clean-up round: comments, indentation.
865 * objc-lang.h: Ditto.
866 * objc-lang.y: Ditto.
867
dec43320
AC
8682002-09-18 Andrew Cagney <ac131313@redhat.com>
869
870 * maint.c (maintenance_internal_error): Print the parameter as the
871 error message.
872 (maintenance_internal_warning): New function.
873 (_initialize_maint_cmds): Add command `maint internal-warning'.
874
875 * defs.h (internal_warning, internal_vwarning): Declare.
876 * utils.c (struct internal_problem): Define.
877 (internal_vproblem): New function.
878 (internal_warning): New function.
879 (internal_vwarning): New function.
880 (internal_warning_problem, internal_error_problem): New variables.
881 (internal_verror): Just call internal_vproblem.
882
b81654f1
MS
8832002-09-18 Michael Snyder <msnyder@redhat.com>
884
885 * objc-lang.c: New file, support for Objective-C.
886 Preliminary check-in, not yet integrated into gdb.
887 * objc-lang.h: New file.
888 * objc-exp.y: New file.
889
0542c381
AC
8902002-09-18 Andrew Cagney <ac131313@redhat.com>
891
7bda5e4a
AC
892 * infrun.c (signal_stop_update): Convert definition to ISO C.
893 (signal_print_update): Ditto.
894 (signal_pass_update): Ditto.
895 * inflow.c (terminal_save_ours): Ditto.
896
5247b418
AC
897 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
898 comments.
899
fc60962c
AC
900 * config/djgpp/fnchange.lst: Handle name clashes between
901 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
902 bfd/coff-tic80.c.
903
0542c381
AC
904 * i386-linux-tdep.h: Fix tipo.
905
5b924b9b
AF
9062002-09-18 Adam Fedor <fedor@gnu.org>
907
908 * MAINTAINERS: Add myself to the Write After Approval list.
909
5afc051b
JB
9102002-09-18 Jim Blandy <jimb@redhat.com>
911
912 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
913 texthigh and textlow to reader-specific structs caused
914 objfile_relocate to miss them. This is fixable, but the work that
915 the change was supposed to prepare GDB for never got done anyway.
916
eb944380
DC
9172002-09-18 David Carlton <carlton@math.stanford.edu>
918
919 * MAINTAINERS: Alphabetize Write After Approval list.
920
948e66d9
DJ
9212002-09-18 Daniel Jacobowitz <drow@mvista.com>
922
923 Fix PR gdb/709
924 * values.c (value_static_field): Call read_var_value.
925
dc604539
AC
9262002-09-18 Andrew Cagney <ac131313@redhat.com>
927
928 * valops.c (hand_function_call): Align the initial stack pointer
929 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
930 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
931 return value.
932 * mips-tdep.c (mips_frame_align): New function.
933 (mips_gdbarch_init): Set frame_align.
934 * gdbarch.sh (FRAME_ALIGN): New method.
935 * gdbarch.h, gdbarch.c: Re-generate.
936
cb7e422f
ML
9372002-09-18 Michal Ludvig <mludvig@suse.cz>
938
939 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
940 registers.
941
a094c6fb
AC
9422002-09-17 Andrew Cagney <ac131313@redhat.com>
943
944 * NEWS: Mention that MIPS $fp behavior changed.
945 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
946 reference to FP_REGNUM.
947 (mipsnbsd_cannot_store_register): Ditto.
948 * mips-linux-nat.c: Update copyright.
949 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
950 (mips_linux_cannot_store_register): Ditto.
951 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
952 * config/mips/tm-mips.h: Update copyright.
953 (FP_REGNUM): Delete macro.
954 (MIPS_REGISTER_NAMES): Replace "fp" with "".
955 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
956 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
957 (mips_r3041_reg_names, mips_r3051_reg_names)
958 (mips_r3081_reg_names): Replace "fp" with "".
959 Fix PR gdb/480.
960
45cf40d1
TR
9612002-09-17 Theodore A. Roth <troth@verinet.com>
962
963 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
964 generic_read_register_dummy() (PR gdb/703).
965 (avr_push_return_address): #if 0 out unused vars.
966 (avr_gdbarch_init): Enable use of avr_push_return_address().
967
c7e701b5
MS
9682002-09-17 Michael Snyder <msnyder@redhat.com>
969
d76ba2a5 970 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
971 RTE will take care of it.
972
20bcf01c
AC
9732002-09-17 Andrew Cagney <ac131313@redhat.com>
974
975 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
976 invalid, return SP_REGNUM.
977
009a9971 9782002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
979
980 * mips-tdep.c (mips_pop_frame): Read saved values of floating
981 point registers without sign extension.
982
135c175f
AC
9832002-09-17 Andrew Cagney <cagney@redhat.com>
984
985 * blockframe.c (deprecated_read_register_dummy): Rename
986 generic_read_register_dummy.
987 * frame.c (frame_unwind_signed_register): New function.
988 (frame_unwind_unsigned_register): New function.
989 * frame.h (frame_unwind_signed_register): Declare.
990 (frame_unwind_unsigned_register): Declare.
991 (deprecated_read_register_dummy): Rename
992 generic_read_register_dummy.
993
994 * h8300-tdep.c (h8300_frame_chain): Update.
995 (h8300_frame_saved_pc): Update.
996 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
997 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
998 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
999 (s390_frame_chain): Update.
1000 * v850-tdep.c (v850_find_callers_reg): Update.
1001 (v850_frame_saved_pc): Update.
1002 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1003 (m32r_find_callers_reg): Update.
1004 (m32r_frame_saved_pc): Update.
1005 * sh-tdep.c (sh_find_callers_reg): Update.
1006 (sh64_get_saved_pr): Update.
1007 (sh_init_extra_frame_info): Update.
1008 (sh_init_extra_frame_info): Update.
1009 (sh64_init_extra_frame_info): Update.
1010 (sh64_init_extra_frame_info): Update.
1011 * mcore-tdep.c (mcore_find_callers_reg): Update.
1012 (mcore_frame_saved_pc): Update.
1013 (mcore_init_extra_frame_info): Update.
1014 * i386-tdep.c (i386_frame_saved_pc): Update.
1015 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1016 (ia64_init_extra_frame_info): Update.
1017 (ia64_init_extra_frame_info): Update.
1018 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1019 * cris-tdep.c (cris_init_extra_frame_info): Update.
1020 * avr-tdep.c (avr_frame_chain): Update.
1021 (avr_init_extra_frame_info): Update.
1022 (avr_frame_saved_pc): Update.
1023 * arm-tdep.c (arm_find_callers_reg): Update.
1024 (arm_init_extra_frame_info): Update.
1025 (arm_frame_saved_pc): Update.
1026
a741e514
TT
10272002-09-17 Tom Tromey <tromey@redhat.com>
1028
1029 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1030 is "'".
1031
d1a8e808
CV
10322002-09-17 Corinna Vinschen <vinschen@redhat.com>
1033
1034 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1035 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1036 NEXT_PROLOGUE_INSN.
1037 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1038 NEXT_PROLOGUE_INSN.
1039
d9025a18
JB
10402002-09-16 Joel Brobecker <brobecker@gnat.com>
1041
1042 * osfsolib.c: Remove file, replaced by solib-osf.c.
1043 * Makefile.in: Remove compilation rules for osfsolib.c.
1044
1b2ef1b6
DC
10452002-09-16 David Carlton <carlton@math.stanford.edu>
1046
1047 * cp-valprint.c (cp_print_class_method): Correct args to
1048 check_stub_method_group.
1049
928e48af
CV
10502002-09-16 Corinna Vinschen <vinschen@redhat.com>
1051
1052 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1053 `set architecture'. Unify naming convention of functions.
1054 (h8300_skip_prologue): Improve prologue analysis.
1055 (h8300_push_arguments): Rewritten to more closely match GCC's
1056 bizarre argument-passing behavior, along with the comment describing
1057 said behavior.
1058 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1059 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1060 sim, remote-e7000.c, remote-hms.c and remote.c
1061
5e3397bb
MK
10622002-09-15 Mark Kettenis <kettenis@gnu.org>
1063
1064 * i386-tdep.c (gdb_print_insn_i386): Removed.
1065 (i386_print_insn): New function.
1066 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1067 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1068 tm_print_insn_info.
1069
f710f4fc
MK
10702002-09-14 Mark Kettenis <kettenis@gnu.org>
1071
1072 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1073 zero.
1074
db54fef4
CV
10752002-09-14 Corinna Vinschen <vinschen@redhat.com>
1076
1077 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1078 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1079 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1080
2becadee
CF
10812002-09-13 Christopher Faylor <cgf@redhat.com>
1082
1083 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1084
de17c821
DJ
10852002-09-13 Daniel Jacobowitz <drow@mvista.com>
1086
1087 * gdbtypes.c (check_stub_method): Make static.
1088 (check_stub_method_group): New function.
1089 * gdbtypes.h: Update prototypes.
1090 * cp-support.c: New file.
1091 * cp-support.h: New file.
1092
1093 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1094 (update_method_name_from_physname): New function.
1095 (read_member_functions): Correct method names for operators
1096 and v3 constructors/destructors. Separate v2 constructors and
1097 destructors.
1098 * Makefile.in (stabsread.o): Update dependencies.
1099 (SFILES): Add cp-support.c.
1100 (COMMON_OBS): Add cp-support.o.
1101 (cp_support_h, cp-support.o): Add.
1102
1103 * cp-valprint.c (cp_print_class_method): Call
1104 check_stub_method_group instead of check_stub_method. Remove
1105 extraneous QUITs.
1106 * p-valprint.c (pascal_object_print_class_method): Likewise.
1107 * valops.c (search_struct_method): Likewise.
1108 (find_method_list, value_struct_elt_for_reference): Likewise.
1109
e76cff22
AC
11102002-09-13 Andrew Cagney <cagney@redhat.com>
1111
1112 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1113 * gdbarch.h, gdbarch.c: Regenerate.
1114
905abb3f
AC
11152002-09-13 Andrew Cagney <ac131313@redhat.com>
1116
1117 * frame.c (find_saved_register): Delete function.
1118 * frame.h (find_saved_register): Delete declaration.
1119 Fix PR gdb/631.
1120
64159455
AC
1121Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1122
1123 * mips-tdep.c (read_next_frame_reg): Re-hack using
1124 frame_register_unwind.
1125
795e1e11
AC
1126Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1127
1128 * mips-tdep.c (mips_get_saved_register): Re-hack using
1129 frame_register_unwind.
1130
5720643c
JB
11312002-09-12 Joel Brobecker <brobecker@gnat.com>
1132
1133 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1134 vector. Will be useful for Interix.
1135 * gdbarch.h, gdbarch.c: Regenerate.
1136
1137 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1138 name of the malloc function by NAME_OF_MALLOC.
1139
3bada2a2
JB
11402002-09-12 Joel Brobecker <brobecker@gnat.com>
1141
1142 * value.h (find_function_in_inferior): Add const keyword to
1143 one of the parameters. Allows us to invoke this function with
1144 a const char *.
1145 * valops.c (find_function_in_inferior): Likewise.
1146
3db26b01
JB
11472002-09-12 Joel Brobecker <brobecker@gnat.com>
1148
1149 * exec.c (xfer_memory): Fix compilation warning with old versions
1150 of GCC.
1151 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1152
17c5ed2c
DC
11532002-09-12 David Carlton <carlton@math.stanford.edu>
1154
1155 * symtab.h: Run through gdb_indent.h.
1156 Add 2002 to Copyright year list.
1157
ecd1107e
AM
11582002-09-12 Alan Modra <amodra@bigpond.net.au>
1159
1160 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1161 mach constants.
1162 * MAINTAINERS: Add myself to write after approval list.
1163
e64f66d1
JB
11642002-09-11 J. Brobecker <brobecker@gnat.com>
1165
1166 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1167
f9395794
JB
11682002-09-11 J. Brobecker <brobecker@gnat.com>
1169
1170 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1171 Interix.
1172
1a303dec
MS
11732002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1174
1175 * procfs.c (do_detach): Clear current signal, not just fault.
1176 Corrects problem with breakpoint trap signal leaking to detached
1177 process on Tru64.
1178
c0219d42
MS
11792002-09-10 Michael Snyder <msnyder@redhat.com>
1180
1181 * buildsym.c (finish_block): Protect against null pointer.
1182
9d84ac84
AC
11832002-09-10 Andrew Cagney <cagney@redhat.com>
1184
1185 * infcmd.c (default_print_registers_info): Send all output to
1186 ``file'' instead of ``gdb_stdout''.
1187
77d8f2b4
MS
11882002-09-10 Michael Snyder <msnyder@redhat.com>
1189
1190 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1191 LONGEST, and use signed register read (addresses are sign-
1192 extended for mips).
1193
99656a61
SC
11942002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1195
1196 * event-loop.c (gdb_do_one_event): Make public.
1197 * event-loop.h (gdb_do_one_event): Declare.
1198
da12f4d8
JL
11992002-09-10 Jeff Law <law@redhat.com>
1200
1201 * infttrace.c (child_resume): Simplify and rework to avoid
1202 TT_PROC_CONTINUE.
1203
d0aee0c4
FF
12042002-09-09 Fred Fish <fnf@intrinsity.com>
1205
1206 * printcmd.c (print_scalar_formatted): "len" is the number of
1207 target bytes, NOT the number of target bits.
1208
7cb3ec5e
EZ
12092002-09-09 Elena Zannoni <ezannoni@redhat.com>
1210
1211 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1212 * top.c (init_main): Set rl_terminal_name.
1213
4dc81987
AS
12142002-09-08 Aidan Skinner <aidan@velvet.net>
1215
1216 * ada-lang.c (ada_array_bound, ada_type_match,
1217 _initialize_ada_language): Fix K&R definitions.
1218 * ada-tasks.c (get_current_task): Fix K&R definitions.
1219 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1220
842330b4
CF
12212002-09-07 Christopher Faylor <cgf@redhat.com>
1222
1223 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1224 Add XP.
1225
43156d82
MK
12262002-09-06 Mark Kettenis <kettenis@gnu.org>
1227
66da5fd8
MK
1228 * i386-tdep.c (i386_register_virtual_type,
1229 i386_register_convertible, i386_register_convert_to_virtual,
1230 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1231 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1232 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1233 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1234 Don't set push_arguments twice.
1235
4b218c18
MK
1236 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1237 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1238 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1239 sigtramp_end to NULL.
1240 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1241 defines.
1242 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1243
4cc314d5
MK
1244 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1245 whitespace.
1246
43156d82
MK
1247 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1248 * gdbarch.h, gdbarch.c: Re-generate.
1249 * blockframe.c (find_pc_sect_partial_function): Convert to use
1250 SIGTRAMP_START_P predicate.
1251
6672060b
MS
12522002-09-05 Michael Snyder <msnyder@redhat.com>
1253
a90c3637
MS
1254 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1255 generic_dummy_frame method and old method. Also distinguish
1256 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1257 (arm_extract_return_value): Use new regcache method.
a90c3637 1258
6672060b
MS
1259 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1260 adjustment that doesn't conform to the ABI.
1261 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1262 saved regcache, not from current regcache.
1263
299ffc64
AC
12642002-09-05 Andrew Cagney <ac131313@redhat.com>
1265
1266 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1267 * README: Update.
1268
a3a2ee65
JT
12692002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1270
1271 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1272 if arm_apcs_32 is false.
1273
2bc7eea9
AC
12742002-09-04 Andrew Cagney <ac131313@redhat.com>
1275
1276 GDB 5.3 branch created.
1277
8a55a7c5
TR
12782002-09-03 Theodore A. Roth <troth@verinet.com>
1279
1280 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1281 generic_unwind_get_saved_register.
1282
e26fb1d7
DC
12832002-09-03 David Carlton <carlton@math.stanford.edu>
1284
1285 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1286 argument (PR gdb/653). Update call to smash_to_method_type.
1287 (read_structure_scope): Update call to dwarf2_add_member_fn.
1288
30d52491
ML
12892002-09-03 Michal Ludvig <mludvig@suse.cz>
1290
1291 * x86-64-linux-tdep.c: Include gdb_string.h
1292 * x86-64-linux-nat.c: Ditto.
1293
06891d83
JT
12942002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1295
1296 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1297 when YYDEBUG is set to 1.
1298 * c-exp.y: Likewise.
1299 * f-exp.y: Likewise.
1300 * jv-exp.y: Likewise.
1301 * m2-exp.y: Likewise.
1302 * p-exp.y: Likewise.
1303
7d400e77
JT
13042002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1305
1306 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1307 dependency list.
1308 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1309 solib_svr4_fetch_link_map_offsets to
1310 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1311 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1312 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1313 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1314 solib-svr4.o, and solib-legacy.o.
1315 * config/i386/tm-nbsd.h: Include solib.h.
1316
704a27c4
JT
13172002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1318
1319 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1320 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1321 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1322 comment noting that this needs its own target configuration.
1323 * config/i386/nbsd.mt: New file.
1324 * config/i386/nbsdaout.mt: Remove.
1325 * config/i386/nbsdelf.mt: Ditto.
1326 * config/i386/tm-nbsdaout.h: Ditto.
1327
d66198e1
JT
13282002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1329
1330 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1331 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1332 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1333 tdep->sigtramp_end.
1334 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1335 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1336 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1337
3cac699e
JT
13382002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1339
1340 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1341 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1342 * i386-tdep.h (i386bsd_init_abi): New prototype.
1343 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1344 function declaration.
1345 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1346 for NetBSD-a.out or NetBSD-ELF.
1347 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1348 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1349 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1350 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1351 and nbsd-tdep.h.
1352 (i386nbsd_pc_in_sigtramp): New function.
1353 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1354 i386nbsd_pc_in_sigtramp.
1355 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1356 and i386nbsdelf_init_abi OS ABI handlers.
1357 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1358 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1359
7010ca0a
MK
13602002-09-02 Mark Kettenis <kettenis@gnu.org>
1361
1362 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1363 registers if the target really has them.
1364
6dd93b72
JT
13652002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1366
1367 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1368 than nbsd-tdep.h.
1369
2ca8ae21
JT
13702002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1371
1372 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1373 list.
1374 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1375 (alphanbsd_skip_sigtramp_frame): New functions.
1376 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1377 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1378 to alphanbsd_sigcontext_addr.
1379
3d9b49b0
JT
13802002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1381
1382 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1383 list.
1384 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1385 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1386 nbsd_pc_in_sigtramp.
1387 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1388 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1389 * nbsd-tdep.c: Include gdb_string.h.
1390 (nbsd_pc_in_sigtramp): New function.
1391 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1392 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1393 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1394 ppcnbsd_pc_in_sigtramp.
1395 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1396 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1397 shnbsd_pc_in_sigtramp.
1398 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1399 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1400 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1401
c860120c
PM
14022002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1403
1404 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1405 watchpoints to NULL.
1406 (insert_breakpoints): set val field of watchpoints if NULL.
1407
1408
c7612d53
JB
14092002-08-29 Jim Blandy <jimb@redhat.com>
1410
1411 * symtab.c (lookup_symbol_aux): In the cases where we find a
1412 minimal symbol of an appropriate name and use its address to
1413 select a symtab to read and search, use `name' (as passed to us)
1414 as the demangled name when searching the symtab's global and
1415 static blocks, not the minsym's name.
1416
66609862
KS
14172002-08-29 Keith Seitz <keiths@redhat.com>
1418
1419 * stack.c (print_frame_info_base): Always set current_source_symtab
1420 and current_source_line.
1421
151fefe2
JB
14222002-08-29 Donn Terry <donnte@microsoft.com>
1423
1424 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1425
bfb3754e
KS
14262002-08-28 Keith Seitz <keiths@redhat.com>
1427
1428 * stack.c (select_frame): Add FIXME concerning selected-frame
1429 events.
1430 (select_frame_command): Send selected-frame-level-changed
1431 event notification, but only if the level actually changed.
1432 (up_silently_base): Add selected-frame-level-changed event
1433 notification.
1434 (down_silently_base): Likewise.
1435
e822a2a0
AC
14362002-08-28 Andrew Cagney <ac131313@redhat.com>
1437
1438 * Makefile.in: Update dependencies for all gdb/*.c files.
1439
309367d4
TT
14402002-08-27 Tom Tromey <tromey@redhat.com>
1441
1442 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1443 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1444 Update dependencies.
1445 * i387-tdep.c: Include gdb_string.h.
1446 * osabi.c: Likewise.
1447 * i386-linux-nat.c: Likewise.
1448 * lin-lwp.c: Likewise.
1449 * ax-gdb.c: Likewise.
1450 * signals/signals.c: Likewise.
1451 * jv-valprint.c: Likewise.
1452 * p-lang.c: Likewise.
1453 * c-valprint.c: Likewise.
1454 * cp-abi.c: Likewise.
1455
e1507482
EZ
14562002-08-27 Elena Zannoni <ezannoni@redhat.com>
1457
1458 * cli/cli-script.h (copy_command_lines): Export.
1459 * breakpoint.c: Include cli/cli-script.h.
1460 * Makefile.in (breakpoint.o): Update dependencies.
1461
c6510018
MS
14622002-08-26 Michael Snyder <msnyder@redhat.com>
1463
1464 * breakpoint.c (insert_breakpoints): Protect all references
1465 to 'process_warning'. Shorten long lines.
1466
c2b8ed2c
MS
14672002-08-26 Joel Brobecker <brobecker@gnat.com>
1468
1469 * cli/cli-script.c (copy_command_lines): New function.
1470 * defs.h (copy_command_lines): Export.
1471 * testsuite/gdb.base/commands.exp: New tests for commands
1472 attached to a temporary breakpoint, and for commands that
1473 delete the breakpoint they are attached to.
1474
14752002-08-26 Michael Snyder <msnyder@redhat.com>
1476
1477 * breakpoint.c (bpstat_stop_status): Instead of copying the
1478 pointer to the breakpoint commands struct, make a new copy
1479 of the struct and point to that.
1480 (bpstat_clear): Free the commands struct.
1481 (bpstat_clear_actions): Free the commands struct.
1482 (bpstat_do_actions): Free the command actions. Also execute
1483 the local cleanups, instead of deleting them.
1484 (delete_breakpoint): Leave the commands field of the bpstat
1485 chain alone -- it will be freed later.
1486
64b84175
KB
14872002-08-26 Kevin Buettner <kevinb@redhat.com>
1488
1489 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1490 deleted in 2002-08-20 commit. This function is still used by
1491 ppc-linux-nat.c.
1492
55970da6
KS
14932002-08-26 Keith Seitz <keiths@redhat.com>
1494
1495 * gdb-events.sh: Add selected-frame-level-changed event.
1496 * gdb-events.c: Regenerated.
1497 * gdb-events.h: Regenerated.
1498
a790ad35
SC
14992002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1500
1501 Fix PR gdb/393:
1502 * inflow.c (terminal_save_ours): New function to save terminal
1503 settings.
1504 * inferior.h (terminal_save_ours): Declare.
1505 * target.c (debug_to_terminal_save_ours): New function.
1506 (cleanup_target): Defaults to_terminal_save_ours.
1507 (update_current_target): Inherit to_terminal_save_ours.
1508 (setup_target_debug): Set to_terminal_save_ours.
1509 * target.h (target_terminal_save_ours): New to save terminal settings.
1510 (target_ops): New member to_terminal_save_ours.
1511 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1512 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1513 * inftarg.c (init_child_ops): Likewise.
1514 * m3-nat.c (init_m3_ops): Likewise.
1515 * procfs.c (init_procfs_ops): Likewise.
1516 * wince.c (init_child_ops): Likewise.
1517 * win32-nat.c (init_child_ops): Likewise.
1518 * sol-thread.c (init_sol_thread_ops): Likewise.
1519
c00dcbe9
MK
15202002-08-26 Mark Kettenis <kettenis@gnu.org>
1521
3d7f4f49
MK
1522 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1523 use regcache_* functions.
1524 (i386_gdbarch_init): Set store_return_value instead of
1525 deprecated_store_return_value.
1526
c00dcbe9
MK
1527 * regcache.c (regcache_raw_write_signed,
1528 regcache_raw_write_unsigned): New functions.
1529 * regcache.h (regcache_raw_write_signed,
1530 regcache_raw_write_unsigned): New prototypes.
1531
0e0d15ca
AC
15322002-08-25 Andrew Cagney <ac131313@redhat.com>
1533
1534 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1535 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1536 source file dependencies. Cleanup corresponding generator rules.
1537
d3b22ed5
AC
15382002-08-25 Andrew Cagney <ac131313@redhat.com>
1539
1540 * regcache.h (register_offset_hack): Declare.
1541 (regcache_cooked_read_using_offset_hack): Declare.
1542 (regcache_cooked_write_using_offset_hack): Declare.
1543
1544 * regcache.c (register_offset_hack): New function.
1545 (regcache_cooked_read_using_offset_hack): New function.
1546 (regcache_cooked_write_using_offset_hack): New function.
1547 (regcache_dump): Check that the registers, according to their
1548 offset, are packed hard against each other.
1549 (cooked_xfer_using_offset_hack): New function.
1550
bb425013
AC
15512002-08-25 Andrew Cagney <ac131313@redhat.com>
1552
1553 * regcache.c (struct regcache_descr): Add field register_type.
1554 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1555 in as a parameter
1556 (init_regcache_descr): Initialize register_type. Pass the descr
1557 to init_legacy_regcache_descr. Use register_type instead of
1558 REGISTER_VIRTUAL_TYPE.
1559 (register_type): New function.
1560 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1561 * regcache.h (register_type): Declare.
1562
d0403e00
AC
15632002-08-25 Andrew Cagney <ac131313@redhat.com>
1564
1565 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1566 instead of deprecated_store_return_value. Fix fallout from
1567 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1568
0ed04cce
AC
15692002-08-25 Andrew Cagney <ac131313@redhat.com>
1570
1571 * regcache.c (max_register_size): New function.
1572 (init_legacy_regcache_descr): Ensure that max_register_size is
1573 large enough for REGISTER_VIRTUAL_SIZE.
1574 * regcache.h (max_register_size): Declare.
1575
46d79c04
AC
15762002-08-24 Andrew Cagney <ac131313@redhat.com>
1577
1578 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1579 store_return_value.
1580 (e500_extract_return_value): Change type of valbuf pointer to
1581 void.
1582
853c7bd0
MK
15832002-08-24 Mark Kettenis <kettenis@gnu.org>
1584
cd87e769
MK
1585 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1586 workaround.
1587
853c7bd0
MK
1588 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1589 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1590 long long) to prevent compiler warning on 64-bit systems.
1591
ebba8386
AC
15922002-08-23 Andrew Cagney <cagney@redhat.com>
1593
1594 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1595 (DEPRECATED_STORE_RETURN_VALUE): New method.
1596 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1597 * gdbarch.h, gdbarch.c: Re-generate.
1598
1599 * values.c (set_return_value): Pass current_regcache to
1600 STORE_RETURN_VALUE.
1601 * arch-utils.h (legacy_store_return_value): Declare.
1602 * arch-utils.c (legacy_store_return_value): New function.
1603 (legacy_extract_return_value): Update parameters.
1604
1605 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1606 STORE_RETURN_VALUE.
1607 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1608 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1609 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1610 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1611 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1612 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1613 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1614 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1615 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1616 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1617
1618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1619 * i386-tdep.c (i386_extract_return_value): Update.
1620 * arch-utils.c (legacy_extract_return_value): Update.
1621 * frv-tdep.c (frv_gdbarch_init): Update.
1622 * cris-tdep.c (cris_gdbarch_init): Update.
1623 * d10v-tdep.c (d10v_gdbarch_init): Update.
1624 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1625 * m68k-tdep.c (m68k_gdbarch_init): Update.
1626 * mcore-tdep.c (mcore_gdbarch_init): Update.
1627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1628 * s390-tdep.c (s390_gdbarch_init): Update.
1629 * sparc-tdep.c (sparc_gdbarch_init): Update.
1630 * sh-tdep.c (sh_gdbarch_init): Update.
1631 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1632 * v850-tdep.c (v850_gdbarch_init): Update.
1633 * avr-tdep.c (avr_gdbarch_init): Update.
1634 * ia64-tdep.c (ia64_gdbarch_init): Update.
1635 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1636 * vax-tdep.c (vax_gdbarch_init): Update.
1637 * alpha-tdep.c (alpha_gdbarch_init): Update.
1638 * arm-tdep.c (arm_gdbarch_init): Update.
1639 * mips-tdep.c (mips_gdbarch_init): Update.
1640 * i386-tdep.c (i386_gdbarch_init): Update.
1641
5bd8c6d0
AC
16422002-08-23 Andrew Cagney <ac131313@redhat.com>
1643
1644 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1645 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1646
e73e1724
MK
16472002-08-24 Mark Kettenis <kettenis@gnu.org>
1648
1649 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1650 problems.
1651
3e6564e1
JB
16522002-08-23 Joel Brobecker <brobecker@gnat.com>
1653
1654 * infrun.c (handle_inferior_event): Move a comment outside of a
1655 function call, in order to avoid indent reformatting this part
1656 of the code in an unreadable way.
1657
81d0cc19
GS
16582002-08-23 Grace Sainsbury <graces@redhat.com>
1659
1660 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1661 when breakpoints fail. Move general breakpoint error messages to
1662 insert_breakpoints.
1663 * breakpoint.c (insert_breakpoints): Change warnings when
1664 breakpoints are nto inserted to specify the type. Remove call to
1665 memory_error when hardware breakpoints can't be inserted. Remove
1666 multiple calls to warning so all messages are sent to the user at
1667 once.
1668 (delete_breakpoints): Make insert error messsages more explicit.
1669
17574093
DJ
16702002-08-23 Daniel Jacobowitz <drow@mvista.com>
1671
1672 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1673 gdbserver/ChangeLog.
1674
8acc2935
MK
16752002-08-23 Mark Kettenis <kettenis@gnu.org>
1676
dfe01d39
MK
1677 * i386-tdep.c: Include "objfiles.h".
1678 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1679 skip_trampoline_code.
1680 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1681 (CPLUS_MARKER): Define to '.'.
1682
8acc2935
MK
1683 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1684 member.
1685 (linux_corefile_thread_callback): Increase args->num_notes.
1686 (linux_make_note_section): Initialize thread_args.num_notes, and
1687 use it to determine whether notes for any threads were created.
1688
151fefe2 16892002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1690
1691 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1692 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1693 and PCUNKILL.
1694 (write_with_trace): Conditionalize out the switch branch handling
1695 PCSHOLD if the corresponding macro is not defined. Likewise for
1696 PRSABORT and PRSTOP.
1697 This change will be needed by the Interix port.
1698
e1507482
EZ
16992002-08-22 Elena Zannoni <ezannoni@redhat.com>
1700
1701 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1702 write_register wherever possible instead of manipulating the
1703 register bytes directly.
1704 Assign VALUE_CONTENTS to a variable and use that.
1705 The GPR numbers are now dependent on the architecture.
1706
96ff0de4
EZ
17072002-08-22 Elena Zannoni <ezannoni@redhat.com>
1708
1709 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1710 ev_offset fields.
1711 (skip_prologue): Add support for BookE/e500 instructions.
1712 (e500_extract_return_value): New function.
1713 (frame_get_saved_regs): Add support for saving ev registers and
1714 pseudo gpr's.
1715 (e500_store_return_value): New function.
1716 (rs6000_gdbarch_init): Move up default intializations of
1717 deprecated_extract_return_value and store_return_value. Overwrite
1718 init of store_return_value with e500 specific version.
1719 Set extract_return_value for e500.
1720
fbefca5b
EZ
17212002-08-22 Elena Zannoni <ezannoni@redhat.com>
1722
1723 * blockframe.c (generic_call_dummy_register_unwind): Use
1724 regcache_cooked_read to catch cases in which the variable is
1725 stored in a pseudo register.
1726
4d210288
AC
17272002-08-22 Andrew Cagney <cagney@redhat.com>
1728
1729 * NEWS: Mention that the i960 has been made obsolete.
1730 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1731 i960-tdep.c
1732 (remote-nrom.o): Obsolete target.
1733 (remote-nindy.o, i960-tdep.o): Ditto.
1734 * remote-nrom.c: Make file obsolete.
1735 * remote-nindy.c, remote-vx960.c: Ditto.
1736 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1737 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1738 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1739 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1740 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1741 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1742 i960-*-vxworks* obsolete.
1743 * MAINTAINERS: Note that the i960 is obsolete.
1744
6c0c456d
CV
17452002-08-21 Corinna Vinschen <vinschen@redhat.com
1746
1747 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1748 detach to allow reinitialization.
1749
9f9d12b3
AC
17502002-08-22 Andrew Cagney <ac131313@redhat.com>
1751
1752 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1753 attempt).
1754
ebeb39fe
JB
17552002-08-22 Jim Blandy <jimb@redhat.com>
1756
1757 * coffread.c (coff_symfile_read): Don't try to read the line
1758 number table from disk if the image file doesn't have a symbol
1759 table; we'll never actually look at the info anyway, and Windows
1760 ships DLL's with bogus file offsets for the line number data.
1761
5bf1c677
EZ
17622002-08-21 Elena Zannoni <ezannoni@redhat.com>
1763
1764 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1765 an e500 executable.
1766
71b8ef93
MS
17672002-08-21 Michael Snyder <msnyder@redhat.com>
1768
1769 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1770 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1771 (DEFAULT_MIPS_TYPE): Delete unused macro.
1772 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1773 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1774
d174216d
JB
17752002-08-21 Jim Blandy <jimb@redhat.com>
1776
1777 * valops.c (value_cast): Simplify and correct logic for doing a
1778 static cast from a pointer to a base class to a pointer to a
1779 derived class.
1780
0ab7a791
AC
17812002-08-21 Andrew Cagney <ac131313@redhat.com>
1782
1783 * infcmd.c (default_print_registers_info): Replace
1784 do_registers_info.
1785 (registers_info): Use gdbarch_print_registers_info instead of
1786 DO_REGISTERS_INFO.
1787 * inferior.h (default_print_registers_info): Replace
1788 do_registers_info.
1789 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1790 (DO_REGISTERS_INFO): Change to a predicate function.
1791 * gdbarch.h, gdbarch.c: Regenerate.
1792
e23792cc
KS
17932002-08-21 Keith Seitz <keiths@redhat.com>
1794
1795 * gdb-events.sh: Add target-changed event.
1796 * gdb-events.c: Regenerated.
1797 * gdb-events.c: Regenerated.
1798 * valops.c (value_assign): Add target-changed event notification
1799 to inlval_register, lval_memory, and lval_reg_frame_relative.
1800
9fb14e79
JB
18012002-08-21 Joel Brobecker <brobecker@gnat.com>
1802
1803 * NEWS: Add an entry regarding the improvement of the next/step
1804 operation on Alpha Tru64 multi-processor machines.
1805
6d39a69f
AC
18062002-08-21 Andrew Cagney <ac131313@redhat.com>
1807
72acd513
AC
1808 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1809 directores.
342af04b 1810 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1811 * Makefile.in (install-gdbtk): Move to install section.
1812 (rdi-share/libangsd.a): Move to end of file.
1813
fa5f27c7
AC
18142002-08-19 Andrew Cagney <ac131313@redhat.com>
1815
1816 * frame.c (frame_register_unwind): When a register, set addrp to
1817 the register's byte.
1818
5a89d8aa
MS
18192002-08-20 Michael Snyder <msnyder@redhat.com>
1820
1821 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1822 used locally, so move them from the target machine header to here.
1823 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1824 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1825 Make static.
1826 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1827
822e978b
AC
18282002-08-20 Andrew Cagney <cagney@redhat.com>
1829
1830 * NEWS: Mention that the Apollo line was made obsolete.
1831 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1832 m68*-hp-hpux* obsolete.
1833 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1834 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1835 * buildsym.c (make_blockvector): Make static.
1836 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1837 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1838 (ALLDEPFILES): Remove dstread.c.
1839 (dstread.o): Obsolete make rule.
1840 * dstread.c: Makefile obsolete.
1841 * dst.h: Ditto.
1842 * config/m68k/hp300hpux.mt: Ditto.
1843 * config/m68k/hp300hpux.mh: Ditto.
1844 * config/m68k/hp300bsd.mt: Ditto.
1845 * config/m68k/hp300bsd.mh: Ditto.
1846 * config/m68k/apollo68b.mt: Ditto.
1847 * config/m68k/apollo68v.mh: Ditto.
1848 * config/m68k/apollo68b.mh: Ditto.
1849
e41b17f0
MS
18502002-08-20 Michael Snyder <msnyder@redhat.com>
1851
1852 * mips-tdep.c (mips_in_return_stub): Make static.
1853 (mips_gdbarch_init): Set in_solib_return_trampoline.
1854 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1855
d50355b6
MS
18562002-08-20 Michael Snyder <msnyder@redhat.com>
1857
1858 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1859 * gdbarch.c, gdbarch.h: Regenerate.
1860 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1861 Add.
1862 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1863
757a7cc6
MS
18642002-08-20 Michael Snyder <msnyder@redhat.com>
1865
1866 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1867 (mips_gdbarch_init): Set skip_trampoline_code,
1868 in_solib_call_trampoline.
1869 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1870 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1871
c8001721
EZ
18722002-08-20 Elena Zannoni <ezannoni@redhat.com>
1873
1874 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1875
1876 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1877 vector type for ev registers.
1878 (e500_pseudo_register_read): New function.
1879 (e500_pseudo_register_write): New function.
1880 (e500_dwarf2_reg_to_regnum): New function.
1881 (PPC_UISA_NOFP_SPRS): New macro.
1882 (PPC_EV_REGS): New macro.
1883 (PPC_GPRS_PSEUDO_REGS): New macro.
1884 (registers_e500): New register set for e500.
1885 (variants): Add e500 variant.
1886 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1887 before setting architectural dependent variations. Initialize ev
1888 registers numbers. Add case for e500 architecture. Set the
1889 number of pseudo registers.
1890
64366f1c
EZ
18912002-08-20 Elena Zannoni <ezannoni@redhat.com>
1892
1893 * rs6000-tdep.c: Clean up comments.
1894
7e78f0ca
AC
18952002-08-20 Andrew Cagney <cagney@redhat.com>
1896
1897 * h8300-tdep.c: Re-indent file.
1898
697f7479
JB
18992002-08-20 Jim Blandy <jimb@redhat.com>
1900
1901 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1902 default for this.
697f7479 1903
e86ae29f
KS
19042002-08-20 Keith Seitz <keiths@redhat.com>
1905
1906 * breakpoints.c (watch_command_1): Use internal breakpoint
1907 when setting a watchpoint_scope breakpoint.
1908
216b504f
EZ
19092002-08-20 Elena Zannoni <ezannoni@redhat.com>
1910
1911 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1912 (build_builtin_type_vec64i): Ditto.
1913 (build_builtin_type_vec128): Ditto.
1914 (build_builtin_type_vec128i): Ditto.
1915
f7ab6ec6
MS
19162002-08-19 Michael Snyder <msnyder@redhat.com>
1917
1918 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1919 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1920 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1921 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1922 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1923 CALL_DUMMY_ADDRESS): Delete.
1924 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1925 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1926 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1927 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1928 push_return_address.
1929 (mips_register_raw_size, mips_eabi_use_struct_convention,
1930 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1931 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1932 mips_init_extra_frame_info, mips_eabi_push_arguments,
1933 mips_n32n64_push_arguments, mips_push_return_address,
1934 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1935 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1936
b5d1566e
MS
19372002-08-19 Michael Snyder <msnyder@redhat.com>
1938
1939 * mips-tdep.c (mips_frame_num_args): New function.
1940 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1941 frame_saved_pc, frame_args_address, frame_locals_address,
1942 frame_num_args, and frame_args_skip.
1943 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1944 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1945 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1946 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1947
2f1488ce
MS
19482002-08-20 Michael Snyder <msnyder@redhat.com>
1949
1950 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1951 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1952 * mips-tdep.c (mips_store_struct_return): New function.
1953 (mips_extract_struct_value_address): New function.
1954 (mips_gdbarch_init): Set store_struct_return and
1955 extract_struct_value_address.
1956
41ff2da1
DC
19572002-08-20 David Carlton <carlton@math.stanford.edu>
1958
1959 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1960 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1961 (read_file_scope): Check that line_header is nonzero before
1962 decoding macro information.
1963
e5451d58
MK
19642002-08-20 Mark Kettenis <kettenis@gnu.org>
1965
1966 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1967 flag the general-purpose registers as floating-point on targets
1968 that don't support the floating-point registers.
1969
4a6daafa
EZ
19702002-08-20 Elena Zannoni <ezannoni@redhat.com>
1971
1972 * rs6000-tdep.c (altivec_register_p): Delete.
1973 (rs6000_do_altivec_registers): Delete.
1974 (rs6000_altivec_registers_info): Delete.
1975 (rs6000_do_registers_info): Delete.
1976 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1977 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1978
ab4327e0
EZ
19792002-08-20 Elena Zannoni <ezannoni@redhat.com>
1980
1981 * infcmd.c (do_registers_info): Print vector registers in hex
1982 format only.
1983 (print_vector_info): Check that printing registers
1984 makes sense.
1985 (print_float_info): Ditto.
1986
cb1d2653
AC
19872002-08-20 Andrew Cagney <ac131313@redhat.com>
1988
1989 * mips-tdep.c (mips_gdbarch_init): Update.
1990 (mips_o32_extract_return_value): Rewrite.
1991 (mips_o32_store_return_value): Rewrite.
1992 (mips_o32_xfer_return_value): New function.
1993 (mips_xfer_register): Tweak debug print message. Allow for
1994 buf_offset when dumping the value transfered.
1995
dfc3d9b2
AC
19962002-08-20 Andrew Cagney <ac131313@redhat.com>
1997
1998 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1999 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2000 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2001 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2002 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2003
7807aa61
MS
20042002-08-14 Michael Snyder <msnyder@redhat.com>
2005
2006 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2007
489461e2
EZ
20082002-08-19 Elena Zannoni <ezannoni@redhat.com>
2009
2010 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2011 register.
2012 (P): New macro to define a register as a pseudo register.
2013 (R, R4, R8, R16, FR32, R64, R0): Updated.
2014 (struct variant): Add new fields for number of pseudo registers
2015 and number of total registers.
2016 (tot_num_registers): New macro replacing....
2017 (num_registers): ...deleted macro.
2018 (num_registers): New function.
2019 (num_pseudo_registers): New function.
2020 (variants): Update all variants to intialize new fields correctly.
2021 Postpone initialization of number of pseudo regs and real regs.
2022 (init_variants): New function.
2023 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2024 registers offsets.
2025
fcaffe4c
DC
20262002-08-19 David Carlton <carlton@math.stanford.edu>
2027
2c2738a0
DC
2028 * valops.c (search_struct_field): Change error message to treat
2029 return value of 0 from value_static_field as meaning that field is
2030 optimized out.
2031 (value_struct_elt_for_reference): Ditto.
2032 * values.c (value_static_field): Treat an unresolved location the
2033 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2034 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2035 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2036 * MAINTAINERS: Add self to Write After Approval list.
2037
88658117
AC
20382002-08-19 Andrew Cagney <ac131313@redhat.com>
2039
2040 * mips-tdep.c (mips_xfer_register): New function.
2041 (mips_n32n64_extract_return_value): Rewrite.
2042 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2043 instead of deprecated_extract_return_value.
2044
21283beb
EZ
20452002-08-19 Elena Zannoni <ezannoni@redhat.com>
2046
2047 * rs6000-tdep.c (TDEP): Delete macro.
2048 (branch_dest): Replace use of TDEP macro with its body.
2049 (rs6000_pop_frame): Ditto.
2050 (rs6000_push_arguments): Ditto.
2051 (rs6000_skip_trampoline_code): Ditto.
2052 (rs6000_frame_saved_pc): Ditto.
2053 (rs6000_frame_chain): Ditto.
2054 (rs6000_register_name): Ditto.
2055 (rs6000_register_byte): Ditto.
2056 (rs6000_register_raw_size): Ditto.
2057 (rs6000_register_virtual_type): Ditto.
2058 (rs6000_register_convertible): Ditto.
2059 (rs6000_convert_from_func_ptr_addr): Ditto.
2060
bf072999
DJ
20612002-08-19 Daniel Jacobowitz <drow@mvista.com>
2062
2063 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2064 conditionally.
2065 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2066 MIPS_LINUX_JB_ELEMENT_SIZE.
2067 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2068 for MAX_REGISTER_RAW_SIZE arrays.
2069 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2070 MIPS_LINUX_JB_ELEMENT_SIZE.
2071
9b949a49
PM
20722002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2073
2074 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2075
6d3e79c6
AS
20762002-08-19 Aidan Skinner <aidan@velvet.net>
2077
2078 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2079 ada-valprint.c ada-tasks.c.
2080 (YYFILES): Add ada-exp.y.
2081 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2082 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2083 (ada-exp.tab.o): New target.
2084
06c0b04e
AC
20852002-08-18 Andrew Cagney <ac131313@redhat.com>
2086
2087 * regcache.c (regcache_xfer_part): New function.
2088 (regcache_raw_read_part): New function.
2089 (regcache_raw_write_part): New function.
2090 (regcache_cooked_read_part): New function.
2091 (regcache_cooked_write_part): New function.
2092 * regcache.h (regcache_raw_read_part): Declare.
2093 (regcache_raw_write_part): Declare.
2094 (regcache_cooked_read_part): Declare.
2095 (regcache_cooked_write_part): Declare.
2096
92d1e331
DJ
20972002-08-18 Daniel Jacobowitz <drow@mvista.com>
2098
2099 * remote.c (remote_open_1): Add async_p.
2100 (remote_async_open_1): Delete.
2101 (open_remote_target): Delete.
2102 (remote_open, extended_remote_open): Update calls to remote_open_1.
2103 (remote_async_open, extended_remote_async_open): Call
2104 remote_open_1 instead of remote_async_open_1.
2105
247055de
MK
21062002-08-19 Mark Kettenis <kettenis@gnu.org>
2107
2108 * blockframe.c: Fix a few coding standard violations.
2109
641eda39
MK
21102002-08-19 Mark Kettenis <kettenis@gnu.org>
2111
0b717710
MK
2112 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2113 here from ...
2114 * config/i386/tm-i386sco5.h: ... here. File removed.
2115 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2116
26d28e12 2117 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2118 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2119 (TM_FILE): Set to tm-i386.h.
2120 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2121 * config/i386/tm-i386v.h: Remove file.
2122 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2123 instead of "i386/tm-i386v.h".
2124 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2125 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2126 "i386/tm-i386v.h".
2127 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2128 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2129 "i386/tm-i386.h".
2130
d4e0bab4
MK
21312002-08-18 Mark Kettenis <kettenis@gnu.org>
2132
2133 * config/i386/nm-i386v.h: Add protection against
2134 multiple-inclusion.
2135 (i386_register_u_addr): Remove prototype.
2136 (register_u_addr): New prototype.
2137 (REGISTER_U_ADDR): Redefine accordingly.
2138 * i386v-nat.c: Improve several comments.
2139 (i386_register_u_addr): Change signature and rename to
2140 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2141 ubase variable.
2142
46cac009
AC
21432002-08-18 Andrew Cagney <ac131313@redhat.com>
2144
2145 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2146 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2147 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2148 deprecated_extract_return_value.
2149 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2150 rename mips_o32o64_push_arguments.
2151 (mips_gdbarch_init): Update.
2152 (mips_extract_return_value): Delete.
2153 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2154 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2155 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2156 (mips_n32n64_extract_return_value): Clone
2157 mips_extract_return_value.
2158 (mips_store_return_value): Delete.
2159 (mips_o32_store_return_value): Clone mips_store_return_value.
2160 (mips_o64_store_return_value): Clone mips_store_return_value.
2161 (mips_eabi_store_return_value): Clone mips_store_return_value.
2162 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2163
d2e4a39e
AS
21642002-08-18 Aidan Skinner <aidan@velvet.net>
2165
0c30c098
AS
2166 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2167 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2168
21692002-08-18 Aidan Skinner <aidan@velvet.net>
2170
2171 * ada-lang.c: Run through gdb_indent.sh.
2172 * ada-lang.h: Run through gdb_indent.sh.
2173 * ada-tasks.c: Run through gdb_indent.sh.
2174 * ada-typeprint.c: Run through gdb_indent.sh.
2175 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2176
01fc4e33
AC
21772002-08-18 Andrew Cagney <ac131313@redhat.com>
2178
2179 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2180 ABI.
2181
d8ee244c
MK
21822002-08-18 Mark Kettenis <kettenis@gnu.org>
2183
c38d8261
MK
2184 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2185
222db64c
MK
2186 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2187 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2188
c2848c82
MK
2189 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2190 write_register_gen instead of write_register_bytes.
2191
d8ee244c
MK
2192 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2193 i[3456]-*-osf1mk* configurations have been made obsolete.
2194 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2195 i[3456]86-*-osf1mk* hosts obsolete.
2196 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2197 targets obsolete.
2198 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2199 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2200 config/i386/i386m3.mt, config/i386/nm-m3.h,
2201 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2202 config/i386/i386mk.mh, config/i386/i386mk.mt,
2203 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2204 obsolete.
2205 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2206 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2207 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2208
61d8d407
AC
22092002-08-18 Andrew Cagney <ac131313@redhat.com>
2210
2211 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2212 (hppa_value_returned_from_stack): Declare.
2213 (hppa_extract_return_value): Declare.
2214 * config/pa/hppa.mt: New file.
2215 * configure.tgt: Recognize hppa*-*-*.
2216 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2217
0c52bd59
MK
22182002-08-18 Mark Kettenis <kettenis@gnu.org>
2219
2220 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2221 comment.
2222
b5686e99
MK
22232002-08-17 Mark Kettenis <kettenis@gnu.org>
2224
2225 * top.c (gdb_rl_operate_and_get_next): Make sure
2226 operate-and-get-next functions correctly even when the history
2227 list is completely filled.
2228
c1bab85b
AC
22292002-08-18 Andrew Cagney <ac131313@redhat.com>
2230
2231 * MAINTAINERS (Target Instruction Set Architectures): Rename
2232 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2233 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2234 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2235 already listed under Host/Native.
2236
2237 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2238 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2239 mips*-*-*.
2240
32089c7c
AC
22412002-08-17 Andrew Cagney <ac131313@redhat.com>
2242
2243 * config/ia64/ia64.mt: New file.
2244 * config/alpha/alpha.mt: New file.
2245 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2246 ia64-linux-gnu. Mention that ia64-elf is broken.
2247 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2248
b4671f85
MK
22492002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2250
2251 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2252 generic_func_frame_valid instead of func_frame_valid.
2253
c8edd8b4
JB
22542002-08-16 Joel Brobecker <brobecker@gnat.com>
2255
2256 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2257 procfs appears to be broken when debugging on multi-processor
2258 machines. So enable software single stepping in order to avoid
2259 using the procfs interface to do next/step operations, using
2260 internal breakpoints instead.
2261
2262 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2263 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2264 make this pc address equal to the value it would have if the
2265 system stepping capability was used. Also set a new flag used
2266 to ensure that we don't readjust the PC one more time later.
2267
2268 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2269 address by DECR_PC_AFTER_BREAK when software single step is
2270 in use for this architecture, as this has already been taken
2271 care of in handle_inferior_event().
2272
238617f6
JB
22732002-08-16 Joel Brobecker <brobecker@gnat.com>
2274
2275 * infrun.c (handle_inferior_event): Minor reformatting, to make
2276 a rather long condition expression easier to read.
2277
541a7aac
AC
22782002-08-16 Andrew Cagney <ac131313@redhat.com>
2279
2280 * Makefile.in (gdbtk.o): Move to end of file.
2281 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2282 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2283 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2284 (gdbtk-wrapper.o, gdbres.o): Ditto.
2285
f92d4a7b
AC
22862002-08-16 Andrew Cagney <ac131313@redhat.com>
2287
2288 * Makefile.in (copying.o): Separate out compile rule.
2289 (hpux-thread.o, procfs.o, signals.o): Ditto.
2290 (v850ice.o, z8k-tdep.o): Ditto.
2291 (tui-file.o): Move to TUI section.
2292 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2293 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2294
1cce71eb
JB
22952002-08-16 Joel Brobecker <brobecker@gnat.com>
2296
2297 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2298 skip_trampoline_code, for better namespace-proofing.
2299
2300 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2301
0851f23d
JB
23022002-08-16 Joel Brobecker <brobecker@gnat.com>
2303
2304 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2305
f8d40ec8
JB
23062002-08-16 Joel Brobecker <brobecker@gnat.com>
2307
2308 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2309 signal, check whether we hit a breakpoint before checking for a
2310 single step breakpoint. Otherwise, GDB fails to notice that a
2311 breakpoint has been hit when stepping onto a breakpoint.
2312
63d022e0
KS
23132002-08-16 Keith Seitz <keiths@redhat.com>
2314
2315 * gdb-events.sh (clear_gdb_event_hooks): New function.
2316 * gdb-events.c: Regenerate.
2317 * gdb-events.h: Regenerate.
2318
6e31adb3
AC
23192002-08-16 Andrew Cagney <ac131313@redhat.com>
2320
2321 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2322 not_a_sw_breakpoint.
2323 * breakpoint.h (bpstat_stop_status): Add parameter names.
2324
c8189ed1
GS
23252002-08-16 Grace Sainsbury <graces@redhat.com>
2326
2327 * remote.c (remote_insert_hw_breakpoint)
2328 (remote_remove_hw_breakpoint): Fix calculation of length field
2329 for Z-packet.
2330
d05285fa
MS
23312002-08-15 Michael Snyder <msnyder@redhat.com>
2332
466d7106
MS
2333 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2334 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2335 (supply_fpregset): Ditto.
2336
d05285fa
MS
2337 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2338 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2339 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2340 (TARGET_READ_SP): Delete.
bf1f5b4c 2341 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2342 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2343 Delete.
2344 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2345 from macros to functions.
bf1f5b4c 2346
d05285fa
MS
2347 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2348 (mips_register_convertible, mips_register_convert_to_virtual,
2349 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2350 (mips_read_sp): New function.
2351 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2352 (mips_do_registers_info): Make static.
2353 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2354 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2355 (mips_register_convert_from_type, mips_register_convert_to_type):
2356 New functions.
2357 (mips_gdbarch_init): Set up function_start_offset,
2358 register_virtual_size, pc_in_sigtramp.
d05285fa 2359
e76f1f2e
AC
23602002-08-15 Andrew Cagney <ac131313@redhat.com>
2361
2362 * infcmd.c (vector_info): New function.
2363 (_initialize_infcmd): Add command "info vector".
2364 (print_vector_info): New function.
2365
2366 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2367 * gdbarch.h, gdbarch.c: Regenerate.
2368
4782dc19
AC
23692002-08-15 Andrew Cagney <ac131313@redhat.com>
2370
2371 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2372 ``print_all''. Only print vector registers when ``print_all''.
2373
23e3a7ac
AC
23742002-08-15 Andrew Cagney <ac131313@redhat.com>
2375
8e186fd6
AC
2376 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2377 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2378
23e3a7ac
AC
2379 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2380 Add `args' parameter.
2381 * gdbarch.h, gdbarch.c: Regenerate.
2382
2383 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2384
2385 * infcmd.c (float_info): Call print_float_info.
2386 (print_float_info): New function. By default, print the
2387 floating-point registers.
2388
2389 * arch-utils.h (default_print_float_info): Delete declaration.
2390 * arch-utils.c (default_print_float_info): Delete function.
2391
e0ca2bb9
MK
23922002-08-16 Mark Kettenis <kettenis@gnu.org>
2393
3f733acc
MK
2394 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2395 out define.
2396
7d8d2918
MK
2397 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2398 FRAME.
2399
1c7cc583
MK
2400 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2401 * configure.host: Make i[3456]86-*-aix host obsolete.
2402 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2403 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2404 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2405 config/i386/xm-i386aix.h: Make files obsolete.
2406 * i386aix-nat.c: Make file obsolete.
2407 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2408 (i386aix-nat.o): Make target obsolete.
2409
e0ca2bb9
MK
2410 * config/i386/nm-gnu.h: Removed.
2411 * config/i386/nm-i386gnu.h: New file.
2412 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2413 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2414 Moved here from ...
2415 * config/i386/tm-i386gnu.h: ... here. Removed.
2416 * config/i386/xm-i386gnu.h: Removed.
2417 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2418 (NAT_FILE): Set to nm-i386gnu.h.
2419 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2420 * i386-tdep.c: New file.
2421 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2422 (i386gnu-tdep.o): Specify dependencies.
2423
16057ec7 24242002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2425
6b99ee2e
MK
2426 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2427 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2428 Adjust a few comments to reflect reality a bit closer.
2429 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2430 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2431 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2432 target_insert_watchpoint, target_remove_watchpoint):
2433 Move defines to ...
2434 * config/i386/nm-i386sco5.h: ... here.
2435 (kernel_u_size): Add prototype. Improve a few comments and add
2436 protection against multiple inclusion.
2437
d9a6f65c
MK
2438 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2439 out define.
2440
047eff6a
MK
2441 * uw-thread.c (SP_ARG0): Define if not already defined.
2442 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2443
dcdb1290
MK
2444 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2445
5d2d0b2a
MK
2446 * config/i386/tm-i386.h: Don't include "regcache.h".
2447
61113f8b
MK
2448 * i387-tdep.h (i387_print_float_info): New prototype.
2449 * i387-tdep.c (print_i387_value, print_i387_ext,
2450 print_i387_status_word, print_i387_control_word): Add `struct
2451 ui_file *' argument and use it for output.
2452 (i387_print_float_info): Renamed from i387_float_info. Add
2453 `struct gdbarch *' and `struct ui_file *' arguments and use the
2454 latter for output.
2455 * i386-tdep.c: Include "i387-tdep.h".
2456 (i386_gdbarch_init): Set print_float_info.
2457 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2458 (FLOAT_INFO): Remove define.
2459
46e0f506
MS
24602002-08-13 Michael Snyder <msnyder@redhat.com>
2461
2462 * mips-tdep.c (mips_push_arguments): Rename to
2463 mips_eabi_push_arguments, and tune for EABI.
2464 (MIPS_REGS_HAVE_HOME_P): Delete.
2465 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2466 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2467 Delete references to mips_regs_have_home_p.
2468
409268de
KS
24692002-08-14 Keith Seitz <keiths@redhat.com>
2470
2471 * Makefile.in (install-gdbtk): Create insight plugin directory.
2472 Install plugins.tcl file.
2473
ffc6a242
KS
24742002-08-14 Keith Seitz <keiths@redhat.com>
2475
2476 * configure.in: Move SUBDIRS to near top of the file so that
2477 --enable options may add things to it.
2478 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2479 * configure: Regenerate.
2480
ebafbe83
MS
24812002-08-13 Michael Snyder <msnyder@redhat.com>
2482
2483 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2484 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2485 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2486
32f6f25d
AC
24872002-08-13 Andrew Cagney <ac131313@redhat.com>
2488
2489 * vax-tdep.c (vax_get_saved_register): Delete function.
2490 (vax_gdbarch_init): Update.
2491 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2492 (ns32k_gdbarch_init): Update.
2493 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2494 (alpha_gdbarch_init): Update.
2495
53826de9
AC
24962002-08-13 Andrew Cagney <cagney@redhat.com>
2497
2498 * regcache.c (init_regcache_descr): Overallocate the
2499 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2500 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2501 nr_raw_registers.
2502 (set_register_cached): Add range checking assertions. Use
2503 current_regcache.
2504
16057ec7 25052002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2506
2507 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2508 numbers for MMX registers.
2509
7b4c2dce
AC
25102002-08-13 Andrew Cagney <cagney@redhat.com>
2511
2512 * i386-tdep.c (i386_gdbarch_init): Use
2513 generic_unwind_get_saved_register.
2514
1e03ad20
KB
25152002-08-13 Kevin Buettner <kevinb@redhat.com>
2516
2517 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2518 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2519 target vector.
2520 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2521 Delete. Add comment regarding this now-deleted target method.
2522
548bcbec
SC
25232002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2524
2525 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2526 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2527 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2528 real PC and the page number (if it's within the memory bank window).
2529 (m68hc11_pseudo_register_write): Likewise when saving.
2530 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2531 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2532 (m68hc11_register_raw_size): And use 32-bit for it.
2533 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2534 16K memory bank is used by the prog; also use the virtual pc.
2535
7df11f59
SC
25362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2537
2538 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2539 (m68hc11_gdbarch_init): Install it in gdbarch.
2540 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2541 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2542 (MSYMBOL_SIZE): New for documentation.
2543 (insn_return_kind): Enum to specify how a function returns.
2544 (frame_extra_info): Cleanup and record the return mode.
2545 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2546 register in address computation.
2547 (m68hc11_get_return_insn): New to obtain the return instruction used
2548 by the function.
2549 (m68hc11_frame_init_saved_regs): Take into account the return
2550 instruction used by the function for far and interrupt functions.
2551 (m68hc11_init_extra_frame_info): Take into account page register.
2552 (m68hc11_frame_args_address): Adjust according to the return mode.
2553 (show_regs): Print page register only when it's used.
2554
5706502a
SC
25552002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2556
2557 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2558 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2559 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2560 registers.
2561 (m68hc11_register_raw_size): Likewise.
2562
28fc6740
AC
25632002-08-13 Andrew Cagney <cagney@redhat.com>
2564
2565 * i386-tdep.c (i386_register_name): Handle mmx registers.
2566 (mmx_regnum_p): New function.
2567 (i386_mmx_names): New array.
2568 (mmx_num_regs): New variable.
2569 (i386_pseudo_register_read): New function.
2570 (i386_pseudo_register_write): New function.
2571 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2572
2573 * regcache.c (regcache_raw_read_unsigned): New function.
2574 (regcache_raw_read_signed): New function.
2575 * regcache.h (regcache_raw_read_unsigned): Declare.
2576 (regcache_raw_read_signed): Declare.
2577
a378f419
AC
25782002-08-13 Andrew Cagney <cagney@redhat.com>
2579
2580 * regcache.c (regcache_raw_read_as_address): Delete function.
2581 (regcache_cooked_read_signed): New function.
2582 (regcache_cooked_read_unsigned): New function.
2583 * regcache.h (regcache_cooked_read_signed): Declare.
2584 (regcache_cooked_read_unsigned): Declare.
2585 (regcache_raw_read_as_address): Delete declaration.
2586
2587 * blockframe.c (generic_read_register_dummy): Use
2588 regcache_cooked_read_unsigned.
2589 * i386-tdep.c (i386_extract_struct_value_address): Use
2590 regcache_cooked_read_unsigned.
2591
81967506
SC
25922002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2593
2594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2595 double sizes according to ELF ABI flags.
2596 (gdbarch_tdep): Record elf_flags.
2597
ffe1f3ee
SC
25982002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2599
2600 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2601 (m6812_prolog): They can appear in 68HC12 function prologue.
2602 (m68hc11_frame_chain): Cleanup.
2603
98216c5d
AC
26042002-08-12 Andrew Cagney <cagney@redhat.com>
2605
2606 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2607 declarations.
2608 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2609 (i386_linux_register_raw_size): Delete function.
2610 (i386_linux_init_abi): Update.
2611 * i386-tdep.c (i386_register_raw_size): Delete function.
2612 (i386_register_byte): Delete function.
2613 (i386_gdbarch_init): Update.
2614 (i386_register_size): Delete array.
2615 (i386_register_offset): Delete array.
2616
2617 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2618 (REGISTER_RAW_SIZE): Delete macro.
2619 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2620 (REGISTER_BYTE): Delete macro.
2621
3b19021e
AS
26222002-08-11 Aidan Skinner <aidan@velvet.net>
2623
2624 * ada-lang.c (ada_lookup_partial_symbol)
2625 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2626 prototype names so that grep ^func works properly.
2627
2628 * ada-lang.c (ada_array_element_type)
2629 (ada_lookup_partial_symbol): Fix typos in parameter list.
2630
2631 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2632 Fix prototype names so that grep ^func works properly.
2633
b063e7a2
AC
26342002-08-10 Andrew Cagney <cagney@redhat.com>
2635 Elena Zannoni <ezannoni@redhat.com>
2636 Martin M. Hunt <hunt@redhat.com>
2637
2638 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2639 (build_builtin_type_vec128i): Set the vector bit.
2640 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2641 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2642 (build_builtin_type_vec64): New function.
2643 (build_builtin_type_vec64i): New function.
2644 (build_gdbtypes): Initialize builtin_type_vec64 and
2645 builtin_type_vec64i.
2646
a7e3c2ad
AC
26472002-08-09 Andrew Cagney <cagney@redhat.com>
2648
2649 * regcache.c (regcache_dump): Compare the register offset
2650 with REGISTER_BYTE.
2651 * arch-utils.c (generic_register_byte): New function.
2652 * arch-utils.h (generic_register_byte): Declare.
2653 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2654 * gdbarch.h, gdbarch.c: Regenerate.
2655
af030b9a
AC
26562002-08-09 Andrew Cagney <cagney@redhat.com>
2657
2658 * regcache.c: Include "gdbcmd.h"
2659 (_initialize_regcache): Add commands "maintenance print
2660 registers", "maintenance print raw-registers" and "maintenance
2661 print cooked-registers".
2662 (enum regcache_dump_what): Define.
2663 (dump_endian_bytes): New function.
2664 (regcache_dump): New function.
2665 (regcache_print): New function.
2666 (maintenance_print_registers): New function.
2667 (maintenance_print_raw_registers): New function.
2668 (maintenance_print_cooked_registers): New function.
2669 * Makefile.in (regcache.o): Update dependencies.
2670
cb3d25d1
MS
26712002-08-09 Michael Snyder <msnyder@redhat.com>
2672
2673 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2674 (mips_push_arguments): Correct some comments. Use paddr_nz
2675 for printing addresses in debug output. Replace static
2676 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2677 (mips_n32n64_push_arguments): New function, cloned from
2678 mips_push_arguments and tuned for the n32/n64 ABI.
2679 (mips_push_register): Buffer needs dynamic allocation.
2680 (mips_print_register): Ditto.
2681 (do_gp_register_row): Ditto.
2682 (mips_store_return_value): Ditto.
2683 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2684
2163ab9d
DH
26852002-08-09 Don Howard <dhoward@redhat.com>
2686
2687 * memattr.c (mem_info_command): Print special case of upper bound
2688 as max CORE_ADDR + 1.
2689
b78bcb18
MS
26902002-08-08 Michael Snyder <msnyder@redhat.com>
2691
2692 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2693 returns structs by ref if they're too big to fit in two registers.
2694
ffabd70d
KB
26952002-08-09 Kevin Buettner <kevinb@redhat.com>
2696
2697 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2698 saved regs value.
2699 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2700 mips_find_saved_regs().
2701 (mips_pop_frame): Likewise.
2702
fbcdb4a3
KB
27032002-08-09 Kevin Buettner <kevinb@redhat.com>
2704
2705 * blockframe.c (frame_saved_regs_register_unwind): Revise
2706 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2707 frames are in use.
2708
3c3bea1c
GS
27092002-08-09 Grace Sainsbury <graces@redhat.com>
2710
2711 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2712 T-packets; the 'a' is not taken as a register number.
2713 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2714 (remote_stopped_data_address): New functions; add to target
2715 vector.
2716 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2717 prototypes to match other implementations of this
2718 function. replace integer argument with pointer -- the length
2719 field in the Z-packet is the length of what is pointed to or 1 if
2720 pointer is null. Add to target vector.
2721 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2722 target vector.
2723
2724 From Mark Salter:
2725 * remote.c (remote_wait): Add support to extract optional
2726 watchpoint information from T-packet. Ignore unrecognized
2727 optional info in T-packet.
2728 (remote_async_wait): Ditto.
2729
5d1d95de
CV
27302002-08-09 Corinna Vinschen <vinschen@redhat.com>
2731
2732 * cli/cli-dump.c: Change fopen modes to use binary open modes
2733 as defined in include/fopen-bin.h throughout.
2734
c86b5b38
MS
27352002-08-08 Michael Snyder <msnyder@redhat.com>
2736
2737 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2738
b30590dc
KB
27392002-08-08 Kevin Buettner <kevinb@redhat.com>
2740
2741 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2742 assertion failure by returning early after a warning.
2743
498868ed
KB
27442002-08-08 Kevin Buettner <kevinb@redhat.com>
2745
2746 * mips-tdep.c (mips_find_saved_regs): Make static.
2747 (mips_frame_init_saved_regs): New function.
2748 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2749 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2750 (mips_find_saved_regs): Delete declaration.
2751
b2dd6311
GS
27522002-08-08 Grace Sainsbury <graces@redhat.com>
2753
3c3bea1c
GS
2754 * remote.c (remote_wait, remote_async_wait): Change
2755 thread_num from int to ULONGEST.
2756 (unpack_varlen_hex): Change result parameter from
2757 int * to ULONGEST *.
b2dd6311 2758
ea47855f
AC
27592002-08-08 Andrew Cagney <ac131313@redhat.com>
2760
2761 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2762 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2763 powerpc*-*-*.
2764 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2765
69db8bae
AC
27662002-08-08 Andrew Cagney <cagney@redhat.com>
2767
2768 * gcore.c (override_derive_stack_segment): Delete variable.
2769 (preempt_derive_stack_segment): Delete function.
2770 (derive_stack_segment): Delete function.
2771 (default_derive_stack_segment): Renamed to derive_stack_segment.
2772 (override_derive_heap_segment): Delete variable.
2773 (preempt_derive_heap_segment): Delete function.
2774 (derive_heap_segment): Delete function.
2775 (default_derive_heap_segment): Rename to derive_heap_segment.
2776
cb811fe7
MS
27772002-08-06 Michael Snyder <msnyder@redhat.com>
2778
2779 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2780 * mips-tdep.c (mips_EABI_use_struct_convention,
2781 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2782 New functions. (mips_use_struct_convention): Delete.
2783 (mips_gdbarch_init): set use_gdbarch_convention.
2784
8b389c40
MS
27852002-08-06 Michael Snyder <msnyder@redhat.com>
2786
2787 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2788 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2789 mips_o32_reg_struct_has_addr): New functions.
2790 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2791
5c27f28a
AC
27922002-08-07 Andrew Cagney <ac131313@redhat.com>
2793
2794 * regcache.c (pseudo_register): Delete function.
2795 (fetch_register): Delete function.
2796 (store_register): Delete function.
2797 (regcache_raw_read, legacy_read_register_gen): Use
2798 target_fetch_registers instead of fetch_register.
2799 (legacy_write_register_gen, regcache_raw_write): Use
2800 target_store_register instead of store_register.
2801 (write_register_bytes): Ditto.
2802
2803 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2804 (STORE_PSEUDO_REGISTER): Delete.
2805 * gdbarch.h, gdbarch.c: Regenerate.
2806
5b331675
CV
28072002-08-06 Corinna Vinschen <vinschen@redhat.com>
2808
2809 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2810 write dump file binary.
2811
6acdf5c7
MS
28122002-08-05 Michael Snyder <msnyder@redhat.com>
2813
2814 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2815 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2816 (mips_gdbarch_init): Set N32 target to be mips64.
2817
b2f01c35
KB
28182002-08-06 Kevin Buettner <kevinb@redhat.com>
2819
2820 * frame.c (find_saved_register): Break out of loop once saved
2821 register address is found. Don't mention sparc in loop comment
2822 anymore.
2823
63db5580
KB
28242002-08-06 Kevin Buettner <kevinb@redhat.com>
2825
2826 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2827 mips_default_saved_regsize to 8.
2828
5e34e75e
AC
28292002-08-06 Andrew Cagney <ac131313@redhat.com>
2830
2831 * gcore.c: Do not include <sys/procfs.h>.
2832 * Makefile.in (gcore.o): Update dependencies.
2833
eb4c54a2
AC
28342002-08-06 Andrew Cagney <cagney@redhat.com>
2835
2836 * configure.tgt: Make arc-*-* obsolete.
2837 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2838 * MAINTAINERS: Make arc-elf obsolete.
2839 * arc-tdep.c: Make file obsolete.
2840 * config/arc/arc.mt: Ditto.
2841 * config/arc/tm-arc.h: Ditto.
2842
ced15480
TR
28432002-08-05 Theodore A. Roth <troth@verinet.com>
2844
c1bab85b 2845 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2846
b4743822
AC
28472002-08-05 Andrew Cagney <ac131313@redhat.com>
2848
2849 * mcore-tdep.c (mcore_gdbarch_init): Use
2850 generic_unwind_get_saved_register instead of
2851 generic_get_saved_register.
2852 * v850-tdep.c (v850_gdbarch_init): Ditto.
2853 * frv-tdep.c (frv_gdbarch_init): Ditto.
2854 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2855 * s390-tdep.c (s390_gdbarch_init): Ditto.
2856 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2857 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2858 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2859
3956d554
JB
28602002-08-05 Joel Brobecker <brobecker@gnat.com>
2861
2862 * objfiles.h: Add missing #include "symfile.h"
2863
2864 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2865
8249c0d6
AC
28662002-08-04 Andrew Cagney <ac131313@redhat.com>
2867
2868 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2869 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2870 of FIELD_BITSIZE.
2871
b9d14705
DJ
28722002-08-04 Daniel Jacobowitz <drow@mvista.com>
2873
2874 * NEWS: Cleanup and nitpick.
2875
dd73b9bb
AC
28762002-08-03 Andrew Cagney <ac131313@redhat.com>
2877
2878 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2879
043a27f8
AC
28802002-08-03 Andrew Cagney <ac131313@redhat.com>
2881
2882 * Makefile.in (gdbtk-bp.o): Update dependencies.
2883 (gdbtk-register.o): Ditto.
2884 (gdbtk-varobj.o): Ditto.
2885
46ce284d
AC
28862002-08-03 Andrew Cagney <cagney@redhat.com>
2887
2888 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2889 m68hc11_fetch_pseudo_register.
2890 (m68hc11_pseudo_register_write): Replace
2891 m68hc11_store_pseudo_register.
2892 (m68hc11_gdbarch_init): Update.
2893
b66d6d2e
AC
2894Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2895
2896 * gdbarch.sh: Include "gdb_string.h".
2897 * gdbarch.c: Regenerate.
2898
2899 * regcache.c: Include "gdb_string.h".
2900 * ax-general.c: Ditto.
2901 * varobj.c: Ditto.
2902 * std-regs.c: Ditto.
2903 * fbsd-proc.c: Ditto.
2904 * thread.c: Ditto.
2905
2906 * Makefile.in (regcache.o): Update dependencies.
2907 (thread.o, gdbarch.o): Ditto.
2908 (ax-general.o, gdbarch.o): Ditto.
2909 (varobj.o, std-regs.o): Ditto.
2910 (fbsd-proc.o): Specify dependencies.
2911
29e1842b
AC
29122002-08-02 Andrew Cagney <cagney@redhat.com>
2913
2914 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2915 regnum.
2916 (regcache_cooked_write): Ditto.
2917
68365089
AC
29182002-08-02 Andrew Cagney <ac131313@redhat.com>
2919
2920 * regcache.c (regcache_cooked_read): New function.
2921 (regcache_cooked_write): New function.
2922 (read_register_gen): Rewrite using regcache_cooked_read.
2923 (write_register_gen): Rewrite using regcache_cooked_write.
2924
2925 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2926 Declare.
2927
d8124050
AC
29282002-08-02 Andrew Cagney <cagney@redhat.com>
2929
2930 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2931 Replace the architecture methods register_read and register_write.
2932 * gdbarch.h, gdbarch.c: Regenerate.
2933 * regcache.c (init_regcache_descr): Update.
2934 (read_register_gen): Update.
2935 (write_register_gen): Update.
2936 (supply_register): Update comment.
2937
2938 * sh-tdep.c (sh_gdbarch_init): Update.
2939 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2940 `regcache' and `gdbarch' parameters. Make `buffer' a void
2941 pointer. Update code.
2942 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2943 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2944 void pointer. Update code.
2945 (sh64_register_write): Delete.
2946 (sh4_register_read): Delete.
2947 (sh64_register_read): Delete.
2948 (sh4_register_write): Delete.
2949 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2950 void pointer, `to' parameter a void pointer.
2951 (sh_sh64_register_convert_to_raw): Ditto.
2952
a6425924
KB
29532002-08-01 Kevin Buettner <kevinb@redhat.com>
2954
2955 * mips-tdep.c (mips_register_virtual_type): Use architecture
2956 invariant return values.
2957
ff5922b5
AC
29582002-08-01 Andrew Cagney <cagney@redhat.com>
2959
2960 * linux-proc.c: Include "gdb_string.h".
2961 * Makefile.in (linux-proc.o): Update dependency list.
2962
32a6503c
KB
29632002-08-01 Kevin Buettner <kevinb@redhat.com>
2964
2965 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2966 comment.
2967
ccaa32c7
GS
29682002-08-01 Grace Sainsbury <graces@redhat.com>
2969
2970 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2971 to_insert_watchpoint, to_remove_watchpoint,
2972 to_stopped_by_watchpoint, to_stopped_data_address,
2973 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2974 target vecctor. Define their corresponding macros so they call
2975 them.
2976
2977 * target.c: Add default and debug versions of for
2978 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2979 to_insert_watchpoint, to_remove_watchpoint,
2980 to_stopped_by_watchpoint, to_stopped_data_address,
2981 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2982
78fde5f8
KB
29832002-08-01 Kevin Buettner <kevinb@redhat.com>
2984
2985 * mips-tdep.c (mips_register_virtual_type): New function.
2986 (mips_gdbarch_init): Register mips_register_virtual_type()
2987 with gdbarch machinery.
2988 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2989 this file instead of tm-bigmips.h.
2990 (MIPS_REGSIZE): Delete this macro.
2991 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2992 multiarch version in mips-tdep.c will be found.
2993
db034ac5
AC
29942002-08-01 Andrew Cagney <cagney@redhat.com>
2995
2996 * NEWS: Menion that CHILL has been made obsolete.
2997
2998 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2999 * stabsread.c (read_range_type): Ditto.
3000 * gdbtypes.h: Ditto.
3001 * language.c (binop_type_check): Ditto.
3002 (binop_result_type): Ditto.
3003 (integral_type): Ditto.
3004 (character_type): Ditto.
3005 (string_type): Ditto.
3006 (boolean_type): Ditto.
3007 (structured_type): Ditto.
3008 (lang_bool_type): Ditto.
3009 (binop_type_check): Ditto.
3010 * language.h (_LANG_chill): Ditto.
3011 * dwarfread.c (set_cu_language): Ditto.
3012 * dwarfread.c (CHILL_PRODUCER): Ditto.
3013 * dwarfread.c (handle_producer): Ditto.
3014 * expression.h (enum exp_opcode): Ditto.
3015 * eval.c: Ditto for comments.
3016 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3017 * expprint.c (print_subexp): Ditto.
3018 (print_subexp): Ditto.
3019 * valops.c (value_cast): Ditto.
3020 (search_struct_field): Ditto.
3021 * value.h (COERCE_VARYING_ARRAY): Ditto.
3022 * symfile.c (init_filename_language_table): Ditto.
3023 (add_psymbol_with_dem_name_to_list): Ditto.
3024 * valarith.c (value_binop): Ditto.
3025 (value_neg): Ditto.
3026 * valops.c (value_slice): Ditto.
3027 * symtab.h (union language_specific): Ditto.
3028 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3029 (SYMBOL_DEMANGLED_NAME): Ditto.
3030 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3031 * defs.h (enum language): Ditto.
3032 * symtab.c (got_symtab): Ditto.
3033 * utils.c (fprintf_symbol_filtered): Ditto.
3034
3035 * ch-typeprint.c: Make file obsolete.
3036 * ch-valprint.c: Make file obsolete.
3037 * ch-lang.h: Make file obsolete.
3038 * ch-exp.c: Make file obsolete.
3039 * ch-lang.c: Make file obsolete.
3040
3041 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3042 CHILL_LIB.
3043 (TARGET_FLAGS_TO_PASS): Ditto.
3044 (CHILLFLAGS): Obsolete.
3045 (CHILL): Obsolete.
3046 (CHILL_FOR_TARGET): Obsolete.
3047 (CHILL_LIB): Obsolete.
3048 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3049 ch-valprint.c.
3050 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3051 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3052 ch-lang.o.
3053 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3054 targets.
3055
8aaf0b47
JB
30562002-07-31 Joel Brobecker <brobecker@gnat.com>
3057
3058 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3059 This does not change anything at the moment, but will be helpful
3060 later when full Ada support is integrated.
3061
f3a7b3a5
KB
30622002-07-31 Kevin Buettner <kevinb@redhat.com>
3063
3064 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3065 help message.
3066
fb850278
KB
30672002-07-31 Kevin Buettner <kevinb@redhat.com>
3068
3069 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3070 and save it in a local variable. Use variable in later test.
3071
e3bddbfa
KB
30722002-07-31 Kevin Buettner <kevinb@redhat.com>
3073
3074 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3075 test. (Thanks to Daniel Jacobowitz.)
3076
28d169de
KB
30772002-07-31 Kevin Buettner <kevinb@redhat.com>
3078
3079 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3080 (mips_abi_strings): Add "n64".
3081 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3082
7fe7e44e
KB
30832002-07-31 Kevin Buettner <kevinb@redhat.com>
3084
3085 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3086 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3087
c6caf090
KB
30882002-07-31 Kevin Buettner <kevinb@redhat.com>
3089
3090 * utils.c (host_pointer_to_address, address_to_host_pointer):
3091 Use gdb_assert() instead of explicit call to internal_error().
3092
c41669e0
KB
30932002-07-30 Kevin Buettner <kevinb@redhat.com>
3094
3095 * Makefile.in (rs6000-nat.o): Update dependencies.
3096
3097 From Nicholas Duffek:
3098 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3099 (aix-thread.o): New rule.
3100 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3101 * config/powerpc/aix432.mh: New file.
3102
2fda4977
DJ
31032002-07-30 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3106 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3107 (fetch_core_registers, ppc_linux_supply_gregset)
3108 (ppc_linux_supply_fpregset): New functions.
3109 (ppc_linux_regset_core_fns): New.
3110 (_initialize_ppc_linux_tdep): Call add_core_fns.
3111 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3112 and ppc_linux_supply_gregset.
3113 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3114 (supply_fpregset): Call ppc_linux_supply_fpregset.
3115 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3116 corelow.o.
3117 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3118
729051e6
DJ
31192002-07-30 Daniel Jacobowitz <drow@mvista.com>
3120
3121 * symtab.c (lookup_symbol): Demangle before lowercasing.
3122
5f8a3188
AC
31232002-07-30 Andrew Cagney <ac131313@redhat.com>
3124
3125 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3126 declaration.
3127 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3128 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3129 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3130 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3131 "gdb_string.h".
3132 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3133 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3134 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3135 (avr-tdep.o, mon960-rom.o): Ditto.
3136 (aout_stabs_gnu_h): Define.
3137 (symtab_h): Remove $(gdb_obstack_h).
3138
67f07146
JB
31392002-07-30 Jim Blandy <jimb@redhat.com>
3140
3141 Patch from David Carlton <carlton@math.stanford.edu>:
3142 * gdbinit.in: Move the `dir' commands that add GDB's own source
3143 directory to the search path to the end, so that the `gdb' source
3144 directory will be searched first.
3145
04ea0df1
AC
31462002-07-29 Andrew Cagney <ac131313@redhat.com>
3147
3148 * gdb_obstack.h: New file.
3149 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3150 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3151 * objfiles.h: Include "gdb_obstack.h".
3152 * Makefile.in (gdb_obstack_h): Define.
3153 (symtab_h): Add $(gdb_obstack_h).
3154 (objfiles_h): Add $(gdb_obstack_h).
3155
3156 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3157 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3158 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3159 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3160 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3161 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3162 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3163 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3164
3165 * Makefile.in (bcache.o): Update dependencies.
3166 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3167 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3168 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3169 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3170 (stabsread.o, symfile.o, symmisc.o): Ditto.
3171 (symtab.o, typeprint.o, macroexp.o): Ditto.
3172 (macrotab.o, mdebugread.o): Ditto.
3173 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3174 (coff_ecoff_h, aout_aout64_h): Define.
3175 (aout_stabs_gnu_h, libaout_h): Define.
3176
d138e37a
AC
31772002-07-29 Andrew Cagney <cagney@redhat.com>
3178
3179 * regcache.c (struct regcache_descr): Rename nr_registers to
3180 nr_cooked_registers. Revise comments describing the structure
3181 member fields.
3182 (init_regcache_descr): Update.
3183 (init_legacy_regcache_descr): Update.
3184 (read_register_gen, write_register_gen): When a cooked register in
3185 the raw register range, directly access the value from the raw
3186 register cache.
3187
460e6ec3
AC
31882002-07-29 Andrew Cagney <ac131313@redhat.com>
3189
3190 * z8k-tdep.c: Do not include "obstack.h".
3191 * h8300-tdep.c, h8500-tdep.c: Ditto.
3192 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3193 * valprint.c, v850-tdep.c: Ditto.
3194 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3195 * mn10200-tdep.c: Ditto.
3196
3197 * Makefile.in (z8k-tdep.o): Update dependencies.
3198 (m68hc11-tdep.o, valprint.o): Ditto.
3199 (v850-tdep.o, d10v-tdep.o): Ditto.
3200 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3201 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3202 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3203 (sh_opc_h, gdb_sim_sh_h): Define.
3204 (elf_sh_h, elf_bfd_h): Define.
3205 (opcode_m68hc11_h): Define.
3206 (OPCODES_SRC, OPCODES_DIR): define.
3207 (OPCODES): Use $(OPCODES_DIR).
3208 (gdb_sim_d10v_h): Rename sim_d10v_h.
3209 (gdb_sim_arm_h): Rename sim_arm_h.
3210
790c9cf0
KB
32112002-07-26 Kevin Buettner <kevinb@redhat.com>
3212
3213 * utils.c (host_pointer_to_address, address_to_host_pointer):
3214 Change internal_error() message to indicate function responsible
3215 for the error.
3216
9647fa49
KB
32172002-07-26 Kevin Buettner <kevinb@redhat.com>
3218
3219 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3220 calls to local_hex_string_custom().
3221
dabbe2c0
KB
32222002-07-26 Kevin Buettner <kevinb@redhat.com>
3223
3224 * irix5-nat.c: Move IRIX shared library support from here...
3225 * solib-irix.c: ...to here. Revised substantially to work with
3226 generic solib framework.
3227
b96d0a4e
KB
3228 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3229 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3230 * mips-irix-tdep.c: New file.
3231
313fb2f6
KB
3232 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3233 (mips-irix-tdep.o, solib-irix.o): New rules.
3234 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3235 solib-irix.o.
3236 * config/mips/irix6.mt (TDEPFILES): Likewise.
3237 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3238
ab2eaf26
KB
32392002-07-26 Kevin Buettner <kevinb@redhat.com>
3240
177e4768 3241 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3242 disabled (via ``#if 0'') includes.
3243
7244546a
KB
32442002-07-26 Kevin Buettner <kevinb@redhat.com>
3245
3246 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3247 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3248 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3249 Add support for the fpscr register.
3250 * rs6000-nat.c (regmap, fetch_inferior_registers)
3251 (store_inferior_registers, fetch_core_registers): Likewise.
3252
dd7be90a
KB
32532002-07-26 Kevin Buettner <kevinb@redhat.com>
3254
3255 * rs6000-nat.c (language.h): Include.
3256 (special_regs): Delete this array.
3257 (regmap): New function.
3258 (fetch_register, store_register): Use regmap() to map gdb
3259 register numbers to ptrace register numbers. Also, use
3260 outputs from regmap() to make decisions regarding type of
3261 ptrace() call to make. In particular, don't compare against
3262 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3263 (fetch_inferior_registers, store_inferior_registers): Where
3264 possible, obtain register numbers from tdep struct. Don't
3265 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3266 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3267 (LAST_UISA_SP_REGNUM): Delete.
3268
11bf77db
KB
32692002-07-25 Kevin Buettner <kevinb@redhat.com>
3270
3271 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3272 (fetch_registers, store_register, fetch_core_registers): Don't
3273 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3274 regcache_collect() as appropriate.
3275 (find_toc_address): Format hex address with local_hex_string().
3276
06afebeb
AC
32772002-07-25 Andrew Cagney <ac131313@redhat.com>
3278
3279 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3280 bfd/elf32-frv.c.
3281
8c554d79
TT
32822002-07-24 Tom Tromey <tromey@redhat.com>
3283
3284 * jv-exp.y: Marked all strings with _().
3285 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3286 internal_error.
3287 (MethodInvocation, CastExpression, parse_number, yyerror,
3288 java_type_from_name, push_expression_name, yylex): Typo fixes.
3289
e4c242d9
DJ
32902002-07-24 Daniel Jacobowitz <drow@mvista.com>
3291
3292 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3293 (tee_file_flush, tee_file_write, tee_file_fputs)
3294 (tee_file_isatty): New.
3295 * ui-file.h (tee_file_new): Add prototype.
3296
ebf56fd3
AS
32972002-07-24 Aidan Skinner <aidan@velvet.net>
3298
3299 * ada-lang.c: Change k&r style function definitions to prototyped
3300 form.
3301 * ada-typeprint.c: Change k&r style function definitions to prototyped
3302 form.
3303 * ada-valprint.c: Change k&r style function definitions to prototyped
3304 form.
3305
7fb623f7
AC
33062002-07-24 Andrew Cagney <cagney@redhat.com>
3307
3308 * README: Remove reference to remote-bug.
3309 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3310 remote-bug.c.
3311 (m88k-nat.o): Delete rule.
3312 (m88k-tdep.o): Delete rule.
3313 (remote-bug.o): Delete rule.
3314 * MAINTAINERS: Mark as obsolete.
3315 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3316 * m88k-tdep.c: Make file obsolete.
3317 * config/m88k/m88k.mh: Ditto.
3318 * config/m88k/delta88v4.mh: Ditto.
3319 * config/m88k/delta88v4.mt: Ditto.
3320 * config/m88k/delta88.mt: Ditto.
3321 * config/m88k/delta88.mh: Ditto.
3322 * remote-bug.c: Ditto.
3323 * config/m88k/tm-delta88.h: Ditto.
3324 * config/m88k/nm-delta88v4.h: Ditto.
3325 * config/m88k/xm-delta88.h: Ditto.
3326 * config/m88k/xm-dgux.h: Ditto.
3327 * config/m88k/tm-m88k.h: Ditto.
3328 * config/m88k/nm-m88k.h: Ditto.
3329 * config/m88k/tm-delta88v4.h: Ditto.
3330 * m88k-nat.c: Ditto.
3331 * cxux-nat.c: Ditto.
3332 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3333 and m88*-*-* obsolete.
3334 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3335 m88*-*-* obsolete.
3336
37611a2b
AC
33372002-07-24 Andrew Cagney <cagney@redhat.com>
3338
3339 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3340 constant. Same for local pointer variables.
3341 (extract_signed_integer): Ditto.
3342 * defs.h (extract_unsigned_integer): Update.
3343 (extract_signed_integer): Update.
3344
1aaa5f99
AC
33452002-07-24 Andrew Cagney <cagney@redhat.com>
3346
3347 * regcache.c (regcache_raw_write): Change buf parameter to a
3348 constant void pointer.
3349 (regcache_raw_read): Change buf parameter to a void pointer.
3350 (legacy_write_register_gen): Change myaddr parameter a constant
3351 void pointer.
3352 (supply_register): Change val parameter to a const void pointer.
3353 * regcache.h (regcache_raw_write): Update declaration.
3354 (regcache_raw_read): Update declaration.
3355 (supply_register): Update declaration.
3356
b4f5539f
TT
33572002-07-24 Tom Tromey <tromey@redhat.com>
3358
3359 * defs.h (gdb_readline_wrapper): Declare.
3360 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3361 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3362 * top.c (gdb_readline_wrapper): New function.
3363 (command_line_input): Use it.
3364
0818c12a
AC
33652002-07-24 Andrew Cagney <cagney@redhat.com>
3366
3367 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3368 regcache_read and regcache_write.
3369 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3370 * regcache.c: Update.
3371 * sh-tdep.c (sh64_push_arguments): Update comment.
3372 (sh_pseudo_register_read): Update.
3373 (sh_pseudo_register_write): Update.
3374 (sh4_register_read): Update.
3375 (sh4_register_write): Update.
3376 (sh64_pseudo_register_read): Update.
3377 (sh64_pseudo_register_write): Update.
3378 (sh64_register_read): Update.
3379 (sh64_register_write): Update.
3380 * i386-tdep.c (i386_extract_return_value): Update.
3381 (i386_extract_struct_value_address): Update.
3382 (i386_extract_return_value): Update.
3383 * blockframe.c (generic_read_register_dummy): Update.
3384 (generic_call_dummy_register_unwind): Update
3385 * infrun.c (write_inferior_status_register): Update.
3386
f7321c06
JB
33872002-07-23 Jim Blandy <jimb@redhat.com>
3388
3389 * parser-defs.h (expression_context_pc): Make this extern.
3390 (Thanks to Michael Snyder.)
3391
2037aebb
AC
33922002-07-23 Andrew Cagney <ac131313@redhat.com>
3393
3394 GDB 5.2.1 released from 5.2 branch.
3395 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3396 * README: Update to mention 5.2.1.
3397
66504d44
MS
33982002-07-23 Mark Salter <msalter@redhat.com>
3399
3400 * remote.c (remote_read_bytes): Fix check for error.
3401
27bae383
KB
34022002-07-22 Kevin Buettner <kevinb@redhat.com>
3403
3404 * aix-thread.c (language.h): Include.
3405 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3406 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3407 Print newlines at end of debug messages.
3408 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3409 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3410
34112002-07-22 Kevin Buettner <kevinb@redhat.com>
3412
3413 * aix-thread.c (ppc-tdep.h): Include.
3414 (special_register_p): New function.
3415 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3416 (store_regs_user_thread): Use register number information from
3417 gdbarch_tdep struct instead of hardcoded offsets relative to
3418 FIRST_UISA_SP_REGNUM.
3419 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3420 special_register_p() instead of using FPLAST_REGNUM and
3421 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3422 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3423 will be MQ's register number.
3424
34252002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3426
3427 * aix-thread.c (ops): Rename to aix_thread_ops.
3428 (base_ops): Rename to base_target.
3429 (ops_attach): Rename to aix_thread_attach.
3430 (ops_detach): Rename to aix_thread_detach.
3431 (ops_resume): Rename to aix_thread_detach.
3432 (ops_wait): Rename to aix_thread_wait.
3433 (ops_kill): Rename to aix_thread_kill.
3434 (init_ops): Rename to init_aix_thread_ops.
3435 (ops_fetch_register): Rename to aix_thread_fetch_register.
3436 (ops_store_register): Rename to aix_thread_store_register.
3437 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3438 (ops_thread_alive): Rename to aix_thread_thread_alive.
3439 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3440 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3441 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3442 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3443 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3444 (store_regs_lib): Rename to store_regs_user_thread.
3445 (store_regs_kern): Rename to store_regs_kernel_thread.
3446
27bae383 34472002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3448
3449 * aix-thread.c (ops_prepare_to_store): Eliminate.
3450 (init_ops): Don't initialize ops.prepare_to_store.
3451 (store_regs_kern): Pre-fetch register buffers from child,
3452 because some registers may not be in the cache. Copy
3453 regs from register cache only if they are cached.
3454 (store_regs_lib): Copy regs from register cache only
3455 if they are cached.
3456 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3457 fill_gprs64): Ditto.
3458
61c5da0b
KB
34592002-07-22 Kevin Buettner <kevinb@redhat.com>
3460
3461 * aix-thread.c (gdb_assert.h): Include.
3462 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3463 register sizes (from register cache) match size of buffer holding
3464 register data.
3465 (fill_sprs32): Change parameter types to match those in the ptrace()
3466 buffer.
3467 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3468 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3469
34702002-07-22 Michael Snyder <msnyder@redhat.com>
3471
3472 * aix-thread.c (supply_sprs64): Cosmetic change.
3473 (supply_sprs32): Cosmetic change.
3474 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3475 (fill_sprs64): Use regcache_collect instead of read_register.
3476 (store_regs_lib): Use regcache_collect instead of
3477 read_register. Use fill_sprs32 instead of fill_sprs64,
3478 if debugging a 32-bit architecture.
3479 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3480 out of the register cache, instead of passing a pointer into
3481 the register cache directly to ptrace. Use regcache_collect
3482 insteaad of read_register.
3483 (ops_prepare_to_store): Use target_read_registers instead
3484 of read_register_bytes.
3485
36479eb1
AS
34862002-07-20 Aidan Skinner <aidan@velvet.net>
3487
3488 * MAINTAINERS: Add self under write after approval.
3489
80ae6ee2
AS
34902002-07-20 Aidan Skinner <aidan@velvet.net>
3491
3492 * ada-tasks.c: Change k&r style function definitions to prototyped
3493 form.
3494
8a8ab2b9
AC
34952002-07-19 Andrew Cagney <ac131313@redhat.com>
3496
3497 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3498 * x86-64-tdep.c: Include "objfiles.h".
3499 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3500 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3501
fb16b900
ML
35022002-07-17 Michal Ludvig <michal@suse.cz>
3503
3504 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3505 (update_context): Initialise cfa variable.
3506
0fe7bf7b
MS
35072002-07-17 Michael Snyder <msnyder@redhat.com>
3508
3509 * aix-thread.c: Shorten some long lines.
3510 Bring comments into line with code spec.
3511
488f131b
JB
35122002-07-18 Joel Brobecker <brobecker@gnat.com>
3513
3514 * infrun.c: Re-indent using gdb_indent.sh.
3515
46c415d2
JB
35162002-07-18 Joel Brobecker <brobecker@gnat.com>
3517
3518 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3519 Leave the indentation temporarily untouched, to minimize the diffs.
3520
cdecafbe
EZ
35212002-07-18 Elena Zannoni <ezannoni@redhat.com>
3522
3523 * stabsread.c: Make os9k sections of the code obsolete,
3524 for real this time.
3525 * stabsread.h: Make os9k sections of the code obsolete.
3526
7b6aa020
ML
35272002-07-18 Michal Ludvig <mludvig@suse.cz>
3528
09ec9b38
ML
3529 * linux-low.c (regsets_store_inferior_registers): Add free()
3530 at the end of a loop to prevent memory leak.
3531 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3532 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3533 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3534 line a comment.
4894ac5d 3535 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3536
233282cd
JB
35372002-07-17 Jim Blandy <jimb@redhat.com>
3538
3539 * macrocmd.c (info_macro_command): Remove newline from error
3540 message.
3541
7b6aa020 35422002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3543
3544 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3545 (sh_gdbarch_init): Use it for sh-dsp.
3546
f7ef9339
KB
35472002-07-16 Kevin Buettner <kevinb@redhat.com>
3548
3549 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3550 64-bit DWARF2 format.
3551
8dd72958
JB
35522002-07-16 Joel Brobecker <brobecker@gnat.com>
3553
3554 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3555 <sys/proc.h> when not available.
3556
a99a9e1b
AC
35572002-07-16 Andrew Cagney <ac131313@redhat.com>
3558
3559 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3560 * stabsread.c: Make os9k sections of the code obsolete.
3561 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3562 * config/i386/i386os9k.mt: Make file obsolete.
3563 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3564 (COMMON_OBS): Remove os9kread.o
3565 (SFILES): Remove os9kread.c.
3566 (os9kread.o, remote-os9k.o): Make target obsolete.
3567 * remote-os9k.c: Make file obsolete.
3568 * os9kread.c: Make file obsolete.
3569 * Makefile.in
3570
7a3085c1
AC
35712002-07-16 Andrew Cagney <ac131313@redhat.com>
3572
3573 * NEWS: Mention that the FR30 has been made obsolete.
3574 * fr30-tdep.c: Make file obsolete.
3575 * config/fr30/tm-fr30.h: Ditto.
3576 * config/fr30/fr30.mt: Ditto.
3577 * configure.tgt: Make fr30-*-elf obsolete.
3578 * MAINTAINERS: Make fr30-elf obsolete.
3579
28a93f5a
PM
35802002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3581
3582 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3583 found is not inside a section.
3584
be006b8b
KB
35852002-07-15 Kevin Buettner <kevinb@redhat.com>
3586
3587 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3588 strerror().
3589 (pdc_realloc): Use xrealloc() instead of realloc().
3590
14fa3751
KB
35912002-07-15 Kevin Buettner <kevinb@redhat.com>
3592
3593 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3594 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3595 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3596 macros.
3597
42cc437f
KB
35982002-07-15 Kevin Buettner <kevinb@redhat.com>
3599
3600 * aix-thread.c (ptrace_check): Eliminate goto.
3601 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3602 problem.
3603
8e2c28d4
KB
36042002-07-15 Kevin Buettner <kevinb@redhat.com>
3605
3606 * aix-thread.c (gdbcmd.h): Include.
3607 (DEBUG, DBG, DBG2, dbg): Eliminate.
3608 (debug_aix_thread): New static global.
3609 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3610 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3611 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3612 invocations to DBG and DBG2 macros to test against
3613 ``debug_aix_thread'' and call fprintf_unfiltered().
3614 (_initialize_aix_thread): Add new command "set debug aix-thread".
3615
30413464
AC
36162002-07-15 Andrew Cagney <ac131313@redhat.com>
3617
3618 From Gerhard Tonn <TON@de.ibm.com>:
3619 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3620 instead of supply_register.
3621
7c43edc1
AC
36222002-07-15 Andrew Cagney <ac131313@redhat.com>
3623
3624 * dwarf2cfi.c: Include "gdb_assert.h".
3625 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3626 non-NULL.
3627 (update_context): Do not use __func__. Add missing ``break''.
3628 (update_context): Do not use __func__.
3629
9364a0ef
EZ
36302002-07-15 Elena Zannoni <ezannoni@redhat.com>
3631
3632 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3633 and its setting. Set gdbarch instruction printing functions
3634 directly. For non-rs6000 case use new function
3635 gdb_print_insn_powerpc.
3636 (gdb_print_insn_powerpc): New function.
3637
3fbeef0b
AC
36382002-07-13 Andrew Cagney <ac131313@redhat.com>
3639
92eb23c5 3640 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3641 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3642 * configure.tgt: Mark d30v-*-* as obsolete.
3643 * d30v-tdep.c: Mark file as obsolete.
3644 * config/d30v/d30v.mt: Ditto.
3645 * config/d30v/tm-d30v.h: Ditto.
3646
aacb1f0a
AS
36472002-07-13 Aidan Skinner <aidan@velvet.net>
3648
3649 * ada-tasks.c (add_task_entry): replace calls to
3650 malloc() with xmalloc
3651 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3652
3653 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3654 ada_finish_decode_line_1, all_sals_for_line
3655 ada_breakpoint_rewrite): replace calls to free() with xfree()
3656
c11d79f2
KB
36572002-07-12 Kevin Buettner <kevinb@redhat.com>
3658
3659 From Nicholas Duffek (with minor changes by Martin Hunt,
3660 Louis Hamilton, and Kevin Buettner):
3661 * aix-thread.c: New file.
3662
8e19ed76
PS
36632002-07-12 Petr Sorfa <petrs@caldera.com>
3664
3665 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3666 complaint for invalid attribute class or form.
3667 (read_func_scope): DW_AT_frame_base
3668 better handling of DW_AT_block*.
3669 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3670 better handling of DW_AT_block*.
3671 (read_common_block): DW_AT_location
3672 better handling of DW_AT_block*.
3673 (read_partial_die): DW_AT_location better handling
3674 of DW_AT_block*.
3675 (new_symbol): DW_AT_external better handling of
3676 DW_AT_block*. Proper initialization of variable
3677 "addr".
3678 (attr_form_is_block): New function that returns true
3679 if the attribute's form is of DW_FORM_block*.
3680
295401f7
DJ
36812002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3682
3683 * valops.c (find_method_list): Remove comment about
3684 removed STATIC_MEMFUNCP argument.
3685 (value_find_oload_method_list): Likewise.
3686
e42dc924
KB
36872002-07-12 Kevin Buettner <kevinb@redhat.com>
3688
3689 From Nicholas Duffek:
3690 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3691 target_new_objfile_hook.
3692
6904b546
KB
36932002-07-12 Kevin Buettner <kevinb@redhat.com>
3694
3695 From Nicholas Duffek:
3696 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3697 csect.
3698
53fe9346
AC
36992002-07-12 Andrew Cagney <cagney@redhat.com>
3700
3701 * MAINTAINERS: Mention --enable-sim-build-warnings.
3702 (m68hc11-elf): Disable sim build warnings.
3703 (m32r-elf): Mark as broken obsolete candidate.
3704 (x86_64-linux-gnu): Mark as buildable with -Werror.
3705 (arm-elf): Change -w to ``,'' which enables warnings but not
3706 -Werror.
3707
af5f3db6
AC
37082002-07-12 Andrew Cagney <ac131313@redhat.com>
3709
3710 * bcache.h: Update copyright.
3711 (struct bstring, struct bcache): Move definition to "bcache.c".
3712 Replaced by opaque declaration.
3713 (bcache_xfree): Replace free_bcache.
3714 (bcache_xmalloc, bcache_memory_used): Declare.
3715
3716 * bcache.c: Update copyright.
3717 (struct bstring, struct bcache): Moved to here from "bcache.h".
3718 Update comments.
3719 (bcache_xmalloc, bcache_memory_used): New functions.
3720 (bcache_xfree): Replace function free_bcache.
3721
3722 * Makefile.in (objfiles.o): Add $(bcache_h).
3723 (objfiles_h): Remove $(bcache_h).
3724 (symfile.o): Add $(bcache_h).
3725
3726 * symmisc.c: Update copyright.
3727 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3728 (print_objfile_statistics): Use bcache_memory_used.
3729
3730 * symfile.c: Include "bcache.h".
3731 (reread_symbols): Use bcache_xfree.
3732 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3733 (add_psymbol_to_list): Pass psymbol_cache by value.
3734 (add_psymbol_with_dem_name_to_list): Ditto.
3735
3736 * objfiles.h: Update copyright.
3737 (struct bcache): Declare opaque. Do not include "bcache.h".
3738 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3739 bcache'' pointers.
3740 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3741
3742 * objfiles.c: Include "bcache.h". Update copyright.
3743 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3744 macro_cache.
3745 (free_objfile): Use bcache_xfree.
3746
444199e7
GS
37472002-07-11 Grace Sainsbury <graces@redhat.com>
3748
3749 * monitor.c (monitor_fetch_register): Make name a constant.
3750 (monitor_store_register): Same.
3751
261397f8
DJ
37522002-07-11 Daniel Jacobowitz <drow@mvista.com>
3753
3754 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3755 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3756 (finish_block) For non-function blocks, hash the symbol table. For
3757 function blocks, mark the symbol table as unhashed.
3758 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3759 (msymbol_hash_iw): Likewise.
3760 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3761 value.
3762 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3763 (lookup_minimal_symbol): Likewise for both.
3764 * symtab.h (struct block): Add `hashtable' flag. Comment the
3765 hashtable.
3766 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3767 (ALL_BLOCK_SYMBOLS): Update.
3768 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3769 (struct symbol): Add `hash_next' pointer.
3770 * symtab.c (lookup_block_symbol): Search using the hash table when
3771 possible.
3772 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3773 (search_symbols, find_addr_symbol): Likewise.
3774
3775 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3776 (read_dst_symtab): Likewise.
3777 * jv-lang.c (get_java_class_symtab): Likewise.
3778 * mdebugread.c: Include "gdb_assert.h".
3779 (shrink_block): Assert that the block being modified is not hashed.
3780 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3781 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3782 symbols.
3783 (dump_symtab): Recognize hashed blocks.
3784 * printcmd.c (print_frame_args): Assert that function blocks do not
3785 have hashed symbol tables.
3786 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3787 (fill_in_ada_prototype, debug_print_block): Likewise.
3788 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3789
6f0eaa01
CV
37902002-07-11 Corinna Vinschen <vinschen@redhat.com>
3791
3792 * stack.c (print_frame): Use result of frame_address_in_block()
3793 instead of fi->pc when evaluating symbols.
3794 (backtrace_command_1): Ditto.
3795
a208b0cb
AC
37962002-07-11 Andrew Cagney <cagney@redhat.com>
3797
3798 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3799 Make static.
3800
3801 * arm-tdep.c (arm_register_name): Make return type constant.
3802
a6b6b089
AC
38032002-07-10 Andrew Cagney <ac131313@redhat.com>
3804
5ae5f592
AC
3805 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3806 prototype.
3807 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3808 * s390-tdep.c (s390_fp_regnum): Ditto.
3809 (s390_read_fp): Ditto.
3810 (s390_pop_frame): Ditto.
3811 (_initialize_s390_tdep): Ditto.
3812 * remote.c (get_remote_state): Ditto.
3813 * procfs.c (mappingflags): Ditto.
3814 * memattr.c (_initialize_mem): Ditto.
3815 * mcore-tdep.c (mcore_pop_frame): Ditto.
3816 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3817 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3818 * language.c (set_case_str): Ditto.
3819 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3820 * frv-tdep.c (new_variant): Ditto.
3821 (frv_stopped_data_address): Ditto.
3822 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3823 (context_alloc): Ditto.
3824 (frame_state_alloc): Ditto.
3825 (unwind_tmp_obstack_init): Ditto.
3826 (unwind_tmp_obstack_free): Ditto.
3827 (cfi_read_fp): Ditto.
3828 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3829 (cris_pop_frame): Ditto.
3830 * c-lang.c (scanning_macro_expansion): Ditto.
3831 (finished_macro_expansion): Ditto.
3832 (c_preprocess_and_parse): Ditto.
3833 * gdbarch.sh: Ditto.
3834 * gdbarch.h, gdbarch.c: Regenerate.
3835 * config/mn10200/tm-mn10200.h: Adjust indentation.
3836 * target.c: Adjust indentation.
3837 * symtab.h: Adjust indentation.
3838 * stabsread.h: Adjust indentation.
3839 * remote-es.c: Adjust indentation.
3840 * os9kread.c: Adjust indentation.
3841
38422002-07-10 Andrew Cagney <ac131313@redhat.com>
3843
a6b6b089
AC
3844 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3845 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3846
a1789893
GS
38472002-07-10 Grace Sainsbury <graces@redhat.com>
3848
3849 * NEWS: Mention m68k, mcore multi-arching.
3850 * MAINTAINERS: Change status of m68k, mcore to reflect
3851 multi-arching.
3852
02f0d45d
DJ
38532002-07-10 Daniel Jacobowitz <drow@mvista.com>
3854
3855 * valops.c (find_overload_match): Free oload_syms.
3856
f15f768e
JB
38572002-07-09 Joel Brobecker <brobecker@gnat.com>
3858
3859 Define HAVE_SYS_PROC_H if sys/proc.h exists
3860 * configure.in: Add check for sys/proc.h
3861 * config.in: Regenerate.
3862 * configure: Regenerate.
3863
902a7139
GS
38642002-07-09 Grace Sainsbury <graces@redhat.com>
3865
3866 * config/m68k/tm-m68k.h: Remove macros wrapped in
3867 #if !GDB_MULTI_ARCH.
3868
a534e424
AC
38692002-07-08 Andrew Cagney <ac131313@redhat.com>
3870
3871 * config.in, configure: Regenerate.
3872
9b94f7bf
MK
38732002-07-08 Mark Kettenis <kettenis@gnu.org>
3874
3875 * dwarf2cfi.c: Include "gcore.h".
3876 (execute_stack_op): Fix implementation of the
3877 DW_OP_deref and DW_OP_deref_size operators by letting do their
3878 lookup in the target.
3879
1d34db41
MK
38802002-07-07 Mark Kettenis <kettenis@gnu.org>
3881
3882 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3883 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3884 tdep->sc_sp_offset.
3885
79d5b63a
DJ
38862002-07-05 Daniel Jacobowitz <drow@mvista.com>
3887
3888 Fix PR gdb/595, gdb/602
3889 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3890 Don't call value_cast, just read the vtable pointer; update comments
3891 to match.
3892
3bb912e8
GS
38932002-07-05 Grace Sainsbury <graces@redhat.com>
3894
3895 * config/mcore/tm-mcore.h: Remove file.
3896 * config/mcore/mcore.mt: Remove definition of TM_FILE
3897 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3898
ca39387d
MK
38992002-07-05 Mark Kettenis <kettenis@gnu.org>
3900
3901 * i386bsd-tdep.c: Include "gdb_string.h".
3902
efdc1108
GS
39032002-07-04 Grace Sainsbury <graces@redhat.com>
3904
3905 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3906 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3907 mcore-tdep.
3908 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3909 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3910 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3911 (RETVAL_REGNUM): Move macros from tm-mcore.h
3912 (mcore_reg_struct_has_addr): New function.
3913 (mcore_gdbarch_init): Added initializations for the macros removed
3914 from tm-mcore.h.
3915
bb21884d
MK
39162002-07-04 Mark Kettenis <kettenis@gnu.org>
3917
3918 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3919 traditonal string branding within the ELF header.
3920
228c6d41
DJ
39212002-07-04 Daniel Jacobowitz <drow@mvista.com>
3922
3923 * symtab.c (remove_params): New function.
3924 (make_symbol_overload_list): Use it instead of cplus_demangle.
3925 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3926
2404952e
MK
39272002-07-04 Mark Kettenis <kettenis@gnu.org>
3928
e5e4acad
MK
3929 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3930
baadce09
MK
3931 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3932 New variables.
3933 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3934 and tdep->sigtramp_end.
3935 * i386obsd-nat.c: New file.
3936 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3937
2404952e
MK
3938 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3939 Don't call get_current_frame().
3940
9b4f1ba7
PM
39412002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3942
3943 * i386-nat.c (child_post_startup_inferior): New function
3944 calling i386_cleanup_dregs if
3945 I386_USE_GENERIC_WATCHPOINTS is defined.
3946 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3947 conditional to acknowledge that i386-nat.c has its
3948 own child_post_startup_inferior function.
3949
c0d1d883
MK
39502002-07-04 Mark Kettenis <kettenis@gnu.org>
3951
00f8375e
MK
3952 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3953 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3954 instead of MAX_REGISTER_RAW_SIZE.
3955 (i386_extract_return_value, i386_extract_struct_value_address):
3956 Convert to use regcache.
3957 (i386_gdbarch_init): Set max_register_raw_size and
3958 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3959 Set extract_return_value and extract_struct_value_address instead
3960 of their deprecated variants.
3961
c0d1d883
MK
3962 Convert i386 target to generic dummy frames.
3963 * i386-tdep.c: Include "symfile.h".
3964 (i386_frameless_signal_p): Consider a function to be frameless if
3965 the pc points at the first instruction of the function.
3966 (i386_frame_chain): Handle (generic) call dummies.
3967 (i386_frame_saved_pc): Likewise.
3968 (i386_frame_init_saved_regs): Remove code dealing with call
3969 dummies on the stack.
3970 (i386_push_dummy_frame): Removed.
3971 (i386_call_dummy_words): Removed.
3972 (i386_fix_call_dummy): Removed.
3973 (i386_push_return_address): New function.
3974 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3975 parameter, and don't call get_current_frame.
3976 (i386_pop_frame): New function.
3977 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3978 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3979 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3980 call_dummy_length to 0, set call_dummy_words to NULL, set
3981 sizeof_call_dummy_words to 0, set fix_call_dummy to
3982 generic_fix_call_dummy, set pc_in_call_dummy to
3983 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3984 generic_push_dummy_frame, set push_return_address to
3985 i386_push_return_address and set frame_chain_valid to
3986 generic_file_frame_chain_valid.
3987
049ee0e4
AC
39882002-07-03 Andrew Cagney <ac131313@redhat.com>
3989
3990 * gdbarch.sh (struct regcache): Add opaque declaration.
3991 (EXTRACT_RETURN_VALUE): New architecture method.
3992 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3993 * gdbarch.h, gdbarch.c: Regenerate.
3994 * arch-utils.c (legacy_extract_return_value): New function.
3995 * arch-utils.h (legacy_extract_return_value): Declare.
3996 * values.c (value_being_returned): Re-enable code handling
3997 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3998 deprecated_grub_regcache_for_registers call to block handling
3999 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4000 (EXTRACT_RETURN_VALUE): Do not define.
4001
4e0d9804
GS
40022002-07-03 Grace Sainsbury <graces@redhat.com>
4003
4004 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4005 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4006 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4007 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4008 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4009 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4010 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4011 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4012 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4013 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4014 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4015 argument so the function fits the prototype in the architecture
4016 vector.
4017 (mcore_pop_frame): Remove argument so the function fits the
4018 prototype. Use get_current_frame instead of the argument.
4019 (mcore_push_arguments): Change type of struct_return so the
4020 function can be used in the architecture vector.
4021 (mcore_store_struct_return): Add.
4022 (mcore_frame_init_saved_regs): Add.
4023 (mcore_gdbarch_init): Add function calls to replace the macros
4024 removed from tm-mcore.h
4025
36160dc4
AC
40262002-07-03 Andrew Cagney <ac131313@redhat.com>
4027
4028 * infcmd.c (print_return_value): Remove compatibility code calling
4029 deprecated_grub_regcache_for_registers.
4030
4031 * values.c: Include "regcache.h".
4032 (value_being_returned): Update. Use
4033 deprecated_grub_regcache_for_registers to extract the register
4034 buffer address.
4035 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4036 ``struct regcache''.
4037 * Makefile.in (values.o): Add dependency on $(regcache_h).
4038
4039 * inferior.h (run_stack_dummy): Change type of second parameter to
4040 a ``struct regcache''.
4041 * valops.c (hand_function_call): Change type of retbuf to ``struct
4042 regcache''. Allocate using regcache_xmalloc, clean using
4043 make_cleanup_regcache_xfree.
4044 * infcmd.c (run_stack_dummy): Update. Use
4045 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4046
4047 * regcache.c (do_regcache_xfree): New function.
4048 (make_cleanup_regcache_xfree): New function.
4049 * regcache.h (make_cleanup_regcache_xfree): Declare.
4050
e64d9b3d
MH
40512002-07-03 Martin M. Hunt <hunt@redhat.com>
4052
4dd79c29
MH
4053 * event-top.c (command_line_handler): Don't read past
4054 beginning of buffer.
e64d9b3d 4055
4dd79c29
MH
40562002-07-03 Martin M. Hunt <hunt@redhat.com>
4057
e64d9b3d
MH
4058 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4059 struct frame_id.
4060 (varobj_create): Store frame_id for root.
4061 (varobj_gen_name): Use xasprintf.
4062 (varobj_update): Save and restore frame using get_frame_id() and
4063 frame_find_by_id().
4064 (create_child): Use xasprintf.
4065 (new_root_variable): Initialize frame_id.
4066 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4067 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4068 to prevent memory leak.
4069
26e6c56a
AC
40702002-07-03 Andrew Cagney <ac131313@redhat.com>
4071
4072 * valops.c (hand_function_call): Move declaration of retbuf to
4073 start of function, allocate using malloc, add a cleanup but before
4074 the inf_status cleanup, cleanup the buffer. Rename local variable
4075 old_chain to inf_status_cleanup.
4076
f436dd25
MH
40772002-07-03 Martin M. Hunt <hunt@redhat.com>
4078
4079 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4080
4081 * cli/cli-decode.c (cmd_func_p): New function.
4082 (cmd_func): New function.
4083
4084 * command.h: Add cmd_func() and cmd_func_p().
4085
4cfe2084
GS
40862002-07-03 Grace Sainsbury <graces@redhat.com>
4087
4088 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4089 (REGISTER_SIZE): Remove.
4090 (MAX_REGISTER_RAW_SIZE): Remove.
4091 (REGISTER_VIRTUAL_TYPE): Remove.
4092 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4093 (REGISTER_NAME): Remove.
4094 (USE_GENERIC_DUMMY_FRAMES): Remove.
4095 (CALL_DUMMY): Remove.
4096 (CALL_DUMMY_START_OFFSET): Remove.
4097 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4098 (CALL_DUMMY_LOCATION): Remove.
4099 (FIX_CALL_DUMMY): Remove.
4100 (CALL_DUMMY_ADDRESS): Remove.
4101 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4102 (SAVE_DUMMY_FRAME_TOS): Remove.
4103 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4104 (mcore_register_virtual_type): New function.
4105 (mcore_register_byte): New function.
4106 (mcore_register_size): New function.
4107 (mcore_register_name): New function.
4108 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4109 macros removed from tm-mcore.h.
4110 (mcore_dump_tdep): Add.
4111 (_initialize_mcore_tdep): Add gdbarch_register call.
4112
4fd667e9
MK
41132002-07-03 Mark Kettenis <kettenis@gnu.org>
4114
4115 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4116 frameless_look_for_prologue, such that we actually call this
4117 function.
4118
42f99ac2
JB
41192002-07-02 Joel Brobecker <brobecker@gnat.com>
4120
4121 * frame.h (frame_address_in_block): New function.
4122
4123 * blockframe.c (frame_address_in_block): New function extracted
4124 from get_frame_block().
4125 (get_frame_block): Use frame_address_in_block().
4126 (block_innermost_frame): Use frame_address_in_block() to match
4127 the frame pc address against the block boundaries rather than
4128 the frame pc directly. This prevents a failure when a frame pc
4129 is actually a return-address pointing immediately after the end
4130 of the given block.
4131
103a1597 41322002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4133
4134 * MAINTAINERS: Add self under write after approval.
4135
41362002-07-02 Grace Sainsbury <graces@redhat.com>
4137
103a1597
GS
4138 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4139 used in architecture vector. The default is
4140 m68k_local_breakpoint_from_pc.
4141 (m68k_local_breakpoint_from_pc): Add.
4142 (enum): Add register numbers from tm-m68k.h.
4143 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4144 vector.
4145 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4146 GDB_MULTI_ARCH_PARTIAL.
4147 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4148 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4149 m68k-tdep.c.
4150 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4151 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4152 to enum in m68k-tdep.c
4153
7a5a0534
JB
41542002-07-02 Joel Brobecker <brobecker@gnat.com>
4155
4156 * solib-osf.c (open_map): Compute the list of shared libraries
4157 loaded by the inferior, rather than the list of libraries loaded
4158 by GDB itself. Otherwise, GDB ends up reading the symbols from
4159 the wrong shared libraries...
4160
6f558d74
MK
41612002-07-02 Mark Kettenis <kettenis@gnu.org>
4162
b7d15bf7
MK
4163 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4164 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4165 macros.
4166 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4167 Remove functions.
4168 (FRAMELESS_SIGNAL): Remove function.
4169 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4170 i386_linux_saved_pc_after_call): Removed.
4171 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4172 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4173 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4174
6bff26de
MK
4175 * i386-tdep.c (i386_frameless_signal_p): New function.
4176 (i386_frame_chain): Deal with frameless signals.
4177 (i386_sigtramp_saved_sp): New function.
4178 (i386_frame_saved_pc): Deal with frameless signals.
4179 (i386_saved_pc_after_call): Make sure the correct value is
4180 returned just after entry into a sigtramp.
4181 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4182 i386fbsd4_sc_sp_offset): New variables.
4183 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4184 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4185 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4186 similiar to what we already did for sc_pc_offset.
4187 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4188 tdep->sc_sp_offset.
4189
6f558d74
MK
4190 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4191
145564b7
ML
41922002-07-02 Michal Ludvig <mludvig@suse.cz>
4193
4194 * config/i386/tm-x86-64linux.h: New.
4195 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4196 definitions.
4197 * config/i386/nm-x86-64.h: Rename to ...
4198 * config/i386/nm-x86-64linux.h: ... this one.
4199 * config/i386/x86-64linux.mh: Reflect the above change.
4200
3a1e71e3
MK
42012002-07-01 Mark Kettenis <kettenis@gnu.org>
4202
21d0e8a4
MK
4203 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4204 with sigcontext_addr. Add sc_sp_offset.
4205 (i386bsd_sigtramp_saved_pc): Remove prototype.
4206 (i386bsd_sicontext_addr): Add prototype.
4207 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4208 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4209 (i386_svr4_sigtramp_saved_pc): Removed.
4210 (i386_svr4_sigcontext_addr): New function.
4211 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4212 Initialize tdep->sigcontext_addr instead. Initialize
4213 tdep->sc_pc_offset and tdep->sc_sp_offset.
4214 (i386_gdbarch_init): Likewise.
4215 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4216 any more.
4217 (i386bsd_sigtramp_saved_pc): Remove function.
4218 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4219 Initialize tdep->sigcontext_addr instead. Initialize
4220 tdep->sc_pc_offset.
4221 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4222 of tdep->sigtramp_saved_pc.
4223 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4224 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4225 instead.
4226
3a1e71e3
MK
4227 * i386-tdep.c (i386_frameless_function_invocation,
4228 i386_frame_num_args, i386_frame_init_saved_regs,
4229 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4230 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4231 i386_extract_return_value, i386_store_return_value,
4232 i386_extract_struct_value_address, i386_register_virtual_type,
4233 i386_register_convertible, i386_register_convert_to_virtual,
4234 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4235 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4236 static.
4237
52e9098c
MK
42382002-07-01 Mark Kettenis <kettenis@gnu.org>
4239
77b13a25
MK
4240 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4241
52e9098c
MK
4242 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4243 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4244 this macro. Include "value.h".
4245
1b372fff
AS
42462002-06-30 Aidan Skinner <aidan@velvet.net>
4247
4248 * ada-exp.tab.c: remove as it's a generated file
4249 * ada-lex.c: remove as it's a generated file
4250
9c5045b5
MK
42512002-06-30 Mark Kettenis <kettenis@gnu.org>
4252
4a93c5bb
MK
4253 * config/i386/tm-i386.h (struct frame_info, struct
4254 frame_saved_regs, struct value, struct type): Remove forward
4255 declarations.
4256
322d4fe0
MK
4257 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4258 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4259 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4260 (FILL_FPXREGSET): Define.
4261
fdd8263d
MK
4262 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4263
482e577b
MK
4264 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4265 i[3456]86-*-netbsd* case.
4266 * config/i386/tm-obsd.h: Removed.
4267 * config/i386/obsd.mt: Removed.
4268 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4269 core-aout.o.
4270 (MH_CFLAGS): Add -DYYDEBUG=0.
4271
6916549a
MK
4272 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4273 i386nbsd_sc_pc_offset on OpenBSD too.
4274
9c5045b5
MK
4275 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4276 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4277 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4278 define.
4279 * i386bsd-tdep.c: Include "arch-utils.h".
4280 (i386bsd_aout_in_solib_call_trampoline): New function.
4281 (i386bsd_init_abi): Set in_solib_call_trampoline to
4282 i386bsd_aout_in_solib_call_trampoline.
4283 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4284 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4285
aa84d1bb
AC
42862002-06-28 Andrew Cagney <ac131313@redhat.com>
4287
4288 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4289 (struct obstack, struct bcache): Add opaque declarations.
4290 * Makefile.in (macrotab_h): Update
4291
b4d83933
AC
42922002-06-28 Andrew Cagney <ac131313@redhat.com>
4293
4294 * blockframe.c (generic_find_dummy_frame): Change return type to
4295 ``struct regcache''.
4296 (struct dummy_frame): Replace field ``registers'' with regcache, a
4297 struct regcache object.
4298 (generic_find_dummy_frame): Update.
4299 (generic_push_dummy_frame): Update. Use regcache_xfree,
4300 regcache_xmalloc and regcache_cpy.
4301 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4302 regcache_xfree.
4303 (deprecated_generic_find_dummy_frame): Update.
4304 (generic_read_register_dummy): Update. Use
4305 regcache_read_as_address.
4306 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4307 (generic_get_saved_register): Update. Use regcache_read.
4308
08c0b5bc
AC
43092002-06-28 Andrew Cagney <ac131313@redhat.com>
4310
4311 * Makefile.in (objfiles_h): Add $(bcache_h).
4312 * objfiles.h: Include "bcache.h".
4313
4314 * Makefile.in (symtab_h): Remove $(bcache_h).
4315 * symtab.h: Do not include "bcache.h".
4316
1f89801a
AC
43172002-06-28 Andrew Cagney <ac131313@redhat.com>
4318
4319 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4320 generic_func_frame_chain_valid.
4321
b9644b58
DB
43222002-06-28 David O'Brien <obrien@FreeBSD.org>
4323
4324 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4325 * config/i386/tm-fbsd.h: Likewise.
4326
dd486634
AC
43272002-06-28 Andrew Cagney <ac131313@redhat.com>
4328
4329 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4330 generic_unwind_get_saved_register.
4331
0b434a00
AC
43322002-06-27 Andrew Cagney <ac131313@redhat.com>
4333
4334 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4335 * regcache.c (supply_register): Add missing argument to
4336 register_buffer call.
4337
f30e5a77
AC
43382002-06-27 Andrew Cagney <ac131313@redhat.com>
4339
4340 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4341 Solaris /bin/grep does not not like it. From Peter Schauer.
4342
9f064c95
TT
43432002-06-26 Tom Tromey <tromey@redhat.com>
4344
4345 * command.h (add_setshow_cmd): Declare.
4346 (add_setshow_cmd_full): Declare.
4347 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4348 returns void. Use add_setshow_cmd_full.
4349 (add_setshow_cmd_full): New function.
4350 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4351 (add_setshow_boolean_cmd): Likewise.
4352
099c7589
JT
43532002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4354
4355 * config/vax/tm-vax.h: Protect from multiple inclusion.
4356 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4357 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4358 * config/vax/tm-vaxbsd.h: ...here. New file.
4359 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4360
1d049c5e
JT
43612002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4362
4363 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4364 (BELIEVE_PCC_PROMOTION): Remove.
4365 (AP_REGNUM): Move to...
4366 * config/vax/nm-vax.h: ...here.
4367 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4368 (vax_breakpoint_from_pc): New function.
4369 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4370 and gdbarch_believe_pcc_promotion.
4371
4791e091
JT
43722002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4373
4374 * Makefile.in (vax_tdep_h): Define.
4375 (vax-tdep.o): Use $(vax_tdep_h).
4376 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4377 (vax_dump_tdep): New function.
4378 (_initialize_vax_tdep): Register vax_dump_tdep.
4379 * vax-tdep.h: Include osabi.h.
4380 (struct gdbarch_tdep): New.
4381
da130f98
AC
43822002-06-26 Andrew Cagney <cagney@redhat.com>
4383
4384 * frame.h (deprecated_generic_find_dummy_frame): Rename
4385 generic_find_dummy_frame.
4386 * blockframe.c (generic_find_dummy_frame): Make static.
4387 (deprecated_generic_find_dummy_frame): New function.
4388 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4389 generic_find_dummy_frame with deprecated_find_dummy_frame.
4390 (sh64_nofp_frame_init_saved_regs): Ditto.
4391 (sh_fp_frame_init_saved_regs): Ditto.
4392 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4393 (s390_frame_chain): Ditto.
4394 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4395
6300c360
GS
43962002-06-26 Grace Sainsbury <graces@redhat.com>
4397
4398 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4399 gdbarch vector are at the top.
4400 (NUM_REGS): Remove.
4401 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4402 (FRAME_ARGS_ADDRESS): Remove.
4403 (FRAME_LOCALS_ADDRESS): Remove.
4404 (FRAME_NUM_ARGS): Remove.
4405 (FRAME_ARGS_SKIP): Remove.
4406 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4407 (m68k_gdbarch_init): Add gdbarch initializations for macros
4408 undefined in tm-m68k.h
4409
1c617db8
GS
44102002-06-26 Grace Sainsbury <graces@redhat.com>
4411
4412 * monitor.h: Add the function regname to monitor_ops
4413 structure. This way NUM_REGS does not have to be a constant.
4414 * monitor.c (monitor_fetch_register): Added support for regname
4415 function. The function is called if the array regnames is NULL.
4416 (monitor_store_register): Same.
da130f98
AC
4417 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4418 regnames array.
1c617db8
GS
4419 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4420 cpu32bug_cmds.regname to point to new function.
4421 * abug-rom.c (abug_regname): Same as above.
4422 (init_abug_cmds): Same.
4423 * dbug-rom.c (dbug_regname): Same as above.
4424 (init_dbug_cmds): Same.
4425 * remote-est.c (est_regname): Same.
4426 (init_est_cmds): Same.
4427 * rom68k-rom.c (rom68k_regname): Same.
4428 (init_rom68k_cmds): Same.
4429
ea9365bb
TT
44302002-06-25 Tom Tromey <tromey@redhat.com>
4431
4432 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4433
72cec141
AC
44342002-06-25 Andrew Cagney <cagney@redhat.com>
4435
4436 * infrun.c (stop_registers): Change variable's type to ``struct
4437 regcache'''.
4438 (xmalloc_inferior_status): Delete function.
4439 (free_inferior_status): Delete function.
4440 (normal_stop): Use regcache_cpy.
4441 (struct inferior_status): Change type of fields ``stop_registers''
4442 and ``registers'' to ``struct regcache''.
4443 (write_inferior_status_register): Use regcache_write.
4444 (save_inferior_status): Instead of calling
4445 xmalloc_inferior_status, allocate the inf_status buffer directly.
4446 Use regcache_dup_no_passthrough and regcache_dup to save the
4447 buffers.
4448 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4449 Replace the stop_registers regcache instead of overriding it. Use
4450 regcache_xfree. Instead of calling free_inferior_status, xfree
4451 the buffer directly.
4452 (discard_inferior_status): Use regcache_xfree. Instead of calling
4453 free_inferior_status, xfree the buffer directly.
4454 (build_infrun): Use regcache_xmalloc.
4455 (_initialize_infrun): Delete redundant call to build_infrun.
4456
4457 * Makefile.in (infcmd.o): Add $(regcache_h).
4458
4459 * infcmd.c: Include "regcache.h".
4460 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4461 obtain the address of `stop_registers' register buffer.
4462 (print_return_value): Ditto.
4463
4464 * inferior.h (struct regcache): Add opaque declaration.
4465 (stop_registers): Change variable's declared type to ``struct
4466 regcache''.
4467
defc6f8c
TT
44682002-06-24 Tom Tromey <tromey@redhat.com>
4469
c0e624e7
TT
4470 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4471 * target.c (initialize_targets): Fixed typo in
4472 trust-readonly-sections `show' documentation.
4473
defc6f8c
TT
4474 * main.c: Marked all strings with _().
4475
2b236d82
DH
44762002-06-24 Don Howard <dhoward@redhat.com>
4477
4478 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4479 that means max CORE_ADDR+1.
4480 (lookup_mem_region): Ditto.
4481 (mem_info_command): Ditto.
4482
942dc0e9
GS
44832002-06-24 Grace Sainsbury <graces@redhat.com>
4484
4485 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4486 (REGISTER_BYTES_OK): Remove.
4487 (REGISTER_BYTES): Remove.
4488 (STORE_STRUCT_RETURN): Remove.
4489 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4490 (STORE_RETURN_VALUE): Remove.
4491 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4492 (FRAME_CHAIN): Remove.
4493 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4494 (FRAME_SAVED_PC): Remove.
4495 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4496 (m68k_store_struct_return): Add.
4497 (m68k_deprecated_extract_return_value): Add.
4498 (m68k_deprecated_extract_struct_value_address): Add.
4499 (m68k_store_return_value): Add.
4500 (m68k_frame_chain): Add.
4501 (m68k_frameless_function_invocation): Add.
4502 (m68k_frame_saved_pc): Add.
4503 (m68k_gdbarch_init): added set_gdbarch calls for new
4504 functions and deleted macros.
4505
03c30d4d
TT
45062002-06-23 Tom Tromey <tromey@redhat.com>
4507
4508 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4509 (ALLDEPFILES): Likewise.
4510 (udiheaders): Removed.
4511 (udip2soc.o): Likewise.
4512 (udi2go32.o): Likewise.
4513 (udr.o): Likewise.
4514 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4515
37e71372
AC
45162002-06-22 Andrew Cagney <ac131313@redhat.com>
4517
06a6ac57
AC
4518 * infrun.c (_initialize_infrun): Delete unnecessary call to
4519 build_infrun.
4520
37e71372
AC
4521 * regcache.h: Update comments describing the regcache_cpy family
4522 of functions.
4523 (regcache_save, regcache_restore): Delete declaration.
4524 (regcache_save_no_passthrough): Delete declaration.
4525 (regcache_restore_no_passthrough): Delete declaration.
4526 * regcache.c (regcache_save): Delete function.
4527 (regcache_save_no_passthrough): Delete function.
4528 (regcache_restore): Delete function.
4529 (regcache_restore_no_passthrough): Delete function.
4530
78f6d055
AC
45312002-06-21 Andrew Cagney <ac131313@redhat.com>
4532
4533 * config/m68k/tm-m68k.h: Fix typo.
4534 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4535 (m68k_frame_init_saved_regs): Declare.
4536
78b119cb
JB
45372002-06-21 Jim Blandy <jimb@redhat.com>
4538
4539 Remove some vestiges of Harris 88k support.
4540 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4541 register numbering quirk.
4542 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4543 odd symbols occurring in Harris 88k ELF targets.
4544
0fbb3da7
TT
45452002-06-21 Tom Tromey <tromey@redhat.com>
4546
4547 * gdb_locale.h: New file.
4548 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4549 (defs_h): Added gdb_locale.h.
4550 * configure, config.in: Rebuilt.
4551 * configure.in (PACKAGE): Define.
4552 * defs.h: Include gdb_locale.h.
4553 * main.c (captured_main): Call setlocale, bindtextdomain,
4554 textdomain.
4555
456f8b9d
DB
45562002-06-21 Dave Brolley <brolley@redhat.com>
4557
4558 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4559 * config/frv/frv.mt: New file.
4560 * config/frv/tm-frv.h: New file.
4561 * configure.tgt: Support frv-*-*.
4562 * Makefile.in (frv-tdep.o): New target.
4563 * frv-tdep.c: New file.
4564 * NEWS: Mention frv.
4565
cdd463f9
DB
45662002-06-21 Dave Brolley <brolley@redhat.com>
4567
4568 * MAINTAINERS: Add self to "Write After Approval" list.
4569
5d3ed2e3
GS
45702002-06-21 Grace Sainsbury <graces@redhat.com>
4571
4572 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4573 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4574 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4575 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4576 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4577
4578 * m68k-tdep.c: Include arch-utils.h
4579 (m68k_register_raw_size): Add.
4580 (m68k_register_virtual_size): Add.
4581 (m68k_register_virtual_type): Add.
4582 (m68k_register_name): Add.
4583 (m68k_stack_align): Add.
4584 (m68k_register_byte): Add.
4585 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4586 tm-m68k.h.
4587
7f8e7424
GS
45882002-06-21 Grace Sainsbury <graces@redhat.com>
4589
a2c6a6d5 4590 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4591 m68k_find_saved_regs.
4592 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4593 references to it with frame->saved_regs.
7f8e7424
GS
4594 (m68k_gdbarch_init): Added function calls to initialize the
4595 gdbarch structure.
a2c6a6d5
GS
4596 (m68k_fix_call_dummy): Add.
4597 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4598 (CALL_DUMMY): Remove.
4599 (CALL_DUMMY_LENGTH): Remove.
4600 (CALL_DUMMY_START_OFFSET): Remove.
4601 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4602 (FIX_CALL_DUMMY): Remove.
4603 (PUSH_DUMMY_FRAME): Remove.
4604 (POP_FRAME): Remove.
7f8e7424 4605
f461f5cf
PM
46062002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4607
4608 * parse.c (parse_fprintf): New function used to avoid calls to
4609 fprintf in bison parser generated debug code.
4610 * parser-defs.h: Declaration of new parse_fprintf function.
4611 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4612 Set YYDEBUG to 1 by default.
4613 Set YYFPRINTF as parse_fprintf.
4614
7f0c12ed
ML
46152002-06-21 Michal Ludvig <mludvig@suse.cz>
4616
4617 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4618 encoding anymore.
4619 (pointer_encoding, enum ptr_encoding): New.
4620 (execute_cfa_program): Take care about pointer encoding.
4621 (dwarf2_build_frame_info): Only call parse_frame_info for
4622 .debug_frame and .eh_frame.
4623 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4624 fixed augmentation handling, added relative addressing,
4625 ignore duplicate FDEs. Added comments.
19d833a2 4626 * dwarf2cfi.c: Reindented.
7f0c12ed 4627
87c4a039
EZ
46282002-06-20 Elena Zannoni <ezannoni@redhat.com>
4629
4630 * event-top.c (command_handler): Don't use space_at_cmd_start
4631 unless there is sbrk() on the host. Assign time and space data
4632 to union fields of the appropriate length.
4633
1cf877ad
ML
46342002-06-20 Michal Ludvig <mludvig@suse.cz>
4635
4636 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4637 x86_64_register_name. Return type changed to 'const char *'.
4638 (x86_64_register_name2nr): Rename to x86_64_register_number.
4639 (x86_64_gdbarch_init): Update to reflect the change.
4640 * x86-64-tdep.h: Ditto.
4641 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4642 (supply_fpregset): Ditto.
4643
3fadccb3
AC
46442002-06-19 Andrew Cagney <cagney@redhat.com>
4645
4646 * regcache.h: Update copyright.
4647 (struct regcache, struct gdbarch): Add opaque declarations.
4648 (current_regcache): Declare global variable.
4649 (regcache_read, regcache_write): Add gdbarch parameter.
4650 (regcache_save, regcache_save_no_passthrough)
4651 (regcache_restore, regcache_restore_no_passthrough)
4652 (regcache_dup, regcache_dup_no_passthrough)
4653 (regcache_cpy, regcache_cpy_no_passthrough)
4654 (deprecated_grub_regcache_for_registers)
4655 (deprecated_grub_regcache_for_register_valid)
4656 (regcache_valid_p): Add function declarations.
4657
4658 * regcache.c: Update copyright.
4659 (regcache_descr_handle): New global variable.
4660 (struct regcache_descr): Define.
4661 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4662 (regcache_descr, xfree_regcache_descr): New functions.
4663 (struct regcache): Define.
4664 (regcache_xmalloc, regcache_xfree): New functions.
4665 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4666 (regcache_dup, regcache_dup_no_passthrough): New functions.
4667 (regcache_valid_p, regcache_read_as_address): New functions.
4668 (deprecated_grub_regcache_for_registers): New function.
4669 (deprecated_grub_regcache_for_register_valid): New function.
4670 (current_regcache): New global variable.
4671 (register_buffer): Add regcache parameter. Update calls.
4672 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4673 (read_register_gen, write_register_gen): Update register_buffer
4674 call. Test for legacy_p instead of gdbarch_register_read_p or
4675 gdbarch_register_write_p.
4676 (regcache_collect): Update register_buffer call.
4677 (build_regcache): Rewrite. Use deprecated grub functions.
4678 (regcache_save, regcache_save_no_passthrough): New functions.
4679 (regcache_restore, regcache_restore_no_passthrough): New
4680 functions.
4681 (_initialize_regcache): Create the regcache_data_handle. Swap
4682 current_regcache global variable.
4683
4684 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4685 parameter to regcache_read and regcache_write calls.
4686 (sh4_register_read): Ditto.
4687 (sh64_pseudo_register_read): Ditto.
4688 (sh64_register_read): Ditto.
4689 (sh_pseudo_register_write): Ditto.
4690 (sh4_register_write): Ditto.
4691 (sh64_pseudo_register_write): Ditto.
4692 (sh64_register_write): Ditto.
4693
4694 * defs.h (XCALLOC): Define.
4695
152d9db6
GS
46962002-06-19 Grace Sainsbury <graces@redhat.com>
4697
4698 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4699 * m68k-tdep.c (m68k_gdbarch_init): Added.
4700 (m68k_dump_tdep): Added.
4701
170911c7
DJ
47022002-06-19 Daniel Jacobowitz <drow@mvista.com>
4703
4704 * ada-lang.c (fill_in_ada_prototype): Update comment.
4705
2e4ebe70
DJ
47062002-06-19 Daniel Jacobowitz <drow@mvista.com>
4707
4708 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4709 MIPS_ABI_LAST.
4710 (mips_abi_string, mips_abi_strings): New.
4711 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4712 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4713 tdep->mips_abi_string. Honor mips_abi_string. Default to
4714 O32 if no ABI is found.
4715 (mips_dump_tdep): Use mips_abi_strings.
4716 (mips_abi_update): New function.
4717 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4718 ``set mips abi'' and ``show mips abi''. Check the size of
4719 mips_abi_strings.
4720
16775908
AC
47212002-06-19 Andrew Cagney <cagney@redhat.com>
4722
4723 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4724 constant.
4725
5051bfa4 47262002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4727
5051bfa4
JB
4728 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4729 current frame using only the first stack size adjustment. All
4730 subsequent size adjustments are not considered to be part of
4731 the "static" part of the current frame.
4732 Compute the address of the saved registers relative to the
4733 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4734 in use in this frame.
4735
56468235
DH
47362002-06-18 Don Howard <dhoward@redhat.com>
4737
4738 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4739 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4740 suggesting this solution.
4741
0b624158
AC
47422002-06-18 Andrew Cagney <ac131313@redhat.com>
4743
4744 * config/romp/xm-rtbsd.h: Delete file.
4745 * config/romp/rtbsd.mh: Delete file.
4746
221ea385
KS
47472002-06-18 Keith Seitz <keiths@redhat.com>
4748
4749 * breakpoint.c (condition_command): Post breakpoint_modify
4750 when a condition is added to an existing breakpoint.
4751 (commands_command): Likewise for commands.
4752 (set_ignore_count): Likewise for ignore counts.
4753 If no tty, do not simply return, still need to send event
4754 notification.
4755 (ignore_command): Only print a newline if the command came
4756 from a tty.
4757 Don't call breakpoints_changed, since this is now properly
4758 handled by set_ignore_count.
4759
5402eed1
AC
47602002-06-18 Andrew Cagney <cagney@redhat.com>
4761
4762 * MAINTAINERS: Note that cris-elf target can be compiled with
4763 -Werror.
4764 * cris-tdep.c (cris_register_name): Make return type constant.
4765 (cris_breakpoint_from_pc): Ditto.
4766
cc22880b
ML
47672002-06-18 Michal Ludvig <mludvig@suse.cz>
4768
4769 * frame.h (struct frame_info): Change type of context to
4770 'struct context'.
4771
fa88f677
AC
47722002-06-17 Andrew Cagney <cagney@redhat.com>
4773
4774 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4775 pointer.
4776 * gdbarch.h, gdbarch.c: Regenerate.
4777 * config/mips/tm-mips.h (mips_register_name): Update.
4778 * i386-tdep.h (i386_register_name): Update.
4779 * mips-tdep.c (mips_register_name): Update
4780 * alpha-tdep.c (alpha_register_name): Update.
4781 * arch-utils.c (legacy_register_name): Update.
4782 * arch-utils.h (legacy_register_name): Update.
4783 * avr-tdep.c (avr_register_name): Update.
4784 * ia64-tdep.c (ia64_register_name): Update.
4785 * i386-tdep.c (i386_register_name): Update.
4786 * sparc-tdep.c (sparc32_register_name): Update.
4787 (sparc64_register_name): Update.
4788 (sparclite_register_name): Update.
4789 (sparclet_register_name): Update.
4790 * sh-tdep.c (sh_generic_register_name): Update.
4791 (sh_sh_register_name): Update.
4792 (sh_sh3_register_name): Update.
4793 (sh_sh3e_register_name): Update.
4794 (sh_sh_dsp_register_name): Update.
4795 (sh_sh3_dsp_register_name): Update.
4796 (sh_sh4_register_name): Update.
4797 (sh_sh64_register_name): Update.
4798 * s390-tdep.c (s390_register_name): Update.
4799 * rs6000-tdep.c (rs6000_register_name): Update.
4800 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4801 (ns32k_register_name_32382): Update.
4802 * d10v-tdep.c (d10v_ts2_register_name): Update.
4803 (d10v_ts3_register_name): Update.
4804 * xstormy16-tdep.c (xstormy16_register_name): Update.
4805 * vax-tdep.c (vax_register_name): Update.
4806 * v850-tdep.c (v850_register_name): Update.
4807 * m68hc11-tdep.c (m68hc11_register_name): Update.
4808 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4809 (am33_register_name): Update.
4810
ea1e7ef6
GS
48112002-06-17 Grace Sainsbury <graces@redhat.com>
4812
4813 * m68k-tdep.c: Reindented.
4814
9b02dd1b
AC
48152002-06-17 Andrew Cagney <ac131313@redhat.com>
4816
4817 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4818 list of predefined types.
4819
8758dec1
MK
48202002-06-16 Mark Kettenis <kettenis@gnu.org>
4821
b6197528
MK
4822 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4823 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4824 REGISTER_CONVERT_TO_RAW): Remove defines.
4825 (i386_register_virtual_type, i386_register_convertible,
4826 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4827 Remove prototypes.
4828 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4829 macros mentioned above.
4830
82b47e62
MK
4831 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4832 (i386lynx_saved_pc_after_call): Remove prototype.
4833 * i386ly-tdep.c: Include "i386-tdep.h".
4834 (i386lynx_saved_pc_after_call): Make static. Use
4835 read_memory_nobpt instead of read_memory. Use
4836 read_memory_unsigned_integer instead of read_memory_integer.
4837 (i386lynx_init_abi): New function.
4838 (i386lynx_coff_osabi_sniffer): New function.
4839 (_initialize_i386bsd_tdep): New function.
4840
8758dec1
MK
4841 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4842 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4843 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4844 (i386_fix_call_dummy): Remove prototype.
4845 * i386-tdep.c (i386_call_dummy_words): New variable.
4846 (i386_gdbarch_init): Adjust for removal of the
4847 macros mentioned above.
4848
e9e68a56
AC
48492002-06-15 Andrew Cagney <ac131313@redhat.com>
4850
4851 * command.h (add_setshow_auto_boolean_cmd): Replace
4852 add_set_auto_boolean_cmd.
4853 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4854 add_set_auto_boolean_cmd.
4855 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4856 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4857 mask-address'' command.
4858 (show_mask_address): Add cmd parameter.
4859 * remote.c (add_packet_config_cmd): Update. Change type of
4860 set_func and show_func to cmd_sfunc_ftype.
4861 (_initialize_remote): Update `set remote Z-packet'
4862 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4863 (show_remote_protocol_e_packet_cmd): Ditto.
4864 (show_remote_protocol_E_packet_cmd): Ditto.
4865 (show_remote_protocol_P_packet_cmd): Ditto.
4866 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4867 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4868 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4869 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4870 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4871 (show_remote_protocol_Z_packet_cmd): Ditto.
4872 (show_remote_protocol_binary_download_cmd): Ditto.
4873 (show_remote_cmd): Pass NULL to all of above.
4874
fc08ec52
MK
48752002-06-15 Mark Kettenis <kettenis@gnu.org>
4876
4877 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4878 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4879 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4880 POP_FRAME): Remove defines.
4881 (i386_push_arguments, i386_store_struct_return,
4882 i386_extract_return_value, i386_store_return_value,
4883 i386_extract_struct_value_address, i386_push_dummy_frame,
4884 i386_pop_frame): Renove prototypes.
4885 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4886 macros mentioned above.
4887
e707bbc2
AC
48882002-06-15 Andrew Cagney <ac131313@redhat.com>
4889
4890 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4891 add_set_boolean_cmd.
4892 (add_setshow_cmd): New function.
4893 * command.h (add_setshow_boolean_cmd): Replace
4894 add_set_boolean_cmd.
4895 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4896 and ``set rdiromatzero''.
4897 * maint.c (_initialize_maint_cmds): Update commented out code.
4898 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4899 * target.c (initialize_targets): Update `set
4900 trust-readonly-sections'.
4901 * remote.c (_initialize_remote): Update `set remotebreak'.
4902
42fdc8df
MK
49032002-06-15 Mark Kettenis <kettenis@gnu.org>
4904
93924b6b
MK
4905 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4906 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4907 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4908 fit into multi-arch framework.
4909 (i386_breakpoint_from_pc): New function.
4910 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4911 above.
4912
42fdc8df
MK
4913 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4914 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4915 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4916 (i386_frameless_function_invocation, i386_frame_num_args,
4917 i386_frame_init_saved_regs): Remove prototypes.
4918 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4919 macros mentioned above.
4920
9773a94b
AC
49212002-06-15 Andrew Cagney <ac131313@redhat.com>
4922
4923 * cli/cli-decode.c (set_cmd_cfunc): Update.
4924 (set_cmd_sfunc): Update.
4925 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4926 (set_cmd_sfunc, set_cmd_cfunc): Update.
4927 * cli/cli-decode.h: Update.
4928
6e157172
MK
49292002-06-15 Mark Kettenis <kettenis@gnu.org>
4930
4931 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4932 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4933
7f19b9a2
AC
49342002-06-15 Andrew Cagney <ac131313@redhat.com>
4935
4936 * defs.h (auto_boolean): Declare enum.
4937 * command.h (cmd_auto_boolean): Delete enum.
4938 * mips-tdep.c (mask_address_var): Update.
4939 (mips_mask_address_p): Update.
4940 (show_mask_address): Update.
4941 * remote.c (struct packet_config): Update.
4942 (update_packet_config): Update.
4943 (show_packet_config_cmd): Update.
4944 (packet_ok): Update.
4945 (add_packet_config_cmd): Update.
4946 (_initialize_remote):
4947 * command.h: Update.
4948 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4949 (do_setshow_command): Update.
4950 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4951 * cli/cli-decode.h: Update.
4952
1cf88de5
MK
49532002-06-15 Mark Kettenis <kettenis@gnu.org>
4954
22ba8cf2
MK
4955 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4956 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4957 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4958 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4959 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4960 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4961
762c5349
MK
4962 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4963 list of DJGPP COFF targets.
4964
091198bb
MK
4965 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4966 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4967 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4968 (FP0_REGNUM): Remove define.
4969 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4970 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4971 (i386_register_virtual_size): Remove protoype.
4972 * i386-tdep.c (i386_register_virtual_size): Removed.
4973 (i386_extract_return_value, i386_store_return_value): Use
4974 FP0_REGNUM instead of NUM_FREGS to determine whether the
4975 floating-point registers are available.
4976 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4977 Adjust for removal of macros mentioned above.
4978
49792002-06-15 Mark Kettenis <kettenis@gnu.org>
4980
fcc9bf01
MK
4981 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4982 comments.
4983 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4984 Remove prototypes.
4985 (supply_gregset, fill_gregset): Remove use of register keyword and
4986 remove declaration for regmap. Use I386_NUM_GREGS instead of
4987 NUM_REGS and NUM_FREGS.
4988 (FPREGSET_FSAVE_OFFSET): Remove.
4989 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4990 NUM_FREGS to determine whether the floating-point registers are
4991 available.
4992
65e78234
MK
4993 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4994 gnu_store_registers): Replace usage of NUM_GREGS with
4995 I386_NUM_GREGS.
4996
98df6387
MK
4997 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4998 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4999 usage of NUM_GREGS with I386_NUM_GREGS.
5000
099a9414
MK
5001 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5002
57976e88
MK
5003 * i386bsd-nat.c: Include "i386-tdep.h".
5004 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5005 I386_NUM_GREGS.
5006
b335f4a6
MK
5007 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5008 and associated comment. They no longer make any sense, since we
5009 don't use this file anymore on Linux.
5010
1cf88de5
MK
5011 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5012 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5013 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5014 elements in these arrays.
5015 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5016 MAX_NUM_REGS.
5017
daa66587
MK
50182002-06-15 Mark Kettenis <kettenis@gnu.org>
5019
5020 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5021 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5022
26e9b323
AC
50232002-06-14 Andrew Cagney <cagney@redhat.com>
5024
5025 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5026 EXTRACT_RETURN_VALUE.
5027 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5028 EXTRACT_STRUCT_VALUE_ADDRESS.
5029 * gdbarch.h, gdbarch.c: Regenerate.
5030
5031 * values.c (value_being_returned): Handle
5032 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5033 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5034
5035 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5036 * arm-tdep.c (arm_gdbarch_init): Update.
5037 * avr-tdep.c (avr_gdbarch_init): Update.
5038 * cris-tdep.c (cris_gdbarch_init): Update.
5039 * d10v-tdep.c (d10v_gdbarch_init): Update.
5040 * ia64-tdep.c (ia64_gdbarch_init): Update.
5041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5043 * s390-tdep.c (s390_gdbarch_init): Update.
5044 * sh-tdep.c (sh_gdbarch_init): Update.
5045 * s390-tdep.c (s390_gdbarch_init): Update.
5046 * sparc-tdep.c (sparc_gdbarch_init): Update.
5047 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5048 * v850-tdep.c (v850_gdbarch_init): Update.
5049 * vax-tdep.c (vax_gdbarch_init): Update.
5050 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5052
5053 * config/arc/tm-arc.h: Update.
5054 * config/d30v/tm-d30v.h: Update.
5055 * config/fr30/tm-fr30.h: Update.
5056 * config/h8300/tm-h8300.h: Update.
5057 * config/h8500/tm-h8500.h: Update.
5058 * config/i386/tm-i386.h: Update.
5059 * config/i386/tm-ptx.h: Update.
5060 * config/i386/tm-symmetry.h: Update.
5061 * config/i960/tm-i960.h: Update.
5062 * config/m32r/tm-m32r.h: Update.
5063 * config/m68k/tm-delta68.h: Update.
5064 * config/m68k/tm-linux.h: Update.
5065 * config/m68k/tm-m68k.h: Update.
5066 * config/m88k/tm-m88k.h: Update.
5067 * config/mcore/tm-mcore.h: Update.
5068 * config/mips/tm-mips.h: Update.
5069 * config/mn10200/tm-mn10200.h: Update.
5070 * config/pa/tm-hppa.h: Update.
5071 * config/pa/tm-hppa64.h: Update.
5072 * config/sparc/tm-sp64.h: Update.
5073 * config/sparc/tm-sparc.h: Update.
5074 * config/sparc/tm-sparclet.h: Update.
5075 * config/z8k/tm-z8k.h: Update.
5076
5179e78f
AC
50772002-06-14 Andrew Cagney <cagney@redhat.com>
5078
5079 * Makefile.in (i386_linux_tdep_h): Define.
5080 (i386_tdep_h, i387_tdep_h): Define.
5081 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5082 $(i386_tdep_h) and $(i387_tdep_h).
5083 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5084
8201327c
MK
50852002-06-14 Mark Kettenis <kettenis@gnu.org>
5086
edf393ac
MK
5087 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5088 Already covered by the default.
5089
896fb97d
MK
5090 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5091 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5092 (i386_gdbarch_init): Initialize long_double_format and long_double
5093 bit.
5094
8201327c
MK
5095 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5096 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5097 Move these to ...
5098 * config/i386/i386sol2.mh: ... here.
5099 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5100 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5101 (SIGCONTEXT_PC_OFFSET): Remove define.
5102 (IN_SIGTRAMP): Remove define.
5103 * i386-sol2-tdep.c: New file.
5104
5105 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5106 * config/i386/tm-i386nw.h: Removed.
5107
5108 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5109 USE_STRUCT_CONVENTION): Remove defines.
5110 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5111 (get_longjmp_target): Remove prototype.
5112 (IN_SIGTRAMP): Remove define.
5113 (i386bsd_in_sigtramp): Remove prototype.
5114 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5115 function. Update comment accordingly
5116 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5117 (FRAME_SAVED_PC): Remove define.
5118 (i386bsd_frame_saved_pc): Remove prototype.
5119 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5120 GET_LONGJMP_TARGET): Remove defines.
5121 (get_longjmp_target): Remove prototype.
5122 (IN_SIGTRAMP): Remove define.
5123 (i386bsd_in_sigtramp): Remove prototype.
5124 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5125 function. Update comment accordingly
5126 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5127 (FRAME_SAVED_PC): Remove define.
5128 (i386bsd_frame_saved_pc): Remove prototype.
5129 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5130 Remove prototype.
5131 (USE_STRUCT_CONVENTION): Remove prototype.
5132 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5133 declaration.
5134 (_initialize_i386bsd_nat): Revise logic to determine some
5135 constants at compile time when compiling a native GDB. Warn if
5136 things don't match up with what we expect.
5137 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5138 Remove variables.
5139 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5140 to use date stored in `struct gdbarch_tdep'.
5141 (i386bsd_sigcontext_offset): Remove varaible.
5142 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5143 stored in `struct gdbarch_tdep'.
5144 (i386bsd_frame_saved_pc): Make static.
5145 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5146 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5147 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5148 i386fbsd4_sc_pc_offset): New variables.
5149 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5150 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5151 functions.
5152 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5153 functions.
5154 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5155 Modify the value of i386fbsd_sigtramp_start and
5156 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5157 i386fbsd_sigtramp_end.
5158 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5159 function.
5160
5161 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5162 define to i386-linux-tdep.h.
5163 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5164 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5165 defines.
5166 (i386_linux_register_name, i386_linux_register_byte,
5167 i386_linux_register_raw_size): Remove prototypes.
5168 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5169 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5170 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5171 TARGET_WRITE_PC): Remove defines.
5172 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5173 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5174 i386_linux_write_pc): Remove prototypes.
5175 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5176 (get_longjmp_target): Remove prototype.
5177 * i386-linux-tdep.h: New file.
5178 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5179 * i386-linux-tdep.c: Include "i386-tdep.h" and
5180 "i386-linux-tdep.h".
5181 (i386_linux_register_name, i386_linux_register_byte,
5182 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5183 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5184 Make static.
5185 (i386_linux_init_abi): New function.
5186 (_initialize_i386_linux_tdep): New function.
5187
5188 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5189 (i386_saved_pc_after_call): Remove prototype.
5190 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5191 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5192 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5193 (i386_register_name, i386_stab_reg_to_regnum,
5194 i386_dwarf_reg_to_regnum): Remove prototypes.
5195 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5196 SIZEOF_SSE_REGS): Remove defines.
5197 (REGISTER_BYTES): Remove define.
5198 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5199 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5200 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5201 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5202 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5203 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5204 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5205 (get_longjmp_target): Remove prototype.
5206 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5207 (sigtramp_saved_pc): Remove define.
5208 (i386v4_sigtramp_saved_pc): Remove prototype.
5209 * config/i386/tm-go32.h (FRAME_CHAIN,
5210 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5211 (i386go32_frame_saved_pc): Remove prototype.
5212 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5213 (get_longjmp_target): Remove prototype.
5214 * i386-tdep.h: Include "osabi.h".
5215 (enum i386_abi): Removed.
5216 (enum struct_return): New enum.
5217 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5218 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5219 sc_pc_offset members.
5220 (i386_gdbarch_register_os_abi): Remove prototype.
5221 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5222 I386_SSE_NUM_REGS): New defines.
5223 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5224 I386_SSE_SIZEOF_REGS): New defines.
5225 (i386_register_name, i386_register_byte, i386_register_raw_size):
5226 New prototypes.
5227 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5228 (i386bsd_sigtramp_saved_pc): New prototype.
5229 * i386-tdep.c: Don't include "elf-bfd.h".
5230 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5231 i386_frame_chain, i386_saved_pc_after_call): Make static.
5232 (i386_frame_saved_pc): Rewrite to call architecture dependent
5233 function to deal with signal handlers. Make static.
5234 (i386go32_frame_saved_pc): Removed.
5235 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5236 Removed.
5237 (i386_get_longjmp_target): New function.
5238 (default_struct_convention, pcc_struct_convention,
5239 reg_struct_convention, valid_conventions, struct_convention): New
5240 variables.
5241 (i386_use_struct_convention): New function.
5242 (i386v4_sigtramp_saved_pc): Renamed to
5243 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5244 (i386_pc_in_sigtramp): New function.
5245 (i386_abi_names): Removed.
5246 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5247 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5248 Removed.
5249 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5250 i386_gdbarch_register_os_abi): Removed.
5251 (struct i386_abi_handler): Removed.
5252 (i386_abi_handler_list): Removed.
5253 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5254 functions.
5255 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5256 i386_nw_init_abi): New functions.
5257 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5258 Use set_gdbarch_xxx() calls instead of relying on macros for a
5259 number of calls.
5260 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5261 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5262 Register the various architecture variants defined in this file.
5263
ad2f7632
DJ
52642002-06-14 Daniel Jacobowitz <drow@mvista.com>
5265
5266 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5267 (struct main_type): Remove arg_types member. Update comments for
5268 struct field.
5269 (TYPE_ARG_TYPES): Remove.
5270 (TYPE_FN_FIELD_ARGS): Update.
5271 (smash_to_method_type): Update prototype.
5272
5273 * c-typeprint.c (cp_type_print_method_args): Take method type
5274 instead of argument list. Use new argument layout. Simplify.
5275 (c_type_print_args): Use new argument layout. Simplify.
5276 (c_type_print_base): Update call to cp_type_print_method_args.
5277 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5278 argument; use die->type instead. Update call to
5279 smash_to_method_type.
5280 (read_structure_scope): Update call to dwarf2_add_member_fn.
5281 * gdbtypes.c (allocate_stub_method): Update comment.
5282 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5283 Use new argument layout.
5284 (check_stub_method): Use new argument layout. Don't count
5285 void as an argument.
5286 (print_arg_types): Update comments. Use new argument layout.
5287 (recursive_dump_type): Don't print arg_types member.
5288 * hpread.c (hpread_read_struct_type): Use new argument layout.
5289 (fixup_class_method_type): Likewise.
5290 (hpread_type_lookup): Likewise.
5291 * stabsread.c (read_type): Update calls to read_args and
5292 smash_to_method_type.
5293 (read_args): Use new argument layout. Simplify.
5294 * valops.c (typecmp): Use new argument layout. Update parameters
5295 and comments. Simplify.
5296 (hand_function_call): Use new argument layout.
5297 (search_struct_method): Update call to typecmp.
5298 (find_overload_match): Use new argument layout.
5299
6da02953
DJ
53002002-06-13 Daniel Jacobowitz <drow@mvista.com>
5301
5302 * NEWS: Mention multithreaded debug support for gdbserver.
5303
519b2366
DJ
53042002-06-13 Daniel Jacobowitz <drow@mvista.com>
5305
5306 * MAINTAINERS: Mention NEWS.
5307
6c0d6680
DJ
53082002-06-13 Daniel Jacobowitz <drow@mvista.com>
5309
5310 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5311 (struct mips_objfile_private, compare_pdr_entries): New.
5312 (non_heuristic_proc_desc): Read the ".pdr" section if it
5313 is present.
5314
6529d2dd
AC
53152002-06-12 Andrew Cagney <ac131313@redhat.com>
5316
5317 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5318 (arm_debug): New static variable.
5319 (_initialize_arm_tdep): Add ``set debug arm'' command.
5320
26216b98
AC
53212002-06-12 Andrew Cagney <ac131313@redhat.com>
5322
5323 * Makefile.in (sim_arm_h): Define.
5324 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5325 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5326 (arm_register_sim_regno): New function, map an internal REGNUM
5327 onto a simulator register number.
5328 (arm_gdbarch_init): Set register_sim_regno.
5329
814b3ba0
AH
53302002-06-09 Aldy Hernandez <aldyh@redhat.com>
5331
5332 * MAINTAINERS: Add self.
5333
475b0867
JB
53342002-06-11 Jim Blandy <jimb@redhat.com>
5335
919d772c
JB
5336 * source.c (source_info): Mention whether the symtab has
5337 information about preprocessor macros.
5338
475b0867
JB
5339 Call the command `info macro', not `show macro'.
5340 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5341 Fix error message.
5342 (_initialize_macrocmd): Register `info_macro_command' in
5343 `infolist', not `showlist'.
5344
9e364162
DJ
53452002-06-11 Daniel Jacobowitz <drow@mvista.com>
5346
5347 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5348 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5349 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5350 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5351 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5352 unconditionally.
5353 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5354 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5355 (_initialize_mips_tdep): Remove dead code.
5356 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5357 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5358 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5359 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5360 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5361 MIPS_LAST_FP_ARG_REGNUM): Remove.
5362
23aa4c72
ML
53632002-06-11 Michal Ludvig <mludvig@suse.cz>
5364
5365 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5366 (unwind_tmp_obstack_free, parse_frame_info)
5367 (update_context, cfi_read_fp, cfi_write_fp)
5368 (cfi_frame_chain, cfi_init_extra_frame_info)
5369 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5370 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5371
70eb15a4
CV
53722002-06-11 Corinna Vinschen <vinschen@redhat.com>
5373
5374 * v850-tdep.c (v850_type_is_scalar): New function.
5375 (v850_use_struct_convention): Match current gcc implementation
5376 as close as possible.
5377 (v850_push_arguments): Fix stack_offset handling. Don't write
5378 struct_addr into register. This is done by v850_store_struct_return.
5379 (v850_extract_return_value): Care for structs.
5380 (v850_store_return_value): Ditto.
5381 (v850_store_struct_return): Actually write address.
5382
482a4d06
ML
53832002-06-11 Michal Ludvig <mludvig@suse.cz>
5384
5385 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5386 without debug information too.
5387
d855c300
AC
53882002-06-10 Andrew Cagney <ac131313@redhat.com>
5389
5390 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5391 Make multi-arch pure.
5392 * gdbarch.h, gdbarch.c: Re-generate.
5393 * arm-tdep.c (arm_print_float_info): Update.
5394 * arch-utils.h (default_print_float_info): Update.
5395 * arch-utils.c (default_print_float_info): Update.
5396 * infcmd.c (float_info): Update call.
5397
dd12a101
AC
53982002-06-10 Andrew Cagney <ac131313@redhat.com>
5399
5400 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5401 the front of the initialize list.
5402
101dcfbe
AC
54032002-06-10 Andrew Cagney <ac131313@redhat.com>
5404
5405 * infrun.c (struct inferior_status): Replace fields
5406 selected_frame_address and selected_level with field
5407 selected_frame_id.
5408 (save_inferior_status): Update. Use get_frame_id.
5409 (struct restore_selected_frame_args): Delete.
5410 (restore_selected_frame): Update. Use frame_find_by_id.
5411 (restore_inferior_status): Update.
5412
5413 * breakpoint.h (struct breakpoint): Change type of
5414 watchpoint_frame to frame_id.
5415 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5416 call to get_current_frame.
5417 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5418 get_current_frame.
5419 (watchpoint_check): Use frame_find_by_id.
5420
5421 * frame.h (record_selected_frame): Delete declaration.
5422 * stack.c (record_selected_frame): Delete function.
5423
5424 * frame.h (struct frame_id): Define.
5425 (get_frame_id): Declare.
5426 (frame_find_by_id): Declare.
5427 * frame.c (frame_find_by_id): New function.
5428 (get_frame_id): New function.
5429
304270b6
AV
54302002-06-10 Andrey Volkov <avolkov@transas.com>
5431
5432 * ser-e7kpc.c: Fix duplicated define and call of
5433 _initialize_ser_e7000pc
5434
2f2cf184
DJ
54352002-06-09 Daniel Jacobowitz <drow@mvista.com>
5436
5437 * signals/signals.c (target_signal_from_host): Fix #ifdef
5438 SIGRTMIN case.
5439 (do_target_signal_to_host): Likewise.
5440
caaa3122
DJ
54412002-06-09 Daniel Jacobowitz <drow@mvista.com>
5442
5443 * mips-tdep.c (mips_find_abi_section): New function.
5444 (mips_gdbarch_init): Call it.
5445
6ac5df3a
MK
54462002-06-09 Mark Kettenis <kettenis@gnu.org>
5447
5448 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5449 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5450 after Andrew's 2002-06-08 gdbarch change.
5451
82ea117a
MK
54522002-06-09 Mark Kettenis <kettenis@gnu.org>
5453
5454 * i386-linux-nat.c (suppy_gregset): Don't supply
5455 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5456 register cache.
5457 (fill_gregset): Don't fetch it under the same circumstances.
5458
3c25f8c7
AC
54592002-06-09 Andrew Cagney <cagney@redhat.com>
5460
5461 * Makefile.in (callback_h): Define.
5462 (remote_sim_h): Update path to remote-sim.h.
5463 (remote-rdp.o): Add $(callback_h).
5464 (remote-sim.o): Use $(callback_h).
5465 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5466 * remote-rdp.c: Include "gdb/callback.h".
5467
1029b7fa
MK
54682002-06-09 Mark Kettenis <kettenis@gnu.org>
5469
5470 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5471 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5472
616675d3
AC
54732002-06-08 Andrew Cagney <ac131313@redhat.com>
5474
a3efda28
AC
5475 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5476 * rdi-share/serpardr.c: Ditto.
5477 * rdi-share/unixcomm.c: Ditto.
5478 * rdi-share/serdrv.c: Ditto.
5479 * rdi-share/hostchan.h: Ditto.
5480 * rdi-share/hostchan.c: Ditto.
5481 * rdi-share/host.h: Ditto.
5482 * rdi-share/devsw.c: Ditto.
5483
c5f10366
AC
5484 * objfiles.h: Change type of obj_private to void pointer.
5485 * pa64solib.c: Update copyright. Don't include "assert.h", use
5486 strcmp instead of STREQ, use LONGEST, do not use PTR
5487 * somsolib.c: Ditto.
5488
616675d3
AC
5489 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5490 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5491 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5492
e4b415d9
AC
54932002-06-08 Andrew Cagney <ac131313@redhat.com>
5494
5495 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5496 (default_get_saved_register): Delete function.
5497 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5498 generic_unwind_get_saved_register.
5499 * gdbarch.h, gdbarch.c: Re-generate.
5500
ca0d0b52
AC
55012002-06-08 Andrew Cagney <ac131313@redhat.com>
5502
5503 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5504 generic_func_frame_chain_valid.
5505 * gdbarch.h, gdbarch.c: Re-generate.
5506 * blockframe.c (generic_func_frame_chain_valid): Only check
5507 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5508 passing FP to PC_IN_CALL_DUMMY.
5509 Fix PR gdb/360.
5510
76860b5f
AC
55112002-06-08 Andrew Cagney <ac131313@redhat.com>
5512
5513 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5514 (register_gdbarch_data): Initialize init_p.
5515 (gdbarch_data): Initialize data pointer using the init function.
5516 (init_gdbarch_data): Delete function.
5517 (gdbarch_update_p): Update.
5518 (initialize_non_multiarch): Update.
5519 (struct gdbarch): Add field initialized_p.
5520 * gdbarch.h, gdbarch.c: Re-generate.
5521
8dda9770
ML
55222002-06-07 Michal Ludvig <mludvig@suse.cz>
5523
5524 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5525 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5526 better do the things actually here.
5527 * x86-64-tdep.c (x86_64_register_name2nr): New.
5528 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5529 (x86_64_gdbarch_init): Respect the above change.
5530 * x86-64-tdep.h (x86_64_register_name2nr)
5531 (x86_64_register_nr2name): Add prototypes.
5532 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5533
3d79a47c
MS
55342002-06-06 Michael Snyder <msnyder@redhat.com>
5535
7bd91a28
MS
5536 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5537 Delete extra braces and re-indent.
5538 (d10v_store_return_value): Char return values
3d79a47c
MS
5539 must be shifted over by one byte in R0.
5540 (d10v_extract_return_value): Delete extra braces, re-indent.
5541
095a4c96
EZ
55422002-06-06 Elena Zannoni <ezannoni@redhat.com>
5543
5544 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5545 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5546 (d10v_integer_to_address): Rewrite.
5547 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5548 the d10v specific functions which take care of converting to the
5549 correct space.
5550
e8a77ca4
EZ
55512002-06-06 Elena Zannoni <ezannoni@redhat.com>
5552
5553 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5554 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5555
4f2e4a4f
AC
55562002-06-02 Andrew Cagney <ac131313@redhat.com>
5557
5558 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5559 includes.
5560 * config/tm-linux.h: Ditto.
5561 * config/alpha/tm-alphalinux.h: Ditto.
5562 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5563 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5564 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5565 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5566 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5567 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5568 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5569 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5570 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5571 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5572 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5573 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5574 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5575 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5576 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5577 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5578 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5579 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5580 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5581 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5582 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5583 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5584 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5585 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5586 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5587 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5588 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5589 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5590 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5591 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5592 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5593 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5594 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5595 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5596 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5597 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5598 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5599
ae2ab2ce
AS
56002002-05-04 Aidan Skinner <aidan@velvet.net>
5601
5602 * ada-exp.tab.c: New file
5603 * ada-exp.y: New file
5604 * ada-lang.c: New file
5605 * ada-lang.h: New file
5606 * ada-lex.c: New file
5607 * ada-lex.l: New file
5608 * ada-tasks.c: New file
5609 * ada-typeprint.c: New file
5610 * ada-valprint.c: New file
5611
0ddd0135
JT
56122002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5613
5614 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5615 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5616
750fbacc
JT
56172002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5618
5619 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5620 insetead of ppc-linux-tdep.o.
5621 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5622 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5623
df94e18a
AC
56242002-06-02 Andrew Cagney <ac131313@redhat.com>
5625
5626 2002-05-07 Christian Groessler <chris@groessler.org>
5627 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5628 bit register contents for little endian hosts.
5629
1a38ab75
AC
56302002-06-01 Andrew Cagney <ac131313@redhat.com>
5631
5632 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5633 any maintainer.
5634
8b1632ac
AC
56352002-06-01 Andrew Cagney <ac131313@redhat.com>
5636
5637 * gdbarch.h: Regenerate.
5638
627054c8
AC
56392002-06-01 Andrew Cagney <ac131313@redhat.com>
5640
5641 * MAINTAINERS: Add everyone to write-after-approval list.
5642
4f460812
AC
56432002-06-01 Andrew Cagney <ac131313@redhat.com>
5644
5645 * stack.c (frame_info): Use frame_register_unwind instead of
5646 saved_regs. Mention when the SP is on the stack or in a register.
5647
5648 * frame.h (frame_register_unwind_ftype): Define. Document.
5649 (struct frame_info): Add field register_unwind and
5650 register_unwind_cache.
5651 (frame_register_unwind): Declare.
5652 (generic_unwind_get_saved_register): Declare.
5653
5654 * frame.c (frame_register_unwind): New function.
5655 (generic_unwind_get_saved_register): New function.
5656
5657 * blockframe.c (generic_call_dummy_register_unwind): New function.
5658 (frame_saved_regs_register_unwind): New function.
5659 (set_unwind_by_pc): New function.
5660 (create_new_frame): New function.
5661 (get_prev_frame): New function.
5662
de888f76
AC
56632002-05-30 Andrew Cagney <ac131313@redhat.com>
5664
5665 * a29k-share/: Delete directory.
5666 * remote-vx29k.c: Delete file.
5667
2f2c3626
JT
56682002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5669
5670 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5671 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5672
9ce5c36a
JT
56732002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5674
5675 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5676 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5677 (sparc64nbsd-nat.o)
5678 (sparcnbsd-nat.o)
5679 (sparcnbsd-tdep.o): New dependency lists.
5680 * NEWS: Note new UltraSPARC NetBSD native configuration.
5681 * configure.host (sparc64-*-netbsd*): New host.
5682 * configure.tgt (sparc-*-netbsdelf*)
5683 (sparc-*-netbsd*): Set gdb_target to nbsd.
5684 (sparc64-*-netbsd*): New target.
5685 * sparc64nbsd-nat.c: New file.
5686 * sparcnbsd-nat.c: New file.
5687 * sparcnbsd-tdep.c: New file.
5688 * sparcnbsd-tdep.h: New file.
5689 * config/sparc/nbsd.mt: New file.
5690 * config/sparc/nbsd64.mh: New file.
5691 * config/sparc/nbsd64.mt: New file.
5692 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5693 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5694 (HOST_IPC): Remove.
5695 * config/sparc/nbsdaout.mt: Remove.
5696 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5697 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5698 (HOST_IPC): Remove.
5699 * config/sparc/nbsdelf.mt: Remove.
5700 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5701 sparc-nat.c compatiblity defines.
5702 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5703 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5704 * config/sparc/tm-nbsd64.h: New file.
5705 * config/sparc/tm-nbsdaout.h: Remove.
5706 * config/sparc/xm-nbsd.h: Remove.
5707
ef3cf062
JT
57082002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5709
5710 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5711 * sparc-tdep.c: Include osabi.h.
5712 (gdbarch_tdep): Add osabi member.
5713 (_initialize_sparc_tdep): Use gdbarch_register.
5714 (sparc_gdbarch_init): Use generic OS ABI framework.
5715 (sparc_dump_tdep): New function.
5716
ee8ff470
KB
57172002-05-30 Kevin Buettner <kevinb@redhat.com>
5718
5719 * corefile.c (do_captured_read_memory_integer): Return non-zero
5720 result.
5721 (safe_read_memory_integer): Copy result of memory read when
5722 status is non-zero. Also, add comments.
5723
7b112f9c
JT
57242002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5725
5726 * Makefile.in (ppc_tdep_h): Define.
5727 (ppc-linux-nat.o)
5728 (ppc-linux-tdep.o)
5729 (rs6000-tdep.o): Use $(ppc_tdep_h).
5730 (ppc-sysv-tdep.o)
5731 (ppcnbsd-nat.o)
5732 (ppcnbsd-tdep.o): New dependency lists.
5733 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5734 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5735 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5736 (ppc_sysv_abi_broken_use_struct_convention)
5737 (ppc_sysv_abi_use_struct_convention)
5738 (ppc_sysv_abi_push_arguments): Move to...
5739 * ppc-sysv-tdep.c: ...here.
5740 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5741 * rs6000-tdep.c (process_note_abi_tag_sections)
5742 (get_elfosabi): Remove.
5743 (rs6000_gdbarch_init): Use generic OS ABI framework.
5744 (rs6000_dump_tdep): New function.
5745 (_initialize_rs6000_tdep): Use gdbarch_register.
5746 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5747 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5748 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5749 of ppc-linux-tdep.o.
5750 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5751 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5752 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5753 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5754 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5755 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5756
480dd42a
JB
57572002-05-29 Jim Blandy <jimb@redhat.com>
5758
5759 * macroscope.c (default_macro_scope): Put `void' in empty argument
5760 list.
5761
4182591f
AC
57622002-05-29 Andrew Cagney <ac131313@redhat.com>
5763
5764 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5765 * arch-utils.c: Include "sim-regno.h".
5766 * gdbarch.sh: Don't include "sim-regno.h".
5767 * gdbarch.h, gdbarch.c: Regenerate.
5768 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5769 here.
5770 * arch-utils.h (legacy_register_sim_regno): To here.
5771 * remote-sim.c (legacy_register_sim_regno): Move function from
5772 here.
5773 * arch-utils.c (legacy_register_sim_regno): To here.
5774
8238d0bf
AC
57752002-05-28 Andrew Cagney <ac131313@redhat.com>
5776
5777 * sim-regno.h: New file.
5778 * Makefile.in (sim_regno_h): Define.
5779 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5780 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5781 (legacy_register_sim_regno): New function.
5782 (one2one_register_sim_regno): New function.
5783 (gdbsim_fetch_register): Rewrite.
5784 (gdbsim_store_register): Only store a register when
5785 REGISTER_SIM_REGNO is valid.
5786 * d10v-tdep.c: Include "sim-regno.h".
5787 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5788 (d10v_ts3_register_sim_regno): Ditto.
5789 * gdbarch.sh: Include "sim-regno.h".
5790 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5791 * gdbarch.h, gdbarch.c: Regenerate.
5792 * arch-utils.h (default_register_sim_regno): Delete declaration.
5793 * arch-utils.c (default_register_sim_regno): Delete function.
5794
485721b1
JT
57952002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5796
5797 * ppcnbsd-nat.c: Rewrite.
5798 * ppcnbsd-tdep.c: New file.
5799 * ppcnbsd-tdep.h: New file.
5800 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5801 solib.o, and solib-svr4.o.
5802 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5803 nbsd-tdep.o, and corelow.o.
5804
697f244d
AC
58052002-05-28 Andrew Cagney <ac131313@redhat.com>
5806
5807 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5808 `tr' and `sed'. Mention that `broken' targets are not expected to
5809 build.
5810
f08caad1 58112002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5812
5813 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5814 Let PC point right after the prologue before looking up symbols.
5815
3139facc
MH
58162002-05-27 Martin M. Hunt <hunt@redhat.com>
5817
5818 * i386-tdep.c (i386_register_virtual_type): Return
5819 builtin_type_vec128i for SSE registers.
5820
5821 * gdbtypes.h (builtin_type_vec128i): Declare.
5822
5823 * gdbtypes.c (build_builtin_type_vec128i): New function.
5824 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5825 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5826 (build_gdbtypes): Initialize new builtin vector types.
5827 (_initialize_gdbtypes): Register new vector types with gdbarch.
5828
6e3ba3b8
JT
58292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5830
5831 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5832 since it has been multi-arch'd.
5833 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5834 Move Alpha and VAX multi-arch news entries to same section
5835 as other multi-arch news.
5836
93d5585d
JT
58372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5838
5839 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5840 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5841 static. Rename some register numbers to put them in ns32k-tdep
5842 private namespace.
5843 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5844 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5845 functions.
5846 (_initialize_ns32k_tdep): Use gdbarch_register.
5847 * ns32k-tdep.h: New file.
5848 * ns32knbsd-tdep.c: New file.
5849 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5850 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5851 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5852 REGISTER_BYTES, REGISTER_BYTE): Remove.
5853 * config/ns32k/tm-ns32k.h: New file.
5854 * config/ns32k/tm-umax.h: Remove.
5855
efb2c70e
JT
58562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5857
5858 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5859 ns32k_store_struct_return, ns32k_extract_return_value,
5860 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5861 functions.
5862 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5863 ns32k_saved_pc_after_call.
5864 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5865 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5866 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5867 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5868 ns32k_extract_struct_value_address.
5869
7bcc927b
JT
58702002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5871
5872 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5873 ns32k_fix_call_dummy): New.
5874 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5875 ns32k_call_dummy_words.
5876 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5877 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5878 CALL_DUMMY_NARGS): Remove.
5879 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5880
78f9d765
JT
58812002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5882
5883 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5884 ns32k_frame_saved_pc, ns32k_frame_args_address,
5885 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5886 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5887 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5888 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5889 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5890 (BREAKPOINT): Remove..
5891 (FRAME_CHAIN): Define as ns32k_frame_chain.
5892 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5893 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5894 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5895 (FRAME_FIND_SAVED_REGS): Remove.
5896 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5897 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5898 (POP_FRAME): Define as ns32k_pop_frame.
5899
f2c762e0
JT
59002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5901
5902 * ns32k-tdep.c (ns32k_register_byte_32082,
5903 ns32k_register_byte_32382, ns32k_register_raw_size,
5904 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5905 functions.
5906 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5907 ns32k_register_byte_32382.
5908 * config/ns32k/tm-umax.h: Update copyright years.
5909 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5910 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5911 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5912 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5913 (ns32k_get_enter_addr): Fix prototype.
5914
af137673
JT
59152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5916
5917 * ns32k-tdep.c: Update copyright years.
5918 (ns32k_register_name_32082): New function.
5919 (ns32k_register_name_32382): Ditto.
5920 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5921 (REGISTER_NAME): Define as ns32k_register_name_32382.
5922 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5923 (REGISTER_NAME): Define as ns32k_register_name_32082.
5924
a8bc7b56
JB
59252002-05-24 Jim Blandy <jimb@redhat.com>
5926
5927 * dwarf2read.c (free_line_header): Use xfree, not free.
5928
83a45910
JT
59292002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5930
5931 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5932 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5933
0db71247
AC
59342002-05-23 Andrew Cagney <ac131313@redhat.com>
5935
5936 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5937
b9e5e4dd
AC
59382002-05-23 Andrew Cagney <ac131313@redhat.com>
5939
5940 From Ross Alexander at NEC Europe:
5941 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5942
de530e84
MS
59432002-05-23 Michael Snyder <msnyder@redhat.com>
5944
5945 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5946 for input, rather than parse_and_eval_address.
5947
b91b96f4
AC
59482002-05-23 Andrew Cagney <ac131313@redhat.com>
5949
5950 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5951 * Makefile.in (sim_d10v_h): Update definition.
5952
8b279e7a
AC
59532002-05-24 Andrew Cagney <cagney@redhat.com>
5954
5955 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5956 change `2002-05-22 Michael Snyder' below.
5957 (d10v_push_arguments): Ditto.
5958 (d10v_extract_return_value): Ditto.
5959
0a3d0425
JB
59602002-05-23 Jim Blandy <jimb@redhat.com>
5961
5962 * macrotab.c (check_for_redefinition): Don't complain if the new
5963 definition is the same as the previous one. Take more arguments
5964 to allow the comparison.
5965 (macro_define_object, macro_define_function): Pass more arguments
5966 to check_for_redefinition.
5967
78eac43e
MS
59682002-05-22 Michael Snyder <msnyder@redhat.com>
5969
5970 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5971 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5972 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5973 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5974 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5975 Add a temp variable to save a call (and a memory read).
5976 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5977 if possible (so that PC_IN_CALL_DUMMY will work).
5978
9bc1edb8
CV
59792002-05-22 Corinna Vinschen <vinschen@redhat.com>
5980
5981 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5982
005ef3d2
ML
59832002-05-22 Michal Ludvig <mludvig@suse.cz>
5984
5985 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5986 fde->cie_ptr.
5987 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5988 (dwarf2_build_frame_info): Add offset to fde->initial_location
5989 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5990 (execute_stack_op): Change type of 'result' from ULONGEST to
5991 CORE_ADDR.
005ef3d2 5992
fcf4f891
JT
59932002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5994
5995 * config/alpha/tm-nbsd.h: Include solib.h.
5996
cfef91e4
JT
59972002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5998
5999 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6000 assumptions about the host's byte order.
6001
9964235a
JT
60022002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6003
6004 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6005 to dependency list.
6006 * alphanbsd-tdep.c: Include solib-svr4.h.
6007 * shnbsd-tdep.c: Ditto.
6008
9eeef8ef
JT
60092002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6010
6011 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6012 nbsd-tdep.h to dependency list.
6013 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6014 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6015 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6016 nbsdaout.mh and nbsdelf.mh consistently.
6017 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6018 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6019 nbsdaout.mt and nbsdelf.mh consistently.
6020 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6021 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6022 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6023 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6024 a.out shared library stuff from here...
6025 * config/nm-nbsdaout.h: ...to here.
6026 * config/tm-nbsd.h: Remove.
6027 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6028 * config/arm/nbsd.mh: Remove.
6029 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6030 nbsd-tdep.o.
6031 * config/arm/nbsdaout.mh: New file.
6032 * config/arm/nbsdelf.mh: New file.
6033 * config/arm/nm-nbsdaout.h: New file.
6034 * config/i386/nbsd.mh: Remove.
6035 * config/i386/nbsd.mt: Remove.
6036 * config/i386/nbsdaout.mh: New file.
6037 * config/i386/nbsdaout.mt: New file.
6038 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6039 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6040 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6041 i386_register_u_addr): Remove.
6042 * config/i386/nm-nbsdaout.h: New file.
6043 * config/i386/nm-nbsdelf.h: Remove.
6044 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6045 (USE_STRUCT_CONVENTION): Remove.
6046 * config/i386/tm-nbsdaout.h: New file.
6047 * config/i386/tm-nbsdelf.h: Remove.
6048 * config/m68k/nbsd.mh: Remove.
6049 * config/m68k/nbsd.mt: Remove.
6050 * config/m68k/nbsdaout.mh: New file.
6051 * config/m68k/nbsdaout.mt: New file.
6052 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6053 * config/m68k/nm-nbsdaout.h: New file.
6054 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6055 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6056 * config/ns32k/nbsd.mh: Remove.
6057 * config/ns32k/nbsd.mt: Remove.
6058 * config/ns32k/nbsdaout.mh: New file.
6059 * config/ns32k/nbsdaout.mt: New file.
6060 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6061 * config/ns32k/nm-nbsdaout.h: New file.
6062 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6063 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6064 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6065 (SVR4_SHARED_LIBS): Remove.
6066 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6067 * config/sparc/nbsd.mh: Remove.
6068 * config/sparc/nbsd.mt: Remove.
6069 * config/sparc/nbsdaout.mh: New file.
6070 * config/sparc/nbsdaout.mt: New file.
6071 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6072 * config/sparc/nbsdelf.mt: New file.
6073 * config/sparc/nm-nbsdaout.h: New file.
6074 * config/sparc/nm-nbsdelf.h: Remove.
6075 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6076 * config/sparc/tm-nbsdaout.h: New file.
6077
257ce470
JT
60782002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6079
6080 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6081 mipsnbsd-tdep.c
6082 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6083
76a6d5fe
JT
60842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6085
6086 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6087 shnbsd-nat.c.
6088 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6089
45888261
JT
60902002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6091
6092 * NEWS: Note new MIPS NetBSD native configuration.
6093 * configure.host (mips*-*-netbsd*): New host.
6094 * configure.tgt (mips*-*-netbsd*): New target.
6095 * mipsnbsd-nat.c: New file.
6096 * mipsnbsd-tdep.c: New file.
6097 * mipsnbsd-tdep.h: New file.
6098 * config/mips/nbsd.mh: New file.
6099 * config/mips/nbsd.mt: New file.
6100 * config/mips/nm-nbsd.h: New file.
6101 * config/mips/tm-nbsd.h: New file.
6102
70f80edf
JT
61032002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6104
6105 * Makefile.in (SFILES): Add osabi.c.
6106 (COMMON_OBS): Add osabi.o.
6107 (osabi.o): New dependency list.
6108 * osabi.c: New file.
6109 * osabi.h: New file.
6110 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6111
6112 * Makefile.in (alpha_tdep_h): Define and use instead of
6113 alpha-tdep.h.
6114 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6115 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6116 Remove.
6117 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6118 * alpha-tdep.h: Include osabi.h.
6119 (alpha_abi): Remove.
6120 (gdbarch_tdep): Use generic OS ABI framework.
6121 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6122 gdbarch_register_osabi.
6123 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6124 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6125 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6126
6127 * Makefile.in (sh_tdep_h): Add osabi.h.
6128 * sh-tdep.h (sh_osabi): Remove.
6129 (gdbarch_tdep): Use generic OS ABI framework.
6130 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6131 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6132 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6133 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6134
6135 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6136 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6137 gdbarch_register_osabi.
6138 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6139 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6140 (get_elfosabi): Rename to...
6141 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6142 ABI framework support routines.
6143 (arm_gdbarch_init): Use generic OS ABI framework.
6144 (arm_dump_tdep): Likewise.
6145 (_initialize_arm_tdep): Likewise.
6146 * arm-tdep.h: Include osabi.h.
6147 (arm_abi): Remove.
6148 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6149 osabi member.
6150 (arm_gdbarch_register_os_abi): Remove prototype.
6151 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6152 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6153
6154 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6155 * mips-tdep.c: Include osabi.h.
6156 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6157 OS ABI framework.
6158
d194345b
KH
61592002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6160
6161 * h8300-tdep.c: Fix formatting.
6162
70c6b0d1
EZ
61632002-05-20 Elena Zannoni <ezannoni@redhat.com>
6164
6165 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6166 printing vector registers.
6167
165b8e33
AC
61682002-05-19 Andrew Cagney <ac131313@redhat.com>
6169
6170 From Fernando Nasser:
6171 * remote.c (remote_async_open_1): Re-throw the exception when the
6172 connection fails.
6173 (remote_cisco_open): Ditto.
6174 (remote_open_1): Ditto.
6175
36918e70
AC
61762002-05-19 Andrew Cagney <ac131313@redhat.com>
6177
6178 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6179 (remote_start_remote): Add uiout parameter. Pass through to
6180 remote_start_remote_dummy.
6181 (remote_open_1): Use catch_exception instead of catch_errors.
6182 (remote_async_open_1): Ditto.
6183 (remote_cisco_open): Ditto.
6184
ae44c0c4
AC
61852002-05-19 Andrew Cagney <ac131313@redhat.com>
6186
6187 * remote.c (remote_start_remote): Replace PTR with void pointer.
6188 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6189 static.
6190
8efe637d
AC
61912002-05-18 Andrew Cagney <ac131313@redhat.com>
6192
6193 * gdb_indent.sh: Allow the script to be run in the sim directory.
6194
2f1b5984
MK
61952002-05-18 Mark Kettenis <kettenis@gnu.org>
6196
f0f625e2
MK
6197 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6198 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6199
2f1b5984
MK
6200 * corelow.c (core_open): Only call set_gdbarch_from_file if
6201 exec_bfd is NULL.
6202
fc974602
AV
62032002-05-17 Andrey Volkov <avolkov@transas.com>
6204
6205 * h8300-tdep.c: Add support of EXR register
6206 * config/h8300/tm-h8300.h: Ditto.
6207
906709f4
AV
62082002-05-17 Andrey Volkov <avolkov@transas.com>
6209
6210 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6211
6e591d68
AV
62122002-05-17 Andrey Volkov <avolkov@transas.com>
6213
6214 * h8300-tdep.c: Change literal regnums to REGNO.
6215
84f0252a
JB
62162002-05-17 Jim Blandy <jimb@redhat.com>
6217
e0e9281e
JB
6218 * NEWS: Note addition of macro support.
6219
84f0252a
JB
6220 Expand preprocessor macros in C expressions.
6221 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6222 (scan_macro_expansion, scanning_macro_expansion,
6223 finished_macro_expansion): New function declarations.
6224 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6225 variable declarations.
6226 * parser-defs.h (expression_context_pc): New declaration.
6227 * parse.c (expression_context_pc): New variable.
6228 (parse_exp_1): Set expression_context_pc, as well as
6229 expression_context_block.
6230 * c-exp.y (yylex): If we're not already reading the result of a
6231 macro expansion, try to macro-expand the next token. When we're
6232 done scanning a macro expansion, switch back to the mainline text.
6233 Commas and `if's in a macro's expansion don't terminate the input.
6234 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6235 (macro_original_text, macro_expanded_text,
6236 expression_macro_lookup_func, expression_macro_lookup_baton): New
6237 variables.
6238 (scan_macro_expansion, scanning_macro_expansion,
6239 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6240 c_preprocess_and_parse): New functions.
6241 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6242 c_preprocess_and_parse, instead of c_parse.
6243 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6244 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6245
1c509ca8
JR
6246Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6247
6248 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6249 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6250 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6251
2250ee0c
CV
62522002-05-17 Corinna Vinschen <vinschen@redhat.com>
6253
6254 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6255
ab3b8126
JT
62562002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6257
6258 * Makefile.in (sh_tdep_h): Define and use.
6259 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6260 register enum): Move to...
6261 * * sh-tdep.h: ...here.
6262 * sh-tdep.c: Include sh-tdep.h.
6263 * sh3-rom.c: Likewise.
6264 * shnbsd-tdep.c: Likewise.
6265
ed9d4749
MS
62662002-05-16 Michael Snyder <msnyder@redhat.com>
6267
6268 * arm-tdep.c: Spelling fix in comment.
6269
2e276125
JB
62702002-05-16 Jim Blandy <jimb@redhat.com>
6271
6821892e
JB
6272 Add commands for manually expanding macros and showing their
6273 definitions.
6274 * macrocmd.c, macroscope.c, macroscope.h: New files.
6275 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6276 (macroscope_h): New variable.
6277 (HFILES_NO_SRCDIR): Add macroscope.h.
6278 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6279 (macroscope.o, macrocmd.o): New rules.
6280
2e276125
JB
6281 Teach the Dwarf 2 reader to read macro information.
6282 * dwarf2read.c: #include "macrotab.h".
6283 (dwarf_macinfo_buffer): New variable.
6284 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6285 dwarf_macinfo_size.
6286 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6287 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6288 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6289 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6290 dwarf2_macro_spaces_in_definition): New complaints.
6291 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6292 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6293 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6294 the partial symbol table.
6295 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6296 from what's recorded in the partial symbol table.
6297 (read_file_scope): If the compilation unit has a
6298 `DW_AT_macro_info' attribute, read its macro information.
6299 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6300
2f53fe6c
DJ
63012002-05-16 Daniel Jacobowitz <drow@mvista.com>
6302
6303 Fix PR gdb/546
6304 * ser-tcp.c: Don't include <netinet/udp.h>.
6305
2be99286
SC
63062002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6307
6308 * MAINTAINERS: Update my email address.
6309
c9af212b 63102002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6311
6312 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6313 include file of the same name.
6314
bf5f1a52
CV
63152002-05-16 Corinna Vinschen <vinschen@redhat.com>
6316
6317 * configure.tgt: Mark v850 as multi-arched.
6318 * config/v850/tm-v850.h: Remove file.
6319 * config/v850/v850.mt: Eliminate TM_FILE.
6320
435e042a
CV
63212002-05-16 Corinna Vinschen <vinschen@redhat.com>
6322
6323 * v850-tdep.c: Full multi-arch.
6324 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6325 Define GDB_MULTI_ARCH to 2.
6326
9819c6c8
PM
63272002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6328
6329 * p-exp.y (current_type): New static variable.
6330 Carries the type of the expression at the position that is parsed.
6331 (push_current_type, pop_current_type): Two new functions. Used
6332 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6333 (search_field): New static variable. Set to one after parsing a point
6334 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6335 (FIELDNAME): New token. After a point only a token belonging to
6336 current_type type definition is allowed.
6337 (all over token rules): reset and change current_type according
6338 to rules.
6339 (exp '[' rule): insert implicit array index field if
6340 exp is a pascal string type.
6341
3a06899a
CV
63422002-05-16 Corinna Vinschen <vinschen@redhat.com>
6343
6344 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6345 frame info. Use frame_info's saved_regs instead of matching member
6346 in extra_frame_info throughout.
6347 (v850_frame_init_saved_regs): New function.
6348 (v850_init_extra_frame_info): Move most functionality into
6349 v850_frame_init_saved_regs().
6350 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6351 (v850_frame_find_saved_regs): Remove declaration.
6352 (FRAME_FIND_SAVED_REGS): Remove definition.
6353 (v850_frame_init_saved_regs): Add declaration.
6354 (FRAME_INIT_SAVED_REGS): Add definition.
6355
6ed14b0e
CV
63562002-05-16 Corinna Vinschen <vinschen@redhat.com>
6357
6358 * v850-tdep.c: Begin multi-arch'ing v850.
6359 (v850_target_architecture_hook): Remove function.
6360 (v850_gdbarch_init): New function. Add code previously in
6361 v850_target_architecture_hook().
6362 (_initialize_v850_tdep): Don't set target_architecture_hook.
6363 Call register_gdbarch_init() instead.
6364
42725910
DJ
63652002-05-16 Daniel Jacobowitz <drow@mvista.com>
6366
6367 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6368 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6369 (fixup_class_method_type): Likewise.
6370
99d9066e
JB
63712002-05-15 Jim Blandy <jimb@redhat.com>
6372
6373 Add macro structures to GDB's symbol tables. Nobody puts anything
6374 in them yet.
6375 * symtab.h (struct symtab): New member: `macro_table'.
6376 * buildsym.h (pending_macros): New global variable.
6377 * buildsym.c: #include "macrotab.h".
6378 (buildsym_init): Initialize `pending_macros'.
6379 (end_symtab): If we found macro information while reading a CU's
6380 debugging info, do build a symtab structure for it. Make the
6381 symtab point to the macro information, and clear the
6382 `pending_macros' pointer which held it while we were reading the
6383 debug info.
6384 (really_free_pendings): Free any pending macro table.
6385 * objfiles.h (struct objfile): New member: `macro_cache'.
6386 * objfiles.c (allocate_objfile): Set allocate and free functions
6387 for the macro cache's objstack.
6388 (free_objfile): Empty the macro cache's obstack.
6389 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6390 set new allocate and free functions for it.
6391 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6392 free functions for the macro cache's objstack. (Why is this
6393 function building its own objfile?)
6394 * symmisc.c (print_objfile_statistics): Print statistics on the
6395 macro bcache.
6396 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6397
c899585b
RE
63982002-05-15 Richard Earnshaw <rearnsha@arm.com>
6399
6400 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6401 (REGISTER_U_ADDR): Delete definition.
6402 (arm_register_u_addr): Delete declaration.
6403
a6cdd8c5
RE
64042002-05-15 Richard Earnshaw <rearnsha@arm.com>
6405
6406 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6407 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6408
c97dcfc7
AC
64092002-05-14 Andrew Cagney <ac131313@redhat.com>
6410
6411 * regcache.c (register_valid): Revise comments refering to "Not
6412 available" and "unavailable".
6413 * frame.c (frame_register_read): Ditto.
6414 * findvar.c (value_of_register): Ditto.
6415
93021b7d
AC
64162002-05-15 Andrew Cagney <cagney@redhat.com>
6417
6418 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6419 (remote-sim.o): Update dependencies.
6420 (d10v-tdep.o): Specify dependencies.
6421 (sim_d10v_h): Define.
6422
a86bc61c
JB
64232002-05-14 Jim Blandy <jimb@redhat.com>
6424
6425 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6426 * macrotab.c (macro_lookup_inclusion, find_definition,
6427 new_macro_table): Same.
6428
6429 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6430 not `! strcmp ()'. This is a dubious improvement.
6431 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6432
6433 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6434 although it's not necessary, to avoid a warning.
6435
2fdde8f8
DJ
64362002-05-14 Daniel Jacobowitz <drow@mvista.com>
6437
6438 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6439 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6440 TYPE_INSTANCE_FLAGS.
6441 (struct main_type): New.
6442 (struct type): Move most members to struct main_type. Change
6443 cv_type and as_type to new type_chain member. Add instance_flags.
6444 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6445 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6446 (finish_cv_type): Remove prototype.
6447 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6448 Set TYPE_CHAIN.
6449 (alloc_type_instance): New function.
6450 (smash_type): New function.
6451 (make_pointer_type, make_reference_type, make_function_type)
6452 (smash_to_member_type, smash_to_method_type): Call smash_type.
6453 (make_qualified_type): New function.
6454 (make_type_with_address_space): Call make_qualified_type.
6455 (make_cv_type): Likewise.
6456 (finish_cv_type): Remove unnecessary function.
6457 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6458 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6459 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6460 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6461 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6462 * hpread.c (hpread_read_struct_type): Likewise.
6463 * stabsread.c (read_struct_type): Likewise.
6464
843fedf4
EZ
64652002-05-14 Elena Zannoni <ezannoni@redhat.com>
6466
6467 * configure.tgt: Add a catch all sh* target, for cases like
6468 sh[2,3,4]-elf and sh-hms.
6469
05a6c72c
KS
64702002-05-14 Keith Seitz <keiths@redhat.com>
6471
6472 * event-loop.c (create_file_handler): Don't do anything but
6473 update data when we are given a fd which we are already
6474 monitoring.
6475
5d085aaf
ML
64762002-05-14 Michal Ludvig <mludvig@suse.cz>
6477
6478 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6479 (update_context): Use __func__ in warnings.
6480
9db8d71f
DJ
64812002-05-14 Daniel Jacobowitz <drow@mvista.com>
6482
6483 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6484 and tcp_close to net_open and net_close.
6485 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6486 using UDP if requested. Don't try to disable Nagle on UDP
6487 sockets.
6488 * remote.c (remote_serial_open): New function. Warn about UDP.
6489 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6490
5dbc6baa
EZ
64912002-05-13 Elena Zannoni <ezannoni@redhat.com>
6492
6493 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6494
cc3023f7
EZ
64952002-05-13 Elena Zannoni <ezannoni@redhat.com>
6496
6497 * configure.tgt: Remove sh-hms target.
6498 * MAINTAINERS: Don't list sh-hms as a separate target.
6499
ec2bcbe7
JB
65002002-05-13 Jim Blandy <jimb@redhat.com>
6501
6502 Add first preprocessor macro-expansion files.
6503 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6504 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6505 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6506 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6507 (COMMON_OBS): Add macrotab.o, macroexp.o.
6508 (macroexp.o, macrotab.o): New rules.
6509
6d531722
AC
65102002-05-13 Andrew Cagney <ac131313@redhat.com>
6511
6512 * config/m88k/tm-m88k.h: Update copyright.
6513 (m88k_target_write_pc): Declare
6514 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6515 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6516 (SHIFT_INST_REGS): Update definition.
6517 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6518 using old definition of TARGET_WRITE_PC.
6519 * regcache.c (generic_target_write_pc): Delete code handling
6520 NNPC_REGNUM.
6521 * gdbarch.sh (NNPC_REGNUM): Delete.
6522 * gdbarch.h, gdbarch.c: Regenerate.
6523
3e3f2739
RE
65242002-05-13 Richard Earnshaw <rearnsha@arm.com>
6525
6526 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6527 builtin reg number.
6528
0004e5a2
DJ
65292002-05-13 Daniel Jacobowitz <drow@mvista.com>
6530
6531 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6532 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6533 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6534 access macros.
6535 * c-typeprint.c (cp_type_print_method_args): Likewise.
6536 (c_type_print_args): Likewise.
6537 * d10v-tdep.c (d10v_push_arguments): Likewise.
6538 (d10v_extract_return_value): Likewise.
6539 * expprint.c (print_subexp): Likewise.
6540 * gdbtypes.c (lookup_primitive_typename): Likewise.
6541 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6542 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6543 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6544 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6545 (TYPE_VECTOR): Likewise.
6546 * hpread.c (hpread_read_struct_type)
6547 (fix_static_member_physnames, fixup_class_method_type)
6548 (hpread_type_lookup): Likewise.
6549 * mdebugread.c (parse_symbol, parse_type): Likewise.
6550 * p-lang.c (is_pascal_string_type): Likewise.
6551 * valops.c (hand_function_call): Likewise.
6552 * x86-64-tdep.c (classify_argument): Likewise.
6553
6554 * hpread.c (hpread_read_function_type)
6555 (hpread_read_doc_function_type): Call replace_type.
6556 * dstread.c (create_new_type): Delete.
6557 (decode_dst_structure, process_dst_function): Call alloc_type.
6558 Use type access macros.
6559
dff95cc7
MK
65602002-05-12 Mark Kettenis <kettenis@gnu.org>
6561
6562 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6563 the're not supported by the current architecture.
6564 (i387_fill_fxsave): Likewise.
6565
bbcd32ad
FF
65662002-05-12 Fred Fish <fnf@redhat.com>
6567
6568 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6569 sect_index_xxx members to index the first slot in section_offsets
6570 if all of the section_offsets are zero.
6571
89cf4787
MK
65722002-05-12 Mark Kettenis <kettenis@gnu.org>
6573
6574 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6575 checked in with last change.
6576
1f77ffc5
MK
65772002-05-12 Mark Kettenis <kettenis@gnu.org>
6578
6579 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6580 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6581 config.sub.
6582
89b8b4a9
DJ
65832002-05-12 Daniel Jacobowitz <drow@mvista.com>
6584
6585 * Makefile.in: Update dependencies.
6586
14a5e767
AC
65872002-05-11 Andrew Cagney <ac131313@redhat.com>
6588
6589 * language.c (local_hex_string_custom): Simplify. Do not depend
6590 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6591
6592 * memattr.c (mem_info_command): Replace calls to
6593 longest_local_hex_string and longest_local_hex_string_custom.
6594 * buildsym.c (make_blockvector): Ditto.
6595 * solib.c (info_sharedlibrary_command): Ditto.
6596 * tracepoint.c (tracepoints_info): Ditto.
6597 * symtab.c (print_msymbol_info): Ditto.
6598
6599 * language.c (local_hex_string): Delete.
6600 (local_hex_string_custom): Delete.
6601 (longest_local_hex_string): Rename to local_hex_string.
6602 (longest_local_hex_string_custom): Rename to
6603 local_hex_string_custom.
6604 * language.h (local_hex_string): Change parameter type to LONGEST.
6605 (local_hex_string_custom): Ditto.
6606 (longest_local_hex_string): Delete declaration.
6607 (longest_local_hex_string_custom): Ditto.
6608
6609 * solib.c: Update copyright.
6610 * memattr.c: Update copyright.
6611
13d01224
AC
66122002-05-11 Andrew Cagney <ac131313@redhat.com>
6613
6614 * arch-utils.h (legacy_register_to_value): Declare.
6615 (legacy_value_to_register): Declare.
6616 (legacy_convert_register_p): Declare.
6617 * arch-utils.c (legacy_register_to_value): New function.
6618 (legacy_value_to_register): New function.
6619 (legacy_convert_register_p): New function.
6620
6621 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6622 (VALUE_TO_REGISTER): Define.
6623 (CONVERT_REGISTER_P): Define.
6624 * gdbarch.h, gdbarch.c: Regenerate.
6625
6626 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6627 VALUE_TO_REGISTER.
6628 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6629 CONVERT_REGISTER_P.
6630
4a1970e4
DJ
66312005-05-11 Daniel Jacobowitz <drow@mvista.com>
6632 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6633
6634 * Makefile.in: Update dependencies for valops.c.
6635 * valops.c: Include "gdb_assert.h".
6636 (typecmp): Skip THIS parameter to methods.
6637 (find_method_list): Remove static_memfuncp argument,
6638 update callers. Check for stub methods.
6639 (find_value_oload_method_list): Don't set *static_memfuncp.
6640 (find_overload_match): Don't check for stub methods. Assert
6641 that methods are not stubbed. Handle static methods.
6642 (value_find_oload_method_list): Remove static_memfuncp argument.
6643 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6644 to the argument list for static stub methods.
6645 * value.h (value_find_oload_method_list): Update prototype.
6646
b2e75d78
AC
66472002-05-11 Andrew Cagney <ac131313@redhat.com>
6648
6649 * arch-utils.h (generic_register_size): Declare.
6650 (generic_register_raw_size, generic_register_virtual_size): Delete
6651 declarations.
6652 * arch-utils.c (generic_register_raw_size): Delete.
6653 (generic_register_size): New function.
6654 (generic_register_virtual_size): Delete.
6655
6656 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6657 default generic_register_size.
6658 * gdbarch.h, gdbarch.c: Re-generate.
6659
6660 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6661 register_virtual_size.
6662 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6663 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6664
451fbdda
AC
66652002-05-11 Andrew Cagney <ac131313@redhat.com>
6666
6667 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6668 * gdbarch.h, gdbarch.c: Regenerate.
6669 * gnu-v3-abi.c: Update copyright.
6670 (vtable_address_point_offset): Update.
6671 (gnuv3_rtti_type): Update.
6672 (gnuv3_baseclass_offset): Update.
6673 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6674 (init_fetch_link_map_offsets): Update.
6675 * remote.c (get_remote_state): Update.
6676
6d2f5cea
DJ
66772002-05-11 Daniel Jacobowitz <drow@mvista.com>
6678
6679 * TODO: Remove value_headof/value_from_vtable_info comment.
6680 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6681 * values.c (value_headof, value_from_vtable_info): Delete.
6682 * value.h (value_from_vtable_info): Delete prototype.
6683
d2324da4
AC
66842002-05-11 Andrew Cagney <ac131313@redhat.com>
6685
6686 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6687 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6688 $(gdb_regex_h).
6689 (gdb_assert_h): Define.
6690 (gdb_wait_h): Define.
6691 (gdb_regex_h): Define.
6692
5c717440
DJ
66932002-05-11 Daniel Jacobowitz <drow@mvista.com>
6694
6695 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6696 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6697
6c7861b3
JT
66982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6699
6700 * nbsd-tdep.c: Fix comment.
6701
ea5bc2a6
JT
67022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6703
6704 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6705 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6706 (nbsd-tdep.o): New dependency list.
6707 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6708 nbsd-tdep.h.
6709 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6710 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6711 * nbsd-tdep.c: New file.
6712 * nbsd-tdep.h: New file.
6713 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6714 nbsd-tdep.h.
6715 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6716 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6717 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6718 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6719
b28da865
JT
67202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6721
6722 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6723 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6724 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6725 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6726 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6727 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6728
4b8ff1fa
JT
67292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6730
6731 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6732 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6733 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6734 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6735 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6736 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6737 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6738
dfe6eb1f
JT
67392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6740
6741 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6742 fetch_elfcore_registers to...
6743 * i386nbsd-tdep.c: ...here.
6744 (i386nbsd_use_struct_convention): Rename to...
6745 (i386nbsd_aout_use_struct_convention): ...this.
6746 (i386nbsd_supply_reg): New function.
6747 (i386nbsd_fill_reg): New function.
6748 (fetch_core_registers): Use i386nbsd_supply_reg.
6749 (fetch_elfcore_registers): Likewise.
6750 (_initialize_i386nbsd_tdep): New function.
6751 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6752 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6753 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6754 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6755 (i386nbsd_aout_use_struct_convention): ...this.
6756
20cb8cda
JT
67572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6758
6759 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6760 (store_inferior_registers): Use shnbsd_fill_reg.
6761 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6762 sh_nbsd_supply_register): Collapse into...
6763 (shnbsd_supply_reg): ...this.
6764 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6765 (shnbsd_fill_reg): ...this.
6766 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6767 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6768 (fetch_core_registers): Use shnbsd_supply_reg.
6769 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6770 (sh_nbsd_core_fns): Rename to...
6771 (shnbsd_core_fns): ...this.
6772 (sh_nbsd_elfcore_fns): Rename to...
6773 (shnbsd_elfcore_fns): ...this.
6774 (sh_nbsd_init_abi): Rename to...
6775 (shnbsd_init_abi): ...this.
6776 (_initialize_sh_nbsd_tdep): Rename to...
6777 (_initialize_shnbsd_tdep): ...this.
6778 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6779 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6780 sh_nbsd_fill_register): Remove prototypes.
6781 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6782
e750d25e
JT
67832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6784
6785 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6786 (i387-nat.o): Delete dependency list.
6787 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6788 (x86-64-linux-nat.o): Likewise.
6789 * i387-nat.c: Delete file, moving contents to...
6790 * i387-tdep.c: ...here.
6791 * i387-nat.h: Rename...
6792 * i387-tdep.h: ...to this.
6793 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6794 * i386-linux-nat.c: Likewise.
6795 * i386bsd-nat.c: Likewise.
6796 * i386gnu-nat.c: Likewise.
6797 * i386nbsd-nat.c: Likewise.
6798 * i386v4-nat.c: Likewise.
6799 * x86-64-linux-nat.c: Likewise.
6800 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6801 * config/i386/go32.mh (NATDEPFILES): Likewise.
6802 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6803 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6804 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6805 * config/i386/linux.mh (NATDEPFILES): Likewise.
6806 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6807 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6808 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6809 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6810
1aee598a
JT
68112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6812
6813 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6814 (alphanbsd-nat.o): Remove dependency list.
6815 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6816 * alphanbsd-nat.c: Delete. Contents moved to...
6817 * alphanbsd-tdep.c: ...here.
6818 (_initialize_alphanbsd_tdep): Register core functions.
6819 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6820
12bcb0fe
JT
68212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6822
6823 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6824 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6825 (alphanbsd-nat.o): Likewise.
6826 (alphabsd-tdep.o): New dependency list.
6827 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6828 (fill_gregset): Use alphabsd_fill_reg.
6829 (supply_fpregset): Use alphabsd_supply_fpreg.
6830 (fill_fpregset): Use alphabsd_fill_fpreg.
6831 (fetch_inferior_registers): Use struct reg and struct fpreg
6832 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6833 and alphabsd_supply_fpreg.
6834 (store_inferior_registers): Use struct reg and struct fpreg
6835 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6836 and alphabsd_fill_fpreg.
6837 * alphabsd-tdep.c: New file.
6838 * alphabsd-tdep.h: New file.
6839 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6840 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6841 alphabsd_supply_fpreg.
6842 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6843 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6844
361d1df0
EC
68452002-05-11 Eric Christopher <echristo@redhat.com>
6846
6847 * mips-tdep.c (mips_double_register_type): Fix thinko.
6848 (mips_single_register_type): Ditto.
6849 * MAINTAINERS: Add self.
6850
92dd7cee
MK
68512002-05-11 Mark Kettenis <kettenis@gnu.org>
6852
6853 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6854 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6855 right thing on architectures with different endianness and/or
6856 integer sizes.
6857
e27da16d
JT
68582002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6859
6860 From Christian Limpach <chris@Pin.LU>
6861 * configure.in: Change sed expression which comments out
6862 NATDEPFILES to also comment out continuation lines.
6863 * configure: Regenerate.
6864
ddde02bd
EZ
68652002-05-10 Elena Zannoni <ezannoni@redhat.com>
6866
6867 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6868 big patch.
6869
1c922164
EZ
68702002-05-10 Elena Zannoni <ezannoni@redhat.com>
6871
6872 * sh-tdep.c: Include correct file.
6873
283150cd
EZ
68742002-05-10 Elena Zannoni <ezannoni@redhat.com>
6875
6876 New support for sh64-elf (sh5) target.
6877
6878 * configure.tgt: For sh64-elf target, default to sh-elf.
6879
6880 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6881 (struct gdbarch_tdep): Add new fields for new registers and ABI
6882 info.
361d1df0 6883
283150cd
EZ
6884 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6885 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6886 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6887 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6888 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6889 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6890 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6891 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6892 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6893 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6894 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6895 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6896 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6897 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6898 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6899 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6900 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6901 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6902 sign_extend, sh64_nofp_frame_init_saved_regs,
6903 sh64_init_extra_frame_info, sh64_get_saved_register,
6904 sh64_extract_struct_value_address, sh64_pop_frame,
6905 sh64_push_arguments, sh64_extract_return_value,
6906 sh64_store_return_value, sh64_show_media_regs,
6907 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6908 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6909 sh_sh64_register_virtual_type,
6910 sh_sh64_register_convert_to_virtual,
6911 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6912 sh64_register_read, sh64_pseudo_register_write,
6913 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6914 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6915 sh64_do_pseudo_register, sh_compact_do_registers_info,
6916 sh64_do_registers_info, sh_gdbarch_init): New functions.
6917
3117ed25
EZ
69182002-05-10 Elena Zannoni <ezannoni@redhat.com>
6919
6920 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6921
2654e6d4
DJ
69222002-05-10 Daniel Jacobowitz <drow@mvista.com>
6923
6924 * linespec.c (decode_line_1): Check for a double quote after
6925 a filename correctly.
6926
9ab3e532
JB
69272002-05-10 Jim Blandy <jimb@redhat.com>
6928
6929 Properly track the size of the current objfile's .debug_line section.
6930 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6931 (DWARF_LINE_SIZE): New macro.
6932 (dwarf2_build_psymtabs_hard): Record the line section's size in
6933 the partial symbol table.
6934 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6935 symbol table.
6936
126fa72d
PS
69372002-05-10 Petr Sorfa <petrs@caldera.com>
6938
6939 * ia64-tdep.c: Handle breakpoints on L instruction type
6940 in MLX instruction bundle by moving the breakpoint to
6941 the third slot (X instruction type) as L holds only data.
6942
1f077a3e
KB
69432002-05-10 Kevin Buettner <kevinb@redhat.com>
6944
6945 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6946 (process_one_symbol): Complain about discarding local symbols
6947 due to a misplaced N_LBRAC entry.
6948
8120c9d5 69492002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6950
6951 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6952 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6953 decrease the depth we are at, in the case of templates.
361d1df0 6954
67b2c998
DJ
69552002-05-09 Daniel Jacobowitz <drow@mvista.com>
6956
6957 * mips-tdep.c (mips_float_register_type): New function.
6958 (mips_double_register_type): New function.
6959 (mips_print_register): Use them.
6960 (do_fp_register_row): Likewise.
6961
fd326606
DJ
69622002-05-09 Daniel Jacobowitz <drow@mvista.com>
6963
6609d9af 6964 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6965 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6966 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6967
bef35864
MS
69682002-05-09 Michael Snyder <msnyder@redhat.com>
6969
6970 * remote-rdp.c (remote_rdp_can_run): Remove.
6971
c55a3f73
TT
69722002-05-09 Tom Tromey <tromey@redhat.com>
6973
6974 * jv-valprint.c (java_val_print): Handle `char' as a special case
6975 of TYPE_CODE_INT.
6976
b8d5e71d
MS
69772002-05-09 Michael Snyder <msnyder@redhat.com>
6978
6979 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6980 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6981 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6982 str r(0123),[sp,#nn].
361d1df0 6983 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6984 order-independent by placing it in a loop.
6985
e2cd42dd
MS
69862002-05-06 Michael Snyder <msnyder@redhat.com>
6987
6988 * stabsread.c (read_type): Add recognition for new attribute:
6989 "@V;" means that an array type is actually a vector.
6990 This is analogous to the vector flag that's been added to dwarf2.
6991
3ce1502b
MK
69922002-05-09 Mark Kettenis <kettenis@gnu.org>
6993
6994 * i386-tdep.h (i386_abi): New enum.
6995 (struct gdbarch_tdep): Replace os_ident member with abi.
6996 (i386_gdbarch_register_os_abi): New prototype.
6997 * i386-tdep.c (i386_abi_names): New array.
6998 (process_note_abi_tag_sections): Removed.
6999 (process_note_sections): New function.
7000 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7001 (struct i386_abi_handler): New struct.
7002 (i386_abi_handler_list): New variable.
7003 (i386_gdbarch_register_os_abi): New function.
7004 (i386_gdbarch_init): Adapt for the changes given above.
7005
084c156a
DJ
70062002-05-08 Daniel Jacobowitz <drow@mvista.com>
7007
7008 * gregset.h: Say "GNU/Linux".
7009
6599f021
EZ
70102002-05-08 Elena Zannoni <ezannoni@redhat.com>
7011
7012 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7013 (build_gdbtypes): Build builtin_type_v2_float.
7014 (_initialize_gdbtypes): Register new builtin type.
7015
40af4b0c
AC
70162002-05-08 Andrew Cagney <ac131313@redhat.com>
7017
7018 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7019 (clear_gdbarch_swap): New function.
7020 (initialize_non_multiarch): Call.
7021 (gdbarch_update_p): Before calling init(), swap out and clear the
7022 existing architecture.
7023 * gdbarch.c: Regenerate.
7024
4fe84f46
JT
70252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7026
7027 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7028 alphanbsd-tdep.c.
7029
4015edd1
JT
70302002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7031
7032 * sh-nbsd-nat.c: Rename to...
7033 * shnbsd-nat.c: ...this.
7034 * sh-nbsd-tdep.c: Rename to...
7035 * shnbsd-tdep.c: ...this.
7036 * sh-nbsd-tdep.h: Rename to...
7037 * shnbsd-tdep.h: ...this.
7038 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7039 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7040
0e2bd219
RE
70412002-05-08 Richard Earnshaw <rearnsha@arm.com>
7042
7043 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7044 concatenation for command help messages.
7045
13a38d45
JT
70462002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7047
7048 * NEWS: Note new sh*-*-netbsdelf* configuration.
7049 * configure.host: Set gdb_host_cpu to sh for all sh*.
7050 (sh*-*-netbsdelf*): New host.
7051 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7052 (sh*-*-netbsdelf*): New target.
7053 * sh-nbsd-nat.c: New file.
7054 * sh-nbsd-tdep.c: New file.
7055 * sh-nbsd-tdep.h: New file.
7056 * config/sh/nbsd.mh: New file.
7057 * config/sh/nbsd.mt: New file.
7058 * config/sh/nm-nbsd.h: New file.
7059 * config/sh/tm-nbsd.h: New file.
7060
d658f924
JT
70612002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7062
7063 * sh-tdep.c (sh_osabi_names): Declare.
7064 (process_note_abi_tag_sections): New function.
7065 (get_elfosabi): Ditto.
7066 (sh_gdbarch_register_os_abi): Ditto.
7067 (sh_dump_tdep): Ditto.
7068 _initialize_sh_tdep): Use gdbarch_register to register
7069 sh_gdbarch_init and sh_dump_tdep.
7070 * config/sh/tm-sh.h (sh_osabi): Declare.
7071 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7072
848cfffb
AC
70732002-05-07 Andrew Cagney <ac131313@redhat.com>
7074
7075 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7076 (thumb_scan_prologue): Ditto.
7077 (arm_find_callers_reg): Ditto.
7078 (arm_frame_chain): Ditto.
7079 (arm_init_extra_frame_info): Ditto.
7080 (arm_frame_saved_pc): Ditto.
7081 (arm_pop_frame): Ditto.
7082 (arm_push_return_address): New function.
7083 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7084 call_dummy_location, call_dummy_breakpoint_offset_p,
7085 call_dummy_breakpoint_offset, call_dummy_p,
7086 call_dummy_stack_adjust_p, call_dummy_words,
7087 sizeof_call_dummy_words, call_dummy_start_offset,
7088 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7089 call_dummy_address, push_return_address and push_dummy_frame for
7090 generic dummy frames.
7091
e7d717c0
JT
70922002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7093
7094 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7095 size computation for alloca.
7096 (sh_fp_frame_init_saved_regs): Likewise.
7097
7bbcf283
RE
70982002-05-07 Richard Earnshaw <rearnsha@arm.com>
7099
7100 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7101 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7102 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7103 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7104 * remote-rdp.c (remote_rdp_fetch_register): Use
7105 ARM_MAX_REGISTER_RAW_SIZE.
7106 (remote_rdp_store_register): Likewise.
7107
4657573b
ML
71082002-05-07 Michal Ludvig <mludvig@suse.cz>
7109
361d1df0 7110 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7111 added default labels to switch {} statements.
7112 * x86-64-tdep.c: Ditto.
7113 * x86-64-linux-nat.c: Ditto.
7114
010f3b2f
JT
71152002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7116
7117 * solib.h: Protect against multiple inclusion.
7118
debd256d
JB
71192002-05-06 Jim Blandy <jimb@redhat.com>
7120
9ab3e532
JB
7121 Add first preprocessor macro-expansion files.
7122 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7123 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7124 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7125 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7126 (COMMON_OBS): Add macrotab.o, macroexp.o.
7127 (macroexp.o, macrotab.o): New rules.
7128
debd256d
JB
7129 Separate the job of reading the line number info statement program
7130 header (...expialidocious) out into its own function.
7131 * dwarf2read.c (struct line_head, struct filenames, struct
7132 directories): Replace with...
7133 (struct line_header): New structure, containing the full
7134 contents of the statement program header, including the
7135 include directory and file name tables.
7136 (read_file_scope): If we have line number info, instead of just
7137 calling dwarf_decode_lines to do all the work, call
7138 dwarf_decode_line_header first to get a `struct line_header'
7139 containing the data in the statement program header, and then
7140 pass that to dwarf_decode_lines, which will pick up where that
7141 left off. Be sure to clean up the `struct line_header' object.
7142 (dwarf_decode_line_header, free_line_header, add_include_dir,
7143 add_file_name): New functions.
7144 (dwarf_decode_lines): Move all the code to read the statement
7145 program header into dwarf_decode_line_header. Take the line
7146 header it built as the first argument, instead of the offset to
7147 the compilation unit's line number info. Use the new `struct
7148 line_header' type instead of the old structures. No need to do
7149 cleanups here now, since we don't allocate anything.
7150 (dwarf2_statement_list_fits_in_line_number_section,
7151 dwarf2_line_header_too_long): New complaints.
7152
ac3aafc7
EZ
71532002-05-06 Elena Zannoni <ezannoni@redhat.com>
7154
7155 * gdbtypes.c (init_vector_type): New function.
7156 (build_builtin_type_vec128): Simplify the representation of SIMD
7157 registers.
7158 (build_gdbtypes): Initialize new builtin vector types.
7159 (_initialize_gdbtypes): Register new vector types with gdbarch.
7160 (builtin_type_v4_float, builtin_type_v4_int32,
7161 builtin_type_v8_int16, builtin_type_v16_int8,
7162 builtin_type_v2_int32, builtin_type_v4_int16,
7163 builtin_type_v8_int8): New (renamed) SIMD types.
7164
13e49980
MK
71652002-05-06 Mark Kettenis <kettenis@gnu.org>
7166
7167 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7168 (i387_fill_fxsave): Likewise.
7169
997b20b8
AO
71702002-05-05 Alexandre Oliva <aoliva@redhat.com>
7171
7172 * alpha-tdep.c (alpha_extract_return_value): Don't use
7173 non-constant array size in prototype.
7174
535c96ce
AC
71752002-05-04 Andrew Cagney <ac131313@redhat.com>
7176
7177 From Brian Taylor <briant at model dot com>:
7178 * ui-out.c (ui_out_field_core_addr): Use the function
7179 longest_local_hex_string_custom'to format addresses > 32 bits
7180 wide.
7181
7182 * ui-out.c (ui_out_field_core_addr): Update comment.
7183
bedfa57b
AC
71842002-05-04 Andrew Cagney <ac131313@redhat.com>
7185
7186 * stack.c (select_and_print_frame): Make static. Delete the
7187 parameter `level'.
7188 (func_command): Update call.
7189 (select_frame_command): Delete code computing the frame level.
7190 * frame.h (select_and_print_frame): Delete declaration.
7191
f621c63e
AC
71922002-05-04 Andrew Cagney <ac131313@redhat.com>
7193
7194 * sparc-tdep.c (sparc_get_saved_register): Comment why
7195 get_prev_frame call is safe.
7196
0f7d239c
AC
71972002-05-04 Andrew Cagney <ac131313@redhat.com>
7198
7199 * frame.h (select_frame): Delete level parameter.
7200 * stack.c (select_frame): Update. Use frame_relative_level to
7201 obtain the frame's level.
7202 (select_and_print_frame): Update call.
7203 (select_frame_command): Ditto.
7204 (up_silently_base): Ditto.
7205 (down_silently_base): Ditto.
7206 * ocd.c (ocd_start_remote): Ditto.
7207 * remote-rdp.c (remote_rdp_open): Ditto.
7208 * remote-mips.c (mips_initialize): Ditto.
7209 (common_open): Ditto.
7210 * remote-e7000.c (e7000_start_remote): Ditto.
7211 * m3-nat.c (select_thread): Ditto.
7212 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7213 (child_get_current_exception_event): Ditto.
7214 * varobj.c (varobj_create): Ditto.
7215 (varobj_update): Ditto.
7216 (c_value_of_root): Ditto.
7217 * tracepoint.c (finish_tfind_command): Ditto.
7218 * corelow.c (core_open): Ditto.
7219 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7220 * thread.c (info_threads_command): Ditto.
7221 (switch_to_thread): Ditto.
7222 * infrun.c (normal_stop): Ditto.
7223 (restore_selected_frame): Ditto.
7224 (restore_inferior_status): Ditto.
7225 * breakpoint.c (insert_breakpoints): Ditto.
7226 (watchpoint_check): Ditto.
7227 (bpstat_stop_status): Ditto.
7228 (do_enable_breakpoint): Ditto.
7229 * blockframe.c (flush_cached_frames): Ditto.
7230 (reinit_frame_cache): Ditto.
7231
71d6c7b1
AC
72322002-05-04 Andrew Cagney <ac131313@redhat.com>
7233
7234 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7235 maintainer.
7236
cda6c68a
JB
72372002-05-04 Jim Blandy <jimb@redhat.com>
7238
7239 * gdbtypes.c (replace_type): Doc fix.
7240
5c1c87f0
AC
72412002-05-04 Andrew Cagney <ac131313@redhat.com>
7242
7243 * valprint.c (strcat_longest): Delete commented out function.
7244 Update copyright.
7245
cd9bfe15
AC
72462002-05-04 Andrew Cagney <ac131313@redhat.com>
7247
7248 * MAINTAINERS: Mark a29k as deleted.
7249 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7250 Move new configurations to the top.
7251 * configure.tgt: Remove a29k.
7252 * config/a29k/tm-vx29k.h: Delete.
7253 * config/a29k/vx29k.mt: Delete.
7254 * config/a29k/tm-a29k.h: Delete.
7255 * config/a29k/a29k-udi.mt: Delete.
7256 * config/a29k/a29k.mt: Delete.
7257 * a29k-tdep.c: Delete.
7258 * remote-udi.c: Delete.
7259 * remote-mm.c: Delete.
7260 * remote-eb.c: Delete.
7261 * remote-adapt.c: Delete.
7262 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7263 * config/s390/s390x.mt: Ditto.
7264 * config/s390/s390.mt: Ditto.
7265 * config/sparc/sparclynx.mh: Ditto.
7266 * config/sparc/linux.mh: Ditto.
7267 * config/pa/hppaosf.mh: Ditto.
7268 * config/pa/hppabsd.mh: Ditto.
7269 * config/ns32k/nbsd.mt: Ditto.
7270 * config/mips/vr5000.mt: Ditto.
7271 * config/m68k/sun3os4.mh: Ditto.
7272 * config/m68k/nbsd.mt: Ditto.
7273 * config/m68k/m68klynx.mh: Ditto.
7274 * config/m32r/m32r.mt: Ditto.
7275 * config/i386/x86-64linux.mt: Ditto.
7276 * config/i386/nbsdelf.mt: Ditto.
7277 * config/i386/nbsd.mt: Ditto.
7278 * config/i386/i386lynx.mh: Ditto.
7279
bf0c5130
AC
72802002-05-04 Andrew Cagney <ac131313@redhat.com>
7281
7282 * target.c (debug_print_register): New function. Handle oversize
7283 registers.
7284 (debug_to_fetch_registers): Call.
7285 (debug_to_store_registers): Call.
7286
2ae1c2d2
JB
72872002-05-03 Jim Blandy <jimb@redhat.com>
7288
13a393b0
JB
7289 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7290 (read_type): Doc fix.
7291 * gdbtypes.c (replace_type): Doc fix.
7292
2ae1c2d2
JB
7293 * stabsread.c (multiply_defined_struct): New complaint.
7294 (read_struct_type): If the type we were passed isn't empty, or
7295 incomplete, don't read the new struct type into it; complain,
7296 and return the original type unchanged. Take a new `type_code'
7297 argument, which is the type code for the new type.
7298 (read_type): Rather than storing the type's type code here, pass
7299 it as an argument to read_struct_type, and let that take care of
7300 storing it. That way, we don't overwrite the original type code,
7301 so read_struct_type can use it to decide whether we're overwriting
7302 something we shouldn't.
7303 (complain_about_struct_wipeout): New function.
7304
8de9bdc4
AC
73052002-05-03 Andrew Cagney <ac131313@redhat.com>
7306
7307 * gdbarch.sh: Assert that gdbarch is non-NULL.
7308 * gdbarch.c: Regenerate.
7309
f773fdbb
JM
73102002-05-03 Jason Merrill <jason@redhat.com>
7311
7312 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7313 and return NULL.
7314
0e04a514
ML
73152002-05-03 Michal Ludvig <mludvig@suse.cz>
7316
7317 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7318 (x86_64_dwarf2gdb_regno_map_length),
7319 (x86_64_dwarf2_reg_to_regnum): Added.
7320 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7321 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7322 (_initialize_x86_64_tdep): Synced with the change above.
7323 (x86_64_skip_prologue): Reformulated message.
7324
065432a8
PM
73252002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7326
7327 * f-exp.y: Also use new prev_lexptr variable
7328 to improve error reporting. Based on Michael Snyder
7329 2002-04-24 dated patch to c-exp.y.
7330 * jv-exp.y: Likewise.
7331 * m2-exp.y: Likewise.
7332
a3162708
EZ
73332002-05-02 Elena Zannoni <ezannoni@redhat.com>
7334
7335 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7336 we are dealing with vectors.
7337
03620c38
PM
73382002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7339
7340 * config/m68k/tm-nbsd.h: Obvious fix,
7341 correct machine name.
7342
6604db2e
PM
73432002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7344
7345 * p-typeprint.c (pascal_type_print_base): Add support
7346 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7347
0906b739
PM
73482002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7349
7350 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7351 for fondamental pascal 'char' type.
7352
e2625b33
PM
73532002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7354
7355 * p-lang.h (is_pascal_string_type): Declaration changed,
7356 new sixth argument of type char ** added.
361d1df0 7357 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7358 changed. Args length_pos, length_size, string_pos, char_size
7359 can now be NULL. New argument arrayname set to the field
7360 name of the char array. Return value set to char array
7361 field index plus one.
361d1df0 7362 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7363 is_pascal_string_type function.
7364
cf17c188
AC
73652002-05-02 Andrew Cagney <cagney@redhat.com>
7366
7367 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7368 <cagney@redhat.com> change.
7369 * gdbarch.c: Regenerate.
7370
52bca491
AC
73712002-05-02 Andrew Cagney <cagney@redhat.com>
7372
7373 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7374 before probing for a new one. Detect errorenous gdbarch_init
7375 functions.
7376 * gdbarch.c: Regenerate.
7377
d5e72505
AC
73782002-05-01 Andrew Cagney <cagney@redhat.com>
7379
7380 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7381 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7382 * config/v850/tm-v850.h: Ditto. Update copyright.
7383
af566d9f
AC
73842002-04-30 Andrew Cagney <ac131313@redhat.com>
7385
7386 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7387 current_gdbarch.
7388
880d85fa
MS
73892002-04-30 Michael Snyder <msnyder@redhat.com>
7390
94c30b78
MS
7391 * arm-tdep.c: Whitespace clean-ups.
7392 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7393 should have been removed as part of 4/24 change.
7394
6f5987a6
KB
73952002-04-30 Kevin Buettner <kevinb@redhat.com>
7396
7397 * rs6000-tdep.c: Added comment describing how fpscr register
7398 numbers were chosen.
7399
1a113c93
MS
74002002-04-30 Michael Snyder <msnyder@redhat.com>
7401
7402 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7403
9a6f53fe
EZ
74042002-04-29 Elena Zannoni <ezannoni@redhat.com>
7405
7406 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7407 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7408 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7409
11ed25ac
KB
74102002-04-29 Kevin Buettner <kevinb@redhat.com>
7411
7412 From Louis Hamilton <hamilton@redhat.com>:
7413 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7414 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7415 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7416 not bfd-private xcoff data, to determine wordsize.
7417 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7418
ae232405
AC
74192002-04-29 Andrew Cagney <ac131313@redhat.com>
7420
7421 GDB 5.2 released from 5.2 branch.
7422
91fd20f7
ML
74232002-04-29 Michal Ludvig <mludvig@suse.cz>
7424
7425 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7426 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7427 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7428
2dc5091b
EZ
74292002-04-29 Elena Zannoni <ezannoni@redhat.com>
7430
7431 * rs6000-tdep.c (rs6000_extract_return_value,
7432 rs6000_store_return_value): Handle returning vectors.
7433 (rs6000_gdbarch_init): Use
7434 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7435 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7436 New function.
7437 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7438 vectors.
7439 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7440 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7441
2b9848d8
PM
74422002-04-24 Pierre Muller <ics.u-strasbg.fr>
7443
7444 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7445 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7446 with fprintf_unfiltered (gdb_stderr,...).
7447
f8d17dc5
PM
74482002-04-24 Pierre Muller <ics.u-strasbg.fr>
7449
7450 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7451 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7452 Replace fprintf (stderr,...
7453 with fprintf_unfiltered (gdb_stderr,....
7454 * remote-es.c: Likewise.
7455 * remote-os9k.c: Likewise.
7456 * remote-st.c: Likewise.
7457
2f2f1ad1
AS
74582002-04-28 Andreas Schwab <schwab@suse.de>
7459
7460 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7461 linux-proc.o and gcore.o.
7462
b6779aa2
AC
74632002-04-26 Michal Ludvig <mludvig@suse.cz>
7464
7465 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7466 code without frame pointers.
7467
7e57f5f4
AC
74682002-04-26 Andrew Cagney <ac131313@redhat.com>
7469
7470 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7471 ON_STACK is needed.
7472
2ceb85d0
BE
74732002-04-26 Ben Elliston <bje@redhat.com>
7474
7475 * target.c (do_xfer_memory): Correct reference to the new option
7476 "trust-readonly-sections".
7477
f5f8a009
EZ
74782002-04-26 Elena Zannoni <ezannoni@redhat.com>
7479
7480 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7481 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7482 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7483 vectors.
7484 (read_array_type): Record the fact that this array type is really a
7485 vector (i.e. are passed in by value).
7486
5868c862
JT
74872002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7490 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7491 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7492 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7493 * alpha-linux-tdep.c: Include frame.h.
7494 (alpha_linux_sigcontext_addr): New function.
7495 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7496 alpha_linux_sigcontext_addr.
7497 * alpha-osf1-tdep.c: Include gdbcore.h.
7498 (alpha_osf1_sigcontext_addr): New function.
7499 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7500 alpha_osf1_sigcontext_addr.
7501 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7502 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7503
bfb01f37
AC
75042002-04-26 Andrew Cagney <ac131313@redhat.com>
7505
361d1df0 7506 * stack.c (selected_frame_level):
bfb01f37
AC
7507 (select_frame): Do not set selected_frame_level.
7508 * frame.h (selected_frame_level): Delete declaration.
7509
15813d3f
AC
75102002-04-26 Andrew Cagney <ac131313@redhat.com>
7511
7512 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7513 convert_from_func_ptr-addr when AIX / PowerOpen.
7514
6096c27a
AC
75152002-04-25 Andrew Cagney <ac131313@redhat.com>
7516
7517 * valops.c (hand_function_call): Call
7518 generic_save_call_dummy_addr.
7519 * frame.h (generic_save_call_dummy_addr): Declare.
7520 * blockframe.c (struct dummy_frame): Add fields call_lo and
7521 call_hi.
7522 (generic_find_dummy_frame): Check for PC in range call_lo to
7523 call_hi instead of entry_point_address.
7524 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7525 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7526 (generic_save_call_dummy_addr): New function.
7527
f510d44e
DM
75282002-04-24 David S. Miller <davem@redhat.com>
7529
7530 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7531 sparc_skip_prologue.
7532 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7533 information to find prologue when possible.
7534 (sparc_prologue_frameless_p): Call examine_prologue directly.
7535 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7536 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7537 second argument.
7538 (SKIP_PROLOGUE): Likewise.
7539
15d72a92
JT
75402002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7543 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7544 indicate that the condition it was testing is always true.
7545 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7546 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7547 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7548
accc6d1f
JT
75492002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7550
7551 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7552 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7553 tdep->jb_pc and tdep->jb_elt_size.
7554 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7555 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7556 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7557 * alpha-nat.c (get_longjmp_target): Remove.
7558 (JB_ELEMENT_SIZE): Ditto.
7559 (JB_PC): Ditto.
7560 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7561 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7562 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7563 to alpha_get_longjmp_target.
7564 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7565 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7566 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7567
1bfdc549
AC
75682002-04-25 Andrew Cagney <ac131313@redhat.com>
7569
7570 * README: Update to GDB 5.2.
7571
1bd316f0
AC
75722002-04-25 Andrew Cagney <ac131313@redhat.com>
7573
7574 * gdbarch.sh (LC_ALL): Set to `c'.
7575
2e5ff58c
TR
75762002-04-25 Theodore A. Roth <troth@verinet.com>
7577
7578 * avr-tdep.c: Ran through gdb_indent.sh.
7579
e33ce519
TR
75802002-04-25 Theodore A. Roth <troth@verinet.com>
7581
7582 * MAINTAINERS: Add myself as AVR maintainer.
7583 * NEWS: Note new target avr.
7584
8818c391
TR
75852002-04-25 Theodore A. Roth <troth@verinet.com>
7586
7587 * Makefile.in: Add support for AVR target.
7588 * configure.tgt: Add support for AVR target.
7589 * avr-tdep.c: New file
7590 * config/avr/avr.mt: New file.
7591
79509c2d
TR
75922002-04-25 Theodore A. Roth <troth@verinet.com>
7593
7594 * MAINTAINERS: Add myself to write-after-approval.
7595
dac8068e
PM
75962002-04-24 Pierre Muller <ics.u-strasbg.fr>
7597
7598 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7599 with fprintf_unfiltered (gdb_stderr,....
7600
25bf3106
PM
76012002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7602
7603 Fix PR gdb/508.
7604 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7605
24467a86
PM
76062002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7607
7608 * p-exp.y: Also use new prev_lexptr variable
7609 to improve error reporting. Based on Michael Snyder
7610 2002-04-24 dated patch to c-exp.y.
7611
95b80706
JT
76122002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7613
7614 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7615 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7616 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7617 to 0.
7618 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7619 and struct value.
7620 (FUNCTION_START_OFFSET): Remove.
7621 (BREAKPOINT): Ditto.
7622
e90cc612
JT
76232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7624
7625 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7626 * NEWS: Ditto.
7627
6c72f9f9
JT
76282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7629
7630 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7631 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7632 alpha_linux_pc_in_sigtramp.
7633 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7634 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7635 alpha_osf1_pc_in_sigtramp.
7636 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7637 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7638 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7639 alphafbsd_pc_in_sigtramp.
7640 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7641 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7642 alphanbsd_pc_in_sigtramp.
7643 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7644 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7645
5e4f3379
JT
76462002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7647
7648 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7649
da8ca43d
JT
76502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7653 alphanbsd-tdep.c.
7654 (alphanbsd-nat.o): New dependency list.
7655 (alphanbsd-tdep.o): Ditto.
7656 * NEWS: Note new native NetBSD/alpha configuration.
7657 * alphanbsd-nat.c: New file.
7658 * alphanbsd-tdep.c: Ditto.
7659 * configure.host (alpha*-*-netbsd*): New host.
7660 * configure.tgt (alpha*-*-netbsd*): New target.
7661 * config/alpha/nbsd.mh: New file.
7662 * config/alpha/nbsd.mt: Ditto.
7663 * config/alpha/nm-nbsd.h: Ditto.
7664 * config/alpha/tm-nbsd.h: Ditto.
7665
36a6271d
JT
76662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7667
7668 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7669 (alpha-osf1-tdep.o): New dependency list.
7670 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7671 and skip_sigtramp_frame members.
7672 * alpha-linux-tdep.c: Include gdbcore.h.
7673 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7674 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7675 * alpha-osf1-tdep.c: New file.
7676 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7677 alpha-osf1-dep.c.
7678 (alpha_frame_past_sigtramp_frame): New function.
7679 (alpha_dynamic_sigtramp_offset): Ditto.
7680 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7681 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7682 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7683 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7684 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7685 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7686 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7687 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7688 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7689 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7690 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7691 to find_solib_trampoline_target.
7692 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7693 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7694 (SKIP_TRAMPOLINE_CODE): Remove.
7695 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7696 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7697 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7698 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7699 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7700 (PROC_SIGTRAMP_MAGIC): Ditto.
7701 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7702 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7703 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7704 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7705 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7706
2f4bc57b
JT
77072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * NEWS: Note that Alpha targets are now multi-arch.
7710
665132f9
MS
77112002-04-24 Michael Snyder <msnyder@redhat.com>
7712
7713 * parser-defs.h (prev_lexptr): New external variable.
7714 * parse.c (parse_exp_1): Set prev_lexptr to null before
7715 calling the language-specific parser.
7716 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7717 (yyerror): Use prev_lexptr in error reporting.
7718
32872fa7
DJ
77192002-04-24 Daniel Jacobowitz <drow@mvista.com>
7720
7721 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7722 * gregset.h: If FILL_FPXREGSET is defined, provide
7723 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7724 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7725 is defined, call fill_fpxregset.
7726
57e76fac
MS
77272002-04-24 Roland McGrath <roland@frob.com>
7728
7729 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7730 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7731 (supply_gregset, supply_fpregset): New functions.
7732
7733 * gnu-nat.c (gnu_find_memory_regions): New function.
7734 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7735 (gnu_xfer_memory): Add a cast.
7736
f43845b3
MS
77372002-04-24 Michael Snyder <msnyder@redhat.com>
7738
361d1df0 7739 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7740 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7741 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7742 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7743 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7744 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7745
a0abec03
AC
7746Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7747
7748 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7749 NUM_PSEUDO_REGS can be used.
7750
d7bd68ca
AC
77512002-04-24 Andrew Cagney <ac131313@redhat.com>
7752
7753 * arch-utils.h: Update copyright.
7754
7755 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7756 * gdbarch.h, gdbarch.c: Re-generate.
7757
7758 * inferior.h (IN_SIGTRAMP): Delete definition.
7759 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7760 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7761
7762 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7763 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7764 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7765 (find_proc_framesize): Ditto.
7766 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7767 (alpha_init_extra_frame_info): Ditto.
7768 * infrun.c (handle_inferior_event): Ditto.
7769 (handle_inferior_event): Ditto.
7770 (check_sigtramp2): Ditto.
7771 * blockframe.c (create_new_frame): Ditto.
7772 (get_prev_frame): Ditto.
7773 * ppc-linux-tdep.c: Update comments.
7774 * i386-linux-tdep.c: Update comments.
7775 * breakpoint.c (bpstat_what): Update comment.
7776
4867e41e
DM
77772002-04-24 David S. Miller <davem@redhat.com>
7778
21d83aa5
DM
7779 * i960-tdep.c (register_in_window_p): New function.
7780 (i960_find_saved_register): Use it instead of
7781 REGISTER_IN_WINDOW_P.
7782 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7783
4867e41e
DM
7784 * symtab.h (find_stab_function_addr): Kill extern.
7785 * minsyms.c (find_stab_function_addr): Remove from here...
7786 * dbxread.c: ... to here, and mark it static.
7787
69cdf6a2
DM
77882002-04-20 David S. Miller <davem@redhat.com>
7789
7790 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7791 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7792
5a595886
DM
77932002-04-21 David S. Miller <davem@redhat.com>
7794
7795 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7796 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7797 (vx_write_register): Likewise.
7798
1da1a192
JB
77992002-04-23 J. Brobecker <brobecker@gnat.com>
7800
7801 * source.c (is_regular_file): New function.
7802 (openp): Check wether file to open is a regular file
7803 to avoid opening directories.
7804
baa6f10b
JT
78052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7806
7807 * findvar.c (extract_signed_integer): Cast printf argument
7808 to suppress format warning.
7809 (extract_unsigned_integer): Likewise.
7810 * infcmd.c (registers_info): Likewise.
7811 * top.c (get_prompt_1): Likewise.
7812 * valops.c (value_assign): Likewise.
7813 * valprint.c (print_decimal): Likewise.
7814
b2c4da81
L
78152002-04-22 H.J. Lu (hjl@gnu.org)
7816
7817 * c-exp.y (typebase): Support
361d1df0 7818
b2c4da81
L
7819 [long|long long|short] [signed|unsigned] [int|]
7820
7821 and
7822
7823 signed [long|long long|short] int
7824
f267bd6a
JT
78252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7826
7827 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7828 and vax-tdep.h.
7829 * vax-tdep.h: New file.
7830 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7831 Make several routines static.
7832 (vax_get_saved_register): New function.
7833 (vax_gdbarch_init): New function.
7834 (_initialize_vax_tdep): Register vax_gdbarch_init.
7835 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7836 Remove macros now under the control of gdbarch.
7837
da3c6d4a
MS
78382002-04-22 Michael Snyder <msnyder@redhat.com>
7839
11d3b27d
MS
7840 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7841 Some whitespace and coding standards tweaks.
da3c6d4a 7842
a33f7558
JT
78432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7844
7845 * vax-tdep.c: Include regcache.h.
7846 (vax_call_dummy_words): New.
7847 (sizeof_vax_call_dummy_words): New.
7848 (vax_fix_call_dummy): New function.
7849 (vax_saved_pc_after_call): Ditto.
7850 * config/vax/tm-vax.h: Don't include regcache.h.
7851 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7852 (CALL_DUMMY): Remove.
7853 (CALL_DUMMY_WORDS): Define.
7854 (SIZEOF_CALL_DUMMY_WORDS): Define.
7855 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7856
47a73475
MS
78572002-04-18 Michael Snyder <msnyder@redhat.com>
7858
7859 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7860
52efde73
JT
78612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7862
7863 * vax-tdep.c (vax_frame_chain): New function.
7864 (vax_push_dummy_frame): Ditto.
7865 (vax_pop_frame): Ditto.
7866 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7867 (FRAMELESS_FUNCTION_INVOCATION): Use
7868 generic_frameless_function_invocation_not.
7869 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7870 (POP_FRAME): Use vax_pop_frame.
7871
ea74468c
JT
78722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7873
7874 * vax-tdep.c (vax_store_struct_return): New function.
7875 (vax_extract_return_value): Ditto.
7876 (vax_store_return_value): Ditto.
7877 (vax_extract_struct_value_address): Ditto.
7878 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7879 vax_store_struct_return.
7880 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7881 (STORE_RETURN_VALUE): Use vax_store_return_value.
7882 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7883
5516aa92
JT
78842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7885
7886 * vax-tdep.c (vax_frame_saved_pc): New function.
7887 (vax_frame_args_address_correct): Ditto.
7888 (vax_frame_args_address): Ditto.
7889 (vax_frame_locals_address): Ditto.
7890 (vax_frame_num_args): Move code to be in proximity to
7891 other frame-related functions.
7892 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7893 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7894 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7895 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7896 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7897
36af0b35
L
78982002-04-22 H.J. Lu (hjl@gnu.org)
7899
7900 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7901 includedir.
7902
ab62c900
JT
79032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7904
7905 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7906 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7907 (FRAME_INIT_SAVED_REGS): New macro.
7908
7232b100
JT
79092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7910
7911 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7912
b70d2aee
JT
79132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7914
7915 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7916 where needed.
7917 (fetch_osf_core_registers): Likewise.
7918 (supply_gregset): Likewise.
7919
a0e8a2d1 79202002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7921
a0e8a2d1
JB
7922 * symfile.h (get_section_index): Define.
7923 * symfile.c (get_section_index): New function.
7924 * mdebugread.c (SC_IS_SBSS): New macro.
7925 (SC_IS_BSS): Return true for the scBss storage class only, as
7926 the scSBss storage class refers to the .sbss section.
7927 (parse_partial_symbols): Discard the symbols which associated
7928 section does not exist.
7929 Make sure to use the .sbss section index for symbols which
7930 storage class is scBss, rather than using the .bss section index.
7931
51eb8b08
JT
79322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7933
7934 * vax-tdep.c: Update copyright years.
7935 (vax_register_name): New function.
7936 (vax_register_byte): Ditto.
7937 (vax_register_raw_size): Ditto.
7938 (vax_register_virtual_size): Ditto.
7939 (vax_register_virtual_type): Ditto.
7940 * config/vax/tm-vax.h: Update copyright years.
7941 (REGISTER_NAMES): Remove.
7942 (REGISTER_NAME): Define.
7943 (REGISTER_BYTE): Use vax_register_byte.
7944 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7945 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7946 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7947
6cc1c0a8
AC
79482002-04-21 Andrew Cagney <ac131313@redhat.com>
7949
7950 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7951 declaration
7952 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7953
9319a2fe
DM
79542002-04-21 David S. Miller <davem@redhat.com>
7955
7956 * arch-utils.c (generic_prologue_frameless_p): Kill
7957 SKIP_PROLOGUE_FRAMELESS_P code.
7958 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7959 references.
7960 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7961 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7962 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7963 references.
7964 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7965 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7966 (sparc_gdbarch_init): Pass it to
7967 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7968
e9ed6d01
JT
79692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7970
7971 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7972 (alphabsd-nat.o): New dependency list.
7973
36012033
JT
79742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7975
7976 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7977 alphafbsd-tdep.c.
7978 (alpha-linux-tdep.o): New dependency list.
7979 (alphafbsd-tdep.o): Likewise.
7980
3379287a
JT
79812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7982
7983 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7984 to here...
7985 * alpha-tdep.c: ...from here.
7986 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7987
4bcbd6cb
JT
79882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7989
7990 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7991 prototype from here...
7992 * alpha-tdep.h: ...to here.
7993
b31da25e
AC
79942002-04-21 Andrew Cagney <ac131313@redhat.com>
7995
7996 * frame.h (selected_frame_level): Document as deprecated.
7997 (frame_relative_level): Declare.
7998 * stack.c (frame_relative_level): New function.
7999 (selected_frame_level): Document as deprecated.
8000 (select_frame): Do not set the selected_frame_level.
8001
8002 * stack.c (frame_info, record_selected_frame): Update.
8003 (frame_command, current_frame_command): Update.
8004 (up_silently_base, up_command, down_silently_base): Update.
8005 (down_command): Update.
8006 * inflow.c (kill_command): Update.
8007 * tracepoint.c (finish_tfind_command): Update.
8008 * corelow.c (core_open): Update.
8009 * thread.c (info_threads_command): Update.
8010 (do_captured_thread_select): Update.
8011 * infcmd.c (finish_command): Update.
8012 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8013
9c1d6fe5
JT
80142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8015
8016 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8017
ab89facf
AC
80182002-04-21 Andrew Cagney <ac131313@redhat.com>
8019
8020 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8021 type const.
8022
82a4efa1
JT
80232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8024
8025 * alphafbsd-tdep.c: Update copyright years. Include
8026 alpha-tdep.h.
8027 (alphafbsd_use_struct_convention): Make static.
8028 (alphafbsd_init_abi): New function.
8029 (_initialize_alphafbsd_tdep): New function.
8030 * config/alpha/tm-fbsd.h: Update copyright years.
8031 (USE_STRUCT_CONVENTION): Remove.
8032
44dffaac
JT
80332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8034
8035 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8036 an Alpha ABI variant.
8037 (alpha_abi_handler_list): Declare.
8038 (alpha_gdbarch_register_os_abi): New function.
8039 (alpha_gdbarch_init): Give registered ABI variant handlers a
8040 chance to tweak the gdbarch once we have set up defaults.
8041 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8042
65585be4
JT
80432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8046 to standard_coerce_float_to_double.
8047 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8048
d9b023cc
JT
80492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8050
8051 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8052 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8053 from gdbarch_tdep rather than a constant.
8054 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8055 the default text address for all Alpha Unix ABIs.
8056 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8057 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8058
dc129d82
JT
80592002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8060
8061 * alpha-tdep.h: New file. Includes several Alpha target constants
8062 taken from...
8063 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8064 let gdbarch deal with.
8065 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8066 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8067 to dependency list.
8068 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8069 Alpha target register names.
8070 * alphabsd-nat.c: Likewise.
8071 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8072 Alpha target register names. Make serveral routines static.
8073 (alpha_get_saved_register): New function.
8074 (alpha_abi_names): New.
8075 (process_note_abi_tag_sections): New function.
8076 (get_elfosabi): New function.
8077 (alpha_gdbarch_init): New function.
8078 (alpha_dump_tdep): New function.
8079 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8080
d49d1e0a
AC
80812002-04-21 Andrew Cagney <ac131313@redhat.com>
8082
8083 * frame.c (find_saved_register): Delete #ifdef
8084 HAVE_REGISTER_WINDOWS code.
8085 * config/sparc/tm-sparc.h: Update comments.
8086 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8087
92e8c9ed
AC
80882002-04-21 Andrew Cagney <ac131313@redhat.com>
8089
8090 * i960-tdep.c (i960_find_saved_register): New function.
8091 (i960_get_saved_register): New function.
8092 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8093 (i960_get_saved_register): Declare.
8094 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8095
e1925118
DM
80962002-04-20 David S. Miller <davem@redhat.com>
8097
8098 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8099
29673b29
AC
81002002-04-20 Andrew Cagney <ac131313@redhat.com>
8101
8102 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8103 instead of NUM_PSEUDO_REGS.
8104
6c86dcd5
DM
81052002-04-20 David S. Miller <davem@redhat.com>
8106
8107 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8108 GDB_MULTI_ARCH_PARTIAL
8109 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8110 define, let tm-sp64.h do it.
8111
aa40ec90
JT
81122002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8113
8114 * frame.c (find_saved_register): Avoid a NULL pointer
8115 dereference and actually walk the frame list.
8116
0f79675b
AC
81172002-04-20 Andrew Cagney <ac131313@redhat.com>
8118
8119 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8120 sorted in most most-recent-used order. Document.
8121 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8122
f91305dd 81232002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8124
8125 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8126 instead of ->prev.
8127 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8128 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8129 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8130 instead of ->prev.
8131
73d322b1
EZ
81322002-04-19 Elena Zannoni <ezannoni@redhat.com>
8133
8134 Fix PR gdb/471.
8135 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8136 (build_builtin_type_vec128): Ditto.
8137 (append_composite_type_field): Fix calculation of type length in
8138 union case.
8139
ccd9a834
EZ
81402002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8141
8142 * config/djgpp/README: Update.
8143
8144 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8145 compiler warnings.
8146
a57f9e49
JT
81472002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8148
8149 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8150 (alpha_setup_arbitrary_frame): ...to this.
8151 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8152 for alpha_setup_arbitrary_frame.
8153
f4f9705a
AC
81542002-04-18 Andrew Cagney <cagney@redhat.com>
8155
8156 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8157 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8158
f4f9705a
AC
8159 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8160 * target.h (memory_breakpoint_from_pc): Update declaration.
8161 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8162
8163 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8164 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8165 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8166 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8167 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8168 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8169 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8170 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8171 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8172 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8173 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8174 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8175
8176 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8177 const pointer.
8178 * monitor.c (monitor_insert_breakpoint): Ditto.
8179 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8180
8181 * config/mcore/tm-mcore.h: Update copyright.
8182 * mem-break.c: Ditto.
8183 * xstormy16-tdep.c: Ditto.
8184
29f319b8
PM
81852002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8186
8187 * p-exp.y: Add precedence rule for '^' token.
8188 This removes the shift/reduce conflicts.
8189 Remove the comment concerning these shift/reduce conflicts.
8190
ebeac11a
EZ
81912002-04-18 Elena Zannoni <ezannoni@redhat.com>
8192
8193 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8194 (registers_powerpc_nofp): New register set for processors
8195 without floating point unit.
8196
27c31547
DM
81972002-04-18 David S. Miller <davem@redhat.com>
8198
8199 * MAINTAINERS: Add myself to write-after-approval.
8200
47a73475
MS
82012002-04-17 Michael Snyder <msnyder@redhat.com>
8202
8203 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8204
953836b2
AC
82052002-04-17 Andrew Cagney <ac131313@redhat.com>
8206
8207 * rs6000-tdep.c (frame_initial_stack_address): Use
8208 frame_register_read to read the alloca_reg.
8209
8b0d4340
AC
82102002-04-17 Andrew Cagney <ac131313@redhat.com>
8211
8212 * frame.c (find_saved_register): Find saved registers in the next
8213 not prev frame.
8214 Fix PR gdb/365.
8215
d8864532
AC
82162002-04-17 Andrew Cagney <ac131313@redhat.com>
8217
8218 * gdbarch.sh (LANG): Set to ``c''.
8219
36cc83a3 82202002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8221
36cc83a3 8222 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8223
2f4150cc 82242002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8225
8226 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8227 Update copyright.
8228
628703c6 8229 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8230 Also fix PR gdb/391.
361d1df0 8231
56157b4a
AC
82322002-04-14 Andrew Cagney <ac131313@redhat.com>
8233
8234 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8235 * aclocal.m4, configure: Re-generate.
8236 Fix PR gdb/391.
361d1df0 8237
6d1e3329
EZ
82382002-04-14 Elena Zannoni <ezannoni@redhat.com>
8239
8240 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8241 instead of tm_print_insn.
8242
cb06fa07
EZ
82432002-04-14 Elena Zannoni <ezannoni@redhat.com>
8244
8245 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8246
f208ba17
AC
82472002-04-14 Andrew Cagney <ac131313@redhat.com>
8248
8249 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8250 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8251 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8252
20f01a46
DH
82532002-04-12 Don Howard <dhoward@redhat.com>
8254
8255 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8256 max_user_call_depth.
8257 (init_cmd_lists): Initialize the new value;
8258 * cli/cli-script.c (execute_user_command): Limit the call depth of
8259 user defined commands. This avoids a core-dump when user commands
8260 are infinitly recursive.
8261
a88376a3
KB
82622002-04-12 Kevin Buettner <kevinb@redhat.com>
8263
8264 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8265 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8266 from tdep struct instead of DEFAULT_LR_SAVE.
8267 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8268 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8269 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8270
f2172603
MS
82712002-04-12 Michael Snyder <msnyder@redhat.com>
8272
694f61fb 8273 * Remote.c: Spelling fix.
20fe79c8
MS
8274 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8275 If no symbol found for "sbrk", try "_sbrk".
8276 (make_output_phdrs): Use bfd_section_name.
8277 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8278 * eval.c: Indentation fix-ups.
169a7369
MS
8279 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8280 in case it gets applied to an address that is already
8281 in the instruction space.
de74f71f
MS
8282 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8283 * symfile.c: Fix indentation, long lines.
f2172603
MS
8284 * source.c: White space fix-up.
8285
cda5a58a
AC
82862002-04-12 Andrew Cagney <cagney@redhat.com>
8287
8288 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8289 * frame.c (frame_register_read): New function. Return non-zero on
8290 success.
8291 (read_relative_register_raw_bytes_for_frame): Delete.
8292 (read_relative_register_raw_bytes): Delete.
8293 * frame.h (frame_register_read): Declare.
8294 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8295 * sh-tdep.c: Ditto.
8296 * infcmd.c (do_registers_info): Ditto.
8297 * hppa-tdep.c: Ditto.
8298 * rs6000-tdep.c: Ditto.
8299 * h8500-tdep.c: Ditto.
8300 * mips-tdep.c: Ditto.
8301 * h8300-tdep.c: Ditto.
8302 * z8k-tdep.c: Ditto.
8303
2ea5f656
KB
83042002-04-12 Kevin Buettner <kevinb@redhat.com>
8305
8306 From Jimi X <jimix@watson.ibm.com>:
8307 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8308 64-bit SysV ABI.
8309
27b15785
KB
83102002-04-12 Kevin Buettner <kevinb@redhat.com>
8311
8312 From Jimi X <jimix@watson.ibm.com>:
8313 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8314 bfd info.
8315
5d57ee30
KB
83162002-04-12 Kevin Buettner <kevinb@redhat.com>
8317
8318 From Jimi X <jimix@watson.ibm.com>:
8319 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8320 register sets for these processor variants.
8321
bc1e36ca
DJ
83222002-04-11 Daniel Jacobowitz <drow@mvista.com>
8323
bc1e36ca
DJ
8324 * regformats/reg-ppc.dat: Support FPSCR.
8325
e3f36dbd
KB
83262002-04-11 Kevin Buettner <kevinb@redhat.com>
8327
8328 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8329 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8330 Add fpscr as an invalid/unfetchable register.
8331 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8332 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8333 (fill_fpregset): Add support for register fpscr.
8334 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8335 (fill_gregset): Account for the fact that register ``mq'' might
8336 not exist.
8337 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8338 (registers_power): Add fpscr to register set at slot 71.
8339 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8340 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8341
943c9c25
MS
83422002-04-11 Michael Snyder <msnyder@redhat.com>
8343
8344 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8345 * configure: Regenerate.
8346 * config.in: Regenerate.
8347 * acconfig.h: Add define for _SYSCALL32.
8348 * core-sol2.c: Remove #define _SYSCALL32.
8349 * solib-legacy.c: Remove #define _SYSCALL32.
8350
d8c0a2e7
AC
83512002-04-10 Andrew Cagney <ac131313@redhat.com>
8352
8353 * stack.c (select_frame): Cleanup internal error message, do not
8354 use %p.
8355
7cc19214
AC
83562002-04-10 Andrew Cagney <ac131313@redhat.com>
8357
8358 * stack.c (select_frame): Check that selected_frame and the
8359 specified level are as expected.
8360 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8361 Update copyright.
8362 * frame.h (struct frame_info): Add field `level'. Update
8363 copyright.
8364 Work-in-progress PR gdb/464.
8365
67a2b77e
AC
83662002-04-10 Andrew Cagney <ac131313@redhat.com>
8367
8368 * maint.c (maint_print_section_info): Rename print_section_info.
8369 (print_bfd_section_info, print_objfile_section_info): Update.
8370 * inferior.h (struct gdbarch): Add opaque declaration.
8371 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8372 * gdbarch.h: Regenerate.
8373
8cfda98c
ML
83742002-04-10 Michal Ludvig <mludvig@suse.cz>
8375
8376 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8377 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8378 (kernel_u_size): Added.
8379 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8380 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8381
ca439ad2 83822002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8383
ca439ad2
JI
8384 * valarith.c (find_size_for_pointer_math): New function, either returns
8385 the size for a pointer's target, returns 1 for void *, or errors for
8386 incomplete types.
8387 (value_add, value_sub): use find_size_for_pointer_math.
8388
2f2893d9
DJ
83892002-04-09 Daniel Jacobowitz <drow@mvista.com>
8390
8391 * linux-low.c (linux_look_up_symbols): New hook.
8392 (linux_target_ops): Add linux_look_up_symbols.
8393 * remote-utils.c (decode_address): New function.
8394 (look_up_one_symbol): New function.
8395 * server.c (handle_query): Call target look_up_symbols hook.
8396 * server.h (look_up_one_symbol): Add prototype.
8397 * target.h (struct target_ops): Add look_up_symbols hook.
8398
96cb11df
AC
83992002-04-09 Andrew Cagney <ac131313@redhat.com>
8400
8401 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8402 override FP_REGNUM with frame->fp. Update copyright.
8403 * parse.c (num_std_regs, std_regs): Delete.
8404 (target_map_name_to_register): Do not search std_regs. Update
8405 function description.
8406 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8407 declarations. Update copyright.
8408 Fix PR gdb/251.
361d1df0 8409
97658e92
DJ
84102002-04-09 Daniel Jacobowitz <drow@mvista.com>
8411
8412 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8413 after the last symbol in a block.
8414
6044e3eb
PM
84152002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8416
8417 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8418 is non zero as a found symbol.
8419
0406ec40
AC
84202002-04-08 Andrew Cagney <ac131313@redhat.com>
8421
8422 * findvar.c: Include "builtin-regs.h".
8423 (value_of_register): Call value_of_builtin_reg when applicable.
8424 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8425 (target_map_name_to_register): Call
8426 builtin_reg_map_name_to_regnum.
8427 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8428 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8429 (builtin_regs_h): Define.
8430 (builtin-regs.o): New target.
8431 (findvar.o): Add $(builtin_regs_h).
8432 * builtin-regs.c, builtin-regs.h: New files.
8433 * std-regs.c: New file.
8434 Partial fix for PR gdb/251.
8435
56a6dfb9
KB
84362002-04-08 Kevin Buettner <kevinb@redhat.com>
8437
8438 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8439 it's no longer required.
8440
3a808432
AC
84412002-04-08 Andrew Cagney <ac131313@redhat.com>
8442
8443 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8444
7c40d541
KB
84452002-04-08 Kevin Buettner <kevinb@redhat.com>
8446
8447 From Jimi X <jimix@watson.ibm.com>:
8448 * rs6000-tdep.c (rs6000_software_single_step): Use
8449 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8450 and size. Use target_insert_breakpoint() and
8451 target_remove_breakpoint() to insert and remove breakpoints
8452 instead of explicit memory reads and writes.
8453
cc9836a8
KB
84542002-04-08 Kevin Buettner <kevinb@redhat.com>
8455
8456 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8457 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8458 ELF_OBJECT_FORMAT ifdef.
8459
7495d1dc
KB
84602002-04-08 Kevin Buettner <kevinb@redhat.com>
8461
8462 From Jimi X <jimix@watson.ibm.com>:
8463 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8464
4288e836
KB
84652002-04-08 Kevin Buettner <kevinb@redhat.com>
8466
8467 From Jimi X <jimix@watson.ibm.com>:
8468 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8469 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8470
a4e4e501
MK
84712002-04-07 Mark Kettenis <kettenis@gnu.org>
8472
8473 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8474 s/asprintf/xasprintf/.
8475 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8476
006defba
AC
84772002-04-07 Andrew Cagney <ac131313@redhat.com>
8478
8479 I believe Jeff Law denies responsability for this one:
8480 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8481 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8482 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8483 Work-around for PR gdb/366.
8484
7aa83cac
EZ
84852002-04-07 Elena Zannoni <ezannoni@redhat.com>
8486
8487 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8488 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8489 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8490
cf1fcca1
EZ
84912002-04-07 Elena Zannoni <ezannoni@redhat.com>
8492
8493 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8494 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8495 information.
8496
3f289e6f
AC
84972002-04-07 Andrew Cagney <ac131313@redhat.com>
8498
8499 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8500 maintainer.
8501
129188f6
AC
85022002-04-07 Andrew Cagney <ac131313@redhat.com>
8503
8504 * README (Reporting Bugs in GDB): Document the bug web page as the
8505 prefered way of submitting bugs.
8506 Fix PR gdb/402.
8507
1200cd6e
AC
85082002-04-06 Andrew Cagney <ac131313@redhat.com>
8509
8510 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8511 -1. Update comment.
8512 * gdbarch.h, gdbarch.c: Re-generate.
8513
2853c33c
AS
85142002-04-07 Andreas Schwab <schwab@suse.de>
8515
8516 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8517 buffer to regcache_collect.
8518
c2169756
AC
85192002-04-06 Andrew Cagney <ac131313@redhat.com>
8520
8521 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8522 * gdbarch.c, gdbarch.h: Re-generate.
8523
25f1b008
AC
85242002-04-06 Andrew Cagney <ac131313@redhat.com>
8525
8526 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8527 declaration. Fix -Werror.
8528
59263426
DJ
85292002-04-05 Daniel Jacobowitz <drow@mvista.com>
8530
8531 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8532 * gdbarch.c: Regenerate.
8533
f5db4da3
MS
85342002-04-05 Michael Snyder <msnyder@redhat.com>
8535
80f8a6eb
MS
8536 * breakpoint.c (clear_command): Rewrite middle section to
8537 combine two loops with identical control conditions.
8538 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8539 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8540
ad3dcc5c
L
85412002-04-05 H.J. Lu (hjl@gnu.org)
8542
8543 * solib-svr4.c (bkpt_names): Add "__start".
8544
f32e7a74
AC
85452002-04-04 Andrew Cagney <ac131313@redhat.com>
8546
8547 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8548 as test for 64 bit target.
8549
8227c0ff
AC
85502002-04-05 Andrew Cagney <ac131313@redhat.com>
8551
8552 * h8500-tdep.c (h8500_write_fp): Delete function.
8553 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8554 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8555 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8557 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8558 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8559 (s390_write_fp):
8560 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8561 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8562 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8563 (d10v_write_fp): Delete function.
8564 * inferior.h (write_fp, generic_target_write_fp): Delete
8565 declarations.
8566 * regcache.c (generic_target_write_fp): Delete function.
8567 (write_fp): Delete function.
8568 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8569 * gdbarch.h, gdbarch.c: Regenerate.
8570 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8571 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8572 (sparc64_write_fp): Delete declaration.
8573 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8574 (h8500_write_fp): Delete declaration.
8575
2757dd86
AC
85762002-04-04 Andrew Cagney <ac131313@redhat.com>
8577
8578 * sparc-tdep.c (sparc64_write_fp): Delete.
8579 (sparc_push_dummy_frame): Replace write_fp call with code to store
8580 the FP directly.
8581 (sparc_gdbarch_init): Do not initialize write_fp.
8582
c69255e1
KB
85832002-04-05 Kevin Buettner <kevinb@redhat.com>
8584
8585 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8586 clause.
8587
ae767bfb
JB
85882002-03-29 Jim Blandy <jimb@redhat.com>
8589
8590 * stack.c (get_selected_block): Add new argument `addr_in_block',
8591 used to return the exact code address we used to select the block,
8592 not just the block.
8593 * blockframe.c (get_frame_block, get_current_block): Same.
8594 * frame.h (get_frame_block, get_current_block,
8595 get_selected_block): Update declarations.
8596 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8597 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8598
84d2ac95
MS
85992002-04-05 Michael Snyder <msnyder@redhat.com>
8600
8601 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8602 warning message.
8603
596aa3bf
JB
86042002-04-05 J. Brobecker <brobecker@gnat.com>
8605
8606 * utils.c (xfullpath): New function.
8607 * defs.h (xfullpath): Add declaration.
8608 * source.c (openp): Use xfullpath in place of gdb_realpath to
8609 avoid resolving the basename part of filenames when the
8610 associated file is a symbolic link. This fixes a potential
8611 inconsistency between the filenames known to GDB and the
8612 filenames it prints in the annotations.
8613 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8614 to be able to match a filename with either the real filename, or
8615 the name of any symbolic link to this file.
8616 (lookup_partial_symtab): Ditto.
8617
c02f5703
MS
86182002-04-04 Michael Snyder <msnyder@redhat.com>
8619
8620 * breakpoint.c: Add support for hardware breakpoints in overlays.
8621 (overlay_events_enabled): New state variable.
8622 (insert_breakpoints): Use overlay_events_enabled to decide
8623 whether to attempt to set a breakpoint at the overlay load addr.
8624 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8625 (remove_breakpoint): Use overlay_events_enabled to decide
8626 whether breakpoints need to be removed from overlay load addr.
8627 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8628 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8629 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8630 disable_overlay_breakpoints): Update overlay_events_enabled.
8631
5fb290d7
DJ
86322002-04-04 Daniel Jacobowitz <drow@mvista.com>
8633
8634 * dwarf2read.c (struct function_range): New.
8635 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8636 (check_cu_functions): New.
8637 (read_file_scope): Initialize global function lists.
8638 Call dwarf_decode_line after processing children.
8639 (read_func_scope): Add to global function list.
8640 (dwarf_decode_lines): Call check_cu_functions everywhere
8641 record_line is called. Call record_line with a linenumber
8642 of 0 to mark sequence ends.
8643
7b3fabf0
ML
86442002-04-04 Michal Ludvig <mludvig@suse.cz>
8645
361d1df0 8646 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8647 change sync with glibc.
8648
bce58c09
JB
86492002-04-03 Jim Blandy <jimb@redhat.com>
8650
8651 * configure.in: Call AC_C_INLINE.
8652 * configure: Regenerated.
361d1df0 8653
2fccf04a
DJ
86542002-04-01 Daniel Jacobowitz <drow@mvista.com>
8655
8656 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8657 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8658
2d1bfe2e
MK
86592002-03-31 Mark Kettenis <kettenis@gnu.org>
8660
a5941fbf
MK
8661 * NEWS: Mention gcore support on FreeBSD/i386.
8662
a90cd31d
MK
8663 * fbsd-proc.c: New file.
8664 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8665 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8666
2d1bfe2e
MK
8667 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8668 while statement.
8669
9eb6e5a1
JB
86702002-03-29 Jim Blandy <jimb@redhat.com>
8671
8672 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8673 unescaped newlines in string literals, but newer ones don't. So
8674 escape them.
8675
f02df580
MS
86762002-03-26 Michael Snyder <msnyder@redhat.com>
8677 Andrew Cagney <cagney@redhat.com>
8678
361d1df0 8679 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8680 restore file to memory.
8681 * cli/cli-dump.h: New file.
8682 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8683 * NEWS: Mention new commands.
f02df580 8684
109f874e
MS
86852002-03-28 Michael Snyder <msnyder@redhat.com>
8686
8687 * symfile.c (symbol_file_add): Move test for null symbols to later.
8688
520f6ade
AC
86892002-03-27 Andrew Cagney <ac131313@redhat.com>
8690
8691 From veksler at il.ibm.com:
8692 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8693 the xstrduped original path.
8694 Fix PR gdb/417.
8695
d4654627
MS
86962002-03-27 Michael Snyder <msnyder@redhat.com>
8697
8698 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8699 * infcmd.c (_initialize_infcmd): Ditto.
8700 * language.c (_initialize_language): Ditto.
8701 * symfile.c (_initialize_symfile): Ditto.
8702 * top.c (_init_main): Ditto.
8703 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8704
6be8bc0c
EZ
87052002-03-27 Elena Zannoni <ezannoni@redhat.com>
8706
8707 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8708 vector registers handling.
8709 (skip_prologue): Handle new AltiVec instructions. Fill in new
8710 fields of frame data.
8711 (frame_get_saved_regs): Fill in information for AltiVec registers.
8712
12af6855
JB
87132002-03-27 Jim Blandy <jimb@redhat.com>
8714
8715 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8716 a function; leave this macro here to invoke that function.
8717 (symbol_init_mangled_name): Declaration for that function.
8718 * symtab.c (symbol_init_mangled_name): New function.
8719
dc672865
AC
87202002-03-27 Andrew Cagney <ac131313@redhat.com>
8721
8722 * valarith.c: Replace strerror with safe_strerror.
8723 * tracepoint.c: Ditto.
8724 * lin-lwp.c: Ditto.
8725 * go32-nat.c: Ditto.
8726 * inflow.c: Ditto.
8727 * gnu-nat.c: Ditto.
8728
d96429cd
AS
87292002-03-27 Andreas Schwab <schwab@suse.de>
8730
8731 * event-top.c (command_line_handler): Remove useless if.
8732
7e336ba1
AJ
87332002-03-27 Andreas Jaeger <aj@suse.de>
8734
8735 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8736 comment.
8737
de220d0f
ML
87382002-03-27 Michal Ludvig <mludvig@suse.cz>
8739
8740 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8741 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8742 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8743 (x86_64_linux_dr_get_status, supply_gregset),
8744 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8745 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8746 (x86_64_register_info_table): Add.
8747 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8748 (x86_64_register_raw_size, x86_64_register_virtual_type),
8749 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8750 general x86_64_register_info_table.
8751 (i386_gdbarch_init): gdbarch_register_bytes is now set
8752 dynamicaly during initialization.
8753 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8754 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8755
0e98d0a7
DJ
87562002-03-27 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * gdbserver/server.c (main): Call target_signal_to_host_p
8759 and target_signal_to_host on signals received from the remote.
8760 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8761 target_signal_from_host on signals sent to the remote.
8762 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8763 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8764
3130066b
DJ
87652002-03-27 Daniel Jacobowitz <drow@mvista.com>
8766
8767 * signals/signals.c: Include "server.h" in gdbserver build.
8768 (target_signal_from_name): Don't use STREQ.
8769 (_initialize_signals): Likewise. Don't include function in
8770 gdbserver build.
8771
9aedf4f4
DJ
87722002-03-27 Daniel Jacobowitz <drow@mvista.com>
8773
8774 * signals.c: Moved to...
8775 * signals/signals.c: Here.
7e336ba1 8776 * Makefile (signals.o): Update.
9aedf4f4 8777
3fa41cdb
JL
87782002-03-26 Jeff Law (law@redhat.com)
8779
8780 * somread.c (som_symtab_read): Remove some commented out code and
8781 updated related comments. Do not set the minimal symbol table to
8782 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8783 in a dynamic executable.
8784 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8785 where we are unable to find the minimal symbol for the given
8786 PC value.
8787
ee677e8d
MS
87882002-03-25 Jeff Law (law@redhat.com)
8789
8790 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8791
e76e1718
ML
87922002-03-25 Michal Ludvig <mludvig@suse.cz>
8793
8794 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8795
18a642a1
AC
87962002-03-23 Andrew Cagney <ac131313@redhat.com>
8797
8798 * command.h: Update copyright.
8799 (struct cmd_list_element): Replace definition with opaque
8800 declaration.
8801 (enum cmd_types): Document that it will eventually be moved to
8802 cli/cli-decode.h
8803 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8804 (MALLOCED_REPLACEMENT): Delete macro.
8805 * Makefile.in (cli_decode_h): Add $(command_h).
8806 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8807 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8808 * completer.c: Include "cli/cli-decode.h".
8809 * maint.c: Include "cli/cli-decode.h".
8810 * cli/cli-decode.h: Include "command.h".
8811 (enum command_class): Delete.
8812 (enum cmd_types): Comment out.
8813 (enum cmd_auto_boolean): Delete.
8814 (enum var_types): Delete.
8815
b2875cc0
AC
88162002-03-23 Andrew Cagney <ac131313@redhat.com>
8817
8818 * cli/cli-decode.c: Include "gdb_assert.h".
8819 (add_set_or_show_cmd): New static function.
8820 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8821 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8822 all fields, such as func, from the set command.
8823
3b45974e
AC
88242002-03-23 Andrew Cagney <ac131313@redhat.com>
8825
8826 * MAINTAINERS (sh-elf): Change warning flag to -w.
8827
823ca731
AC
88282002-03-23 Andrew Cagney <cagney@redhat.com>
8829
8830 * defs.h (error): Add printf format attribute.
8831 * thread-db.c (thread_from_lwp): Fix error format string.
8832 * stack.c (parse_frame_specification): Ditto.
8833 * cli/cli-decode.c (undef_cmd_error): Ditto.
8834 * scm-lang.c (scm_lookup_name): Ditto.
8835 * tracepoint.c (trace_error): Ditto.
8836 * remote-utils.c (usage): Ditto.
8837 * remote.c (compare_sections_command): Ditto.
8838 Fix PR gdb/328.
8839
0e101458
AC
88402002-03-22 Andrew Cagney <ac131313@redhat.com>
8841
8842 * gdbtypes.c (append_composite_type_field): New function.
8843 (init_composite_type): New function.
8844 * gdbtypes.h (append_composite_type_field): Declare.
8845 (init_composite_type): Ditto.
8846
8e0662df
EZ
88472002-03-22 Elena Zannoni <ezannoni@redhat.com>
8848
8849 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8850 function.
8e0662df
EZ
8851 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8852 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8853 structure returning convention for SYSV ABI case, but not
8854 for GNU/Linux, FreeBSD, or NetBSD.
8855
3121eff0
DJ
88562002-03-22 Daniel Jacobowitz <drow@mvista.com>
8857
8858 * symtab.h (lookup_block_symbol): Add mangled_name argument
8859 to prototype.
8860
8861 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8862 with new mangled_name argument.
8863 * linespec.c (decode_line_1): Likewise.
8864 * valops (value_of_this): Likewise.
8865 * symtab.c (lookup_transparent_type): Likewise.
8866 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8867 (lookup_symbol): If we are given a mangled name, pass it down
8868 to lookup_symbol_aux.
8869 (lookup_block_symbol): If we are given a mangled name to check
8870 against, only return symbols which match it.
8871
349b409f
CF
88722002-03-22 Christopher Faylor <cgf@redhat.com>
8873
8874 * win32-nat.c (child_create_inferior): Check for proper shell to use
8875 here, in case the user changes it on the fly.
8876 (_initialize_inftarg): Remove shell path considerations.
8877
2a873819
EZ
88782002-03-21 Elena Zannoni <ezannoni@redhat.com>
8879
8880 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8881 for gdbarch_max_register_raw_size and max_register_virtual_size.
8882 Adjust copyright year.
8883
a1b9830c
DJ
88842002-03-21 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8887 in a function to cover the entire beginning of the function
8888 as well if it does not already.
8889
8b5790f2
TR
88902002-03-21 Tom Rix <trix@redhat.com>
8891
8892 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8893 (rs6000_ptrace64): Renamed from ptrace64.
8894
bdbe5747
MH
88952002-03-20 Martin M. Hunt <hunt@redhat.com>
8896
8897 * gdbserver/remote-utils.c (remote_open): Don't call
8898 getprotobyname, we're all using TCP here so just use
8899 IPPROTO_TCP.
7e336ba1 8900 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8901
89022002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8903
bdbe5747
MH
8904 * regcache.c (_initialize_regcache): No need to call
8905 build_regcache() at this time; it gets called whenever
8906 the gdbarch changes.
8907
7781cd62
DB
89082002-03-20 David O'Brien <obrien@FreeBSD.org>
8909
8910 * sparc-nat.c: Include sys/param.h where possible.
8911
f65ca430
DJ
89122002-03-20 Daniel Jacobowitz <drow@mvista.com>
8913
8914 Fix PR gdb/422.
8915 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8916 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8917 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8918 complex types.
8919 * stabsread.c (rs6000_builtin_type): Likewise.
8920 (read_sun_floating_type): Likewise.
8921
0c867556
PS
89222002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8923
8924 * stabsread.c (read_member_functions): Remove skip code for duplicate
8925 constructor/destructor methods. Use standard parsing for these
8926 methods and just do not chain them to the list of methods after
8927 parsing.
8928
12b9c64f
AO
89292002-03-19 Alexandre Oliva <aoliva@redhat.com>
8930
8931 * coffread.c: Remove redundant static declarations. Replace
8932 occurrences of `PTR' with `void *'.
8933 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8934 * top.h (quit_cover): Likewise.
8935 * defs.h (catch_errors): Likewise.
8936
349c5d5f
AC
89372002-03-18 Andrew Cagney <ac131313@redhat.com>
8938
8939 * defs.h (XMALLOC): Define.
8940 * gdb-events.sh (XMALLOC): Delete macro.
8941 * gdb-events.c, gdb-events.h: Regenerate.
8942 * gdbarch.sh (XMALLOC): Delete macro.
8943 * gdbarch.c: Regenerate.
8944 * serial.c (XMALLOC): Delete macro.
8945 * ui-file.c (XMALLOC): Ditto.
8946 * ser-unix.h (XMALLOC): Ditto.
8947 * sh-tdep.c (XMALLOC): Ditto.
8948 * ui-out.c (XMALLOC): Ditto.
8949 * utils.c (XMALLOC): Ditto.
8950 * i386-tdep.c (XMALLOC): Ditto.
8951 * gdb-events.c (XMALLOC): Ditto.
8952 * d10v-tdep.c (XMALLOC): Ditto.
8953 * cli-out.c (XMALLOC): Ditto.
8954
8955 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8956 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8957 * ui-file.c, ui-out.c: Ditto.
8958
7d0766f3
AC
89592002-03-18 Andrew Cagney <ac131313@redhat.com>
8960
8961 * command.h (struct cmd_list_element): Add field context.
8962 (set_cmd_context, get_cmd_context): Declare.
8963 * cli/cli-decode.h: Ditto.
8964 * cli/cli-decode.c (get_cmd_context): New function.
8965 (set_cmd_context): New function.
8966 (add_cmd): Initialize context.
8967 Part of fixing PR gdb/145 and PR gdb/146.
8968
5913bcb0
AC
89692002-03-17 Andrew Cagney <ac131313@redhat.com>
8970
1868c04e
AC
8971 * cli/cli-decode.c (cmd_type): New function.
8972 * command.h (cmd_type): Declare.
8973 * infrun.c (set_schedlock_func): Call function cmd_type.
8974 * kod.c (kod_set_os): Call cmd_type.
8975 * cris-tdep.c (cris_version_update): Use function cmd_type.
8976 (cris_mode_update, cris_abi_update): Ditto.
8977
5913bcb0
AC
8978 * command.h: (execute_cmd_post_hook): Declare.
8979 (execute_cmd_pre_hook): Declare.
8980 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8981 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8982 functions. Execute pre/post hook while ensuring that afterwords
8983 hook_in is cleared.
8984 * top.c (execute_command): Use execute_cmd_post_hook, and
8985 execute_cmd_pre_hook to execute pre/post commands.
8986 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8987 hook_stop_stub.
8988 (hook_stop_stub): Call execute_cmd_pre_hook.
8989
b51450c9
AC
89902002-03-17 Andrew Cagney <ac131313@redhat.com>
8991
8992 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8993 set'' and this leads to a core dump. Move xstrdup of
8994 operating_system to after check that it is not NULL.
8995
f66c9f11
AC
89962002-03-17 Andrew Cagney <ac131313@redhat.com>
8997
8e694ecf
AC
8998 * kod.c (kod_set_os): Remove unnecessary check that
8999 ``command->type'' is set_cmd.
9000
f66c9f11
AC
9001 * valprint.c (set_input_radix): Use input_radix.
9002 (set_output_radix): Use output_radix.
9003 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9004 isn't reverted.
9005
9d01611c
AC
90062002-03-16 Andrew Cagney <ac131313@redhat.com>
9007
9008 * value.h (struct value): Delete field ``substring_addr''. Change
9009 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9010 force_core_addr_align and force_pointer_aligh.
9011
9012 * value.h (struct value): Fix typo in above change.
9d01611c 9013
4156bb53
PS
90142002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9015
9016 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9017 to fix internal_error from ``maintenance print architecture''.
9018
0e5e3ea6
PS
90192002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9020
9021 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9022 for gcc versions after gcc-2.8.1.
9023
9b013045
PS
90242002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9025
9026 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9027 for method resolution. Restore adjustment of ``this'' pointer after
9028 calling value_struct_elt, which was accidentally removed during the
9029 HP merge.
9030
376c9600
AC
90312002-03-15 Andrew Cagney <ac131313@redhat.com>
9032
9033 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9034 value_of_register.
9035 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9036 get_saved_register.
9037 * value.h (value_of_register): Update.
9038
a4db0f07
RH
90392002-03-14 Richard Henderson <rth@redhat.com>
9040
9041 * configure.in: Detect declaration for canonicalize_file_name.
9042 * utils.c (canonicalize_file_name): Declare, if needed.
9043 (gdb_realpath): Prefer realpath if available and usable.
9044 * config.in, configure: Rebuild.
9045
96383835
RH
90462002-03-14 Richard Henderson <rth@redhat.com>
9047
9048 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9049 a constant array bound.
9050
9051 * MAINTAINERS: Add myself to write-after-approval.
9052
75245b24
MS
90532002-03-14 Michael Snyder <msnyder@redhat.com>
9054
9055 * symfile.c (syms_from_objfile): Return immediately if no syms.
9056 (symbol_file_add): Return immediately if no syms.
9057 (find_sym_fns): Return immediately if no syms.
9058
e641a1ca
ML
90592002-03-13 Michal Ludvig <mludvig@suse.cz>
9060
9061 * gdbserver/remote-util.c (remote_open): Print remote-side's
9062 IP address when remote debugging over the network.
7e336ba1 9063
df08bfec
DB
90642002-03-12 David O'Brien <obrien@FreeBSD.org>
9065
9066 * config/sparc/fbsd.mh: Fix copyright.
9067 * config/sparc/fbsd.mt: Likewise.
9068
9a57864f
RE
90692002-03-11 Richard Earnshaw <rearnsha@arm.com>
9070
9071 * MAINTAINERS: Fix typo in name of gdb warnings option.
9072 (x86-64): Fix formating so that this can be parsed by awk.
9073
dd7bf85e
DJ
90742002-03-10 Daniel Jacobowitz <drow@mvista.com>
9075
9076 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9077 * defs.h: Include "gdb/signals.h".
9078 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9079
33a0a2ac
ML
90802002-03-10 Michal Ludvig <mludvig@suse.cz>
9081
9082 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9083 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9084 from x86-64-tdep.h
9085
dd824b04
DJ
90862002-03-10 Daniel Jacobowitz <drow@mvista.com>
9087 Don Howard <dhoward@redhat.com>
9088
9089 * mips-tdep.c (ST0_FR): Define.
9090 (mips2_fp_compat): New function, temporarily disabled.
9091 (mips_read_fp_register_single): New function.
9092 (mips_read_fp_register_double): New function.
9093 (mips_print_register): Use them.
9094 (do_fp_register_row): Likewise.
9095
6a41ff59
AC
90962002-03-09 Andrew Cagney <ac131313@redhat.com>
9097
9098 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9099 approval''.
9100
4ea09c10
PS
91012002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9102
9103 * stabsread.c (read_member_functions): Fix is_stub test for
9104 static member functions, improve comment.
9105
6ccc741d
RE
91062002-03-07 Richard Earnshaw <rearnsha@arm.com>
9107
9108 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9109 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9110 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9111 commands that set boolean values.
9112 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9113 (arm_rdi_resume): Always initialize PC.
9114 (arm_rdi_open): Don't use rslt as a boolean.
9115 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9116 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9117 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9118 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9119
438013df
AO
91202002-03-06 Alexandre Oliva <aoliva@redhat.com>
9121
9122 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9123 * configure: Rebuilt.
9124
70ed8774
SC
91252002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9126
9127 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9128 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9129
5ba2abeb
AC
91302002-03-06 Andrew Cagney <ac131313@redhat.com>
9131
9132 * cli/cli-decode.c (set_cmd_completer): New function.
9133 * command.h (set_cmd_completer): Declare.
9134 * cli/cli-decode.h (set_cmd_completer): Ditto.
9135
9136 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9137 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9138 * win32-nat.c (_initialize_inftarg): Ditto.
9139 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9140 * proc-api.c (_initialize_proc_api): Ditto.
9141 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9142 * source.c (_initialize_source): Ditto.
9143 * exec.c (_initialize_exec): Ditto.
9144 * solib.c (_initialize_solib): Ditto.
9145 * top.c (init_main): Ditto.
9146 * tracepoint.c (_initialize_tracepoint): Ditto.
9147 * symfile.c (_initialize_symfile): Ditto.
9148 * printcmd.c (_initialize_printcmd): Ditto.
9149 * infcmd.c (_initialize_infcmd): Ditto.
9150 * corefile.c (_initialize_core): Ditto.
9151
f779ca99
AC
91522002-03-05 Andrew Cagney <ac131313@redhat.com>
9153
9154 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9155
01a3934b
AC
91562002-03-05 Andrew Cagney <ac131313@redhat.com>
9157
9158 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9159
37057839
AC
91602002-03-05 Andrew Cagney <ac131313@redhat.com>
9161
9162 * NEWS: Update headings, 5.2 has branched.
9163
c6ecbae5
DJ
91642002-03-04 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9167 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9168 (register_addr, REGISTER_RAW_SIZE): Likewise.
9169 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9170 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9171
e9f30c21
ML
91722002-03-03 Michal Ludvig <mludvig@suse.cz>
9173
9174 * MAINTAINERS (x86-64): Add myself.
9175 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9176 changed value_ptr -> struct value *
9177
54394ac3
DB
91782002-03-01 David O'Brien <obrien@FreeBSD.org>
9179
9180 * configure.host (sparc64-*-freebsd): Add.
9181 * configure.tgt: Likewise.
9182 * config/sparc/fbsd.mh: New file.
9183 * config/sparc/fbsd.mt: Likewise.
9184 * config/sparc/nm-fbsd.h: Likewise.
9185 * config/sparc/tm-fbsd.h: Likewise.
9186
bfe95955
DJ
91872002-03-01 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9190 regformats/reg-s390x.dat.
9191
f33c6cbf
AC
91922002-03-01 Andrew Cagney <ac131313@redhat.com>
9193
9194 * utils.c: Add FIXME explaining true/false problem.
9195
5ecaa7dd
AC
91962002-02-28 Andrew Cagney <ac131313@redhat.com>
9197
9198 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9199
2a251cc2
MC
92002002-02-28 Michael Chastain <mec@shout.net>
9201
9202 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9203
6a8031a3 92042002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9205
9206 * gdbserver/linux-s390-low.c: New file.
9207 * regformats/reg-s390.dat: New file.
9208 * regformats/reg-s390x.dat: New file.
9209 * gdbserver/configure.srv: Add S/390.
9210 * gdbserver/Makefile.in: Add S/390.
9211 * configure.tgt: Enable gdbserver for S/390.
9212
ac469903
EZ
92132002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9214
9215 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9216 first line of the doc string for "info dos", except at the end of
9217 the sentence, since the short help stops at the first period.
9218
985cb1a3
JM
92192002-02-28 Jason Merrill <jason@redhat.com>
9220
9221 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9222
c570663e
FF
92232002-02-27 Fred Fish <fnf@redhat.com>
9224
9225 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9226 comment (dumy -> dummy).
9227
43630227
PS
92282002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9229
9230 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9231
b84911e8
RB
92322002-02-27 Rodney Brown <rbrown64@csc.com.au>
9233
9234 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9235
58caa3dc
DJ
92362002-02-27 Daniel Jacobowitz <drow@mvista.com>
9237
9238 * gdbserver/acconfig.h: New file.
9239 * gdbserver/i387-fp.c: New file.
9240 * gdbserver/i387-fp.h: New file.
9241 * gdbserver/linux-x86-64.c: New file.
9242 * regformats/reg-x86-64.dat: New file.
9243 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9244 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9245 * gdbserver/configure.in: Add support for regsets.
9246 * gdbserver/config.in: Regenerate.
9247 * gdbserver/configure: Regenerate.
9248 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9249 * gdbserver/linux-low.h: New file.
9250 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9251 for regsets.
9252 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9253 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9254 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9255 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9256 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9257 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9258 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9259 "i387-fp.h". Add PTRACE_GETREGS and friends.
9260 * gdbserver/regcache.c (supply_register): New function.
9261 (supply_register_by_name): New function.
9262 (collect_register): New function.
9263 (collect_register_by_name): New function.
9264
93652174
DJ
92652002-02-27 Daniel Jacobowitz <drow@mvista.com>
9266
9267 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9268 (config.status): Add configure.srv dependency.
9269 (server_h): Add config.h dependency.
9270
a02e4a61
DJ
92712002-02-27 Daniel Jacobowitz <drow@mvista.com>
9272
9273 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9274 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9275 * gdbserver/configure.srv: Change i386-*-linux* to use
9276 reg-i386-linux.o.
9277
ce0eebec
AC
92782002-02-26 Andrew Cagney <ac131313@redhat.com>
9279
9280 * x86-64-tdep.c: Re-indent. Update copyright date.
9281
82dbc5f7
AC
92822002-02-26 Andrew Cagney <ac131313@redhat.com>
9283
9284 From Michal Ludvig <mludvig@suse.cz>:
9285 * x86-64-tdep.c (value.h): Delete.
9286 (gdb_assert.h): Include.
9287 (x86_64_register_convert_to_virtual,
9288 x86_64_register_convert_to_raw ): Add check which lets only
9289 floating-point values to be converted.
9290 (value_push): Delete.
9291 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9292 (i386_gdbarch_init): Number of register_bytes fixed.
9293
e4621584
AC
92942002-02-26 Andrew Cagney <ac131313@redhat.com>
9295
9296 * MAINTAINERS: Add x86-64 target.
9297
81a9a963
AC
92982002-02-26 Andrew Cagney <ac131313@redhat.com>
9299
9300 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9301 * osfsolib.c (solib_map_sections): Ditto.
9302 * irix5-nat.c (solib_map_sections): Ditto.
9303 * corelow.c (gdb_check_format): Ditto.
9304 * symfile.c (symfile_bfd_open): Ditto.
9305 * solib.c (solib_map_sections): Ditto.
9306 Fix PR gdb/354.
7e336ba1 9307
0f017ab9
AC
93082002-02-26 Andrew Cagney <ac131313@redhat.com>
9309
9310 * remote.c (_initialize_remote): By default, disable ``e'' and
9311 ``E'' step out-of-range packets.
9312
75738c29
AS
93132002-02-26 Andreas Schwab <schwab@suse.de>
9314
9315 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9316 m68k_linux_frame_saved_pc.
9317 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9318 in_sigtramp.
9319 (SIGCONTEXT_PC_OFFSET): Remove.
9320 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9321 m68k_linux_sigtramp_saved_pc): New functions.
9322 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9323 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9324 (UCONTEXT_PC_OFFSET): Define.
9325 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9326 non-RT and RT signal trampolines.
9327
7e8ed687
RE
93282002-02-26 Richard Earnshaw <rearnsha@arm.com>
9329
9330 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9331 (TARGET_NBPG, STACK_END_ADDR): Delete
9332 (VARIABLES_INSIDE_BLOCK): Delete.
9333
6972bc8b
AC
93342002-02-25 Andrew Cagney <ac131313@redhat.com>
9335
9336 * utils.c (perror_with_name): Make string parameter constant.
9337 (print_sys_errmsg): Ditto.
9338 (query): Ditto.
9339 * defs.h (perror_with_name): Update.
9340 (print_sys_errmsg): Update.
9341 (query): Update.
9342
aa32f823
DJ
93432002-02-25 Daniel Jacobowitz <drow@mvista.com>
9344
9345 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9346 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9347
19caaa45
PS
93482002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9349
9350 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9351 if it already matches the current architecture from the exec file.
9352 Include arch-utils.h for gdbarch_info_init prototype.
9353 * Makefile.in (rs6000-nat.o): Update dependencies.
9354
d951901f
EZ
93552002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9356
9357 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9358 list of exported variables.
9359
7ea81414
DJ
93602002-02-24 Daniel Jacobowitz <drow@mvista.com>
9361
9362 * gdbserver/configure.srv: New file.
9363 * gdbserver/configure.in: Use configure.srv instead
9364 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9365 from it.
9366 * gdbserver/configure: Regenerated.
9367 * gdbserver/terminal.h: New file.
9368 * gdbserver/Makefile.in: Update for configure changes. Remove
9369 more unneeded include paths.
9370
080fe24b
AC
93712002-02-24 Andrew Cagney <ac131313@redhat.com>
9372
9373 From wiz at danbala:
9374 * config/sparc/tm-sp64.h: Fix grammar and typos.
9375 Fix PR gdb/287.
9376
8605d56e
AC
93772002-02-24 Andrew Cagney <ac131313@redhat.com>
9378
9379 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9380 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9381 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9382 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9383 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9384 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9385 * s390-tdep.c: Ditto.
92362027
AC
9386 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9387 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9388 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9389 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9390 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9391 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9392 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9393 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9394 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9395 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9396 Fix PR gdb/378.
7e336ba1 9397
8ed32cc0
AC
93982002-02-23 Andrew Cagney <ac131313@redhat.com>
9399
a3007b6f
AC
9400 * lin-thread.c: Delete file.
9401 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9402 to gdb_proc_service.h.
9403 * configure: Re-generate.
9404
50a9e2f1
AC
9405 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9406 * serial.c (serial_open): Delete check for "ocd".
9407 Fix PR gdb/349.
9408
8b6e7932
AC
9409 * Makefile.in (linux-thread.o): Delete target.
9410 * linux-thread.c: Delete file.
9411
d155c46b
AC
9412 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9413 renamed SH files to be consistent.
9414
8ed32cc0
AC
9415 * symtab.c (sort_search_symbols): Use xfree.
9416
0e18d038
RE
94172002-02-23 Richard Earnshaw <rearnsha@arm.com>
9418
9419 * arm-linux-tdep.c (arm_linux_init_abi): Register
9420 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9421 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9422 definition with undef, since we don't want the sysvr4 definition.
9423 (SKIP_TRAMPOLINE_CODE): Likewise.
9424
27aac7ff
AC
94252002-02-23 Andrew Cagney <ac131313@redhat.com>
9426
9427 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9428
9429 * configure.in: (AC_CHECK_FUNCS) Added test for
9430 canonicalize_file_name Regenerated.
9431 * config.in, configure: Regenerated.
9432 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9433 defined use canonicalize_file_name.
7e336ba1 9434
65a6e0ee
MC
94352002-02-23 Michael Chastain <mec@shout.net>
9436
9437 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9438
47b95330
AC
94392002-02-23 Andrew Cagney <ac131313@redhat.com>
9440
9441 * README: Remove references to cygnus.com.
9442 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9443 dot com'' form. Remove references to cygnus.com and sourceware.
9444
696f451b
AC
94452002-02-23 Andrew Cagney <ac131313@redhat.com>
9446
9447 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9448 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9449 1003.1-2001 no longer allows "head -1".
9450 * gdb/Makefile.in (version.c): Likewise.
9451 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9452 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9453 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9454
bbaca940
AC
94552002-02-23 Andrew Cagney <ac131313@redhat.com>
9456
9457 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9458 * command.h (cmd_cfunc_eq): Declare.
9459 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9460
9461 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9462 ``struct cmd_list_element *''.
9463 * cli/cli-cmds.c (is_complete_command): Update. Use
9464 cmd_cfunc_eq.
9465 * top.c (execute_command): Pass the command to
9466 is_complete_command.
9467 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9468
b8b8b047
AC
94692002-02-23 Andrew Cagney <ac131313@redhat.com>
9470
9471 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9472 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9473 architecture defines.
9474 * s390-tdep.c (s390_gdbarch_init): Likewise.
9475
19d3fc80
RE
94762002-02-23 Richard Earnshaw <rearnsha@arm.com>
9477
9478 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9479 (arm_linux_push_arguments): Likewise.
9480 (arm_linux_init_abi): Register them. Also register linux-specific
9481 call_dummy_words.
9482 (find_minsym_and_objfile): Use strcmp, not STREQ.
9483 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9484 (arm_linux_call_dummy_words): Delete declaration.
9485 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9486 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9487 declarations.
9488 (LOWEST_PC): Delete.
9489
3ab13650
PS
94902002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9491
9492 * maint.c (print_section_info): Do not prepend `0x' to filepos
9493 output, it will be handled by local_hex_string_custom.
9494
19d3fc80 94952002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9496
9497 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9498 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9499 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9500
d85a5daf
JB
95012002-02-22 Jim Blandy <jimb@redhat.com>
9502
9503 Indicate that the bcache functions don't change the strings
9504 they're passed.
9505 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9506 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9507
eeb25b8a
PM
95082002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9509
9510 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9511
6badb179
CF
95122002-02-21 Christopher Faylor <cgf@redhat.com>
9513
9514 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9515 find the complete path to a loaded DLL.
9516
e8717518
FF
95172002-02-21 Fred Fish <fnf@redhat.com>
9518
9519 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9520 that marks the end of the range of a function, enter a line number
9521 entry that has a line number of zero and a PC offset that matches
9522 the end of the function. This starts a range of PC's for which no
9523 line number information is known.
9524 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9525 PC's for which no line number info is found (line number is zero)
9526 then we didn't find any valid line information.
9527 * symtab.h: Document use of zero line number entry.
9528
9abe5450
EZ
95292002-02-21 Elena Zannoni <ezannoni@redhat.com>
9530
9531 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9532 (have_ptrace_getvrregs): Define for run time checks.
9533 (gdb_vrregset_t): New type for Altivec register handling.
9534 (fetch_register, store_register): Fetch/store altivec register
9535 when needed.
9536 (fetch_altivec_register, store_altivec_register): New functions.
9537 (supply_vrregset, fill_vrregset): New functions.
9538 (fetch_altivec_registers, store_altivec_registers): New functions.
9539 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9540 registers as well.
9541
aaa38bb5
AJ
95422002-02-21 Jiri Smid <smid@suse.cz>
9543
9544 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9545
b34db576
RE
95462002-02-21 Richard Earnshaw <rearnsha@arm.com>
9547
9548 * Makefile.in (armnbsd-nat.o): Update dependencies.
9549 * armnbsd-nat.c (supply_gregset): New function. Common code to
9550 supply the integer register set.
9551 (supply_fparegset): New function. Similar for FPA registers.
9552 (fetch_regs, fetch_fp_regs): Use them.
9553 (fetch_core_registers): Likewise.
9554 (fetch_elfcore_registers): New function.
9555 (arm_netbsd_elfcore_fns): New core-file type specification.
9556 (_initialize_arm_netbsd_nat): Register it.
9557
3e56fc4b
RE
95582002-02-21 Richard Earnshaw <rearnsha@arm.com>
9559
9560 * armnbsd-nat.c: Include gdbcore.h.
9561 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9562 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9563 'void' to declaration, to shut up ARI.
9564 (fetch_core_registers): Make static. Rewrite using supply_register.
9565 (arm_netbsd_core_fns): New core-file type specification.
9566 (_initialize_arm_netbsd_nat): New function.
9567
097f6b0b
CF
95682002-02-21 Christopher Faylor <cgf@redhat.com>
9569
9570 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9571 value.
9572
c914e0cc
CF
95732002-02-20 Christopher Faylor <cgf@redhat.com>
9574
9575 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9576 fails.
9577
385fa495
DJ
95782002-02-20 Daniel Jacobowitz <drow@mvista.com>
9579
9580 * jv-exp.y (parse_number): Change type of implicit longs
9581 to builtin_type_uint64.
9582
e5f1222d
DJ
95832002-02-20 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9586 to be an integer instead of a `union wait'.
9587
75c9abc6
DJ
95882002-02-20 Daniel Jacobowitz <drow@mvista.com>
9589
9590 * mips-linux-nat.c: Call the operating system GNU/Linux.
9591 * mips-linux-tdep.c: Likewise.
9592 * mips-tdep.c: Likewise.
9593
551792a5
DJ
95942002-02-20 Daniel Jacobowitz <drow@mvista.com>
9595
9596 Fix PR gdb/265.
9597 * jv-exp.y (parse_number): Handle 64-bit integers.
9598
ee6e2b82
DJ
95992002-02-20 Daniel Jacobowitz <drow@mvista.com>
9600
9601 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9602 AC_STDC_HEADERS to AC_HEADER_STDC.
9603 * gdbserver/configure: Regenerated.
9604
a48442a0
RE
96052002-02-20 Richard Earnshaw <rearnsha@arm.com>
9606
9607 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9608 is defined.
9609 * sparc-tdep.c (get_longjmp_target): Likewise.
9610
fe419ffc
RE
96112002-02-20 Richard Earnshaw <rearnsha@arm.com>
9612
9613 * News: Add news about ARM and Multi-arch. Mention the new target
9614 arm*-*-netbsd*.
9615
5832ed7e
JB
96162002-02-19 Jim Blandy <jimb@redhat.com>
9617
9618 * stabsread.c (error_type_complaint): Improve error message.
9619
84563040
DJ
96202002-02-19 Daniel Jacobowitz <drow@mvista.com>
9621
9622 * gdbserver/README: Update documentation.
9623 * gdbserver/configure.in: Update configury to match documentation.
9624 * gdbserver/Makefile.in: Likewise.
9625 * gdbserver/configure: Regenerated.
9626 * gdbserver/aclocal.m4: New file, generated by aclocal.
9627 * gdbserver/config.in: New file, generated by autoheader.
9628
375fd65b
RE
96292002-02-19 Richard Earnshaw <rearnsha@arm.com>
9630
9631 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9632 armnbsd-nat.c.
9633
08216dd7
RE
96342002-02-19 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * arm-tdep.h (enum arm_float_model): New enum.
9637 (struct gdbarch_tdep): Add fp_model.
9638 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9639 up floating-point conversions until we know the floating-point model
9640 in use by the inferior. Don't complain about being unable to
9641 determine the ABI of the inferior when we don't have one.
9642 (arm_extract_return_value): Support different floating-point models.
9643 (arm_store_return_value): Likewise.
aaa38bb5 9644 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9645 ARM_FLOAT_SOFT.
9646 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9647
65d6d66a
PS
96482002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9649
9650 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9651 of ``current_gdbarch''.
9652
47221191
RE
96532002-02-19 Richard Earnshaw <rearnsha@arm.com>
9654
9655 * armnbsd-nat.c : ANSIfy all function declarations.
9656 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9657 (fetch_inferior_registers): Re-implement in terms of above.
9658 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9659 (store_inferior_registers): Re-implement in terms of above.
9660
fdf39c9a
RE
96612002-02-19 Richard Earnshaw <rearnsha@arm.com>
9662
aaa38bb5 9663 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9664 kernel.
9665 * arm-linux-tdep.c: Likewise.
9666 * config/arm/tm-linux.h: Likewise.
9667
93247f88
RE
96682002-02-19 Richard Earnshaw <rearnsha@arm.com>
9669
9670 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9671 * config/arm/nbsd.mt (TM_FILE): Delete.
9672 * config/arm/tm-nbsd.h: Delete.
9673
d7b486e7
RE
96742002-02-19 Richard Earnshaw <rearnsha@arm.com>
9675
9676 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9677 Initialize CALL_DUMMY_LENGTH.
9678
41d39a95
RE
96792002-02-19 Richard Earnshaw <rearnsha@arm.com>
9680
9681 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9682 function.
9683 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9684 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9685 defines one thing and that is incorrect for this port.
9686 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9687
e1195560
PM
96882002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9689
9690 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9691
c1748f97
PM
96922002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9693
9694 * win32-nat.c (display_selector): New function. Displays information
9695 about the information returned by GetThreadSelectorEntry API function.
9696 (display_selectors): New function. Displays the infomation of
9697 the selector given as argument, or of CS, DS ans FS selectors
9698 if no argument is given.
9699 ( _initialize_inftarg): Add "w32" as info prefix command.
9700 Add "info w32 selector" as command calling display_selectors.
9701
e41e6bbf
PM
97022002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9703
9704 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9705 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9706 if not defined.
9707
0d3a9f48
RE
97082002-02-18 Richard Earnshaw <rearnsha@arm.com>
9709
9710 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9711
3fb4b924
RE
97122002-02-18 Richard Earnshaw <rearnsha@arm.com>
9713
9714 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9715 (arm_fix_call_dummy): Call it.
9716 (arm_call_dummy_breakpoint_offset): Delete.
9717 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9718 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9719
7f55af32
AC
97202002-02-18 Andrew Cagney <ac131313@redhat.com>
9721
9722 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9723 Default to func_frame_chain_valid.
9724 * gdbarch.h, gdbarch.c: Re-generate.
9725 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9726
05f13b9c
EZ
97272002-02-18 Elena Zannoni <ezannoni@redhat.com>
9728
9729 * ppc-linux-nat.c: Update copyright.
9730 (fetch_register, store_register): Add tid parameter, don't compute
9731 tid here.
9732 (fetch_ppc_registers, store_ppc_registers): Add tid
9733 parameter. Pass it along to callees.
9734 (fetch_inferior_registers, store_inferior_registers): Compute tid
9735 here, and pass it to calleed functions.
9736 (fill_gregset, supply_fpregset): Clean up formatting.
9737
d7afb4c9
RE
97382002-02-18 Richard Earnshaw <rearnsha@arm.com>
9739
9740 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9741 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9742
9df628e0
RE
97432002-02-18 Richard Earnshaw <rearnsha@arm.com>
9744
9745 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9746 * gdbarch.c gdbarch.h: Regenerate.
9747 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9748 function.
9749 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9750 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9751 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9752
9753 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9754 * arm-tdep.c (arm_get_longjmp_target): New function.
9755 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9756 this to a positive value register arm_get_longjmp_target as the
9757 longjmp handler.
9758 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9759 (arm_linux_init_abi): Set up longjmp description in tdep.
9760 * armnbsd-nat.c (get_longjmp_target): Delete.
9761 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9762 description in tdep.
9763 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9764 (get_longjmp_target): Delete declaration.
9765 (GET_LONGJMP_TARGET): Delete.
9766 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9767 (GET_LONGJMP_TARGET): Delete.
9768
57bc8964
KB
97692002-02-17 Kevin Buettner <kevinb@redhat.com>
9770
9771 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9772 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9773 of ``current_gdbarch''.
9774
83d31a92
TT
97752002-02-17 Tom Tromey <tromey@redhat.com>
9776
9777 * cli/cli-cmds.c (compare_strings): New function.
9778 (complete_command): Only print each unique item once.
9779 * completer.h (complete_line): Declare.
9780 * completer.c (complete_line): New function.
9781 (line_completion_function): Use it.
9782
17ef5d92
AC
97832002-02-16 Andrew Cagney <ac131313@redhat.com>
9784
9785 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9786 * gdbarch.h, gdbarch.c: Re-generate.
9787
491b8946
DJ
97882002-02-16 Daniel Jacobowitz <drow@mvista.com>
9789
9790 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9791
97922002-02-16 Daniel Jacobowitz <drow@mvista.com>
9793
9794 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9795 * valops.c (value_arg_coerce): Don't take the address of a reference
9796 to convert an argument to a reference.
9797
dfe7f3ac
CF
97982002-02-15 Christopher Faylor <cgf@redhat.com>
9799
9800 * win32-nat.c (get_image_name): New function.
9801 (handle_load_dll): Use get_image_name function.
9802 (get_child_debug_event): Avoid registering debug events until possibly
9803 execed process is started.
9804 (child_create_inferior): Allow invocation via shell so that command
9805 line redirection, etc. works ok.
9806 (_initialize_inftarg): Add new command: "set shell" to control whether
9807 a shell is used to start a process.
9808
1d33e73a
DJ
98092002-02-15 Daniel Jacobowitz <drow@mvista.com>
9810
9811 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9812 instead of find_register_by_number.
9813 (cannot_store_register): Likewise.
9814
48cd0caa
PM
98152002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9816
aaa38bb5 9817 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9818 fprintf_unfiltered (gdb_stderr, ...).
9819
8656e7d8
DJ
98202002-02-15 Daniel Jacobowitz <drow@mvista.com>
9821
9822 * gdbserver/gdbserver.1: Document --attach.
9823
66e810cd
RE
98242002-02-15 Richard Earnshaw <rearnsha@arm.com>
9825
9826 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9827 descriptions.
9828 * arm-tdep.c (arm_default_arm_le_breakpoint)
9829 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9830 (arm_default_thumb_be_breakpoint): New. Initialize them from
9831 traditional breakpoint defines.
9832 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9833 (arm_gdbarch_init): Initialize new breakpoint variables.
9834 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9835 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9836 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9837 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9838 code out to ...
9839 (arm_netbsd_init_abi_common): ... here; new function.
9840 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9841 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9842 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9843 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9844
97e03143
RE
98452002-02-15 Richard Earnshaw <rearnsha@arm.com>
9846
9847 * arm-tdep.h (enum arm_abi): New enum.
9848 (struct gdbarch_tdep): New structure.
9849 (LOWEST_PC): Provide a default.
9850 (arm_gdbarch_register_os_abi): Declare new function.
9851 * arm-tdep.c (arm_abi_names): New array.
9852 (process_note_abi_tag_sections): New function.
9853 (get_elfosabi): New function.
9854 (arm_gdbarch_register_os_abi): New function.
9855 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9856 support for that ABI has been built in, then call the appropriate
9857 configuration routine. Use gdbarch_num_regs() to get the number
9858 of registers.
9859 (arm_dump_tdep): New function.
9860 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9861 place-holder functions.
9862 (_initialize_arm_tdep): Register them.
9863 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9864
9865 * armnbsd-tdep.c: New file.
9866 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9867 * config/arm/nbsd.mt (TDEPFILES): Add it.
9868 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9869
9870 * armnbsd-nat.c: Include regcache.h.
9871 * Makefile.in (armnbsd-nat.o): Update dependency list.
9872
9873 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9874
ad68be46
DJ
98752002-02-14 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * gdbserver/Makefile.in: Fix typos in target rules.
9878
003d6d1d
DJ
98792002-02-14 Daniel Jacobowitz <drow@mvista.com>
9880
aaa38bb5 9881 Fix part of PR gdb/267.
003d6d1d
DJ
9882 * linespec.c (find_methods): Handle constructors specially for now.
9883
6b230f1b
CV
98842002-02-14 Corinna Vinschen <vinschen@redhat.com>
9885
9886 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9887 handling.
9888 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9889 standard_coerce_float_to_double().
9890
1ea98d12
CF
98912002-02-14 Christopher Faylor <cgf@redhat.com>
9892
9893 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9894 GDBINIT_FILENAME.
9895
dd47e6fd
EZ
98962002-02-14 Elena Zannoni <ezannoni@redhat.com>
9897
9898 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9899 find_variant_by_name, because it confuses the multiarch
9900 framework. Return NULL if there isn't an architecture with the
9901 user supplied name, instead of forcing a different one without
9902 recording the change with the multiarch machinery.
9903 (find_variant_by_name): Delete.
9904
d7e39b9e
PS
99052002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9906
9907 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9908 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9909
76e42a4f
MH
99102002-02-13 Martin M. Hunt <hunt@redhat.com>
9911
aaa38bb5 9912 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9913 print_frame_info_listing_hook, set current_source_symtab.
9914
0a30fbc4
DJ
99152002-02-14 Daniel Jacobowitz <drow@mvista.com>
9916
9917 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9918 and remove unused $(INCLUDE_DIR).
9919 Add regcache.c to OBS.
9920 Add generated register protocol files to clean target.
9921 Update dependencies for new objects, obsolete old target code.
9922
9923 * gdbserver/linux-low.c: Remove all platform-specific code to
9924 new files. Remove various dead code. Update to use regcache
9925 functionality.
9926 * gdbserver/remote-utils.c (fromhex): Add return statement
9927 to quiet warning.
9928 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9929 constant.
9930 (input_interrupt): Add integer parameter to match prototype
9931 of a signal handler.
9932 (outreg): Use register_data ().
9933 (prepare_resume_reply): Use gdbserver_expedite_regs.
9934 * gdbserver/server.c (main): Dynamically allocate own_buf because
9935 PBUFSIZ is no longer constant. Use registers_to_string () and
9936 registers_from_string ().
9937 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9938 for error (), fatal (), and warning (). Update definition of
9939 PBUFSIZ to use regcache functionality. Add include guard.
9940 * gdbserver/utils.c (fatal): Add missing ``const''.
9941 (warning): New function.
9942
9943 * regformats/regdat.sh: Include "regcache.h" in generated files.
9944 Provide init_registers () function.
9945 * regformats/regdef.h: Add prototype for set_register_cache ().
9946 Add include guard.
9947
9948 * gdbserver/linux-arm-low.c: New file.
9949 * gdbserver/linux-i386-low.c: New file.
9950 * gdbserver/linux-ia64-low.c: New file.
9951 * gdbserver/linux-m68k-low.c: New file.
9952 * gdbserver/linux-mips-low.c: New file.
9953 * gdbserver/linux-ppc-low.c: New file.
9954 * gdbserver/linux-sh-low.c: New file.
9955
9956 * gdbserver/regcache.c: New file.
9957 * gdbserver/regcache.h: New file.
9958
9959 * gdbserver/low-linux.c: Removed obsolete file.
9960
4cc841d0
DJ
99612002-02-14 Daniel Jacobowitz <drow@mvista.com>
9962
9963 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9964 * config/i386/linux.mt: Likewise.
9965 * config/ia64/linux.mt: Likewise.
9966 * config/m68k/linux.mh: Likewise.
9967 * config/powerpc/linux.mh: Likewise.
9968 * config/mips/linux.mt: Likewise.
9969
9970 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9971
9972 * config/i386/i386lynx.mh: Mark gdbserver variables
9973 as (currently) obsolete for this target.
9974 * config/i386/nbsd.mt: Likewise.
9975 * config/i386/nbsdelf.mt: Likewise.
9976 * config/m32r/m32r.mt: Likewise.
9977 * config/m68k/m68klynx.mh: Likewise.
9978 * config/m68k/nbsd.mt: Likewise.
9979 * config/m68k/sun3os4.mh: Likewise.
9980 * config/mips/vr5000.mt: Likewise.
9981 * config/ns32k/nbsd.mt: Likewise.
9982 * config/pa/hppabsd.mh: Likewise.
9983 * config/pa/hppaosf.mh: Likewise.
9984 * config/powerpc/nbsd.mt: Likewise.
9985 * config/rs6000/rs6000lynx.mh: Likewise.
9986 * config/s390/s390.mt: Likewise.
9987 * config/s390/s390x.mt: Likewise.
9988 * config/sparc/sparclynx.mh: Likewise.
9989 * config/sparc/sun4os4.mh: Likewise.
9990 * config/i386/x86-64linux.mt: Likewise.
9991 * config/sparc/linux.mh: Likewise.
9992
a85f51e7
DJ
99932002-02-14 Daniel Jacobowitz <drow@mvista.com>
9994
9995 * configure.tgt: Configure gdbserver only for known working
9996 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9997 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9998 SUBDIRS if it is configured. Update comment for ${nativefile}.
9999 * configure: Regenerated.
10000
65554fef
MS
100012002-02-13 Michael Snyder <msnyder@redhat.com>
10002
670a52db
MS
10003 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10004
6dbdc4a3
MS
10005 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10006 (default_gcore_mach): Just return 0, work around a problem in bfd.
10007 (default_gcore_target): OK to return NULL if exec_bfd is null.
10008 (make_mem_sec): Use a cast, avoid a warning.
10009
10010 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10011 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10012 sizeof (host pointer) != sizeof (target pointer)).
10013 (procfs_make_note_section): Avoid overflow in psargs string.
10014
aaa38bb5 10015 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10016 implementation return an error.
10017
100182002-02-13 Rodney Brown <rbrown64@csc.com.au>
10019
10020 * procfs.c (procfs_make_note_section): Provide a default definition
10021 (for alpha-dec-osf4.0f). Fix typos.
10022
1e4d76e7
EZ
100232002-02-13 Elena Zannoni <ezannoni@redhat.com>
10024
10025 * linux-proc.c: Add include of regcache.h.
10026 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10027
b6d1a1d5
AC
100282002-02-13 Andrew Cagney <ac131313@redhat.com>
10029
10030 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10031 * memattr.c (create_mem_region): Disallow useless empty region.
10032 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10033 non-overlapping.
b6d1a1d5 10034
6c6ea35e
MC
100352002-02-13 Michael Chastain <mec@shout.net>
10036
10037 * defs.h: Kill CONST_PTR.
10038 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10039 * c-lang.c (c_builtin_types): Likewise.
10040 * ch-lang.c (ch_builtin_types): Likewise.
10041 * f-lang.c (f_builtin_types): Likewise.
10042 * language.c (unknown_builtin_types): Likewise.
10043 * m2-lang.c (m2_builtin_types): Likewise.
10044 * p-lang.c (pascal_builtin_types): Likewise.
10045 * scm-lang.c (c_builtin_types): Likewise.
10046
3e0b0f48
KS
100472002-02-13 Keith Seitz <keiths@redhat.com>
10048
10049 * arm-tdep.h (arm_get_next_pc): Add declaration.
10050
67255d04
RE
100512002-02-13 Richard Earnshaw <rearnsha@arm.com>
10052
10053 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10054 with other related struct-returning functions.
10055 (arm_extract_struct_value_address): New function.
10056 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10057 initialize float_format, double_format and long_double_format as
10058 appropriate to the endianness of the target.
10059 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10060 (arm_use_struct_convention): Delete declaration.
10061 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10062
079777f6
KS
100632002-02-13 Keith Seitz <keiths@redhat.com>
10064
10065 * defs.h (core_addr_to_string_nz): New function.
10066
34588f23
MK
100672002-02-13 Mark Kettenis <kettenis@gnu.org>
10068
10069 Apply missing bits of 2002-01-15 patch.
10070 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10071 (fill_fpregset): Use i387_fill_fsave.
10072
49b563f9
KS
100732002-02-12 Keith Seitz <keiths@redhat.com>
10074
49b563f9
KS
10075 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10076 (core_addr_to_string_nz): New function.
10077
aeb98c60
RE
100782002-02-11 Richard Earnshaw <rearnsha@arm.com>
10079
10080 * arm-linux-nat.c: Really include arm-tdep.h.
10081 * config/arm/tm-linux.h (struct type, struct value): Declare.
10082
65554fef
MS
100832002-02-11 Michael Snyder <msnyder@redhat.com>
10084
10085 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10086 (gcore section): Ifdef for Solaris and Unixware only.
10087 (procfs_do_thread_registers): Unixware needs one lwpstatus
10088 per thread (not one prstatus or pstatus).
10089 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10090 not over all gdb threads. For unixware, call elfcore_write_pstatus
10091 once before iterating over threads.
10092
34e8f22d
RE
100932002-02-11 Richard Earnshaw <rearnsha@arm.com>
10094
10095 * arm-tdep.h: New file.
10096 * arm-tdep.c: Include arm-tdep.h.
10097 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10098 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10099 (arm_print_float_info, arm_register_type, convert_to_extended)
10100 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10101 (arm_extract_return_value, arm_register_name): Make static.
10102 (arm_software_single_step): Similarly. Fix types in declaration.
10103 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10104 (arm_store_return_value, arm_store_struct_return): New functions.
10105 (arm_gdbarch_init): Register the above functions. Also register
10106 call_dummy_start_offset, sizeof_call_dummy_words,
10107 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10108 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10109 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10110 prologue_cache.saved_regs here, rather than ...
10111 (_initialize_arm_tdep): ... here.
10112 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10113 declarations.
10114 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10115 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10116 (arm_print_float_info, arm_register_type, convert_to_extended)
10117 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10118 (arm_extract_return_value, arm_register_name): Delete declarations.
10119 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10120 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10121 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10122 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10123 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10124 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10125 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10126 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10127 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10128 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10129 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10130 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10131 interface.
10132 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10133 * remote-rdi.c remote-rdp.c: Likewise.
10134 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10135 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10136 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10137 definition.
10138
10139 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10140 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10141 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10142 from non-ARM_ prefixed definitions.
10143 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10144 all uses of above.
10145 * remote-rdi.c remote-rdp.c: Likewise.
10146 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10147
148754e5
RE
101482002-02-11 Richard Earnshaw <rearnsha@arm.com>
10149
10150 * arm-tdep.c (arm_frameless_function_invocation)
10151 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10152 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10153 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10154 (arm_pop_frame, arm_get_next_pc): Make static.
10155 (arm_gdbarch_init): Register above in gdbarch structure.
10156 (arm_read_fp): Renamed from arm_target_read_fp.
10157 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10158 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10159 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10160 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10161 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10162 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10163 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10164 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10165 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10166 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10167 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10168
434d2d4f
DJ
101692002-02-10 Daniel Jacobowitz <drow@mvista.com>
10170
10171 * symtab.c (compare_search_syms): New function.
10172 (sort_search_symbols): New function.
10173 (search_symbols): Sort symbols after searching rather than
10174 before.
10175
55241689
AC
101762002-02-10 Andrew Cagney <ac131313@redhat.com>
10177
10178 * NEWS: Linux -> GNU/Linux.
10179
028c194b
AC
101802002-02-10 Andrew Cagney <ac131313@redhat.com>
10181
10182 * gdbarch.sh: For for level one methods, disallow a definition
10183 when partially multi-arched. Add comments explaining rationale.
10184 * gdbarch.h: Re-generate.
10185
6acf50cd
AC
101862002-02-10 Andrew Cagney <ac131313@redhat.com>
10187
10188 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10189 multi-arch partial.
aaa38bb5 10190
50248794
AC
101912002-02-10 Andrew Cagney <ac131313@redhat.com>
10192
10193 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10194 field. Use diff -u.
10195 * gdbarch.c: Re-generate.
10196
c30e0066
AC
101972002-02-10 Andrew Cagney <ac131313@redhat.com>
10198
9b56c5f3 10199 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10200 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10201 partial.
10202
6e6d6484
AC
102032002-02-10 Andrew Cagney <ac131313@redhat.com>
10204
10205 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10206 multi-arch partial.
10207 (PUSH_ARGUMENTS): Switch to using predefault.
10208 * gdbarch.c: Regenerate.
10209
c203844d
AC
102102002-02-10 Andrew Cagney <ac131313@redhat.com>
10211
10212 * valops.c (PUSH_ARGUMENTS): Delete definition.
10213 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10214 partial. Default to default_push_arguments.
10215 * gdbarch.h, gdbarch.c: Regenerate.
10216
b5a2688f
AC
102172002-02-09 Andrew Cagney <ac131313@redhat.com>
10218
10219 * defs.h (throw_exception): Rename return_to_top_level. Update
10220 comments.
10221 * utils.c (error_stream, internal_verror, quit): Ditto.
10222 * top.c (throw_exception, catcher): Ditto.
10223 * sparclet-rom.c (sparclet_load): Ditto.
10224 * remote.c (interrupt_query, minitelnet): Ditto.
10225 * remote-sds.c (interrupt_query): Ditto.
10226 * remote-mips.c (mips_error, mips_kill): Ditto.
10227 * ocd.c (interrupt_query): Ditto.
10228 * monitor.c (monitor_interrupt_query): Ditto.
10229 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10230 * target.h: Update comment.
aaa38bb5 10231
b5a2688f 10232 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10233
2fa5c1e0
AC
102342002-02-09 Andrew Cagney <ac131313@redhat.com>
10235
10236 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10237 default_double_format.
10238 * gdbarch.h, gdbarch.c: Re-generate.
10239 * findvar.c (floatformat_unknown): Delete variable definition.
10240 * doublest.h (floatformat_unknown): Delete variable declaration.
10241
da966255
JB
102422002-02-09 Jim Blandy <jimb@redhat.com>
10243
10244 * stabsread.c (read_type): Add code to parse Sun's syntax for
10245 prototyped function types.
10246
123a4891
AC
102472002-02-09 Andrew Cagney <ac131313@redhat.com>
10248
10249 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10250 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10251
fb39c8f3
PS
102522002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10253
10254 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10255 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10256 now _initialize_xcoffsolib gets called again and overrides the
10257 commands from solib.c in a native configuration.
10258
0b87a11d
MK
102592002-02-09 Mark Kettenis <kettenis@gnu.org>
10260
10261 * doublest.c (store_typed_floating): Don't try to return a value.
10262 Fixes PR gdb/290.
10263
bdc2fc72
JB
102642002-02-08 Jim Blandy <jimb@redhat.com>
10265
10266 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10267 is prototyped and has no arguments, print its argument list as
10268 `(void)'.
10269
da69bbcf
CD
102702002-02-08 Chris Demetriou <cgd@broadcom.com>
10271
10272 * MAINTAINERS (write-after-approval): Add myself.
10273 (paper-trail): I've escaped!
aaa38bb5 10274
b69571f5
CF
102752002-02-08 Christopher Faylor <cgf@redhat.com>
10276
10277 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10278 changes.
10279 (_initialize_check_for_gdb_ini): Ditto.
10280
f6871398
MH
102812002-02-08 Martin M. Hunt <hunt@redhat.com>
10282
10283 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10284 xaprintf -> xasprintf.
10285
4e52d31c
PM
102862002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10287
10288 * win32-nat.c: Remove use of printf and sprintf functions.
10289
39bbf761
RE
102902002-02-08 Richard Earnshaw <rearnsha@arm.com>
10291
10292 * arm-tdep.c (arm_frame_chain_valid): Make static.
10293 (arm_push_arguments): Likewise.
10294 (arm_gdbarch_init): New function.
10295 (_initialize_arm_tdep): Call it.
10296 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10297 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10298 (FRAME_CHAIN_VALID): Delete.
10299 (arm_frame_chain_valid): Delete declaration.
10300 (PUSH_ARGUMENTS): Delete.
10301 (arm_push_arguments): Delete declaration.
10302 (CALL_DUMMY_P): Delete.
10303
9c9532c9
CV
103042002-02-08 Andrew Cagney <ac131313@redhat.com>
10305 Corinna Vinschen <vinschen@redhat.com>
10306
10307 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10308 on builtin float types.
10309
4e8f7a8b
DJ
103102002-02-08 Daniel Jacobowitz <drow@mvista.com>
10311
10312 * utils.c: Include <curses.h> before "bfd.h".
10313 * tui/tui-hooks.c: Likewise.
10314 * tui/tui.c: Likewise.
10315 * tui/tuiCommand.c: Likewise.
10316 * tui/tuiData.c: Likewise.
10317 * tui/tuiDataWin.c: Likewise.
10318 * tui/tuiDisassem.c: Likewise.
10319 * tui/tuiGeneralWin.c: Likewise.
10320 * tui/tuiIO.c: Likewise.
10321 * tui/tuiLayout.c: Likewise.
10322 * tui/tuiRegs.c: Likewise.
10323 * tui/tuiSource.c: Likewise.
10324 * tui/tuiSourceWin.c: Likewise.
10325 * tui/tuiStack.c: Likewise.
10326 * tui/tuiWin.c: Likewise.
10327
cd4bffcf
EZ
103282002-02-07 Elena Zannoni <ezannoni@redhat.com>
10329
10330 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10331 to include space for pseudoregs as well. Update loops accordingly.
10332 (sh_fp_frame_init_saved_regs): Ditto.
10333 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10334
26806ce2
AC
103352002-02-07 Andrew Cagney <ac131313@redhat.com>
10336
10337 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10338 Add Richard Earnshaw to Arm maintainers.
10339
97fdab62
AC
103402002-02-07 Andrew Cagney <ac131313@redhat.com>
10341
a6b98203
AC
10342 * defs.h (warning_begin): Delete declaration.
10343
97fdab62
AC
10344 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10345 Delete macro.
10346
78b29b40
MS
103472002-02-07 Michael Snyder <msnyder@redhat.com>
10348
aaa38bb5 10349 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10350 Logic bug, remove misplaced else.
10351
d8849953
KD
103522002-02-07 Klee Dienes <klee@apple.com>
10353
10354 * fork-inferior.c (fork_inferior): Add '!' to the list of
10355 characters that need to be quoted when building a string for the
10356 shell. Quote '!' specifically with a backslash, since CSH chokes
10357 when trying to evaluate "str!str".
aaa38bb5 10358
095778a0
NC
103592002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10360
10361 * rdi-share/host.h: Only provide a typedef for bool if it is not
10362 defined.
10363
1900040c
MS
103642002-02-04 Michael Snyder <msnyder@redhat.com>
10365
10366 * breakpoint.h (enum bptype): Add new overlay event bp type.
10367 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10368
1900040c
MS
10369 * breakpoint.c (create_internal_breakpoint): New function.
10370 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10371 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10372 (create_thread_event_breakpoint): Ditto.
10373 (create_solib_event_breakpoint): Ditto.
10374 (create_overlay_event_breakpoint): New function.
10375 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10376 (update_breakpoints_after_exec): Delete and re-initialize
10377 overlay event breakpoints after an exec. Add FIXME comment
10378 about longjmp breakpoint.
10379 (print_it_typical): Ignore overlay event breakpoints.
10380 (print_one_breakpoint): Ditto.
10381 (mention): Ditto.
10382 (bpstat_what): Do not stop for overlay event breakpoints.
10383 (delete_breakpoint): Don't delete overlay event breakpoints.
10384 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10385 (breakpoint_re_set): Re-create overlay event breakpoint.
10386
10387 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10388 (overlay_manual_command): Disable overlay breakpoints.
10389 (overlay_off_command): Disable overlay breakpoints.
10390
082fc60d
RE
103912002-02-06 Richard Earnshaw <rearnsha@arm.com>
10392
10393 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10394 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10395 to here from config/tm-arm.h.
10396 (coff_sym_is_thumb): Make static.
10397 (arm_elf_make_msymbol_special): New function.
10398 (arm_coff_make_msymbol_special): New function.
10399 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10400 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10401 (coff_sym_is_thumb): Delete declaration.
10402 (arm_elf_make_msymbol_special): Declare.
10403 (arm_coff_make_msymbol_special): Declare.
10404 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10405 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10406
039c5766
RE
104072002-02-06 Richard Earnshaw <rearnsha@arm.com>
10408
10409 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10410
104112002-02-06 Richard Earnshaw <rearnsha@arm.com>
10412
10413 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10414 * gdbarch.c gdbarch.h: Regenerate.
10415 * arch-utils.c (default_print_float_info): New function.
10416 * arch-utils.h (default_print_float_info): Prototype it.
10417 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10418 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10419 (PRINT_FLOAT_INFO): Document it.
10420
10421 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10422 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10423 (PRINT_FLOAT_INFO): Define.
10424
58fa08f0
PM
104252002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10426
aaa38bb5 10427 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10428 Add typecast to sprintf argument to suppress a warning.
10429
7393af7c
PM
104302002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10431
58fa08f0 10432 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10433 to allow easier handling of pass state.
10434 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10435 that gives exception name and address.
10436 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10437 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10438 exceptions added.
aaa38bb5
AJ
10439 (child_continue): Correctly report continue_status.
10440 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10441 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10442 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10443 the exception should be passed to debuggee or not.
10444
6af4589c
MS
104452002-02-05 Michael Snyder <msnyder@redhat.com>
10446
10447 * regcache.c (fetch_register): Call target_fetch_register
10448 only if we don't call FETCH_PSEUDO_REGISTER.
10449 (store_register): Call target_store_register only if we
10450 don't call STORE_PSEUDO_REGISTER.
10451
a2cf933a
EZ
104522002-02-05 Elena Zannoni <ezannoni@redhat.com>
10453
10454 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10455 ELF_MAKE_MSYMBOL_SPECIAL.
10456 * gdbarch.c, gdbarch.h: Regenerate.
10457 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10458 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10459 * elfread.c (elf_symtab_read): Compile use of
10460 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10461 multiarched.
10462 * coffread.c (coff_symtab_read): Ditto, for
10463 COFF_MAKE_MSYMBOL_SPECIAL.
10464
6bb7be43
JB
104652002-02-05 Jim Blandy <jimb@redhat.com>
10466
10467 * solib-svr4.c (svr4_truncate_ptr): New function.
10468 (svr4_relocate_section_addresses): Do the address arithmetic with
10469 the appropriate truncation for target addresses, even when
10470 CORE_ADDR is larger than a target address.
10471
e18651ec
DJ
104722002-02-05 Daniel Jacobowitz <drow@mvista.com>
10473
10474 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10475 to (int *).
10476
6b2725be
DJ
104772002-02-05 Daniel Jacobowitz <drow@mvista.com>
10478
10479 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10480 code.
10481
fca9e603
DJ
104822002-02-05 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10485
6c537a52
DJ
104862002-02-05 Daniel Jacobowitz <drow@mvista.com>
10487
10488 * gdbserver/linux-low.c: Remove unused include files.
10489
d844cde6
DJ
104902002-02-05 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10493 (read_inferior_memory): Use it.
10494 (write_inferior_memory): Likewise.
10495
d07c63e7
DJ
104962002-02-05 Daniel Jacobowitz <drow@mvista.com>
10497
10498 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10499 grubbing through sys_errlist.
10500
da6d8c04
DJ
105012002-02-05 Daniel Jacobowitz <drow@mvista.com>
10502
10503 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10504
5b421780
PM
105052002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10506 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10507
9f60d481
AC
105082002-02-04 Andrew Cagney <ac131313@redhat.com>
10509
10510 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10511 (do_sfunc, set_cmd_sfunc): New functions.
10512
10513 * command.h (struct cmd_list_element): Add field func.
10514 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10515 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10516 * cli/cli-decode.h: Ditto.
10517
10518 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10519 (help_all, help_cmd_list): Ditto.
10520 (find_cmd, complete_on_cmdlist): Ditto.
10521 * top.c (execute_command): Ditto.
10522
10523 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10524 function.sfunc.
10525
10526 * infcmd.c (notice_args_read): Fix function signature.
10527
10528 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10529 * cli/cli-decode.c (add_set_cmd): Ditto.
10530 * utils.c (initialize_utils): Ditto.
10531 * maint.c (_initialize_maint_cmds): Ditto.
10532 * infrun.c (_initialize_infrun): Ditto.
10533 * demangle.c (_initialize_demangler): Ditto.
10534 * remote.c (add_packet_config_cmd): Ditto.
10535 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10536 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10537 * proc-api.c (_initialize_proc_api): Ditto.
10538 * kod.c (_initialize_kod): Ditto.
10539 * valprint.c (_initialize_valprint): Ditto.
10540 * top.c (init_main): Ditto.
10541 * infcmd.c (_initialize_infcmd): Ditto.
10542 * corefile.c (_initialize_core): Ditto.
10543 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10544 * arch-utils.c (initialize_current_architecture): Ditto.
10545 (_initialize_gdbarch_utils): Ditto.
10546 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10547
10548 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10549 * wince.c (_initialize_inftarg): Ditto.
10550 * symfile.c (_initialize_symfile): Ditto.
10551 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10552 * language.c (_initialize_language): Ditto.
10553 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10554
f9ba0717
MS
105552002-02-04 Michael Snyder <msnyder@redhat.com>
10556
10557 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10558
0c74b2a7
DJ
105592002-02-04 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10562 Add rules for building the register data files.
10563
c638789f
DJ
105642002-02-04 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * regformats/regdat.sh: Add braces to the definition of
10567 expedite_regs_${arch}.
10568
db253027
DJ
105692002-02-04 Daniel Jacobowitz <drow@mvista.com>
10570
10571 * regformats/regdef.h (struct reg): Add comment describing the
10572 requirements for offset and size fields.
10573
206be19c
AS
105742002-02-04 Andreas Schwab <schwab@suse.de>
10575
10576 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10577 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10578
181c1381
RE
105792002-02-04 Richard Earnshaw <rearnsha@arm.com>
10580
10581 * gdbarch.sh (copyright): Update years in generated header.
10582 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10583 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10584 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10585 * dbxread.c: Likewise.
10586 * dwarfread.c: Likewise.
10587 * elfread.c: Likewise.
10588 * somread.c: Likewise.
10589
10590 * arm-tdep.c (arm_smash_text_address): New function.
10591 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10592
fa4ba8da
PM
105932002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10594
10595 Add support for hardware watchpoints on win32 native.
aaa38bb5 10596 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10597 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10598 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10599 of debug registers.
10600 (debug_registers_changed): New variable. Reflects when debug registers
10601 are changed and need to be written to inferior.
aaa38bb5 10602 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10603 was set, used when new threads are created.
10604 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10605 i386-nat code.
10606 (thread_rec): Set dr array if id is the thread of current_event .
10607 (child_continue, child_resume): Change the debug registers for all
10608 threads if debug_registers_changed.
10609 (child_add_thread): Change the debug registers if debug_registers_used.
10610 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10611 Link nm.h to new nm-cygwin.h file.
10612 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10613 of hardware registers.
10614
a73c86fb
AC
106152002-02-03 Andrew Cagney <ac131313@redhat.com>
10616
10617 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10618 Restore behavour broken by 2002-01-20 Andrew Cagney
10619 <ac131313@redhat.com> IEEE_FLOAT removal.
10620
acf5ed49
DJ
106212002-02-03 Daniel Jacobowitz <drow@mvista.com>
10622
10623 * c-valprint.c (c_val_print): Pass a proper valaddr to
10624 cp_print_class_method.
10625 * valops.c (search_struct_method): If there is only one method
10626 and args is NULL, return that method.
10627
493d28d5
DJ
106282002-02-03 Daniel Jacobowitz <drow@mvista.com>
10629
10630 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10631 accessing tag_name directly.
10632
7495dfdb
DJ
106332002-02-03 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10636 of accessing tag_name directly.
10637
dd6bda65
DJ
106382002-02-03 Daniel Jacobowitz <drow@mvista.com>
10639
10640 PR gdb/280
10641 * gdbtypes.c (replace_type): New function.
10642 * gdbtypes.h (replace_type): Add prototype.
10643 * stabsread.c (read_type): Use replace_type.
10644
88fe217c
RE
106452002-02-03 Richard Earnshaw <rearnsha@arm.com>
10646
10647 * Makefile.in (memattr.o): Add missing dependencies rule.
10648
e5d66720
PS
106492002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10650
10651 * breakpoint.c (break_at_finish_command): Really export.
10652 (break_at_finish_at_depth_command): Ditto.
10653 (tbreak_at_finish_command): Ditto.
10654 * hppa-tdep.c: Include completer.h.
10655 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10656 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10657
fffee0be
AC
106582002-02-01 Andrew Cagney <ac131313@redhat.com>
10659
10660 * utils.c (do_write): New function.
10661 (error_stream): Rewrite combining the code from error_begin and
10662 verror.
10663 (verror): Rewrite using error_stream.
10664 (error_begin): Delete function.
10665
255e7dbf
AC
106662002-02-01 Andrew Cagney <ac131313@redhat.com>
10667
10668 * utils.c (error_begin): Make static.
10669 * defs.h (error_begin): Delete declaration.
10670
10671 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10672 (decode_line_1): Use cplusplus_error instead of error_begin,
10673 cplusplus_hint and return_to_top_level.
10674 * coffread.c (coff_symfile_read): Use error instead of error_begin
10675 and return_to_top_level.
10676 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10677
ddfe3c15
AC
106782002-02-01 Andrew Cagney <ac131313@redhat.com>
10679
10680 * language.h (type_error, range_error): Make string parameter
10681 constant.
10682 * language.c (warning_pre_print): Delete extern declaration.
10683 * dwarfread.c (warning_pre_print): Ditto.
10684 * language.c (type_error, range_error): Rewrite to use verror and
10685 vwarning instead of warning_begin.
10686
03ac34d5
MS
106872002-02-01 Michael Snyder <msnyder@redhat.com>
10688
261c4ca2
MS
10689 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10690 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10691
e00d1dc8
AC
106922002-02-01 Andrew Cagney <ac131313@redhat.com>
10693
10694 * command.h (NO_FUNCTION): Delete macro.
10695 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10696 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10697 * tracepoint.c (_initialize_tracepoint): Ditto.
10698 * cli/cli-decode.c (add_set_cmd): Ditto.
10699 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10700
76b79d6e
DJ
107012002-02-01 Daniel Jacobowitz <drow@mvista.com>
10702
10703 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10704 Update ``this'' pointer when calling virtual functions.
10705
799f9e91
MS
107062002-02-01 Michael Snyder <msnyder@redhat.com>
10707
c7bd442c 10708 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10709 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10710
3cf384d4
DJ
107112002-02-01 Daniel Jacobowitz <drow@mvista.com>
10712
10713 * regformats/reg-arm.dat: New file.
10714 * regformats/reg-i386.dat: New file.
10715 * regformats/reg-ia64.dat: New file.
10716 * regformats/reg-m68k.dat: New file.
10717 * regformats/reg-mips.dat: New file.
10718 * regformats/reg-ppc.dat: New file.
10719 * regformats/reg-sh.dat: New file.
10720 * regformats/regdef.h: New file.
10721 * regformats/regdat.sh: New file.
10722
0defa245
RE
107232002-02-01 Richard Earnshaw <reanrsha@arm.com>
10724
10725 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10726 (arm_frame_args_address, arm_frame_locals_address): New functions.
10727 (arm_frame_num_args): New function.
10728 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10729 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10730 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10731
405f26e6
MS
107322002-01-31 Michael Snyder <msnyder@redhat.com>
10733
502fd408
MS
10734 * breakpoint.c (break_at_finish_command): Export.
10735 (break_at_finish_at_depth_command): Export.
10736 (tbreak_at_finish_command): Export.
d6020d45 10737 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10738 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10739 "txbreak" commands, which are HPPA specific.
502fd408 10740
7d35e135
MS
10741 * printcmd.c (disassemble_command): Remove an ancient
10742 artifact of an old merge.
10743
aaa38bb5 10744 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10745 Define enum constant values for overlay mode.
10746 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10747 (overlay_is_mapped, overlay_auto_command,
10748 overlay_manual_command): Ditto.
d874f1e2 10749
aaa38bb5
AJ
10750 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10751 breakpoint_here_p, breakpoint_inserted_here_p,
10752 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10753 describe_other_breakpoints, check_duplicates, clear_command):
10754 Coding standard fixes.
10755
8add0441 10756 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10757 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10758 code: check bfd SEC_READONLY flag for section.
10759
e351066e
AC
107602002-01-31 Andrew Cagney <ac131313@redhat.com>
10761
7d35e135 10762 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10763
8a48e967
DJ
107642002-01-30 Daniel Jacobowitz <drow@mvista.com>
10765
10766 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10767 data symbols, since we search based on textlow and texthigh.
10768 (find_pc_sect_symtab): Likewise.
10769
f5a96129
AC
107702002-01-30 Andrew Cagney <ac131313@redhat.com>
10771
10772 * defs.h (vwarning): Declare.
f5a96129
AC
10773 * utils.c (vwarning): New function.
10774 (warning): Call vwarning.
10775 (warning_begin): Delete function.
10776
10777 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10778 the warning message.
10779 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10780 warning_begin.
10781
cefd4ef5
MS
107822002-01-30 Michael Snyder <msnyder@redhat.com>
10783
1a703748
MS
10784 * NEWS: Mention "set trust-readonly-sections" command.
10785 Mention generate-core-file command.
cefd4ef5 10786
3a11626d
MS
107872002-01-15 Michael Snyder <msnyder@redhat.com>
10788
10789 * target.c: New command, "set trust-readonly-sections on".
10790 (do_xfer_memory): Honor the suggestion to trust readonly sections
10791 by reading them from the object file instead of from the target.
10792 (initialize_targets): Register command "set trust-readonly-sections".
10793
d1c7e53b
AC
107942002-01-29 Andrew Cagney <ac131313@redhat.com>
10795
10796 * parse.c (target_map_name_to_register): Simplify, search regs and
10797 pseudo-regs using a single loop.
10798
e2c9a72c
AC
107992002-01-30 Andrew Cagney <ac131313@redhat.com>
10800
10801 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10802
69824b4e
MK
108032002-01-15 Rodney Brown <rbrown64@csc.com.au>
10804
10805 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10806 * config/i386/i386v42mp.mh: Add i387-nat.o .
10807 * i386v4-nat.c: Include i387-nat.h.
10808 (supply_fpregset): Use i387_supply_fsave.
10809 (fill_fpregset): Use i387_fill_fsave.
10810
6eb69eab
RE
108112002-01-30 Richard Earnshaw <rearnsha@arm.com>
10812
10813 * arm-tdep.c (arm_call_dummy_words): Define.
10814 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10815 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10816 (CALL_DUMMY_WORDS): Define.
10817 (arm_call_dummy_words): Declare.
10818 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10819 (arm_linux_call_dummy_words): Declare.
10820
9852326a
AS
108212002-01-30 Andreas Schwab <schwab@suse.de>
10822
10823 * m68klinux-nat.c: Fix last change to use regcache_collect
10824 instead of referencing registers[] directly.
10825
977a3030
AC
108262002-01-29 Andrew Cagney <ac131313@redhat.com>
10827
10828 * parse.c (target_map_name_to_register): Delete code wrapped in
10829 #ifdef REGISTER_NAME_ALIAS_HOOK.
10830
2076c72b
MS
108312002-01-28 Michael Snyder <msnyder@redhat.com>
10832
10833 * regcache.c (legacy_read_register_gen): Need to be able to
10834 read pseudo-register as well as real register.
10835 (legacy_write_register_gen): Ditto.
10836
8fcc723b
AC
108372002-01-28 Andrew Cagney <ac131313@redhat.com>
10838
10839 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10840 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10841 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10842 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10843 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10844 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10845 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10846 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10847 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10848 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10849 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10850 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10851 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10852 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10853 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10854 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10855 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10856 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10857 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10858 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10859
afe64c1a
AC
108602002-01-28 Andrew Cagney <ac131313@redhat.com>
10861
10862 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10863 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10864 (initialize_current_architecture): Update target_byte_order using
10865 information from BFD.
aaa38bb5 10866 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10867 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10868
75bc7ddf
AC
108692002-01-28 Andrew Cagney <ac131313@redhat.com>
10870
10871 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10872 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10873
10874 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10875 #ifdef INVALID_FLOAT.
10876 * infcmd.c (do_registers_info): Ditto.
10877 * values.c (unpack_double): Ditto. Add comment.
10878
10879 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10880 already commented out.
10881
0280a90a
AS
108822002-01-26 Andreas Schwab <schwab@suse.de>
10883
10884 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10885 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10886 registers and add support for PTRACE_GETREGS.
10887
7072a954
AC
108882002-01-24 Andrew Cagney <ac131313@redhat.com>
10889
10890 GDB 5.1.1 released from 5.1 branch.
10891 * NEWS: Add 5.1.1 news.
10892 * README: Sync with 5.1 branch.
10893
86f902e0
FF
108942002-01-23 Fred Fish <fnf@redhat.com>
10895
10896 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10897 stabstring on initial malloc. Reallocing will copy it for us,
10898 if necessary.
10899
8af51c36
EZ
109002002-01-23 Elena Zannoni <ezannoni@redhat.com>
10901
aaa38bb5 10902 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10903 (HFILES_NO_SRCDIR): Remove hpread.h.
10904 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10905 (hpread.o): Update dependencies.
10906 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10907
10908 * hp-psymtab-read.c: Remove file.
10909 * hp-symtab-read.c: Remove file.
10910 * hpread.h: Remove file.
10911
10912 * hpread.c: Merge all contents of hp-psymtab-read.c,
10913 hp-symtab-read.c and hpread.h into this file, as it was prior to
10914 January 1999.
10915
10916 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10917 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10918 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10919 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10920
dc5cfeb6
EZ
109212002-01-23 Elena Zannoni <ezannoni@redhat.com>
10922
10923 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10924 fill_gregset): Call gdbarch_tdep() just once, assign result to
10925 variable and use that, instead of calling the function several
10926 times.
10927
ea87b71b
AO
109282002-01-24 Alexandre Oliva <aoliva@redhat.com>
10929
10930 * configure.host: Accept sparcv9 as alias for sparc64.
10931 * configure.tgt: Likewise.
10932
13fc0c2f
KB
109332002-01-22 Kevin Buettner <kevinb@redhat.com>
10934
10935 * solib-aix5.c (build_so_list_from_mapfile)
10936 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10937 arguments is not reversed.
10938 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10939 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10940
7bd872fe
EZ
109412002-01-22 Elena Zannoni <ezannoni@redhat.com>
10942
10943 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10944 modified version of obsolete sh_fetch_pseudo_register.
10945 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10946 (sh4_register_read): New function.
10947 (sh_pseudo_register_write): New function. Renamed and modified
10948 version of obsolete sh_store_pseudo_register.
10949 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10950 (sh4_register_write): New function.
10951 (sh_gdbarch_init): Remove setting of gdbarch function
10952 fetch_pseudo_register and store_pseudo_register. Remove setting of
10953 register_convert_to_raw, register_convert_to_virtual,
10954 register_convertible.
10955 (sh_sh4_register_convertible): Delete. No longer needed. All is
10956 taken care by architecture specific functions
10957 register_read/register_write.
10958 (sh_sh4_register_convert_to_virtual): Make static.
10959 (sh_sh4_register_convert_to_raw): Ditto.
10960
069e84fd
AC
109612002-01-22 Andrew Cagney <ac131313@redhat.com>
10962
10963 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10964 (floatformat_is_nan, floatformat_mantissa): Ditto.
10965
10966 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10967 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10968 builtin_type_ieee_double_little,
10969 builtin_type_ieee_double_littlebyte_bigword,
10970 builtin_type_m68881_ext, builtin_type_i960_ext,
10971 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10972 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10973 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10974 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10975
211a4f69
CV
109762002-01-22 Corinna Vinschen <vinschen@redhat.com>
10977
10978 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10979 parameter. Set frameless flag if it exists and depended of
10980 whether the scanned function is frameless or not.
10981 (xstormy16_skip_prologue): If function is frameless, return
10982 result of xstormy16_scan_prologue().
10983 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10984 call.
10985
f81353e4
EZ
109862002-01-21 Elena Zannoni <ezannoni@redhat.com>
10987
10988 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10989 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10990 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10991 sh_sh4_register_byte, sh_sh4_register_raw_size,
10992 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10993 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10994 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10995 sh_store_pseudo_register, sh_do_pseudo_register): Call
10996 gdbarch_tdep() just once, assign result to variable and use that,
10997 instead of calling the function several times.
10998
63c73a17
MK
109992002-01-20 Mark Kettenis <kettenis@gnu.org>
11000
11001 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11002 macros instead of LAST_FPU_CTRL_REGNUM.
11003 (store_register): Likewise.
11004
39ad761d
JB
110052002-01-21 Jim Blandy <jimb@redhat.com>
11006
11007 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11008 is up-to-date before running the program, not just when a program
11009 exits.
11010
3d74b771
FF
110112002-01-21 Fred Fish <fnf@redhat.com>
11012
11013 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11014 when we have found all instructions we are looking for.
11015
966fbf70
RE
110162002-01-21 Richard Earnshaw <rearnsha@arm.com>
11017
11018 * arm-tdep.c (arm_register_name): New function.
11019 (arm_registers_names): Make static.
11020 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11021 (arm_register_name): Declare.
11022 (REGISTER_NAME): Use it.
11023
c3b4394c
RE
110242002-01-21 Richard Earnshaw <rearnsha@arm.com>
11025 Kevin Buettner <kevinb@redhat.com>
11026
11027 Convert arm targets to new FRAME interface.
11028 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11029 (arm_frame_find_save_regs): Delete.
11030 (arm_frame_init_saved_regs): New.
11031 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11032 Allocate extra_info as required. Convert all uses of fsr.regs
11033 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11034 to use extra_info.
11035 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11036 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11037 (check_prologue_cache, save_prologue_cache): Likewise.
11038 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11039 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11040 (FRAME_FIND_SAVED_REGS): Delete.
11041 (arm_frame_find_saved_regs): Delete prototype.
11042 (arm_frame_init_saved_regs): New prototype.
11043 (FRAME_INIT_SAVED_REGS): Define.
11044
61d99182
AC
110452002-01-20 Andrew Cagney <ac131313@redhat.com>
11046
11047 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11048
6aaea291
AC
110492002-01-20 Andrew Cagney <ac131313@redhat.com>
11050
11051 From Jeff Law <law@redhat.com>:
11052 * infttrace.c: Include <sys/pstat.h>.
11053 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11054 exec file if the ttrace equivalent fails.
11055
15f698d2
AC
110562002-01-20 Andrew Cagney <ac131313@redhat.com>
11057
11058 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11059 (closeLogFile): Ditto.
11060
f86ddd7c
MC
110612002-01-20 Michael Chastain <mec@shout.net>
11062
11063 * top.c (print_gdb_version): Bump copyright year to 2002.
11064
904507ce
AC
110652002-01-20 Andrew Cagney <ac131313@redhat.com>
11066
11067 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11068 Zannoni and Eli Zaretskii.
11069
d7f0b9ce
DJ
110702002-01-20 Daniel Jacobowitz <drow@mvista.com>
11071
11072 * buildsym.c: Update copyright years.
11073 * c-typeprint.c: Likewise.
11074 * dwarf2read.c: Likewise.
11075 * f-typeprint.c: Likewise.
11076 * gdbtypes.c: Likewise.
11077 * gdbtypes.h: Likewise.
11078 * hp-symtab-read.c: Likewise.
11079 * hpread.c: Likewise.
11080 * mdebugread.c: Likewise.
11081 * p-typeprint.c: Likewise.
11082
3fd3d7d2
AC
110832002-01-20 Andrew Cagney <ac131313@redhat.com>
11084
11085 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11086 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11087 byte-order selectable.
11088 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11089 * arch-utils.c: Ditto.
11090 (set_endian): Ditto.
11091 (set_endian_from_file): Ditto.
11092 * gdbserver/low-sim.c (create_inferior): Ditto.
11093 * gdbarch.sh: Ditto.
11094 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11095 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11096 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11097 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11098 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11099 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11100 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11101 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11102 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11103 macro definition.
11104 * config/mips/tm-wince.h: Remove #undef of macro
11105 TARGET_BYTE_ORDER_SELECTABLE.
11106 * config/sh/tm-wince.h: Ditto.
11107
b02dede2
DJ
111082002-01-20 Daniel Jacobowitz <drow@mvista.com>
11109
11110 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11111 member function fields. Add accessor macro
11112 TYPE_FN_FIELD_ARTIFICIAL.
11113 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11114 * c-typeprint.c (c_type_print_base): Skip artificial member
11115 functions.
11116
c3643761
DJ
111172002-01-20 Daniel Jacobowitz <drow@mvista.com>
11118
11119 * f-typeprint.c: Delete unused function f_type_print_args.
11120 * p-typeprint.c: Delete unused function pascal_type_print_args.
11121
8176bb6d
DJ
111222002-01-20 Daniel Jacobowitz <drow@mvista.com>
11123
11124 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11125 comment. Add ``artificial'' to ``union field_location''.
11126
11127 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11128
11129 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11130 * mdebugread.c (parse_symbol): Likewise.
11131 * stabsread.c (define_symbol): Likewise.
11132 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11133 initializing TYPE_FIELD_BITPOS to n (obsolete).
11134 (hpread_doc_function_type): Likewise.
11135 * hpread.c (hpread_function_type): Likewise.
11136
7fd60527
AC
111372002-01-20 Andrew Cagney <ac131313@redhat.com>
11138
11139 * configure.in (host_makefile_frag): Only require a host makefile
11140 fragment when a native build.
11141 * configure: Re-generate.
11142
c2f05ac9
AC
111432002-01-20 Andrew Cagney <ac131313@redhat.com>
11144
11145 * doublest.h (floatformat_from_type): Declare.
11146 * doublest.c (floatformat_from_type): New function.
11147 (convert_typed_floating): Use.
11148
11149 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11150 call to function floatformat_from_type.
11151
11152 * gdbarch.sh (IEEE_FLOAT): Delete.
11153 * gdbarch.h, gdbarch.c: Re-generate.
11154 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11155 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11156 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11157 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11158 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11159 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11160 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11161 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11162 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11163 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11164 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11165 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11166
11167 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11168 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11169 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11170 * sh-tdep.c (sh_gdbarch_init): Ditto.
11171 * mips-tdep.c (mips_gdbarch_init): Ditto.
11172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11173 * cris-tdep.c (cris_gdbarch_init): Ditto.
11174
abf22e64
AJ
111752002-01-20 Jiri Smid <smid@suse.cz>
11176
11177 * configure.host, configure.tgt: Support x86-64.
11178 * NEWS: Note new target x86-64.
11179
b7c4cbf8
AJ
11180 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11181 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11182 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11183 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11184 x86-64-linux-nat.o): Fix dependencies.
11185
82600034
AC
111862002-01-19 Andrew Cagney <ac131313@redhat.com>
11187
11188 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11189 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11190 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11191 * config/sparc/xm-sun4os4.h: Delete file.
11192 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11193
bbe5c628
AC
111942002-01-19 Andrew Cagney <ac131313@redhat.com>
11195
11196 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11197 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11198 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11199 * config/i386/i386lynx.mh (XM_FILE): Delete.
11200 * config/rs6000/xm-rs6000ly.h: Delete file.
11201 * config/sparc/xm-sparclynx.h: Delete file.
11202 * config/m68k/xm-m68klynx.h: Delete file.
11203 * config/i386/xm-i386lynx.h: Delete file.
11204 * config/xm-lynx.h: Delete file.
11205 * config/djgpp/fnchange.lst: Update.
11206
f8453e34
JT
112072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11208
11209 * alpha-tdep.c (alpha_register_byte): New function.
11210 (alpha_register_raw_size): Ditto.
11211 (alpha_register_virtual_size): Ditto.
11212 (alpha_skip_prologue_internal): Renamed from
11213 alpha_skip_prologue.
11214 (alpha_skip_prologue): New version that calls
11215 alpha_skip_prologue_internal.
11216 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11217 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11218 second argument from alpha_skip_prologue.
11219 (REGISTER_BYTE): Use alpha_register_byte.
11220 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11221 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11222 (FRAMELESS_FUNCTION_INVOCATION): Use
11223 generic_frameless_function_invocation_not.
11224 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11225 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11226
52d9e613
AC
112272002-01-19 Andrew Cagney <ac131313@redhat.com>
11228
11229 * config/mips/xm-news-mips.h: Delete file.
11230 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11231
11232 * config/m88k/xm-m88k.h: Delete file.
11233 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11234 * config/m88k/xm-delta88v4.h: Ditto.
11235 * config/m88k/xm-delta88.h: Ditto.
11236
11237 * config/alpha/xm-fbsd.h: Delete file.
11238 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11239
11240 * config/sparc/xm-sparc.h: Delete file.
11241 * Makefile.in (xm-sun4os4.h): Delete dependency.
11242 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11243 * config/sparc/xm-sun4os4.h: Ditto.
11244 * config/sparc/xm-linux.h: Ditto.
11245
11246 * config/i386/xm-windows.h: Delete file.
11247
2d1b2124
AC
112482002-01-19 Andrew Cagney <ac131313@redhat.com>
11249
11250 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11251 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11252
ee1f65f0
JT
112532002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11254
11255 * alpha-tdep.c (alpha_call_dummy_words): New.
11256 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11257 (CALL_DUMMY_P): Define.
11258 (CALL_DUMMY_WORDS): Define.
11259 (SIZEOF_CALL_DUMMY_WORDS): Define.
11260
98081e55
PB
112612002-01-19 Per Bothner <per@bothner.com>
11262
11263 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11264 isn't NULL, which can happen with some gcj-3.x-produced code.
11265
0d056799
JT
112662002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11267
11268 * alpha-tdep.c (alpha_register_virtual_type): New function.
11269 (alpha_init_frame_pc_first): Ditto.
11270 (alpha_fix_call_dummy): Ditto.
11271 (alpha_store_struct_return): Ditto.
11272 (alpha_extract_struct_value_address): Ditto.
11273 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11274 alpha_register_virtual_type.
11275 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11276 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11277 alpha_extract_struct_value_address.
11278 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11279 (INIT_FRAME_PC): Use init_frame_pc_noop.
11280 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11281
4604bcad
MK
112822002-01-19 Mark Kettenis <kettenis@gnu.org>
11283
11284 * i386gnu-nat.c: Include "i386-tdep.h".
11285 (fetch_fpregs): Simplify code dealing with uninitialized floating
11286 point states such that it doesn't require FP7_REGNUM.
11287
140f9984
JT
112882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11289
abf22e64
AJ
11290 * alpha-tdep.c (frame_extra_info): New.
11291 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11292 frame->extra_info.
11293 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11294 (alpha_frame_saved_pc): Use frame->extra_info.
11295 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11296 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11297 (init_extra_frame_info): Rename to...
11298 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11299 (alpha_print_extra_frame_info): New function.
140f9984
JT
11300 (alpha_frame_locals_address): Ditto.
11301 (alpha_frame_args_address): Ditto.
abf22e64 11302 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11303 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11304 alpha_frame_args_address.
abf22e64 11305 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11306 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11307 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11308 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11309 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11310 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11311
d734c450
JT
113122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11313
11314 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11315 (alpha_cannot_fetch_register): Ditto.
11316 (alpha_cannot_store_register): Ditto.
11317 (alpha_register_convertible): Ditto.
11318 (alpha_use_struct_convention): Ditto.
11319 * config/alpha/tm-alpha.h: Update copyright years.
11320 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11321 (INNER_THAN): Use core_addr_lessthan.
11322 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11323 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11324 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11325 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11326 (FRAME_CHAIN): Remove unnecessary cast.
11327
b4ceaee6
AC
113282002-01-18 Andrew Cagney <ac131313@redhat.com>
11329
11330 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11331 obsolete.
11332
0a65a603
AC
113332002-01-18 Andrew Cagney <ac131313@redhat.com>
11334
11335 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11336 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11337 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11338 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11339 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11340 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11341 * x86-64-linux-nat.c: Ditto.
11342
636a6dfc
JT
113432002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11344
abf22e64 11345 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11346 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11347 (REGISTER_NAME): Define.
11348
acceddb6
JT
113492002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11350
11351 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11352
ec32e4be
JT
113532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11354
11355 * alpha-tdep.c: Update copyright years.
11356 (alpha_next_pc): New function.
11357 (alpha_software_single_step): Ditto.
11358 * config/alpha/tm-alpha.h: Add prototype for
11359 alpha_software_single_step.
11360
e771a871
JT
113612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11362
11363 * alphabsd-nat.c: Update copyright years.
11364 (fill_gregset): Use regcache_collect.
11365 (fill_fpregset): Likewise.
11366 (fetch_inferior_registers): Only fetch integer registers
11367 if requested to do so.
11368 (store_inferior_registers): Only store integer registers
11369 if requested to do so.
11370
7708fa01
AC
113712002-01-17 Andrew Cagney <ac131313@redhat.com>
11372
11373 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11374 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11375 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11376 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11377 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11378 * config/arm/linux.mh (XDEPFILES): Delete.
11379 * config/arm/nbsd.mh (XDEPFILES): Delete.
11380 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11381 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11382 * config/i386/i386m3.mh (XDEPFILES): Delete.
11383 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11384 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11385 * config/i386/fbsd.mh (XDEPFILES): Delete.
11386 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11387 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11388 * config/i386/i386v4.mh (XDEPFILES): Delete.
11389 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11390 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11391 * config/i386/i386aix.mh (XDEPFILES): Delete.
11392 * config/i386/go32.mh (XDEPFILES): Delete.
11393 * config/i386/cygwin.mh (XDEPFILES): Delete.
11394 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11395 * config/i386/i386mach.mh (XDEPFILES): Delete.
11396 * config/i386/i386v32.mh (XDEPFILES): Delete.
11397 * config/i386/linux.mh (XDEPFILES): Delete.
11398 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11399 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11400 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11401 * config/i386/i386sco.mh (XDEPFILES): Delete.
11402 * config/i386/i386v.mh (XDEPFILES): Delete.
11403 * config/i386/nbsd.mh (XDEPFILES): Delete.
11404 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11405 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11406 * config/i386/symmetry.mh (XDEPFILES): Delete.
11407 * config/i386/obsd.mh (XDEPFILES): Delete.
11408 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11409 * config/ia64/linux.mh (XDEPFILES): Delete.
11410 * config/ia64/aix.mh (XDEPFILES): Delete.
11411 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11412 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11413 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11414 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11415 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11416 * config/m68k/linux.mh (XDEPFILES): Delete.
11417 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11418 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11419 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11420 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11421 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11422 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11423 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11424 * config/m88k/delta88.mh (XDEPFILES): Delete.
11425 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11426 * config/m88k/m88k.mh (XDEPFILES): Delete.
11427 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11428 * config/mips/linux.mh (XDEPFILES): Delete.
11429 * config/mips/irix6.mh (XDEPFILES): Delete.
11430 * config/mips/irix5.mh (XDEPFILES): Delete.
11431 * config/mips/irix4.mh (XDEPFILES): Delete.
11432 * config/mips/irix3.mh (XDEPFILES): Delete.
11433 * config/mips/decstation.mh (XDEPFILES): Delete.
11434 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11435 (NATDEPFILES): Move core-aout.o to here.
11436 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11437 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11438 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11439 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11440 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11441 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11442 * config/pa/hpux11.mh (XDEPFILES): Delete.
11443 * config/powerpc/aix.mh (XDEPFILES): Delete.
11444 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11445 * config/powerpc/linux.mh (XDEPFILES): Delete.
11446 * config/romp/rtbsd.mh: Rename XDEPFILES.
11447 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11448 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11449 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11450 * config/s390/s390.mh (XDEPFILES): Delete.
11451 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11452 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11453 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11454 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11455 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11456 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11457 * config/sparc/linux.mh (XDEPFILES): Delete.
11458 * config/vax/vaxult.mh (XDEPFILES): Delete.
11459 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11460 * Makefile.in (DEPFILES): Remove XDEPFILES.
11461
375fc983
AC
114622002-01-17 Andrew Cagney <ac131313@redhat.com>
11463
11464 * utils.c (internal_verror): Fix comments, default is yes not no.
11465 Update queries to match. Default to quit and dump core.
11466
8926118c
AC
114672002-01-17 Andrew Cagney <ac131313@redhat.com>
11468
11469 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11470 copyright.
11471 * defs.h, event-top.c, gdbcmd.h: Ditto.
11472 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11473 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11474 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11475 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11476 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11477 * mi/mi-main.c:Ditto.
11478
11479 * stack.c, symfile.c: Update copyright.
11480
45b7b345
DJ
114812002-01-17 Daniel Jacobowitz <drow@mvista.com>
11482
db728ff7
DJ
11483 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11484 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11485 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11486 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11487
db728ff7
DJ
114882002-01-17 Daniel Jacobowitz <drow@mvista.com>
11489
11490 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11491 * gdbserver/low-lynx.c (myattach): Likewise.
11492 * gdbserver/low-nbsd.c (myattach): Likewise.
11493 * gdbserver/low-sim.c (myattach): Likewise.
11494 * gdbserver/low-sparc.c (myattach): Likewise.
11495 * gdbserver/low-sun3.c (myattach): Likewise.
11496
11497 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11498
db728ff7 11499 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11500 (main): Handle "--attach".
11501
8de3c354
AC
115022002-01-16 Andrew Cagney <ac131313@redhat.com>
11503
11504 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11505 maintainer.
11506
b0129042
DJ
115072002-01-15 Daniel Jacobowitz <drow@mvista.com>
11508
11509 * c-typeprint.c (is_type_conversion_operator): Add additional
11510 check for non-conversion operators.
11511
ba8679fb 115122002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11513
11514 * linux-proc.c: Add "info proc" command, a la procfs.c.
11515 (read_mapping): New function, abstract and re-use code.
11516 (linux_find_memory_regions): Use new func read_mapping.
11517 (linux_info_proc_cmd): New function, implement "info proc".
11518 (_initialize_linux_proc): Add new command "info proc".
11519
e4f9b4d5
MS
115202002-01-15 Michael Snyder <msnyder@redhat.com>
11521
11522 * symfile.c (generic_load): Use bfd_map_over_sections method
11523 instead of manipulating bfd structure members directly.
11524 (add_section_size_callback): New function, bfd sections callback
11525 used by generic_load.
11526 (load_sections_callback): New function, bfd sections callback
11527 used by generic_load.
11528
08cf96df
EZ
115292002-01-15 Elena Zannoni <ezannoni@redhat.com>
11530
abf22e64 11531 [Based on work by Jim Blandy]
08cf96df
EZ
11532 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11533 (builtin_type_vec128): Export.
11534 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11535 types.
11536 (builtin_type_vec128): New builtin type for 128 bit vector
11537 registers.
11538 (build_gdbtypes): Initialize builtin_type_v16qi and
11539 builtin_type_v8hi. Create the vec128 register builtin type
11540 structure.
11541 (build_builtin_type_vec128): New function.
abf22e64 11542 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11543 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11544 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11545 AltiVec register to new builtin type.
11546
d7242108
DJ
115472001-01-15 Daniel Jacobowitz <drow@mvista.com>
11548
11549 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11550 to make_cv_type.
11551
4ee3352d
AC
115522002-01-14 Andrew Cagney <ac131313@redhat.com>
11553
11554 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11555 CLEAN_UP_REGISTER_VALUE.
11556 * regcache.c (supply_register): Update only call.
11557
f015b2e7
AC
115582002-01-14 Andrew Cagney <ac131313@redhat.com>
11559
11560 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11561 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11562 a29k-*-vxworks* targets as obsolete.
11563
356ae49d
MS
115642002-01-14 Michael Snyder <msnyder@redhat.com>
11565
11566 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11567 until we can resolve portability issues.
11568 * gregset.h: Remove references to fpxregs.
11569 * gcore.c (gcore_command): Initialize note_sec to NULL.
11570
ade8f45e
AC
115712002-01-13 Andrew Cagney <ac131313@redhat.com>
11572
11573 * signals.c (target_signal_to_name): Rewrite. Only use
11574 signals[].name when in bounds and non-NULL.
abf22e64 11575
89c49e7a
AC
115762002-01-13 Andrew Cagney <ac131313@redhat.com>
11577
11578 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11579 * signals.c (target_signal_to_name): Verify that SIG is within the
11580 bounds of the signals array.
11581
4daa9f9f
AC
115822002-01-13 Andrew Cagney <ac131313@redhat.com>
11583
11584 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11585
ba4bbdcb
KS
115862002-01-13 Keith Seitz <keiths@redhat.com>
11587
11588 * stack.c (print_frame_info_base): Print the frame's pc
11589 only if when print_frame_info_listing_hook is not defined.
11590
575bbeb6
KS
115912002-01-13 Keith Seitz <keiths@redhat.com>
11592
11593 * varobj.c (varobj_set_value): Make sure that there were no
11594 errors evaluating the object before attempting to set its
11595 value.
11596 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11597 so this offset adjustment is no longer necessary.
11598 (create_child): Don't set the error flag if the child is
11599 a CPLUS_FAKE_CHILD.
11600 (value_of_child): If value_fetch_lazy fails, return NULL
11601 so that callers will be notified that an error occurred.
11602 (c_value_of_variable): Delay check of variable's validity
11603 until later. We actually want all structs and unions to have
11604 the value "{...}".
11605 Do not return "???" for variables which could not be evaluated.
11606 This error condition must be returned to the caller so that it
11607 can get the error condition from gdb.
11608 (cplus_name_of_child): Adjust index for vptr before figuring
11609 out the name of the child.
11610 (cplus_value_of_child): If a child's (real) parent is not valid,
11611 don't even bother trying to give a value for it. Just return
11612 an error. Change all instances in this function.
11613 (cplus_type_of_child): If our parent is one of the "fake"
11614 parents, we need to get at the type of the real parent, and
11615 derive the child's true type using this information.
11616
b76898ab
AC
116172002-01-13 Andrew Cagney <ac131313@redhat.com>
11618
11619 From 2002-01-09 John Marshall <johnm@falch.net>:
11620 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11621 sources.redhat.com, and tweak some related URLs which had
11622 suffered from linkrot.
11623
b6649e88
AC
116242002-01-13 Andrew Cagney <ac131313@redhat.com>
11625
11626 From Jeff law:
11627 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11628 structures passed in registers.
11629
82cc5033
EZ
116302002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11631
11632 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11633 white space which prevented compilation. Reported by DSK
11634 <dsk@student.unsw.edu.au>.
11635
ba5f2f8a
MS
116362002-01-11 Michael Snyder <msnyder@redhat.com>
11637
fbd35540
MS
11638 * symfile.c (build_section_addr_info_from_section_tab):
11639 Use bfd access method instead of manipulating bfd directly.
11640 (syms_from_objfile): Ditto.
11641 (simple_overlay_update_1): Ditto.
11642 (simple_overlay_update): Ditto.
11643 (generic_load): Ditto.
11644 (overlay_unmapped_address): FIXME comment, bfd access methods.
11645 (sections_overlap): FIXME comment, bfd access methods.
11646 (pc_in_mapped_range): FIXME comment, bfd access methods.
11647 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11648 (section_is_mapped): FIXME comment, bfd access methods.
11649 (section_is_overlay): FIXME comment, bfd access methods.
11650
ba5f2f8a
MS
11651 * symfile.c (generic_load): Whitespace and long line cleanups.
11652 Remove duplicate variable, change several local variables to
11653 more appropriate data types.
11654 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11655
17df2af6
AC
116562002-01-12 Andrew Cagney <ac131313@redhat.com>
11657
11658 From Peter Schauer:
11659 * language.c (longest_local_hex_string_custom): Use phex_nz to
11660 convert NUM to a hex string.
11661
ec920329
EZ
116622002-01-12 Elena Zannoni <ezannoni@redhat.com>
11663
11664 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11665 the function.
538a76d6 11666 Update Copyright year.
ec920329 11667
3abd2e01
AC
116682002-01-12 Andrew Cagney <ac131313@redhat.com>
11669
11670 * language.c (longest_raw_hex_string): Delete unused function.
11671
b21b22e0
PS
116722002-01-11 Petr Sorfa <petrs@caldera.com>
11673
11674 * MAINTAINERS (write-after-approval): Add myself.
11675 * dwarf2read.c (read_tag_string_type): Handling of
11676 DW_AT_byte_size.
11677 (read_tag_string_type): FORTRAN fix to prevent propagation of
11678 first string size.
11679 (set_cu_language): Handling of DW_LANG_Fortran95
11680
747fe712
RE
116812002-01-11 Richard Earnshaw <rearnsha@arm.com>
11682
11683 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11684 GETPID(inferior_ptid).
11685 (store_inferior_registers): Likewise.
11686
f1bea926
JM
116872002-01-10 Jason Merrill <jason@redhat.com>
11688
11689 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11690 Fix DW_OP_minus.
11691
ae940673
AC
116922002-01-10 Andrew Cagney <ac131313@redhat.com>
11693
11694 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11695 and bfd/elf32-sh-nbsd.c.
11696
00546b04
MS
116972002-01-10 Michael Snyder <msnyder@redhat.com>
11698
352ed7b4
MS
11699 * NEWS: Mention --pid and corefile/proc-id behavior change.
11700
c18be923
MS
11701 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11702 * gcore.c: Include cli/cli-decode.h instead of command.h.
11703
00546b04
MS
11704 * main.c (captured_main): Add new command line option "--pid".
11705 If the second command line argument (following the symbol-file)
11706 begins with a digit, try to attach to it before trying to open
11707 it as a corefile.
11708 (print_gdb_help): Document the "--pid" argument.
11709
db60ec62
EZ
117102002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11711
11712 * completer.c (command_completer): New function.
11713
11714 * completer.h <command_completer>: Add prototype.
11715
11716 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11717 completer for the "help" command.
11718
39c22d1a
JM
117192002-01-09 Jason Merrill <jason@redhat.com>
11720
11721 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11722
c564377f
MS
117232002-01-09 Michael Snyder <msnyder@redhat.com>
11724
975aec09
MS
11725 * i386-linux-nat.c (fill_fpxregset): Make global.
11726 (store_fpxregset): Ditto.
11727
db4a10fa
MS
11728 * gregset.h (gdb_fpxregset_t): Define.
11729 (supply_fpxregset): Prototype.
11730 (fill_fpxregset): Prototype.
11731
c564377f
MS
11732 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11733
c3d45d70
RE
117342002-01-09 Richard Earnshaw <rearnsha@arm.com>
11735
11736 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11737 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11738 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11739
fcc87af1
AC
117402002-01-09 Andrew Cagney <ac131313@redhat.com>
11741
11742 * MAINTAINERS: Update target maintainer rules so that any
11743 Maintainer can approve a tested patch for a maintenance-only
11744 target.
11745
dd96c05b
RE
117462002-01-09 Richard Earnshaw <rearnsha@arm.com>
11747
d4297db9 11748 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11749
d4297db9 11750 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11751 IN_SIGTRAMP.
11752
145fdc6e
MS
117532002-01-08 Michael Snyder <msnyder@redhat.com>
11754
11755 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11756 real name of the executable, rather than the /proc name.
11757
be4d1333
MS
117582002-01-03 Michael Snyder <msnyder@redhat.com>
11759
11760 Implement a "generate-core-file" command in gdb, save target state.
11761 * gcore.c: New file. Implement new command 'generate-core-file'.
11762 Save a corefile image of the current state of the inferior.
11763 * linux-proc.c: Add linux-specific code for saving corefiles.
11764 * target.h (struct target_ops): Add new target vectors for saving
11765 corefiles; to_find_memory_regions and to_make_corefile_notes.
11766 (target_find_memory_regions): New macro.
11767 (target_make_corefile_notes): New macro.
11768 * target.c (update_current_target): Inherit new target methods.
11769 (dummy_find_memory_regions): New place-holder method.
11770 (dummy_make_corefile_notes): New place-holder method.
11771 (init_dummy_target): Initialize new dummy target vectors.
11772 * exec.c (exec_set_find_memory_regions): New function.
11773 Allow the exec_ops vector for memory regions to be taken over.
11774 (exec_make_note_section): New function, target vector method.
11775 * defs.h (exec_set_find_memory_regions): Export prototype.
11776 * procfs.c (proc_find_memory_regions): New function, corefile method.
11777 (procfs_make_note_section): New function, corefile method.
11778 (init_procfs_ops): Set new target vector pointers.
11779 (find_memory_regions_callback): New function.
11780 (procfs_do_thread_registers): New function.
11781 (procfs_corefile_thread_callback): New function.
11782 * sol-thread.c (sol_find_memory_regions): New function.
11783 (sol_make_note_section): New function.
11784 (init_sol_thread_ops): Initialize new target vectors.
11785 * inftarg.c (inftarg_set_find_memory_regions): New function.
11786 Allow to_find_memory_regions vector to be taken over.
11787 (inftarg_set_make_corefile_notes): New function.
11788 Allow to_make_corefile_notes vector to be taken over.
11789 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11790 interface layer if not target_has_execution (may be a corefile).
11791 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11792 * config/sparc/sun4sol2.mh: Ditto.
11793 * config/alpha/alpha-linux.mh: Ditto.
11794 * config/arm/linux.mh: Ditto.
11795 * config/i386/x86-64linux.mh: Ditto.
11796 * config/ia64/linux.mh: Ditto.
11797 * config/m68k/linux.mh: Ditto.
11798 * config/mips/linux.mh: Ditto.
11799 * config/powerpc/linux.mh: Ditto.
11800 * config/sparc/linux.mh: Ditto.
11801
c6b92abd
MS
118022002-01-07 Michael Snyder <msnyder@redhat.com>
11803
11804 * arm-linux-nat.c: Remove references to regcache.c internal data
11805 (registers[] and register_valid[]).
11806
4b09dc8c
MS
118072002-01-07 Michael Snyder <msnyder@redhat.com>
11808
abf22e64
AJ
11809 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11810 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11811 symbol file and shlibs.
11812 * Makefile.in: Add rule for linux-proc.o.
11813 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11814 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11815 * config/arm/linux.mh: Ditto.
11816 * config/i386/linux.mh: Ditto.
11817 * config/i386/x86-64linux.mh: Ditto.
11818 * config/ia64/linux.mh: Ditto.
11819 * config/m68k/linux.mh: Ditto.
11820 * config/mips/linux.mh: Ditto.
11821 * config/powerpc/linux.mh: Ditto.
11822 * config/sparc/linux.mh: Ditto.
11823
c25b74ac
PM
118242002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11825
11826 * win32-nat.c: Add i386-tdep.h dependency.
11827
94cd915f
MS
118282002-01-07 Michael Snyder <msnyder@redhat.com>
11829
c7cccb76
MS
11830 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11831 instead of bfd_get_arch_size. Don't bail out just because
11832 there's no exec_bfd.
abf22e64 11833
34c0bd93
MS
11834 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11835 * p-valprint.c (pascal_object_print_value): Ditto.
11836 * somread.c (som_symtab_read): Ditto.
11837 * symfile.c (simple_free_overlay_region_table): Ditto.
11838 * valops.c (value_assign): Ditto.
11839
21c1c920
MS
11840 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11841 use tilde_expand and strerror for opening save-tracepoints file.
11842
5bbd998e
MS
11843 * thread-db.c (thread_db_new_objfile): Indendation fix.
11844
94cd915f
MS
11845 * infptrace.c (GDB_MAX_ALLOCA): New define.
11846 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11847 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11848 can be overridden with whatever value is appropriate to the host).
11849 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11850 alloca to allocate potentially large buffer.
11851 * rs6000-nat.c (child_xfer_memory): Ditto.
11852 * symm-nat.c (child_xfer_memory): Ditto.
11853 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11854
494e8a93
JSC
118552002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11856
11857 From Nick Clifton <nickc@redhat.com>
11858 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11859
d0e1d48e
MS
118602002-01-07 Michael Snyder <msnyder@redhat.com>
11861
abf22e64 11862 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11863 Don't use exec_bfd if it's NULL.
11864
290b2c7a
MK
118652002-01-06 Mark Kettenis <kettenis@gnu.org>
11866
abf22e64 11867 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11868
aef21287
AC
118692002-01-06 Andrew Cagney <ac131313@redhat.com>
11870
11871 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11872 * gnu-nat.c: Ditto.
11873
30efa627
AC
118742002-01-06 Andrew Cagney <ac131313@redhat.com>
11875
11876 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11877 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11878 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11879 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11880 z8k-coff have not been multi-arched. Update z8k-coff build
11881 status.
11882
9b4ff276
AC
118832002-01-06 Andrew Cagney <ac131313@redhat.com>
11884
11885 * MAINTAINERS: Mark a29k target as obsolete.
11886 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11887 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11888 comments.
11889 * NEWS: Note that a29k targets are obsolete.
11890 * a29k-tdep.c: Mark as obsolete.
11891 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11892 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11893 a29k-*-vxworks* targets as obsolete.
11894 * remote-adapt.c: Obsolete.
11895 * remote-eb.c: Obsolete.
11896 * remote-mm.c: Obsolete.
11897 * remote-udi.c: Obsolete.
11898 * config/a29k/a29k-udi.mt: Obsolete.
11899 * config/a29k/a29k.mt: Obsolete.
11900 * config/a29k/tm-a29k.h: Obsolete.
11901 * config/a29k/tm-vx29k.h: Obsolete.
11902 * config/a29k/vx29k.mt: Obsolete.
11903
a9011d31
AC
119042002-01-05 Andrew Cagney <ac131313@redhat.com>
11905
11906 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11907 with BFD_ENDIAN_BIG.
11908
9299404e
AC
119092002-01-05 Andrew Cagney <ac131313@redhat.com>
11910
11911 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11912 * configure, config.in: Re-generate.
11913 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11914 * defs.h: Do not include <endian.h>.
11915
7e89e357
JT
119162002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11917
11918 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11919 * config.in: Regenerate.
11920 * configure.in: Update copyright years.
11921 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11922 * configure: Regenerate.
11923 * i386bsd-nat.c: Update copyright years.
11924 (fill_gregset): Use regcache_collect.
11925 (fetch_inferior_registers): Only fetch integer registers
11926 if requested to do so. Add support for XMM registers
11927 using PT_GETXMMREGS.
11928 (store_inferior_registers): Only store integer registers
11929 if requested to do so. Add support for XMM registers
11930 using PT_SETXMMREGS.
11931 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11932 (store_inferior_registers): Remove.
11933 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11934 (fetch_elfcore_registers): New function.
11935 (i386nbsd_elfcore_fns): New.
11936 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11937 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11938 i386bsd-nat.o.
11939 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11940 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11941 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11942 * config/i386/tm-nbsd.h: Update copyright years.
11943 (HAVE_SSE_REGS): Define.
11944 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11945 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11946 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11947 (SIGCONTEXT_PC_OFFSET): Remove.
11948 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11949
a752853e
AC
119502002-01-05 Andrew Cagney <ac131313@redhat.com>
11951
11952 * configure.tgt: Remove powerpc-*-macos* target.
11953 * config/m68k/xm-mpw.h: Delete file.
11954 * config/xm-mpw.h: Delete file.
11955 * ser-mac.c: Delete file.
11956 * mpw-make.sed: Delete file.
11957 * mpw-config.in: Delete file.
11958 * mac-xdep.c: Delete file.
11959 * mac-gdb.r: Delete file.
11960 * mac-defs.h: Delete file.
11961 * mac-nat.c: Delete file.
11962 * config/powerpc/macos.mh: Delete file.
11963 * config/powerpc/macos.mt: Delete file.
11964 * config/powerpc/nm-macos.h: Delete file.
11965 * config/powerpc/tm-macos.h: Delete file.
11966 * source.c (openp, open_source_file): Remove obsolete code.
11967 * top.c (gdb_readline): Ditto.
11968 * utils.c (query): Ditto.
11969 * event-top.c (display_gdb_prompt): Ditto.
11970 * Makefile.in (ser-mac.o): Delete obsolete target.
11971 * NEWS: Update.
11972
d7449b42
AC
119732002-01-04 Andrew Cagney <ac131313@redhat.com>
11974
11975 * defs.h (BIG_ENDIAN): Delete macro definition.
11976 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11977 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11978 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11979 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11980 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11981 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11982 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11983 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11984 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11985 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11986 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11987 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11988 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11989 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11990 * gdbarch.c: Re-generate.
11991
356374e8
DJ
119922002-01-04 Daniel Jacobowitz <drow@mvista.com>
11993
11994 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11995 for core files.
11996
a2b8f8f8
JT
119972002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11998
11999 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12000
12466af9
AC
120012002-01-04 Andrew Cagney <ac131313@redhat.com>
12002
12003 * value.h (value_ptr): Delete typedef.
12004
3549ab40
JT
120052002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12006
12007 * i386nbsd-nat.c: Update copyright years.
12008 Include i386-tdep.h.
12009
fedbd091
EZ
120102002-01-04 Elena Zannoni <ezannoni@redhat.com>
12011
12012 * stabsread.c: Update copyright years.
12013
12014 From Debashis Mahata <debashis.mahata@wipro.com>:
12015 (read_struct_fields): Deal with Sun C compiler erroneous stab
12016 output for structs and unions.
fec8b34f 12017 Fix PR gdb/269.
fedbd091 12018
eb43544b
DJ
120192002-01-04 Daniel Jacobowitz <drow@mvista.com>
12020
12021 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12022 prototype.
12023
1514d34e
DJ
120242002-01-04 Daniel Jacobowitz <drow@mvista.com>
12025
12026 * cp-abi.c: Fix whitespace.
12027 (baseclass_offset): New wrapper function.
12028 * cp-abi.h (baseclass_offset): Add prototype.
12029 (struct cp_abi_ops): Add baseclass_offset pointer.
12030
12031 * valops.c (vb_match): Move to...
12032 * gnu-v2-abi.c (vb_match): here.
12033 * valops.c (baseclass_offset): Move to...
12034 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12035
12036 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12037
12038 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12039 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12040 * hpacc-abi.c (init_hpacc_ops): Likewise.
12041
7f8c9282
DJ
120422002-01-04 Daniel Jacobowitz <drow@mvista.com>
12043
12044 * valops.c (find_overload_match): Accept obj as a
12045 reference parameter. Update it before returning.
12046 * value.h (find_overload_match): Update prototype.
12047 * eval.c (evaluate_subexp_standard): Pass object to
12048 find_overload_match by reference.
12049
f23631e4
AC
120502002-01-03 Andrew Cagney <ac131313@redhat.com>
12051
12052 * valarith.c: Replace value_ptr with struct value pointer. Remove
12053 register attribute from value declarations.
12054 * valops.c: Ditto.
12055 * value.h: Ditto.
12056 * scm-lang.c (scm_lookup_name): Ditto.
12057
79e10fab 120582002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12059
79e10fab
AC
12060 Abstract the functionality of iterating over mapped memory
12061 regions into a general purpose iterator function.
abf22e64 12062 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12063 iterator for memory sections.
12064 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12065 (solib_mappings_callback): New function, callback for above.
12066 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12067 (info_mappings_callback): New function, callback for above.
12068
12069 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12070
c5ad026a
MK
120712002-01-01 Mark Kettenis <kettenis@gnu.org>
12072
d2a7c97a
MK
12073 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12074 * i386-tdep.c: Include "elf-bfd.h".
12075 (process_note_abi_tag_sections): New function.
12076 (i386_gdbarch_init): Add code to recognize various OS/ABI
12077 combinations.
12078
c5ad026a
MK
12079 * maint.c (_initialize_maint_cmds): Add missing \ in
12080 string-literal.
12081
a1a5b71e 12082For older changes see ChangeLog-2001
c906108c
SS
12083\f
12084Local Variables:
12085mode: change-log
12086left-margin: 8
12087fill-column: 74
12088version-control: never
12089End:
This page took 0.847969 seconds and 4 git commands to generate.