2002-10-23 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87f2f08c
DC
12002-10-23 David Carlton <carlton@math.stanford.edu>
2
3 * symtab.c: Delete cplusplus_hint.
4 Delete prototype for find_template_name_end.
5
88cda038
EZ
62002-10-23 Elena Zannoni <ezannoni@redhat.com>
7
8 * symtab.h: Update comment.
9
2625d86c
MS
102002-10-23 Michael Snyder <msnyder@redhat.com>
11
12 * printcmd.c (address_info): Restore quotes in output.
13 * valops.c (value_of_local): Restore quotes in error message.
14
9cc0d196
EZ
152002-10-23 Elena Zannoni <ezannoni@redhat.com>
16
17 * symtab.c (symbol_demangled_name): New function.
18 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
19 turning most of it into a function.
20 (symbol_demangled_name): Export.
21
19de93d0
MS
222002-10-23 Michael Snyder <msnyder@redhat.com>
23
24 * valops.c (value_of_local): Restore quotes in error message.
25
89aad1f9
EZ
262002-10-23 Elena Zannoni <ezannoni@redhat.com>
27
28 * symtab.c (symbol_init_language_specific): New function.
29 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
30 turning most of it into a function.
31 (symbol_init_language_specific): Export.
32
d9fa45fe
DC
332002-10-23 David Carlton <carlton@math.stanford.edu>
34
35 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
36 (dwarf_attr_name): Ditto.
37 (dwarf_type_encoding_name): Ditto.
38 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
39 (process_die): Handle DW_TAG_namespace,
40 DW_TAG_imported_declaration, DW_TAG_imported_module.
41 (read_namespace): New function.
42
1045b512
JB
432002-10-22 Joel Brobecker <brobecker@gnat.com>
44
45 * configure.in: Define NEW_PROC_API on Interix too.
46 * configure: Regenerate.
47
482002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
49
50 * configure: Regenerate using the proper version of autoconf.
51
3987b9d4
EZ
522002-10-21 Elena Zannoni <ezannoni@redhat.com>
53
54 * findvar.c (read_var_value): Temporarily disable TLS code, until
55 complete TLS support is added.
56
9d774e44
EZ
572002-10-21 Jim Blandy <jimb@redhat.com>
58 Elena Zannoni <ezannoni@redhat.com>
59
60 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
61 for thread local storage locations.
62 (struct symbol): Add objfile field.
63 (SYMBOL_OBJFILE): Define.
64 * dwarf2read.c (is_thread_local): New static variable.
65 (new_symbol): If variable is in thread local fill in address class
66 and objfile appropriately.
67 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
68 stack operation.
69 * printcmd.c (address_info): Print the information for thread
70 local storage variable.
71 * findvar.c (read_var_value): In case of thread local variable,
72 defer to the target vector code to compute address.
73
bc4a16ae
EZ
742002-10-21 Elena Zannoni <ezannoni@redhat.com>
75
76 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
77 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
78
407caf07
EZ
792002-10-21 Elena Zannoni <ezannoni@redhat.com>
80
81 * symtab.h (address_class): Rename
82 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
83 * hpread.c (hpread_process_one_debug_symbol): Ditto.
84 * printcmd.c (address_info): Ditto.
85 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
86
005328e3
MK
872002-10-20 Mark Kettenis <kettenis@gnu.org>
88
afdb036a
MK
89 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
90 DBREG_DRX macro to acces debug registers.
91
ca02e098
MK
92 * Makefile.in (i386obsd-tdep.o): New target.
93
03cc47f7
MK
94 * solib-sunos.c: Include "bcache.h" and "regcache.h".
95 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
96
005328e3
MK
97 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
98 * config/i386/obsd.mt: New file.
99 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
100 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
101 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
102 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
103 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
104 * i386obsd-tdep.c: New file.
105
9c96f9f2
AF
1062002-10-19 Adam Fedor <fedor@gnu.org>
107
108 * objc-exp.y (name_not_typename): Fix invalid comment.
109
ce1ed485
MK
1102002-10-20 Mark Kettenis <kettenis@gnu.org>
111
112 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
113 to allocate partial syms and macro byte caches.
114
1efc7aaa
DC
1152002-10-18 David Carlton <carlton@math.stanford.edu>
116
117 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
118
7e1d63ec
AF
1192002-10-18 Adam Fedor <fedor@gnu.org>
120
121 * stabsread.c (find_name_end): New function.
122 (define_symbol): Use it.
123
6e8d29a9
DJ
1242002-10-18 Daniel Jacobowitz <drow@mvista.com>
125
126 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
127 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
128 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
129 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
130
1efc7aaa 1312002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
132
133 * symfile.h: Add opaque declaration for struct obstack.
134 Declare obsavestring to take a const char *.
135 * symfile.c (obsavestring): Make first argument a const char *.
136
1aeae86e
AF
1372002-10-16 Adam Fedor <fedor@gnu.org>
138
139 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
140 names when matching breakpoints in current file.
141
8b2dbe47
KB
1422002-10-16 Kevin Buettner <kevinb@redhat.com>
143
144 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
145 (read_tag_pointer_type): Add address class support.
146 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
147 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
148 New methods.
149 * gdbarch.h, gdbarch.c: Regenerate.
150 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
151 (make_type_with_address_space, recursive_type_dump): Add address
152 class support.
153 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
154 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
155 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
156
74451869
KD
1572002-10-16 Klee Dienes <kdienes@apple.com>
158
159 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
160 to get the last character of a char[] buffer, not
161 name[sizeof(vptr_name)-1].
162
ff4cb3e8
AF
1632002-10-14 Adam Fedor <fedor@gnu.org>
164
165 * symtab.h: New objc_specific struct.
166 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
167 (SYMBOL_DEMANGLED_NAME): Likewise.
168
da2cf7e0
AF
1692002-10-14 Adam Fedor <fedor@gnu.org>
170
171 * symfile.c (init_filename_language_table): Add ObjC file extension.
172
4a351cef
AF
1732002-10-14 Adam Fedor <fedor@gnu.org>
174
175 * utils.c (puts_filtered_tabular): New function.
176 (fprintf_symbol_filtered): Get ObjC demangled name.
177 * defs.h (puts_filtered_tabular): Declared.
178
9750e763
KB
1792002-10-14 Kevin Buettner <kevinb@redhat.com>
180
181 * c-lang.h (c_type_print_varspec_prefix): Delete.
182 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
183 ``need_post_space'' parameter. Adjust all callers.
184
eee771c1
DJ
1852002-10-14 Daniel Jacobowitz <drow@mvista.com>
186
187 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
188 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
189 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
190 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
191
46c82446
AF
1922002-10-13 Adam Fedor <fedor@gnu.org>
193
194 * source.c (print_source_lines): Update comments.
195
d069f99d
AF
1962002-10-13 Adam Fedor <fedor@gnu.org>
197
198 * valops.c (value_of_local): New function.
199 (value_of_this): Use it.
200 * value.h (value_of_local): Declared.
201
53c551b7
AF
2022002-10-13 Adam Fedor <fedor@gnu.org>
203
204 * parse.c: (length_of_subexp, prefixify_subexp): Handle
205 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
206
eb392fbf
AF
2072002-10-12 Adam Fedor <fedor@gnu.org>
208
209 * language.c (binop_result_type): Add language_objc to case.
210 (integral_type): Likewise.
211 (character_type): Likewise.
212 (string_type): Likewise.
213 (boolean_type): Likewise.
214 (structured_type): Likewise.
215 (binop_type_check): Likewise.
216
e2b23ee9
AF
2172002-10-11 Adam Fedor <fedor@gnu.org>
218
219 * printcmd.c (address_info): Print 'self' for ObjC.
220
b01ab485
AF
2212002-10-11 Adam Fedor <fedor@gnu.org>
222
223 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
224 OP_SELF.
225
806e6073
AF
2262002-10-11 Adam Fedor <fedor@gnu.org>
227
228 * language.h (CAST_IS_CONVERSION): Add language_objc.
229
50f85cdf
AF
2302002-10-11 Adam Fedor <fedor@gnu.org>
231
232 * defs.h (enum language): Add language_objc.
233
0d540cdf
KD
2342002-10-11 Klee Dienes <kdienes@apple.com>
235
236 * findvar.c (read_memory_typed_address): New function.
237 * gdbcore.h (read_memory_typed_address): Add prototype.
238 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
239 to read a value destined for a CORE_ADDR, not read_memory_integer.
240 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
241 (f77_get_dynamic_lowerbound): Ditto.
242
d5dc7960
MH
2432002-10-11 Martin M. Hunt <hunt@redhat.com>
244
245 * utils.c (string_to_core_addr): After turning string into
246 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
247 which will do necessary sign-extension, etc.
248
8343f86c
DJ
2492002-10-11 Daniel Jacobowitz <drow@mvista.com>
250
251 * c-exp.y (THIS): Delete token and grammar rule.
252 (yylex): Don't return THIS.
253 * cp-valprint.c (vtbl_ptr_name_old): Delete.
254 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
255 * demangle.c (cplus_markers): Update comment. Put '$'
256 first. Remove CPLUS_MARKER.
257 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
258 * jv-exp.y (THIS): Delete token and grammar rule.
259 (yylex): Don't return THIS.
260 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
261 * objc-exp.y (THIS): Delete token and grammar rule.
262 (yylex): Don't return THIS.
263 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
264 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
265 (read_member_functions): Likewise for opname.
266 (read_tilde_fields): Use is_cplus_marker.
267
268 * defs.h (CPLUS_MARKER): Don't define.
269 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
270 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
271 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
272 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
273 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
274
275 * config/i386/tm-i386v4.h: Delete file.
276 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
277 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
278 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
279 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
280 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
281 * config/i386/i386sco5.mt (TM_FILE): Likewise.
282 * config/i386/i386v4.mt (TM_FILE): Likewise.
283 * config/i386/ncr3000.mt (TM_FILE): Likewise.
284
967c0d83
MM
2852002-10-10 Marko Mlinar <markom@opencores.org>
286
287 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
288 accidentially not commited 2002-10-09
289 * gdbarch.h, gdbarch.c: Re-generate.
290
f74fa174
MM
2912002-10-09 Marko Mlinar <markom@opencores.org>
292
293 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
294 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
295 * gdbarch.h, gdbarch.c: Re-generate.
296
57349743
JB
2972002-10-08 Petr Sorfa <petrs@caldera.com>
298
299 Revised and re-submitted by John Wolfe <jlw@caldera.com>
300
301 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
302 so we can work on more than one compilation unit at a time. This
303 helps prepare GDB to handle inter-CU die references.
304 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
305 the code to be defined before struct comp_unit_head.
306 (comp_unit_head): Added new members - offset, cu_head,
307 begin_die, next and dwarf2_abbrevs.
308 (dwarf2_abbrevs): Removed single static var; now member of
309 struct comp_unit_head.
310 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
311 members.
312 (psymtab_to_symtab_1): Changed to work with the new
313 struct comp_unit_head.
314 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
315 constructs the dwarf2_abbrevs[] inside the cu_header.
316 (dwarf2_empty_abbrev_table): Now expects a ptr to a
317 dwarf2_abbrev table to clean up.
318 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
319 handling of dwarf2_abbrevs inside the cu_header.
320 (read_partial_die): Now supports the call to the new
321 dwarf2_lookup_abbrev.
322 (read_full_die): Now supports the call to the new
323 dwarf2_lookup_abbrev.
324
4092aadb
CF
3252002-10-06 Christopher Faylor <cgf@redhat.com>
326
327 * Makefile.in (install-gdbtk): Add missing continuation backslash to
328 insure that shell variables, such as "transformed_name" are propagated
329 to later shell statements in rule.
330
af0b2512
MK
3312002-10-06 Mark Kettenis <kettenis@gnu.org>
332
333 * config/i386/nm-i386sco.h: Add protection against
334 multiple-inclusion. Include "i386/nm-i386v.h".
335 (REGISTER_U_ADDR): Remove define.
336 (i386_register_u_addr): Remove prototype.
337
d6020d45
MS
3382002-10-04 Michael Snyder <msnyder@redhat.com>
339
340 * m32r-stub.c (handle_exception): Make sure exception is "trap"
341 before treating it as a single-step event.
342
7248f48e
AF
3432002-10-03 Adam Fedor <fedor@gnu.org>
344
345 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
346 (objc_demangle): Remove assignment in if statements, Replace
347 free with xfree.
348 (add_msglist): Likewise.
349 (end_msglist): Likewise.
350 (complare_selectors): Likewise.
351 (selectors_info): Likewise.
352 (compare_classes): Likewise.
353 (classes_info): Likewise.
354 (print_object_command): Likewise.
355 (find_objc_msgcall_submethod): Replace PTR with void *.
356 * objc-lang.h: Remove check for __STDC__.
357
52c6a6ac
JJ
3582002-10-03 Jeff Johnston <jjohnstn@redhat.com>
359
360 * ui-out.h (ui_out_field_fmt_int): New prototype.
361 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
362 of field width and alignment.
363 * stack.c (print_frame_info_base): When printing frame level, use
364 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
365 PR gdb/192
366
7e3cec17
JJ
3672002-10-03 Jeff Johnston <jjohnstn@redhat.com>
368
369 * MAINTAINERS: Add self to Write After Approval list.
370
a58dd373
EZ
3712002-10-02 Elena Zannoni <ezannoni@redhat.com>
372
373 * infcmd.c (interrupt_target_command_wrapper): Delete.
374 (interrupt_target_command): Make non static.
375 (nofp_registers_info): Make static.
376 * stack.c (return_command_wrapper): Delete.
377 (return_command): Make non static.
378
cee6ddeb
EZ
3792002-10-02 Elena Zannoni <ezannoni@redhat.com>
380
381 * event-top.c (gdb_setup_readline): New function. Code moved from
382 _initialize_event_loop().
383 (_initialize_event_loop): Call gdb_setup_readline().
384
c4ed33b9
AC
3852002-10-02 Andrew Cagney <ac131313@redhat.com>
386
387 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
388 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
389 * gdbarch.h, gdbarch.c: Re-generate.
390
cef4f5dd
DJ
3912002-10-02 Daniel Jacobowitz <drow@mvista.com>
392
393 Fix PR gdb/778
394 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
395 before recursing.
396 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
397 of fill_in_vptr_fieldno.
398
36dc181b 3992002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 400
36dc181b
EZ
401 * inferior.h (registers_info, stepi_command, nexti_command,
402 continue_command, interrupt_target_command): Export from infcmd.c.
403 * frame.h (args_info, selected_frame_level_changed_hook,
404 return_command): Export from stack.c.
405 * v850ice.c (stepi_command, nexti_command, continue_command): use
406 prototypes from inferior.h.
407 * tracepoint.c (registers_info, args_info, locals_info): Use
408 prototypes from frame.h and inferior.h.
409 * Makefile.in (mi-main.o): Add dependency on frame.h.
410
6f99cb26
AC
4112002-10-02 Andrew Cagney <ac131313@redhat.com>
412
da3eff49
AC
413 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
414 value in register 3 adjusted by ppc_gp0_regnum.
415
6f99cb26
AC
416 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
417
da615bee
MM
4182002-10-02 Marko Mlinar <markom@opencores.org>
419
420 * MAINTAINERS: Add myself to the Write After Approval list.
421
d154bee2
AO
4222002-10-01 Alexandre Oliva <aoliva@redhat.com>
423
62a49b2c
AO
424 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
425 of the section for the N64 ABI, fixed.
426
d154bee2
AO
427 * config/mips/tm-irix6.h: Include solib.h.
428
ed348acc
EZ
4292002-10-01 Elena Zannoni <ezannoni@redhat.com>
430
431 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
432 GNU operators.
433
da0f9dcd
AC
4342002-10-01 Andrew Cagney <ac131313@redhat.com>
435
436 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
437 and that "mi0" syntax has been removed.
438
bdf64bac
DC
4392002-09-30 David Carlton <carlton@math.stanford.edu>
440
441 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
442 * ppc-sysv-tdep.c: #include "gdb_string.h".
443 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
444 pacify GCC.
445
54c2a1e6
AC
4462002-10-01 Andrew Cagney <ac131313@redhat.com>
447
448 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
449 "vrsave"'s register number.
450
cedea778
AC
4512002-09-30 Andrew Cagney <ac131313@redhat.com>
452
453 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
454 use frame_unwind_signed_register to obtain the PC.
455 (mips_frame_chain): Handle a generic dummy frame.
456 (mips_init_extra_frame_info): When a generic dummy frame, don't
457 re-compute the frame base.
458 (mips_pop_frame): Handle generic dummy frames.
459 (mips_gdbarch_init): When generic dummy frames, set
460 use_generic_dummy_frames, push_dummy_frame to
461 generic_push_dummy_frame, pc_in_call_dummy to
462 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
463 generic_save_dummy_frame_tos.
464
68315eb8
AC
4652002-09-30 Andrew Cagney <ac131313@redhat.com>
466
467 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
468 against TOP when TOP was explictly set.
469 (generic_push_dummy_frame): Set TOP to zero.
470
3b8630c3
EZ
4712002-09-30 Elena Zannoni <ezannoni@redhat.com>
472
473 * event-loop.c (start_event_loop): Rename variable 'result' to
474 'gdb_result', to avoid conflicts with upcoming intepreters changes.
475
28ee05e9
KS
4762002-09-30 Keith Seitz <keiths@redhat.com>
477
478 * gdb-events.sh (selected_thread_changed): New event.
479 * gdb-events.c: Regenerated.
480 * gdb-events.h: Regenerated.
481
6eecb1c8
HPN
4822002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
483
484 * MAINTAINERS: Add self to Write After Approval list.
485
92df71f0
FN
4862002-09-30 Fernando Nasser <fnasser@redhat.com>
487
3b8630c3
EZ
488 * disasm.c: New file.
489 * disasm.h: New file.
92df71f0
FN
490 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
491 (compare_lines): Ditto.
492 (dump_insns): Ditto.
3b8630c3
EZ
493 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
494 argument.
92df71f0 495 (do_assembly_only): Ditto.
3b8630c3
EZ
496 (do_disassembly): Renamed to gdb_disassembly and moved to
497 disasm.c. Sdded uiout argument.
498 * Makefile.in: Add new files. Reorder SFILES list. Update
499 dependencies. Include libgdb.a later in the insight executable.
92df71f0 500
0c22854d
AC
5012002-09-29 Andrew Cagney <ac131313@redhat.com>
502
503 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
504 bfd/elf64-alpha-fbsd.c.
505
e67f2023
AC
5062002-09-29 Andrew Cagney <ac131313@redhat.com>
507
508 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
509 i386gnu-tdep.c.
510
89396210
AC
5112002-09-29 Andrew Cagney <ac131313@redhat.com>
512
513 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
514 __FUNCTION__.
515 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
516 function name.
517 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
518 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
519 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
520 (S_msg_sig_post_reply): Ditto.
521
7079c36c
CV
5222002-09-28 Corinna Vinschen <vinschen@redhat.com>
523
89396210
AC
524 * sh-tdep.c (sh_use_struct_convention): Use definition according
525 to ABI.
7079c36c
CV
526 (sh_push_arguments): Store in register with correct endianess.
527 (sh_default_store_return_value): Ditto.
528 (sh_gdbarch_init): Set sizeof long double to 8.
529
975ac915
MK
5302002-09-27 Mark Kettenis <kettenis@gnu.org>
531
532 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
533 Fix some whitespace problems.
534
9bbe19fb
DC
5352002-09-27 David Carlton <carlton@math.stanford.edu>
536
537 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
538 (mcore-tdep.o): Ditto.
539 (ns32k-tdep.o): Ditto.
540 (ns32knbsd-tdep.o): Ditto.
541 (sh3-rom.o): Ditto.
542 (vax-tdep.o): Ditto.
543 * cris-tdep.c: #include "gdb_string.h"
544 * mcore-tdep.c: Ditto.
545 * ns32k-tdep.c: Ditto.
546 * ns32knbsd-tdep.c: Ditto.
547 * sh3-rom.c: Ditto.
548 * vax-tdep.c: Ditto.
549
43b2fdc7
DC
5502002-09-27 David Carlton <carlton@math.stanford.edu>
551
552 * config/djgpp/fnchange.lst: Add entries for
553 gdb/testsuite/gdb.c++/m-static files.
554
e8cfbbd9
JW
5552002-09-27 Jim Wilson <wilson@redhat.com>
556
557 * MAINTAINERS: Add myself to the Write After Approval list.
558
43b2fdc7 5592002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
560
561 * mips-tdep.c (find_proc_desc): Initialize startaddr.
562
563
9f3b7f07
AC
5642002-09-26 Andrew Cagney <ac131313@redhat.com>
565
566 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
567 frame.
568
11269d7e
AC
5692002-09-26 Andrew Cagney <ac131313@redhat.com>
570
571 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
572 (rs6000_struct_return_address): Delete variable.
573 (rs6000_store_struct_return): Update.
574 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
575 deprecated_extract_struct_value_address.
576 (rs6000_frame_align): New function.
577 (rs6000_gdbarch_init): Set frame_align.
578
f15ab4a7
AC
5792002-09-26 Andrew Cagney <ac131313@redhat.com>
580
581 From Grace Sainsbury <graces@redhat.com>:
582 * Makefile.in (gdbtk-main.o): New target.
583 (gdb.o): New target.
584 (main_h): Define.
585 (main.o): Update dependencies.
586 (gdb$(EXEEXT)): Add gdb.o.
587 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
588 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
589 (SUBDIR_GDBTK_CLEAN): Set.
590 (install-gdbtk): Install the insight binary.
591 (uninstall-gdbtk): New target.
592 (all-gdbtk, clean-gdbtk): New rule.
593 * top.c (use_windows): Default to zero.
594 * main.c: Include "main.h".
595 (main): Delete.
596 (struct captured_main_args): Delete.
597 (gdb_main): New function.
598 * main.h: New file.
599 * gdb.c: New File.
600
e36180d7
AC
6012002-09-25 Andrew Cagney <cagney@redhat.com>
602
603 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
604 (frame_map_regnum_to_name): New function.
605 (frame_map_name_to_regnum): New function.
606 * frame.h (frame_map_name_to_regnum): Declare.
607 (frame_map_regnum_to_name): Declare.
608 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
609 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
610 * parse.c: Do not include "builtin-regs.h".
611 (target_map_name_to_register): Delete function.
612 (write_dollar_variable): Use frame_map_name_to_regnum.
613 * parser-defs.h (target_map_name_to_register): Delete declaration.
614 * expprint.c: Include "frame.h".
615 (print_subexp): Use frame_map_regnum_to_name.
616 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
617 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
618
8b69000d
AC
6192002-09-25 Andrew Cagney <ac131313@redhat.com>
620
621 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
622 wasn't saved, and the next innermost frame is a dummy, return the
623 dummy frame's link register.
624
046ca86a
JB
6252002-09-24 Jim Blandy <jimb@redhat.com>
626
627 Fix from Paul Breed:
628 * main.c (captured_main): Add a `break' after the case for 'b'.
629
94b66fa7
KS
6302002-09-24 Keith Seitz <keiths@redhat.com>
631
632 * varobj.c (c_type_of_child): Use get_target_type instead
633 of TYPE_TARGET_TYPE.
634
c214a6fd
FN
6352002-09-22 Fernando Nasser <fnasser@redhat.com>
636
53cb0458
FN
637 * source.c (get_current_or_default_source_symtab_and_line): Remove
638 function.
639 (set_default_source_symtab_and_line): New function. Attempts to
640 determine a source file to list lines from if one is not currently
641 defined.
642 (get_current_source_symtab_and_line): Initialize sal.pc and
643 sal.end fields.
644 (set_current_source_symtab_and_line): Mark argument as const.
645 * source.h: Update declarations and comments.
646 * linespec.c (decode_line_1): Replace call to removed routine above.
647 * stack.c (print_frame_info_base): Ditto.
648 * cli/cli-cmds.c (edit_command): Ditto.
649 (list_command): Ditto.
650
6512002-09-22 Fernando Nasser <fnasser@redhat.com>
652
d6020d45 653 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 654 sal.pc and sal.end fields.
c214a6fd
FN
655 (get_current_or_default_source_symtab_and_line): Ditto.
656 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
657 so we do not cause a new source symtab to be searched for (reverting an
658 unintentional change from the 2002-09-20 patch).
659 * scm-lang.c (scm_unpac): Ditto.
660
cc3b68a5
AC
6612002-09-21 Andrew Cagney <cagney@redhat.com>
662
663 * complaints.c (symfile_explanations): Remove new-line from
664 ``isolated_message''.
665 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
666 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
667
5835abe7
NC
6682002-09-20 Nick Clifton <nickc@redhat.com>
669
670 * NEWS: Announce that V850EA ISA is no longer supported.
671 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
672
a15ef5f5
DC
6732002-09-20 David Carlton <carlton@math.stanford.edu>
674
06ba1b39
DC
675 * Makefile.in (c-lang.o): Correct dependencies.
676 (utils.o): Gather dependencies.
677 (charset.o): Move.
a15ef5f5
DC
678 * c-lang.c: #include "gdb_string.h"
679
87885426
FN
6802002-09-20 Fernando Nasser <fnasser@redhat.com>
681
682 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
683 * cli/cli-cmds.c (list_command): New function. Implements the new
684 cli edit command.
685 (_init_cli_cmds): Add new command definition.
686 * gdb.1: Document edit command.
687 * doc/gdb.texinfo: Document edit command.
688
6892002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
690
691 * source.c: Make global variables current_source_symtab and
692 current_source_line static.
693 (list_command): Moved to cli/cli-cmds.c.
694 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
695 (get_first_line_listed): New accessor function.
696 (get_lines_to_list): New accessor function.
697 (get_current_source_symtab_and_line): New function. Retrieves the
698 position in the source code that we consider current.
699 (get_current_or_default_source_symtab_and_line): New function.
700 Like the above but attempts to determine a default position if one
701 is not currently defined.
702 (set_current_source_symtab_and_line): New function. Sets the source
703 code position considered current and returns the previously set one.
704 (clear_current_source_symtab_and_line): Reset stored information about
705 a current source line.
706 (_initialize_source): Remove registration for the "list" command and
707 its alias.
708 * source.h: Add declarations for the new functions above.
709 * symtab.h: Remove declarations for the global variables mentioned
710 above.
711 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
712 obtain current source line.
713 * linespec.c (decode_line_1): Ditto.
714 * macroscope.c (default_macro_scope): Ditto.
715 * scm-lang.c (scm_unpac): Ditto.
716 * stack.c (print_frame_info_base): Ditto.
717 * symfile.c (clear_symtab_users): Ditto.
718 * symtab.c (decode_line_spec): Ditto.
719 * cli/cli-cmds.c (list_command): Moved here from source.c.
720 (ambiguous_line_spec): Moved here from source.c.
721 (_init_cli_cmds): Add definition for "list" and its alias.
722 * Makefile.in: Update dependencies.
723
ddd216ea
CV
7242002-09-20 Corinna Vinschen <vinschen@redhat.com>
725
726 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
727 with what gcc thinks is correct.
728
6d305052
CV
7292002-09-20 Corinna Vinschen <vinschen@redhat.com>
730
731 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
732 multiple register push instruction.
733
234b45d4
KB
7342002-09-19 Jim Blandy <jimb@redhat.com>
735
736 Add support for distinct host and target character sets.
737 * charset.c, charset.h: New files.
738 * c-exp.y: #include "charset.h".
739 (yylex): Convert character and string literals to the target
740 character set, before returning them as the semantic value of the
741 token.
742 * c-lang.c: #include "charset.h".
743 (c_emit_char): Use charset-specific methods to recognize
744 characters with backslash escape forms, to decide which characters
745 to print literally and which to print using numeric escape
746 sequences, and to convert target characters to host characters
747 before printing.
748 * utils.c: #include "charset.h".
749 (no_control_char_error): New function.
750 (parse_escape): Use charset-specific methods to recognize
751 backslash escapes, parse `control character' notation, and convert
752 characters from the host character set to the target character set.
753 * configure.in: Set the default host character set.
754 Check where to find iconv, and what its argument types might be.
755 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
756 * Makefile.in (SFILES): List charset.c.
757 (COMMON_OBS): List charset.o.
758 (charset.o): New rule.
759 (charset_h): New header dependency variable.
760 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
761 (LIBICONV): New variable, set by configure.
762 (CLIBS): Include $(LIBICONV) here.
763 * aclocal.m4, config.in, configure: Regenerated.
764
525d6a61
JB
7652002-09-19 Joel Brobecker <brobecker@gnat.com>
766
767 * ada-exp.y: Add missing semicolons to end rules. Fixes a
768 bison 1.35 warning.
769
3ed93867
RE
7702002-09-19 Richard Earnshaw <rearnsha@arm.com>
771
772 * gdb_mbuild.sh: New file.
773
437666f8
AC
7742002-09-19 Andrew Cagney <ac131313@redhat.com>
775
776 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
777
389e51db
AC
7782002-09-18 Andrew Cagney <ac131313@redhat.com>
779
780 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
781 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
782 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
783 valops.c, value.h: Revert previous change.
784
3b4efeaa
MS
7852002-09-18 Michael Snyder <msnyder@redhat.com>
786
787 Preliminary support for Objective-C:
788 * defs.h (language_objc): New enum value.
789 (puts_filtered_tabular): Declaration only, exported from utils.c.
790 (skip_quoted): Delete, declared in completer.h.
791 * c-exp.y: Include completer.h.
792 * p-exp.y: Ditto.
793 * jv-exp.y: Ditto.
794 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
795 New operator enum values.
796 * language.h (CAST_IS_CONVERSION): Test for language_objc.
797 * language.c (binop_result_type): Handle language_objc case.
798 (integral_type, character_type, string_type, boolean_type,
799 structured_type, binop_type_check): Ditto.
800 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
801 (struct objc_specific): Add to general_symbol_info.
802 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
803 (SYMBOL_DEMANGLED_NAME): Handle objc case.
804 * parser-defs.h (struct objc_class_str): New struct type.
805 (start_msglist, end_msglist, add_msglist): Declaration only,
806 exported from objc-lang.c.
807 * value.h (value_of_local, value_nsstring,
808 call_function_by_hand_expecting_type): Exported from valops.c.
809 * valops.c (find_function_addr): Export.
810 (call_function_by_hand_expecting_type): New function.
811 (value_of_local): New function.
812 * symfile.c (init_filename_language_table): Add ".m" extension
813 for Objective-C.
814 * utils.c (puts_filtered_tabular): New function.
815 (fprintf_symbol_filtered): Add objc demangling support (disabled).
816 (set/show demangle): Extend help-string to refer to ObjC.
817 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
818 * stabsread.c (symbol_reference_defined): Objective-C symbols
819 may contain colons: make allowances when scanning stabs strings
820 for colons.
821 (objc_find_colon): New function.
822 * printcmd.c (address_info): If language == objc then print
823 "self" instead of "this".
824 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
825 OP_NSSTRING, and OP_SELF.
826 (prefixify_subexp): Ditto.
827 * source.c (print_source_lines): Mention objc in comment.
828 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
829 method names.
830
b9caf505
AC
8312002-09-18 Andrew Cagney <ac131313@redhat.com>
832
833 * complaints.h: Update copyright.
834 (struct complaints): Declare.
835 (struct complaint): Make `message' constant.
836 (internal_complaint): Declare.
837 (complaint): Declare.
838 (complaint_root): Delete declaration.
839 (symfile_complaints): Delete declaration.
840 (struct complaints): Add opaque declaration.
841 (clear_complaints): Add a complaints parameter.
842 * complaints.c: Update copyright.
843 (enum complaint_series): Define.
844 (complaint_root): Delete.
845 (struct complaints): Define.
846 (complaint_sentinel, symfile_complaint_book): New variables.
847 (symfile_explanations, symfile_complaints): New variables.
848 New variables.
849 (get_complaints): New function.
850 (vcomplaint): New function.
851 (complaint): New function.
852 (internal_complaint): New function.
853 (complain): Call vcomplain with symfile_complaint.
854 (clear_complaints): Rewrite.
855 (_initialize_complaints): Use add_setshow_command.
856 * Makefile.in (complaints.o): Update dependencies.
857 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
858 to call to clear_complaints.
859 (new_symfile_objfile, reread_symbols): Ditto.
860 (oldsyms_complaint): Delete.
861 (empty_symtab_complaint, unknown_option_complaint): Delete.
862 (free_named_symtabs): Use complaint instead of complain.
863
d2e6263c
MS
8642002-09-18 Michael Snyder <msnyder@redhat.com>
865
5fb2031a
AC
866 Contributed by Apple Computer, Inc. Merged with current sources
867 by Adam Fedor <fedor@doc.com> [cagney].
868
d2e6263c
MS
869 * objc-lang.c: First clean-up round: comments, indentation.
870 * objc-lang.h: Ditto.
871 * objc-lang.y: Ditto.
872
dec43320
AC
8732002-09-18 Andrew Cagney <ac131313@redhat.com>
874
875 * maint.c (maintenance_internal_error): Print the parameter as the
876 error message.
877 (maintenance_internal_warning): New function.
878 (_initialize_maint_cmds): Add command `maint internal-warning'.
879
880 * defs.h (internal_warning, internal_vwarning): Declare.
881 * utils.c (struct internal_problem): Define.
882 (internal_vproblem): New function.
883 (internal_warning): New function.
884 (internal_vwarning): New function.
885 (internal_warning_problem, internal_error_problem): New variables.
886 (internal_verror): Just call internal_vproblem.
887
b81654f1
MS
8882002-09-18 Michael Snyder <msnyder@redhat.com>
889
890 * objc-lang.c: New file, support for Objective-C.
891 Preliminary check-in, not yet integrated into gdb.
892 * objc-lang.h: New file.
893 * objc-exp.y: New file.
894
0542c381
AC
8952002-09-18 Andrew Cagney <ac131313@redhat.com>
896
7bda5e4a
AC
897 * infrun.c (signal_stop_update): Convert definition to ISO C.
898 (signal_print_update): Ditto.
899 (signal_pass_update): Ditto.
900 * inflow.c (terminal_save_ours): Ditto.
901
5247b418
AC
902 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
903 comments.
904
fc60962c
AC
905 * config/djgpp/fnchange.lst: Handle name clashes between
906 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
907 bfd/coff-tic80.c.
908
0542c381
AC
909 * i386-linux-tdep.h: Fix tipo.
910
5b924b9b
AF
9112002-09-18 Adam Fedor <fedor@gnu.org>
912
913 * MAINTAINERS: Add myself to the Write After Approval list.
914
5afc051b
JB
9152002-09-18 Jim Blandy <jimb@redhat.com>
916
917 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
918 texthigh and textlow to reader-specific structs caused
919 objfile_relocate to miss them. This is fixable, but the work that
920 the change was supposed to prepare GDB for never got done anyway.
921
eb944380
DC
9222002-09-18 David Carlton <carlton@math.stanford.edu>
923
924 * MAINTAINERS: Alphabetize Write After Approval list.
925
948e66d9
DJ
9262002-09-18 Daniel Jacobowitz <drow@mvista.com>
927
928 Fix PR gdb/709
929 * values.c (value_static_field): Call read_var_value.
930
dc604539
AC
9312002-09-18 Andrew Cagney <ac131313@redhat.com>
932
933 * valops.c (hand_function_call): Align the initial stack pointer
934 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
935 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
936 return value.
937 * mips-tdep.c (mips_frame_align): New function.
938 (mips_gdbarch_init): Set frame_align.
939 * gdbarch.sh (FRAME_ALIGN): New method.
940 * gdbarch.h, gdbarch.c: Re-generate.
941
cb7e422f
ML
9422002-09-18 Michal Ludvig <mludvig@suse.cz>
943
944 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
945 registers.
946
a094c6fb
AC
9472002-09-17 Andrew Cagney <ac131313@redhat.com>
948
949 * NEWS: Mention that MIPS $fp behavior changed.
950 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
951 reference to FP_REGNUM.
952 (mipsnbsd_cannot_store_register): Ditto.
953 * mips-linux-nat.c: Update copyright.
954 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
955 (mips_linux_cannot_store_register): Ditto.
956 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
957 * config/mips/tm-mips.h: Update copyright.
958 (FP_REGNUM): Delete macro.
959 (MIPS_REGISTER_NAMES): Replace "fp" with "".
960 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
961 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
962 (mips_r3041_reg_names, mips_r3051_reg_names)
963 (mips_r3081_reg_names): Replace "fp" with "".
964 Fix PR gdb/480.
965
45cf40d1
TR
9662002-09-17 Theodore A. Roth <troth@verinet.com>
967
968 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
969 generic_read_register_dummy() (PR gdb/703).
970 (avr_push_return_address): #if 0 out unused vars.
971 (avr_gdbarch_init): Enable use of avr_push_return_address().
972
c7e701b5
MS
9732002-09-17 Michael Snyder <msnyder@redhat.com>
974
d76ba2a5 975 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
976 RTE will take care of it.
977
20bcf01c
AC
9782002-09-17 Andrew Cagney <ac131313@redhat.com>
979
980 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
981 invalid, return SP_REGNUM.
982
009a9971 9832002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
984
985 * mips-tdep.c (mips_pop_frame): Read saved values of floating
986 point registers without sign extension.
987
135c175f
AC
9882002-09-17 Andrew Cagney <cagney@redhat.com>
989
990 * blockframe.c (deprecated_read_register_dummy): Rename
991 generic_read_register_dummy.
992 * frame.c (frame_unwind_signed_register): New function.
993 (frame_unwind_unsigned_register): New function.
994 * frame.h (frame_unwind_signed_register): Declare.
995 (frame_unwind_unsigned_register): Declare.
996 (deprecated_read_register_dummy): Rename
997 generic_read_register_dummy.
998
999 * h8300-tdep.c (h8300_frame_chain): Update.
1000 (h8300_frame_saved_pc): Update.
1001 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1002 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1003 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1004 (s390_frame_chain): Update.
1005 * v850-tdep.c (v850_find_callers_reg): Update.
1006 (v850_frame_saved_pc): Update.
1007 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1008 (m32r_find_callers_reg): Update.
1009 (m32r_frame_saved_pc): Update.
1010 * sh-tdep.c (sh_find_callers_reg): Update.
1011 (sh64_get_saved_pr): Update.
1012 (sh_init_extra_frame_info): Update.
1013 (sh_init_extra_frame_info): Update.
1014 (sh64_init_extra_frame_info): Update.
1015 (sh64_init_extra_frame_info): Update.
1016 * mcore-tdep.c (mcore_find_callers_reg): Update.
1017 (mcore_frame_saved_pc): Update.
1018 (mcore_init_extra_frame_info): Update.
1019 * i386-tdep.c (i386_frame_saved_pc): Update.
1020 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1021 (ia64_init_extra_frame_info): Update.
1022 (ia64_init_extra_frame_info): Update.
1023 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1024 * cris-tdep.c (cris_init_extra_frame_info): Update.
1025 * avr-tdep.c (avr_frame_chain): Update.
1026 (avr_init_extra_frame_info): Update.
1027 (avr_frame_saved_pc): Update.
1028 * arm-tdep.c (arm_find_callers_reg): Update.
1029 (arm_init_extra_frame_info): Update.
1030 (arm_frame_saved_pc): Update.
1031
a741e514
TT
10322002-09-17 Tom Tromey <tromey@redhat.com>
1033
1034 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1035 is "'".
1036
d1a8e808
CV
10372002-09-17 Corinna Vinschen <vinschen@redhat.com>
1038
1039 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1040 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1041 NEXT_PROLOGUE_INSN.
1042 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1043 NEXT_PROLOGUE_INSN.
1044
d9025a18
JB
10452002-09-16 Joel Brobecker <brobecker@gnat.com>
1046
1047 * osfsolib.c: Remove file, replaced by solib-osf.c.
1048 * Makefile.in: Remove compilation rules for osfsolib.c.
1049
1b2ef1b6
DC
10502002-09-16 David Carlton <carlton@math.stanford.edu>
1051
1052 * cp-valprint.c (cp_print_class_method): Correct args to
1053 check_stub_method_group.
1054
928e48af
CV
10552002-09-16 Corinna Vinschen <vinschen@redhat.com>
1056
1057 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1058 `set architecture'. Unify naming convention of functions.
1059 (h8300_skip_prologue): Improve prologue analysis.
1060 (h8300_push_arguments): Rewritten to more closely match GCC's
1061 bizarre argument-passing behavior, along with the comment describing
1062 said behavior.
1063 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1064 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1065 sim, remote-e7000.c, remote-hms.c and remote.c
1066
5e3397bb
MK
10672002-09-15 Mark Kettenis <kettenis@gnu.org>
1068
1069 * i386-tdep.c (gdb_print_insn_i386): Removed.
1070 (i386_print_insn): New function.
1071 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1072 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1073 tm_print_insn_info.
1074
f710f4fc
MK
10752002-09-14 Mark Kettenis <kettenis@gnu.org>
1076
1077 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1078 zero.
1079
db54fef4
CV
10802002-09-14 Corinna Vinschen <vinschen@redhat.com>
1081
1082 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1083 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1084 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1085
2becadee
CF
10862002-09-13 Christopher Faylor <cgf@redhat.com>
1087
1088 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1089
de17c821
DJ
10902002-09-13 Daniel Jacobowitz <drow@mvista.com>
1091
1092 * gdbtypes.c (check_stub_method): Make static.
1093 (check_stub_method_group): New function.
1094 * gdbtypes.h: Update prototypes.
1095 * cp-support.c: New file.
1096 * cp-support.h: New file.
1097
1098 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1099 (update_method_name_from_physname): New function.
1100 (read_member_functions): Correct method names for operators
1101 and v3 constructors/destructors. Separate v2 constructors and
1102 destructors.
1103 * Makefile.in (stabsread.o): Update dependencies.
1104 (SFILES): Add cp-support.c.
1105 (COMMON_OBS): Add cp-support.o.
1106 (cp_support_h, cp-support.o): Add.
1107
1108 * cp-valprint.c (cp_print_class_method): Call
1109 check_stub_method_group instead of check_stub_method. Remove
1110 extraneous QUITs.
1111 * p-valprint.c (pascal_object_print_class_method): Likewise.
1112 * valops.c (search_struct_method): Likewise.
1113 (find_method_list, value_struct_elt_for_reference): Likewise.
1114
e76cff22
AC
11152002-09-13 Andrew Cagney <cagney@redhat.com>
1116
1117 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1118 * gdbarch.h, gdbarch.c: Regenerate.
1119
905abb3f
AC
11202002-09-13 Andrew Cagney <ac131313@redhat.com>
1121
1122 * frame.c (find_saved_register): Delete function.
1123 * frame.h (find_saved_register): Delete declaration.
1124 Fix PR gdb/631.
1125
64159455
AC
1126Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1127
1128 * mips-tdep.c (read_next_frame_reg): Re-hack using
1129 frame_register_unwind.
1130
795e1e11
AC
1131Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1132
1133 * mips-tdep.c (mips_get_saved_register): Re-hack using
1134 frame_register_unwind.
1135
5720643c
JB
11362002-09-12 Joel Brobecker <brobecker@gnat.com>
1137
1138 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1139 vector. Will be useful for Interix.
1140 * gdbarch.h, gdbarch.c: Regenerate.
1141
1142 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1143 name of the malloc function by NAME_OF_MALLOC.
1144
3bada2a2
JB
11452002-09-12 Joel Brobecker <brobecker@gnat.com>
1146
1147 * value.h (find_function_in_inferior): Add const keyword to
1148 one of the parameters. Allows us to invoke this function with
1149 a const char *.
1150 * valops.c (find_function_in_inferior): Likewise.
1151
3db26b01
JB
11522002-09-12 Joel Brobecker <brobecker@gnat.com>
1153
1154 * exec.c (xfer_memory): Fix compilation warning with old versions
1155 of GCC.
1156 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1157
17c5ed2c
DC
11582002-09-12 David Carlton <carlton@math.stanford.edu>
1159
1160 * symtab.h: Run through gdb_indent.h.
1161 Add 2002 to Copyright year list.
1162
ecd1107e
AM
11632002-09-12 Alan Modra <amodra@bigpond.net.au>
1164
1165 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1166 mach constants.
1167 * MAINTAINERS: Add myself to write after approval list.
1168
e64f66d1
JB
11692002-09-11 J. Brobecker <brobecker@gnat.com>
1170
1171 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1172
f9395794
JB
11732002-09-11 J. Brobecker <brobecker@gnat.com>
1174
1175 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1176 Interix.
1177
1a303dec
MS
11782002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1179
1180 * procfs.c (do_detach): Clear current signal, not just fault.
1181 Corrects problem with breakpoint trap signal leaking to detached
1182 process on Tru64.
1183
c0219d42
MS
11842002-09-10 Michael Snyder <msnyder@redhat.com>
1185
1186 * buildsym.c (finish_block): Protect against null pointer.
1187
9d84ac84
AC
11882002-09-10 Andrew Cagney <cagney@redhat.com>
1189
1190 * infcmd.c (default_print_registers_info): Send all output to
1191 ``file'' instead of ``gdb_stdout''.
1192
77d8f2b4
MS
11932002-09-10 Michael Snyder <msnyder@redhat.com>
1194
1195 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1196 LONGEST, and use signed register read (addresses are sign-
1197 extended for mips).
1198
99656a61
SC
11992002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1200
1201 * event-loop.c (gdb_do_one_event): Make public.
1202 * event-loop.h (gdb_do_one_event): Declare.
1203
da12f4d8
JL
12042002-09-10 Jeff Law <law@redhat.com>
1205
1206 * infttrace.c (child_resume): Simplify and rework to avoid
1207 TT_PROC_CONTINUE.
1208
d0aee0c4
FF
12092002-09-09 Fred Fish <fnf@intrinsity.com>
1210
1211 * printcmd.c (print_scalar_formatted): "len" is the number of
1212 target bytes, NOT the number of target bits.
1213
7cb3ec5e
EZ
12142002-09-09 Elena Zannoni <ezannoni@redhat.com>
1215
1216 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1217 * top.c (init_main): Set rl_terminal_name.
1218
4dc81987
AS
12192002-09-08 Aidan Skinner <aidan@velvet.net>
1220
1221 * ada-lang.c (ada_array_bound, ada_type_match,
1222 _initialize_ada_language): Fix K&R definitions.
1223 * ada-tasks.c (get_current_task): Fix K&R definitions.
1224 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1225
842330b4
CF
12262002-09-07 Christopher Faylor <cgf@redhat.com>
1227
1228 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1229 Add XP.
1230
43156d82
MK
12312002-09-06 Mark Kettenis <kettenis@gnu.org>
1232
66da5fd8
MK
1233 * i386-tdep.c (i386_register_virtual_type,
1234 i386_register_convertible, i386_register_convert_to_virtual,
1235 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1236 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1237 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1238 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1239 Don't set push_arguments twice.
1240
4b218c18
MK
1241 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1242 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1243 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1244 sigtramp_end to NULL.
1245 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1246 defines.
1247 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1248
4cc314d5
MK
1249 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1250 whitespace.
1251
43156d82
MK
1252 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1253 * gdbarch.h, gdbarch.c: Re-generate.
1254 * blockframe.c (find_pc_sect_partial_function): Convert to use
1255 SIGTRAMP_START_P predicate.
1256
6672060b
MS
12572002-09-05 Michael Snyder <msnyder@redhat.com>
1258
a90c3637
MS
1259 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1260 generic_dummy_frame method and old method. Also distinguish
1261 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1262 (arm_extract_return_value): Use new regcache method.
a90c3637 1263
6672060b
MS
1264 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1265 adjustment that doesn't conform to the ABI.
1266 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1267 saved regcache, not from current regcache.
1268
299ffc64
AC
12692002-09-05 Andrew Cagney <ac131313@redhat.com>
1270
1271 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1272 * README: Update.
1273
a3a2ee65
JT
12742002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1275
1276 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1277 if arm_apcs_32 is false.
1278
2bc7eea9
AC
12792002-09-04 Andrew Cagney <ac131313@redhat.com>
1280
1281 GDB 5.3 branch created.
1282
8a55a7c5
TR
12832002-09-03 Theodore A. Roth <troth@verinet.com>
1284
1285 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1286 generic_unwind_get_saved_register.
1287
e26fb1d7
DC
12882002-09-03 David Carlton <carlton@math.stanford.edu>
1289
1290 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1291 argument (PR gdb/653). Update call to smash_to_method_type.
1292 (read_structure_scope): Update call to dwarf2_add_member_fn.
1293
30d52491
ML
12942002-09-03 Michal Ludvig <mludvig@suse.cz>
1295
1296 * x86-64-linux-tdep.c: Include gdb_string.h
1297 * x86-64-linux-nat.c: Ditto.
1298
06891d83
JT
12992002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1300
1301 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1302 when YYDEBUG is set to 1.
1303 * c-exp.y: Likewise.
1304 * f-exp.y: Likewise.
1305 * jv-exp.y: Likewise.
1306 * m2-exp.y: Likewise.
1307 * p-exp.y: Likewise.
1308
7d400e77
JT
13092002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1310
1311 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1312 dependency list.
1313 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1314 solib_svr4_fetch_link_map_offsets to
1315 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1316 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1317 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1318 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1319 solib-svr4.o, and solib-legacy.o.
1320 * config/i386/tm-nbsd.h: Include solib.h.
1321
704a27c4
JT
13222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1323
1324 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1325 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1326 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1327 comment noting that this needs its own target configuration.
1328 * config/i386/nbsd.mt: New file.
1329 * config/i386/nbsdaout.mt: Remove.
1330 * config/i386/nbsdelf.mt: Ditto.
1331 * config/i386/tm-nbsdaout.h: Ditto.
1332
d66198e1
JT
13332002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1334
1335 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1336 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1337 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1338 tdep->sigtramp_end.
1339 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1340 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1341 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1342
3cac699e
JT
13432002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1344
1345 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1346 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1347 * i386-tdep.h (i386bsd_init_abi): New prototype.
1348 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1349 function declaration.
1350 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1351 for NetBSD-a.out or NetBSD-ELF.
1352 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1353 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1354 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1355 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1356 and nbsd-tdep.h.
1357 (i386nbsd_pc_in_sigtramp): New function.
1358 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1359 i386nbsd_pc_in_sigtramp.
1360 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1361 and i386nbsdelf_init_abi OS ABI handlers.
1362 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1363 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1364
7010ca0a
MK
13652002-09-02 Mark Kettenis <kettenis@gnu.org>
1366
1367 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1368 registers if the target really has them.
1369
6dd93b72
JT
13702002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1371
1372 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1373 than nbsd-tdep.h.
1374
2ca8ae21
JT
13752002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1376
1377 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1378 list.
1379 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1380 (alphanbsd_skip_sigtramp_frame): New functions.
1381 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1382 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1383 to alphanbsd_sigcontext_addr.
1384
3d9b49b0
JT
13852002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1386
1387 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1388 list.
1389 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1390 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1391 nbsd_pc_in_sigtramp.
1392 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1393 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1394 * nbsd-tdep.c: Include gdb_string.h.
1395 (nbsd_pc_in_sigtramp): New function.
1396 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1397 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1398 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1399 ppcnbsd_pc_in_sigtramp.
1400 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1401 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1402 shnbsd_pc_in_sigtramp.
1403 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1404 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1405 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1406
c860120c
PM
14072002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1408
1409 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1410 watchpoints to NULL.
1411 (insert_breakpoints): set val field of watchpoints if NULL.
1412
1413
c7612d53
JB
14142002-08-29 Jim Blandy <jimb@redhat.com>
1415
1416 * symtab.c (lookup_symbol_aux): In the cases where we find a
1417 minimal symbol of an appropriate name and use its address to
1418 select a symtab to read and search, use `name' (as passed to us)
1419 as the demangled name when searching the symtab's global and
1420 static blocks, not the minsym's name.
1421
66609862
KS
14222002-08-29 Keith Seitz <keiths@redhat.com>
1423
1424 * stack.c (print_frame_info_base): Always set current_source_symtab
1425 and current_source_line.
1426
151fefe2
JB
14272002-08-29 Donn Terry <donnte@microsoft.com>
1428
1429 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1430
bfb3754e
KS
14312002-08-28 Keith Seitz <keiths@redhat.com>
1432
1433 * stack.c (select_frame): Add FIXME concerning selected-frame
1434 events.
1435 (select_frame_command): Send selected-frame-level-changed
1436 event notification, but only if the level actually changed.
1437 (up_silently_base): Add selected-frame-level-changed event
1438 notification.
1439 (down_silently_base): Likewise.
1440
e822a2a0
AC
14412002-08-28 Andrew Cagney <ac131313@redhat.com>
1442
1443 * Makefile.in: Update dependencies for all gdb/*.c files.
1444
309367d4
TT
14452002-08-27 Tom Tromey <tromey@redhat.com>
1446
1447 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1448 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1449 Update dependencies.
1450 * i387-tdep.c: Include gdb_string.h.
1451 * osabi.c: Likewise.
1452 * i386-linux-nat.c: Likewise.
1453 * lin-lwp.c: Likewise.
1454 * ax-gdb.c: Likewise.
1455 * signals/signals.c: Likewise.
1456 * jv-valprint.c: Likewise.
1457 * p-lang.c: Likewise.
1458 * c-valprint.c: Likewise.
1459 * cp-abi.c: Likewise.
1460
e1507482
EZ
14612002-08-27 Elena Zannoni <ezannoni@redhat.com>
1462
1463 * cli/cli-script.h (copy_command_lines): Export.
1464 * breakpoint.c: Include cli/cli-script.h.
1465 * Makefile.in (breakpoint.o): Update dependencies.
1466
c6510018
MS
14672002-08-26 Michael Snyder <msnyder@redhat.com>
1468
1469 * breakpoint.c (insert_breakpoints): Protect all references
1470 to 'process_warning'. Shorten long lines.
1471
c2b8ed2c
MS
14722002-08-26 Joel Brobecker <brobecker@gnat.com>
1473
1474 * cli/cli-script.c (copy_command_lines): New function.
1475 * defs.h (copy_command_lines): Export.
1476 * testsuite/gdb.base/commands.exp: New tests for commands
1477 attached to a temporary breakpoint, and for commands that
1478 delete the breakpoint they are attached to.
1479
14802002-08-26 Michael Snyder <msnyder@redhat.com>
1481
1482 * breakpoint.c (bpstat_stop_status): Instead of copying the
1483 pointer to the breakpoint commands struct, make a new copy
1484 of the struct and point to that.
1485 (bpstat_clear): Free the commands struct.
1486 (bpstat_clear_actions): Free the commands struct.
1487 (bpstat_do_actions): Free the command actions. Also execute
1488 the local cleanups, instead of deleting them.
1489 (delete_breakpoint): Leave the commands field of the bpstat
1490 chain alone -- it will be freed later.
1491
64b84175
KB
14922002-08-26 Kevin Buettner <kevinb@redhat.com>
1493
1494 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1495 deleted in 2002-08-20 commit. This function is still used by
1496 ppc-linux-nat.c.
1497
55970da6
KS
14982002-08-26 Keith Seitz <keiths@redhat.com>
1499
1500 * gdb-events.sh: Add selected-frame-level-changed event.
1501 * gdb-events.c: Regenerated.
1502 * gdb-events.h: Regenerated.
1503
a790ad35
SC
15042002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1505
1506 Fix PR gdb/393:
1507 * inflow.c (terminal_save_ours): New function to save terminal
1508 settings.
1509 * inferior.h (terminal_save_ours): Declare.
1510 * target.c (debug_to_terminal_save_ours): New function.
1511 (cleanup_target): Defaults to_terminal_save_ours.
1512 (update_current_target): Inherit to_terminal_save_ours.
1513 (setup_target_debug): Set to_terminal_save_ours.
1514 * target.h (target_terminal_save_ours): New to save terminal settings.
1515 (target_ops): New member to_terminal_save_ours.
1516 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1517 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1518 * inftarg.c (init_child_ops): Likewise.
1519 * m3-nat.c (init_m3_ops): Likewise.
1520 * procfs.c (init_procfs_ops): Likewise.
1521 * wince.c (init_child_ops): Likewise.
1522 * win32-nat.c (init_child_ops): Likewise.
1523 * sol-thread.c (init_sol_thread_ops): Likewise.
1524
c00dcbe9
MK
15252002-08-26 Mark Kettenis <kettenis@gnu.org>
1526
3d7f4f49
MK
1527 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1528 use regcache_* functions.
1529 (i386_gdbarch_init): Set store_return_value instead of
1530 deprecated_store_return_value.
1531
c00dcbe9
MK
1532 * regcache.c (regcache_raw_write_signed,
1533 regcache_raw_write_unsigned): New functions.
1534 * regcache.h (regcache_raw_write_signed,
1535 regcache_raw_write_unsigned): New prototypes.
1536
0e0d15ca
AC
15372002-08-25 Andrew Cagney <ac131313@redhat.com>
1538
1539 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1540 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1541 source file dependencies. Cleanup corresponding generator rules.
1542
d3b22ed5
AC
15432002-08-25 Andrew Cagney <ac131313@redhat.com>
1544
1545 * regcache.h (register_offset_hack): Declare.
1546 (regcache_cooked_read_using_offset_hack): Declare.
1547 (regcache_cooked_write_using_offset_hack): Declare.
1548
1549 * regcache.c (register_offset_hack): New function.
1550 (regcache_cooked_read_using_offset_hack): New function.
1551 (regcache_cooked_write_using_offset_hack): New function.
1552 (regcache_dump): Check that the registers, according to their
1553 offset, are packed hard against each other.
1554 (cooked_xfer_using_offset_hack): New function.
1555
bb425013
AC
15562002-08-25 Andrew Cagney <ac131313@redhat.com>
1557
1558 * regcache.c (struct regcache_descr): Add field register_type.
1559 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1560 in as a parameter
1561 (init_regcache_descr): Initialize register_type. Pass the descr
1562 to init_legacy_regcache_descr. Use register_type instead of
1563 REGISTER_VIRTUAL_TYPE.
1564 (register_type): New function.
1565 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1566 * regcache.h (register_type): Declare.
1567
d0403e00
AC
15682002-08-25 Andrew Cagney <ac131313@redhat.com>
1569
1570 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1571 instead of deprecated_store_return_value. Fix fallout from
1572 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1573
0ed04cce
AC
15742002-08-25 Andrew Cagney <ac131313@redhat.com>
1575
1576 * regcache.c (max_register_size): New function.
1577 (init_legacy_regcache_descr): Ensure that max_register_size is
1578 large enough for REGISTER_VIRTUAL_SIZE.
1579 * regcache.h (max_register_size): Declare.
1580
46d79c04
AC
15812002-08-24 Andrew Cagney <ac131313@redhat.com>
1582
1583 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1584 store_return_value.
1585 (e500_extract_return_value): Change type of valbuf pointer to
1586 void.
1587
853c7bd0
MK
15882002-08-24 Mark Kettenis <kettenis@gnu.org>
1589
cd87e769
MK
1590 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1591 workaround.
1592
853c7bd0
MK
1593 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1594 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1595 long long) to prevent compiler warning on 64-bit systems.
1596
ebba8386
AC
15972002-08-23 Andrew Cagney <cagney@redhat.com>
1598
1599 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1600 (DEPRECATED_STORE_RETURN_VALUE): New method.
1601 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1602 * gdbarch.h, gdbarch.c: Re-generate.
1603
1604 * values.c (set_return_value): Pass current_regcache to
1605 STORE_RETURN_VALUE.
1606 * arch-utils.h (legacy_store_return_value): Declare.
1607 * arch-utils.c (legacy_store_return_value): New function.
1608 (legacy_extract_return_value): Update parameters.
1609
1610 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1611 STORE_RETURN_VALUE.
1612 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1613 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1614 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1615 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1616 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1617 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1618 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1619 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1620 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1621 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1622
1623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1624 * i386-tdep.c (i386_extract_return_value): Update.
1625 * arch-utils.c (legacy_extract_return_value): Update.
1626 * frv-tdep.c (frv_gdbarch_init): Update.
1627 * cris-tdep.c (cris_gdbarch_init): Update.
1628 * d10v-tdep.c (d10v_gdbarch_init): Update.
1629 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1630 * m68k-tdep.c (m68k_gdbarch_init): Update.
1631 * mcore-tdep.c (mcore_gdbarch_init): Update.
1632 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1633 * s390-tdep.c (s390_gdbarch_init): Update.
1634 * sparc-tdep.c (sparc_gdbarch_init): Update.
1635 * sh-tdep.c (sh_gdbarch_init): Update.
1636 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1637 * v850-tdep.c (v850_gdbarch_init): Update.
1638 * avr-tdep.c (avr_gdbarch_init): Update.
1639 * ia64-tdep.c (ia64_gdbarch_init): Update.
1640 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1641 * vax-tdep.c (vax_gdbarch_init): Update.
1642 * alpha-tdep.c (alpha_gdbarch_init): Update.
1643 * arm-tdep.c (arm_gdbarch_init): Update.
1644 * mips-tdep.c (mips_gdbarch_init): Update.
1645 * i386-tdep.c (i386_gdbarch_init): Update.
1646
5bd8c6d0
AC
16472002-08-23 Andrew Cagney <ac131313@redhat.com>
1648
1649 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1650 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1651
e73e1724
MK
16522002-08-24 Mark Kettenis <kettenis@gnu.org>
1653
1654 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1655 problems.
1656
3e6564e1
JB
16572002-08-23 Joel Brobecker <brobecker@gnat.com>
1658
1659 * infrun.c (handle_inferior_event): Move a comment outside of a
1660 function call, in order to avoid indent reformatting this part
1661 of the code in an unreadable way.
1662
81d0cc19
GS
16632002-08-23 Grace Sainsbury <graces@redhat.com>
1664
1665 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1666 when breakpoints fail. Move general breakpoint error messages to
1667 insert_breakpoints.
1668 * breakpoint.c (insert_breakpoints): Change warnings when
1669 breakpoints are nto inserted to specify the type. Remove call to
1670 memory_error when hardware breakpoints can't be inserted. Remove
1671 multiple calls to warning so all messages are sent to the user at
1672 once.
1673 (delete_breakpoints): Make insert error messsages more explicit.
1674
17574093
DJ
16752002-08-23 Daniel Jacobowitz <drow@mvista.com>
1676
1677 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1678 gdbserver/ChangeLog.
1679
8acc2935
MK
16802002-08-23 Mark Kettenis <kettenis@gnu.org>
1681
dfe01d39
MK
1682 * i386-tdep.c: Include "objfiles.h".
1683 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1684 skip_trampoline_code.
1685 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1686 (CPLUS_MARKER): Define to '.'.
1687
8acc2935
MK
1688 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1689 member.
1690 (linux_corefile_thread_callback): Increase args->num_notes.
1691 (linux_make_note_section): Initialize thread_args.num_notes, and
1692 use it to determine whether notes for any threads were created.
1693
151fefe2 16942002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1695
1696 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1697 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1698 and PCUNKILL.
1699 (write_with_trace): Conditionalize out the switch branch handling
1700 PCSHOLD if the corresponding macro is not defined. Likewise for
1701 PRSABORT and PRSTOP.
1702 This change will be needed by the Interix port.
1703
e1507482
EZ
17042002-08-22 Elena Zannoni <ezannoni@redhat.com>
1705
1706 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1707 write_register wherever possible instead of manipulating the
1708 register bytes directly.
1709 Assign VALUE_CONTENTS to a variable and use that.
1710 The GPR numbers are now dependent on the architecture.
1711
96ff0de4
EZ
17122002-08-22 Elena Zannoni <ezannoni@redhat.com>
1713
1714 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1715 ev_offset fields.
1716 (skip_prologue): Add support for BookE/e500 instructions.
1717 (e500_extract_return_value): New function.
1718 (frame_get_saved_regs): Add support for saving ev registers and
1719 pseudo gpr's.
1720 (e500_store_return_value): New function.
1721 (rs6000_gdbarch_init): Move up default intializations of
1722 deprecated_extract_return_value and store_return_value. Overwrite
1723 init of store_return_value with e500 specific version.
1724 Set extract_return_value for e500.
1725
fbefca5b
EZ
17262002-08-22 Elena Zannoni <ezannoni@redhat.com>
1727
1728 * blockframe.c (generic_call_dummy_register_unwind): Use
1729 regcache_cooked_read to catch cases in which the variable is
1730 stored in a pseudo register.
1731
4d210288
AC
17322002-08-22 Andrew Cagney <cagney@redhat.com>
1733
1734 * NEWS: Mention that the i960 has been made obsolete.
1735 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1736 i960-tdep.c
1737 (remote-nrom.o): Obsolete target.
1738 (remote-nindy.o, i960-tdep.o): Ditto.
1739 * remote-nrom.c: Make file obsolete.
1740 * remote-nindy.c, remote-vx960.c: Ditto.
1741 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1742 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1743 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1744 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1745 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1746 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1747 i960-*-vxworks* obsolete.
1748 * MAINTAINERS: Note that the i960 is obsolete.
1749
6c0c456d
CV
17502002-08-21 Corinna Vinschen <vinschen@redhat.com
1751
1752 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1753 detach to allow reinitialization.
1754
9f9d12b3
AC
17552002-08-22 Andrew Cagney <ac131313@redhat.com>
1756
1757 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1758 attempt).
1759
ebeb39fe
JB
17602002-08-22 Jim Blandy <jimb@redhat.com>
1761
1762 * coffread.c (coff_symfile_read): Don't try to read the line
1763 number table from disk if the image file doesn't have a symbol
1764 table; we'll never actually look at the info anyway, and Windows
1765 ships DLL's with bogus file offsets for the line number data.
1766
5bf1c677
EZ
17672002-08-21 Elena Zannoni <ezannoni@redhat.com>
1768
1769 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1770 an e500 executable.
1771
71b8ef93
MS
17722002-08-21 Michael Snyder <msnyder@redhat.com>
1773
1774 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1775 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1776 (DEFAULT_MIPS_TYPE): Delete unused macro.
1777 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1778 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1779
d174216d
JB
17802002-08-21 Jim Blandy <jimb@redhat.com>
1781
1782 * valops.c (value_cast): Simplify and correct logic for doing a
1783 static cast from a pointer to a base class to a pointer to a
1784 derived class.
1785
0ab7a791
AC
17862002-08-21 Andrew Cagney <ac131313@redhat.com>
1787
1788 * infcmd.c (default_print_registers_info): Replace
1789 do_registers_info.
1790 (registers_info): Use gdbarch_print_registers_info instead of
1791 DO_REGISTERS_INFO.
1792 * inferior.h (default_print_registers_info): Replace
1793 do_registers_info.
1794 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1795 (DO_REGISTERS_INFO): Change to a predicate function.
1796 * gdbarch.h, gdbarch.c: Regenerate.
1797
e23792cc
KS
17982002-08-21 Keith Seitz <keiths@redhat.com>
1799
1800 * gdb-events.sh: Add target-changed event.
1801 * gdb-events.c: Regenerated.
1802 * gdb-events.c: Regenerated.
1803 * valops.c (value_assign): Add target-changed event notification
1804 to inlval_register, lval_memory, and lval_reg_frame_relative.
1805
9fb14e79
JB
18062002-08-21 Joel Brobecker <brobecker@gnat.com>
1807
1808 * NEWS: Add an entry regarding the improvement of the next/step
1809 operation on Alpha Tru64 multi-processor machines.
1810
6d39a69f
AC
18112002-08-21 Andrew Cagney <ac131313@redhat.com>
1812
72acd513
AC
1813 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1814 directores.
342af04b 1815 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1816 * Makefile.in (install-gdbtk): Move to install section.
1817 (rdi-share/libangsd.a): Move to end of file.
1818
fa5f27c7
AC
18192002-08-19 Andrew Cagney <ac131313@redhat.com>
1820
1821 * frame.c (frame_register_unwind): When a register, set addrp to
1822 the register's byte.
1823
5a89d8aa
MS
18242002-08-20 Michael Snyder <msnyder@redhat.com>
1825
1826 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1827 used locally, so move them from the target machine header to here.
1828 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1829 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1830 Make static.
1831 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1832
822e978b
AC
18332002-08-20 Andrew Cagney <cagney@redhat.com>
1834
1835 * NEWS: Mention that the Apollo line was made obsolete.
1836 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1837 m68*-hp-hpux* obsolete.
1838 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1839 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1840 * buildsym.c (make_blockvector): Make static.
1841 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1842 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1843 (ALLDEPFILES): Remove dstread.c.
1844 (dstread.o): Obsolete make rule.
1845 * dstread.c: Makefile obsolete.
1846 * dst.h: Ditto.
1847 * config/m68k/hp300hpux.mt: Ditto.
1848 * config/m68k/hp300hpux.mh: Ditto.
1849 * config/m68k/hp300bsd.mt: Ditto.
1850 * config/m68k/hp300bsd.mh: Ditto.
1851 * config/m68k/apollo68b.mt: Ditto.
1852 * config/m68k/apollo68v.mh: Ditto.
1853 * config/m68k/apollo68b.mh: Ditto.
1854
e41b17f0
MS
18552002-08-20 Michael Snyder <msnyder@redhat.com>
1856
1857 * mips-tdep.c (mips_in_return_stub): Make static.
1858 (mips_gdbarch_init): Set in_solib_return_trampoline.
1859 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1860
d50355b6
MS
18612002-08-20 Michael Snyder <msnyder@redhat.com>
1862
1863 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1864 * gdbarch.c, gdbarch.h: Regenerate.
1865 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1866 Add.
1867 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1868
757a7cc6
MS
18692002-08-20 Michael Snyder <msnyder@redhat.com>
1870
1871 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1872 (mips_gdbarch_init): Set skip_trampoline_code,
1873 in_solib_call_trampoline.
1874 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1875 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1876
c8001721
EZ
18772002-08-20 Elena Zannoni <ezannoni@redhat.com>
1878
1879 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1880
1881 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1882 vector type for ev registers.
1883 (e500_pseudo_register_read): New function.
1884 (e500_pseudo_register_write): New function.
1885 (e500_dwarf2_reg_to_regnum): New function.
1886 (PPC_UISA_NOFP_SPRS): New macro.
1887 (PPC_EV_REGS): New macro.
1888 (PPC_GPRS_PSEUDO_REGS): New macro.
1889 (registers_e500): New register set for e500.
1890 (variants): Add e500 variant.
1891 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1892 before setting architectural dependent variations. Initialize ev
1893 registers numbers. Add case for e500 architecture. Set the
1894 number of pseudo registers.
1895
64366f1c
EZ
18962002-08-20 Elena Zannoni <ezannoni@redhat.com>
1897
1898 * rs6000-tdep.c: Clean up comments.
1899
7e78f0ca
AC
19002002-08-20 Andrew Cagney <cagney@redhat.com>
1901
1902 * h8300-tdep.c: Re-indent file.
1903
697f7479
JB
19042002-08-20 Jim Blandy <jimb@redhat.com>
1905
1906 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1907 default for this.
697f7479 1908
e86ae29f
KS
19092002-08-20 Keith Seitz <keiths@redhat.com>
1910
1911 * breakpoints.c (watch_command_1): Use internal breakpoint
1912 when setting a watchpoint_scope breakpoint.
1913
216b504f
EZ
19142002-08-20 Elena Zannoni <ezannoni@redhat.com>
1915
1916 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1917 (build_builtin_type_vec64i): Ditto.
1918 (build_builtin_type_vec128): Ditto.
1919 (build_builtin_type_vec128i): Ditto.
1920
f7ab6ec6
MS
19212002-08-19 Michael Snyder <msnyder@redhat.com>
1922
1923 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1924 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1925 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1926 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1927 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1928 CALL_DUMMY_ADDRESS): Delete.
1929 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1930 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1931 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1932 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1933 push_return_address.
1934 (mips_register_raw_size, mips_eabi_use_struct_convention,
1935 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1936 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1937 mips_init_extra_frame_info, mips_eabi_push_arguments,
1938 mips_n32n64_push_arguments, mips_push_return_address,
1939 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1940 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1941
b5d1566e
MS
19422002-08-19 Michael Snyder <msnyder@redhat.com>
1943
1944 * mips-tdep.c (mips_frame_num_args): New function.
1945 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1946 frame_saved_pc, frame_args_address, frame_locals_address,
1947 frame_num_args, and frame_args_skip.
1948 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1949 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1950 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1951 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1952
2f1488ce
MS
19532002-08-20 Michael Snyder <msnyder@redhat.com>
1954
1955 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1956 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1957 * mips-tdep.c (mips_store_struct_return): New function.
1958 (mips_extract_struct_value_address): New function.
1959 (mips_gdbarch_init): Set store_struct_return and
1960 extract_struct_value_address.
1961
41ff2da1
DC
19622002-08-20 David Carlton <carlton@math.stanford.edu>
1963
1964 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1965 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1966 (read_file_scope): Check that line_header is nonzero before
1967 decoding macro information.
1968
e5451d58
MK
19692002-08-20 Mark Kettenis <kettenis@gnu.org>
1970
1971 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1972 flag the general-purpose registers as floating-point on targets
1973 that don't support the floating-point registers.
1974
4a6daafa
EZ
19752002-08-20 Elena Zannoni <ezannoni@redhat.com>
1976
1977 * rs6000-tdep.c (altivec_register_p): Delete.
1978 (rs6000_do_altivec_registers): Delete.
1979 (rs6000_altivec_registers_info): Delete.
1980 (rs6000_do_registers_info): Delete.
1981 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1982 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1983
ab4327e0
EZ
19842002-08-20 Elena Zannoni <ezannoni@redhat.com>
1985
1986 * infcmd.c (do_registers_info): Print vector registers in hex
1987 format only.
1988 (print_vector_info): Check that printing registers
1989 makes sense.
1990 (print_float_info): Ditto.
1991
cb1d2653
AC
19922002-08-20 Andrew Cagney <ac131313@redhat.com>
1993
1994 * mips-tdep.c (mips_gdbarch_init): Update.
1995 (mips_o32_extract_return_value): Rewrite.
1996 (mips_o32_store_return_value): Rewrite.
1997 (mips_o32_xfer_return_value): New function.
1998 (mips_xfer_register): Tweak debug print message. Allow for
1999 buf_offset when dumping the value transfered.
2000
dfc3d9b2
AC
20012002-08-20 Andrew Cagney <ac131313@redhat.com>
2002
2003 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2004 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2005 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2006 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2007 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2008
7807aa61
MS
20092002-08-14 Michael Snyder <msnyder@redhat.com>
2010
2011 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2012
489461e2
EZ
20132002-08-19 Elena Zannoni <ezannoni@redhat.com>
2014
2015 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2016 register.
2017 (P): New macro to define a register as a pseudo register.
2018 (R, R4, R8, R16, FR32, R64, R0): Updated.
2019 (struct variant): Add new fields for number of pseudo registers
2020 and number of total registers.
2021 (tot_num_registers): New macro replacing....
2022 (num_registers): ...deleted macro.
2023 (num_registers): New function.
2024 (num_pseudo_registers): New function.
2025 (variants): Update all variants to intialize new fields correctly.
2026 Postpone initialization of number of pseudo regs and real regs.
2027 (init_variants): New function.
2028 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2029 registers offsets.
2030
fcaffe4c
DC
20312002-08-19 David Carlton <carlton@math.stanford.edu>
2032
2c2738a0
DC
2033 * valops.c (search_struct_field): Change error message to treat
2034 return value of 0 from value_static_field as meaning that field is
2035 optimized out.
2036 (value_struct_elt_for_reference): Ditto.
2037 * values.c (value_static_field): Treat an unresolved location the
2038 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
2039 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2040 enclosed. Fix PR gdb/574.
fcaffe4c
DC
2041 * MAINTAINERS: Add self to Write After Approval list.
2042
88658117
AC
20432002-08-19 Andrew Cagney <ac131313@redhat.com>
2044
2045 * mips-tdep.c (mips_xfer_register): New function.
2046 (mips_n32n64_extract_return_value): Rewrite.
2047 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2048 instead of deprecated_extract_return_value.
2049
21283beb
EZ
20502002-08-19 Elena Zannoni <ezannoni@redhat.com>
2051
2052 * rs6000-tdep.c (TDEP): Delete macro.
2053 (branch_dest): Replace use of TDEP macro with its body.
2054 (rs6000_pop_frame): Ditto.
2055 (rs6000_push_arguments): Ditto.
2056 (rs6000_skip_trampoline_code): Ditto.
2057 (rs6000_frame_saved_pc): Ditto.
2058 (rs6000_frame_chain): Ditto.
2059 (rs6000_register_name): Ditto.
2060 (rs6000_register_byte): Ditto.
2061 (rs6000_register_raw_size): Ditto.
2062 (rs6000_register_virtual_type): Ditto.
2063 (rs6000_register_convertible): Ditto.
2064 (rs6000_convert_from_func_ptr_addr): Ditto.
2065
bf072999
DJ
20662002-08-19 Daniel Jacobowitz <drow@mvista.com>
2067
2068 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2069 conditionally.
2070 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2071 MIPS_LINUX_JB_ELEMENT_SIZE.
2072 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2073 for MAX_REGISTER_RAW_SIZE arrays.
2074 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2075 MIPS_LINUX_JB_ELEMENT_SIZE.
2076
9b949a49
PM
20772002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2078
2079 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2080
6d3e79c6
AS
20812002-08-19 Aidan Skinner <aidan@velvet.net>
2082
2083 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2084 ada-valprint.c ada-tasks.c.
2085 (YYFILES): Add ada-exp.y.
2086 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2087 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2088 (ada-exp.tab.o): New target.
2089
06c0b04e
AC
20902002-08-18 Andrew Cagney <ac131313@redhat.com>
2091
2092 * regcache.c (regcache_xfer_part): New function.
2093 (regcache_raw_read_part): New function.
2094 (regcache_raw_write_part): New function.
2095 (regcache_cooked_read_part): New function.
2096 (regcache_cooked_write_part): New function.
2097 * regcache.h (regcache_raw_read_part): Declare.
2098 (regcache_raw_write_part): Declare.
2099 (regcache_cooked_read_part): Declare.
2100 (regcache_cooked_write_part): Declare.
2101
92d1e331
DJ
21022002-08-18 Daniel Jacobowitz <drow@mvista.com>
2103
2104 * remote.c (remote_open_1): Add async_p.
2105 (remote_async_open_1): Delete.
2106 (open_remote_target): Delete.
2107 (remote_open, extended_remote_open): Update calls to remote_open_1.
2108 (remote_async_open, extended_remote_async_open): Call
2109 remote_open_1 instead of remote_async_open_1.
2110
247055de
MK
21112002-08-19 Mark Kettenis <kettenis@gnu.org>
2112
2113 * blockframe.c: Fix a few coding standard violations.
2114
641eda39
MK
21152002-08-19 Mark Kettenis <kettenis@gnu.org>
2116
0b717710
MK
2117 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2118 here from ...
2119 * config/i386/tm-i386sco5.h: ... here. File removed.
2120 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2121
26d28e12 2122 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2123 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2124 (TM_FILE): Set to tm-i386.h.
2125 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2126 * config/i386/tm-i386v.h: Remove file.
2127 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2128 instead of "i386/tm-i386v.h".
2129 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2130 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2131 "i386/tm-i386v.h".
2132 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2133 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2134 "i386/tm-i386.h".
2135
d4e0bab4
MK
21362002-08-18 Mark Kettenis <kettenis@gnu.org>
2137
2138 * config/i386/nm-i386v.h: Add protection against
2139 multiple-inclusion.
2140 (i386_register_u_addr): Remove prototype.
2141 (register_u_addr): New prototype.
2142 (REGISTER_U_ADDR): Redefine accordingly.
2143 * i386v-nat.c: Improve several comments.
2144 (i386_register_u_addr): Change signature and rename to
2145 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2146 ubase variable.
2147
46cac009
AC
21482002-08-18 Andrew Cagney <ac131313@redhat.com>
2149
2150 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2151 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2152 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2153 deprecated_extract_return_value.
2154 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2155 rename mips_o32o64_push_arguments.
2156 (mips_gdbarch_init): Update.
2157 (mips_extract_return_value): Delete.
2158 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2159 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2160 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2161 (mips_n32n64_extract_return_value): Clone
2162 mips_extract_return_value.
2163 (mips_store_return_value): Delete.
2164 (mips_o32_store_return_value): Clone mips_store_return_value.
2165 (mips_o64_store_return_value): Clone mips_store_return_value.
2166 (mips_eabi_store_return_value): Clone mips_store_return_value.
2167 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2168
d2e4a39e
AS
21692002-08-18 Aidan Skinner <aidan@velvet.net>
2170
0c30c098
AS
2171 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2172 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2173
21742002-08-18 Aidan Skinner <aidan@velvet.net>
2175
2176 * ada-lang.c: Run through gdb_indent.sh.
2177 * ada-lang.h: Run through gdb_indent.sh.
2178 * ada-tasks.c: Run through gdb_indent.sh.
2179 * ada-typeprint.c: Run through gdb_indent.sh.
2180 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2181
01fc4e33
AC
21822002-08-18 Andrew Cagney <ac131313@redhat.com>
2183
2184 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2185 ABI.
2186
d8ee244c
MK
21872002-08-18 Mark Kettenis <kettenis@gnu.org>
2188
c38d8261
MK
2189 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2190
222db64c
MK
2191 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2192 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2193
c2848c82
MK
2194 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2195 write_register_gen instead of write_register_bytes.
2196
d8ee244c
MK
2197 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2198 i[3456]-*-osf1mk* configurations have been made obsolete.
2199 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2200 i[3456]86-*-osf1mk* hosts obsolete.
2201 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2202 targets obsolete.
2203 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2204 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2205 config/i386/i386m3.mt, config/i386/nm-m3.h,
2206 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2207 config/i386/i386mk.mh, config/i386/i386mk.mt,
2208 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2209 obsolete.
2210 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2211 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2212 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2213
61d8d407
AC
22142002-08-18 Andrew Cagney <ac131313@redhat.com>
2215
2216 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2217 (hppa_value_returned_from_stack): Declare.
2218 (hppa_extract_return_value): Declare.
2219 * config/pa/hppa.mt: New file.
2220 * configure.tgt: Recognize hppa*-*-*.
2221 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2222
0c52bd59
MK
22232002-08-18 Mark Kettenis <kettenis@gnu.org>
2224
2225 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2226 comment.
2227
b5686e99
MK
22282002-08-17 Mark Kettenis <kettenis@gnu.org>
2229
2230 * top.c (gdb_rl_operate_and_get_next): Make sure
2231 operate-and-get-next functions correctly even when the history
2232 list is completely filled.
2233
c1bab85b
AC
22342002-08-18 Andrew Cagney <ac131313@redhat.com>
2235
2236 * MAINTAINERS (Target Instruction Set Architectures): Rename
2237 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2238 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2239 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2240 already listed under Host/Native.
2241
2242 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2243 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2244 mips*-*-*.
2245
32089c7c
AC
22462002-08-17 Andrew Cagney <ac131313@redhat.com>
2247
2248 * config/ia64/ia64.mt: New file.
2249 * config/alpha/alpha.mt: New file.
2250 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2251 ia64-linux-gnu. Mention that ia64-elf is broken.
2252 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2253
b4671f85
MK
22542002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2255
2256 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2257 generic_func_frame_valid instead of func_frame_valid.
2258
c8edd8b4
JB
22592002-08-16 Joel Brobecker <brobecker@gnat.com>
2260
2261 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2262 procfs appears to be broken when debugging on multi-processor
2263 machines. So enable software single stepping in order to avoid
2264 using the procfs interface to do next/step operations, using
2265 internal breakpoints instead.
2266
2267 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2268 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2269 make this pc address equal to the value it would have if the
2270 system stepping capability was used. Also set a new flag used
2271 to ensure that we don't readjust the PC one more time later.
2272
2273 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2274 address by DECR_PC_AFTER_BREAK when software single step is
2275 in use for this architecture, as this has already been taken
2276 care of in handle_inferior_event().
2277
238617f6
JB
22782002-08-16 Joel Brobecker <brobecker@gnat.com>
2279
2280 * infrun.c (handle_inferior_event): Minor reformatting, to make
2281 a rather long condition expression easier to read.
2282
541a7aac
AC
22832002-08-16 Andrew Cagney <ac131313@redhat.com>
2284
2285 * Makefile.in (gdbtk.o): Move to end of file.
2286 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2287 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2288 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2289 (gdbtk-wrapper.o, gdbres.o): Ditto.
2290
f92d4a7b
AC
22912002-08-16 Andrew Cagney <ac131313@redhat.com>
2292
2293 * Makefile.in (copying.o): Separate out compile rule.
2294 (hpux-thread.o, procfs.o, signals.o): Ditto.
2295 (v850ice.o, z8k-tdep.o): Ditto.
2296 (tui-file.o): Move to TUI section.
2297 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2298 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2299
1cce71eb
JB
23002002-08-16 Joel Brobecker <brobecker@gnat.com>
2301
2302 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2303 skip_trampoline_code, for better namespace-proofing.
2304
2305 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2306
0851f23d
JB
23072002-08-16 Joel Brobecker <brobecker@gnat.com>
2308
2309 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2310
f8d40ec8
JB
23112002-08-16 Joel Brobecker <brobecker@gnat.com>
2312
2313 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2314 signal, check whether we hit a breakpoint before checking for a
2315 single step breakpoint. Otherwise, GDB fails to notice that a
2316 breakpoint has been hit when stepping onto a breakpoint.
2317
63d022e0
KS
23182002-08-16 Keith Seitz <keiths@redhat.com>
2319
2320 * gdb-events.sh (clear_gdb_event_hooks): New function.
2321 * gdb-events.c: Regenerate.
2322 * gdb-events.h: Regenerate.
2323
6e31adb3
AC
23242002-08-16 Andrew Cagney <ac131313@redhat.com>
2325
2326 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2327 not_a_sw_breakpoint.
2328 * breakpoint.h (bpstat_stop_status): Add parameter names.
2329
c8189ed1
GS
23302002-08-16 Grace Sainsbury <graces@redhat.com>
2331
2332 * remote.c (remote_insert_hw_breakpoint)
2333 (remote_remove_hw_breakpoint): Fix calculation of length field
2334 for Z-packet.
2335
d05285fa
MS
23362002-08-15 Michael Snyder <msnyder@redhat.com>
2337
466d7106
MS
2338 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2339 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2340 (supply_fpregset): Ditto.
2341
d05285fa
MS
2342 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2343 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2344 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2345 (TARGET_READ_SP): Delete.
bf1f5b4c 2346 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2347 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2348 Delete.
2349 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2350 from macros to functions.
bf1f5b4c 2351
d05285fa
MS
2352 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2353 (mips_register_convertible, mips_register_convert_to_virtual,
2354 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2355 (mips_read_sp): New function.
2356 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2357 (mips_do_registers_info): Make static.
2358 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2359 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2360 (mips_register_convert_from_type, mips_register_convert_to_type):
2361 New functions.
2362 (mips_gdbarch_init): Set up function_start_offset,
2363 register_virtual_size, pc_in_sigtramp.
d05285fa 2364
e76f1f2e
AC
23652002-08-15 Andrew Cagney <ac131313@redhat.com>
2366
2367 * infcmd.c (vector_info): New function.
2368 (_initialize_infcmd): Add command "info vector".
2369 (print_vector_info): New function.
2370
2371 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2372 * gdbarch.h, gdbarch.c: Regenerate.
2373
4782dc19
AC
23742002-08-15 Andrew Cagney <ac131313@redhat.com>
2375
2376 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2377 ``print_all''. Only print vector registers when ``print_all''.
2378
23e3a7ac
AC
23792002-08-15 Andrew Cagney <ac131313@redhat.com>
2380
8e186fd6
AC
2381 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2382 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2383
23e3a7ac
AC
2384 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2385 Add `args' parameter.
2386 * gdbarch.h, gdbarch.c: Regenerate.
2387
2388 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2389
2390 * infcmd.c (float_info): Call print_float_info.
2391 (print_float_info): New function. By default, print the
2392 floating-point registers.
2393
2394 * arch-utils.h (default_print_float_info): Delete declaration.
2395 * arch-utils.c (default_print_float_info): Delete function.
2396
e0ca2bb9
MK
23972002-08-16 Mark Kettenis <kettenis@gnu.org>
2398
3f733acc
MK
2399 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2400 out define.
2401
7d8d2918
MK
2402 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2403 FRAME.
2404
1c7cc583
MK
2405 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2406 * configure.host: Make i[3456]86-*-aix host obsolete.
2407 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2408 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2409 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2410 config/i386/xm-i386aix.h: Make files obsolete.
2411 * i386aix-nat.c: Make file obsolete.
2412 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2413 (i386aix-nat.o): Make target obsolete.
2414
e0ca2bb9
MK
2415 * config/i386/nm-gnu.h: Removed.
2416 * config/i386/nm-i386gnu.h: New file.
2417 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2418 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2419 Moved here from ...
2420 * config/i386/tm-i386gnu.h: ... here. Removed.
2421 * config/i386/xm-i386gnu.h: Removed.
2422 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2423 (NAT_FILE): Set to nm-i386gnu.h.
2424 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2425 * i386-tdep.c: New file.
2426 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2427 (i386gnu-tdep.o): Specify dependencies.
2428
16057ec7 24292002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2430
6b99ee2e
MK
2431 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2432 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2433 Adjust a few comments to reflect reality a bit closer.
2434 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2435 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2436 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2437 target_insert_watchpoint, target_remove_watchpoint):
2438 Move defines to ...
2439 * config/i386/nm-i386sco5.h: ... here.
2440 (kernel_u_size): Add prototype. Improve a few comments and add
2441 protection against multiple inclusion.
2442
d9a6f65c
MK
2443 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2444 out define.
2445
047eff6a
MK
2446 * uw-thread.c (SP_ARG0): Define if not already defined.
2447 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2448
dcdb1290
MK
2449 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2450
5d2d0b2a
MK
2451 * config/i386/tm-i386.h: Don't include "regcache.h".
2452
61113f8b
MK
2453 * i387-tdep.h (i387_print_float_info): New prototype.
2454 * i387-tdep.c (print_i387_value, print_i387_ext,
2455 print_i387_status_word, print_i387_control_word): Add `struct
2456 ui_file *' argument and use it for output.
2457 (i387_print_float_info): Renamed from i387_float_info. Add
2458 `struct gdbarch *' and `struct ui_file *' arguments and use the
2459 latter for output.
2460 * i386-tdep.c: Include "i387-tdep.h".
2461 (i386_gdbarch_init): Set print_float_info.
2462 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2463 (FLOAT_INFO): Remove define.
2464
46e0f506
MS
24652002-08-13 Michael Snyder <msnyder@redhat.com>
2466
2467 * mips-tdep.c (mips_push_arguments): Rename to
2468 mips_eabi_push_arguments, and tune for EABI.
2469 (MIPS_REGS_HAVE_HOME_P): Delete.
2470 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2471 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2472 Delete references to mips_regs_have_home_p.
2473
409268de
KS
24742002-08-14 Keith Seitz <keiths@redhat.com>
2475
2476 * Makefile.in (install-gdbtk): Create insight plugin directory.
2477 Install plugins.tcl file.
2478
ffc6a242
KS
24792002-08-14 Keith Seitz <keiths@redhat.com>
2480
2481 * configure.in: Move SUBDIRS to near top of the file so that
2482 --enable options may add things to it.
2483 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2484 * configure: Regenerate.
2485
ebafbe83
MS
24862002-08-13 Michael Snyder <msnyder@redhat.com>
2487
2488 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2489 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2490 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2491
32f6f25d
AC
24922002-08-13 Andrew Cagney <ac131313@redhat.com>
2493
2494 * vax-tdep.c (vax_get_saved_register): Delete function.
2495 (vax_gdbarch_init): Update.
2496 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2497 (ns32k_gdbarch_init): Update.
2498 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2499 (alpha_gdbarch_init): Update.
2500
53826de9
AC
25012002-08-13 Andrew Cagney <cagney@redhat.com>
2502
2503 * regcache.c (init_regcache_descr): Overallocate the
2504 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2505 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2506 nr_raw_registers.
2507 (set_register_cached): Add range checking assertions. Use
2508 current_regcache.
2509
16057ec7 25102002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2511
2512 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2513 numbers for MMX registers.
2514
7b4c2dce
AC
25152002-08-13 Andrew Cagney <cagney@redhat.com>
2516
2517 * i386-tdep.c (i386_gdbarch_init): Use
2518 generic_unwind_get_saved_register.
2519
1e03ad20
KB
25202002-08-13 Kevin Buettner <kevinb@redhat.com>
2521
2522 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2523 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2524 target vector.
2525 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2526 Delete. Add comment regarding this now-deleted target method.
2527
548bcbec
SC
25282002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2529
2530 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2531 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2532 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2533 real PC and the page number (if it's within the memory bank window).
2534 (m68hc11_pseudo_register_write): Likewise when saving.
2535 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2536 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2537 (m68hc11_register_raw_size): And use 32-bit for it.
2538 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2539 16K memory bank is used by the prog; also use the virtual pc.
2540
7df11f59
SC
25412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2542
2543 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2544 (m68hc11_gdbarch_init): Install it in gdbarch.
2545 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2546 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2547 (MSYMBOL_SIZE): New for documentation.
2548 (insn_return_kind): Enum to specify how a function returns.
2549 (frame_extra_info): Cleanup and record the return mode.
2550 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2551 register in address computation.
2552 (m68hc11_get_return_insn): New to obtain the return instruction used
2553 by the function.
2554 (m68hc11_frame_init_saved_regs): Take into account the return
2555 instruction used by the function for far and interrupt functions.
2556 (m68hc11_init_extra_frame_info): Take into account page register.
2557 (m68hc11_frame_args_address): Adjust according to the return mode.
2558 (show_regs): Print page register only when it's used.
2559
5706502a
SC
25602002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2561
2562 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2563 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2564 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2565 registers.
2566 (m68hc11_register_raw_size): Likewise.
2567
28fc6740
AC
25682002-08-13 Andrew Cagney <cagney@redhat.com>
2569
2570 * i386-tdep.c (i386_register_name): Handle mmx registers.
2571 (mmx_regnum_p): New function.
2572 (i386_mmx_names): New array.
2573 (mmx_num_regs): New variable.
2574 (i386_pseudo_register_read): New function.
2575 (i386_pseudo_register_write): New function.
2576 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2577
2578 * regcache.c (regcache_raw_read_unsigned): New function.
2579 (regcache_raw_read_signed): New function.
2580 * regcache.h (regcache_raw_read_unsigned): Declare.
2581 (regcache_raw_read_signed): Declare.
2582
a378f419
AC
25832002-08-13 Andrew Cagney <cagney@redhat.com>
2584
2585 * regcache.c (regcache_raw_read_as_address): Delete function.
2586 (regcache_cooked_read_signed): New function.
2587 (regcache_cooked_read_unsigned): New function.
2588 * regcache.h (regcache_cooked_read_signed): Declare.
2589 (regcache_cooked_read_unsigned): Declare.
2590 (regcache_raw_read_as_address): Delete declaration.
2591
2592 * blockframe.c (generic_read_register_dummy): Use
2593 regcache_cooked_read_unsigned.
2594 * i386-tdep.c (i386_extract_struct_value_address): Use
2595 regcache_cooked_read_unsigned.
2596
81967506
SC
25972002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2598
2599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2600 double sizes according to ELF ABI flags.
2601 (gdbarch_tdep): Record elf_flags.
2602
ffe1f3ee
SC
26032002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2604
2605 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2606 (m6812_prolog): They can appear in 68HC12 function prologue.
2607 (m68hc11_frame_chain): Cleanup.
2608
98216c5d
AC
26092002-08-12 Andrew Cagney <cagney@redhat.com>
2610
2611 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2612 declarations.
2613 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2614 (i386_linux_register_raw_size): Delete function.
2615 (i386_linux_init_abi): Update.
2616 * i386-tdep.c (i386_register_raw_size): Delete function.
2617 (i386_register_byte): Delete function.
2618 (i386_gdbarch_init): Update.
2619 (i386_register_size): Delete array.
2620 (i386_register_offset): Delete array.
2621
2622 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2623 (REGISTER_RAW_SIZE): Delete macro.
2624 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2625 (REGISTER_BYTE): Delete macro.
2626
3b19021e
AS
26272002-08-11 Aidan Skinner <aidan@velvet.net>
2628
2629 * ada-lang.c (ada_lookup_partial_symbol)
2630 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2631 prototype names so that grep ^func works properly.
2632
2633 * ada-lang.c (ada_array_element_type)
2634 (ada_lookup_partial_symbol): Fix typos in parameter list.
2635
2636 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2637 Fix prototype names so that grep ^func works properly.
2638
b063e7a2
AC
26392002-08-10 Andrew Cagney <cagney@redhat.com>
2640 Elena Zannoni <ezannoni@redhat.com>
2641 Martin M. Hunt <hunt@redhat.com>
2642
2643 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2644 (build_builtin_type_vec128i): Set the vector bit.
2645 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2646 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2647 (build_builtin_type_vec64): New function.
2648 (build_builtin_type_vec64i): New function.
2649 (build_gdbtypes): Initialize builtin_type_vec64 and
2650 builtin_type_vec64i.
2651
a7e3c2ad
AC
26522002-08-09 Andrew Cagney <cagney@redhat.com>
2653
2654 * regcache.c (regcache_dump): Compare the register offset
2655 with REGISTER_BYTE.
2656 * arch-utils.c (generic_register_byte): New function.
2657 * arch-utils.h (generic_register_byte): Declare.
2658 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2659 * gdbarch.h, gdbarch.c: Regenerate.
2660
af030b9a
AC
26612002-08-09 Andrew Cagney <cagney@redhat.com>
2662
2663 * regcache.c: Include "gdbcmd.h"
2664 (_initialize_regcache): Add commands "maintenance print
2665 registers", "maintenance print raw-registers" and "maintenance
2666 print cooked-registers".
2667 (enum regcache_dump_what): Define.
2668 (dump_endian_bytes): New function.
2669 (regcache_dump): New function.
2670 (regcache_print): New function.
2671 (maintenance_print_registers): New function.
2672 (maintenance_print_raw_registers): New function.
2673 (maintenance_print_cooked_registers): New function.
2674 * Makefile.in (regcache.o): Update dependencies.
2675
cb3d25d1
MS
26762002-08-09 Michael Snyder <msnyder@redhat.com>
2677
2678 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2679 (mips_push_arguments): Correct some comments. Use paddr_nz
2680 for printing addresses in debug output. Replace static
2681 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2682 (mips_n32n64_push_arguments): New function, cloned from
2683 mips_push_arguments and tuned for the n32/n64 ABI.
2684 (mips_push_register): Buffer needs dynamic allocation.
2685 (mips_print_register): Ditto.
2686 (do_gp_register_row): Ditto.
2687 (mips_store_return_value): Ditto.
2688 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2689
2163ab9d
DH
26902002-08-09 Don Howard <dhoward@redhat.com>
2691
2692 * memattr.c (mem_info_command): Print special case of upper bound
2693 as max CORE_ADDR + 1.
2694
b78bcb18
MS
26952002-08-08 Michael Snyder <msnyder@redhat.com>
2696
2697 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2698 returns structs by ref if they're too big to fit in two registers.
2699
ffabd70d
KB
27002002-08-09 Kevin Buettner <kevinb@redhat.com>
2701
2702 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2703 saved regs value.
2704 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2705 mips_find_saved_regs().
2706 (mips_pop_frame): Likewise.
2707
fbcdb4a3
KB
27082002-08-09 Kevin Buettner <kevinb@redhat.com>
2709
2710 * blockframe.c (frame_saved_regs_register_unwind): Revise
2711 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2712 frames are in use.
2713
3c3bea1c
GS
27142002-08-09 Grace Sainsbury <graces@redhat.com>
2715
2716 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2717 T-packets; the 'a' is not taken as a register number.
2718 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2719 (remote_stopped_data_address): New functions; add to target
2720 vector.
2721 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2722 prototypes to match other implementations of this
2723 function. replace integer argument with pointer -- the length
2724 field in the Z-packet is the length of what is pointed to or 1 if
2725 pointer is null. Add to target vector.
2726 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2727 target vector.
2728
2729 From Mark Salter:
2730 * remote.c (remote_wait): Add support to extract optional
2731 watchpoint information from T-packet. Ignore unrecognized
2732 optional info in T-packet.
2733 (remote_async_wait): Ditto.
2734
5d1d95de
CV
27352002-08-09 Corinna Vinschen <vinschen@redhat.com>
2736
2737 * cli/cli-dump.c: Change fopen modes to use binary open modes
2738 as defined in include/fopen-bin.h throughout.
2739
c86b5b38
MS
27402002-08-08 Michael Snyder <msnyder@redhat.com>
2741
2742 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2743
b30590dc
KB
27442002-08-08 Kevin Buettner <kevinb@redhat.com>
2745
2746 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2747 assertion failure by returning early after a warning.
2748
498868ed
KB
27492002-08-08 Kevin Buettner <kevinb@redhat.com>
2750
2751 * mips-tdep.c (mips_find_saved_regs): Make static.
2752 (mips_frame_init_saved_regs): New function.
2753 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2754 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2755 (mips_find_saved_regs): Delete declaration.
2756
b2dd6311
GS
27572002-08-08 Grace Sainsbury <graces@redhat.com>
2758
3c3bea1c
GS
2759 * remote.c (remote_wait, remote_async_wait): Change
2760 thread_num from int to ULONGEST.
2761 (unpack_varlen_hex): Change result parameter from
2762 int * to ULONGEST *.
b2dd6311 2763
ea47855f
AC
27642002-08-08 Andrew Cagney <ac131313@redhat.com>
2765
2766 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2767 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2768 powerpc*-*-*.
2769 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2770
69db8bae
AC
27712002-08-08 Andrew Cagney <cagney@redhat.com>
2772
2773 * gcore.c (override_derive_stack_segment): Delete variable.
2774 (preempt_derive_stack_segment): Delete function.
2775 (derive_stack_segment): Delete function.
2776 (default_derive_stack_segment): Renamed to derive_stack_segment.
2777 (override_derive_heap_segment): Delete variable.
2778 (preempt_derive_heap_segment): Delete function.
2779 (derive_heap_segment): Delete function.
2780 (default_derive_heap_segment): Rename to derive_heap_segment.
2781
cb811fe7
MS
27822002-08-06 Michael Snyder <msnyder@redhat.com>
2783
2784 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2785 * mips-tdep.c (mips_EABI_use_struct_convention,
2786 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2787 New functions. (mips_use_struct_convention): Delete.
2788 (mips_gdbarch_init): set use_gdbarch_convention.
2789
8b389c40
MS
27902002-08-06 Michael Snyder <msnyder@redhat.com>
2791
2792 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2793 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2794 mips_o32_reg_struct_has_addr): New functions.
2795 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2796
5c27f28a
AC
27972002-08-07 Andrew Cagney <ac131313@redhat.com>
2798
2799 * regcache.c (pseudo_register): Delete function.
2800 (fetch_register): Delete function.
2801 (store_register): Delete function.
2802 (regcache_raw_read, legacy_read_register_gen): Use
2803 target_fetch_registers instead of fetch_register.
2804 (legacy_write_register_gen, regcache_raw_write): Use
2805 target_store_register instead of store_register.
2806 (write_register_bytes): Ditto.
2807
2808 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2809 (STORE_PSEUDO_REGISTER): Delete.
2810 * gdbarch.h, gdbarch.c: Regenerate.
2811
5b331675
CV
28122002-08-06 Corinna Vinschen <vinschen@redhat.com>
2813
2814 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2815 write dump file binary.
2816
6acdf5c7
MS
28172002-08-05 Michael Snyder <msnyder@redhat.com>
2818
2819 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2820 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2821 (mips_gdbarch_init): Set N32 target to be mips64.
2822
b2f01c35
KB
28232002-08-06 Kevin Buettner <kevinb@redhat.com>
2824
2825 * frame.c (find_saved_register): Break out of loop once saved
2826 register address is found. Don't mention sparc in loop comment
2827 anymore.
2828
63db5580
KB
28292002-08-06 Kevin Buettner <kevinb@redhat.com>
2830
2831 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2832 mips_default_saved_regsize to 8.
2833
5e34e75e
AC
28342002-08-06 Andrew Cagney <ac131313@redhat.com>
2835
2836 * gcore.c: Do not include <sys/procfs.h>.
2837 * Makefile.in (gcore.o): Update dependencies.
2838
eb4c54a2
AC
28392002-08-06 Andrew Cagney <cagney@redhat.com>
2840
2841 * configure.tgt: Make arc-*-* obsolete.
2842 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2843 * MAINTAINERS: Make arc-elf obsolete.
2844 * arc-tdep.c: Make file obsolete.
2845 * config/arc/arc.mt: Ditto.
2846 * config/arc/tm-arc.h: Ditto.
2847
ced15480
TR
28482002-08-05 Theodore A. Roth <troth@verinet.com>
2849
c1bab85b 2850 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2851
b4743822
AC
28522002-08-05 Andrew Cagney <ac131313@redhat.com>
2853
2854 * mcore-tdep.c (mcore_gdbarch_init): Use
2855 generic_unwind_get_saved_register instead of
2856 generic_get_saved_register.
2857 * v850-tdep.c (v850_gdbarch_init): Ditto.
2858 * frv-tdep.c (frv_gdbarch_init): Ditto.
2859 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2860 * s390-tdep.c (s390_gdbarch_init): Ditto.
2861 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2862 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2863 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2864
3956d554
JB
28652002-08-05 Joel Brobecker <brobecker@gnat.com>
2866
2867 * objfiles.h: Add missing #include "symfile.h"
2868
2869 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2870
8249c0d6
AC
28712002-08-04 Andrew Cagney <ac131313@redhat.com>
2872
2873 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2874 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2875 of FIELD_BITSIZE.
2876
b9d14705
DJ
28772002-08-04 Daniel Jacobowitz <drow@mvista.com>
2878
2879 * NEWS: Cleanup and nitpick.
2880
dd73b9bb
AC
28812002-08-03 Andrew Cagney <ac131313@redhat.com>
2882
2883 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2884
043a27f8
AC
28852002-08-03 Andrew Cagney <ac131313@redhat.com>
2886
2887 * Makefile.in (gdbtk-bp.o): Update dependencies.
2888 (gdbtk-register.o): Ditto.
2889 (gdbtk-varobj.o): Ditto.
2890
46ce284d
AC
28912002-08-03 Andrew Cagney <cagney@redhat.com>
2892
2893 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2894 m68hc11_fetch_pseudo_register.
2895 (m68hc11_pseudo_register_write): Replace
2896 m68hc11_store_pseudo_register.
2897 (m68hc11_gdbarch_init): Update.
2898
b66d6d2e
AC
2899Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2900
2901 * gdbarch.sh: Include "gdb_string.h".
2902 * gdbarch.c: Regenerate.
2903
2904 * regcache.c: Include "gdb_string.h".
2905 * ax-general.c: Ditto.
2906 * varobj.c: Ditto.
2907 * std-regs.c: Ditto.
2908 * fbsd-proc.c: Ditto.
2909 * thread.c: Ditto.
2910
2911 * Makefile.in (regcache.o): Update dependencies.
2912 (thread.o, gdbarch.o): Ditto.
2913 (ax-general.o, gdbarch.o): Ditto.
2914 (varobj.o, std-regs.o): Ditto.
2915 (fbsd-proc.o): Specify dependencies.
2916
29e1842b
AC
29172002-08-02 Andrew Cagney <cagney@redhat.com>
2918
2919 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2920 regnum.
2921 (regcache_cooked_write): Ditto.
2922
68365089
AC
29232002-08-02 Andrew Cagney <ac131313@redhat.com>
2924
2925 * regcache.c (regcache_cooked_read): New function.
2926 (regcache_cooked_write): New function.
2927 (read_register_gen): Rewrite using regcache_cooked_read.
2928 (write_register_gen): Rewrite using regcache_cooked_write.
2929
2930 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2931 Declare.
2932
d8124050
AC
29332002-08-02 Andrew Cagney <cagney@redhat.com>
2934
2935 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2936 Replace the architecture methods register_read and register_write.
2937 * gdbarch.h, gdbarch.c: Regenerate.
2938 * regcache.c (init_regcache_descr): Update.
2939 (read_register_gen): Update.
2940 (write_register_gen): Update.
2941 (supply_register): Update comment.
2942
2943 * sh-tdep.c (sh_gdbarch_init): Update.
2944 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2945 `regcache' and `gdbarch' parameters. Make `buffer' a void
2946 pointer. Update code.
2947 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2948 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2949 void pointer. Update code.
2950 (sh64_register_write): Delete.
2951 (sh4_register_read): Delete.
2952 (sh64_register_read): Delete.
2953 (sh4_register_write): Delete.
2954 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2955 void pointer, `to' parameter a void pointer.
2956 (sh_sh64_register_convert_to_raw): Ditto.
2957
a6425924
KB
29582002-08-01 Kevin Buettner <kevinb@redhat.com>
2959
2960 * mips-tdep.c (mips_register_virtual_type): Use architecture
2961 invariant return values.
2962
ff5922b5
AC
29632002-08-01 Andrew Cagney <cagney@redhat.com>
2964
2965 * linux-proc.c: Include "gdb_string.h".
2966 * Makefile.in (linux-proc.o): Update dependency list.
2967
32a6503c
KB
29682002-08-01 Kevin Buettner <kevinb@redhat.com>
2969
2970 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2971 comment.
2972
ccaa32c7
GS
29732002-08-01 Grace Sainsbury <graces@redhat.com>
2974
2975 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2976 to_insert_watchpoint, to_remove_watchpoint,
2977 to_stopped_by_watchpoint, to_stopped_data_address,
2978 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2979 target vecctor. Define their corresponding macros so they call
2980 them.
2981
2982 * target.c: Add default and debug versions of for
2983 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2984 to_insert_watchpoint, to_remove_watchpoint,
2985 to_stopped_by_watchpoint, to_stopped_data_address,
2986 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2987
78fde5f8
KB
29882002-08-01 Kevin Buettner <kevinb@redhat.com>
2989
2990 * mips-tdep.c (mips_register_virtual_type): New function.
2991 (mips_gdbarch_init): Register mips_register_virtual_type()
2992 with gdbarch machinery.
2993 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2994 this file instead of tm-bigmips.h.
2995 (MIPS_REGSIZE): Delete this macro.
2996 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2997 multiarch version in mips-tdep.c will be found.
2998
db034ac5
AC
29992002-08-01 Andrew Cagney <cagney@redhat.com>
3000
3001 * NEWS: Menion that CHILL has been made obsolete.
3002
3003 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
3004 * stabsread.c (read_range_type): Ditto.
3005 * gdbtypes.h: Ditto.
3006 * language.c (binop_type_check): Ditto.
3007 (binop_result_type): Ditto.
3008 (integral_type): Ditto.
3009 (character_type): Ditto.
3010 (string_type): Ditto.
3011 (boolean_type): Ditto.
3012 (structured_type): Ditto.
3013 (lang_bool_type): Ditto.
3014 (binop_type_check): Ditto.
3015 * language.h (_LANG_chill): Ditto.
3016 * dwarfread.c (set_cu_language): Ditto.
3017 * dwarfread.c (CHILL_PRODUCER): Ditto.
3018 * dwarfread.c (handle_producer): Ditto.
3019 * expression.h (enum exp_opcode): Ditto.
3020 * eval.c: Ditto for comments.
3021 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3022 * expprint.c (print_subexp): Ditto.
3023 (print_subexp): Ditto.
3024 * valops.c (value_cast): Ditto.
3025 (search_struct_field): Ditto.
3026 * value.h (COERCE_VARYING_ARRAY): Ditto.
3027 * symfile.c (init_filename_language_table): Ditto.
3028 (add_psymbol_with_dem_name_to_list): Ditto.
3029 * valarith.c (value_binop): Ditto.
3030 (value_neg): Ditto.
3031 * valops.c (value_slice): Ditto.
3032 * symtab.h (union language_specific): Ditto.
3033 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3034 (SYMBOL_DEMANGLED_NAME): Ditto.
3035 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3036 * defs.h (enum language): Ditto.
3037 * symtab.c (got_symtab): Ditto.
3038 * utils.c (fprintf_symbol_filtered): Ditto.
3039
3040 * ch-typeprint.c: Make file obsolete.
3041 * ch-valprint.c: Make file obsolete.
3042 * ch-lang.h: Make file obsolete.
3043 * ch-exp.c: Make file obsolete.
3044 * ch-lang.c: Make file obsolete.
3045
3046 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3047 CHILL_LIB.
3048 (TARGET_FLAGS_TO_PASS): Ditto.
3049 (CHILLFLAGS): Obsolete.
3050 (CHILL): Obsolete.
3051 (CHILL_FOR_TARGET): Obsolete.
3052 (CHILL_LIB): Obsolete.
3053 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3054 ch-valprint.c.
3055 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3056 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3057 ch-lang.o.
3058 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3059 targets.
3060
8aaf0b47
JB
30612002-07-31 Joel Brobecker <brobecker@gnat.com>
3062
3063 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3064 This does not change anything at the moment, but will be helpful
3065 later when full Ada support is integrated.
3066
f3a7b3a5
KB
30672002-07-31 Kevin Buettner <kevinb@redhat.com>
3068
3069 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3070 help message.
3071
fb850278
KB
30722002-07-31 Kevin Buettner <kevinb@redhat.com>
3073
3074 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3075 and save it in a local variable. Use variable in later test.
3076
e3bddbfa
KB
30772002-07-31 Kevin Buettner <kevinb@redhat.com>
3078
3079 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3080 test. (Thanks to Daniel Jacobowitz.)
3081
28d169de
KB
30822002-07-31 Kevin Buettner <kevinb@redhat.com>
3083
3084 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3085 (mips_abi_strings): Add "n64".
3086 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3087
7fe7e44e
KB
30882002-07-31 Kevin Buettner <kevinb@redhat.com>
3089
3090 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3091 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3092
c6caf090
KB
30932002-07-31 Kevin Buettner <kevinb@redhat.com>
3094
3095 * utils.c (host_pointer_to_address, address_to_host_pointer):
3096 Use gdb_assert() instead of explicit call to internal_error().
3097
c41669e0
KB
30982002-07-30 Kevin Buettner <kevinb@redhat.com>
3099
3100 * Makefile.in (rs6000-nat.o): Update dependencies.
3101
3102 From Nicholas Duffek:
3103 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3104 (aix-thread.o): New rule.
3105 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3106 * config/powerpc/aix432.mh: New file.
3107
2fda4977
DJ
31082002-07-30 Daniel Jacobowitz <drow@mvista.com>
3109
3110 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3111 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3112 (fetch_core_registers, ppc_linux_supply_gregset)
3113 (ppc_linux_supply_fpregset): New functions.
3114 (ppc_linux_regset_core_fns): New.
3115 (_initialize_ppc_linux_tdep): Call add_core_fns.
3116 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3117 and ppc_linux_supply_gregset.
3118 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3119 (supply_fpregset): Call ppc_linux_supply_fpregset.
3120 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3121 corelow.o.
3122 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3123
729051e6
DJ
31242002-07-30 Daniel Jacobowitz <drow@mvista.com>
3125
3126 * symtab.c (lookup_symbol): Demangle before lowercasing.
3127
5f8a3188
AC
31282002-07-30 Andrew Cagney <ac131313@redhat.com>
3129
3130 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3131 declaration.
3132 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3133 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3134 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3135 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3136 "gdb_string.h".
3137 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3138 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3139 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3140 (avr-tdep.o, mon960-rom.o): Ditto.
3141 (aout_stabs_gnu_h): Define.
3142 (symtab_h): Remove $(gdb_obstack_h).
3143
67f07146
JB
31442002-07-30 Jim Blandy <jimb@redhat.com>
3145
3146 Patch from David Carlton <carlton@math.stanford.edu>:
3147 * gdbinit.in: Move the `dir' commands that add GDB's own source
3148 directory to the search path to the end, so that the `gdb' source
3149 directory will be searched first.
3150
04ea0df1
AC
31512002-07-29 Andrew Cagney <ac131313@redhat.com>
3152
3153 * gdb_obstack.h: New file.
3154 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3155 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3156 * objfiles.h: Include "gdb_obstack.h".
3157 * Makefile.in (gdb_obstack_h): Define.
3158 (symtab_h): Add $(gdb_obstack_h).
3159 (objfiles_h): Add $(gdb_obstack_h).
3160
3161 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3162 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3163 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3164 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3165 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3166 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3167 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3168 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3169
3170 * Makefile.in (bcache.o): Update dependencies.
3171 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3172 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3173 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3174 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3175 (stabsread.o, symfile.o, symmisc.o): Ditto.
3176 (symtab.o, typeprint.o, macroexp.o): Ditto.
3177 (macrotab.o, mdebugread.o): Ditto.
3178 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3179 (coff_ecoff_h, aout_aout64_h): Define.
3180 (aout_stabs_gnu_h, libaout_h): Define.
3181
d138e37a
AC
31822002-07-29 Andrew Cagney <cagney@redhat.com>
3183
3184 * regcache.c (struct regcache_descr): Rename nr_registers to
3185 nr_cooked_registers. Revise comments describing the structure
3186 member fields.
3187 (init_regcache_descr): Update.
3188 (init_legacy_regcache_descr): Update.
3189 (read_register_gen, write_register_gen): When a cooked register in
3190 the raw register range, directly access the value from the raw
3191 register cache.
3192
460e6ec3
AC
31932002-07-29 Andrew Cagney <ac131313@redhat.com>
3194
3195 * z8k-tdep.c: Do not include "obstack.h".
3196 * h8300-tdep.c, h8500-tdep.c: Ditto.
3197 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3198 * valprint.c, v850-tdep.c: Ditto.
3199 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3200 * mn10200-tdep.c: Ditto.
3201
3202 * Makefile.in (z8k-tdep.o): Update dependencies.
3203 (m68hc11-tdep.o, valprint.o): Ditto.
3204 (v850-tdep.o, d10v-tdep.o): Ditto.
3205 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3206 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3207 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3208 (sh_opc_h, gdb_sim_sh_h): Define.
3209 (elf_sh_h, elf_bfd_h): Define.
3210 (opcode_m68hc11_h): Define.
3211 (OPCODES_SRC, OPCODES_DIR): define.
3212 (OPCODES): Use $(OPCODES_DIR).
3213 (gdb_sim_d10v_h): Rename sim_d10v_h.
3214 (gdb_sim_arm_h): Rename sim_arm_h.
3215
790c9cf0
KB
32162002-07-26 Kevin Buettner <kevinb@redhat.com>
3217
3218 * utils.c (host_pointer_to_address, address_to_host_pointer):
3219 Change internal_error() message to indicate function responsible
3220 for the error.
3221
9647fa49
KB
32222002-07-26 Kevin Buettner <kevinb@redhat.com>
3223
3224 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3225 calls to local_hex_string_custom().
3226
dabbe2c0
KB
32272002-07-26 Kevin Buettner <kevinb@redhat.com>
3228
3229 * irix5-nat.c: Move IRIX shared library support from here...
3230 * solib-irix.c: ...to here. Revised substantially to work with
3231 generic solib framework.
3232
b96d0a4e
KB
3233 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3234 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3235 * mips-irix-tdep.c: New file.
3236
313fb2f6
KB
3237 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3238 (mips-irix-tdep.o, solib-irix.o): New rules.
3239 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3240 solib-irix.o.
3241 * config/mips/irix6.mt (TDEPFILES): Likewise.
3242 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3243
ab2eaf26
KB
32442002-07-26 Kevin Buettner <kevinb@redhat.com>
3245
177e4768 3246 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3247 disabled (via ``#if 0'') includes.
3248
7244546a
KB
32492002-07-26 Kevin Buettner <kevinb@redhat.com>
3250
3251 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3252 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3253 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3254 Add support for the fpscr register.
3255 * rs6000-nat.c (regmap, fetch_inferior_registers)
3256 (store_inferior_registers, fetch_core_registers): Likewise.
3257
dd7be90a
KB
32582002-07-26 Kevin Buettner <kevinb@redhat.com>
3259
3260 * rs6000-nat.c (language.h): Include.
3261 (special_regs): Delete this array.
3262 (regmap): New function.
3263 (fetch_register, store_register): Use regmap() to map gdb
3264 register numbers to ptrace register numbers. Also, use
3265 outputs from regmap() to make decisions regarding type of
3266 ptrace() call to make. In particular, don't compare against
3267 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3268 (fetch_inferior_registers, store_inferior_registers): Where
3269 possible, obtain register numbers from tdep struct. Don't
3270 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3271 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3272 (LAST_UISA_SP_REGNUM): Delete.
3273
11bf77db
KB
32742002-07-25 Kevin Buettner <kevinb@redhat.com>
3275
3276 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3277 (fetch_registers, store_register, fetch_core_registers): Don't
3278 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3279 regcache_collect() as appropriate.
3280 (find_toc_address): Format hex address with local_hex_string().
3281
06afebeb
AC
32822002-07-25 Andrew Cagney <ac131313@redhat.com>
3283
3284 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3285 bfd/elf32-frv.c.
3286
8c554d79
TT
32872002-07-24 Tom Tromey <tromey@redhat.com>
3288
3289 * jv-exp.y: Marked all strings with _().
3290 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3291 internal_error.
3292 (MethodInvocation, CastExpression, parse_number, yyerror,
3293 java_type_from_name, push_expression_name, yylex): Typo fixes.
3294
e4c242d9
DJ
32952002-07-24 Daniel Jacobowitz <drow@mvista.com>
3296
3297 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3298 (tee_file_flush, tee_file_write, tee_file_fputs)
3299 (tee_file_isatty): New.
3300 * ui-file.h (tee_file_new): Add prototype.
3301
ebf56fd3
AS
33022002-07-24 Aidan Skinner <aidan@velvet.net>
3303
3304 * ada-lang.c: Change k&r style function definitions to prototyped
3305 form.
3306 * ada-typeprint.c: Change k&r style function definitions to prototyped
3307 form.
3308 * ada-valprint.c: Change k&r style function definitions to prototyped
3309 form.
3310
7fb623f7
AC
33112002-07-24 Andrew Cagney <cagney@redhat.com>
3312
3313 * README: Remove reference to remote-bug.
3314 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3315 remote-bug.c.
3316 (m88k-nat.o): Delete rule.
3317 (m88k-tdep.o): Delete rule.
3318 (remote-bug.o): Delete rule.
3319 * MAINTAINERS: Mark as obsolete.
3320 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3321 * m88k-tdep.c: Make file obsolete.
3322 * config/m88k/m88k.mh: Ditto.
3323 * config/m88k/delta88v4.mh: Ditto.
3324 * config/m88k/delta88v4.mt: Ditto.
3325 * config/m88k/delta88.mt: Ditto.
3326 * config/m88k/delta88.mh: Ditto.
3327 * remote-bug.c: Ditto.
3328 * config/m88k/tm-delta88.h: Ditto.
3329 * config/m88k/nm-delta88v4.h: Ditto.
3330 * config/m88k/xm-delta88.h: Ditto.
3331 * config/m88k/xm-dgux.h: Ditto.
3332 * config/m88k/tm-m88k.h: Ditto.
3333 * config/m88k/nm-m88k.h: Ditto.
3334 * config/m88k/tm-delta88v4.h: Ditto.
3335 * m88k-nat.c: Ditto.
3336 * cxux-nat.c: Ditto.
3337 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3338 and m88*-*-* obsolete.
3339 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3340 m88*-*-* obsolete.
3341
37611a2b
AC
33422002-07-24 Andrew Cagney <cagney@redhat.com>
3343
3344 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3345 constant. Same for local pointer variables.
3346 (extract_signed_integer): Ditto.
3347 * defs.h (extract_unsigned_integer): Update.
3348 (extract_signed_integer): Update.
3349
1aaa5f99
AC
33502002-07-24 Andrew Cagney <cagney@redhat.com>
3351
3352 * regcache.c (regcache_raw_write): Change buf parameter to a
3353 constant void pointer.
3354 (regcache_raw_read): Change buf parameter to a void pointer.
3355 (legacy_write_register_gen): Change myaddr parameter a constant
3356 void pointer.
3357 (supply_register): Change val parameter to a const void pointer.
3358 * regcache.h (regcache_raw_write): Update declaration.
3359 (regcache_raw_read): Update declaration.
3360 (supply_register): Update declaration.
3361
b4f5539f
TT
33622002-07-24 Tom Tromey <tromey@redhat.com>
3363
3364 * defs.h (gdb_readline_wrapper): Declare.
3365 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3366 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3367 * top.c (gdb_readline_wrapper): New function.
3368 (command_line_input): Use it.
3369
0818c12a
AC
33702002-07-24 Andrew Cagney <cagney@redhat.com>
3371
3372 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3373 regcache_read and regcache_write.
3374 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3375 * regcache.c: Update.
3376 * sh-tdep.c (sh64_push_arguments): Update comment.
3377 (sh_pseudo_register_read): Update.
3378 (sh_pseudo_register_write): Update.
3379 (sh4_register_read): Update.
3380 (sh4_register_write): Update.
3381 (sh64_pseudo_register_read): Update.
3382 (sh64_pseudo_register_write): Update.
3383 (sh64_register_read): Update.
3384 (sh64_register_write): Update.
3385 * i386-tdep.c (i386_extract_return_value): Update.
3386 (i386_extract_struct_value_address): Update.
3387 (i386_extract_return_value): Update.
3388 * blockframe.c (generic_read_register_dummy): Update.
3389 (generic_call_dummy_register_unwind): Update
3390 * infrun.c (write_inferior_status_register): Update.
3391
f7321c06
JB
33922002-07-23 Jim Blandy <jimb@redhat.com>
3393
3394 * parser-defs.h (expression_context_pc): Make this extern.
3395 (Thanks to Michael Snyder.)
3396
2037aebb
AC
33972002-07-23 Andrew Cagney <ac131313@redhat.com>
3398
3399 GDB 5.2.1 released from 5.2 branch.
3400 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3401 * README: Update to mention 5.2.1.
3402
66504d44
MS
34032002-07-23 Mark Salter <msalter@redhat.com>
3404
3405 * remote.c (remote_read_bytes): Fix check for error.
3406
27bae383
KB
34072002-07-22 Kevin Buettner <kevinb@redhat.com>
3408
3409 * aix-thread.c (language.h): Include.
3410 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3411 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3412 Print newlines at end of debug messages.
3413 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3414 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3415
34162002-07-22 Kevin Buettner <kevinb@redhat.com>
3417
3418 * aix-thread.c (ppc-tdep.h): Include.
3419 (special_register_p): New function.
3420 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3421 (store_regs_user_thread): Use register number information from
3422 gdbarch_tdep struct instead of hardcoded offsets relative to
3423 FIRST_UISA_SP_REGNUM.
3424 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3425 special_register_p() instead of using FPLAST_REGNUM and
3426 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3427 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3428 will be MQ's register number.
3429
34302002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3431
3432 * aix-thread.c (ops): Rename to aix_thread_ops.
3433 (base_ops): Rename to base_target.
3434 (ops_attach): Rename to aix_thread_attach.
3435 (ops_detach): Rename to aix_thread_detach.
3436 (ops_resume): Rename to aix_thread_detach.
3437 (ops_wait): Rename to aix_thread_wait.
3438 (ops_kill): Rename to aix_thread_kill.
3439 (init_ops): Rename to init_aix_thread_ops.
3440 (ops_fetch_register): Rename to aix_thread_fetch_register.
3441 (ops_store_register): Rename to aix_thread_store_register.
3442 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3443 (ops_thread_alive): Rename to aix_thread_thread_alive.
3444 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3445 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3446 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3447 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3448 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3449 (store_regs_lib): Rename to store_regs_user_thread.
3450 (store_regs_kern): Rename to store_regs_kernel_thread.
3451
27bae383 34522002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3453
3454 * aix-thread.c (ops_prepare_to_store): Eliminate.
3455 (init_ops): Don't initialize ops.prepare_to_store.
3456 (store_regs_kern): Pre-fetch register buffers from child,
3457 because some registers may not be in the cache. Copy
3458 regs from register cache only if they are cached.
3459 (store_regs_lib): Copy regs from register cache only
3460 if they are cached.
3461 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3462 fill_gprs64): Ditto.
3463
61c5da0b
KB
34642002-07-22 Kevin Buettner <kevinb@redhat.com>
3465
3466 * aix-thread.c (gdb_assert.h): Include.
3467 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3468 register sizes (from register cache) match size of buffer holding
3469 register data.
3470 (fill_sprs32): Change parameter types to match those in the ptrace()
3471 buffer.
3472 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3473 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3474
34752002-07-22 Michael Snyder <msnyder@redhat.com>
3476
3477 * aix-thread.c (supply_sprs64): Cosmetic change.
3478 (supply_sprs32): Cosmetic change.
3479 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3480 (fill_sprs64): Use regcache_collect instead of read_register.
3481 (store_regs_lib): Use regcache_collect instead of
3482 read_register. Use fill_sprs32 instead of fill_sprs64,
3483 if debugging a 32-bit architecture.
3484 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3485 out of the register cache, instead of passing a pointer into
3486 the register cache directly to ptrace. Use regcache_collect
3487 insteaad of read_register.
3488 (ops_prepare_to_store): Use target_read_registers instead
3489 of read_register_bytes.
3490
36479eb1
AS
34912002-07-20 Aidan Skinner <aidan@velvet.net>
3492
3493 * MAINTAINERS: Add self under write after approval.
3494
80ae6ee2
AS
34952002-07-20 Aidan Skinner <aidan@velvet.net>
3496
3497 * ada-tasks.c: Change k&r style function definitions to prototyped
3498 form.
3499
8a8ab2b9
AC
35002002-07-19 Andrew Cagney <ac131313@redhat.com>
3501
3502 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3503 * x86-64-tdep.c: Include "objfiles.h".
3504 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3505 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3506
fb16b900
ML
35072002-07-17 Michal Ludvig <michal@suse.cz>
3508
3509 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3510 (update_context): Initialise cfa variable.
3511
0fe7bf7b
MS
35122002-07-17 Michael Snyder <msnyder@redhat.com>
3513
3514 * aix-thread.c: Shorten some long lines.
3515 Bring comments into line with code spec.
3516
488f131b
JB
35172002-07-18 Joel Brobecker <brobecker@gnat.com>
3518
3519 * infrun.c: Re-indent using gdb_indent.sh.
3520
46c415d2
JB
35212002-07-18 Joel Brobecker <brobecker@gnat.com>
3522
3523 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3524 Leave the indentation temporarily untouched, to minimize the diffs.
3525
cdecafbe
EZ
35262002-07-18 Elena Zannoni <ezannoni@redhat.com>
3527
3528 * stabsread.c: Make os9k sections of the code obsolete,
3529 for real this time.
3530 * stabsread.h: Make os9k sections of the code obsolete.
3531
7b6aa020
ML
35322002-07-18 Michal Ludvig <mludvig@suse.cz>
3533
09ec9b38
ML
3534 * linux-low.c (regsets_store_inferior_registers): Add free()
3535 at the end of a loop to prevent memory leak.
3536 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3537 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3538 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3539 line a comment.
4894ac5d 3540 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3541
233282cd
JB
35422002-07-17 Jim Blandy <jimb@redhat.com>
3543
3544 * macrocmd.c (info_macro_command): Remove newline from error
3545 message.
3546
7b6aa020 35472002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3548
3549 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3550 (sh_gdbarch_init): Use it for sh-dsp.
3551
f7ef9339
KB
35522002-07-16 Kevin Buettner <kevinb@redhat.com>
3553
3554 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3555 64-bit DWARF2 format.
3556
8dd72958
JB
35572002-07-16 Joel Brobecker <brobecker@gnat.com>
3558
3559 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3560 <sys/proc.h> when not available.
3561
a99a9e1b
AC
35622002-07-16 Andrew Cagney <ac131313@redhat.com>
3563
3564 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3565 * stabsread.c: Make os9k sections of the code obsolete.
3566 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3567 * config/i386/i386os9k.mt: Make file obsolete.
3568 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3569 (COMMON_OBS): Remove os9kread.o
3570 (SFILES): Remove os9kread.c.
3571 (os9kread.o, remote-os9k.o): Make target obsolete.
3572 * remote-os9k.c: Make file obsolete.
3573 * os9kread.c: Make file obsolete.
3574 * Makefile.in
3575
7a3085c1
AC
35762002-07-16 Andrew Cagney <ac131313@redhat.com>
3577
3578 * NEWS: Mention that the FR30 has been made obsolete.
3579 * fr30-tdep.c: Make file obsolete.
3580 * config/fr30/tm-fr30.h: Ditto.
3581 * config/fr30/fr30.mt: Ditto.
3582 * configure.tgt: Make fr30-*-elf obsolete.
3583 * MAINTAINERS: Make fr30-elf obsolete.
3584
28a93f5a
PM
35852002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3586
3587 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3588 found is not inside a section.
3589
be006b8b
KB
35902002-07-15 Kevin Buettner <kevinb@redhat.com>
3591
3592 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3593 strerror().
3594 (pdc_realloc): Use xrealloc() instead of realloc().
3595
14fa3751
KB
35962002-07-15 Kevin Buettner <kevinb@redhat.com>
3597
3598 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3599 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3600 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3601 macros.
3602
42cc437f
KB
36032002-07-15 Kevin Buettner <kevinb@redhat.com>
3604
3605 * aix-thread.c (ptrace_check): Eliminate goto.
3606 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3607 problem.
3608
8e2c28d4
KB
36092002-07-15 Kevin Buettner <kevinb@redhat.com>
3610
3611 * aix-thread.c (gdbcmd.h): Include.
3612 (DEBUG, DBG, DBG2, dbg): Eliminate.
3613 (debug_aix_thread): New static global.
3614 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3615 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3616 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3617 invocations to DBG and DBG2 macros to test against
3618 ``debug_aix_thread'' and call fprintf_unfiltered().
3619 (_initialize_aix_thread): Add new command "set debug aix-thread".
3620
30413464
AC
36212002-07-15 Andrew Cagney <ac131313@redhat.com>
3622
3623 From Gerhard Tonn <TON@de.ibm.com>:
3624 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3625 instead of supply_register.
3626
7c43edc1
AC
36272002-07-15 Andrew Cagney <ac131313@redhat.com>
3628
3629 * dwarf2cfi.c: Include "gdb_assert.h".
3630 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3631 non-NULL.
3632 (update_context): Do not use __func__. Add missing ``break''.
3633 (update_context): Do not use __func__.
3634
9364a0ef
EZ
36352002-07-15 Elena Zannoni <ezannoni@redhat.com>
3636
3637 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3638 and its setting. Set gdbarch instruction printing functions
3639 directly. For non-rs6000 case use new function
3640 gdb_print_insn_powerpc.
3641 (gdb_print_insn_powerpc): New function.
3642
3fbeef0b
AC
36432002-07-13 Andrew Cagney <ac131313@redhat.com>
3644
92eb23c5 3645 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3646 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3647 * configure.tgt: Mark d30v-*-* as obsolete.
3648 * d30v-tdep.c: Mark file as obsolete.
3649 * config/d30v/d30v.mt: Ditto.
3650 * config/d30v/tm-d30v.h: Ditto.
3651
aacb1f0a
AS
36522002-07-13 Aidan Skinner <aidan@velvet.net>
3653
3654 * ada-tasks.c (add_task_entry): replace calls to
3655 malloc() with xmalloc
3656 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3657
3658 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3659 ada_finish_decode_line_1, all_sals_for_line
3660 ada_breakpoint_rewrite): replace calls to free() with xfree()
3661
c11d79f2
KB
36622002-07-12 Kevin Buettner <kevinb@redhat.com>
3663
3664 From Nicholas Duffek (with minor changes by Martin Hunt,
3665 Louis Hamilton, and Kevin Buettner):
3666 * aix-thread.c: New file.
3667
8e19ed76
PS
36682002-07-12 Petr Sorfa <petrs@caldera.com>
3669
3670 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3671 complaint for invalid attribute class or form.
3672 (read_func_scope): DW_AT_frame_base
3673 better handling of DW_AT_block*.
3674 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3675 better handling of DW_AT_block*.
3676 (read_common_block): DW_AT_location
3677 better handling of DW_AT_block*.
3678 (read_partial_die): DW_AT_location better handling
3679 of DW_AT_block*.
3680 (new_symbol): DW_AT_external better handling of
3681 DW_AT_block*. Proper initialization of variable
3682 "addr".
3683 (attr_form_is_block): New function that returns true
3684 if the attribute's form is of DW_FORM_block*.
3685
295401f7
DJ
36862002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3687
3688 * valops.c (find_method_list): Remove comment about
3689 removed STATIC_MEMFUNCP argument.
3690 (value_find_oload_method_list): Likewise.
3691
e42dc924
KB
36922002-07-12 Kevin Buettner <kevinb@redhat.com>
3693
3694 From Nicholas Duffek:
3695 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3696 target_new_objfile_hook.
3697
6904b546
KB
36982002-07-12 Kevin Buettner <kevinb@redhat.com>
3699
3700 From Nicholas Duffek:
3701 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3702 csect.
3703
53fe9346
AC
37042002-07-12 Andrew Cagney <cagney@redhat.com>
3705
3706 * MAINTAINERS: Mention --enable-sim-build-warnings.
3707 (m68hc11-elf): Disable sim build warnings.
3708 (m32r-elf): Mark as broken obsolete candidate.
3709 (x86_64-linux-gnu): Mark as buildable with -Werror.
3710 (arm-elf): Change -w to ``,'' which enables warnings but not
3711 -Werror.
3712
af5f3db6
AC
37132002-07-12 Andrew Cagney <ac131313@redhat.com>
3714
3715 * bcache.h: Update copyright.
3716 (struct bstring, struct bcache): Move definition to "bcache.c".
3717 Replaced by opaque declaration.
3718 (bcache_xfree): Replace free_bcache.
3719 (bcache_xmalloc, bcache_memory_used): Declare.
3720
3721 * bcache.c: Update copyright.
3722 (struct bstring, struct bcache): Moved to here from "bcache.h".
3723 Update comments.
3724 (bcache_xmalloc, bcache_memory_used): New functions.
3725 (bcache_xfree): Replace function free_bcache.
3726
3727 * Makefile.in (objfiles.o): Add $(bcache_h).
3728 (objfiles_h): Remove $(bcache_h).
3729 (symfile.o): Add $(bcache_h).
3730
3731 * symmisc.c: Update copyright.
3732 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3733 (print_objfile_statistics): Use bcache_memory_used.
3734
3735 * symfile.c: Include "bcache.h".
3736 (reread_symbols): Use bcache_xfree.
3737 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3738 (add_psymbol_to_list): Pass psymbol_cache by value.
3739 (add_psymbol_with_dem_name_to_list): Ditto.
3740
3741 * objfiles.h: Update copyright.
3742 (struct bcache): Declare opaque. Do not include "bcache.h".
3743 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3744 bcache'' pointers.
3745 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3746
3747 * objfiles.c: Include "bcache.h". Update copyright.
3748 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3749 macro_cache.
3750 (free_objfile): Use bcache_xfree.
3751
444199e7
GS
37522002-07-11 Grace Sainsbury <graces@redhat.com>
3753
3754 * monitor.c (monitor_fetch_register): Make name a constant.
3755 (monitor_store_register): Same.
3756
261397f8
DJ
37572002-07-11 Daniel Jacobowitz <drow@mvista.com>
3758
3759 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3760 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3761 (finish_block) For non-function blocks, hash the symbol table. For
3762 function blocks, mark the symbol table as unhashed.
3763 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3764 (msymbol_hash_iw): Likewise.
3765 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3766 value.
3767 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3768 (lookup_minimal_symbol): Likewise for both.
3769 * symtab.h (struct block): Add `hashtable' flag. Comment the
3770 hashtable.
3771 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3772 (ALL_BLOCK_SYMBOLS): Update.
3773 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3774 (struct symbol): Add `hash_next' pointer.
3775 * symtab.c (lookup_block_symbol): Search using the hash table when
3776 possible.
3777 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3778 (search_symbols, find_addr_symbol): Likewise.
3779
3780 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3781 (read_dst_symtab): Likewise.
3782 * jv-lang.c (get_java_class_symtab): Likewise.
3783 * mdebugread.c: Include "gdb_assert.h".
3784 (shrink_block): Assert that the block being modified is not hashed.
3785 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3786 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3787 symbols.
3788 (dump_symtab): Recognize hashed blocks.
3789 * printcmd.c (print_frame_args): Assert that function blocks do not
3790 have hashed symbol tables.
3791 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3792 (fill_in_ada_prototype, debug_print_block): Likewise.
3793 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3794
6f0eaa01
CV
37952002-07-11 Corinna Vinschen <vinschen@redhat.com>
3796
3797 * stack.c (print_frame): Use result of frame_address_in_block()
3798 instead of fi->pc when evaluating symbols.
3799 (backtrace_command_1): Ditto.
3800
a208b0cb
AC
38012002-07-11 Andrew Cagney <cagney@redhat.com>
3802
3803 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3804 Make static.
3805
3806 * arm-tdep.c (arm_register_name): Make return type constant.
3807
a6b6b089
AC
38082002-07-10 Andrew Cagney <ac131313@redhat.com>
3809
5ae5f592
AC
3810 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3811 prototype.
3812 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3813 * s390-tdep.c (s390_fp_regnum): Ditto.
3814 (s390_read_fp): Ditto.
3815 (s390_pop_frame): Ditto.
3816 (_initialize_s390_tdep): Ditto.
3817 * remote.c (get_remote_state): Ditto.
3818 * procfs.c (mappingflags): Ditto.
3819 * memattr.c (_initialize_mem): Ditto.
3820 * mcore-tdep.c (mcore_pop_frame): Ditto.
3821 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3822 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3823 * language.c (set_case_str): Ditto.
3824 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3825 * frv-tdep.c (new_variant): Ditto.
3826 (frv_stopped_data_address): Ditto.
3827 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3828 (context_alloc): Ditto.
3829 (frame_state_alloc): Ditto.
3830 (unwind_tmp_obstack_init): Ditto.
3831 (unwind_tmp_obstack_free): Ditto.
3832 (cfi_read_fp): Ditto.
3833 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3834 (cris_pop_frame): Ditto.
3835 * c-lang.c (scanning_macro_expansion): Ditto.
3836 (finished_macro_expansion): Ditto.
3837 (c_preprocess_and_parse): Ditto.
3838 * gdbarch.sh: Ditto.
3839 * gdbarch.h, gdbarch.c: Regenerate.
3840 * config/mn10200/tm-mn10200.h: Adjust indentation.
3841 * target.c: Adjust indentation.
3842 * symtab.h: Adjust indentation.
3843 * stabsread.h: Adjust indentation.
3844 * remote-es.c: Adjust indentation.
3845 * os9kread.c: Adjust indentation.
3846
38472002-07-10 Andrew Cagney <ac131313@redhat.com>
3848
a6b6b089
AC
3849 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3850 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3851
a1789893
GS
38522002-07-10 Grace Sainsbury <graces@redhat.com>
3853
3854 * NEWS: Mention m68k, mcore multi-arching.
3855 * MAINTAINERS: Change status of m68k, mcore to reflect
3856 multi-arching.
3857
02f0d45d
DJ
38582002-07-10 Daniel Jacobowitz <drow@mvista.com>
3859
3860 * valops.c (find_overload_match): Free oload_syms.
3861
f15f768e
JB
38622002-07-09 Joel Brobecker <brobecker@gnat.com>
3863
3864 Define HAVE_SYS_PROC_H if sys/proc.h exists
3865 * configure.in: Add check for sys/proc.h
3866 * config.in: Regenerate.
3867 * configure: Regenerate.
3868
902a7139
GS
38692002-07-09 Grace Sainsbury <graces@redhat.com>
3870
3871 * config/m68k/tm-m68k.h: Remove macros wrapped in
3872 #if !GDB_MULTI_ARCH.
3873
a534e424
AC
38742002-07-08 Andrew Cagney <ac131313@redhat.com>
3875
3876 * config.in, configure: Regenerate.
3877
9b94f7bf
MK
38782002-07-08 Mark Kettenis <kettenis@gnu.org>
3879
3880 * dwarf2cfi.c: Include "gcore.h".
3881 (execute_stack_op): Fix implementation of the
3882 DW_OP_deref and DW_OP_deref_size operators by letting do their
3883 lookup in the target.
3884
1d34db41
MK
38852002-07-07 Mark Kettenis <kettenis@gnu.org>
3886
3887 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3888 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3889 tdep->sc_sp_offset.
3890
79d5b63a
DJ
38912002-07-05 Daniel Jacobowitz <drow@mvista.com>
3892
3893 Fix PR gdb/595, gdb/602
3894 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3895 Don't call value_cast, just read the vtable pointer; update comments
3896 to match.
3897
3bb912e8
GS
38982002-07-05 Grace Sainsbury <graces@redhat.com>
3899
3900 * config/mcore/tm-mcore.h: Remove file.
3901 * config/mcore/mcore.mt: Remove definition of TM_FILE
3902 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3903
ca39387d
MK
39042002-07-05 Mark Kettenis <kettenis@gnu.org>
3905
3906 * i386bsd-tdep.c: Include "gdb_string.h".
3907
efdc1108
GS
39082002-07-04 Grace Sainsbury <graces@redhat.com>
3909
3910 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3911 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3912 mcore-tdep.
3913 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3914 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3915 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3916 (RETVAL_REGNUM): Move macros from tm-mcore.h
3917 (mcore_reg_struct_has_addr): New function.
3918 (mcore_gdbarch_init): Added initializations for the macros removed
3919 from tm-mcore.h.
3920
bb21884d
MK
39212002-07-04 Mark Kettenis <kettenis@gnu.org>
3922
3923 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3924 traditonal string branding within the ELF header.
3925
228c6d41
DJ
39262002-07-04 Daniel Jacobowitz <drow@mvista.com>
3927
3928 * symtab.c (remove_params): New function.
3929 (make_symbol_overload_list): Use it instead of cplus_demangle.
3930 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3931
2404952e
MK
39322002-07-04 Mark Kettenis <kettenis@gnu.org>
3933
e5e4acad
MK
3934 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3935
baadce09
MK
3936 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3937 New variables.
3938 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3939 and tdep->sigtramp_end.
3940 * i386obsd-nat.c: New file.
3941 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3942
2404952e
MK
3943 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3944 Don't call get_current_frame().
3945
9b4f1ba7
PM
39462002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3947
3948 * i386-nat.c (child_post_startup_inferior): New function
3949 calling i386_cleanup_dregs if
3950 I386_USE_GENERIC_WATCHPOINTS is defined.
3951 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3952 conditional to acknowledge that i386-nat.c has its
3953 own child_post_startup_inferior function.
3954
c0d1d883
MK
39552002-07-04 Mark Kettenis <kettenis@gnu.org>
3956
00f8375e
MK
3957 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3958 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3959 instead of MAX_REGISTER_RAW_SIZE.
3960 (i386_extract_return_value, i386_extract_struct_value_address):
3961 Convert to use regcache.
3962 (i386_gdbarch_init): Set max_register_raw_size and
3963 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3964 Set extract_return_value and extract_struct_value_address instead
3965 of their deprecated variants.
3966
c0d1d883
MK
3967 Convert i386 target to generic dummy frames.
3968 * i386-tdep.c: Include "symfile.h".
3969 (i386_frameless_signal_p): Consider a function to be frameless if
3970 the pc points at the first instruction of the function.
3971 (i386_frame_chain): Handle (generic) call dummies.
3972 (i386_frame_saved_pc): Likewise.
3973 (i386_frame_init_saved_regs): Remove code dealing with call
3974 dummies on the stack.
3975 (i386_push_dummy_frame): Removed.
3976 (i386_call_dummy_words): Removed.
3977 (i386_fix_call_dummy): Removed.
3978 (i386_push_return_address): New function.
3979 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3980 parameter, and don't call get_current_frame.
3981 (i386_pop_frame): New function.
3982 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3983 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3984 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3985 call_dummy_length to 0, set call_dummy_words to NULL, set
3986 sizeof_call_dummy_words to 0, set fix_call_dummy to
3987 generic_fix_call_dummy, set pc_in_call_dummy to
3988 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3989 generic_push_dummy_frame, set push_return_address to
3990 i386_push_return_address and set frame_chain_valid to
3991 generic_file_frame_chain_valid.
3992
049ee0e4
AC
39932002-07-03 Andrew Cagney <ac131313@redhat.com>
3994
3995 * gdbarch.sh (struct regcache): Add opaque declaration.
3996 (EXTRACT_RETURN_VALUE): New architecture method.
3997 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3998 * gdbarch.h, gdbarch.c: Regenerate.
3999 * arch-utils.c (legacy_extract_return_value): New function.
4000 * arch-utils.h (legacy_extract_return_value): Declare.
4001 * values.c (value_being_returned): Re-enable code handling
4002 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4003 deprecated_grub_regcache_for_registers call to block handling
4004 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4005 (EXTRACT_RETURN_VALUE): Do not define.
4006
4e0d9804
GS
40072002-07-03 Grace Sainsbury <graces@redhat.com>
4008
4009 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4010 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4011 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4012 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4013 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4014 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4015 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4016 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4017 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4018 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4019 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4020 argument so the function fits the prototype in the architecture
4021 vector.
4022 (mcore_pop_frame): Remove argument so the function fits the
4023 prototype. Use get_current_frame instead of the argument.
4024 (mcore_push_arguments): Change type of struct_return so the
4025 function can be used in the architecture vector.
4026 (mcore_store_struct_return): Add.
4027 (mcore_frame_init_saved_regs): Add.
4028 (mcore_gdbarch_init): Add function calls to replace the macros
4029 removed from tm-mcore.h
4030
36160dc4
AC
40312002-07-03 Andrew Cagney <ac131313@redhat.com>
4032
4033 * infcmd.c (print_return_value): Remove compatibility code calling
4034 deprecated_grub_regcache_for_registers.
4035
4036 * values.c: Include "regcache.h".
4037 (value_being_returned): Update. Use
4038 deprecated_grub_regcache_for_registers to extract the register
4039 buffer address.
4040 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4041 ``struct regcache''.
4042 * Makefile.in (values.o): Add dependency on $(regcache_h).
4043
4044 * inferior.h (run_stack_dummy): Change type of second parameter to
4045 a ``struct regcache''.
4046 * valops.c (hand_function_call): Change type of retbuf to ``struct
4047 regcache''. Allocate using regcache_xmalloc, clean using
4048 make_cleanup_regcache_xfree.
4049 * infcmd.c (run_stack_dummy): Update. Use
4050 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4051
4052 * regcache.c (do_regcache_xfree): New function.
4053 (make_cleanup_regcache_xfree): New function.
4054 * regcache.h (make_cleanup_regcache_xfree): Declare.
4055
e64d9b3d
MH
40562002-07-03 Martin M. Hunt <hunt@redhat.com>
4057
4dd79c29
MH
4058 * event-top.c (command_line_handler): Don't read past
4059 beginning of buffer.
e64d9b3d 4060
4dd79c29
MH
40612002-07-03 Martin M. Hunt <hunt@redhat.com>
4062
e64d9b3d
MH
4063 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4064 struct frame_id.
4065 (varobj_create): Store frame_id for root.
4066 (varobj_gen_name): Use xasprintf.
4067 (varobj_update): Save and restore frame using get_frame_id() and
4068 frame_find_by_id().
4069 (create_child): Use xasprintf.
4070 (new_root_variable): Initialize frame_id.
4071 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4072 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4073 to prevent memory leak.
4074
26e6c56a
AC
40752002-07-03 Andrew Cagney <ac131313@redhat.com>
4076
4077 * valops.c (hand_function_call): Move declaration of retbuf to
4078 start of function, allocate using malloc, add a cleanup but before
4079 the inf_status cleanup, cleanup the buffer. Rename local variable
4080 old_chain to inf_status_cleanup.
4081
f436dd25
MH
40822002-07-03 Martin M. Hunt <hunt@redhat.com>
4083
4084 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4085
4086 * cli/cli-decode.c (cmd_func_p): New function.
4087 (cmd_func): New function.
4088
4089 * command.h: Add cmd_func() and cmd_func_p().
4090
4cfe2084
GS
40912002-07-03 Grace Sainsbury <graces@redhat.com>
4092
4093 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4094 (REGISTER_SIZE): Remove.
4095 (MAX_REGISTER_RAW_SIZE): Remove.
4096 (REGISTER_VIRTUAL_TYPE): Remove.
4097 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4098 (REGISTER_NAME): Remove.
4099 (USE_GENERIC_DUMMY_FRAMES): Remove.
4100 (CALL_DUMMY): Remove.
4101 (CALL_DUMMY_START_OFFSET): Remove.
4102 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4103 (CALL_DUMMY_LOCATION): Remove.
4104 (FIX_CALL_DUMMY): Remove.
4105 (CALL_DUMMY_ADDRESS): Remove.
4106 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4107 (SAVE_DUMMY_FRAME_TOS): Remove.
4108 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4109 (mcore_register_virtual_type): New function.
4110 (mcore_register_byte): New function.
4111 (mcore_register_size): New function.
4112 (mcore_register_name): New function.
4113 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4114 macros removed from tm-mcore.h.
4115 (mcore_dump_tdep): Add.
4116 (_initialize_mcore_tdep): Add gdbarch_register call.
4117
4fd667e9
MK
41182002-07-03 Mark Kettenis <kettenis@gnu.org>
4119
4120 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4121 frameless_look_for_prologue, such that we actually call this
4122 function.
4123
42f99ac2
JB
41242002-07-02 Joel Brobecker <brobecker@gnat.com>
4125
4126 * frame.h (frame_address_in_block): New function.
4127
4128 * blockframe.c (frame_address_in_block): New function extracted
4129 from get_frame_block().
4130 (get_frame_block): Use frame_address_in_block().
4131 (block_innermost_frame): Use frame_address_in_block() to match
4132 the frame pc address against the block boundaries rather than
4133 the frame pc directly. This prevents a failure when a frame pc
4134 is actually a return-address pointing immediately after the end
4135 of the given block.
4136
103a1597 41372002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4138
4139 * MAINTAINERS: Add self under write after approval.
4140
41412002-07-02 Grace Sainsbury <graces@redhat.com>
4142
103a1597
GS
4143 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4144 used in architecture vector. The default is
4145 m68k_local_breakpoint_from_pc.
4146 (m68k_local_breakpoint_from_pc): Add.
4147 (enum): Add register numbers from tm-m68k.h.
4148 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4149 vector.
4150 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4151 GDB_MULTI_ARCH_PARTIAL.
4152 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4153 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4154 m68k-tdep.c.
4155 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4156 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4157 to enum in m68k-tdep.c
4158
7a5a0534
JB
41592002-07-02 Joel Brobecker <brobecker@gnat.com>
4160
4161 * solib-osf.c (open_map): Compute the list of shared libraries
4162 loaded by the inferior, rather than the list of libraries loaded
4163 by GDB itself. Otherwise, GDB ends up reading the symbols from
4164 the wrong shared libraries...
4165
6f558d74
MK
41662002-07-02 Mark Kettenis <kettenis@gnu.org>
4167
b7d15bf7
MK
4168 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4169 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4170 macros.
4171 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4172 Remove functions.
4173 (FRAMELESS_SIGNAL): Remove function.
4174 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4175 i386_linux_saved_pc_after_call): Removed.
4176 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4177 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4178 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4179
6bff26de
MK
4180 * i386-tdep.c (i386_frameless_signal_p): New function.
4181 (i386_frame_chain): Deal with frameless signals.
4182 (i386_sigtramp_saved_sp): New function.
4183 (i386_frame_saved_pc): Deal with frameless signals.
4184 (i386_saved_pc_after_call): Make sure the correct value is
4185 returned just after entry into a sigtramp.
4186 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4187 i386fbsd4_sc_sp_offset): New variables.
4188 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4189 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4190 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4191 similiar to what we already did for sc_pc_offset.
4192 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4193 tdep->sc_sp_offset.
4194
6f558d74
MK
4195 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4196
145564b7
ML
41972002-07-02 Michal Ludvig <mludvig@suse.cz>
4198
4199 * config/i386/tm-x86-64linux.h: New.
4200 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4201 definitions.
4202 * config/i386/nm-x86-64.h: Rename to ...
4203 * config/i386/nm-x86-64linux.h: ... this one.
4204 * config/i386/x86-64linux.mh: Reflect the above change.
4205
3a1e71e3
MK
42062002-07-01 Mark Kettenis <kettenis@gnu.org>
4207
21d0e8a4
MK
4208 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4209 with sigcontext_addr. Add sc_sp_offset.
4210 (i386bsd_sigtramp_saved_pc): Remove prototype.
4211 (i386bsd_sicontext_addr): Add prototype.
4212 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4213 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4214 (i386_svr4_sigtramp_saved_pc): Removed.
4215 (i386_svr4_sigcontext_addr): New function.
4216 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4217 Initialize tdep->sigcontext_addr instead. Initialize
4218 tdep->sc_pc_offset and tdep->sc_sp_offset.
4219 (i386_gdbarch_init): Likewise.
4220 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4221 any more.
4222 (i386bsd_sigtramp_saved_pc): Remove function.
4223 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4224 Initialize tdep->sigcontext_addr instead. Initialize
4225 tdep->sc_pc_offset.
4226 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4227 of tdep->sigtramp_saved_pc.
4228 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4229 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4230 instead.
4231
3a1e71e3
MK
4232 * i386-tdep.c (i386_frameless_function_invocation,
4233 i386_frame_num_args, i386_frame_init_saved_regs,
4234 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4235 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4236 i386_extract_return_value, i386_store_return_value,
4237 i386_extract_struct_value_address, i386_register_virtual_type,
4238 i386_register_convertible, i386_register_convert_to_virtual,
4239 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4240 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4241 static.
4242
52e9098c
MK
42432002-07-01 Mark Kettenis <kettenis@gnu.org>
4244
77b13a25
MK
4245 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4246
52e9098c
MK
4247 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4248 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4249 this macro. Include "value.h".
4250
1b372fff
AS
42512002-06-30 Aidan Skinner <aidan@velvet.net>
4252
4253 * ada-exp.tab.c: remove as it's a generated file
4254 * ada-lex.c: remove as it's a generated file
4255
9c5045b5
MK
42562002-06-30 Mark Kettenis <kettenis@gnu.org>
4257
4a93c5bb
MK
4258 * config/i386/tm-i386.h (struct frame_info, struct
4259 frame_saved_regs, struct value, struct type): Remove forward
4260 declarations.
4261
322d4fe0
MK
4262 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4263 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4264 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4265 (FILL_FPXREGSET): Define.
4266
fdd8263d
MK
4267 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4268
482e577b
MK
4269 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4270 i[3456]86-*-netbsd* case.
4271 * config/i386/tm-obsd.h: Removed.
4272 * config/i386/obsd.mt: Removed.
4273 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4274 core-aout.o.
4275 (MH_CFLAGS): Add -DYYDEBUG=0.
4276
6916549a
MK
4277 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4278 i386nbsd_sc_pc_offset on OpenBSD too.
4279
9c5045b5
MK
4280 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4281 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4282 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4283 define.
4284 * i386bsd-tdep.c: Include "arch-utils.h".
4285 (i386bsd_aout_in_solib_call_trampoline): New function.
4286 (i386bsd_init_abi): Set in_solib_call_trampoline to
4287 i386bsd_aout_in_solib_call_trampoline.
4288 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4289 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4290
aa84d1bb
AC
42912002-06-28 Andrew Cagney <ac131313@redhat.com>
4292
4293 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4294 (struct obstack, struct bcache): Add opaque declarations.
4295 * Makefile.in (macrotab_h): Update
4296
b4d83933
AC
42972002-06-28 Andrew Cagney <ac131313@redhat.com>
4298
4299 * blockframe.c (generic_find_dummy_frame): Change return type to
4300 ``struct regcache''.
4301 (struct dummy_frame): Replace field ``registers'' with regcache, a
4302 struct regcache object.
4303 (generic_find_dummy_frame): Update.
4304 (generic_push_dummy_frame): Update. Use regcache_xfree,
4305 regcache_xmalloc and regcache_cpy.
4306 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4307 regcache_xfree.
4308 (deprecated_generic_find_dummy_frame): Update.
4309 (generic_read_register_dummy): Update. Use
4310 regcache_read_as_address.
4311 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4312 (generic_get_saved_register): Update. Use regcache_read.
4313
08c0b5bc
AC
43142002-06-28 Andrew Cagney <ac131313@redhat.com>
4315
4316 * Makefile.in (objfiles_h): Add $(bcache_h).
4317 * objfiles.h: Include "bcache.h".
4318
4319 * Makefile.in (symtab_h): Remove $(bcache_h).
4320 * symtab.h: Do not include "bcache.h".
4321
1f89801a
AC
43222002-06-28 Andrew Cagney <ac131313@redhat.com>
4323
4324 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4325 generic_func_frame_chain_valid.
4326
b9644b58
DB
43272002-06-28 David O'Brien <obrien@FreeBSD.org>
4328
4329 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4330 * config/i386/tm-fbsd.h: Likewise.
4331
dd486634
AC
43322002-06-28 Andrew Cagney <ac131313@redhat.com>
4333
4334 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4335 generic_unwind_get_saved_register.
4336
0b434a00
AC
43372002-06-27 Andrew Cagney <ac131313@redhat.com>
4338
4339 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4340 * regcache.c (supply_register): Add missing argument to
4341 register_buffer call.
4342
f30e5a77
AC
43432002-06-27 Andrew Cagney <ac131313@redhat.com>
4344
4345 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4346 Solaris /bin/grep does not not like it. From Peter Schauer.
4347
9f064c95
TT
43482002-06-26 Tom Tromey <tromey@redhat.com>
4349
4350 * command.h (add_setshow_cmd): Declare.
4351 (add_setshow_cmd_full): Declare.
4352 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4353 returns void. Use add_setshow_cmd_full.
4354 (add_setshow_cmd_full): New function.
4355 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4356 (add_setshow_boolean_cmd): Likewise.
4357
099c7589
JT
43582002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4359
4360 * config/vax/tm-vax.h: Protect from multiple inclusion.
4361 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4362 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4363 * config/vax/tm-vaxbsd.h: ...here. New file.
4364 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4365
1d049c5e
JT
43662002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4367
4368 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4369 (BELIEVE_PCC_PROMOTION): Remove.
4370 (AP_REGNUM): Move to...
4371 * config/vax/nm-vax.h: ...here.
4372 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4373 (vax_breakpoint_from_pc): New function.
4374 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4375 and gdbarch_believe_pcc_promotion.
4376
4791e091
JT
43772002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4378
4379 * Makefile.in (vax_tdep_h): Define.
4380 (vax-tdep.o): Use $(vax_tdep_h).
4381 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4382 (vax_dump_tdep): New function.
4383 (_initialize_vax_tdep): Register vax_dump_tdep.
4384 * vax-tdep.h: Include osabi.h.
4385 (struct gdbarch_tdep): New.
4386
da130f98
AC
43872002-06-26 Andrew Cagney <cagney@redhat.com>
4388
4389 * frame.h (deprecated_generic_find_dummy_frame): Rename
4390 generic_find_dummy_frame.
4391 * blockframe.c (generic_find_dummy_frame): Make static.
4392 (deprecated_generic_find_dummy_frame): New function.
4393 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4394 generic_find_dummy_frame with deprecated_find_dummy_frame.
4395 (sh64_nofp_frame_init_saved_regs): Ditto.
4396 (sh_fp_frame_init_saved_regs): Ditto.
4397 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4398 (s390_frame_chain): Ditto.
4399 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4400
6300c360
GS
44012002-06-26 Grace Sainsbury <graces@redhat.com>
4402
4403 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4404 gdbarch vector are at the top.
4405 (NUM_REGS): Remove.
4406 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4407 (FRAME_ARGS_ADDRESS): Remove.
4408 (FRAME_LOCALS_ADDRESS): Remove.
4409 (FRAME_NUM_ARGS): Remove.
4410 (FRAME_ARGS_SKIP): Remove.
4411 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4412 (m68k_gdbarch_init): Add gdbarch initializations for macros
4413 undefined in tm-m68k.h
4414
1c617db8
GS
44152002-06-26 Grace Sainsbury <graces@redhat.com>
4416
4417 * monitor.h: Add the function regname to monitor_ops
4418 structure. This way NUM_REGS does not have to be a constant.
4419 * monitor.c (monitor_fetch_register): Added support for regname
4420 function. The function is called if the array regnames is NULL.
4421 (monitor_store_register): Same.
da130f98
AC
4422 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4423 regnames array.
1c617db8
GS
4424 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4425 cpu32bug_cmds.regname to point to new function.
4426 * abug-rom.c (abug_regname): Same as above.
4427 (init_abug_cmds): Same.
4428 * dbug-rom.c (dbug_regname): Same as above.
4429 (init_dbug_cmds): Same.
4430 * remote-est.c (est_regname): Same.
4431 (init_est_cmds): Same.
4432 * rom68k-rom.c (rom68k_regname): Same.
4433 (init_rom68k_cmds): Same.
4434
ea9365bb
TT
44352002-06-25 Tom Tromey <tromey@redhat.com>
4436
4437 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4438
72cec141
AC
44392002-06-25 Andrew Cagney <cagney@redhat.com>
4440
4441 * infrun.c (stop_registers): Change variable's type to ``struct
4442 regcache'''.
4443 (xmalloc_inferior_status): Delete function.
4444 (free_inferior_status): Delete function.
4445 (normal_stop): Use regcache_cpy.
4446 (struct inferior_status): Change type of fields ``stop_registers''
4447 and ``registers'' to ``struct regcache''.
4448 (write_inferior_status_register): Use regcache_write.
4449 (save_inferior_status): Instead of calling
4450 xmalloc_inferior_status, allocate the inf_status buffer directly.
4451 Use regcache_dup_no_passthrough and regcache_dup to save the
4452 buffers.
4453 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4454 Replace the stop_registers regcache instead of overriding it. Use
4455 regcache_xfree. Instead of calling free_inferior_status, xfree
4456 the buffer directly.
4457 (discard_inferior_status): Use regcache_xfree. Instead of calling
4458 free_inferior_status, xfree the buffer directly.
4459 (build_infrun): Use regcache_xmalloc.
4460 (_initialize_infrun): Delete redundant call to build_infrun.
4461
4462 * Makefile.in (infcmd.o): Add $(regcache_h).
4463
4464 * infcmd.c: Include "regcache.h".
4465 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4466 obtain the address of `stop_registers' register buffer.
4467 (print_return_value): Ditto.
4468
4469 * inferior.h (struct regcache): Add opaque declaration.
4470 (stop_registers): Change variable's declared type to ``struct
4471 regcache''.
4472
defc6f8c
TT
44732002-06-24 Tom Tromey <tromey@redhat.com>
4474
c0e624e7
TT
4475 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4476 * target.c (initialize_targets): Fixed typo in
4477 trust-readonly-sections `show' documentation.
4478
defc6f8c
TT
4479 * main.c: Marked all strings with _().
4480
2b236d82
DH
44812002-06-24 Don Howard <dhoward@redhat.com>
4482
4483 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4484 that means max CORE_ADDR+1.
4485 (lookup_mem_region): Ditto.
4486 (mem_info_command): Ditto.
4487
942dc0e9
GS
44882002-06-24 Grace Sainsbury <graces@redhat.com>
4489
4490 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4491 (REGISTER_BYTES_OK): Remove.
4492 (REGISTER_BYTES): Remove.
4493 (STORE_STRUCT_RETURN): Remove.
4494 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4495 (STORE_RETURN_VALUE): Remove.
4496 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4497 (FRAME_CHAIN): Remove.
4498 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4499 (FRAME_SAVED_PC): Remove.
4500 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4501 (m68k_store_struct_return): Add.
4502 (m68k_deprecated_extract_return_value): Add.
4503 (m68k_deprecated_extract_struct_value_address): Add.
4504 (m68k_store_return_value): Add.
4505 (m68k_frame_chain): Add.
4506 (m68k_frameless_function_invocation): Add.
4507 (m68k_frame_saved_pc): Add.
4508 (m68k_gdbarch_init): added set_gdbarch calls for new
4509 functions and deleted macros.
4510
03c30d4d
TT
45112002-06-23 Tom Tromey <tromey@redhat.com>
4512
4513 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4514 (ALLDEPFILES): Likewise.
4515 (udiheaders): Removed.
4516 (udip2soc.o): Likewise.
4517 (udi2go32.o): Likewise.
4518 (udr.o): Likewise.
4519 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4520
37e71372
AC
45212002-06-22 Andrew Cagney <ac131313@redhat.com>
4522
06a6ac57
AC
4523 * infrun.c (_initialize_infrun): Delete unnecessary call to
4524 build_infrun.
4525
37e71372
AC
4526 * regcache.h: Update comments describing the regcache_cpy family
4527 of functions.
4528 (regcache_save, regcache_restore): Delete declaration.
4529 (regcache_save_no_passthrough): Delete declaration.
4530 (regcache_restore_no_passthrough): Delete declaration.
4531 * regcache.c (regcache_save): Delete function.
4532 (regcache_save_no_passthrough): Delete function.
4533 (regcache_restore): Delete function.
4534 (regcache_restore_no_passthrough): Delete function.
4535
78f6d055
AC
45362002-06-21 Andrew Cagney <ac131313@redhat.com>
4537
4538 * config/m68k/tm-m68k.h: Fix typo.
4539 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4540 (m68k_frame_init_saved_regs): Declare.
4541
78b119cb
JB
45422002-06-21 Jim Blandy <jimb@redhat.com>
4543
4544 Remove some vestiges of Harris 88k support.
4545 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4546 register numbering quirk.
4547 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4548 odd symbols occurring in Harris 88k ELF targets.
4549
0fbb3da7
TT
45502002-06-21 Tom Tromey <tromey@redhat.com>
4551
4552 * gdb_locale.h: New file.
4553 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4554 (defs_h): Added gdb_locale.h.
4555 * configure, config.in: Rebuilt.
4556 * configure.in (PACKAGE): Define.
4557 * defs.h: Include gdb_locale.h.
4558 * main.c (captured_main): Call setlocale, bindtextdomain,
4559 textdomain.
4560
456f8b9d
DB
45612002-06-21 Dave Brolley <brolley@redhat.com>
4562
4563 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4564 * config/frv/frv.mt: New file.
4565 * config/frv/tm-frv.h: New file.
4566 * configure.tgt: Support frv-*-*.
4567 * Makefile.in (frv-tdep.o): New target.
4568 * frv-tdep.c: New file.
4569 * NEWS: Mention frv.
4570
cdd463f9
DB
45712002-06-21 Dave Brolley <brolley@redhat.com>
4572
4573 * MAINTAINERS: Add self to "Write After Approval" list.
4574
5d3ed2e3
GS
45752002-06-21 Grace Sainsbury <graces@redhat.com>
4576
4577 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4578 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4579 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4580 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4581 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4582
4583 * m68k-tdep.c: Include arch-utils.h
4584 (m68k_register_raw_size): Add.
4585 (m68k_register_virtual_size): Add.
4586 (m68k_register_virtual_type): Add.
4587 (m68k_register_name): Add.
4588 (m68k_stack_align): Add.
4589 (m68k_register_byte): Add.
4590 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4591 tm-m68k.h.
4592
7f8e7424
GS
45932002-06-21 Grace Sainsbury <graces@redhat.com>
4594
a2c6a6d5 4595 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4596 m68k_find_saved_regs.
4597 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4598 references to it with frame->saved_regs.
7f8e7424
GS
4599 (m68k_gdbarch_init): Added function calls to initialize the
4600 gdbarch structure.
a2c6a6d5
GS
4601 (m68k_fix_call_dummy): Add.
4602 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4603 (CALL_DUMMY): Remove.
4604 (CALL_DUMMY_LENGTH): Remove.
4605 (CALL_DUMMY_START_OFFSET): Remove.
4606 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4607 (FIX_CALL_DUMMY): Remove.
4608 (PUSH_DUMMY_FRAME): Remove.
4609 (POP_FRAME): Remove.
7f8e7424 4610
f461f5cf
PM
46112002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4612
4613 * parse.c (parse_fprintf): New function used to avoid calls to
4614 fprintf in bison parser generated debug code.
4615 * parser-defs.h: Declaration of new parse_fprintf function.
4616 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4617 Set YYDEBUG to 1 by default.
4618 Set YYFPRINTF as parse_fprintf.
4619
7f0c12ed
ML
46202002-06-21 Michal Ludvig <mludvig@suse.cz>
4621
4622 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4623 encoding anymore.
4624 (pointer_encoding, enum ptr_encoding): New.
4625 (execute_cfa_program): Take care about pointer encoding.
4626 (dwarf2_build_frame_info): Only call parse_frame_info for
4627 .debug_frame and .eh_frame.
4628 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4629 fixed augmentation handling, added relative addressing,
4630 ignore duplicate FDEs. Added comments.
19d833a2 4631 * dwarf2cfi.c: Reindented.
7f0c12ed 4632
87c4a039
EZ
46332002-06-20 Elena Zannoni <ezannoni@redhat.com>
4634
4635 * event-top.c (command_handler): Don't use space_at_cmd_start
4636 unless there is sbrk() on the host. Assign time and space data
4637 to union fields of the appropriate length.
4638
1cf877ad
ML
46392002-06-20 Michal Ludvig <mludvig@suse.cz>
4640
4641 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4642 x86_64_register_name. Return type changed to 'const char *'.
4643 (x86_64_register_name2nr): Rename to x86_64_register_number.
4644 (x86_64_gdbarch_init): Update to reflect the change.
4645 * x86-64-tdep.h: Ditto.
4646 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4647 (supply_fpregset): Ditto.
4648
3fadccb3
AC
46492002-06-19 Andrew Cagney <cagney@redhat.com>
4650
4651 * regcache.h: Update copyright.
4652 (struct regcache, struct gdbarch): Add opaque declarations.
4653 (current_regcache): Declare global variable.
4654 (regcache_read, regcache_write): Add gdbarch parameter.
4655 (regcache_save, regcache_save_no_passthrough)
4656 (regcache_restore, regcache_restore_no_passthrough)
4657 (regcache_dup, regcache_dup_no_passthrough)
4658 (regcache_cpy, regcache_cpy_no_passthrough)
4659 (deprecated_grub_regcache_for_registers)
4660 (deprecated_grub_regcache_for_register_valid)
4661 (regcache_valid_p): Add function declarations.
4662
4663 * regcache.c: Update copyright.
4664 (regcache_descr_handle): New global variable.
4665 (struct regcache_descr): Define.
4666 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4667 (regcache_descr, xfree_regcache_descr): New functions.
4668 (struct regcache): Define.
4669 (regcache_xmalloc, regcache_xfree): New functions.
4670 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4671 (regcache_dup, regcache_dup_no_passthrough): New functions.
4672 (regcache_valid_p, regcache_read_as_address): New functions.
4673 (deprecated_grub_regcache_for_registers): New function.
4674 (deprecated_grub_regcache_for_register_valid): New function.
4675 (current_regcache): New global variable.
4676 (register_buffer): Add regcache parameter. Update calls.
4677 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4678 (read_register_gen, write_register_gen): Update register_buffer
4679 call. Test for legacy_p instead of gdbarch_register_read_p or
4680 gdbarch_register_write_p.
4681 (regcache_collect): Update register_buffer call.
4682 (build_regcache): Rewrite. Use deprecated grub functions.
4683 (regcache_save, regcache_save_no_passthrough): New functions.
4684 (regcache_restore, regcache_restore_no_passthrough): New
4685 functions.
4686 (_initialize_regcache): Create the regcache_data_handle. Swap
4687 current_regcache global variable.
4688
4689 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4690 parameter to regcache_read and regcache_write calls.
4691 (sh4_register_read): Ditto.
4692 (sh64_pseudo_register_read): Ditto.
4693 (sh64_register_read): Ditto.
4694 (sh_pseudo_register_write): Ditto.
4695 (sh4_register_write): Ditto.
4696 (sh64_pseudo_register_write): Ditto.
4697 (sh64_register_write): Ditto.
4698
4699 * defs.h (XCALLOC): Define.
4700
152d9db6
GS
47012002-06-19 Grace Sainsbury <graces@redhat.com>
4702
4703 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4704 * m68k-tdep.c (m68k_gdbarch_init): Added.
4705 (m68k_dump_tdep): Added.
4706
170911c7
DJ
47072002-06-19 Daniel Jacobowitz <drow@mvista.com>
4708
4709 * ada-lang.c (fill_in_ada_prototype): Update comment.
4710
2e4ebe70
DJ
47112002-06-19 Daniel Jacobowitz <drow@mvista.com>
4712
4713 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4714 MIPS_ABI_LAST.
4715 (mips_abi_string, mips_abi_strings): New.
4716 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4717 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4718 tdep->mips_abi_string. Honor mips_abi_string. Default to
4719 O32 if no ABI is found.
4720 (mips_dump_tdep): Use mips_abi_strings.
4721 (mips_abi_update): New function.
4722 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4723 ``set mips abi'' and ``show mips abi''. Check the size of
4724 mips_abi_strings.
4725
16775908
AC
47262002-06-19 Andrew Cagney <cagney@redhat.com>
4727
4728 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4729 constant.
4730
5051bfa4 47312002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4732
5051bfa4
JB
4733 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4734 current frame using only the first stack size adjustment. All
4735 subsequent size adjustments are not considered to be part of
4736 the "static" part of the current frame.
4737 Compute the address of the saved registers relative to the
4738 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4739 in use in this frame.
4740
56468235
DH
47412002-06-18 Don Howard <dhoward@redhat.com>
4742
4743 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4744 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4745 suggesting this solution.
4746
0b624158
AC
47472002-06-18 Andrew Cagney <ac131313@redhat.com>
4748
4749 * config/romp/xm-rtbsd.h: Delete file.
4750 * config/romp/rtbsd.mh: Delete file.
4751
221ea385
KS
47522002-06-18 Keith Seitz <keiths@redhat.com>
4753
4754 * breakpoint.c (condition_command): Post breakpoint_modify
4755 when a condition is added to an existing breakpoint.
4756 (commands_command): Likewise for commands.
4757 (set_ignore_count): Likewise for ignore counts.
4758 If no tty, do not simply return, still need to send event
4759 notification.
4760 (ignore_command): Only print a newline if the command came
4761 from a tty.
4762 Don't call breakpoints_changed, since this is now properly
4763 handled by set_ignore_count.
4764
5402eed1
AC
47652002-06-18 Andrew Cagney <cagney@redhat.com>
4766
4767 * MAINTAINERS: Note that cris-elf target can be compiled with
4768 -Werror.
4769 * cris-tdep.c (cris_register_name): Make return type constant.
4770 (cris_breakpoint_from_pc): Ditto.
4771
cc22880b
ML
47722002-06-18 Michal Ludvig <mludvig@suse.cz>
4773
4774 * frame.h (struct frame_info): Change type of context to
4775 'struct context'.
4776
fa88f677
AC
47772002-06-17 Andrew Cagney <cagney@redhat.com>
4778
4779 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4780 pointer.
4781 * gdbarch.h, gdbarch.c: Regenerate.
4782 * config/mips/tm-mips.h (mips_register_name): Update.
4783 * i386-tdep.h (i386_register_name): Update.
4784 * mips-tdep.c (mips_register_name): Update
4785 * alpha-tdep.c (alpha_register_name): Update.
4786 * arch-utils.c (legacy_register_name): Update.
4787 * arch-utils.h (legacy_register_name): Update.
4788 * avr-tdep.c (avr_register_name): Update.
4789 * ia64-tdep.c (ia64_register_name): Update.
4790 * i386-tdep.c (i386_register_name): Update.
4791 * sparc-tdep.c (sparc32_register_name): Update.
4792 (sparc64_register_name): Update.
4793 (sparclite_register_name): Update.
4794 (sparclet_register_name): Update.
4795 * sh-tdep.c (sh_generic_register_name): Update.
4796 (sh_sh_register_name): Update.
4797 (sh_sh3_register_name): Update.
4798 (sh_sh3e_register_name): Update.
4799 (sh_sh_dsp_register_name): Update.
4800 (sh_sh3_dsp_register_name): Update.
4801 (sh_sh4_register_name): Update.
4802 (sh_sh64_register_name): Update.
4803 * s390-tdep.c (s390_register_name): Update.
4804 * rs6000-tdep.c (rs6000_register_name): Update.
4805 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4806 (ns32k_register_name_32382): Update.
4807 * d10v-tdep.c (d10v_ts2_register_name): Update.
4808 (d10v_ts3_register_name): Update.
4809 * xstormy16-tdep.c (xstormy16_register_name): Update.
4810 * vax-tdep.c (vax_register_name): Update.
4811 * v850-tdep.c (v850_register_name): Update.
4812 * m68hc11-tdep.c (m68hc11_register_name): Update.
4813 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4814 (am33_register_name): Update.
4815
ea1e7ef6
GS
48162002-06-17 Grace Sainsbury <graces@redhat.com>
4817
4818 * m68k-tdep.c: Reindented.
4819
9b02dd1b
AC
48202002-06-17 Andrew Cagney <ac131313@redhat.com>
4821
4822 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4823 list of predefined types.
4824
8758dec1
MK
48252002-06-16 Mark Kettenis <kettenis@gnu.org>
4826
b6197528
MK
4827 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4828 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4829 REGISTER_CONVERT_TO_RAW): Remove defines.
4830 (i386_register_virtual_type, i386_register_convertible,
4831 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4832 Remove prototypes.
4833 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4834 macros mentioned above.
4835
82b47e62
MK
4836 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4837 (i386lynx_saved_pc_after_call): Remove prototype.
4838 * i386ly-tdep.c: Include "i386-tdep.h".
4839 (i386lynx_saved_pc_after_call): Make static. Use
4840 read_memory_nobpt instead of read_memory. Use
4841 read_memory_unsigned_integer instead of read_memory_integer.
4842 (i386lynx_init_abi): New function.
4843 (i386lynx_coff_osabi_sniffer): New function.
4844 (_initialize_i386bsd_tdep): New function.
4845
8758dec1
MK
4846 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4847 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4848 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4849 (i386_fix_call_dummy): Remove prototype.
4850 * i386-tdep.c (i386_call_dummy_words): New variable.
4851 (i386_gdbarch_init): Adjust for removal of the
4852 macros mentioned above.
4853
e9e68a56
AC
48542002-06-15 Andrew Cagney <ac131313@redhat.com>
4855
4856 * command.h (add_setshow_auto_boolean_cmd): Replace
4857 add_set_auto_boolean_cmd.
4858 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4859 add_set_auto_boolean_cmd.
4860 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4861 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4862 mask-address'' command.
4863 (show_mask_address): Add cmd parameter.
4864 * remote.c (add_packet_config_cmd): Update. Change type of
4865 set_func and show_func to cmd_sfunc_ftype.
4866 (_initialize_remote): Update `set remote Z-packet'
4867 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4868 (show_remote_protocol_e_packet_cmd): Ditto.
4869 (show_remote_protocol_E_packet_cmd): Ditto.
4870 (show_remote_protocol_P_packet_cmd): Ditto.
4871 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4872 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4873 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4874 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4875 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4876 (show_remote_protocol_Z_packet_cmd): Ditto.
4877 (show_remote_protocol_binary_download_cmd): Ditto.
4878 (show_remote_cmd): Pass NULL to all of above.
4879
fc08ec52
MK
48802002-06-15 Mark Kettenis <kettenis@gnu.org>
4881
4882 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4883 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4884 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4885 POP_FRAME): Remove defines.
4886 (i386_push_arguments, i386_store_struct_return,
4887 i386_extract_return_value, i386_store_return_value,
4888 i386_extract_struct_value_address, i386_push_dummy_frame,
4889 i386_pop_frame): Renove prototypes.
4890 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4891 macros mentioned above.
4892
e707bbc2
AC
48932002-06-15 Andrew Cagney <ac131313@redhat.com>
4894
4895 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4896 add_set_boolean_cmd.
4897 (add_setshow_cmd): New function.
4898 * command.h (add_setshow_boolean_cmd): Replace
4899 add_set_boolean_cmd.
4900 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4901 and ``set rdiromatzero''.
4902 * maint.c (_initialize_maint_cmds): Update commented out code.
4903 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4904 * target.c (initialize_targets): Update `set
4905 trust-readonly-sections'.
4906 * remote.c (_initialize_remote): Update `set remotebreak'.
4907
42fdc8df
MK
49082002-06-15 Mark Kettenis <kettenis@gnu.org>
4909
93924b6b
MK
4910 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4911 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4912 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4913 fit into multi-arch framework.
4914 (i386_breakpoint_from_pc): New function.
4915 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4916 above.
4917
42fdc8df
MK
4918 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4919 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4920 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4921 (i386_frameless_function_invocation, i386_frame_num_args,
4922 i386_frame_init_saved_regs): Remove prototypes.
4923 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4924 macros mentioned above.
4925
9773a94b
AC
49262002-06-15 Andrew Cagney <ac131313@redhat.com>
4927
4928 * cli/cli-decode.c (set_cmd_cfunc): Update.
4929 (set_cmd_sfunc): Update.
4930 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4931 (set_cmd_sfunc, set_cmd_cfunc): Update.
4932 * cli/cli-decode.h: Update.
4933
6e157172
MK
49342002-06-15 Mark Kettenis <kettenis@gnu.org>
4935
4936 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4937 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4938
7f19b9a2
AC
49392002-06-15 Andrew Cagney <ac131313@redhat.com>
4940
4941 * defs.h (auto_boolean): Declare enum.
4942 * command.h (cmd_auto_boolean): Delete enum.
4943 * mips-tdep.c (mask_address_var): Update.
4944 (mips_mask_address_p): Update.
4945 (show_mask_address): Update.
4946 * remote.c (struct packet_config): Update.
4947 (update_packet_config): Update.
4948 (show_packet_config_cmd): Update.
4949 (packet_ok): Update.
4950 (add_packet_config_cmd): Update.
4951 (_initialize_remote):
4952 * command.h: Update.
4953 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4954 (do_setshow_command): Update.
4955 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4956 * cli/cli-decode.h: Update.
4957
1cf88de5
MK
49582002-06-15 Mark Kettenis <kettenis@gnu.org>
4959
22ba8cf2
MK
4960 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4961 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4962 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4963 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4964 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4965 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4966
762c5349
MK
4967 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4968 list of DJGPP COFF targets.
4969
091198bb
MK
4970 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4971 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4972 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4973 (FP0_REGNUM): Remove define.
4974 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4975 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4976 (i386_register_virtual_size): Remove protoype.
4977 * i386-tdep.c (i386_register_virtual_size): Removed.
4978 (i386_extract_return_value, i386_store_return_value): Use
4979 FP0_REGNUM instead of NUM_FREGS to determine whether the
4980 floating-point registers are available.
4981 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4982 Adjust for removal of macros mentioned above.
4983
49842002-06-15 Mark Kettenis <kettenis@gnu.org>
4985
fcc9bf01
MK
4986 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4987 comments.
4988 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4989 Remove prototypes.
4990 (supply_gregset, fill_gregset): Remove use of register keyword and
4991 remove declaration for regmap. Use I386_NUM_GREGS instead of
4992 NUM_REGS and NUM_FREGS.
4993 (FPREGSET_FSAVE_OFFSET): Remove.
4994 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4995 NUM_FREGS to determine whether the floating-point registers are
4996 available.
4997
65e78234
MK
4998 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4999 gnu_store_registers): Replace usage of NUM_GREGS with
5000 I386_NUM_GREGS.
5001
98df6387
MK
5002 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5003 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5004 usage of NUM_GREGS with I386_NUM_GREGS.
5005
099a9414
MK
5006 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5007
57976e88
MK
5008 * i386bsd-nat.c: Include "i386-tdep.h".
5009 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5010 I386_NUM_GREGS.
5011
b335f4a6
MK
5012 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5013 and associated comment. They no longer make any sense, since we
5014 don't use this file anymore on Linux.
5015
1cf88de5
MK
5016 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5017 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5018 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5019 elements in these arrays.
5020 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5021 MAX_NUM_REGS.
5022
daa66587
MK
50232002-06-15 Mark Kettenis <kettenis@gnu.org>
5024
5025 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5026 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5027
26e9b323
AC
50282002-06-14 Andrew Cagney <cagney@redhat.com>
5029
5030 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5031 EXTRACT_RETURN_VALUE.
5032 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5033 EXTRACT_STRUCT_VALUE_ADDRESS.
5034 * gdbarch.h, gdbarch.c: Regenerate.
5035
5036 * values.c (value_being_returned): Handle
5037 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5038 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5039
5040 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5041 * arm-tdep.c (arm_gdbarch_init): Update.
5042 * avr-tdep.c (avr_gdbarch_init): Update.
5043 * cris-tdep.c (cris_gdbarch_init): Update.
5044 * d10v-tdep.c (d10v_gdbarch_init): Update.
5045 * ia64-tdep.c (ia64_gdbarch_init): Update.
5046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5048 * s390-tdep.c (s390_gdbarch_init): Update.
5049 * sh-tdep.c (sh_gdbarch_init): Update.
5050 * s390-tdep.c (s390_gdbarch_init): Update.
5051 * sparc-tdep.c (sparc_gdbarch_init): Update.
5052 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5053 * v850-tdep.c (v850_gdbarch_init): Update.
5054 * vax-tdep.c (vax_gdbarch_init): Update.
5055 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5057
5058 * config/arc/tm-arc.h: Update.
5059 * config/d30v/tm-d30v.h: Update.
5060 * config/fr30/tm-fr30.h: Update.
5061 * config/h8300/tm-h8300.h: Update.
5062 * config/h8500/tm-h8500.h: Update.
5063 * config/i386/tm-i386.h: Update.
5064 * config/i386/tm-ptx.h: Update.
5065 * config/i386/tm-symmetry.h: Update.
5066 * config/i960/tm-i960.h: Update.
5067 * config/m32r/tm-m32r.h: Update.
5068 * config/m68k/tm-delta68.h: Update.
5069 * config/m68k/tm-linux.h: Update.
5070 * config/m68k/tm-m68k.h: Update.
5071 * config/m88k/tm-m88k.h: Update.
5072 * config/mcore/tm-mcore.h: Update.
5073 * config/mips/tm-mips.h: Update.
5074 * config/mn10200/tm-mn10200.h: Update.
5075 * config/pa/tm-hppa.h: Update.
5076 * config/pa/tm-hppa64.h: Update.
5077 * config/sparc/tm-sp64.h: Update.
5078 * config/sparc/tm-sparc.h: Update.
5079 * config/sparc/tm-sparclet.h: Update.
5080 * config/z8k/tm-z8k.h: Update.
5081
5179e78f
AC
50822002-06-14 Andrew Cagney <cagney@redhat.com>
5083
5084 * Makefile.in (i386_linux_tdep_h): Define.
5085 (i386_tdep_h, i387_tdep_h): Define.
5086 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5087 $(i386_tdep_h) and $(i387_tdep_h).
5088 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5089
8201327c
MK
50902002-06-14 Mark Kettenis <kettenis@gnu.org>
5091
edf393ac
MK
5092 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5093 Already covered by the default.
5094
896fb97d
MK
5095 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5096 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5097 (i386_gdbarch_init): Initialize long_double_format and long_double
5098 bit.
5099
8201327c
MK
5100 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5101 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5102 Move these to ...
5103 * config/i386/i386sol2.mh: ... here.
5104 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5105 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5106 (SIGCONTEXT_PC_OFFSET): Remove define.
5107 (IN_SIGTRAMP): Remove define.
5108 * i386-sol2-tdep.c: New file.
5109
5110 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5111 * config/i386/tm-i386nw.h: Removed.
5112
5113 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5114 USE_STRUCT_CONVENTION): Remove defines.
5115 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5116 (get_longjmp_target): Remove prototype.
5117 (IN_SIGTRAMP): Remove define.
5118 (i386bsd_in_sigtramp): Remove prototype.
5119 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5120 function. Update comment accordingly
5121 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5122 (FRAME_SAVED_PC): Remove define.
5123 (i386bsd_frame_saved_pc): Remove prototype.
5124 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5125 GET_LONGJMP_TARGET): Remove defines.
5126 (get_longjmp_target): Remove prototype.
5127 (IN_SIGTRAMP): Remove define.
5128 (i386bsd_in_sigtramp): Remove prototype.
5129 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5130 function. Update comment accordingly
5131 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5132 (FRAME_SAVED_PC): Remove define.
5133 (i386bsd_frame_saved_pc): Remove prototype.
5134 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5135 Remove prototype.
5136 (USE_STRUCT_CONVENTION): Remove prototype.
5137 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5138 declaration.
5139 (_initialize_i386bsd_nat): Revise logic to determine some
5140 constants at compile time when compiling a native GDB. Warn if
5141 things don't match up with what we expect.
5142 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5143 Remove variables.
5144 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5145 to use date stored in `struct gdbarch_tdep'.
5146 (i386bsd_sigcontext_offset): Remove varaible.
5147 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5148 stored in `struct gdbarch_tdep'.
5149 (i386bsd_frame_saved_pc): Make static.
5150 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5151 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5152 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5153 i386fbsd4_sc_pc_offset): New variables.
5154 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5155 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5156 functions.
5157 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5158 functions.
5159 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5160 Modify the value of i386fbsd_sigtramp_start and
5161 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5162 i386fbsd_sigtramp_end.
5163 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5164 function.
5165
5166 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5167 define to i386-linux-tdep.h.
5168 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5169 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5170 defines.
5171 (i386_linux_register_name, i386_linux_register_byte,
5172 i386_linux_register_raw_size): Remove prototypes.
5173 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5174 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5175 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5176 TARGET_WRITE_PC): Remove defines.
5177 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5178 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5179 i386_linux_write_pc): Remove prototypes.
5180 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5181 (get_longjmp_target): Remove prototype.
5182 * i386-linux-tdep.h: New file.
5183 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5184 * i386-linux-tdep.c: Include "i386-tdep.h" and
5185 "i386-linux-tdep.h".
5186 (i386_linux_register_name, i386_linux_register_byte,
5187 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5188 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5189 Make static.
5190 (i386_linux_init_abi): New function.
5191 (_initialize_i386_linux_tdep): New function.
5192
5193 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5194 (i386_saved_pc_after_call): Remove prototype.
5195 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5196 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5197 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5198 (i386_register_name, i386_stab_reg_to_regnum,
5199 i386_dwarf_reg_to_regnum): Remove prototypes.
5200 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5201 SIZEOF_SSE_REGS): Remove defines.
5202 (REGISTER_BYTES): Remove define.
5203 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5204 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5205 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5206 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5207 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5208 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5209 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5210 (get_longjmp_target): Remove prototype.
5211 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5212 (sigtramp_saved_pc): Remove define.
5213 (i386v4_sigtramp_saved_pc): Remove prototype.
5214 * config/i386/tm-go32.h (FRAME_CHAIN,
5215 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5216 (i386go32_frame_saved_pc): Remove prototype.
5217 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5218 (get_longjmp_target): Remove prototype.
5219 * i386-tdep.h: Include "osabi.h".
5220 (enum i386_abi): Removed.
5221 (enum struct_return): New enum.
5222 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5223 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5224 sc_pc_offset members.
5225 (i386_gdbarch_register_os_abi): Remove prototype.
5226 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5227 I386_SSE_NUM_REGS): New defines.
5228 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5229 I386_SSE_SIZEOF_REGS): New defines.
5230 (i386_register_name, i386_register_byte, i386_register_raw_size):
5231 New prototypes.
5232 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5233 (i386bsd_sigtramp_saved_pc): New prototype.
5234 * i386-tdep.c: Don't include "elf-bfd.h".
5235 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5236 i386_frame_chain, i386_saved_pc_after_call): Make static.
5237 (i386_frame_saved_pc): Rewrite to call architecture dependent
5238 function to deal with signal handlers. Make static.
5239 (i386go32_frame_saved_pc): Removed.
5240 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5241 Removed.
5242 (i386_get_longjmp_target): New function.
5243 (default_struct_convention, pcc_struct_convention,
5244 reg_struct_convention, valid_conventions, struct_convention): New
5245 variables.
5246 (i386_use_struct_convention): New function.
5247 (i386v4_sigtramp_saved_pc): Renamed to
5248 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5249 (i386_pc_in_sigtramp): New function.
5250 (i386_abi_names): Removed.
5251 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5252 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5253 Removed.
5254 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5255 i386_gdbarch_register_os_abi): Removed.
5256 (struct i386_abi_handler): Removed.
5257 (i386_abi_handler_list): Removed.
5258 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5259 functions.
5260 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5261 i386_nw_init_abi): New functions.
5262 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5263 Use set_gdbarch_xxx() calls instead of relying on macros for a
5264 number of calls.
5265 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5266 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5267 Register the various architecture variants defined in this file.
5268
ad2f7632
DJ
52692002-06-14 Daniel Jacobowitz <drow@mvista.com>
5270
5271 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5272 (struct main_type): Remove arg_types member. Update comments for
5273 struct field.
5274 (TYPE_ARG_TYPES): Remove.
5275 (TYPE_FN_FIELD_ARGS): Update.
5276 (smash_to_method_type): Update prototype.
5277
5278 * c-typeprint.c (cp_type_print_method_args): Take method type
5279 instead of argument list. Use new argument layout. Simplify.
5280 (c_type_print_args): Use new argument layout. Simplify.
5281 (c_type_print_base): Update call to cp_type_print_method_args.
5282 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5283 argument; use die->type instead. Update call to
5284 smash_to_method_type.
5285 (read_structure_scope): Update call to dwarf2_add_member_fn.
5286 * gdbtypes.c (allocate_stub_method): Update comment.
5287 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5288 Use new argument layout.
5289 (check_stub_method): Use new argument layout. Don't count
5290 void as an argument.
5291 (print_arg_types): Update comments. Use new argument layout.
5292 (recursive_dump_type): Don't print arg_types member.
5293 * hpread.c (hpread_read_struct_type): Use new argument layout.
5294 (fixup_class_method_type): Likewise.
5295 (hpread_type_lookup): Likewise.
5296 * stabsread.c (read_type): Update calls to read_args and
5297 smash_to_method_type.
5298 (read_args): Use new argument layout. Simplify.
5299 * valops.c (typecmp): Use new argument layout. Update parameters
5300 and comments. Simplify.
5301 (hand_function_call): Use new argument layout.
5302 (search_struct_method): Update call to typecmp.
5303 (find_overload_match): Use new argument layout.
5304
6da02953
DJ
53052002-06-13 Daniel Jacobowitz <drow@mvista.com>
5306
5307 * NEWS: Mention multithreaded debug support for gdbserver.
5308
519b2366
DJ
53092002-06-13 Daniel Jacobowitz <drow@mvista.com>
5310
5311 * MAINTAINERS: Mention NEWS.
5312
6c0d6680
DJ
53132002-06-13 Daniel Jacobowitz <drow@mvista.com>
5314
5315 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5316 (struct mips_objfile_private, compare_pdr_entries): New.
5317 (non_heuristic_proc_desc): Read the ".pdr" section if it
5318 is present.
5319
6529d2dd
AC
53202002-06-12 Andrew Cagney <ac131313@redhat.com>
5321
5322 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5323 (arm_debug): New static variable.
5324 (_initialize_arm_tdep): Add ``set debug arm'' command.
5325
26216b98
AC
53262002-06-12 Andrew Cagney <ac131313@redhat.com>
5327
5328 * Makefile.in (sim_arm_h): Define.
5329 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5330 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5331 (arm_register_sim_regno): New function, map an internal REGNUM
5332 onto a simulator register number.
5333 (arm_gdbarch_init): Set register_sim_regno.
5334
814b3ba0
AH
53352002-06-09 Aldy Hernandez <aldyh@redhat.com>
5336
5337 * MAINTAINERS: Add self.
5338
475b0867
JB
53392002-06-11 Jim Blandy <jimb@redhat.com>
5340
919d772c
JB
5341 * source.c (source_info): Mention whether the symtab has
5342 information about preprocessor macros.
5343
475b0867
JB
5344 Call the command `info macro', not `show macro'.
5345 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5346 Fix error message.
5347 (_initialize_macrocmd): Register `info_macro_command' in
5348 `infolist', not `showlist'.
5349
9e364162
DJ
53502002-06-11 Daniel Jacobowitz <drow@mvista.com>
5351
5352 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5353 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5354 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5355 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5356 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5357 unconditionally.
5358 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5359 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5360 (_initialize_mips_tdep): Remove dead code.
5361 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5362 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5363 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5364 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5365 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5366 MIPS_LAST_FP_ARG_REGNUM): Remove.
5367
23aa4c72
ML
53682002-06-11 Michal Ludvig <mludvig@suse.cz>
5369
5370 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5371 (unwind_tmp_obstack_free, parse_frame_info)
5372 (update_context, cfi_read_fp, cfi_write_fp)
5373 (cfi_frame_chain, cfi_init_extra_frame_info)
5374 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5375 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5376
70eb15a4
CV
53772002-06-11 Corinna Vinschen <vinschen@redhat.com>
5378
5379 * v850-tdep.c (v850_type_is_scalar): New function.
5380 (v850_use_struct_convention): Match current gcc implementation
5381 as close as possible.
5382 (v850_push_arguments): Fix stack_offset handling. Don't write
5383 struct_addr into register. This is done by v850_store_struct_return.
5384 (v850_extract_return_value): Care for structs.
5385 (v850_store_return_value): Ditto.
5386 (v850_store_struct_return): Actually write address.
5387
482a4d06
ML
53882002-06-11 Michal Ludvig <mludvig@suse.cz>
5389
5390 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5391 without debug information too.
5392
d855c300
AC
53932002-06-10 Andrew Cagney <ac131313@redhat.com>
5394
5395 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5396 Make multi-arch pure.
5397 * gdbarch.h, gdbarch.c: Re-generate.
5398 * arm-tdep.c (arm_print_float_info): Update.
5399 * arch-utils.h (default_print_float_info): Update.
5400 * arch-utils.c (default_print_float_info): Update.
5401 * infcmd.c (float_info): Update call.
5402
dd12a101
AC
54032002-06-10 Andrew Cagney <ac131313@redhat.com>
5404
5405 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5406 the front of the initialize list.
5407
101dcfbe
AC
54082002-06-10 Andrew Cagney <ac131313@redhat.com>
5409
5410 * infrun.c (struct inferior_status): Replace fields
5411 selected_frame_address and selected_level with field
5412 selected_frame_id.
5413 (save_inferior_status): Update. Use get_frame_id.
5414 (struct restore_selected_frame_args): Delete.
5415 (restore_selected_frame): Update. Use frame_find_by_id.
5416 (restore_inferior_status): Update.
5417
5418 * breakpoint.h (struct breakpoint): Change type of
5419 watchpoint_frame to frame_id.
5420 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5421 call to get_current_frame.
5422 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5423 get_current_frame.
5424 (watchpoint_check): Use frame_find_by_id.
5425
5426 * frame.h (record_selected_frame): Delete declaration.
5427 * stack.c (record_selected_frame): Delete function.
5428
5429 * frame.h (struct frame_id): Define.
5430 (get_frame_id): Declare.
5431 (frame_find_by_id): Declare.
5432 * frame.c (frame_find_by_id): New function.
5433 (get_frame_id): New function.
5434
304270b6
AV
54352002-06-10 Andrey Volkov <avolkov@transas.com>
5436
5437 * ser-e7kpc.c: Fix duplicated define and call of
5438 _initialize_ser_e7000pc
5439
2f2cf184
DJ
54402002-06-09 Daniel Jacobowitz <drow@mvista.com>
5441
5442 * signals/signals.c (target_signal_from_host): Fix #ifdef
5443 SIGRTMIN case.
5444 (do_target_signal_to_host): Likewise.
5445
caaa3122
DJ
54462002-06-09 Daniel Jacobowitz <drow@mvista.com>
5447
5448 * mips-tdep.c (mips_find_abi_section): New function.
5449 (mips_gdbarch_init): Call it.
5450
6ac5df3a
MK
54512002-06-09 Mark Kettenis <kettenis@gnu.org>
5452
5453 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5454 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5455 after Andrew's 2002-06-08 gdbarch change.
5456
82ea117a
MK
54572002-06-09 Mark Kettenis <kettenis@gnu.org>
5458
5459 * i386-linux-nat.c (suppy_gregset): Don't supply
5460 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5461 register cache.
5462 (fill_gregset): Don't fetch it under the same circumstances.
5463
3c25f8c7
AC
54642002-06-09 Andrew Cagney <cagney@redhat.com>
5465
5466 * Makefile.in (callback_h): Define.
5467 (remote_sim_h): Update path to remote-sim.h.
5468 (remote-rdp.o): Add $(callback_h).
5469 (remote-sim.o): Use $(callback_h).
5470 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5471 * remote-rdp.c: Include "gdb/callback.h".
5472
1029b7fa
MK
54732002-06-09 Mark Kettenis <kettenis@gnu.org>
5474
5475 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5476 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5477
616675d3
AC
54782002-06-08 Andrew Cagney <ac131313@redhat.com>
5479
a3efda28
AC
5480 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5481 * rdi-share/serpardr.c: Ditto.
5482 * rdi-share/unixcomm.c: Ditto.
5483 * rdi-share/serdrv.c: Ditto.
5484 * rdi-share/hostchan.h: Ditto.
5485 * rdi-share/hostchan.c: Ditto.
5486 * rdi-share/host.h: Ditto.
5487 * rdi-share/devsw.c: Ditto.
5488
c5f10366
AC
5489 * objfiles.h: Change type of obj_private to void pointer.
5490 * pa64solib.c: Update copyright. Don't include "assert.h", use
5491 strcmp instead of STREQ, use LONGEST, do not use PTR
5492 * somsolib.c: Ditto.
5493
616675d3
AC
5494 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5495 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5496 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5497
e4b415d9
AC
54982002-06-08 Andrew Cagney <ac131313@redhat.com>
5499
5500 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5501 (default_get_saved_register): Delete function.
5502 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5503 generic_unwind_get_saved_register.
5504 * gdbarch.h, gdbarch.c: Re-generate.
5505
ca0d0b52
AC
55062002-06-08 Andrew Cagney <ac131313@redhat.com>
5507
5508 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5509 generic_func_frame_chain_valid.
5510 * gdbarch.h, gdbarch.c: Re-generate.
5511 * blockframe.c (generic_func_frame_chain_valid): Only check
5512 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5513 passing FP to PC_IN_CALL_DUMMY.
5514 Fix PR gdb/360.
5515
76860b5f
AC
55162002-06-08 Andrew Cagney <ac131313@redhat.com>
5517
5518 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5519 (register_gdbarch_data): Initialize init_p.
5520 (gdbarch_data): Initialize data pointer using the init function.
5521 (init_gdbarch_data): Delete function.
5522 (gdbarch_update_p): Update.
5523 (initialize_non_multiarch): Update.
5524 (struct gdbarch): Add field initialized_p.
5525 * gdbarch.h, gdbarch.c: Re-generate.
5526
8dda9770
ML
55272002-06-07 Michal Ludvig <mludvig@suse.cz>
5528
5529 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5530 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5531 better do the things actually here.
5532 * x86-64-tdep.c (x86_64_register_name2nr): New.
5533 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5534 (x86_64_gdbarch_init): Respect the above change.
5535 * x86-64-tdep.h (x86_64_register_name2nr)
5536 (x86_64_register_nr2name): Add prototypes.
5537 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5538
3d79a47c
MS
55392002-06-06 Michael Snyder <msnyder@redhat.com>
5540
7bd91a28
MS
5541 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5542 Delete extra braces and re-indent.
5543 (d10v_store_return_value): Char return values
3d79a47c
MS
5544 must be shifted over by one byte in R0.
5545 (d10v_extract_return_value): Delete extra braces, re-indent.
5546
095a4c96
EZ
55472002-06-06 Elena Zannoni <ezannoni@redhat.com>
5548
5549 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5550 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5551 (d10v_integer_to_address): Rewrite.
5552 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5553 the d10v specific functions which take care of converting to the
5554 correct space.
5555
e8a77ca4
EZ
55562002-06-06 Elena Zannoni <ezannoni@redhat.com>
5557
5558 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5559 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5560
4f2e4a4f
AC
55612002-06-02 Andrew Cagney <ac131313@redhat.com>
5562
5563 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5564 includes.
5565 * config/tm-linux.h: Ditto.
5566 * config/alpha/tm-alphalinux.h: Ditto.
5567 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5568 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5569 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5570 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5571 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5572 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5573 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5574 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5575 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5576 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5577 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5578 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5579 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5580 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5581 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5582 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5583 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5584 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5585 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5586 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5587 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5588 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5589 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5590 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5591 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5592 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5593 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5594 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5595 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5596 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5597 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5598 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5599 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5600 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5601 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5602 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5603 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5604
ae2ab2ce
AS
56052002-05-04 Aidan Skinner <aidan@velvet.net>
5606
5607 * ada-exp.tab.c: New file
5608 * ada-exp.y: New file
5609 * ada-lang.c: New file
5610 * ada-lang.h: New file
5611 * ada-lex.c: New file
5612 * ada-lex.l: New file
5613 * ada-tasks.c: New file
5614 * ada-typeprint.c: New file
5615 * ada-valprint.c: New file
5616
0ddd0135
JT
56172002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5618
5619 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5620 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5621
750fbacc
JT
56222002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5623
5624 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5625 insetead of ppc-linux-tdep.o.
5626 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5627 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5628
df94e18a
AC
56292002-06-02 Andrew Cagney <ac131313@redhat.com>
5630
5631 2002-05-07 Christian Groessler <chris@groessler.org>
5632 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5633 bit register contents for little endian hosts.
5634
1a38ab75
AC
56352002-06-01 Andrew Cagney <ac131313@redhat.com>
5636
5637 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5638 any maintainer.
5639
8b1632ac
AC
56402002-06-01 Andrew Cagney <ac131313@redhat.com>
5641
5642 * gdbarch.h: Regenerate.
5643
627054c8
AC
56442002-06-01 Andrew Cagney <ac131313@redhat.com>
5645
5646 * MAINTAINERS: Add everyone to write-after-approval list.
5647
4f460812
AC
56482002-06-01 Andrew Cagney <ac131313@redhat.com>
5649
5650 * stack.c (frame_info): Use frame_register_unwind instead of
5651 saved_regs. Mention when the SP is on the stack or in a register.
5652
5653 * frame.h (frame_register_unwind_ftype): Define. Document.
5654 (struct frame_info): Add field register_unwind and
5655 register_unwind_cache.
5656 (frame_register_unwind): Declare.
5657 (generic_unwind_get_saved_register): Declare.
5658
5659 * frame.c (frame_register_unwind): New function.
5660 (generic_unwind_get_saved_register): New function.
5661
5662 * blockframe.c (generic_call_dummy_register_unwind): New function.
5663 (frame_saved_regs_register_unwind): New function.
5664 (set_unwind_by_pc): New function.
5665 (create_new_frame): New function.
5666 (get_prev_frame): New function.
5667
de888f76
AC
56682002-05-30 Andrew Cagney <ac131313@redhat.com>
5669
5670 * a29k-share/: Delete directory.
5671 * remote-vx29k.c: Delete file.
5672
2f2c3626
JT
56732002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5674
5675 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5676 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5677
9ce5c36a
JT
56782002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5679
5680 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5681 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5682 (sparc64nbsd-nat.o)
5683 (sparcnbsd-nat.o)
5684 (sparcnbsd-tdep.o): New dependency lists.
5685 * NEWS: Note new UltraSPARC NetBSD native configuration.
5686 * configure.host (sparc64-*-netbsd*): New host.
5687 * configure.tgt (sparc-*-netbsdelf*)
5688 (sparc-*-netbsd*): Set gdb_target to nbsd.
5689 (sparc64-*-netbsd*): New target.
5690 * sparc64nbsd-nat.c: New file.
5691 * sparcnbsd-nat.c: New file.
5692 * sparcnbsd-tdep.c: New file.
5693 * sparcnbsd-tdep.h: New file.
5694 * config/sparc/nbsd.mt: New file.
5695 * config/sparc/nbsd64.mh: New file.
5696 * config/sparc/nbsd64.mt: New file.
5697 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5698 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5699 (HOST_IPC): Remove.
5700 * config/sparc/nbsdaout.mt: Remove.
5701 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5702 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5703 (HOST_IPC): Remove.
5704 * config/sparc/nbsdelf.mt: Remove.
5705 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5706 sparc-nat.c compatiblity defines.
5707 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5708 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5709 * config/sparc/tm-nbsd64.h: New file.
5710 * config/sparc/tm-nbsdaout.h: Remove.
5711 * config/sparc/xm-nbsd.h: Remove.
5712
ef3cf062
JT
57132002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5714
5715 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5716 * sparc-tdep.c: Include osabi.h.
5717 (gdbarch_tdep): Add osabi member.
5718 (_initialize_sparc_tdep): Use gdbarch_register.
5719 (sparc_gdbarch_init): Use generic OS ABI framework.
5720 (sparc_dump_tdep): New function.
5721
ee8ff470
KB
57222002-05-30 Kevin Buettner <kevinb@redhat.com>
5723
5724 * corefile.c (do_captured_read_memory_integer): Return non-zero
5725 result.
5726 (safe_read_memory_integer): Copy result of memory read when
5727 status is non-zero. Also, add comments.
5728
7b112f9c
JT
57292002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5730
5731 * Makefile.in (ppc_tdep_h): Define.
5732 (ppc-linux-nat.o)
5733 (ppc-linux-tdep.o)
5734 (rs6000-tdep.o): Use $(ppc_tdep_h).
5735 (ppc-sysv-tdep.o)
5736 (ppcnbsd-nat.o)
5737 (ppcnbsd-tdep.o): New dependency lists.
5738 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5739 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5740 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5741 (ppc_sysv_abi_broken_use_struct_convention)
5742 (ppc_sysv_abi_use_struct_convention)
5743 (ppc_sysv_abi_push_arguments): Move to...
5744 * ppc-sysv-tdep.c: ...here.
5745 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5746 * rs6000-tdep.c (process_note_abi_tag_sections)
5747 (get_elfosabi): Remove.
5748 (rs6000_gdbarch_init): Use generic OS ABI framework.
5749 (rs6000_dump_tdep): New function.
5750 (_initialize_rs6000_tdep): Use gdbarch_register.
5751 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5752 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5753 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5754 of ppc-linux-tdep.o.
5755 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5756 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5757 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5758 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5759 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5760 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5761
480dd42a
JB
57622002-05-29 Jim Blandy <jimb@redhat.com>
5763
5764 * macroscope.c (default_macro_scope): Put `void' in empty argument
5765 list.
5766
4182591f
AC
57672002-05-29 Andrew Cagney <ac131313@redhat.com>
5768
5769 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5770 * arch-utils.c: Include "sim-regno.h".
5771 * gdbarch.sh: Don't include "sim-regno.h".
5772 * gdbarch.h, gdbarch.c: Regenerate.
5773 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5774 here.
5775 * arch-utils.h (legacy_register_sim_regno): To here.
5776 * remote-sim.c (legacy_register_sim_regno): Move function from
5777 here.
5778 * arch-utils.c (legacy_register_sim_regno): To here.
5779
8238d0bf
AC
57802002-05-28 Andrew Cagney <ac131313@redhat.com>
5781
5782 * sim-regno.h: New file.
5783 * Makefile.in (sim_regno_h): Define.
5784 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5785 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5786 (legacy_register_sim_regno): New function.
5787 (one2one_register_sim_regno): New function.
5788 (gdbsim_fetch_register): Rewrite.
5789 (gdbsim_store_register): Only store a register when
5790 REGISTER_SIM_REGNO is valid.
5791 * d10v-tdep.c: Include "sim-regno.h".
5792 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5793 (d10v_ts3_register_sim_regno): Ditto.
5794 * gdbarch.sh: Include "sim-regno.h".
5795 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5796 * gdbarch.h, gdbarch.c: Regenerate.
5797 * arch-utils.h (default_register_sim_regno): Delete declaration.
5798 * arch-utils.c (default_register_sim_regno): Delete function.
5799
485721b1
JT
58002002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5801
5802 * ppcnbsd-nat.c: Rewrite.
5803 * ppcnbsd-tdep.c: New file.
5804 * ppcnbsd-tdep.h: New file.
5805 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5806 solib.o, and solib-svr4.o.
5807 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5808 nbsd-tdep.o, and corelow.o.
5809
697f244d
AC
58102002-05-28 Andrew Cagney <ac131313@redhat.com>
5811
5812 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5813 `tr' and `sed'. Mention that `broken' targets are not expected to
5814 build.
5815
f08caad1 58162002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5817
5818 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5819 Let PC point right after the prologue before looking up symbols.
5820
3139facc
MH
58212002-05-27 Martin M. Hunt <hunt@redhat.com>
5822
5823 * i386-tdep.c (i386_register_virtual_type): Return
5824 builtin_type_vec128i for SSE registers.
5825
5826 * gdbtypes.h (builtin_type_vec128i): Declare.
5827
5828 * gdbtypes.c (build_builtin_type_vec128i): New function.
5829 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5830 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5831 (build_gdbtypes): Initialize new builtin vector types.
5832 (_initialize_gdbtypes): Register new vector types with gdbarch.
5833
6e3ba3b8
JT
58342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5835
5836 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5837 since it has been multi-arch'd.
5838 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5839 Move Alpha and VAX multi-arch news entries to same section
5840 as other multi-arch news.
5841
93d5585d
JT
58422002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5843
5844 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5845 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5846 static. Rename some register numbers to put them in ns32k-tdep
5847 private namespace.
5848 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5849 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5850 functions.
5851 (_initialize_ns32k_tdep): Use gdbarch_register.
5852 * ns32k-tdep.h: New file.
5853 * ns32knbsd-tdep.c: New file.
5854 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5855 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5856 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5857 REGISTER_BYTES, REGISTER_BYTE): Remove.
5858 * config/ns32k/tm-ns32k.h: New file.
5859 * config/ns32k/tm-umax.h: Remove.
5860
efb2c70e
JT
58612002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5862
5863 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5864 ns32k_store_struct_return, ns32k_extract_return_value,
5865 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5866 functions.
5867 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5868 ns32k_saved_pc_after_call.
5869 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5870 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5871 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5872 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5873 ns32k_extract_struct_value_address.
5874
7bcc927b
JT
58752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5876
5877 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5878 ns32k_fix_call_dummy): New.
5879 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5880 ns32k_call_dummy_words.
5881 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5882 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5883 CALL_DUMMY_NARGS): Remove.
5884 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5885
78f9d765
JT
58862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5887
5888 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5889 ns32k_frame_saved_pc, ns32k_frame_args_address,
5890 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5891 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5892 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5893 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5894 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5895 (BREAKPOINT): Remove..
5896 (FRAME_CHAIN): Define as ns32k_frame_chain.
5897 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5898 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5899 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5900 (FRAME_FIND_SAVED_REGS): Remove.
5901 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5902 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5903 (POP_FRAME): Define as ns32k_pop_frame.
5904
f2c762e0
JT
59052002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5906
5907 * ns32k-tdep.c (ns32k_register_byte_32082,
5908 ns32k_register_byte_32382, ns32k_register_raw_size,
5909 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5910 functions.
5911 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5912 ns32k_register_byte_32382.
5913 * config/ns32k/tm-umax.h: Update copyright years.
5914 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5915 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5916 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5917 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5918 (ns32k_get_enter_addr): Fix prototype.
5919
af137673
JT
59202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5921
5922 * ns32k-tdep.c: Update copyright years.
5923 (ns32k_register_name_32082): New function.
5924 (ns32k_register_name_32382): Ditto.
5925 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5926 (REGISTER_NAME): Define as ns32k_register_name_32382.
5927 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5928 (REGISTER_NAME): Define as ns32k_register_name_32082.
5929
a8bc7b56
JB
59302002-05-24 Jim Blandy <jimb@redhat.com>
5931
5932 * dwarf2read.c (free_line_header): Use xfree, not free.
5933
83a45910
JT
59342002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5935
5936 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5937 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5938
0db71247
AC
59392002-05-23 Andrew Cagney <ac131313@redhat.com>
5940
5941 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5942
b9e5e4dd
AC
59432002-05-23 Andrew Cagney <ac131313@redhat.com>
5944
5945 From Ross Alexander at NEC Europe:
5946 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5947
de530e84
MS
59482002-05-23 Michael Snyder <msnyder@redhat.com>
5949
5950 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5951 for input, rather than parse_and_eval_address.
5952
b91b96f4
AC
59532002-05-23 Andrew Cagney <ac131313@redhat.com>
5954
5955 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5956 * Makefile.in (sim_d10v_h): Update definition.
5957
8b279e7a
AC
59582002-05-24 Andrew Cagney <cagney@redhat.com>
5959
5960 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5961 change `2002-05-22 Michael Snyder' below.
5962 (d10v_push_arguments): Ditto.
5963 (d10v_extract_return_value): Ditto.
5964
0a3d0425
JB
59652002-05-23 Jim Blandy <jimb@redhat.com>
5966
5967 * macrotab.c (check_for_redefinition): Don't complain if the new
5968 definition is the same as the previous one. Take more arguments
5969 to allow the comparison.
5970 (macro_define_object, macro_define_function): Pass more arguments
5971 to check_for_redefinition.
5972
78eac43e
MS
59732002-05-22 Michael Snyder <msnyder@redhat.com>
5974
5975 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5976 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5977 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5978 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5979 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5980 Add a temp variable to save a call (and a memory read).
5981 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5982 if possible (so that PC_IN_CALL_DUMMY will work).
5983
9bc1edb8
CV
59842002-05-22 Corinna Vinschen <vinschen@redhat.com>
5985
5986 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5987
005ef3d2
ML
59882002-05-22 Michal Ludvig <mludvig@suse.cz>
5989
5990 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5991 fde->cie_ptr.
5992 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5993 (dwarf2_build_frame_info): Add offset to fde->initial_location
5994 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5995 (execute_stack_op): Change type of 'result' from ULONGEST to
5996 CORE_ADDR.
005ef3d2 5997
fcf4f891
JT
59982002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5999
6000 * config/alpha/tm-nbsd.h: Include solib.h.
6001
cfef91e4
JT
60022002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6003
6004 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6005 assumptions about the host's byte order.
6006
9964235a
JT
60072002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6008
6009 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6010 to dependency list.
6011 * alphanbsd-tdep.c: Include solib-svr4.h.
6012 * shnbsd-tdep.c: Ditto.
6013
9eeef8ef
JT
60142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6015
6016 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6017 nbsd-tdep.h to dependency list.
6018 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6019 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6020 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6021 nbsdaout.mh and nbsdelf.mh consistently.
6022 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6023 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6024 nbsdaout.mt and nbsdelf.mh consistently.
6025 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6026 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6027 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6028 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6029 a.out shared library stuff from here...
6030 * config/nm-nbsdaout.h: ...to here.
6031 * config/tm-nbsd.h: Remove.
6032 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6033 * config/arm/nbsd.mh: Remove.
6034 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6035 nbsd-tdep.o.
6036 * config/arm/nbsdaout.mh: New file.
6037 * config/arm/nbsdelf.mh: New file.
6038 * config/arm/nm-nbsdaout.h: New file.
6039 * config/i386/nbsd.mh: Remove.
6040 * config/i386/nbsd.mt: Remove.
6041 * config/i386/nbsdaout.mh: New file.
6042 * config/i386/nbsdaout.mt: New file.
6043 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6044 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6045 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6046 i386_register_u_addr): Remove.
6047 * config/i386/nm-nbsdaout.h: New file.
6048 * config/i386/nm-nbsdelf.h: Remove.
6049 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6050 (USE_STRUCT_CONVENTION): Remove.
6051 * config/i386/tm-nbsdaout.h: New file.
6052 * config/i386/tm-nbsdelf.h: Remove.
6053 * config/m68k/nbsd.mh: Remove.
6054 * config/m68k/nbsd.mt: Remove.
6055 * config/m68k/nbsdaout.mh: New file.
6056 * config/m68k/nbsdaout.mt: New file.
6057 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6058 * config/m68k/nm-nbsdaout.h: New file.
6059 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6060 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6061 * config/ns32k/nbsd.mh: Remove.
6062 * config/ns32k/nbsd.mt: Remove.
6063 * config/ns32k/nbsdaout.mh: New file.
6064 * config/ns32k/nbsdaout.mt: New file.
6065 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6066 * config/ns32k/nm-nbsdaout.h: New file.
6067 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6068 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6069 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6070 (SVR4_SHARED_LIBS): Remove.
6071 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6072 * config/sparc/nbsd.mh: Remove.
6073 * config/sparc/nbsd.mt: Remove.
6074 * config/sparc/nbsdaout.mh: New file.
6075 * config/sparc/nbsdaout.mt: New file.
6076 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6077 * config/sparc/nbsdelf.mt: New file.
6078 * config/sparc/nm-nbsdaout.h: New file.
6079 * config/sparc/nm-nbsdelf.h: Remove.
6080 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6081 * config/sparc/tm-nbsdaout.h: New file.
6082
257ce470
JT
60832002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6084
6085 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6086 mipsnbsd-tdep.c
6087 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6088
76a6d5fe
JT
60892002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6092 shnbsd-nat.c.
6093 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6094
45888261
JT
60952002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6096
6097 * NEWS: Note new MIPS NetBSD native configuration.
6098 * configure.host (mips*-*-netbsd*): New host.
6099 * configure.tgt (mips*-*-netbsd*): New target.
6100 * mipsnbsd-nat.c: New file.
6101 * mipsnbsd-tdep.c: New file.
6102 * mipsnbsd-tdep.h: New file.
6103 * config/mips/nbsd.mh: New file.
6104 * config/mips/nbsd.mt: New file.
6105 * config/mips/nm-nbsd.h: New file.
6106 * config/mips/tm-nbsd.h: New file.
6107
70f80edf
JT
61082002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6109
6110 * Makefile.in (SFILES): Add osabi.c.
6111 (COMMON_OBS): Add osabi.o.
6112 (osabi.o): New dependency list.
6113 * osabi.c: New file.
6114 * osabi.h: New file.
6115 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6116
6117 * Makefile.in (alpha_tdep_h): Define and use instead of
6118 alpha-tdep.h.
6119 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6120 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6121 Remove.
6122 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6123 * alpha-tdep.h: Include osabi.h.
6124 (alpha_abi): Remove.
6125 (gdbarch_tdep): Use generic OS ABI framework.
6126 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6127 gdbarch_register_osabi.
6128 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6129 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6130 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6131
6132 * Makefile.in (sh_tdep_h): Add osabi.h.
6133 * sh-tdep.h (sh_osabi): Remove.
6134 (gdbarch_tdep): Use generic OS ABI framework.
6135 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6136 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6137 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6138 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6139
6140 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6141 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6142 gdbarch_register_osabi.
6143 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6144 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6145 (get_elfosabi): Rename to...
6146 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6147 ABI framework support routines.
6148 (arm_gdbarch_init): Use generic OS ABI framework.
6149 (arm_dump_tdep): Likewise.
6150 (_initialize_arm_tdep): Likewise.
6151 * arm-tdep.h: Include osabi.h.
6152 (arm_abi): Remove.
6153 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6154 osabi member.
6155 (arm_gdbarch_register_os_abi): Remove prototype.
6156 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6157 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6158
6159 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6160 * mips-tdep.c: Include osabi.h.
6161 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6162 OS ABI framework.
6163
d194345b
KH
61642002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6165
6166 * h8300-tdep.c: Fix formatting.
6167
70c6b0d1
EZ
61682002-05-20 Elena Zannoni <ezannoni@redhat.com>
6169
6170 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6171 printing vector registers.
6172
165b8e33
AC
61732002-05-19 Andrew Cagney <ac131313@redhat.com>
6174
6175 From Fernando Nasser:
6176 * remote.c (remote_async_open_1): Re-throw the exception when the
6177 connection fails.
6178 (remote_cisco_open): Ditto.
6179 (remote_open_1): Ditto.
6180
36918e70
AC
61812002-05-19 Andrew Cagney <ac131313@redhat.com>
6182
6183 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6184 (remote_start_remote): Add uiout parameter. Pass through to
6185 remote_start_remote_dummy.
6186 (remote_open_1): Use catch_exception instead of catch_errors.
6187 (remote_async_open_1): Ditto.
6188 (remote_cisco_open): Ditto.
6189
ae44c0c4
AC
61902002-05-19 Andrew Cagney <ac131313@redhat.com>
6191
6192 * remote.c (remote_start_remote): Replace PTR with void pointer.
6193 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6194 static.
6195
8efe637d
AC
61962002-05-18 Andrew Cagney <ac131313@redhat.com>
6197
6198 * gdb_indent.sh: Allow the script to be run in the sim directory.
6199
2f1b5984
MK
62002002-05-18 Mark Kettenis <kettenis@gnu.org>
6201
f0f625e2
MK
6202 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6203 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6204
2f1b5984
MK
6205 * corelow.c (core_open): Only call set_gdbarch_from_file if
6206 exec_bfd is NULL.
6207
fc974602
AV
62082002-05-17 Andrey Volkov <avolkov@transas.com>
6209
6210 * h8300-tdep.c: Add support of EXR register
6211 * config/h8300/tm-h8300.h: Ditto.
6212
906709f4
AV
62132002-05-17 Andrey Volkov <avolkov@transas.com>
6214
6215 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6216
6e591d68
AV
62172002-05-17 Andrey Volkov <avolkov@transas.com>
6218
6219 * h8300-tdep.c: Change literal regnums to REGNO.
6220
84f0252a
JB
62212002-05-17 Jim Blandy <jimb@redhat.com>
6222
e0e9281e
JB
6223 * NEWS: Note addition of macro support.
6224
84f0252a
JB
6225 Expand preprocessor macros in C expressions.
6226 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6227 (scan_macro_expansion, scanning_macro_expansion,
6228 finished_macro_expansion): New function declarations.
6229 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6230 variable declarations.
6231 * parser-defs.h (expression_context_pc): New declaration.
6232 * parse.c (expression_context_pc): New variable.
6233 (parse_exp_1): Set expression_context_pc, as well as
6234 expression_context_block.
6235 * c-exp.y (yylex): If we're not already reading the result of a
6236 macro expansion, try to macro-expand the next token. When we're
6237 done scanning a macro expansion, switch back to the mainline text.
6238 Commas and `if's in a macro's expansion don't terminate the input.
6239 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6240 (macro_original_text, macro_expanded_text,
6241 expression_macro_lookup_func, expression_macro_lookup_baton): New
6242 variables.
6243 (scan_macro_expansion, scanning_macro_expansion,
6244 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6245 c_preprocess_and_parse): New functions.
6246 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6247 c_preprocess_and_parse, instead of c_parse.
6248 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6249 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6250
1c509ca8
JR
6251Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6252
6253 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6254 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6255 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6256
2250ee0c
CV
62572002-05-17 Corinna Vinschen <vinschen@redhat.com>
6258
6259 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6260
ab3b8126
JT
62612002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6262
6263 * Makefile.in (sh_tdep_h): Define and use.
6264 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6265 register enum): Move to...
6266 * * sh-tdep.h: ...here.
6267 * sh-tdep.c: Include sh-tdep.h.
6268 * sh3-rom.c: Likewise.
6269 * shnbsd-tdep.c: Likewise.
6270
ed9d4749
MS
62712002-05-16 Michael Snyder <msnyder@redhat.com>
6272
6273 * arm-tdep.c: Spelling fix in comment.
6274
2e276125
JB
62752002-05-16 Jim Blandy <jimb@redhat.com>
6276
6821892e
JB
6277 Add commands for manually expanding macros and showing their
6278 definitions.
6279 * macrocmd.c, macroscope.c, macroscope.h: New files.
6280 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6281 (macroscope_h): New variable.
6282 (HFILES_NO_SRCDIR): Add macroscope.h.
6283 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6284 (macroscope.o, macrocmd.o): New rules.
6285
2e276125
JB
6286 Teach the Dwarf 2 reader to read macro information.
6287 * dwarf2read.c: #include "macrotab.h".
6288 (dwarf_macinfo_buffer): New variable.
6289 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6290 dwarf_macinfo_size.
6291 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6292 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6293 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6294 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6295 dwarf2_macro_spaces_in_definition): New complaints.
6296 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6297 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6298 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6299 the partial symbol table.
6300 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6301 from what's recorded in the partial symbol table.
6302 (read_file_scope): If the compilation unit has a
6303 `DW_AT_macro_info' attribute, read its macro information.
6304 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6305
2f53fe6c
DJ
63062002-05-16 Daniel Jacobowitz <drow@mvista.com>
6307
6308 Fix PR gdb/546
6309 * ser-tcp.c: Don't include <netinet/udp.h>.
6310
2be99286
SC
63112002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6312
6313 * MAINTAINERS: Update my email address.
6314
c9af212b 63152002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6316
6317 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6318 include file of the same name.
6319
bf5f1a52
CV
63202002-05-16 Corinna Vinschen <vinschen@redhat.com>
6321
6322 * configure.tgt: Mark v850 as multi-arched.
6323 * config/v850/tm-v850.h: Remove file.
6324 * config/v850/v850.mt: Eliminate TM_FILE.
6325
435e042a
CV
63262002-05-16 Corinna Vinschen <vinschen@redhat.com>
6327
6328 * v850-tdep.c: Full multi-arch.
6329 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6330 Define GDB_MULTI_ARCH to 2.
6331
9819c6c8
PM
63322002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6333
6334 * p-exp.y (current_type): New static variable.
6335 Carries the type of the expression at the position that is parsed.
6336 (push_current_type, pop_current_type): Two new functions. Used
6337 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6338 (search_field): New static variable. Set to one after parsing a point
6339 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6340 (FIELDNAME): New token. After a point only a token belonging to
6341 current_type type definition is allowed.
6342 (all over token rules): reset and change current_type according
6343 to rules.
6344 (exp '[' rule): insert implicit array index field if
6345 exp is a pascal string type.
6346
3a06899a
CV
63472002-05-16 Corinna Vinschen <vinschen@redhat.com>
6348
6349 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6350 frame info. Use frame_info's saved_regs instead of matching member
6351 in extra_frame_info throughout.
6352 (v850_frame_init_saved_regs): New function.
6353 (v850_init_extra_frame_info): Move most functionality into
6354 v850_frame_init_saved_regs().
6355 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6356 (v850_frame_find_saved_regs): Remove declaration.
6357 (FRAME_FIND_SAVED_REGS): Remove definition.
6358 (v850_frame_init_saved_regs): Add declaration.
6359 (FRAME_INIT_SAVED_REGS): Add definition.
6360
6ed14b0e
CV
63612002-05-16 Corinna Vinschen <vinschen@redhat.com>
6362
6363 * v850-tdep.c: Begin multi-arch'ing v850.
6364 (v850_target_architecture_hook): Remove function.
6365 (v850_gdbarch_init): New function. Add code previously in
6366 v850_target_architecture_hook().
6367 (_initialize_v850_tdep): Don't set target_architecture_hook.
6368 Call register_gdbarch_init() instead.
6369
42725910
DJ
63702002-05-16 Daniel Jacobowitz <drow@mvista.com>
6371
6372 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6373 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6374 (fixup_class_method_type): Likewise.
6375
99d9066e
JB
63762002-05-15 Jim Blandy <jimb@redhat.com>
6377
6378 Add macro structures to GDB's symbol tables. Nobody puts anything
6379 in them yet.
6380 * symtab.h (struct symtab): New member: `macro_table'.
6381 * buildsym.h (pending_macros): New global variable.
6382 * buildsym.c: #include "macrotab.h".
6383 (buildsym_init): Initialize `pending_macros'.
6384 (end_symtab): If we found macro information while reading a CU's
6385 debugging info, do build a symtab structure for it. Make the
6386 symtab point to the macro information, and clear the
6387 `pending_macros' pointer which held it while we were reading the
6388 debug info.
6389 (really_free_pendings): Free any pending macro table.
6390 * objfiles.h (struct objfile): New member: `macro_cache'.
6391 * objfiles.c (allocate_objfile): Set allocate and free functions
6392 for the macro cache's objstack.
6393 (free_objfile): Empty the macro cache's obstack.
6394 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6395 set new allocate and free functions for it.
6396 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6397 free functions for the macro cache's objstack. (Why is this
6398 function building its own objfile?)
6399 * symmisc.c (print_objfile_statistics): Print statistics on the
6400 macro bcache.
6401 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6402
c899585b
RE
64032002-05-15 Richard Earnshaw <rearnsha@arm.com>
6404
6405 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6406 (REGISTER_U_ADDR): Delete definition.
6407 (arm_register_u_addr): Delete declaration.
6408
a6cdd8c5
RE
64092002-05-15 Richard Earnshaw <rearnsha@arm.com>
6410
6411 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6412 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6413
c97dcfc7
AC
64142002-05-14 Andrew Cagney <ac131313@redhat.com>
6415
6416 * regcache.c (register_valid): Revise comments refering to "Not
6417 available" and "unavailable".
6418 * frame.c (frame_register_read): Ditto.
6419 * findvar.c (value_of_register): Ditto.
6420
93021b7d
AC
64212002-05-15 Andrew Cagney <cagney@redhat.com>
6422
6423 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6424 (remote-sim.o): Update dependencies.
6425 (d10v-tdep.o): Specify dependencies.
6426 (sim_d10v_h): Define.
6427
a86bc61c
JB
64282002-05-14 Jim Blandy <jimb@redhat.com>
6429
6430 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6431 * macrotab.c (macro_lookup_inclusion, find_definition,
6432 new_macro_table): Same.
6433
6434 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6435 not `! strcmp ()'. This is a dubious improvement.
6436 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6437
6438 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6439 although it's not necessary, to avoid a warning.
6440
2fdde8f8
DJ
64412002-05-14 Daniel Jacobowitz <drow@mvista.com>
6442
6443 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6444 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6445 TYPE_INSTANCE_FLAGS.
6446 (struct main_type): New.
6447 (struct type): Move most members to struct main_type. Change
6448 cv_type and as_type to new type_chain member. Add instance_flags.
6449 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6450 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6451 (finish_cv_type): Remove prototype.
6452 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6453 Set TYPE_CHAIN.
6454 (alloc_type_instance): New function.
6455 (smash_type): New function.
6456 (make_pointer_type, make_reference_type, make_function_type)
6457 (smash_to_member_type, smash_to_method_type): Call smash_type.
6458 (make_qualified_type): New function.
6459 (make_type_with_address_space): Call make_qualified_type.
6460 (make_cv_type): Likewise.
6461 (finish_cv_type): Remove unnecessary function.
6462 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6463 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6464 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6465 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6466 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6467 * hpread.c (hpread_read_struct_type): Likewise.
6468 * stabsread.c (read_struct_type): Likewise.
6469
843fedf4
EZ
64702002-05-14 Elena Zannoni <ezannoni@redhat.com>
6471
6472 * configure.tgt: Add a catch all sh* target, for cases like
6473 sh[2,3,4]-elf and sh-hms.
6474
05a6c72c
KS
64752002-05-14 Keith Seitz <keiths@redhat.com>
6476
6477 * event-loop.c (create_file_handler): Don't do anything but
6478 update data when we are given a fd which we are already
6479 monitoring.
6480
5d085aaf
ML
64812002-05-14 Michal Ludvig <mludvig@suse.cz>
6482
6483 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6484 (update_context): Use __func__ in warnings.
6485
9db8d71f
DJ
64862002-05-14 Daniel Jacobowitz <drow@mvista.com>
6487
6488 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6489 and tcp_close to net_open and net_close.
6490 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6491 using UDP if requested. Don't try to disable Nagle on UDP
6492 sockets.
6493 * remote.c (remote_serial_open): New function. Warn about UDP.
6494 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6495
5dbc6baa
EZ
64962002-05-13 Elena Zannoni <ezannoni@redhat.com>
6497
6498 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6499
cc3023f7
EZ
65002002-05-13 Elena Zannoni <ezannoni@redhat.com>
6501
6502 * configure.tgt: Remove sh-hms target.
6503 * MAINTAINERS: Don't list sh-hms as a separate target.
6504
ec2bcbe7
JB
65052002-05-13 Jim Blandy <jimb@redhat.com>
6506
6507 Add first preprocessor macro-expansion files.
6508 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6509 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6510 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6511 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6512 (COMMON_OBS): Add macrotab.o, macroexp.o.
6513 (macroexp.o, macrotab.o): New rules.
6514
6d531722
AC
65152002-05-13 Andrew Cagney <ac131313@redhat.com>
6516
6517 * config/m88k/tm-m88k.h: Update copyright.
6518 (m88k_target_write_pc): Declare
6519 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6520 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6521 (SHIFT_INST_REGS): Update definition.
6522 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6523 using old definition of TARGET_WRITE_PC.
6524 * regcache.c (generic_target_write_pc): Delete code handling
6525 NNPC_REGNUM.
6526 * gdbarch.sh (NNPC_REGNUM): Delete.
6527 * gdbarch.h, gdbarch.c: Regenerate.
6528
3e3f2739
RE
65292002-05-13 Richard Earnshaw <rearnsha@arm.com>
6530
6531 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6532 builtin reg number.
6533
0004e5a2
DJ
65342002-05-13 Daniel Jacobowitz <drow@mvista.com>
6535
6536 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6537 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6538 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6539 access macros.
6540 * c-typeprint.c (cp_type_print_method_args): Likewise.
6541 (c_type_print_args): Likewise.
6542 * d10v-tdep.c (d10v_push_arguments): Likewise.
6543 (d10v_extract_return_value): Likewise.
6544 * expprint.c (print_subexp): Likewise.
6545 * gdbtypes.c (lookup_primitive_typename): Likewise.
6546 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6547 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6548 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6549 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6550 (TYPE_VECTOR): Likewise.
6551 * hpread.c (hpread_read_struct_type)
6552 (fix_static_member_physnames, fixup_class_method_type)
6553 (hpread_type_lookup): Likewise.
6554 * mdebugread.c (parse_symbol, parse_type): Likewise.
6555 * p-lang.c (is_pascal_string_type): Likewise.
6556 * valops.c (hand_function_call): Likewise.
6557 * x86-64-tdep.c (classify_argument): Likewise.
6558
6559 * hpread.c (hpread_read_function_type)
6560 (hpread_read_doc_function_type): Call replace_type.
6561 * dstread.c (create_new_type): Delete.
6562 (decode_dst_structure, process_dst_function): Call alloc_type.
6563 Use type access macros.
6564
dff95cc7
MK
65652002-05-12 Mark Kettenis <kettenis@gnu.org>
6566
6567 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6568 the're not supported by the current architecture.
6569 (i387_fill_fxsave): Likewise.
6570
bbcd32ad
FF
65712002-05-12 Fred Fish <fnf@redhat.com>
6572
6573 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6574 sect_index_xxx members to index the first slot in section_offsets
6575 if all of the section_offsets are zero.
6576
89cf4787
MK
65772002-05-12 Mark Kettenis <kettenis@gnu.org>
6578
6579 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6580 checked in with last change.
6581
1f77ffc5
MK
65822002-05-12 Mark Kettenis <kettenis@gnu.org>
6583
6584 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6585 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6586 config.sub.
6587
89b8b4a9
DJ
65882002-05-12 Daniel Jacobowitz <drow@mvista.com>
6589
6590 * Makefile.in: Update dependencies.
6591
14a5e767
AC
65922002-05-11 Andrew Cagney <ac131313@redhat.com>
6593
6594 * language.c (local_hex_string_custom): Simplify. Do not depend
6595 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6596
6597 * memattr.c (mem_info_command): Replace calls to
6598 longest_local_hex_string and longest_local_hex_string_custom.
6599 * buildsym.c (make_blockvector): Ditto.
6600 * solib.c (info_sharedlibrary_command): Ditto.
6601 * tracepoint.c (tracepoints_info): Ditto.
6602 * symtab.c (print_msymbol_info): Ditto.
6603
6604 * language.c (local_hex_string): Delete.
6605 (local_hex_string_custom): Delete.
6606 (longest_local_hex_string): Rename to local_hex_string.
6607 (longest_local_hex_string_custom): Rename to
6608 local_hex_string_custom.
6609 * language.h (local_hex_string): Change parameter type to LONGEST.
6610 (local_hex_string_custom): Ditto.
6611 (longest_local_hex_string): Delete declaration.
6612 (longest_local_hex_string_custom): Ditto.
6613
6614 * solib.c: Update copyright.
6615 * memattr.c: Update copyright.
6616
13d01224
AC
66172002-05-11 Andrew Cagney <ac131313@redhat.com>
6618
6619 * arch-utils.h (legacy_register_to_value): Declare.
6620 (legacy_value_to_register): Declare.
6621 (legacy_convert_register_p): Declare.
6622 * arch-utils.c (legacy_register_to_value): New function.
6623 (legacy_value_to_register): New function.
6624 (legacy_convert_register_p): New function.
6625
6626 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6627 (VALUE_TO_REGISTER): Define.
6628 (CONVERT_REGISTER_P): Define.
6629 * gdbarch.h, gdbarch.c: Regenerate.
6630
6631 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6632 VALUE_TO_REGISTER.
6633 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6634 CONVERT_REGISTER_P.
6635
4a1970e4
DJ
66362005-05-11 Daniel Jacobowitz <drow@mvista.com>
6637 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6638
6639 * Makefile.in: Update dependencies for valops.c.
6640 * valops.c: Include "gdb_assert.h".
6641 (typecmp): Skip THIS parameter to methods.
6642 (find_method_list): Remove static_memfuncp argument,
6643 update callers. Check for stub methods.
6644 (find_value_oload_method_list): Don't set *static_memfuncp.
6645 (find_overload_match): Don't check for stub methods. Assert
6646 that methods are not stubbed. Handle static methods.
6647 (value_find_oload_method_list): Remove static_memfuncp argument.
6648 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6649 to the argument list for static stub methods.
6650 * value.h (value_find_oload_method_list): Update prototype.
6651
b2e75d78
AC
66522002-05-11 Andrew Cagney <ac131313@redhat.com>
6653
6654 * arch-utils.h (generic_register_size): Declare.
6655 (generic_register_raw_size, generic_register_virtual_size): Delete
6656 declarations.
6657 * arch-utils.c (generic_register_raw_size): Delete.
6658 (generic_register_size): New function.
6659 (generic_register_virtual_size): Delete.
6660
6661 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6662 default generic_register_size.
6663 * gdbarch.h, gdbarch.c: Re-generate.
6664
6665 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6666 register_virtual_size.
6667 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6668 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6669
451fbdda
AC
66702002-05-11 Andrew Cagney <ac131313@redhat.com>
6671
6672 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6673 * gdbarch.h, gdbarch.c: Regenerate.
6674 * gnu-v3-abi.c: Update copyright.
6675 (vtable_address_point_offset): Update.
6676 (gnuv3_rtti_type): Update.
6677 (gnuv3_baseclass_offset): Update.
6678 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6679 (init_fetch_link_map_offsets): Update.
6680 * remote.c (get_remote_state): Update.
6681
6d2f5cea
DJ
66822002-05-11 Daniel Jacobowitz <drow@mvista.com>
6683
6684 * TODO: Remove value_headof/value_from_vtable_info comment.
6685 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6686 * values.c (value_headof, value_from_vtable_info): Delete.
6687 * value.h (value_from_vtable_info): Delete prototype.
6688
d2324da4
AC
66892002-05-11 Andrew Cagney <ac131313@redhat.com>
6690
6691 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6692 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6693 $(gdb_regex_h).
6694 (gdb_assert_h): Define.
6695 (gdb_wait_h): Define.
6696 (gdb_regex_h): Define.
6697
5c717440
DJ
66982002-05-11 Daniel Jacobowitz <drow@mvista.com>
6699
6700 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6701 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6702
6c7861b3
JT
67032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6704
6705 * nbsd-tdep.c: Fix comment.
6706
ea5bc2a6
JT
67072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6708
6709 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6710 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6711 (nbsd-tdep.o): New dependency list.
6712 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6713 nbsd-tdep.h.
6714 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6715 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6716 * nbsd-tdep.c: New file.
6717 * nbsd-tdep.h: New file.
6718 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6719 nbsd-tdep.h.
6720 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6721 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6722 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6723 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6724
b28da865
JT
67252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6728 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6729 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6730 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6731 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6732 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6733
4b8ff1fa
JT
67342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6735
6736 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6737 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6738 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6739 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6740 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6741 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6742 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6743
dfe6eb1f
JT
67442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6745
6746 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6747 fetch_elfcore_registers to...
6748 * i386nbsd-tdep.c: ...here.
6749 (i386nbsd_use_struct_convention): Rename to...
6750 (i386nbsd_aout_use_struct_convention): ...this.
6751 (i386nbsd_supply_reg): New function.
6752 (i386nbsd_fill_reg): New function.
6753 (fetch_core_registers): Use i386nbsd_supply_reg.
6754 (fetch_elfcore_registers): Likewise.
6755 (_initialize_i386nbsd_tdep): New function.
6756 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6757 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6758 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6759 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6760 (i386nbsd_aout_use_struct_convention): ...this.
6761
20cb8cda
JT
67622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6763
6764 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6765 (store_inferior_registers): Use shnbsd_fill_reg.
6766 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6767 sh_nbsd_supply_register): Collapse into...
6768 (shnbsd_supply_reg): ...this.
6769 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6770 (shnbsd_fill_reg): ...this.
6771 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6772 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6773 (fetch_core_registers): Use shnbsd_supply_reg.
6774 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6775 (sh_nbsd_core_fns): Rename to...
6776 (shnbsd_core_fns): ...this.
6777 (sh_nbsd_elfcore_fns): Rename to...
6778 (shnbsd_elfcore_fns): ...this.
6779 (sh_nbsd_init_abi): Rename to...
6780 (shnbsd_init_abi): ...this.
6781 (_initialize_sh_nbsd_tdep): Rename to...
6782 (_initialize_shnbsd_tdep): ...this.
6783 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6784 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6785 sh_nbsd_fill_register): Remove prototypes.
6786 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6787
e750d25e
JT
67882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6789
6790 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6791 (i387-nat.o): Delete dependency list.
6792 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6793 (x86-64-linux-nat.o): Likewise.
6794 * i387-nat.c: Delete file, moving contents to...
6795 * i387-tdep.c: ...here.
6796 * i387-nat.h: Rename...
6797 * i387-tdep.h: ...to this.
6798 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6799 * i386-linux-nat.c: Likewise.
6800 * i386bsd-nat.c: Likewise.
6801 * i386gnu-nat.c: Likewise.
6802 * i386nbsd-nat.c: Likewise.
6803 * i386v4-nat.c: Likewise.
6804 * x86-64-linux-nat.c: Likewise.
6805 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6806 * config/i386/go32.mh (NATDEPFILES): Likewise.
6807 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6808 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6809 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6810 * config/i386/linux.mh (NATDEPFILES): Likewise.
6811 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6812 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6813 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6814 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6815
1aee598a
JT
68162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6817
6818 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6819 (alphanbsd-nat.o): Remove dependency list.
6820 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6821 * alphanbsd-nat.c: Delete. Contents moved to...
6822 * alphanbsd-tdep.c: ...here.
6823 (_initialize_alphanbsd_tdep): Register core functions.
6824 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6825
12bcb0fe
JT
68262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6827
6828 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6829 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6830 (alphanbsd-nat.o): Likewise.
6831 (alphabsd-tdep.o): New dependency list.
6832 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6833 (fill_gregset): Use alphabsd_fill_reg.
6834 (supply_fpregset): Use alphabsd_supply_fpreg.
6835 (fill_fpregset): Use alphabsd_fill_fpreg.
6836 (fetch_inferior_registers): Use struct reg and struct fpreg
6837 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6838 and alphabsd_supply_fpreg.
6839 (store_inferior_registers): Use struct reg and struct fpreg
6840 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6841 and alphabsd_fill_fpreg.
6842 * alphabsd-tdep.c: New file.
6843 * alphabsd-tdep.h: New file.
6844 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6845 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6846 alphabsd_supply_fpreg.
6847 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6848 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6849
361d1df0
EC
68502002-05-11 Eric Christopher <echristo@redhat.com>
6851
6852 * mips-tdep.c (mips_double_register_type): Fix thinko.
6853 (mips_single_register_type): Ditto.
6854 * MAINTAINERS: Add self.
6855
92dd7cee
MK
68562002-05-11 Mark Kettenis <kettenis@gnu.org>
6857
6858 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6859 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6860 right thing on architectures with different endianness and/or
6861 integer sizes.
6862
e27da16d
JT
68632002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6864
6865 From Christian Limpach <chris@Pin.LU>
6866 * configure.in: Change sed expression which comments out
6867 NATDEPFILES to also comment out continuation lines.
6868 * configure: Regenerate.
6869
ddde02bd
EZ
68702002-05-10 Elena Zannoni <ezannoni@redhat.com>
6871
6872 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6873 big patch.
6874
1c922164
EZ
68752002-05-10 Elena Zannoni <ezannoni@redhat.com>
6876
6877 * sh-tdep.c: Include correct file.
6878
283150cd
EZ
68792002-05-10 Elena Zannoni <ezannoni@redhat.com>
6880
6881 New support for sh64-elf (sh5) target.
6882
6883 * configure.tgt: For sh64-elf target, default to sh-elf.
6884
6885 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6886 (struct gdbarch_tdep): Add new fields for new registers and ABI
6887 info.
361d1df0 6888
283150cd
EZ
6889 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6890 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6891 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6892 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6893 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6894 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6895 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6896 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6897 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6898 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6899 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6900 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6901 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6902 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6903 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6904 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6905 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6906 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6907 sign_extend, sh64_nofp_frame_init_saved_regs,
6908 sh64_init_extra_frame_info, sh64_get_saved_register,
6909 sh64_extract_struct_value_address, sh64_pop_frame,
6910 sh64_push_arguments, sh64_extract_return_value,
6911 sh64_store_return_value, sh64_show_media_regs,
6912 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6913 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6914 sh_sh64_register_virtual_type,
6915 sh_sh64_register_convert_to_virtual,
6916 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6917 sh64_register_read, sh64_pseudo_register_write,
6918 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6919 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6920 sh64_do_pseudo_register, sh_compact_do_registers_info,
6921 sh64_do_registers_info, sh_gdbarch_init): New functions.
6922
3117ed25
EZ
69232002-05-10 Elena Zannoni <ezannoni@redhat.com>
6924
6925 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6926
2654e6d4
DJ
69272002-05-10 Daniel Jacobowitz <drow@mvista.com>
6928
6929 * linespec.c (decode_line_1): Check for a double quote after
6930 a filename correctly.
6931
9ab3e532
JB
69322002-05-10 Jim Blandy <jimb@redhat.com>
6933
6934 Properly track the size of the current objfile's .debug_line section.
6935 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6936 (DWARF_LINE_SIZE): New macro.
6937 (dwarf2_build_psymtabs_hard): Record the line section's size in
6938 the partial symbol table.
6939 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6940 symbol table.
6941
126fa72d
PS
69422002-05-10 Petr Sorfa <petrs@caldera.com>
6943
6944 * ia64-tdep.c: Handle breakpoints on L instruction type
6945 in MLX instruction bundle by moving the breakpoint to
6946 the third slot (X instruction type) as L holds only data.
6947
1f077a3e
KB
69482002-05-10 Kevin Buettner <kevinb@redhat.com>
6949
6950 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6951 (process_one_symbol): Complain about discarding local symbols
6952 due to a misplaced N_LBRAC entry.
6953
8120c9d5 69542002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6955
6956 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6957 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6958 decrease the depth we are at, in the case of templates.
361d1df0 6959
67b2c998
DJ
69602002-05-09 Daniel Jacobowitz <drow@mvista.com>
6961
6962 * mips-tdep.c (mips_float_register_type): New function.
6963 (mips_double_register_type): New function.
6964 (mips_print_register): Use them.
6965 (do_fp_register_row): Likewise.
6966
fd326606
DJ
69672002-05-09 Daniel Jacobowitz <drow@mvista.com>
6968
6609d9af 6969 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6970 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6971 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6972
bef35864
MS
69732002-05-09 Michael Snyder <msnyder@redhat.com>
6974
6975 * remote-rdp.c (remote_rdp_can_run): Remove.
6976
c55a3f73
TT
69772002-05-09 Tom Tromey <tromey@redhat.com>
6978
6979 * jv-valprint.c (java_val_print): Handle `char' as a special case
6980 of TYPE_CODE_INT.
6981
b8d5e71d
MS
69822002-05-09 Michael Snyder <msnyder@redhat.com>
6983
6984 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6985 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6986 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6987 str r(0123),[sp,#nn].
361d1df0 6988 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6989 order-independent by placing it in a loop.
6990
e2cd42dd
MS
69912002-05-06 Michael Snyder <msnyder@redhat.com>
6992
6993 * stabsread.c (read_type): Add recognition for new attribute:
6994 "@V;" means that an array type is actually a vector.
6995 This is analogous to the vector flag that's been added to dwarf2.
6996
3ce1502b
MK
69972002-05-09 Mark Kettenis <kettenis@gnu.org>
6998
6999 * i386-tdep.h (i386_abi): New enum.
7000 (struct gdbarch_tdep): Replace os_ident member with abi.
7001 (i386_gdbarch_register_os_abi): New prototype.
7002 * i386-tdep.c (i386_abi_names): New array.
7003 (process_note_abi_tag_sections): Removed.
7004 (process_note_sections): New function.
7005 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7006 (struct i386_abi_handler): New struct.
7007 (i386_abi_handler_list): New variable.
7008 (i386_gdbarch_register_os_abi): New function.
7009 (i386_gdbarch_init): Adapt for the changes given above.
7010
084c156a
DJ
70112002-05-08 Daniel Jacobowitz <drow@mvista.com>
7012
7013 * gregset.h: Say "GNU/Linux".
7014
6599f021
EZ
70152002-05-08 Elena Zannoni <ezannoni@redhat.com>
7016
7017 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7018 (build_gdbtypes): Build builtin_type_v2_float.
7019 (_initialize_gdbtypes): Register new builtin type.
7020
40af4b0c
AC
70212002-05-08 Andrew Cagney <ac131313@redhat.com>
7022
7023 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7024 (clear_gdbarch_swap): New function.
7025 (initialize_non_multiarch): Call.
7026 (gdbarch_update_p): Before calling init(), swap out and clear the
7027 existing architecture.
7028 * gdbarch.c: Regenerate.
7029
4fe84f46
JT
70302002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7031
7032 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7033 alphanbsd-tdep.c.
7034
4015edd1
JT
70352002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7036
7037 * sh-nbsd-nat.c: Rename to...
7038 * shnbsd-nat.c: ...this.
7039 * sh-nbsd-tdep.c: Rename to...
7040 * shnbsd-tdep.c: ...this.
7041 * sh-nbsd-tdep.h: Rename to...
7042 * shnbsd-tdep.h: ...this.
7043 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7044 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7045
0e2bd219
RE
70462002-05-08 Richard Earnshaw <rearnsha@arm.com>
7047
7048 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7049 concatenation for command help messages.
7050
13a38d45
JT
70512002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7052
7053 * NEWS: Note new sh*-*-netbsdelf* configuration.
7054 * configure.host: Set gdb_host_cpu to sh for all sh*.
7055 (sh*-*-netbsdelf*): New host.
7056 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7057 (sh*-*-netbsdelf*): New target.
7058 * sh-nbsd-nat.c: New file.
7059 * sh-nbsd-tdep.c: New file.
7060 * sh-nbsd-tdep.h: New file.
7061 * config/sh/nbsd.mh: New file.
7062 * config/sh/nbsd.mt: New file.
7063 * config/sh/nm-nbsd.h: New file.
7064 * config/sh/tm-nbsd.h: New file.
7065
d658f924
JT
70662002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7067
7068 * sh-tdep.c (sh_osabi_names): Declare.
7069 (process_note_abi_tag_sections): New function.
7070 (get_elfosabi): Ditto.
7071 (sh_gdbarch_register_os_abi): Ditto.
7072 (sh_dump_tdep): Ditto.
7073 _initialize_sh_tdep): Use gdbarch_register to register
7074 sh_gdbarch_init and sh_dump_tdep.
7075 * config/sh/tm-sh.h (sh_osabi): Declare.
7076 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7077
848cfffb
AC
70782002-05-07 Andrew Cagney <ac131313@redhat.com>
7079
7080 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7081 (thumb_scan_prologue): Ditto.
7082 (arm_find_callers_reg): Ditto.
7083 (arm_frame_chain): Ditto.
7084 (arm_init_extra_frame_info): Ditto.
7085 (arm_frame_saved_pc): Ditto.
7086 (arm_pop_frame): Ditto.
7087 (arm_push_return_address): New function.
7088 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7089 call_dummy_location, call_dummy_breakpoint_offset_p,
7090 call_dummy_breakpoint_offset, call_dummy_p,
7091 call_dummy_stack_adjust_p, call_dummy_words,
7092 sizeof_call_dummy_words, call_dummy_start_offset,
7093 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7094 call_dummy_address, push_return_address and push_dummy_frame for
7095 generic dummy frames.
7096
e7d717c0
JT
70972002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7100 size computation for alloca.
7101 (sh_fp_frame_init_saved_regs): Likewise.
7102
7bbcf283
RE
71032002-05-07 Richard Earnshaw <rearnsha@arm.com>
7104
7105 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7106 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7107 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7108 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7109 * remote-rdp.c (remote_rdp_fetch_register): Use
7110 ARM_MAX_REGISTER_RAW_SIZE.
7111 (remote_rdp_store_register): Likewise.
7112
4657573b
ML
71132002-05-07 Michal Ludvig <mludvig@suse.cz>
7114
361d1df0 7115 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7116 added default labels to switch {} statements.
7117 * x86-64-tdep.c: Ditto.
7118 * x86-64-linux-nat.c: Ditto.
7119
010f3b2f
JT
71202002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7121
7122 * solib.h: Protect against multiple inclusion.
7123
debd256d
JB
71242002-05-06 Jim Blandy <jimb@redhat.com>
7125
9ab3e532
JB
7126 Add first preprocessor macro-expansion files.
7127 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7128 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7129 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7130 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7131 (COMMON_OBS): Add macrotab.o, macroexp.o.
7132 (macroexp.o, macrotab.o): New rules.
7133
debd256d
JB
7134 Separate the job of reading the line number info statement program
7135 header (...expialidocious) out into its own function.
7136 * dwarf2read.c (struct line_head, struct filenames, struct
7137 directories): Replace with...
7138 (struct line_header): New structure, containing the full
7139 contents of the statement program header, including the
7140 include directory and file name tables.
7141 (read_file_scope): If we have line number info, instead of just
7142 calling dwarf_decode_lines to do all the work, call
7143 dwarf_decode_line_header first to get a `struct line_header'
7144 containing the data in the statement program header, and then
7145 pass that to dwarf_decode_lines, which will pick up where that
7146 left off. Be sure to clean up the `struct line_header' object.
7147 (dwarf_decode_line_header, free_line_header, add_include_dir,
7148 add_file_name): New functions.
7149 (dwarf_decode_lines): Move all the code to read the statement
7150 program header into dwarf_decode_line_header. Take the line
7151 header it built as the first argument, instead of the offset to
7152 the compilation unit's line number info. Use the new `struct
7153 line_header' type instead of the old structures. No need to do
7154 cleanups here now, since we don't allocate anything.
7155 (dwarf2_statement_list_fits_in_line_number_section,
7156 dwarf2_line_header_too_long): New complaints.
7157
ac3aafc7
EZ
71582002-05-06 Elena Zannoni <ezannoni@redhat.com>
7159
7160 * gdbtypes.c (init_vector_type): New function.
7161 (build_builtin_type_vec128): Simplify the representation of SIMD
7162 registers.
7163 (build_gdbtypes): Initialize new builtin vector types.
7164 (_initialize_gdbtypes): Register new vector types with gdbarch.
7165 (builtin_type_v4_float, builtin_type_v4_int32,
7166 builtin_type_v8_int16, builtin_type_v16_int8,
7167 builtin_type_v2_int32, builtin_type_v4_int16,
7168 builtin_type_v8_int8): New (renamed) SIMD types.
7169
13e49980
MK
71702002-05-06 Mark Kettenis <kettenis@gnu.org>
7171
7172 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7173 (i387_fill_fxsave): Likewise.
7174
997b20b8
AO
71752002-05-05 Alexandre Oliva <aoliva@redhat.com>
7176
7177 * alpha-tdep.c (alpha_extract_return_value): Don't use
7178 non-constant array size in prototype.
7179
535c96ce
AC
71802002-05-04 Andrew Cagney <ac131313@redhat.com>
7181
7182 From Brian Taylor <briant at model dot com>:
7183 * ui-out.c (ui_out_field_core_addr): Use the function
7184 longest_local_hex_string_custom'to format addresses > 32 bits
7185 wide.
7186
7187 * ui-out.c (ui_out_field_core_addr): Update comment.
7188
bedfa57b
AC
71892002-05-04 Andrew Cagney <ac131313@redhat.com>
7190
7191 * stack.c (select_and_print_frame): Make static. Delete the
7192 parameter `level'.
7193 (func_command): Update call.
7194 (select_frame_command): Delete code computing the frame level.
7195 * frame.h (select_and_print_frame): Delete declaration.
7196
f621c63e
AC
71972002-05-04 Andrew Cagney <ac131313@redhat.com>
7198
7199 * sparc-tdep.c (sparc_get_saved_register): Comment why
7200 get_prev_frame call is safe.
7201
0f7d239c
AC
72022002-05-04 Andrew Cagney <ac131313@redhat.com>
7203
7204 * frame.h (select_frame): Delete level parameter.
7205 * stack.c (select_frame): Update. Use frame_relative_level to
7206 obtain the frame's level.
7207 (select_and_print_frame): Update call.
7208 (select_frame_command): Ditto.
7209 (up_silently_base): Ditto.
7210 (down_silently_base): Ditto.
7211 * ocd.c (ocd_start_remote): Ditto.
7212 * remote-rdp.c (remote_rdp_open): Ditto.
7213 * remote-mips.c (mips_initialize): Ditto.
7214 (common_open): Ditto.
7215 * remote-e7000.c (e7000_start_remote): Ditto.
7216 * m3-nat.c (select_thread): Ditto.
7217 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7218 (child_get_current_exception_event): Ditto.
7219 * varobj.c (varobj_create): Ditto.
7220 (varobj_update): Ditto.
7221 (c_value_of_root): Ditto.
7222 * tracepoint.c (finish_tfind_command): Ditto.
7223 * corelow.c (core_open): Ditto.
7224 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7225 * thread.c (info_threads_command): Ditto.
7226 (switch_to_thread): Ditto.
7227 * infrun.c (normal_stop): Ditto.
7228 (restore_selected_frame): Ditto.
7229 (restore_inferior_status): Ditto.
7230 * breakpoint.c (insert_breakpoints): Ditto.
7231 (watchpoint_check): Ditto.
7232 (bpstat_stop_status): Ditto.
7233 (do_enable_breakpoint): Ditto.
7234 * blockframe.c (flush_cached_frames): Ditto.
7235 (reinit_frame_cache): Ditto.
7236
71d6c7b1
AC
72372002-05-04 Andrew Cagney <ac131313@redhat.com>
7238
7239 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7240 maintainer.
7241
cda6c68a
JB
72422002-05-04 Jim Blandy <jimb@redhat.com>
7243
7244 * gdbtypes.c (replace_type): Doc fix.
7245
5c1c87f0
AC
72462002-05-04 Andrew Cagney <ac131313@redhat.com>
7247
7248 * valprint.c (strcat_longest): Delete commented out function.
7249 Update copyright.
7250
cd9bfe15
AC
72512002-05-04 Andrew Cagney <ac131313@redhat.com>
7252
7253 * MAINTAINERS: Mark a29k as deleted.
7254 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7255 Move new configurations to the top.
7256 * configure.tgt: Remove a29k.
7257 * config/a29k/tm-vx29k.h: Delete.
7258 * config/a29k/vx29k.mt: Delete.
7259 * config/a29k/tm-a29k.h: Delete.
7260 * config/a29k/a29k-udi.mt: Delete.
7261 * config/a29k/a29k.mt: Delete.
7262 * a29k-tdep.c: Delete.
7263 * remote-udi.c: Delete.
7264 * remote-mm.c: Delete.
7265 * remote-eb.c: Delete.
7266 * remote-adapt.c: Delete.
7267 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7268 * config/s390/s390x.mt: Ditto.
7269 * config/s390/s390.mt: Ditto.
7270 * config/sparc/sparclynx.mh: Ditto.
7271 * config/sparc/linux.mh: Ditto.
7272 * config/pa/hppaosf.mh: Ditto.
7273 * config/pa/hppabsd.mh: Ditto.
7274 * config/ns32k/nbsd.mt: Ditto.
7275 * config/mips/vr5000.mt: Ditto.
7276 * config/m68k/sun3os4.mh: Ditto.
7277 * config/m68k/nbsd.mt: Ditto.
7278 * config/m68k/m68klynx.mh: Ditto.
7279 * config/m32r/m32r.mt: Ditto.
7280 * config/i386/x86-64linux.mt: Ditto.
7281 * config/i386/nbsdelf.mt: Ditto.
7282 * config/i386/nbsd.mt: Ditto.
7283 * config/i386/i386lynx.mh: Ditto.
7284
bf0c5130
AC
72852002-05-04 Andrew Cagney <ac131313@redhat.com>
7286
7287 * target.c (debug_print_register): New function. Handle oversize
7288 registers.
7289 (debug_to_fetch_registers): Call.
7290 (debug_to_store_registers): Call.
7291
2ae1c2d2
JB
72922002-05-03 Jim Blandy <jimb@redhat.com>
7293
13a393b0
JB
7294 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7295 (read_type): Doc fix.
7296 * gdbtypes.c (replace_type): Doc fix.
7297
2ae1c2d2
JB
7298 * stabsread.c (multiply_defined_struct): New complaint.
7299 (read_struct_type): If the type we were passed isn't empty, or
7300 incomplete, don't read the new struct type into it; complain,
7301 and return the original type unchanged. Take a new `type_code'
7302 argument, which is the type code for the new type.
7303 (read_type): Rather than storing the type's type code here, pass
7304 it as an argument to read_struct_type, and let that take care of
7305 storing it. That way, we don't overwrite the original type code,
7306 so read_struct_type can use it to decide whether we're overwriting
7307 something we shouldn't.
7308 (complain_about_struct_wipeout): New function.
7309
8de9bdc4
AC
73102002-05-03 Andrew Cagney <ac131313@redhat.com>
7311
7312 * gdbarch.sh: Assert that gdbarch is non-NULL.
7313 * gdbarch.c: Regenerate.
7314
f773fdbb
JM
73152002-05-03 Jason Merrill <jason@redhat.com>
7316
7317 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7318 and return NULL.
7319
0e04a514
ML
73202002-05-03 Michal Ludvig <mludvig@suse.cz>
7321
7322 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7323 (x86_64_dwarf2gdb_regno_map_length),
7324 (x86_64_dwarf2_reg_to_regnum): Added.
7325 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7326 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7327 (_initialize_x86_64_tdep): Synced with the change above.
7328 (x86_64_skip_prologue): Reformulated message.
7329
065432a8
PM
73302002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7331
7332 * f-exp.y: Also use new prev_lexptr variable
7333 to improve error reporting. Based on Michael Snyder
7334 2002-04-24 dated patch to c-exp.y.
7335 * jv-exp.y: Likewise.
7336 * m2-exp.y: Likewise.
7337
a3162708
EZ
73382002-05-02 Elena Zannoni <ezannoni@redhat.com>
7339
7340 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7341 we are dealing with vectors.
7342
03620c38
PM
73432002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7344
7345 * config/m68k/tm-nbsd.h: Obvious fix,
7346 correct machine name.
7347
6604db2e
PM
73482002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7349
7350 * p-typeprint.c (pascal_type_print_base): Add support
7351 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7352
0906b739
PM
73532002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7354
7355 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7356 for fondamental pascal 'char' type.
7357
e2625b33
PM
73582002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7359
7360 * p-lang.h (is_pascal_string_type): Declaration changed,
7361 new sixth argument of type char ** added.
361d1df0 7362 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7363 changed. Args length_pos, length_size, string_pos, char_size
7364 can now be NULL. New argument arrayname set to the field
7365 name of the char array. Return value set to char array
7366 field index plus one.
361d1df0 7367 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7368 is_pascal_string_type function.
7369
cf17c188
AC
73702002-05-02 Andrew Cagney <cagney@redhat.com>
7371
7372 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7373 <cagney@redhat.com> change.
7374 * gdbarch.c: Regenerate.
7375
52bca491
AC
73762002-05-02 Andrew Cagney <cagney@redhat.com>
7377
7378 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7379 before probing for a new one. Detect errorenous gdbarch_init
7380 functions.
7381 * gdbarch.c: Regenerate.
7382
d5e72505
AC
73832002-05-01 Andrew Cagney <cagney@redhat.com>
7384
7385 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7386 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7387 * config/v850/tm-v850.h: Ditto. Update copyright.
7388
af566d9f
AC
73892002-04-30 Andrew Cagney <ac131313@redhat.com>
7390
7391 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7392 current_gdbarch.
7393
880d85fa
MS
73942002-04-30 Michael Snyder <msnyder@redhat.com>
7395
94c30b78
MS
7396 * arm-tdep.c: Whitespace clean-ups.
7397 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7398 should have been removed as part of 4/24 change.
7399
6f5987a6
KB
74002002-04-30 Kevin Buettner <kevinb@redhat.com>
7401
7402 * rs6000-tdep.c: Added comment describing how fpscr register
7403 numbers were chosen.
7404
1a113c93
MS
74052002-04-30 Michael Snyder <msnyder@redhat.com>
7406
7407 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7408
9a6f53fe
EZ
74092002-04-29 Elena Zannoni <ezannoni@redhat.com>
7410
7411 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7412 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7413 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7414
11ed25ac
KB
74152002-04-29 Kevin Buettner <kevinb@redhat.com>
7416
7417 From Louis Hamilton <hamilton@redhat.com>:
7418 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7419 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7420 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7421 not bfd-private xcoff data, to determine wordsize.
7422 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7423
ae232405
AC
74242002-04-29 Andrew Cagney <ac131313@redhat.com>
7425
7426 GDB 5.2 released from 5.2 branch.
7427
91fd20f7
ML
74282002-04-29 Michal Ludvig <mludvig@suse.cz>
7429
7430 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7431 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7432 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7433
2dc5091b
EZ
74342002-04-29 Elena Zannoni <ezannoni@redhat.com>
7435
7436 * rs6000-tdep.c (rs6000_extract_return_value,
7437 rs6000_store_return_value): Handle returning vectors.
7438 (rs6000_gdbarch_init): Use
7439 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7440 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7441 New function.
7442 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7443 vectors.
7444 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7445 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7446
2b9848d8
PM
74472002-04-24 Pierre Muller <ics.u-strasbg.fr>
7448
7449 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7450 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7451 with fprintf_unfiltered (gdb_stderr,...).
7452
f8d17dc5
PM
74532002-04-24 Pierre Muller <ics.u-strasbg.fr>
7454
7455 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7456 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7457 Replace fprintf (stderr,...
7458 with fprintf_unfiltered (gdb_stderr,....
7459 * remote-es.c: Likewise.
7460 * remote-os9k.c: Likewise.
7461 * remote-st.c: Likewise.
7462
2f2f1ad1
AS
74632002-04-28 Andreas Schwab <schwab@suse.de>
7464
7465 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7466 linux-proc.o and gcore.o.
7467
b6779aa2
AC
74682002-04-26 Michal Ludvig <mludvig@suse.cz>
7469
7470 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7471 code without frame pointers.
7472
7e57f5f4
AC
74732002-04-26 Andrew Cagney <ac131313@redhat.com>
7474
7475 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7476 ON_STACK is needed.
7477
2ceb85d0
BE
74782002-04-26 Ben Elliston <bje@redhat.com>
7479
7480 * target.c (do_xfer_memory): Correct reference to the new option
7481 "trust-readonly-sections".
7482
f5f8a009
EZ
74832002-04-26 Elena Zannoni <ezannoni@redhat.com>
7484
7485 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7486 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7487 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7488 vectors.
7489 (read_array_type): Record the fact that this array type is really a
7490 vector (i.e. are passed in by value).
7491
5868c862
JT
74922002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7493
7494 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7495 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7496 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7497 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7498 * alpha-linux-tdep.c: Include frame.h.
7499 (alpha_linux_sigcontext_addr): New function.
7500 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7501 alpha_linux_sigcontext_addr.
7502 * alpha-osf1-tdep.c: Include gdbcore.h.
7503 (alpha_osf1_sigcontext_addr): New function.
7504 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7505 alpha_osf1_sigcontext_addr.
7506 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7507 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7508
bfb01f37
AC
75092002-04-26 Andrew Cagney <ac131313@redhat.com>
7510
361d1df0 7511 * stack.c (selected_frame_level):
bfb01f37
AC
7512 (select_frame): Do not set selected_frame_level.
7513 * frame.h (selected_frame_level): Delete declaration.
7514
15813d3f
AC
75152002-04-26 Andrew Cagney <ac131313@redhat.com>
7516
7517 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7518 convert_from_func_ptr-addr when AIX / PowerOpen.
7519
6096c27a
AC
75202002-04-25 Andrew Cagney <ac131313@redhat.com>
7521
7522 * valops.c (hand_function_call): Call
7523 generic_save_call_dummy_addr.
7524 * frame.h (generic_save_call_dummy_addr): Declare.
7525 * blockframe.c (struct dummy_frame): Add fields call_lo and
7526 call_hi.
7527 (generic_find_dummy_frame): Check for PC in range call_lo to
7528 call_hi instead of entry_point_address.
7529 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7530 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7531 (generic_save_call_dummy_addr): New function.
7532
f510d44e
DM
75332002-04-24 David S. Miller <davem@redhat.com>
7534
7535 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7536 sparc_skip_prologue.
7537 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7538 information to find prologue when possible.
7539 (sparc_prologue_frameless_p): Call examine_prologue directly.
7540 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7541 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7542 second argument.
7543 (SKIP_PROLOGUE): Likewise.
7544
15d72a92
JT
75452002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7546
7547 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7548 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7549 indicate that the condition it was testing is always true.
7550 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7551 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7552 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7553
accc6d1f
JT
75542002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7555
7556 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7557 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7558 tdep->jb_pc and tdep->jb_elt_size.
7559 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7560 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7561 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7562 * alpha-nat.c (get_longjmp_target): Remove.
7563 (JB_ELEMENT_SIZE): Ditto.
7564 (JB_PC): Ditto.
7565 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7566 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7567 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7568 to alpha_get_longjmp_target.
7569 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7570 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7571 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7572
1bfdc549
AC
75732002-04-25 Andrew Cagney <ac131313@redhat.com>
7574
7575 * README: Update to GDB 5.2.
7576
1bd316f0
AC
75772002-04-25 Andrew Cagney <ac131313@redhat.com>
7578
7579 * gdbarch.sh (LC_ALL): Set to `c'.
7580
2e5ff58c
TR
75812002-04-25 Theodore A. Roth <troth@verinet.com>
7582
7583 * avr-tdep.c: Ran through gdb_indent.sh.
7584
e33ce519
TR
75852002-04-25 Theodore A. Roth <troth@verinet.com>
7586
7587 * MAINTAINERS: Add myself as AVR maintainer.
7588 * NEWS: Note new target avr.
7589
8818c391
TR
75902002-04-25 Theodore A. Roth <troth@verinet.com>
7591
7592 * Makefile.in: Add support for AVR target.
7593 * configure.tgt: Add support for AVR target.
7594 * avr-tdep.c: New file
7595 * config/avr/avr.mt: New file.
7596
79509c2d
TR
75972002-04-25 Theodore A. Roth <troth@verinet.com>
7598
7599 * MAINTAINERS: Add myself to write-after-approval.
7600
dac8068e
PM
76012002-04-24 Pierre Muller <ics.u-strasbg.fr>
7602
7603 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7604 with fprintf_unfiltered (gdb_stderr,....
7605
25bf3106
PM
76062002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7607
7608 Fix PR gdb/508.
7609 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7610
24467a86
PM
76112002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7612
7613 * p-exp.y: Also use new prev_lexptr variable
7614 to improve error reporting. Based on Michael Snyder
7615 2002-04-24 dated patch to c-exp.y.
7616
95b80706
JT
76172002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7618
7619 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7620 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7621 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7622 to 0.
7623 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7624 and struct value.
7625 (FUNCTION_START_OFFSET): Remove.
7626 (BREAKPOINT): Ditto.
7627
e90cc612
JT
76282002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7629
7630 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7631 * NEWS: Ditto.
7632
6c72f9f9
JT
76332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7634
7635 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7636 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7637 alpha_linux_pc_in_sigtramp.
7638 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7639 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7640 alpha_osf1_pc_in_sigtramp.
7641 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7642 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7643 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7644 alphafbsd_pc_in_sigtramp.
7645 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7646 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7647 alphanbsd_pc_in_sigtramp.
7648 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7649 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7650
5e4f3379
JT
76512002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7652
7653 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7654
da8ca43d
JT
76552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7658 alphanbsd-tdep.c.
7659 (alphanbsd-nat.o): New dependency list.
7660 (alphanbsd-tdep.o): Ditto.
7661 * NEWS: Note new native NetBSD/alpha configuration.
7662 * alphanbsd-nat.c: New file.
7663 * alphanbsd-tdep.c: Ditto.
7664 * configure.host (alpha*-*-netbsd*): New host.
7665 * configure.tgt (alpha*-*-netbsd*): New target.
7666 * config/alpha/nbsd.mh: New file.
7667 * config/alpha/nbsd.mt: Ditto.
7668 * config/alpha/nm-nbsd.h: Ditto.
7669 * config/alpha/tm-nbsd.h: Ditto.
7670
36a6271d
JT
76712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7672
7673 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7674 (alpha-osf1-tdep.o): New dependency list.
7675 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7676 and skip_sigtramp_frame members.
7677 * alpha-linux-tdep.c: Include gdbcore.h.
7678 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7679 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7680 * alpha-osf1-tdep.c: New file.
7681 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7682 alpha-osf1-dep.c.
7683 (alpha_frame_past_sigtramp_frame): New function.
7684 (alpha_dynamic_sigtramp_offset): Ditto.
7685 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7686 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7687 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7688 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7689 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7690 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7691 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7692 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7693 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7694 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7695 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7696 to find_solib_trampoline_target.
7697 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7698 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7699 (SKIP_TRAMPOLINE_CODE): Remove.
7700 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7701 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7702 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7703 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7704 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7705 (PROC_SIGTRAMP_MAGIC): Ditto.
7706 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7707 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7708 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7709 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7710 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7711
2f4bc57b
JT
77122002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * NEWS: Note that Alpha targets are now multi-arch.
7715
665132f9
MS
77162002-04-24 Michael Snyder <msnyder@redhat.com>
7717
7718 * parser-defs.h (prev_lexptr): New external variable.
7719 * parse.c (parse_exp_1): Set prev_lexptr to null before
7720 calling the language-specific parser.
7721 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7722 (yyerror): Use prev_lexptr in error reporting.
7723
32872fa7
DJ
77242002-04-24 Daniel Jacobowitz <drow@mvista.com>
7725
7726 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7727 * gregset.h: If FILL_FPXREGSET is defined, provide
7728 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7729 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7730 is defined, call fill_fpxregset.
7731
57e76fac
MS
77322002-04-24 Roland McGrath <roland@frob.com>
7733
7734 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7735 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7736 (supply_gregset, supply_fpregset): New functions.
7737
7738 * gnu-nat.c (gnu_find_memory_regions): New function.
7739 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7740 (gnu_xfer_memory): Add a cast.
7741
f43845b3
MS
77422002-04-24 Michael Snyder <msnyder@redhat.com>
7743
361d1df0 7744 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7745 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7746 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7747 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7748 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7749 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7750
a0abec03
AC
7751Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7752
7753 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7754 NUM_PSEUDO_REGS can be used.
7755
d7bd68ca
AC
77562002-04-24 Andrew Cagney <ac131313@redhat.com>
7757
7758 * arch-utils.h: Update copyright.
7759
7760 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7761 * gdbarch.h, gdbarch.c: Re-generate.
7762
7763 * inferior.h (IN_SIGTRAMP): Delete definition.
7764 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7765 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7766
7767 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7768 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7769 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7770 (find_proc_framesize): Ditto.
7771 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7772 (alpha_init_extra_frame_info): Ditto.
7773 * infrun.c (handle_inferior_event): Ditto.
7774 (handle_inferior_event): Ditto.
7775 (check_sigtramp2): Ditto.
7776 * blockframe.c (create_new_frame): Ditto.
7777 (get_prev_frame): Ditto.
7778 * ppc-linux-tdep.c: Update comments.
7779 * i386-linux-tdep.c: Update comments.
7780 * breakpoint.c (bpstat_what): Update comment.
7781
4867e41e
DM
77822002-04-24 David S. Miller <davem@redhat.com>
7783
21d83aa5
DM
7784 * i960-tdep.c (register_in_window_p): New function.
7785 (i960_find_saved_register): Use it instead of
7786 REGISTER_IN_WINDOW_P.
7787 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7788
4867e41e
DM
7789 * symtab.h (find_stab_function_addr): Kill extern.
7790 * minsyms.c (find_stab_function_addr): Remove from here...
7791 * dbxread.c: ... to here, and mark it static.
7792
69cdf6a2
DM
77932002-04-20 David S. Miller <davem@redhat.com>
7794
7795 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7796 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7797
5a595886
DM
77982002-04-21 David S. Miller <davem@redhat.com>
7799
7800 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7801 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7802 (vx_write_register): Likewise.
7803
1da1a192
JB
78042002-04-23 J. Brobecker <brobecker@gnat.com>
7805
7806 * source.c (is_regular_file): New function.
7807 (openp): Check wether file to open is a regular file
7808 to avoid opening directories.
7809
baa6f10b
JT
78102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7811
7812 * findvar.c (extract_signed_integer): Cast printf argument
7813 to suppress format warning.
7814 (extract_unsigned_integer): Likewise.
7815 * infcmd.c (registers_info): Likewise.
7816 * top.c (get_prompt_1): Likewise.
7817 * valops.c (value_assign): Likewise.
7818 * valprint.c (print_decimal): Likewise.
7819
b2c4da81
L
78202002-04-22 H.J. Lu (hjl@gnu.org)
7821
7822 * c-exp.y (typebase): Support
361d1df0 7823
b2c4da81
L
7824 [long|long long|short] [signed|unsigned] [int|]
7825
7826 and
7827
7828 signed [long|long long|short] int
7829
f267bd6a
JT
78302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7831
7832 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7833 and vax-tdep.h.
7834 * vax-tdep.h: New file.
7835 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7836 Make several routines static.
7837 (vax_get_saved_register): New function.
7838 (vax_gdbarch_init): New function.
7839 (_initialize_vax_tdep): Register vax_gdbarch_init.
7840 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7841 Remove macros now under the control of gdbarch.
7842
da3c6d4a
MS
78432002-04-22 Michael Snyder <msnyder@redhat.com>
7844
11d3b27d
MS
7845 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7846 Some whitespace and coding standards tweaks.
da3c6d4a 7847
a33f7558
JT
78482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7849
7850 * vax-tdep.c: Include regcache.h.
7851 (vax_call_dummy_words): New.
7852 (sizeof_vax_call_dummy_words): New.
7853 (vax_fix_call_dummy): New function.
7854 (vax_saved_pc_after_call): Ditto.
7855 * config/vax/tm-vax.h: Don't include regcache.h.
7856 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7857 (CALL_DUMMY): Remove.
7858 (CALL_DUMMY_WORDS): Define.
7859 (SIZEOF_CALL_DUMMY_WORDS): Define.
7860 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7861
47a73475
MS
78622002-04-18 Michael Snyder <msnyder@redhat.com>
7863
7864 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7865
52efde73
JT
78662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7867
7868 * vax-tdep.c (vax_frame_chain): New function.
7869 (vax_push_dummy_frame): Ditto.
7870 (vax_pop_frame): Ditto.
7871 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7872 (FRAMELESS_FUNCTION_INVOCATION): Use
7873 generic_frameless_function_invocation_not.
7874 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7875 (POP_FRAME): Use vax_pop_frame.
7876
ea74468c
JT
78772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7878
7879 * vax-tdep.c (vax_store_struct_return): New function.
7880 (vax_extract_return_value): Ditto.
7881 (vax_store_return_value): Ditto.
7882 (vax_extract_struct_value_address): Ditto.
7883 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7884 vax_store_struct_return.
7885 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7886 (STORE_RETURN_VALUE): Use vax_store_return_value.
7887 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7888
5516aa92
JT
78892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7890
7891 * vax-tdep.c (vax_frame_saved_pc): New function.
7892 (vax_frame_args_address_correct): Ditto.
7893 (vax_frame_args_address): Ditto.
7894 (vax_frame_locals_address): Ditto.
7895 (vax_frame_num_args): Move code to be in proximity to
7896 other frame-related functions.
7897 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7898 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7899 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7900 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7901 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7902
36af0b35
L
79032002-04-22 H.J. Lu (hjl@gnu.org)
7904
7905 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7906 includedir.
7907
ab62c900
JT
79082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7909
7910 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7911 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7912 (FRAME_INIT_SAVED_REGS): New macro.
7913
7232b100
JT
79142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7915
7916 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7917
b70d2aee
JT
79182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7919
7920 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7921 where needed.
7922 (fetch_osf_core_registers): Likewise.
7923 (supply_gregset): Likewise.
7924
a0e8a2d1 79252002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7926
a0e8a2d1
JB
7927 * symfile.h (get_section_index): Define.
7928 * symfile.c (get_section_index): New function.
7929 * mdebugread.c (SC_IS_SBSS): New macro.
7930 (SC_IS_BSS): Return true for the scBss storage class only, as
7931 the scSBss storage class refers to the .sbss section.
7932 (parse_partial_symbols): Discard the symbols which associated
7933 section does not exist.
7934 Make sure to use the .sbss section index for symbols which
7935 storage class is scBss, rather than using the .bss section index.
7936
51eb8b08
JT
79372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7938
7939 * vax-tdep.c: Update copyright years.
7940 (vax_register_name): New function.
7941 (vax_register_byte): Ditto.
7942 (vax_register_raw_size): Ditto.
7943 (vax_register_virtual_size): Ditto.
7944 (vax_register_virtual_type): Ditto.
7945 * config/vax/tm-vax.h: Update copyright years.
7946 (REGISTER_NAMES): Remove.
7947 (REGISTER_NAME): Define.
7948 (REGISTER_BYTE): Use vax_register_byte.
7949 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7950 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7951 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7952
6cc1c0a8
AC
79532002-04-21 Andrew Cagney <ac131313@redhat.com>
7954
7955 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7956 declaration
7957 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7958
9319a2fe
DM
79592002-04-21 David S. Miller <davem@redhat.com>
7960
7961 * arch-utils.c (generic_prologue_frameless_p): Kill
7962 SKIP_PROLOGUE_FRAMELESS_P code.
7963 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7964 references.
7965 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7966 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7967 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7968 references.
7969 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7970 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7971 (sparc_gdbarch_init): Pass it to
7972 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7973
e9ed6d01
JT
79742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7975
7976 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7977 (alphabsd-nat.o): New dependency list.
7978
36012033
JT
79792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7980
7981 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7982 alphafbsd-tdep.c.
7983 (alpha-linux-tdep.o): New dependency list.
7984 (alphafbsd-tdep.o): Likewise.
7985
3379287a
JT
79862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7987
7988 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7989 to here...
7990 * alpha-tdep.c: ...from here.
7991 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7992
4bcbd6cb
JT
79932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7994
7995 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7996 prototype from here...
7997 * alpha-tdep.h: ...to here.
7998
b31da25e
AC
79992002-04-21 Andrew Cagney <ac131313@redhat.com>
8000
8001 * frame.h (selected_frame_level): Document as deprecated.
8002 (frame_relative_level): Declare.
8003 * stack.c (frame_relative_level): New function.
8004 (selected_frame_level): Document as deprecated.
8005 (select_frame): Do not set the selected_frame_level.
8006
8007 * stack.c (frame_info, record_selected_frame): Update.
8008 (frame_command, current_frame_command): Update.
8009 (up_silently_base, up_command, down_silently_base): Update.
8010 (down_command): Update.
8011 * inflow.c (kill_command): Update.
8012 * tracepoint.c (finish_tfind_command): Update.
8013 * corelow.c (core_open): Update.
8014 * thread.c (info_threads_command): Update.
8015 (do_captured_thread_select): Update.
8016 * infcmd.c (finish_command): Update.
8017 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8018
9c1d6fe5
JT
80192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8020
8021 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8022
ab89facf
AC
80232002-04-21 Andrew Cagney <ac131313@redhat.com>
8024
8025 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8026 type const.
8027
82a4efa1
JT
80282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8029
8030 * alphafbsd-tdep.c: Update copyright years. Include
8031 alpha-tdep.h.
8032 (alphafbsd_use_struct_convention): Make static.
8033 (alphafbsd_init_abi): New function.
8034 (_initialize_alphafbsd_tdep): New function.
8035 * config/alpha/tm-fbsd.h: Update copyright years.
8036 (USE_STRUCT_CONVENTION): Remove.
8037
44dffaac
JT
80382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8039
8040 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8041 an Alpha ABI variant.
8042 (alpha_abi_handler_list): Declare.
8043 (alpha_gdbarch_register_os_abi): New function.
8044 (alpha_gdbarch_init): Give registered ABI variant handlers a
8045 chance to tweak the gdbarch once we have set up defaults.
8046 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8047
65585be4
JT
80482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8049
8050 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8051 to standard_coerce_float_to_double.
8052 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8053
d9b023cc
JT
80542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8055
8056 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8057 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8058 from gdbarch_tdep rather than a constant.
8059 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8060 the default text address for all Alpha Unix ABIs.
8061 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8062 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8063
dc129d82
JT
80642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8065
8066 * alpha-tdep.h: New file. Includes several Alpha target constants
8067 taken from...
8068 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8069 let gdbarch deal with.
8070 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8071 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8072 to dependency list.
8073 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8074 Alpha target register names.
8075 * alphabsd-nat.c: Likewise.
8076 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8077 Alpha target register names. Make serveral routines static.
8078 (alpha_get_saved_register): New function.
8079 (alpha_abi_names): New.
8080 (process_note_abi_tag_sections): New function.
8081 (get_elfosabi): New function.
8082 (alpha_gdbarch_init): New function.
8083 (alpha_dump_tdep): New function.
8084 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8085
d49d1e0a
AC
80862002-04-21 Andrew Cagney <ac131313@redhat.com>
8087
8088 * frame.c (find_saved_register): Delete #ifdef
8089 HAVE_REGISTER_WINDOWS code.
8090 * config/sparc/tm-sparc.h: Update comments.
8091 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8092
92e8c9ed
AC
80932002-04-21 Andrew Cagney <ac131313@redhat.com>
8094
8095 * i960-tdep.c (i960_find_saved_register): New function.
8096 (i960_get_saved_register): New function.
8097 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8098 (i960_get_saved_register): Declare.
8099 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8100
e1925118
DM
81012002-04-20 David S. Miller <davem@redhat.com>
8102
8103 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8104
29673b29
AC
81052002-04-20 Andrew Cagney <ac131313@redhat.com>
8106
8107 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8108 instead of NUM_PSEUDO_REGS.
8109
6c86dcd5
DM
81102002-04-20 David S. Miller <davem@redhat.com>
8111
8112 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8113 GDB_MULTI_ARCH_PARTIAL
8114 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8115 define, let tm-sp64.h do it.
8116
aa40ec90
JT
81172002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8118
8119 * frame.c (find_saved_register): Avoid a NULL pointer
8120 dereference and actually walk the frame list.
8121
0f79675b
AC
81222002-04-20 Andrew Cagney <ac131313@redhat.com>
8123
8124 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8125 sorted in most most-recent-used order. Document.
8126 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8127
f91305dd 81282002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8129
8130 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8131 instead of ->prev.
8132 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8133 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8134 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8135 instead of ->prev.
8136
73d322b1
EZ
81372002-04-19 Elena Zannoni <ezannoni@redhat.com>
8138
8139 Fix PR gdb/471.
8140 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8141 (build_builtin_type_vec128): Ditto.
8142 (append_composite_type_field): Fix calculation of type length in
8143 union case.
8144
ccd9a834
EZ
81452002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8146
8147 * config/djgpp/README: Update.
8148
8149 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8150 compiler warnings.
8151
a57f9e49
JT
81522002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8153
8154 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8155 (alpha_setup_arbitrary_frame): ...to this.
8156 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8157 for alpha_setup_arbitrary_frame.
8158
f4f9705a
AC
81592002-04-18 Andrew Cagney <cagney@redhat.com>
8160
8161 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8162 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8163
f4f9705a
AC
8164 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8165 * target.h (memory_breakpoint_from_pc): Update declaration.
8166 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8167
8168 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8169 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8170 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8171 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8172 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8173 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8174 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8175 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8176 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8177 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8178 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8179 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8180
8181 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8182 const pointer.
8183 * monitor.c (monitor_insert_breakpoint): Ditto.
8184 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8185
8186 * config/mcore/tm-mcore.h: Update copyright.
8187 * mem-break.c: Ditto.
8188 * xstormy16-tdep.c: Ditto.
8189
29f319b8
PM
81902002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8191
8192 * p-exp.y: Add precedence rule for '^' token.
8193 This removes the shift/reduce conflicts.
8194 Remove the comment concerning these shift/reduce conflicts.
8195
ebeac11a
EZ
81962002-04-18 Elena Zannoni <ezannoni@redhat.com>
8197
8198 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8199 (registers_powerpc_nofp): New register set for processors
8200 without floating point unit.
8201
27c31547
DM
82022002-04-18 David S. Miller <davem@redhat.com>
8203
8204 * MAINTAINERS: Add myself to write-after-approval.
8205
47a73475
MS
82062002-04-17 Michael Snyder <msnyder@redhat.com>
8207
8208 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8209
953836b2
AC
82102002-04-17 Andrew Cagney <ac131313@redhat.com>
8211
8212 * rs6000-tdep.c (frame_initial_stack_address): Use
8213 frame_register_read to read the alloca_reg.
8214
8b0d4340
AC
82152002-04-17 Andrew Cagney <ac131313@redhat.com>
8216
8217 * frame.c (find_saved_register): Find saved registers in the next
8218 not prev frame.
8219 Fix PR gdb/365.
8220
d8864532
AC
82212002-04-17 Andrew Cagney <ac131313@redhat.com>
8222
8223 * gdbarch.sh (LANG): Set to ``c''.
8224
36cc83a3 82252002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8226
36cc83a3 8227 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8228
2f4150cc 82292002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8230
8231 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8232 Update copyright.
8233
628703c6 8234 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8235 Also fix PR gdb/391.
361d1df0 8236
56157b4a
AC
82372002-04-14 Andrew Cagney <ac131313@redhat.com>
8238
8239 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8240 * aclocal.m4, configure: Re-generate.
8241 Fix PR gdb/391.
361d1df0 8242
6d1e3329
EZ
82432002-04-14 Elena Zannoni <ezannoni@redhat.com>
8244
8245 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8246 instead of tm_print_insn.
8247
cb06fa07
EZ
82482002-04-14 Elena Zannoni <ezannoni@redhat.com>
8249
8250 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8251
f208ba17
AC
82522002-04-14 Andrew Cagney <ac131313@redhat.com>
8253
8254 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8255 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8256 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8257
20f01a46
DH
82582002-04-12 Don Howard <dhoward@redhat.com>
8259
8260 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8261 max_user_call_depth.
8262 (init_cmd_lists): Initialize the new value;
8263 * cli/cli-script.c (execute_user_command): Limit the call depth of
8264 user defined commands. This avoids a core-dump when user commands
8265 are infinitly recursive.
8266
a88376a3
KB
82672002-04-12 Kevin Buettner <kevinb@redhat.com>
8268
8269 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8270 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8271 from tdep struct instead of DEFAULT_LR_SAVE.
8272 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8273 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8274 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8275
f2172603
MS
82762002-04-12 Michael Snyder <msnyder@redhat.com>
8277
694f61fb 8278 * Remote.c: Spelling fix.
20fe79c8
MS
8279 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8280 If no symbol found for "sbrk", try "_sbrk".
8281 (make_output_phdrs): Use bfd_section_name.
8282 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8283 * eval.c: Indentation fix-ups.
169a7369
MS
8284 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8285 in case it gets applied to an address that is already
8286 in the instruction space.
de74f71f
MS
8287 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8288 * symfile.c: Fix indentation, long lines.
f2172603
MS
8289 * source.c: White space fix-up.
8290
cda5a58a
AC
82912002-04-12 Andrew Cagney <cagney@redhat.com>
8292
8293 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8294 * frame.c (frame_register_read): New function. Return non-zero on
8295 success.
8296 (read_relative_register_raw_bytes_for_frame): Delete.
8297 (read_relative_register_raw_bytes): Delete.
8298 * frame.h (frame_register_read): Declare.
8299 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8300 * sh-tdep.c: Ditto.
8301 * infcmd.c (do_registers_info): Ditto.
8302 * hppa-tdep.c: Ditto.
8303 * rs6000-tdep.c: Ditto.
8304 * h8500-tdep.c: Ditto.
8305 * mips-tdep.c: Ditto.
8306 * h8300-tdep.c: Ditto.
8307 * z8k-tdep.c: Ditto.
8308
2ea5f656
KB
83092002-04-12 Kevin Buettner <kevinb@redhat.com>
8310
8311 From Jimi X <jimix@watson.ibm.com>:
8312 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8313 64-bit SysV ABI.
8314
27b15785
KB
83152002-04-12 Kevin Buettner <kevinb@redhat.com>
8316
8317 From Jimi X <jimix@watson.ibm.com>:
8318 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8319 bfd info.
8320
5d57ee30
KB
83212002-04-12 Kevin Buettner <kevinb@redhat.com>
8322
8323 From Jimi X <jimix@watson.ibm.com>:
8324 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8325 register sets for these processor variants.
8326
bc1e36ca
DJ
83272002-04-11 Daniel Jacobowitz <drow@mvista.com>
8328
bc1e36ca
DJ
8329 * regformats/reg-ppc.dat: Support FPSCR.
8330
e3f36dbd
KB
83312002-04-11 Kevin Buettner <kevinb@redhat.com>
8332
8333 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8334 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8335 Add fpscr as an invalid/unfetchable register.
8336 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8337 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8338 (fill_fpregset): Add support for register fpscr.
8339 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8340 (fill_gregset): Account for the fact that register ``mq'' might
8341 not exist.
8342 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8343 (registers_power): Add fpscr to register set at slot 71.
8344 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8345 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8346
943c9c25
MS
83472002-04-11 Michael Snyder <msnyder@redhat.com>
8348
8349 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8350 * configure: Regenerate.
8351 * config.in: Regenerate.
8352 * acconfig.h: Add define for _SYSCALL32.
8353 * core-sol2.c: Remove #define _SYSCALL32.
8354 * solib-legacy.c: Remove #define _SYSCALL32.
8355
d8c0a2e7
AC
83562002-04-10 Andrew Cagney <ac131313@redhat.com>
8357
8358 * stack.c (select_frame): Cleanup internal error message, do not
8359 use %p.
8360
7cc19214
AC
83612002-04-10 Andrew Cagney <ac131313@redhat.com>
8362
8363 * stack.c (select_frame): Check that selected_frame and the
8364 specified level are as expected.
8365 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8366 Update copyright.
8367 * frame.h (struct frame_info): Add field `level'. Update
8368 copyright.
8369 Work-in-progress PR gdb/464.
8370
67a2b77e
AC
83712002-04-10 Andrew Cagney <ac131313@redhat.com>
8372
8373 * maint.c (maint_print_section_info): Rename print_section_info.
8374 (print_bfd_section_info, print_objfile_section_info): Update.
8375 * inferior.h (struct gdbarch): Add opaque declaration.
8376 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8377 * gdbarch.h: Regenerate.
8378
8cfda98c
ML
83792002-04-10 Michal Ludvig <mludvig@suse.cz>
8380
8381 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8382 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8383 (kernel_u_size): Added.
8384 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8385 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8386
ca439ad2 83872002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8388
ca439ad2
JI
8389 * valarith.c (find_size_for_pointer_math): New function, either returns
8390 the size for a pointer's target, returns 1 for void *, or errors for
8391 incomplete types.
8392 (value_add, value_sub): use find_size_for_pointer_math.
8393
2f2893d9
DJ
83942002-04-09 Daniel Jacobowitz <drow@mvista.com>
8395
8396 * linux-low.c (linux_look_up_symbols): New hook.
8397 (linux_target_ops): Add linux_look_up_symbols.
8398 * remote-utils.c (decode_address): New function.
8399 (look_up_one_symbol): New function.
8400 * server.c (handle_query): Call target look_up_symbols hook.
8401 * server.h (look_up_one_symbol): Add prototype.
8402 * target.h (struct target_ops): Add look_up_symbols hook.
8403
96cb11df
AC
84042002-04-09 Andrew Cagney <ac131313@redhat.com>
8405
8406 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8407 override FP_REGNUM with frame->fp. Update copyright.
8408 * parse.c (num_std_regs, std_regs): Delete.
8409 (target_map_name_to_register): Do not search std_regs. Update
8410 function description.
8411 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8412 declarations. Update copyright.
8413 Fix PR gdb/251.
361d1df0 8414
97658e92
DJ
84152002-04-09 Daniel Jacobowitz <drow@mvista.com>
8416
8417 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8418 after the last symbol in a block.
8419
6044e3eb
PM
84202002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8421
8422 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8423 is non zero as a found symbol.
8424
0406ec40
AC
84252002-04-08 Andrew Cagney <ac131313@redhat.com>
8426
8427 * findvar.c: Include "builtin-regs.h".
8428 (value_of_register): Call value_of_builtin_reg when applicable.
8429 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8430 (target_map_name_to_register): Call
8431 builtin_reg_map_name_to_regnum.
8432 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8433 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8434 (builtin_regs_h): Define.
8435 (builtin-regs.o): New target.
8436 (findvar.o): Add $(builtin_regs_h).
8437 * builtin-regs.c, builtin-regs.h: New files.
8438 * std-regs.c: New file.
8439 Partial fix for PR gdb/251.
8440
56a6dfb9
KB
84412002-04-08 Kevin Buettner <kevinb@redhat.com>
8442
8443 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8444 it's no longer required.
8445
3a808432
AC
84462002-04-08 Andrew Cagney <ac131313@redhat.com>
8447
8448 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8449
7c40d541
KB
84502002-04-08 Kevin Buettner <kevinb@redhat.com>
8451
8452 From Jimi X <jimix@watson.ibm.com>:
8453 * rs6000-tdep.c (rs6000_software_single_step): Use
8454 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8455 and size. Use target_insert_breakpoint() and
8456 target_remove_breakpoint() to insert and remove breakpoints
8457 instead of explicit memory reads and writes.
8458
cc9836a8
KB
84592002-04-08 Kevin Buettner <kevinb@redhat.com>
8460
8461 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8462 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8463 ELF_OBJECT_FORMAT ifdef.
8464
7495d1dc
KB
84652002-04-08 Kevin Buettner <kevinb@redhat.com>
8466
8467 From Jimi X <jimix@watson.ibm.com>:
8468 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8469
4288e836
KB
84702002-04-08 Kevin Buettner <kevinb@redhat.com>
8471
8472 From Jimi X <jimix@watson.ibm.com>:
8473 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8474 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8475
a4e4e501
MK
84762002-04-07 Mark Kettenis <kettenis@gnu.org>
8477
8478 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8479 s/asprintf/xasprintf/.
8480 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8481
006defba
AC
84822002-04-07 Andrew Cagney <ac131313@redhat.com>
8483
8484 I believe Jeff Law denies responsability for this one:
8485 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8486 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8487 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8488 Work-around for PR gdb/366.
8489
7aa83cac
EZ
84902002-04-07 Elena Zannoni <ezannoni@redhat.com>
8491
8492 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8493 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8494 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8495
cf1fcca1
EZ
84962002-04-07 Elena Zannoni <ezannoni@redhat.com>
8497
8498 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8499 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8500 information.
8501
3f289e6f
AC
85022002-04-07 Andrew Cagney <ac131313@redhat.com>
8503
8504 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8505 maintainer.
8506
129188f6
AC
85072002-04-07 Andrew Cagney <ac131313@redhat.com>
8508
8509 * README (Reporting Bugs in GDB): Document the bug web page as the
8510 prefered way of submitting bugs.
8511 Fix PR gdb/402.
8512
1200cd6e
AC
85132002-04-06 Andrew Cagney <ac131313@redhat.com>
8514
8515 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8516 -1. Update comment.
8517 * gdbarch.h, gdbarch.c: Re-generate.
8518
2853c33c
AS
85192002-04-07 Andreas Schwab <schwab@suse.de>
8520
8521 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8522 buffer to regcache_collect.
8523
c2169756
AC
85242002-04-06 Andrew Cagney <ac131313@redhat.com>
8525
8526 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8527 * gdbarch.c, gdbarch.h: Re-generate.
8528
25f1b008
AC
85292002-04-06 Andrew Cagney <ac131313@redhat.com>
8530
8531 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8532 declaration. Fix -Werror.
8533
59263426
DJ
85342002-04-05 Daniel Jacobowitz <drow@mvista.com>
8535
8536 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8537 * gdbarch.c: Regenerate.
8538
f5db4da3
MS
85392002-04-05 Michael Snyder <msnyder@redhat.com>
8540
80f8a6eb
MS
8541 * breakpoint.c (clear_command): Rewrite middle section to
8542 combine two loops with identical control conditions.
8543 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8544 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8545
ad3dcc5c
L
85462002-04-05 H.J. Lu (hjl@gnu.org)
8547
8548 * solib-svr4.c (bkpt_names): Add "__start".
8549
f32e7a74
AC
85502002-04-04 Andrew Cagney <ac131313@redhat.com>
8551
8552 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8553 as test for 64 bit target.
8554
8227c0ff
AC
85552002-04-05 Andrew Cagney <ac131313@redhat.com>
8556
8557 * h8500-tdep.c (h8500_write_fp): Delete function.
8558 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8559 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8560 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8562 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8563 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8564 (s390_write_fp):
8565 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8566 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8567 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8568 (d10v_write_fp): Delete function.
8569 * inferior.h (write_fp, generic_target_write_fp): Delete
8570 declarations.
8571 * regcache.c (generic_target_write_fp): Delete function.
8572 (write_fp): Delete function.
8573 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8574 * gdbarch.h, gdbarch.c: Regenerate.
8575 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8576 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8577 (sparc64_write_fp): Delete declaration.
8578 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8579 (h8500_write_fp): Delete declaration.
8580
2757dd86
AC
85812002-04-04 Andrew Cagney <ac131313@redhat.com>
8582
8583 * sparc-tdep.c (sparc64_write_fp): Delete.
8584 (sparc_push_dummy_frame): Replace write_fp call with code to store
8585 the FP directly.
8586 (sparc_gdbarch_init): Do not initialize write_fp.
8587
c69255e1
KB
85882002-04-05 Kevin Buettner <kevinb@redhat.com>
8589
8590 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8591 clause.
8592
ae767bfb
JB
85932002-03-29 Jim Blandy <jimb@redhat.com>
8594
8595 * stack.c (get_selected_block): Add new argument `addr_in_block',
8596 used to return the exact code address we used to select the block,
8597 not just the block.
8598 * blockframe.c (get_frame_block, get_current_block): Same.
8599 * frame.h (get_frame_block, get_current_block,
8600 get_selected_block): Update declarations.
8601 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8602 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8603
84d2ac95
MS
86042002-04-05 Michael Snyder <msnyder@redhat.com>
8605
8606 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8607 warning message.
8608
596aa3bf
JB
86092002-04-05 J. Brobecker <brobecker@gnat.com>
8610
8611 * utils.c (xfullpath): New function.
8612 * defs.h (xfullpath): Add declaration.
8613 * source.c (openp): Use xfullpath in place of gdb_realpath to
8614 avoid resolving the basename part of filenames when the
8615 associated file is a symbolic link. This fixes a potential
8616 inconsistency between the filenames known to GDB and the
8617 filenames it prints in the annotations.
8618 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8619 to be able to match a filename with either the real filename, or
8620 the name of any symbolic link to this file.
8621 (lookup_partial_symtab): Ditto.
8622
c02f5703
MS
86232002-04-04 Michael Snyder <msnyder@redhat.com>
8624
8625 * breakpoint.c: Add support for hardware breakpoints in overlays.
8626 (overlay_events_enabled): New state variable.
8627 (insert_breakpoints): Use overlay_events_enabled to decide
8628 whether to attempt to set a breakpoint at the overlay load addr.
8629 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8630 (remove_breakpoint): Use overlay_events_enabled to decide
8631 whether breakpoints need to be removed from overlay load addr.
8632 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8633 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8634 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8635 disable_overlay_breakpoints): Update overlay_events_enabled.
8636
5fb290d7
DJ
86372002-04-04 Daniel Jacobowitz <drow@mvista.com>
8638
8639 * dwarf2read.c (struct function_range): New.
8640 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8641 (check_cu_functions): New.
8642 (read_file_scope): Initialize global function lists.
8643 Call dwarf_decode_line after processing children.
8644 (read_func_scope): Add to global function list.
8645 (dwarf_decode_lines): Call check_cu_functions everywhere
8646 record_line is called. Call record_line with a linenumber
8647 of 0 to mark sequence ends.
8648
7b3fabf0
ML
86492002-04-04 Michal Ludvig <mludvig@suse.cz>
8650
361d1df0 8651 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8652 change sync with glibc.
8653
bce58c09
JB
86542002-04-03 Jim Blandy <jimb@redhat.com>
8655
8656 * configure.in: Call AC_C_INLINE.
8657 * configure: Regenerated.
361d1df0 8658
2fccf04a
DJ
86592002-04-01 Daniel Jacobowitz <drow@mvista.com>
8660
8661 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8662 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8663
2d1bfe2e
MK
86642002-03-31 Mark Kettenis <kettenis@gnu.org>
8665
a5941fbf
MK
8666 * NEWS: Mention gcore support on FreeBSD/i386.
8667
a90cd31d
MK
8668 * fbsd-proc.c: New file.
8669 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8670 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8671
2d1bfe2e
MK
8672 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8673 while statement.
8674
9eb6e5a1
JB
86752002-03-29 Jim Blandy <jimb@redhat.com>
8676
8677 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8678 unescaped newlines in string literals, but newer ones don't. So
8679 escape them.
8680
f02df580
MS
86812002-03-26 Michael Snyder <msnyder@redhat.com>
8682 Andrew Cagney <cagney@redhat.com>
8683
361d1df0 8684 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8685 restore file to memory.
8686 * cli/cli-dump.h: New file.
8687 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8688 * NEWS: Mention new commands.
f02df580 8689
109f874e
MS
86902002-03-28 Michael Snyder <msnyder@redhat.com>
8691
8692 * symfile.c (symbol_file_add): Move test for null symbols to later.
8693
520f6ade
AC
86942002-03-27 Andrew Cagney <ac131313@redhat.com>
8695
8696 From veksler at il.ibm.com:
8697 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8698 the xstrduped original path.
8699 Fix PR gdb/417.
8700
d4654627
MS
87012002-03-27 Michael Snyder <msnyder@redhat.com>
8702
8703 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8704 * infcmd.c (_initialize_infcmd): Ditto.
8705 * language.c (_initialize_language): Ditto.
8706 * symfile.c (_initialize_symfile): Ditto.
8707 * top.c (_init_main): Ditto.
8708 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8709
6be8bc0c
EZ
87102002-03-27 Elena Zannoni <ezannoni@redhat.com>
8711
8712 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8713 vector registers handling.
8714 (skip_prologue): Handle new AltiVec instructions. Fill in new
8715 fields of frame data.
8716 (frame_get_saved_regs): Fill in information for AltiVec registers.
8717
12af6855
JB
87182002-03-27 Jim Blandy <jimb@redhat.com>
8719
8720 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8721 a function; leave this macro here to invoke that function.
8722 (symbol_init_mangled_name): Declaration for that function.
8723 * symtab.c (symbol_init_mangled_name): New function.
8724
dc672865
AC
87252002-03-27 Andrew Cagney <ac131313@redhat.com>
8726
8727 * valarith.c: Replace strerror with safe_strerror.
8728 * tracepoint.c: Ditto.
8729 * lin-lwp.c: Ditto.
8730 * go32-nat.c: Ditto.
8731 * inflow.c: Ditto.
8732 * gnu-nat.c: Ditto.
8733
d96429cd
AS
87342002-03-27 Andreas Schwab <schwab@suse.de>
8735
8736 * event-top.c (command_line_handler): Remove useless if.
8737
7e336ba1
AJ
87382002-03-27 Andreas Jaeger <aj@suse.de>
8739
8740 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8741 comment.
8742
de220d0f
ML
87432002-03-27 Michal Ludvig <mludvig@suse.cz>
8744
8745 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8746 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8747 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8748 (x86_64_linux_dr_get_status, supply_gregset),
8749 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8750 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8751 (x86_64_register_info_table): Add.
8752 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8753 (x86_64_register_raw_size, x86_64_register_virtual_type),
8754 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8755 general x86_64_register_info_table.
8756 (i386_gdbarch_init): gdbarch_register_bytes is now set
8757 dynamicaly during initialization.
8758 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8759 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8760
0e98d0a7
DJ
87612002-03-27 Daniel Jacobowitz <drow@mvista.com>
8762
8763 * gdbserver/server.c (main): Call target_signal_to_host_p
8764 and target_signal_to_host on signals received from the remote.
8765 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8766 target_signal_from_host on signals sent to the remote.
8767 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8768 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8769
3130066b
DJ
87702002-03-27 Daniel Jacobowitz <drow@mvista.com>
8771
8772 * signals/signals.c: Include "server.h" in gdbserver build.
8773 (target_signal_from_name): Don't use STREQ.
8774 (_initialize_signals): Likewise. Don't include function in
8775 gdbserver build.
8776
9aedf4f4
DJ
87772002-03-27 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * signals.c: Moved to...
8780 * signals/signals.c: Here.
7e336ba1 8781 * Makefile (signals.o): Update.
9aedf4f4 8782
3fa41cdb
JL
87832002-03-26 Jeff Law (law@redhat.com)
8784
8785 * somread.c (som_symtab_read): Remove some commented out code and
8786 updated related comments. Do not set the minimal symbol table to
8787 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8788 in a dynamic executable.
8789 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8790 where we are unable to find the minimal symbol for the given
8791 PC value.
8792
ee677e8d
MS
87932002-03-25 Jeff Law (law@redhat.com)
8794
8795 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8796
e76e1718
ML
87972002-03-25 Michal Ludvig <mludvig@suse.cz>
8798
8799 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8800
18a642a1
AC
88012002-03-23 Andrew Cagney <ac131313@redhat.com>
8802
8803 * command.h: Update copyright.
8804 (struct cmd_list_element): Replace definition with opaque
8805 declaration.
8806 (enum cmd_types): Document that it will eventually be moved to
8807 cli/cli-decode.h
8808 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8809 (MALLOCED_REPLACEMENT): Delete macro.
8810 * Makefile.in (cli_decode_h): Add $(command_h).
8811 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8812 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8813 * completer.c: Include "cli/cli-decode.h".
8814 * maint.c: Include "cli/cli-decode.h".
8815 * cli/cli-decode.h: Include "command.h".
8816 (enum command_class): Delete.
8817 (enum cmd_types): Comment out.
8818 (enum cmd_auto_boolean): Delete.
8819 (enum var_types): Delete.
8820
b2875cc0
AC
88212002-03-23 Andrew Cagney <ac131313@redhat.com>
8822
8823 * cli/cli-decode.c: Include "gdb_assert.h".
8824 (add_set_or_show_cmd): New static function.
8825 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8826 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8827 all fields, such as func, from the set command.
8828
3b45974e
AC
88292002-03-23 Andrew Cagney <ac131313@redhat.com>
8830
8831 * MAINTAINERS (sh-elf): Change warning flag to -w.
8832
823ca731
AC
88332002-03-23 Andrew Cagney <cagney@redhat.com>
8834
8835 * defs.h (error): Add printf format attribute.
8836 * thread-db.c (thread_from_lwp): Fix error format string.
8837 * stack.c (parse_frame_specification): Ditto.
8838 * cli/cli-decode.c (undef_cmd_error): Ditto.
8839 * scm-lang.c (scm_lookup_name): Ditto.
8840 * tracepoint.c (trace_error): Ditto.
8841 * remote-utils.c (usage): Ditto.
8842 * remote.c (compare_sections_command): Ditto.
8843 Fix PR gdb/328.
8844
0e101458
AC
88452002-03-22 Andrew Cagney <ac131313@redhat.com>
8846
8847 * gdbtypes.c (append_composite_type_field): New function.
8848 (init_composite_type): New function.
8849 * gdbtypes.h (append_composite_type_field): Declare.
8850 (init_composite_type): Ditto.
8851
8e0662df
EZ
88522002-03-22 Elena Zannoni <ezannoni@redhat.com>
8853
8854 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8855 function.
8e0662df
EZ
8856 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8857 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8858 structure returning convention for SYSV ABI case, but not
8859 for GNU/Linux, FreeBSD, or NetBSD.
8860
3121eff0
DJ
88612002-03-22 Daniel Jacobowitz <drow@mvista.com>
8862
8863 * symtab.h (lookup_block_symbol): Add mangled_name argument
8864 to prototype.
8865
8866 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8867 with new mangled_name argument.
8868 * linespec.c (decode_line_1): Likewise.
8869 * valops (value_of_this): Likewise.
8870 * symtab.c (lookup_transparent_type): Likewise.
8871 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8872 (lookup_symbol): If we are given a mangled name, pass it down
8873 to lookup_symbol_aux.
8874 (lookup_block_symbol): If we are given a mangled name to check
8875 against, only return symbols which match it.
8876
349b409f
CF
88772002-03-22 Christopher Faylor <cgf@redhat.com>
8878
8879 * win32-nat.c (child_create_inferior): Check for proper shell to use
8880 here, in case the user changes it on the fly.
8881 (_initialize_inftarg): Remove shell path considerations.
8882
2a873819
EZ
88832002-03-21 Elena Zannoni <ezannoni@redhat.com>
8884
8885 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8886 for gdbarch_max_register_raw_size and max_register_virtual_size.
8887 Adjust copyright year.
8888
a1b9830c
DJ
88892002-03-21 Daniel Jacobowitz <drow@mvista.com>
8890
8891 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8892 in a function to cover the entire beginning of the function
8893 as well if it does not already.
8894
8b5790f2
TR
88952002-03-21 Tom Rix <trix@redhat.com>
8896
8897 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8898 (rs6000_ptrace64): Renamed from ptrace64.
8899
bdbe5747
MH
89002002-03-20 Martin M. Hunt <hunt@redhat.com>
8901
8902 * gdbserver/remote-utils.c (remote_open): Don't call
8903 getprotobyname, we're all using TCP here so just use
8904 IPPROTO_TCP.
7e336ba1 8905 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8906
89072002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8908
bdbe5747
MH
8909 * regcache.c (_initialize_regcache): No need to call
8910 build_regcache() at this time; it gets called whenever
8911 the gdbarch changes.
8912
7781cd62
DB
89132002-03-20 David O'Brien <obrien@FreeBSD.org>
8914
8915 * sparc-nat.c: Include sys/param.h where possible.
8916
f65ca430
DJ
89172002-03-20 Daniel Jacobowitz <drow@mvista.com>
8918
8919 Fix PR gdb/422.
8920 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8921 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8922 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8923 complex types.
8924 * stabsread.c (rs6000_builtin_type): Likewise.
8925 (read_sun_floating_type): Likewise.
8926
0c867556
PS
89272002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8928
8929 * stabsread.c (read_member_functions): Remove skip code for duplicate
8930 constructor/destructor methods. Use standard parsing for these
8931 methods and just do not chain them to the list of methods after
8932 parsing.
8933
12b9c64f
AO
89342002-03-19 Alexandre Oliva <aoliva@redhat.com>
8935
8936 * coffread.c: Remove redundant static declarations. Replace
8937 occurrences of `PTR' with `void *'.
8938 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8939 * top.h (quit_cover): Likewise.
8940 * defs.h (catch_errors): Likewise.
8941
349c5d5f
AC
89422002-03-18 Andrew Cagney <ac131313@redhat.com>
8943
8944 * defs.h (XMALLOC): Define.
8945 * gdb-events.sh (XMALLOC): Delete macro.
8946 * gdb-events.c, gdb-events.h: Regenerate.
8947 * gdbarch.sh (XMALLOC): Delete macro.
8948 * gdbarch.c: Regenerate.
8949 * serial.c (XMALLOC): Delete macro.
8950 * ui-file.c (XMALLOC): Ditto.
8951 * ser-unix.h (XMALLOC): Ditto.
8952 * sh-tdep.c (XMALLOC): Ditto.
8953 * ui-out.c (XMALLOC): Ditto.
8954 * utils.c (XMALLOC): Ditto.
8955 * i386-tdep.c (XMALLOC): Ditto.
8956 * gdb-events.c (XMALLOC): Ditto.
8957 * d10v-tdep.c (XMALLOC): Ditto.
8958 * cli-out.c (XMALLOC): Ditto.
8959
8960 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8961 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8962 * ui-file.c, ui-out.c: Ditto.
8963
7d0766f3
AC
89642002-03-18 Andrew Cagney <ac131313@redhat.com>
8965
8966 * command.h (struct cmd_list_element): Add field context.
8967 (set_cmd_context, get_cmd_context): Declare.
8968 * cli/cli-decode.h: Ditto.
8969 * cli/cli-decode.c (get_cmd_context): New function.
8970 (set_cmd_context): New function.
8971 (add_cmd): Initialize context.
8972 Part of fixing PR gdb/145 and PR gdb/146.
8973
5913bcb0
AC
89742002-03-17 Andrew Cagney <ac131313@redhat.com>
8975
1868c04e
AC
8976 * cli/cli-decode.c (cmd_type): New function.
8977 * command.h (cmd_type): Declare.
8978 * infrun.c (set_schedlock_func): Call function cmd_type.
8979 * kod.c (kod_set_os): Call cmd_type.
8980 * cris-tdep.c (cris_version_update): Use function cmd_type.
8981 (cris_mode_update, cris_abi_update): Ditto.
8982
5913bcb0
AC
8983 * command.h: (execute_cmd_post_hook): Declare.
8984 (execute_cmd_pre_hook): Declare.
8985 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8986 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8987 functions. Execute pre/post hook while ensuring that afterwords
8988 hook_in is cleared.
8989 * top.c (execute_command): Use execute_cmd_post_hook, and
8990 execute_cmd_pre_hook to execute pre/post commands.
8991 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8992 hook_stop_stub.
8993 (hook_stop_stub): Call execute_cmd_pre_hook.
8994
b51450c9
AC
89952002-03-17 Andrew Cagney <ac131313@redhat.com>
8996
8997 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8998 set'' and this leads to a core dump. Move xstrdup of
8999 operating_system to after check that it is not NULL.
9000
f66c9f11
AC
90012002-03-17 Andrew Cagney <ac131313@redhat.com>
9002
8e694ecf
AC
9003 * kod.c (kod_set_os): Remove unnecessary check that
9004 ``command->type'' is set_cmd.
9005
f66c9f11
AC
9006 * valprint.c (set_input_radix): Use input_radix.
9007 (set_output_radix): Use output_radix.
9008 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9009 isn't reverted.
9010
9d01611c
AC
90112002-03-16 Andrew Cagney <ac131313@redhat.com>
9012
9013 * value.h (struct value): Delete field ``substring_addr''. Change
9014 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
9015 force_core_addr_align and force_pointer_aligh.
9016
9017 * value.h (struct value): Fix typo in above change.
9d01611c 9018
4156bb53
PS
90192002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9020
9021 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9022 to fix internal_error from ``maintenance print architecture''.
9023
0e5e3ea6
PS
90242002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9025
9026 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9027 for gcc versions after gcc-2.8.1.
9028
9b013045
PS
90292002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9030
9031 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9032 for method resolution. Restore adjustment of ``this'' pointer after
9033 calling value_struct_elt, which was accidentally removed during the
9034 HP merge.
9035
376c9600
AC
90362002-03-15 Andrew Cagney <ac131313@redhat.com>
9037
9038 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9039 value_of_register.
9040 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9041 get_saved_register.
9042 * value.h (value_of_register): Update.
9043
a4db0f07
RH
90442002-03-14 Richard Henderson <rth@redhat.com>
9045
9046 * configure.in: Detect declaration for canonicalize_file_name.
9047 * utils.c (canonicalize_file_name): Declare, if needed.
9048 (gdb_realpath): Prefer realpath if available and usable.
9049 * config.in, configure: Rebuild.
9050
96383835
RH
90512002-03-14 Richard Henderson <rth@redhat.com>
9052
9053 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9054 a constant array bound.
9055
9056 * MAINTAINERS: Add myself to write-after-approval.
9057
75245b24
MS
90582002-03-14 Michael Snyder <msnyder@redhat.com>
9059
9060 * symfile.c (syms_from_objfile): Return immediately if no syms.
9061 (symbol_file_add): Return immediately if no syms.
9062 (find_sym_fns): Return immediately if no syms.
9063
e641a1ca
ML
90642002-03-13 Michal Ludvig <mludvig@suse.cz>
9065
9066 * gdbserver/remote-util.c (remote_open): Print remote-side's
9067 IP address when remote debugging over the network.
7e336ba1 9068
df08bfec
DB
90692002-03-12 David O'Brien <obrien@FreeBSD.org>
9070
9071 * config/sparc/fbsd.mh: Fix copyright.
9072 * config/sparc/fbsd.mt: Likewise.
9073
9a57864f
RE
90742002-03-11 Richard Earnshaw <rearnsha@arm.com>
9075
9076 * MAINTAINERS: Fix typo in name of gdb warnings option.
9077 (x86-64): Fix formating so that this can be parsed by awk.
9078
dd7bf85e
DJ
90792002-03-10 Daniel Jacobowitz <drow@mvista.com>
9080
9081 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9082 * defs.h: Include "gdb/signals.h".
9083 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9084
33a0a2ac
ML
90852002-03-10 Michal Ludvig <mludvig@suse.cz>
9086
9087 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 9088 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
9089 from x86-64-tdep.h
9090
dd824b04
DJ
90912002-03-10 Daniel Jacobowitz <drow@mvista.com>
9092 Don Howard <dhoward@redhat.com>
9093
9094 * mips-tdep.c (ST0_FR): Define.
9095 (mips2_fp_compat): New function, temporarily disabled.
9096 (mips_read_fp_register_single): New function.
9097 (mips_read_fp_register_double): New function.
9098 (mips_print_register): Use them.
9099 (do_fp_register_row): Likewise.
9100
6a41ff59
AC
91012002-03-09 Andrew Cagney <ac131313@redhat.com>
9102
9103 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9104 approval''.
9105
4ea09c10
PS
91062002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9107
9108 * stabsread.c (read_member_functions): Fix is_stub test for
9109 static member functions, improve comment.
9110
6ccc741d
RE
91112002-03-07 Richard Earnshaw <rearnsha@arm.com>
9112
9113 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9114 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9115 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9116 commands that set boolean values.
9117 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9118 (arm_rdi_resume): Always initialize PC.
9119 (arm_rdi_open): Don't use rslt as a boolean.
9120 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9121 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9122 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9123 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9124
438013df
AO
91252002-03-06 Alexandre Oliva <aoliva@redhat.com>
9126
9127 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9128 * configure: Rebuilt.
9129
70ed8774
SC
91302002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9131
9132 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9133 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9134
5ba2abeb
AC
91352002-03-06 Andrew Cagney <ac131313@redhat.com>
9136
9137 * cli/cli-decode.c (set_cmd_completer): New function.
9138 * command.h (set_cmd_completer): Declare.
9139 * cli/cli-decode.h (set_cmd_completer): Ditto.
9140
9141 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9142 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9143 * win32-nat.c (_initialize_inftarg): Ditto.
9144 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9145 * proc-api.c (_initialize_proc_api): Ditto.
9146 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9147 * source.c (_initialize_source): Ditto.
9148 * exec.c (_initialize_exec): Ditto.
9149 * solib.c (_initialize_solib): Ditto.
9150 * top.c (init_main): Ditto.
9151 * tracepoint.c (_initialize_tracepoint): Ditto.
9152 * symfile.c (_initialize_symfile): Ditto.
9153 * printcmd.c (_initialize_printcmd): Ditto.
9154 * infcmd.c (_initialize_infcmd): Ditto.
9155 * corefile.c (_initialize_core): Ditto.
9156
f779ca99
AC
91572002-03-05 Andrew Cagney <ac131313@redhat.com>
9158
9159 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9160
01a3934b
AC
91612002-03-05 Andrew Cagney <ac131313@redhat.com>
9162
9163 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9164
37057839
AC
91652002-03-05 Andrew Cagney <ac131313@redhat.com>
9166
9167 * NEWS: Update headings, 5.2 has branched.
9168
c6ecbae5
DJ
91692002-03-04 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9172 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9173 (register_addr, REGISTER_RAW_SIZE): Likewise.
9174 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9175 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9176
e9f30c21
ML
91772002-03-03 Michal Ludvig <mludvig@suse.cz>
9178
9179 * MAINTAINERS (x86-64): Add myself.
9180 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9181 changed value_ptr -> struct value *
9182
54394ac3
DB
91832002-03-01 David O'Brien <obrien@FreeBSD.org>
9184
9185 * configure.host (sparc64-*-freebsd): Add.
9186 * configure.tgt: Likewise.
9187 * config/sparc/fbsd.mh: New file.
9188 * config/sparc/fbsd.mt: Likewise.
9189 * config/sparc/nm-fbsd.h: Likewise.
9190 * config/sparc/tm-fbsd.h: Likewise.
9191
bfe95955
DJ
91922002-03-01 Daniel Jacobowitz <drow@mvista.com>
9193
9194 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9195 regformats/reg-s390x.dat.
9196
f33c6cbf
AC
91972002-03-01 Andrew Cagney <ac131313@redhat.com>
9198
9199 * utils.c: Add FIXME explaining true/false problem.
9200
5ecaa7dd
AC
92012002-02-28 Andrew Cagney <ac131313@redhat.com>
9202
9203 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9204
2a251cc2
MC
92052002-02-28 Michael Chastain <mec@shout.net>
9206
9207 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9208
6a8031a3 92092002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9210
9211 * gdbserver/linux-s390-low.c: New file.
9212 * regformats/reg-s390.dat: New file.
9213 * regformats/reg-s390x.dat: New file.
9214 * gdbserver/configure.srv: Add S/390.
9215 * gdbserver/Makefile.in: Add S/390.
9216 * configure.tgt: Enable gdbserver for S/390.
9217
ac469903
EZ
92182002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9219
9220 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9221 first line of the doc string for "info dos", except at the end of
9222 the sentence, since the short help stops at the first period.
9223
985cb1a3
JM
92242002-02-28 Jason Merrill <jason@redhat.com>
9225
9226 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9227
c570663e
FF
92282002-02-27 Fred Fish <fnf@redhat.com>
9229
9230 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9231 comment (dumy -> dummy).
9232
43630227
PS
92332002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9234
9235 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9236
b84911e8
RB
92372002-02-27 Rodney Brown <rbrown64@csc.com.au>
9238
9239 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9240
58caa3dc
DJ
92412002-02-27 Daniel Jacobowitz <drow@mvista.com>
9242
9243 * gdbserver/acconfig.h: New file.
9244 * gdbserver/i387-fp.c: New file.
9245 * gdbserver/i387-fp.h: New file.
9246 * gdbserver/linux-x86-64.c: New file.
9247 * regformats/reg-x86-64.dat: New file.
9248 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9249 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9250 * gdbserver/configure.in: Add support for regsets.
9251 * gdbserver/config.in: Regenerate.
9252 * gdbserver/configure: Regenerate.
9253 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9254 * gdbserver/linux-low.h: New file.
9255 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9256 for regsets.
9257 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9258 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9259 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9260 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9261 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9262 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9263 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9264 "i387-fp.h". Add PTRACE_GETREGS and friends.
9265 * gdbserver/regcache.c (supply_register): New function.
9266 (supply_register_by_name): New function.
9267 (collect_register): New function.
9268 (collect_register_by_name): New function.
9269
93652174
DJ
92702002-02-27 Daniel Jacobowitz <drow@mvista.com>
9271
9272 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9273 (config.status): Add configure.srv dependency.
9274 (server_h): Add config.h dependency.
9275
a02e4a61
DJ
92762002-02-27 Daniel Jacobowitz <drow@mvista.com>
9277
9278 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9279 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9280 * gdbserver/configure.srv: Change i386-*-linux* to use
9281 reg-i386-linux.o.
9282
ce0eebec
AC
92832002-02-26 Andrew Cagney <ac131313@redhat.com>
9284
9285 * x86-64-tdep.c: Re-indent. Update copyright date.
9286
82dbc5f7
AC
92872002-02-26 Andrew Cagney <ac131313@redhat.com>
9288
9289 From Michal Ludvig <mludvig@suse.cz>:
9290 * x86-64-tdep.c (value.h): Delete.
9291 (gdb_assert.h): Include.
9292 (x86_64_register_convert_to_virtual,
9293 x86_64_register_convert_to_raw ): Add check which lets only
9294 floating-point values to be converted.
9295 (value_push): Delete.
9296 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9297 (i386_gdbarch_init): Number of register_bytes fixed.
9298
e4621584
AC
92992002-02-26 Andrew Cagney <ac131313@redhat.com>
9300
9301 * MAINTAINERS: Add x86-64 target.
9302
81a9a963
AC
93032002-02-26 Andrew Cagney <ac131313@redhat.com>
9304
9305 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9306 * osfsolib.c (solib_map_sections): Ditto.
9307 * irix5-nat.c (solib_map_sections): Ditto.
9308 * corelow.c (gdb_check_format): Ditto.
9309 * symfile.c (symfile_bfd_open): Ditto.
9310 * solib.c (solib_map_sections): Ditto.
9311 Fix PR gdb/354.
7e336ba1 9312
0f017ab9
AC
93132002-02-26 Andrew Cagney <ac131313@redhat.com>
9314
9315 * remote.c (_initialize_remote): By default, disable ``e'' and
9316 ``E'' step out-of-range packets.
9317
75738c29
AS
93182002-02-26 Andreas Schwab <schwab@suse.de>
9319
9320 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9321 m68k_linux_frame_saved_pc.
9322 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9323 in_sigtramp.
9324 (SIGCONTEXT_PC_OFFSET): Remove.
9325 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9326 m68k_linux_sigtramp_saved_pc): New functions.
9327 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9328 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9329 (UCONTEXT_PC_OFFSET): Define.
9330 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9331 non-RT and RT signal trampolines.
9332
7e8ed687
RE
93332002-02-26 Richard Earnshaw <rearnsha@arm.com>
9334
9335 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9336 (TARGET_NBPG, STACK_END_ADDR): Delete
9337 (VARIABLES_INSIDE_BLOCK): Delete.
9338
6972bc8b
AC
93392002-02-25 Andrew Cagney <ac131313@redhat.com>
9340
9341 * utils.c (perror_with_name): Make string parameter constant.
9342 (print_sys_errmsg): Ditto.
9343 (query): Ditto.
9344 * defs.h (perror_with_name): Update.
9345 (print_sys_errmsg): Update.
9346 (query): Update.
9347
aa32f823
DJ
93482002-02-25 Daniel Jacobowitz <drow@mvista.com>
9349
9350 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9351 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9352
19caaa45
PS
93532002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9354
9355 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9356 if it already matches the current architecture from the exec file.
9357 Include arch-utils.h for gdbarch_info_init prototype.
9358 * Makefile.in (rs6000-nat.o): Update dependencies.
9359
d951901f
EZ
93602002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9361
9362 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9363 list of exported variables.
9364
7ea81414
DJ
93652002-02-24 Daniel Jacobowitz <drow@mvista.com>
9366
9367 * gdbserver/configure.srv: New file.
9368 * gdbserver/configure.in: Use configure.srv instead
9369 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9370 from it.
9371 * gdbserver/configure: Regenerated.
9372 * gdbserver/terminal.h: New file.
9373 * gdbserver/Makefile.in: Update for configure changes. Remove
9374 more unneeded include paths.
9375
080fe24b
AC
93762002-02-24 Andrew Cagney <ac131313@redhat.com>
9377
9378 From wiz at danbala:
9379 * config/sparc/tm-sp64.h: Fix grammar and typos.
9380 Fix PR gdb/287.
9381
8605d56e
AC
93822002-02-24 Andrew Cagney <ac131313@redhat.com>
9383
9384 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9385 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9386 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9387 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9388 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9389 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9390 * s390-tdep.c: Ditto.
92362027
AC
9391 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9392 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9393 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9394 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9395 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9396 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9397 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9398 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9399 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9400 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9401 Fix PR gdb/378.
7e336ba1 9402
8ed32cc0
AC
94032002-02-23 Andrew Cagney <ac131313@redhat.com>
9404
a3007b6f
AC
9405 * lin-thread.c: Delete file.
9406 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9407 to gdb_proc_service.h.
9408 * configure: Re-generate.
9409
50a9e2f1
AC
9410 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9411 * serial.c (serial_open): Delete check for "ocd".
9412 Fix PR gdb/349.
9413
8b6e7932
AC
9414 * Makefile.in (linux-thread.o): Delete target.
9415 * linux-thread.c: Delete file.
9416
d155c46b
AC
9417 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9418 renamed SH files to be consistent.
9419
8ed32cc0
AC
9420 * symtab.c (sort_search_symbols): Use xfree.
9421
0e18d038
RE
94222002-02-23 Richard Earnshaw <rearnsha@arm.com>
9423
9424 * arm-linux-tdep.c (arm_linux_init_abi): Register
9425 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9426 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9427 definition with undef, since we don't want the sysvr4 definition.
9428 (SKIP_TRAMPOLINE_CODE): Likewise.
9429
27aac7ff
AC
94302002-02-23 Andrew Cagney <ac131313@redhat.com>
9431
9432 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9433
9434 * configure.in: (AC_CHECK_FUNCS) Added test for
9435 canonicalize_file_name Regenerated.
9436 * config.in, configure: Regenerated.
9437 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9438 defined use canonicalize_file_name.
7e336ba1 9439
65a6e0ee
MC
94402002-02-23 Michael Chastain <mec@shout.net>
9441
9442 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9443
47b95330
AC
94442002-02-23 Andrew Cagney <ac131313@redhat.com>
9445
9446 * README: Remove references to cygnus.com.
9447 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9448 dot com'' form. Remove references to cygnus.com and sourceware.
9449
696f451b
AC
94502002-02-23 Andrew Cagney <ac131313@redhat.com>
9451
9452 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9453 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9454 1003.1-2001 no longer allows "head -1".
9455 * gdb/Makefile.in (version.c): Likewise.
9456 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9457 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9458 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9459
bbaca940
AC
94602002-02-23 Andrew Cagney <ac131313@redhat.com>
9461
9462 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9463 * command.h (cmd_cfunc_eq): Declare.
9464 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9465
9466 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9467 ``struct cmd_list_element *''.
9468 * cli/cli-cmds.c (is_complete_command): Update. Use
9469 cmd_cfunc_eq.
9470 * top.c (execute_command): Pass the command to
9471 is_complete_command.
9472 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9473
b8b8b047
AC
94742002-02-23 Andrew Cagney <ac131313@redhat.com>
9475
9476 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9477 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9478 architecture defines.
9479 * s390-tdep.c (s390_gdbarch_init): Likewise.
9480
19d3fc80
RE
94812002-02-23 Richard Earnshaw <rearnsha@arm.com>
9482
9483 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9484 (arm_linux_push_arguments): Likewise.
9485 (arm_linux_init_abi): Register them. Also register linux-specific
9486 call_dummy_words.
9487 (find_minsym_and_objfile): Use strcmp, not STREQ.
9488 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9489 (arm_linux_call_dummy_words): Delete declaration.
9490 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9491 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9492 declarations.
9493 (LOWEST_PC): Delete.
9494
3ab13650
PS
94952002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9496
9497 * maint.c (print_section_info): Do not prepend `0x' to filepos
9498 output, it will be handled by local_hex_string_custom.
9499
19d3fc80 95002002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9501
9502 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9503 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9504 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9505
d85a5daf
JB
95062002-02-22 Jim Blandy <jimb@redhat.com>
9507
9508 Indicate that the bcache functions don't change the strings
9509 they're passed.
9510 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9511 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9512
eeb25b8a
PM
95132002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9514
9515 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9516
6badb179
CF
95172002-02-21 Christopher Faylor <cgf@redhat.com>
9518
9519 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9520 find the complete path to a loaded DLL.
9521
e8717518
FF
95222002-02-21 Fred Fish <fnf@redhat.com>
9523
9524 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9525 that marks the end of the range of a function, enter a line number
9526 entry that has a line number of zero and a PC offset that matches
9527 the end of the function. This starts a range of PC's for which no
9528 line number information is known.
9529 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9530 PC's for which no line number info is found (line number is zero)
9531 then we didn't find any valid line information.
9532 * symtab.h: Document use of zero line number entry.
9533
9abe5450
EZ
95342002-02-21 Elena Zannoni <ezannoni@redhat.com>
9535
9536 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9537 (have_ptrace_getvrregs): Define for run time checks.
9538 (gdb_vrregset_t): New type for Altivec register handling.
9539 (fetch_register, store_register): Fetch/store altivec register
9540 when needed.
9541 (fetch_altivec_register, store_altivec_register): New functions.
9542 (supply_vrregset, fill_vrregset): New functions.
9543 (fetch_altivec_registers, store_altivec_registers): New functions.
9544 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9545 registers as well.
9546
aaa38bb5
AJ
95472002-02-21 Jiri Smid <smid@suse.cz>
9548
9549 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9550
b34db576
RE
95512002-02-21 Richard Earnshaw <rearnsha@arm.com>
9552
9553 * Makefile.in (armnbsd-nat.o): Update dependencies.
9554 * armnbsd-nat.c (supply_gregset): New function. Common code to
9555 supply the integer register set.
9556 (supply_fparegset): New function. Similar for FPA registers.
9557 (fetch_regs, fetch_fp_regs): Use them.
9558 (fetch_core_registers): Likewise.
9559 (fetch_elfcore_registers): New function.
9560 (arm_netbsd_elfcore_fns): New core-file type specification.
9561 (_initialize_arm_netbsd_nat): Register it.
9562
3e56fc4b
RE
95632002-02-21 Richard Earnshaw <rearnsha@arm.com>
9564
9565 * armnbsd-nat.c: Include gdbcore.h.
9566 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9567 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9568 'void' to declaration, to shut up ARI.
9569 (fetch_core_registers): Make static. Rewrite using supply_register.
9570 (arm_netbsd_core_fns): New core-file type specification.
9571 (_initialize_arm_netbsd_nat): New function.
9572
097f6b0b
CF
95732002-02-21 Christopher Faylor <cgf@redhat.com>
9574
9575 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9576 value.
9577
c914e0cc
CF
95782002-02-20 Christopher Faylor <cgf@redhat.com>
9579
9580 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9581 fails.
9582
385fa495
DJ
95832002-02-20 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * jv-exp.y (parse_number): Change type of implicit longs
9586 to builtin_type_uint64.
9587
e5f1222d
DJ
95882002-02-20 Daniel Jacobowitz <drow@mvista.com>
9589
9590 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9591 to be an integer instead of a `union wait'.
9592
75c9abc6
DJ
95932002-02-20 Daniel Jacobowitz <drow@mvista.com>
9594
9595 * mips-linux-nat.c: Call the operating system GNU/Linux.
9596 * mips-linux-tdep.c: Likewise.
9597 * mips-tdep.c: Likewise.
9598
551792a5
DJ
95992002-02-20 Daniel Jacobowitz <drow@mvista.com>
9600
9601 Fix PR gdb/265.
9602 * jv-exp.y (parse_number): Handle 64-bit integers.
9603
ee6e2b82
DJ
96042002-02-20 Daniel Jacobowitz <drow@mvista.com>
9605
9606 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9607 AC_STDC_HEADERS to AC_HEADER_STDC.
9608 * gdbserver/configure: Regenerated.
9609
a48442a0
RE
96102002-02-20 Richard Earnshaw <rearnsha@arm.com>
9611
9612 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9613 is defined.
9614 * sparc-tdep.c (get_longjmp_target): Likewise.
9615
fe419ffc
RE
96162002-02-20 Richard Earnshaw <rearnsha@arm.com>
9617
9618 * News: Add news about ARM and Multi-arch. Mention the new target
9619 arm*-*-netbsd*.
9620
5832ed7e
JB
96212002-02-19 Jim Blandy <jimb@redhat.com>
9622
9623 * stabsread.c (error_type_complaint): Improve error message.
9624
84563040
DJ
96252002-02-19 Daniel Jacobowitz <drow@mvista.com>
9626
9627 * gdbserver/README: Update documentation.
9628 * gdbserver/configure.in: Update configury to match documentation.
9629 * gdbserver/Makefile.in: Likewise.
9630 * gdbserver/configure: Regenerated.
9631 * gdbserver/aclocal.m4: New file, generated by aclocal.
9632 * gdbserver/config.in: New file, generated by autoheader.
9633
375fd65b
RE
96342002-02-19 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9637 armnbsd-nat.c.
9638
08216dd7
RE
96392002-02-19 Richard Earnshaw <rearnsha@arm.com>
9640
9641 * arm-tdep.h (enum arm_float_model): New enum.
9642 (struct gdbarch_tdep): Add fp_model.
9643 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9644 up floating-point conversions until we know the floating-point model
9645 in use by the inferior. Don't complain about being unable to
9646 determine the ABI of the inferior when we don't have one.
9647 (arm_extract_return_value): Support different floating-point models.
9648 (arm_store_return_value): Likewise.
aaa38bb5 9649 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9650 ARM_FLOAT_SOFT.
9651 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9652
65d6d66a
PS
96532002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9654
9655 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9656 of ``current_gdbarch''.
9657
47221191
RE
96582002-02-19 Richard Earnshaw <rearnsha@arm.com>
9659
9660 * armnbsd-nat.c : ANSIfy all function declarations.
9661 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9662 (fetch_inferior_registers): Re-implement in terms of above.
9663 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9664 (store_inferior_registers): Re-implement in terms of above.
9665
fdf39c9a
RE
96662002-02-19 Richard Earnshaw <rearnsha@arm.com>
9667
aaa38bb5 9668 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9669 kernel.
9670 * arm-linux-tdep.c: Likewise.
9671 * config/arm/tm-linux.h: Likewise.
9672
93247f88
RE
96732002-02-19 Richard Earnshaw <rearnsha@arm.com>
9674
9675 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9676 * config/arm/nbsd.mt (TM_FILE): Delete.
9677 * config/arm/tm-nbsd.h: Delete.
9678
d7b486e7
RE
96792002-02-19 Richard Earnshaw <rearnsha@arm.com>
9680
9681 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9682 Initialize CALL_DUMMY_LENGTH.
9683
41d39a95
RE
96842002-02-19 Richard Earnshaw <rearnsha@arm.com>
9685
9686 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9687 function.
9688 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9689 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9690 defines one thing and that is incorrect for this port.
9691 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9692
e1195560
PM
96932002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9694
9695 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9696
c1748f97
PM
96972002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9698
9699 * win32-nat.c (display_selector): New function. Displays information
9700 about the information returned by GetThreadSelectorEntry API function.
9701 (display_selectors): New function. Displays the infomation of
9702 the selector given as argument, or of CS, DS ans FS selectors
9703 if no argument is given.
9704 ( _initialize_inftarg): Add "w32" as info prefix command.
9705 Add "info w32 selector" as command calling display_selectors.
9706
e41e6bbf
PM
97072002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9708
9709 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9710 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9711 if not defined.
9712
0d3a9f48
RE
97132002-02-18 Richard Earnshaw <rearnsha@arm.com>
9714
9715 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9716
3fb4b924
RE
97172002-02-18 Richard Earnshaw <rearnsha@arm.com>
9718
9719 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9720 (arm_fix_call_dummy): Call it.
9721 (arm_call_dummy_breakpoint_offset): Delete.
9722 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9723 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9724
7f55af32
AC
97252002-02-18 Andrew Cagney <ac131313@redhat.com>
9726
9727 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9728 Default to func_frame_chain_valid.
9729 * gdbarch.h, gdbarch.c: Re-generate.
9730 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9731
05f13b9c
EZ
97322002-02-18 Elena Zannoni <ezannoni@redhat.com>
9733
9734 * ppc-linux-nat.c: Update copyright.
9735 (fetch_register, store_register): Add tid parameter, don't compute
9736 tid here.
9737 (fetch_ppc_registers, store_ppc_registers): Add tid
9738 parameter. Pass it along to callees.
9739 (fetch_inferior_registers, store_inferior_registers): Compute tid
9740 here, and pass it to calleed functions.
9741 (fill_gregset, supply_fpregset): Clean up formatting.
9742
d7afb4c9
RE
97432002-02-18 Richard Earnshaw <rearnsha@arm.com>
9744
9745 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9746 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9747
9df628e0
RE
97482002-02-18 Richard Earnshaw <rearnsha@arm.com>
9749
9750 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9751 * gdbarch.c gdbarch.h: Regenerate.
9752 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9753 function.
9754 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9755 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9756 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9757
9758 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9759 * arm-tdep.c (arm_get_longjmp_target): New function.
9760 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9761 this to a positive value register arm_get_longjmp_target as the
9762 longjmp handler.
9763 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9764 (arm_linux_init_abi): Set up longjmp description in tdep.
9765 * armnbsd-nat.c (get_longjmp_target): Delete.
9766 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9767 description in tdep.
9768 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9769 (get_longjmp_target): Delete declaration.
9770 (GET_LONGJMP_TARGET): Delete.
9771 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9772 (GET_LONGJMP_TARGET): Delete.
9773
57bc8964
KB
97742002-02-17 Kevin Buettner <kevinb@redhat.com>
9775
9776 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9777 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9778 of ``current_gdbarch''.
9779
83d31a92
TT
97802002-02-17 Tom Tromey <tromey@redhat.com>
9781
9782 * cli/cli-cmds.c (compare_strings): New function.
9783 (complete_command): Only print each unique item once.
9784 * completer.h (complete_line): Declare.
9785 * completer.c (complete_line): New function.
9786 (line_completion_function): Use it.
9787
17ef5d92
AC
97882002-02-16 Andrew Cagney <ac131313@redhat.com>
9789
9790 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9791 * gdbarch.h, gdbarch.c: Re-generate.
9792
491b8946
DJ
97932002-02-16 Daniel Jacobowitz <drow@mvista.com>
9794
9795 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9796
97972002-02-16 Daniel Jacobowitz <drow@mvista.com>
9798
9799 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9800 * valops.c (value_arg_coerce): Don't take the address of a reference
9801 to convert an argument to a reference.
9802
dfe7f3ac
CF
98032002-02-15 Christopher Faylor <cgf@redhat.com>
9804
9805 * win32-nat.c (get_image_name): New function.
9806 (handle_load_dll): Use get_image_name function.
9807 (get_child_debug_event): Avoid registering debug events until possibly
9808 execed process is started.
9809 (child_create_inferior): Allow invocation via shell so that command
9810 line redirection, etc. works ok.
9811 (_initialize_inftarg): Add new command: "set shell" to control whether
9812 a shell is used to start a process.
9813
1d33e73a
DJ
98142002-02-15 Daniel Jacobowitz <drow@mvista.com>
9815
9816 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9817 instead of find_register_by_number.
9818 (cannot_store_register): Likewise.
9819
48cd0caa
PM
98202002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9821
aaa38bb5 9822 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9823 fprintf_unfiltered (gdb_stderr, ...).
9824
8656e7d8
DJ
98252002-02-15 Daniel Jacobowitz <drow@mvista.com>
9826
9827 * gdbserver/gdbserver.1: Document --attach.
9828
66e810cd
RE
98292002-02-15 Richard Earnshaw <rearnsha@arm.com>
9830
9831 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9832 descriptions.
9833 * arm-tdep.c (arm_default_arm_le_breakpoint)
9834 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9835 (arm_default_thumb_be_breakpoint): New. Initialize them from
9836 traditional breakpoint defines.
9837 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9838 (arm_gdbarch_init): Initialize new breakpoint variables.
9839 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9840 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9841 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9842 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9843 code out to ...
9844 (arm_netbsd_init_abi_common): ... here; new function.
9845 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9846 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9847 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9848 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9849
97e03143
RE
98502002-02-15 Richard Earnshaw <rearnsha@arm.com>
9851
9852 * arm-tdep.h (enum arm_abi): New enum.
9853 (struct gdbarch_tdep): New structure.
9854 (LOWEST_PC): Provide a default.
9855 (arm_gdbarch_register_os_abi): Declare new function.
9856 * arm-tdep.c (arm_abi_names): New array.
9857 (process_note_abi_tag_sections): New function.
9858 (get_elfosabi): New function.
9859 (arm_gdbarch_register_os_abi): New function.
9860 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9861 support for that ABI has been built in, then call the appropriate
9862 configuration routine. Use gdbarch_num_regs() to get the number
9863 of registers.
9864 (arm_dump_tdep): New function.
9865 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9866 place-holder functions.
9867 (_initialize_arm_tdep): Register them.
9868 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9869
9870 * armnbsd-tdep.c: New file.
9871 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9872 * config/arm/nbsd.mt (TDEPFILES): Add it.
9873 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9874
9875 * armnbsd-nat.c: Include regcache.h.
9876 * Makefile.in (armnbsd-nat.o): Update dependency list.
9877
9878 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9879
ad68be46
DJ
98802002-02-14 Daniel Jacobowitz <drow@mvista.com>
9881
9882 * gdbserver/Makefile.in: Fix typos in target rules.
9883
003d6d1d
DJ
98842002-02-14 Daniel Jacobowitz <drow@mvista.com>
9885
aaa38bb5 9886 Fix part of PR gdb/267.
003d6d1d
DJ
9887 * linespec.c (find_methods): Handle constructors specially for now.
9888
6b230f1b
CV
98892002-02-14 Corinna Vinschen <vinschen@redhat.com>
9890
9891 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9892 handling.
9893 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9894 standard_coerce_float_to_double().
9895
1ea98d12
CF
98962002-02-14 Christopher Faylor <cgf@redhat.com>
9897
9898 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9899 GDBINIT_FILENAME.
9900
dd47e6fd
EZ
99012002-02-14 Elena Zannoni <ezannoni@redhat.com>
9902
9903 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9904 find_variant_by_name, because it confuses the multiarch
9905 framework. Return NULL if there isn't an architecture with the
9906 user supplied name, instead of forcing a different one without
9907 recording the change with the multiarch machinery.
9908 (find_variant_by_name): Delete.
9909
d7e39b9e
PS
99102002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9911
9912 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9913 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9914
76e42a4f
MH
99152002-02-13 Martin M. Hunt <hunt@redhat.com>
9916
aaa38bb5 9917 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9918 print_frame_info_listing_hook, set current_source_symtab.
9919
0a30fbc4
DJ
99202002-02-14 Daniel Jacobowitz <drow@mvista.com>
9921
9922 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9923 and remove unused $(INCLUDE_DIR).
9924 Add regcache.c to OBS.
9925 Add generated register protocol files to clean target.
9926 Update dependencies for new objects, obsolete old target code.
9927
9928 * gdbserver/linux-low.c: Remove all platform-specific code to
9929 new files. Remove various dead code. Update to use regcache
9930 functionality.
9931 * gdbserver/remote-utils.c (fromhex): Add return statement
9932 to quiet warning.
9933 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9934 constant.
9935 (input_interrupt): Add integer parameter to match prototype
9936 of a signal handler.
9937 (outreg): Use register_data ().
9938 (prepare_resume_reply): Use gdbserver_expedite_regs.
9939 * gdbserver/server.c (main): Dynamically allocate own_buf because
9940 PBUFSIZ is no longer constant. Use registers_to_string () and
9941 registers_from_string ().
9942 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9943 for error (), fatal (), and warning (). Update definition of
9944 PBUFSIZ to use regcache functionality. Add include guard.
9945 * gdbserver/utils.c (fatal): Add missing ``const''.
9946 (warning): New function.
9947
9948 * regformats/regdat.sh: Include "regcache.h" in generated files.
9949 Provide init_registers () function.
9950 * regformats/regdef.h: Add prototype for set_register_cache ().
9951 Add include guard.
9952
9953 * gdbserver/linux-arm-low.c: New file.
9954 * gdbserver/linux-i386-low.c: New file.
9955 * gdbserver/linux-ia64-low.c: New file.
9956 * gdbserver/linux-m68k-low.c: New file.
9957 * gdbserver/linux-mips-low.c: New file.
9958 * gdbserver/linux-ppc-low.c: New file.
9959 * gdbserver/linux-sh-low.c: New file.
9960
9961 * gdbserver/regcache.c: New file.
9962 * gdbserver/regcache.h: New file.
9963
9964 * gdbserver/low-linux.c: Removed obsolete file.
9965
4cc841d0
DJ
99662002-02-14 Daniel Jacobowitz <drow@mvista.com>
9967
9968 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9969 * config/i386/linux.mt: Likewise.
9970 * config/ia64/linux.mt: Likewise.
9971 * config/m68k/linux.mh: Likewise.
9972 * config/powerpc/linux.mh: Likewise.
9973 * config/mips/linux.mt: Likewise.
9974
9975 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9976
9977 * config/i386/i386lynx.mh: Mark gdbserver variables
9978 as (currently) obsolete for this target.
9979 * config/i386/nbsd.mt: Likewise.
9980 * config/i386/nbsdelf.mt: Likewise.
9981 * config/m32r/m32r.mt: Likewise.
9982 * config/m68k/m68klynx.mh: Likewise.
9983 * config/m68k/nbsd.mt: Likewise.
9984 * config/m68k/sun3os4.mh: Likewise.
9985 * config/mips/vr5000.mt: Likewise.
9986 * config/ns32k/nbsd.mt: Likewise.
9987 * config/pa/hppabsd.mh: Likewise.
9988 * config/pa/hppaosf.mh: Likewise.
9989 * config/powerpc/nbsd.mt: Likewise.
9990 * config/rs6000/rs6000lynx.mh: Likewise.
9991 * config/s390/s390.mt: Likewise.
9992 * config/s390/s390x.mt: Likewise.
9993 * config/sparc/sparclynx.mh: Likewise.
9994 * config/sparc/sun4os4.mh: Likewise.
9995 * config/i386/x86-64linux.mt: Likewise.
9996 * config/sparc/linux.mh: Likewise.
9997
a85f51e7
DJ
99982002-02-14 Daniel Jacobowitz <drow@mvista.com>
9999
10000 * configure.tgt: Configure gdbserver only for known working
10001 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10002 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10003 SUBDIRS if it is configured. Update comment for ${nativefile}.
10004 * configure: Regenerated.
10005
65554fef
MS
100062002-02-13 Michael Snyder <msnyder@redhat.com>
10007
670a52db
MS
10008 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10009
6dbdc4a3
MS
10010 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10011 (default_gcore_mach): Just return 0, work around a problem in bfd.
10012 (default_gcore_target): OK to return NULL if exec_bfd is null.
10013 (make_mem_sec): Use a cast, avoid a warning.
10014
10015 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 10016 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
10017 sizeof (host pointer) != sizeof (target pointer)).
10018 (procfs_make_note_section): Avoid overflow in psargs string.
10019
aaa38bb5 10020 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
10021 implementation return an error.
10022
100232002-02-13 Rodney Brown <rbrown64@csc.com.au>
10024
10025 * procfs.c (procfs_make_note_section): Provide a default definition
10026 (for alpha-dec-osf4.0f). Fix typos.
10027
1e4d76e7
EZ
100282002-02-13 Elena Zannoni <ezannoni@redhat.com>
10029
10030 * linux-proc.c: Add include of regcache.h.
10031 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10032
b6d1a1d5
AC
100332002-02-13 Andrew Cagney <ac131313@redhat.com>
10034
10035 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
10036 * memattr.c (create_mem_region): Disallow useless empty region.
10037 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 10038 non-overlapping.
b6d1a1d5 10039
6c6ea35e
MC
100402002-02-13 Michael Chastain <mec@shout.net>
10041
10042 * defs.h: Kill CONST_PTR.
10043 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10044 * c-lang.c (c_builtin_types): Likewise.
10045 * ch-lang.c (ch_builtin_types): Likewise.
10046 * f-lang.c (f_builtin_types): Likewise.
10047 * language.c (unknown_builtin_types): Likewise.
10048 * m2-lang.c (m2_builtin_types): Likewise.
10049 * p-lang.c (pascal_builtin_types): Likewise.
10050 * scm-lang.c (c_builtin_types): Likewise.
10051
3e0b0f48
KS
100522002-02-13 Keith Seitz <keiths@redhat.com>
10053
10054 * arm-tdep.h (arm_get_next_pc): Add declaration.
10055
67255d04
RE
100562002-02-13 Richard Earnshaw <rearnsha@arm.com>
10057
10058 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10059 with other related struct-returning functions.
10060 (arm_extract_struct_value_address): New function.
10061 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10062 initialize float_format, double_format and long_double_format as
10063 appropriate to the endianness of the target.
10064 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10065 (arm_use_struct_convention): Delete declaration.
10066 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10067
079777f6
KS
100682002-02-13 Keith Seitz <keiths@redhat.com>
10069
10070 * defs.h (core_addr_to_string_nz): New function.
10071
34588f23
MK
100722002-02-13 Mark Kettenis <kettenis@gnu.org>
10073
10074 Apply missing bits of 2002-01-15 patch.
10075 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10076 (fill_fpregset): Use i387_fill_fsave.
10077
49b563f9
KS
100782002-02-12 Keith Seitz <keiths@redhat.com>
10079
49b563f9
KS
10080 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10081 (core_addr_to_string_nz): New function.
10082
aeb98c60
RE
100832002-02-11 Richard Earnshaw <rearnsha@arm.com>
10084
10085 * arm-linux-nat.c: Really include arm-tdep.h.
10086 * config/arm/tm-linux.h (struct type, struct value): Declare.
10087
65554fef
MS
100882002-02-11 Michael Snyder <msnyder@redhat.com>
10089
10090 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10091 (gcore section): Ifdef for Solaris and Unixware only.
10092 (procfs_do_thread_registers): Unixware needs one lwpstatus
10093 per thread (not one prstatus or pstatus).
10094 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10095 not over all gdb threads. For unixware, call elfcore_write_pstatus
10096 once before iterating over threads.
10097
34e8f22d
RE
100982002-02-11 Richard Earnshaw <rearnsha@arm.com>
10099
10100 * arm-tdep.h: New file.
10101 * arm-tdep.c: Include arm-tdep.h.
10102 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10103 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10104 (arm_print_float_info, arm_register_type, convert_to_extended)
10105 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10106 (arm_extract_return_value, arm_register_name): Make static.
10107 (arm_software_single_step): Similarly. Fix types in declaration.
10108 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10109 (arm_store_return_value, arm_store_struct_return): New functions.
10110 (arm_gdbarch_init): Register the above functions. Also register
10111 call_dummy_start_offset, sizeof_call_dummy_words,
10112 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10113 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10114 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10115 prologue_cache.saved_regs here, rather than ...
10116 (_initialize_arm_tdep): ... here.
10117 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10118 declarations.
10119 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10120 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10121 (arm_print_float_info, arm_register_type, convert_to_extended)
10122 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10123 (arm_extract_return_value, arm_register_name): Delete declarations.
10124 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10125 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10126 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10127 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10128 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10129 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10130 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10131 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10132 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10133 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10134 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10135 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10136 interface.
10137 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10138 * remote-rdi.c remote-rdp.c: Likewise.
10139 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10140 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10141 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10142 definition.
10143
10144 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10145 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10146 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10147 from non-ARM_ prefixed definitions.
10148 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10149 all uses of above.
10150 * remote-rdi.c remote-rdp.c: Likewise.
10151 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10152
148754e5
RE
101532002-02-11 Richard Earnshaw <rearnsha@arm.com>
10154
10155 * arm-tdep.c (arm_frameless_function_invocation)
10156 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10157 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10158 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10159 (arm_pop_frame, arm_get_next_pc): Make static.
10160 (arm_gdbarch_init): Register above in gdbarch structure.
10161 (arm_read_fp): Renamed from arm_target_read_fp.
10162 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10163 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10164 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10165 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10166 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10167 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10168 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10169 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10170 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10171 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10172 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10173
434d2d4f
DJ
101742002-02-10 Daniel Jacobowitz <drow@mvista.com>
10175
10176 * symtab.c (compare_search_syms): New function.
10177 (sort_search_symbols): New function.
10178 (search_symbols): Sort symbols after searching rather than
10179 before.
10180
55241689
AC
101812002-02-10 Andrew Cagney <ac131313@redhat.com>
10182
10183 * NEWS: Linux -> GNU/Linux.
10184
028c194b
AC
101852002-02-10 Andrew Cagney <ac131313@redhat.com>
10186
10187 * gdbarch.sh: For for level one methods, disallow a definition
10188 when partially multi-arched. Add comments explaining rationale.
10189 * gdbarch.h: Re-generate.
10190
6acf50cd
AC
101912002-02-10 Andrew Cagney <ac131313@redhat.com>
10192
10193 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10194 multi-arch partial.
aaa38bb5 10195
50248794
AC
101962002-02-10 Andrew Cagney <ac131313@redhat.com>
10197
10198 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10199 field. Use diff -u.
10200 * gdbarch.c: Re-generate.
10201
c30e0066
AC
102022002-02-10 Andrew Cagney <ac131313@redhat.com>
10203
9b56c5f3 10204 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10205 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10206 partial.
10207
6e6d6484
AC
102082002-02-10 Andrew Cagney <ac131313@redhat.com>
10209
10210 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10211 multi-arch partial.
10212 (PUSH_ARGUMENTS): Switch to using predefault.
10213 * gdbarch.c: Regenerate.
10214
c203844d
AC
102152002-02-10 Andrew Cagney <ac131313@redhat.com>
10216
10217 * valops.c (PUSH_ARGUMENTS): Delete definition.
10218 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10219 partial. Default to default_push_arguments.
10220 * gdbarch.h, gdbarch.c: Regenerate.
10221
b5a2688f
AC
102222002-02-09 Andrew Cagney <ac131313@redhat.com>
10223
10224 * defs.h (throw_exception): Rename return_to_top_level. Update
10225 comments.
10226 * utils.c (error_stream, internal_verror, quit): Ditto.
10227 * top.c (throw_exception, catcher): Ditto.
10228 * sparclet-rom.c (sparclet_load): Ditto.
10229 * remote.c (interrupt_query, minitelnet): Ditto.
10230 * remote-sds.c (interrupt_query): Ditto.
10231 * remote-mips.c (mips_error, mips_kill): Ditto.
10232 * ocd.c (interrupt_query): Ditto.
10233 * monitor.c (monitor_interrupt_query): Ditto.
10234 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10235 * target.h: Update comment.
aaa38bb5 10236
b5a2688f 10237 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10238
2fa5c1e0
AC
102392002-02-09 Andrew Cagney <ac131313@redhat.com>
10240
10241 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10242 default_double_format.
10243 * gdbarch.h, gdbarch.c: Re-generate.
10244 * findvar.c (floatformat_unknown): Delete variable definition.
10245 * doublest.h (floatformat_unknown): Delete variable declaration.
10246
da966255
JB
102472002-02-09 Jim Blandy <jimb@redhat.com>
10248
10249 * stabsread.c (read_type): Add code to parse Sun's syntax for
10250 prototyped function types.
10251
123a4891
AC
102522002-02-09 Andrew Cagney <ac131313@redhat.com>
10253
10254 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10255 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10256
fb39c8f3
PS
102572002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10258
10259 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10260 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10261 now _initialize_xcoffsolib gets called again and overrides the
10262 commands from solib.c in a native configuration.
10263
0b87a11d
MK
102642002-02-09 Mark Kettenis <kettenis@gnu.org>
10265
10266 * doublest.c (store_typed_floating): Don't try to return a value.
10267 Fixes PR gdb/290.
10268
bdc2fc72
JB
102692002-02-08 Jim Blandy <jimb@redhat.com>
10270
10271 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10272 is prototyped and has no arguments, print its argument list as
10273 `(void)'.
10274
da69bbcf
CD
102752002-02-08 Chris Demetriou <cgd@broadcom.com>
10276
10277 * MAINTAINERS (write-after-approval): Add myself.
10278 (paper-trail): I've escaped!
aaa38bb5 10279
b69571f5
CF
102802002-02-08 Christopher Faylor <cgf@redhat.com>
10281
10282 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10283 changes.
10284 (_initialize_check_for_gdb_ini): Ditto.
10285
f6871398
MH
102862002-02-08 Martin M. Hunt <hunt@redhat.com>
10287
10288 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10289 xaprintf -> xasprintf.
10290
4e52d31c
PM
102912002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10292
10293 * win32-nat.c: Remove use of printf and sprintf functions.
10294
39bbf761
RE
102952002-02-08 Richard Earnshaw <rearnsha@arm.com>
10296
10297 * arm-tdep.c (arm_frame_chain_valid): Make static.
10298 (arm_push_arguments): Likewise.
10299 (arm_gdbarch_init): New function.
10300 (_initialize_arm_tdep): Call it.
10301 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10302 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10303 (FRAME_CHAIN_VALID): Delete.
10304 (arm_frame_chain_valid): Delete declaration.
10305 (PUSH_ARGUMENTS): Delete.
10306 (arm_push_arguments): Delete declaration.
10307 (CALL_DUMMY_P): Delete.
10308
9c9532c9
CV
103092002-02-08 Andrew Cagney <ac131313@redhat.com>
10310 Corinna Vinschen <vinschen@redhat.com>
10311
10312 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10313 on builtin float types.
10314
4e8f7a8b
DJ
103152002-02-08 Daniel Jacobowitz <drow@mvista.com>
10316
10317 * utils.c: Include <curses.h> before "bfd.h".
10318 * tui/tui-hooks.c: Likewise.
10319 * tui/tui.c: Likewise.
10320 * tui/tuiCommand.c: Likewise.
10321 * tui/tuiData.c: Likewise.
10322 * tui/tuiDataWin.c: Likewise.
10323 * tui/tuiDisassem.c: Likewise.
10324 * tui/tuiGeneralWin.c: Likewise.
10325 * tui/tuiIO.c: Likewise.
10326 * tui/tuiLayout.c: Likewise.
10327 * tui/tuiRegs.c: Likewise.
10328 * tui/tuiSource.c: Likewise.
10329 * tui/tuiSourceWin.c: Likewise.
10330 * tui/tuiStack.c: Likewise.
10331 * tui/tuiWin.c: Likewise.
10332
cd4bffcf
EZ
103332002-02-07 Elena Zannoni <ezannoni@redhat.com>
10334
10335 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10336 to include space for pseudoregs as well. Update loops accordingly.
10337 (sh_fp_frame_init_saved_regs): Ditto.
10338 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10339
26806ce2
AC
103402002-02-07 Andrew Cagney <ac131313@redhat.com>
10341
10342 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10343 Add Richard Earnshaw to Arm maintainers.
10344
97fdab62
AC
103452002-02-07 Andrew Cagney <ac131313@redhat.com>
10346
a6b98203
AC
10347 * defs.h (warning_begin): Delete declaration.
10348
97fdab62
AC
10349 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10350 Delete macro.
10351
78b29b40
MS
103522002-02-07 Michael Snyder <msnyder@redhat.com>
10353
aaa38bb5 10354 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10355 Logic bug, remove misplaced else.
10356
d8849953
KD
103572002-02-07 Klee Dienes <klee@apple.com>
10358
10359 * fork-inferior.c (fork_inferior): Add '!' to the list of
10360 characters that need to be quoted when building a string for the
10361 shell. Quote '!' specifically with a backslash, since CSH chokes
10362 when trying to evaluate "str!str".
aaa38bb5 10363
095778a0
NC
103642002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10365
10366 * rdi-share/host.h: Only provide a typedef for bool if it is not
10367 defined.
10368
1900040c
MS
103692002-02-04 Michael Snyder <msnyder@redhat.com>
10370
10371 * breakpoint.h (enum bptype): Add new overlay event bp type.
10372 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10373
1900040c
MS
10374 * breakpoint.c (create_internal_breakpoint): New function.
10375 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10376 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10377 (create_thread_event_breakpoint): Ditto.
10378 (create_solib_event_breakpoint): Ditto.
10379 (create_overlay_event_breakpoint): New function.
10380 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10381 (update_breakpoints_after_exec): Delete and re-initialize
10382 overlay event breakpoints after an exec. Add FIXME comment
10383 about longjmp breakpoint.
10384 (print_it_typical): Ignore overlay event breakpoints.
10385 (print_one_breakpoint): Ditto.
10386 (mention): Ditto.
10387 (bpstat_what): Do not stop for overlay event breakpoints.
10388 (delete_breakpoint): Don't delete overlay event breakpoints.
10389 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10390 (breakpoint_re_set): Re-create overlay event breakpoint.
10391
10392 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10393 (overlay_manual_command): Disable overlay breakpoints.
10394 (overlay_off_command): Disable overlay breakpoints.
10395
082fc60d
RE
103962002-02-06 Richard Earnshaw <rearnsha@arm.com>
10397
10398 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10399 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10400 to here from config/tm-arm.h.
10401 (coff_sym_is_thumb): Make static.
10402 (arm_elf_make_msymbol_special): New function.
10403 (arm_coff_make_msymbol_special): New function.
10404 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10405 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10406 (coff_sym_is_thumb): Delete declaration.
10407 (arm_elf_make_msymbol_special): Declare.
10408 (arm_coff_make_msymbol_special): Declare.
10409 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10410 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10411
039c5766
RE
104122002-02-06 Richard Earnshaw <rearnsha@arm.com>
10413
10414 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10415
104162002-02-06 Richard Earnshaw <rearnsha@arm.com>
10417
10418 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10419 * gdbarch.c gdbarch.h: Regenerate.
10420 * arch-utils.c (default_print_float_info): New function.
10421 * arch-utils.h (default_print_float_info): Prototype it.
10422 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10423 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10424 (PRINT_FLOAT_INFO): Document it.
10425
10426 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10427 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10428 (PRINT_FLOAT_INFO): Define.
10429
58fa08f0
PM
104302002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10431
aaa38bb5 10432 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10433 Add typecast to sprintf argument to suppress a warning.
10434
7393af7c
PM
104352002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10436
58fa08f0 10437 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10438 to allow easier handling of pass state.
10439 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10440 that gives exception name and address.
10441 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10442 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10443 exceptions added.
aaa38bb5
AJ
10444 (child_continue): Correctly report continue_status.
10445 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10446 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10447 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10448 the exception should be passed to debuggee or not.
10449
6af4589c
MS
104502002-02-05 Michael Snyder <msnyder@redhat.com>
10451
10452 * regcache.c (fetch_register): Call target_fetch_register
10453 only if we don't call FETCH_PSEUDO_REGISTER.
10454 (store_register): Call target_store_register only if we
10455 don't call STORE_PSEUDO_REGISTER.
10456
a2cf933a
EZ
104572002-02-05 Elena Zannoni <ezannoni@redhat.com>
10458
10459 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10460 ELF_MAKE_MSYMBOL_SPECIAL.
10461 * gdbarch.c, gdbarch.h: Regenerate.
10462 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10463 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10464 * elfread.c (elf_symtab_read): Compile use of
10465 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10466 multiarched.
10467 * coffread.c (coff_symtab_read): Ditto, for
10468 COFF_MAKE_MSYMBOL_SPECIAL.
10469
6bb7be43
JB
104702002-02-05 Jim Blandy <jimb@redhat.com>
10471
10472 * solib-svr4.c (svr4_truncate_ptr): New function.
10473 (svr4_relocate_section_addresses): Do the address arithmetic with
10474 the appropriate truncation for target addresses, even when
10475 CORE_ADDR is larger than a target address.
10476
e18651ec
DJ
104772002-02-05 Daniel Jacobowitz <drow@mvista.com>
10478
10479 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10480 to (int *).
10481
6b2725be
DJ
104822002-02-05 Daniel Jacobowitz <drow@mvista.com>
10483
10484 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10485 code.
10486
fca9e603
DJ
104872002-02-05 Daniel Jacobowitz <drow@mvista.com>
10488
10489 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10490
6c537a52
DJ
104912002-02-05 Daniel Jacobowitz <drow@mvista.com>
10492
10493 * gdbserver/linux-low.c: Remove unused include files.
10494
d844cde6
DJ
104952002-02-05 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10498 (read_inferior_memory): Use it.
10499 (write_inferior_memory): Likewise.
10500
d07c63e7
DJ
105012002-02-05 Daniel Jacobowitz <drow@mvista.com>
10502
10503 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10504 grubbing through sys_errlist.
10505
da6d8c04
DJ
105062002-02-05 Daniel Jacobowitz <drow@mvista.com>
10507
10508 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10509
5b421780
PM
105102002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10511 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10512
9f60d481
AC
105132002-02-04 Andrew Cagney <ac131313@redhat.com>
10514
10515 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10516 (do_sfunc, set_cmd_sfunc): New functions.
10517
10518 * command.h (struct cmd_list_element): Add field func.
10519 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10520 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10521 * cli/cli-decode.h: Ditto.
10522
10523 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10524 (help_all, help_cmd_list): Ditto.
10525 (find_cmd, complete_on_cmdlist): Ditto.
10526 * top.c (execute_command): Ditto.
10527
10528 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10529 function.sfunc.
10530
10531 * infcmd.c (notice_args_read): Fix function signature.
10532
10533 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10534 * cli/cli-decode.c (add_set_cmd): Ditto.
10535 * utils.c (initialize_utils): Ditto.
10536 * maint.c (_initialize_maint_cmds): Ditto.
10537 * infrun.c (_initialize_infrun): Ditto.
10538 * demangle.c (_initialize_demangler): Ditto.
10539 * remote.c (add_packet_config_cmd): Ditto.
10540 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10541 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10542 * proc-api.c (_initialize_proc_api): Ditto.
10543 * kod.c (_initialize_kod): Ditto.
10544 * valprint.c (_initialize_valprint): Ditto.
10545 * top.c (init_main): Ditto.
10546 * infcmd.c (_initialize_infcmd): Ditto.
10547 * corefile.c (_initialize_core): Ditto.
10548 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10549 * arch-utils.c (initialize_current_architecture): Ditto.
10550 (_initialize_gdbarch_utils): Ditto.
10551 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10552
10553 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10554 * wince.c (_initialize_inftarg): Ditto.
10555 * symfile.c (_initialize_symfile): Ditto.
10556 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10557 * language.c (_initialize_language): Ditto.
10558 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10559
f9ba0717
MS
105602002-02-04 Michael Snyder <msnyder@redhat.com>
10561
10562 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10563
0c74b2a7
DJ
105642002-02-04 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10567 Add rules for building the register data files.
10568
c638789f
DJ
105692002-02-04 Daniel Jacobowitz <drow@mvista.com>
10570
10571 * regformats/regdat.sh: Add braces to the definition of
10572 expedite_regs_${arch}.
10573
db253027
DJ
105742002-02-04 Daniel Jacobowitz <drow@mvista.com>
10575
10576 * regformats/regdef.h (struct reg): Add comment describing the
10577 requirements for offset and size fields.
10578
206be19c
AS
105792002-02-04 Andreas Schwab <schwab@suse.de>
10580
10581 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10582 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10583
181c1381
RE
105842002-02-04 Richard Earnshaw <rearnsha@arm.com>
10585
10586 * gdbarch.sh (copyright): Update years in generated header.
10587 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10588 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10589 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10590 * dbxread.c: Likewise.
10591 * dwarfread.c: Likewise.
10592 * elfread.c: Likewise.
10593 * somread.c: Likewise.
10594
10595 * arm-tdep.c (arm_smash_text_address): New function.
10596 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10597
fa4ba8da
PM
105982002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10599
10600 Add support for hardware watchpoints on win32 native.
aaa38bb5 10601 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10602 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10603 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10604 of debug registers.
10605 (debug_registers_changed): New variable. Reflects when debug registers
10606 are changed and need to be written to inferior.
aaa38bb5 10607 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10608 was set, used when new threads are created.
10609 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10610 i386-nat code.
10611 (thread_rec): Set dr array if id is the thread of current_event .
10612 (child_continue, child_resume): Change the debug registers for all
10613 threads if debug_registers_changed.
10614 (child_add_thread): Change the debug registers if debug_registers_used.
10615 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10616 Link nm.h to new nm-cygwin.h file.
10617 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10618 of hardware registers.
10619
a73c86fb
AC
106202002-02-03 Andrew Cagney <ac131313@redhat.com>
10621
10622 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10623 Restore behavour broken by 2002-01-20 Andrew Cagney
10624 <ac131313@redhat.com> IEEE_FLOAT removal.
10625
acf5ed49
DJ
106262002-02-03 Daniel Jacobowitz <drow@mvista.com>
10627
10628 * c-valprint.c (c_val_print): Pass a proper valaddr to
10629 cp_print_class_method.
10630 * valops.c (search_struct_method): If there is only one method
10631 and args is NULL, return that method.
10632
493d28d5
DJ
106332002-02-03 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10636 accessing tag_name directly.
10637
7495dfdb
DJ
106382002-02-03 Daniel Jacobowitz <drow@mvista.com>
10639
10640 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10641 of accessing tag_name directly.
10642
dd6bda65
DJ
106432002-02-03 Daniel Jacobowitz <drow@mvista.com>
10644
10645 PR gdb/280
10646 * gdbtypes.c (replace_type): New function.
10647 * gdbtypes.h (replace_type): Add prototype.
10648 * stabsread.c (read_type): Use replace_type.
10649
88fe217c
RE
106502002-02-03 Richard Earnshaw <rearnsha@arm.com>
10651
10652 * Makefile.in (memattr.o): Add missing dependencies rule.
10653
e5d66720
PS
106542002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10655
10656 * breakpoint.c (break_at_finish_command): Really export.
10657 (break_at_finish_at_depth_command): Ditto.
10658 (tbreak_at_finish_command): Ditto.
10659 * hppa-tdep.c: Include completer.h.
10660 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10661 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10662
fffee0be
AC
106632002-02-01 Andrew Cagney <ac131313@redhat.com>
10664
10665 * utils.c (do_write): New function.
10666 (error_stream): Rewrite combining the code from error_begin and
10667 verror.
10668 (verror): Rewrite using error_stream.
10669 (error_begin): Delete function.
10670
255e7dbf
AC
106712002-02-01 Andrew Cagney <ac131313@redhat.com>
10672
10673 * utils.c (error_begin): Make static.
10674 * defs.h (error_begin): Delete declaration.
10675
10676 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10677 (decode_line_1): Use cplusplus_error instead of error_begin,
10678 cplusplus_hint and return_to_top_level.
10679 * coffread.c (coff_symfile_read): Use error instead of error_begin
10680 and return_to_top_level.
10681 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10682
ddfe3c15
AC
106832002-02-01 Andrew Cagney <ac131313@redhat.com>
10684
10685 * language.h (type_error, range_error): Make string parameter
10686 constant.
10687 * language.c (warning_pre_print): Delete extern declaration.
10688 * dwarfread.c (warning_pre_print): Ditto.
10689 * language.c (type_error, range_error): Rewrite to use verror and
10690 vwarning instead of warning_begin.
10691
03ac34d5
MS
106922002-02-01 Michael Snyder <msnyder@redhat.com>
10693
261c4ca2
MS
10694 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10695 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10696
e00d1dc8
AC
106972002-02-01 Andrew Cagney <ac131313@redhat.com>
10698
10699 * command.h (NO_FUNCTION): Delete macro.
10700 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10701 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10702 * tracepoint.c (_initialize_tracepoint): Ditto.
10703 * cli/cli-decode.c (add_set_cmd): Ditto.
10704 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10705
76b79d6e
DJ
107062002-02-01 Daniel Jacobowitz <drow@mvista.com>
10707
10708 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10709 Update ``this'' pointer when calling virtual functions.
10710
799f9e91
MS
107112002-02-01 Michael Snyder <msnyder@redhat.com>
10712
c7bd442c 10713 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10714 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10715
3cf384d4
DJ
107162002-02-01 Daniel Jacobowitz <drow@mvista.com>
10717
10718 * regformats/reg-arm.dat: New file.
10719 * regformats/reg-i386.dat: New file.
10720 * regformats/reg-ia64.dat: New file.
10721 * regformats/reg-m68k.dat: New file.
10722 * regformats/reg-mips.dat: New file.
10723 * regformats/reg-ppc.dat: New file.
10724 * regformats/reg-sh.dat: New file.
10725 * regformats/regdef.h: New file.
10726 * regformats/regdat.sh: New file.
10727
0defa245
RE
107282002-02-01 Richard Earnshaw <reanrsha@arm.com>
10729
10730 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10731 (arm_frame_args_address, arm_frame_locals_address): New functions.
10732 (arm_frame_num_args): New function.
10733 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10734 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10735 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10736
405f26e6
MS
107372002-01-31 Michael Snyder <msnyder@redhat.com>
10738
502fd408
MS
10739 * breakpoint.c (break_at_finish_command): Export.
10740 (break_at_finish_at_depth_command): Export.
10741 (tbreak_at_finish_command): Export.
d6020d45 10742 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10743 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10744 "txbreak" commands, which are HPPA specific.
502fd408 10745
7d35e135
MS
10746 * printcmd.c (disassemble_command): Remove an ancient
10747 artifact of an old merge.
10748
aaa38bb5 10749 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10750 Define enum constant values for overlay mode.
10751 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10752 (overlay_is_mapped, overlay_auto_command,
10753 overlay_manual_command): Ditto.
d874f1e2 10754
aaa38bb5
AJ
10755 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10756 breakpoint_here_p, breakpoint_inserted_here_p,
10757 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10758 describe_other_breakpoints, check_duplicates, clear_command):
10759 Coding standard fixes.
10760
8add0441 10761 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10762 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10763 code: check bfd SEC_READONLY flag for section.
10764
e351066e
AC
107652002-01-31 Andrew Cagney <ac131313@redhat.com>
10766
7d35e135 10767 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10768
8a48e967
DJ
107692002-01-30 Daniel Jacobowitz <drow@mvista.com>
10770
10771 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10772 data symbols, since we search based on textlow and texthigh.
10773 (find_pc_sect_symtab): Likewise.
10774
f5a96129
AC
107752002-01-30 Andrew Cagney <ac131313@redhat.com>
10776
10777 * defs.h (vwarning): Declare.
f5a96129
AC
10778 * utils.c (vwarning): New function.
10779 (warning): Call vwarning.
10780 (warning_begin): Delete function.
10781
10782 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10783 the warning message.
10784 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10785 warning_begin.
10786
cefd4ef5
MS
107872002-01-30 Michael Snyder <msnyder@redhat.com>
10788
1a703748
MS
10789 * NEWS: Mention "set trust-readonly-sections" command.
10790 Mention generate-core-file command.
cefd4ef5 10791
3a11626d
MS
107922002-01-15 Michael Snyder <msnyder@redhat.com>
10793
10794 * target.c: New command, "set trust-readonly-sections on".
10795 (do_xfer_memory): Honor the suggestion to trust readonly sections
10796 by reading them from the object file instead of from the target.
10797 (initialize_targets): Register command "set trust-readonly-sections".
10798
d1c7e53b
AC
107992002-01-29 Andrew Cagney <ac131313@redhat.com>
10800
10801 * parse.c (target_map_name_to_register): Simplify, search regs and
10802 pseudo-regs using a single loop.
10803
e2c9a72c
AC
108042002-01-30 Andrew Cagney <ac131313@redhat.com>
10805
10806 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10807
69824b4e
MK
108082002-01-15 Rodney Brown <rbrown64@csc.com.au>
10809
10810 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10811 * config/i386/i386v42mp.mh: Add i387-nat.o .
10812 * i386v4-nat.c: Include i387-nat.h.
10813 (supply_fpregset): Use i387_supply_fsave.
10814 (fill_fpregset): Use i387_fill_fsave.
10815
6eb69eab
RE
108162002-01-30 Richard Earnshaw <rearnsha@arm.com>
10817
10818 * arm-tdep.c (arm_call_dummy_words): Define.
10819 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10820 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10821 (CALL_DUMMY_WORDS): Define.
10822 (arm_call_dummy_words): Declare.
10823 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10824 (arm_linux_call_dummy_words): Declare.
10825
9852326a
AS
108262002-01-30 Andreas Schwab <schwab@suse.de>
10827
10828 * m68klinux-nat.c: Fix last change to use regcache_collect
10829 instead of referencing registers[] directly.
10830
977a3030
AC
108312002-01-29 Andrew Cagney <ac131313@redhat.com>
10832
10833 * parse.c (target_map_name_to_register): Delete code wrapped in
10834 #ifdef REGISTER_NAME_ALIAS_HOOK.
10835
2076c72b
MS
108362002-01-28 Michael Snyder <msnyder@redhat.com>
10837
10838 * regcache.c (legacy_read_register_gen): Need to be able to
10839 read pseudo-register as well as real register.
10840 (legacy_write_register_gen): Ditto.
10841
8fcc723b
AC
108422002-01-28 Andrew Cagney <ac131313@redhat.com>
10843
10844 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10845 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10846 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10847 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10848 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10849 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10850 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10851 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10852 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10853 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10854 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10855 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10856 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10857 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10858 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10859 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10860 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10861 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10862 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10863 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10864
afe64c1a
AC
108652002-01-28 Andrew Cagney <ac131313@redhat.com>
10866
10867 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10868 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10869 (initialize_current_architecture): Update target_byte_order using
10870 information from BFD.
aaa38bb5 10871 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10872 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10873
75bc7ddf
AC
108742002-01-28 Andrew Cagney <ac131313@redhat.com>
10875
10876 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10877 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10878
10879 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10880 #ifdef INVALID_FLOAT.
10881 * infcmd.c (do_registers_info): Ditto.
10882 * values.c (unpack_double): Ditto. Add comment.
10883
10884 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10885 already commented out.
10886
0280a90a
AS
108872002-01-26 Andreas Schwab <schwab@suse.de>
10888
10889 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10890 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10891 registers and add support for PTRACE_GETREGS.
10892
7072a954
AC
108932002-01-24 Andrew Cagney <ac131313@redhat.com>
10894
10895 GDB 5.1.1 released from 5.1 branch.
10896 * NEWS: Add 5.1.1 news.
10897 * README: Sync with 5.1 branch.
10898
86f902e0
FF
108992002-01-23 Fred Fish <fnf@redhat.com>
10900
10901 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10902 stabstring on initial malloc. Reallocing will copy it for us,
10903 if necessary.
10904
8af51c36
EZ
109052002-01-23 Elena Zannoni <ezannoni@redhat.com>
10906
aaa38bb5 10907 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10908 (HFILES_NO_SRCDIR): Remove hpread.h.
10909 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10910 (hpread.o): Update dependencies.
10911 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10912
10913 * hp-psymtab-read.c: Remove file.
10914 * hp-symtab-read.c: Remove file.
10915 * hpread.h: Remove file.
10916
10917 * hpread.c: Merge all contents of hp-psymtab-read.c,
10918 hp-symtab-read.c and hpread.h into this file, as it was prior to
10919 January 1999.
10920
10921 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10922 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10923 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10924 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10925
dc5cfeb6
EZ
109262002-01-23 Elena Zannoni <ezannoni@redhat.com>
10927
10928 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10929 fill_gregset): Call gdbarch_tdep() just once, assign result to
10930 variable and use that, instead of calling the function several
10931 times.
10932
ea87b71b
AO
109332002-01-24 Alexandre Oliva <aoliva@redhat.com>
10934
10935 * configure.host: Accept sparcv9 as alias for sparc64.
10936 * configure.tgt: Likewise.
10937
13fc0c2f
KB
109382002-01-22 Kevin Buettner <kevinb@redhat.com>
10939
10940 * solib-aix5.c (build_so_list_from_mapfile)
10941 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10942 arguments is not reversed.
10943 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10944 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10945
7bd872fe
EZ
109462002-01-22 Elena Zannoni <ezannoni@redhat.com>
10947
10948 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10949 modified version of obsolete sh_fetch_pseudo_register.
10950 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10951 (sh4_register_read): New function.
10952 (sh_pseudo_register_write): New function. Renamed and modified
10953 version of obsolete sh_store_pseudo_register.
10954 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10955 (sh4_register_write): New function.
10956 (sh_gdbarch_init): Remove setting of gdbarch function
10957 fetch_pseudo_register and store_pseudo_register. Remove setting of
10958 register_convert_to_raw, register_convert_to_virtual,
10959 register_convertible.
10960 (sh_sh4_register_convertible): Delete. No longer needed. All is
10961 taken care by architecture specific functions
10962 register_read/register_write.
10963 (sh_sh4_register_convert_to_virtual): Make static.
10964 (sh_sh4_register_convert_to_raw): Ditto.
10965
069e84fd
AC
109662002-01-22 Andrew Cagney <ac131313@redhat.com>
10967
10968 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10969 (floatformat_is_nan, floatformat_mantissa): Ditto.
10970
10971 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10972 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10973 builtin_type_ieee_double_little,
10974 builtin_type_ieee_double_littlebyte_bigword,
10975 builtin_type_m68881_ext, builtin_type_i960_ext,
10976 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10977 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10978 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10979 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10980
211a4f69
CV
109812002-01-22 Corinna Vinschen <vinschen@redhat.com>
10982
10983 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10984 parameter. Set frameless flag if it exists and depended of
10985 whether the scanned function is frameless or not.
10986 (xstormy16_skip_prologue): If function is frameless, return
10987 result of xstormy16_scan_prologue().
10988 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10989 call.
10990
f81353e4
EZ
109912002-01-21 Elena Zannoni <ezannoni@redhat.com>
10992
10993 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10994 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10995 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10996 sh_sh4_register_byte, sh_sh4_register_raw_size,
10997 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10998 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10999 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11000 sh_store_pseudo_register, sh_do_pseudo_register): Call
11001 gdbarch_tdep() just once, assign result to variable and use that,
11002 instead of calling the function several times.
11003
63c73a17
MK
110042002-01-20 Mark Kettenis <kettenis@gnu.org>
11005
11006 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11007 macros instead of LAST_FPU_CTRL_REGNUM.
11008 (store_register): Likewise.
11009
39ad761d
JB
110102002-01-21 Jim Blandy <jimb@redhat.com>
11011
11012 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11013 is up-to-date before running the program, not just when a program
11014 exits.
11015
3d74b771
FF
110162002-01-21 Fred Fish <fnf@redhat.com>
11017
11018 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11019 when we have found all instructions we are looking for.
11020
966fbf70
RE
110212002-01-21 Richard Earnshaw <rearnsha@arm.com>
11022
11023 * arm-tdep.c (arm_register_name): New function.
11024 (arm_registers_names): Make static.
11025 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11026 (arm_register_name): Declare.
11027 (REGISTER_NAME): Use it.
11028
c3b4394c
RE
110292002-01-21 Richard Earnshaw <rearnsha@arm.com>
11030 Kevin Buettner <kevinb@redhat.com>
11031
11032 Convert arm targets to new FRAME interface.
11033 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11034 (arm_frame_find_save_regs): Delete.
11035 (arm_frame_init_saved_regs): New.
11036 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11037 Allocate extra_info as required. Convert all uses of fsr.regs
11038 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11039 to use extra_info.
11040 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11041 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11042 (check_prologue_cache, save_prologue_cache): Likewise.
11043 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11044 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11045 (FRAME_FIND_SAVED_REGS): Delete.
11046 (arm_frame_find_saved_regs): Delete prototype.
11047 (arm_frame_init_saved_regs): New prototype.
11048 (FRAME_INIT_SAVED_REGS): Define.
11049
61d99182
AC
110502002-01-20 Andrew Cagney <ac131313@redhat.com>
11051
11052 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11053
6aaea291
AC
110542002-01-20 Andrew Cagney <ac131313@redhat.com>
11055
11056 From Jeff Law <law@redhat.com>:
11057 * infttrace.c: Include <sys/pstat.h>.
11058 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11059 exec file if the ttrace equivalent fails.
11060
15f698d2
AC
110612002-01-20 Andrew Cagney <ac131313@redhat.com>
11062
11063 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11064 (closeLogFile): Ditto.
11065
f86ddd7c
MC
110662002-01-20 Michael Chastain <mec@shout.net>
11067
11068 * top.c (print_gdb_version): Bump copyright year to 2002.
11069
904507ce
AC
110702002-01-20 Andrew Cagney <ac131313@redhat.com>
11071
11072 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11073 Zannoni and Eli Zaretskii.
11074
d7f0b9ce
DJ
110752002-01-20 Daniel Jacobowitz <drow@mvista.com>
11076
11077 * buildsym.c: Update copyright years.
11078 * c-typeprint.c: Likewise.
11079 * dwarf2read.c: Likewise.
11080 * f-typeprint.c: Likewise.
11081 * gdbtypes.c: Likewise.
11082 * gdbtypes.h: Likewise.
11083 * hp-symtab-read.c: Likewise.
11084 * hpread.c: Likewise.
11085 * mdebugread.c: Likewise.
11086 * p-typeprint.c: Likewise.
11087
3fd3d7d2
AC
110882002-01-20 Andrew Cagney <ac131313@redhat.com>
11089
11090 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11091 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11092 byte-order selectable.
11093 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11094 * arch-utils.c: Ditto.
11095 (set_endian): Ditto.
11096 (set_endian_from_file): Ditto.
11097 * gdbserver/low-sim.c (create_inferior): Ditto.
11098 * gdbarch.sh: Ditto.
11099 * gdbarch.h: Re-generate.
aaa38bb5
AJ
11100 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11101 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11102 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11103 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11104 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11105 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11106 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11107 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11108 macro definition.
11109 * config/mips/tm-wince.h: Remove #undef of macro
11110 TARGET_BYTE_ORDER_SELECTABLE.
11111 * config/sh/tm-wince.h: Ditto.
11112
b02dede2
DJ
111132002-01-20 Daniel Jacobowitz <drow@mvista.com>
11114
11115 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11116 member function fields. Add accessor macro
11117 TYPE_FN_FIELD_ARTIFICIAL.
11118 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11119 * c-typeprint.c (c_type_print_base): Skip artificial member
11120 functions.
11121
c3643761
DJ
111222002-01-20 Daniel Jacobowitz <drow@mvista.com>
11123
11124 * f-typeprint.c: Delete unused function f_type_print_args.
11125 * p-typeprint.c: Delete unused function pascal_type_print_args.
11126
8176bb6d
DJ
111272002-01-20 Daniel Jacobowitz <drow@mvista.com>
11128
11129 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11130 comment. Add ``artificial'' to ``union field_location''.
11131
11132 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11133
11134 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11135 * mdebugread.c (parse_symbol): Likewise.
11136 * stabsread.c (define_symbol): Likewise.
11137 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11138 initializing TYPE_FIELD_BITPOS to n (obsolete).
11139 (hpread_doc_function_type): Likewise.
11140 * hpread.c (hpread_function_type): Likewise.
11141
7fd60527
AC
111422002-01-20 Andrew Cagney <ac131313@redhat.com>
11143
11144 * configure.in (host_makefile_frag): Only require a host makefile
11145 fragment when a native build.
11146 * configure: Re-generate.
11147
c2f05ac9
AC
111482002-01-20 Andrew Cagney <ac131313@redhat.com>
11149
11150 * doublest.h (floatformat_from_type): Declare.
11151 * doublest.c (floatformat_from_type): New function.
11152 (convert_typed_floating): Use.
11153
11154 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11155 call to function floatformat_from_type.
11156
11157 * gdbarch.sh (IEEE_FLOAT): Delete.
11158 * gdbarch.h, gdbarch.c: Re-generate.
11159 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11160 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11161 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11162 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11163 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11164 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11165 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11166 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11167 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11168 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11169 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11170 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11171
11172 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11173 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11174 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11175 * sh-tdep.c (sh_gdbarch_init): Ditto.
11176 * mips-tdep.c (mips_gdbarch_init): Ditto.
11177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11178 * cris-tdep.c (cris_gdbarch_init): Ditto.
11179
abf22e64
AJ
111802002-01-20 Jiri Smid <smid@suse.cz>
11181
11182 * configure.host, configure.tgt: Support x86-64.
11183 * NEWS: Note new target x86-64.
11184
b7c4cbf8
AJ
11185 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11186 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11187 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11188 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11189 x86-64-linux-nat.o): Fix dependencies.
11190
82600034
AC
111912002-01-19 Andrew Cagney <ac131313@redhat.com>
11192
11193 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11194 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11195 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11196 * config/sparc/xm-sun4os4.h: Delete file.
11197 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11198
bbe5c628
AC
111992002-01-19 Andrew Cagney <ac131313@redhat.com>
11200
11201 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11202 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11203 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11204 * config/i386/i386lynx.mh (XM_FILE): Delete.
11205 * config/rs6000/xm-rs6000ly.h: Delete file.
11206 * config/sparc/xm-sparclynx.h: Delete file.
11207 * config/m68k/xm-m68klynx.h: Delete file.
11208 * config/i386/xm-i386lynx.h: Delete file.
11209 * config/xm-lynx.h: Delete file.
11210 * config/djgpp/fnchange.lst: Update.
11211
f8453e34
JT
112122002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11213
11214 * alpha-tdep.c (alpha_register_byte): New function.
11215 (alpha_register_raw_size): Ditto.
11216 (alpha_register_virtual_size): Ditto.
11217 (alpha_skip_prologue_internal): Renamed from
11218 alpha_skip_prologue.
11219 (alpha_skip_prologue): New version that calls
11220 alpha_skip_prologue_internal.
11221 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11222 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11223 second argument from alpha_skip_prologue.
11224 (REGISTER_BYTE): Use alpha_register_byte.
11225 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11226 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11227 (FRAMELESS_FUNCTION_INVOCATION): Use
11228 generic_frameless_function_invocation_not.
11229 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11230 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11231
52d9e613
AC
112322002-01-19 Andrew Cagney <ac131313@redhat.com>
11233
11234 * config/mips/xm-news-mips.h: Delete file.
11235 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11236
11237 * config/m88k/xm-m88k.h: Delete file.
11238 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11239 * config/m88k/xm-delta88v4.h: Ditto.
11240 * config/m88k/xm-delta88.h: Ditto.
11241
11242 * config/alpha/xm-fbsd.h: Delete file.
11243 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11244
11245 * config/sparc/xm-sparc.h: Delete file.
11246 * Makefile.in (xm-sun4os4.h): Delete dependency.
11247 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11248 * config/sparc/xm-sun4os4.h: Ditto.
11249 * config/sparc/xm-linux.h: Ditto.
11250
11251 * config/i386/xm-windows.h: Delete file.
11252
2d1b2124
AC
112532002-01-19 Andrew Cagney <ac131313@redhat.com>
11254
11255 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11256 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11257
ee1f65f0
JT
112582002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11259
11260 * alpha-tdep.c (alpha_call_dummy_words): New.
11261 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11262 (CALL_DUMMY_P): Define.
11263 (CALL_DUMMY_WORDS): Define.
11264 (SIZEOF_CALL_DUMMY_WORDS): Define.
11265
98081e55
PB
112662002-01-19 Per Bothner <per@bothner.com>
11267
11268 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11269 isn't NULL, which can happen with some gcj-3.x-produced code.
11270
0d056799
JT
112712002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11272
11273 * alpha-tdep.c (alpha_register_virtual_type): New function.
11274 (alpha_init_frame_pc_first): Ditto.
11275 (alpha_fix_call_dummy): Ditto.
11276 (alpha_store_struct_return): Ditto.
11277 (alpha_extract_struct_value_address): Ditto.
11278 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11279 alpha_register_virtual_type.
11280 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11281 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11282 alpha_extract_struct_value_address.
11283 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11284 (INIT_FRAME_PC): Use init_frame_pc_noop.
11285 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11286
4604bcad
MK
112872002-01-19 Mark Kettenis <kettenis@gnu.org>
11288
11289 * i386gnu-nat.c: Include "i386-tdep.h".
11290 (fetch_fpregs): Simplify code dealing with uninitialized floating
11291 point states such that it doesn't require FP7_REGNUM.
11292
140f9984
JT
112932002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11294
abf22e64
AJ
11295 * alpha-tdep.c (frame_extra_info): New.
11296 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11297 frame->extra_info.
11298 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11299 (alpha_frame_saved_pc): Use frame->extra_info.
11300 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11301 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11302 (init_extra_frame_info): Rename to...
11303 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11304 (alpha_print_extra_frame_info): New function.
140f9984
JT
11305 (alpha_frame_locals_address): Ditto.
11306 (alpha_frame_args_address): Ditto.
abf22e64 11307 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11308 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11309 alpha_frame_args_address.
abf22e64 11310 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11311 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11312 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11313 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11314 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11315 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11316
d734c450
JT
113172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11318
11319 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11320 (alpha_cannot_fetch_register): Ditto.
11321 (alpha_cannot_store_register): Ditto.
11322 (alpha_register_convertible): Ditto.
11323 (alpha_use_struct_convention): Ditto.
11324 * config/alpha/tm-alpha.h: Update copyright years.
11325 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11326 (INNER_THAN): Use core_addr_lessthan.
11327 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11328 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11329 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11330 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11331 (FRAME_CHAIN): Remove unnecessary cast.
11332
b4ceaee6
AC
113332002-01-18 Andrew Cagney <ac131313@redhat.com>
11334
11335 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11336 obsolete.
11337
0a65a603
AC
113382002-01-18 Andrew Cagney <ac131313@redhat.com>
11339
11340 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11341 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11342 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11343 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11344 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11345 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11346 * x86-64-linux-nat.c: Ditto.
11347
636a6dfc
JT
113482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11349
abf22e64 11350 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11351 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11352 (REGISTER_NAME): Define.
11353
acceddb6
JT
113542002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11355
11356 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11357
ec32e4be
JT
113582002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11359
11360 * alpha-tdep.c: Update copyright years.
11361 (alpha_next_pc): New function.
11362 (alpha_software_single_step): Ditto.
11363 * config/alpha/tm-alpha.h: Add prototype for
11364 alpha_software_single_step.
11365
e771a871
JT
113662002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11367
11368 * alphabsd-nat.c: Update copyright years.
11369 (fill_gregset): Use regcache_collect.
11370 (fill_fpregset): Likewise.
11371 (fetch_inferior_registers): Only fetch integer registers
11372 if requested to do so.
11373 (store_inferior_registers): Only store integer registers
11374 if requested to do so.
11375
7708fa01
AC
113762002-01-17 Andrew Cagney <ac131313@redhat.com>
11377
11378 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11379 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11380 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11381 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11382 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11383 * config/arm/linux.mh (XDEPFILES): Delete.
11384 * config/arm/nbsd.mh (XDEPFILES): Delete.
11385 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11386 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11387 * config/i386/i386m3.mh (XDEPFILES): Delete.
11388 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11389 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11390 * config/i386/fbsd.mh (XDEPFILES): Delete.
11391 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11392 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11393 * config/i386/i386v4.mh (XDEPFILES): Delete.
11394 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11395 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11396 * config/i386/i386aix.mh (XDEPFILES): Delete.
11397 * config/i386/go32.mh (XDEPFILES): Delete.
11398 * config/i386/cygwin.mh (XDEPFILES): Delete.
11399 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11400 * config/i386/i386mach.mh (XDEPFILES): Delete.
11401 * config/i386/i386v32.mh (XDEPFILES): Delete.
11402 * config/i386/linux.mh (XDEPFILES): Delete.
11403 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11404 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11405 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11406 * config/i386/i386sco.mh (XDEPFILES): Delete.
11407 * config/i386/i386v.mh (XDEPFILES): Delete.
11408 * config/i386/nbsd.mh (XDEPFILES): Delete.
11409 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11410 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11411 * config/i386/symmetry.mh (XDEPFILES): Delete.
11412 * config/i386/obsd.mh (XDEPFILES): Delete.
11413 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11414 * config/ia64/linux.mh (XDEPFILES): Delete.
11415 * config/ia64/aix.mh (XDEPFILES): Delete.
11416 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11417 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11418 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11419 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11420 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11421 * config/m68k/linux.mh (XDEPFILES): Delete.
11422 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11423 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11424 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11425 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11426 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11427 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11428 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11429 * config/m88k/delta88.mh (XDEPFILES): Delete.
11430 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11431 * config/m88k/m88k.mh (XDEPFILES): Delete.
11432 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11433 * config/mips/linux.mh (XDEPFILES): Delete.
11434 * config/mips/irix6.mh (XDEPFILES): Delete.
11435 * config/mips/irix5.mh (XDEPFILES): Delete.
11436 * config/mips/irix4.mh (XDEPFILES): Delete.
11437 * config/mips/irix3.mh (XDEPFILES): Delete.
11438 * config/mips/decstation.mh (XDEPFILES): Delete.
11439 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11440 (NATDEPFILES): Move core-aout.o to here.
11441 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11442 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11443 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11444 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11445 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11446 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11447 * config/pa/hpux11.mh (XDEPFILES): Delete.
11448 * config/powerpc/aix.mh (XDEPFILES): Delete.
11449 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11450 * config/powerpc/linux.mh (XDEPFILES): Delete.
11451 * config/romp/rtbsd.mh: Rename XDEPFILES.
11452 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11453 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11454 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11455 * config/s390/s390.mh (XDEPFILES): Delete.
11456 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11457 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11458 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11459 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11460 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11461 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11462 * config/sparc/linux.mh (XDEPFILES): Delete.
11463 * config/vax/vaxult.mh (XDEPFILES): Delete.
11464 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11465 * Makefile.in (DEPFILES): Remove XDEPFILES.
11466
375fc983
AC
114672002-01-17 Andrew Cagney <ac131313@redhat.com>
11468
11469 * utils.c (internal_verror): Fix comments, default is yes not no.
11470 Update queries to match. Default to quit and dump core.
11471
8926118c
AC
114722002-01-17 Andrew Cagney <ac131313@redhat.com>
11473
11474 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11475 copyright.
11476 * defs.h, event-top.c, gdbcmd.h: Ditto.
11477 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11478 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11479 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11480 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11481 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11482 * mi/mi-main.c:Ditto.
11483
11484 * stack.c, symfile.c: Update copyright.
11485
45b7b345
DJ
114862002-01-17 Daniel Jacobowitz <drow@mvista.com>
11487
db728ff7
DJ
11488 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11489 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11490 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11491 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11492
db728ff7
DJ
114932002-01-17 Daniel Jacobowitz <drow@mvista.com>
11494
11495 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11496 * gdbserver/low-lynx.c (myattach): Likewise.
11497 * gdbserver/low-nbsd.c (myattach): Likewise.
11498 * gdbserver/low-sim.c (myattach): Likewise.
11499 * gdbserver/low-sparc.c (myattach): Likewise.
11500 * gdbserver/low-sun3.c (myattach): Likewise.
11501
11502 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11503
db728ff7 11504 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11505 (main): Handle "--attach".
11506
8de3c354
AC
115072002-01-16 Andrew Cagney <ac131313@redhat.com>
11508
11509 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11510 maintainer.
11511
b0129042
DJ
115122002-01-15 Daniel Jacobowitz <drow@mvista.com>
11513
11514 * c-typeprint.c (is_type_conversion_operator): Add additional
11515 check for non-conversion operators.
11516
ba8679fb 115172002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11518
11519 * linux-proc.c: Add "info proc" command, a la procfs.c.
11520 (read_mapping): New function, abstract and re-use code.
11521 (linux_find_memory_regions): Use new func read_mapping.
11522 (linux_info_proc_cmd): New function, implement "info proc".
11523 (_initialize_linux_proc): Add new command "info proc".
11524
e4f9b4d5
MS
115252002-01-15 Michael Snyder <msnyder@redhat.com>
11526
11527 * symfile.c (generic_load): Use bfd_map_over_sections method
11528 instead of manipulating bfd structure members directly.
11529 (add_section_size_callback): New function, bfd sections callback
11530 used by generic_load.
11531 (load_sections_callback): New function, bfd sections callback
11532 used by generic_load.
11533
08cf96df
EZ
115342002-01-15 Elena Zannoni <ezannoni@redhat.com>
11535
abf22e64 11536 [Based on work by Jim Blandy]
08cf96df
EZ
11537 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11538 (builtin_type_vec128): Export.
11539 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11540 types.
11541 (builtin_type_vec128): New builtin type for 128 bit vector
11542 registers.
11543 (build_gdbtypes): Initialize builtin_type_v16qi and
11544 builtin_type_v8hi. Create the vec128 register builtin type
11545 structure.
11546 (build_builtin_type_vec128): New function.
abf22e64 11547 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11548 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11549 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11550 AltiVec register to new builtin type.
11551
d7242108
DJ
115522001-01-15 Daniel Jacobowitz <drow@mvista.com>
11553
11554 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11555 to make_cv_type.
11556
4ee3352d
AC
115572002-01-14 Andrew Cagney <ac131313@redhat.com>
11558
11559 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11560 CLEAN_UP_REGISTER_VALUE.
11561 * regcache.c (supply_register): Update only call.
11562
f015b2e7
AC
115632002-01-14 Andrew Cagney <ac131313@redhat.com>
11564
11565 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11566 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11567 a29k-*-vxworks* targets as obsolete.
11568
356ae49d
MS
115692002-01-14 Michael Snyder <msnyder@redhat.com>
11570
11571 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11572 until we can resolve portability issues.
11573 * gregset.h: Remove references to fpxregs.
11574 * gcore.c (gcore_command): Initialize note_sec to NULL.
11575
ade8f45e
AC
115762002-01-13 Andrew Cagney <ac131313@redhat.com>
11577
11578 * signals.c (target_signal_to_name): Rewrite. Only use
11579 signals[].name when in bounds and non-NULL.
abf22e64 11580
89c49e7a
AC
115812002-01-13 Andrew Cagney <ac131313@redhat.com>
11582
11583 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11584 * signals.c (target_signal_to_name): Verify that SIG is within the
11585 bounds of the signals array.
11586
4daa9f9f
AC
115872002-01-13 Andrew Cagney <ac131313@redhat.com>
11588
11589 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11590
ba4bbdcb
KS
115912002-01-13 Keith Seitz <keiths@redhat.com>
11592
11593 * stack.c (print_frame_info_base): Print the frame's pc
11594 only if when print_frame_info_listing_hook is not defined.
11595
575bbeb6
KS
115962002-01-13 Keith Seitz <keiths@redhat.com>
11597
11598 * varobj.c (varobj_set_value): Make sure that there were no
11599 errors evaluating the object before attempting to set its
11600 value.
11601 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11602 so this offset adjustment is no longer necessary.
11603 (create_child): Don't set the error flag if the child is
11604 a CPLUS_FAKE_CHILD.
11605 (value_of_child): If value_fetch_lazy fails, return NULL
11606 so that callers will be notified that an error occurred.
11607 (c_value_of_variable): Delay check of variable's validity
11608 until later. We actually want all structs and unions to have
11609 the value "{...}".
11610 Do not return "???" for variables which could not be evaluated.
11611 This error condition must be returned to the caller so that it
11612 can get the error condition from gdb.
11613 (cplus_name_of_child): Adjust index for vptr before figuring
11614 out the name of the child.
11615 (cplus_value_of_child): If a child's (real) parent is not valid,
11616 don't even bother trying to give a value for it. Just return
11617 an error. Change all instances in this function.
11618 (cplus_type_of_child): If our parent is one of the "fake"
11619 parents, we need to get at the type of the real parent, and
11620 derive the child's true type using this information.
11621
b76898ab
AC
116222002-01-13 Andrew Cagney <ac131313@redhat.com>
11623
11624 From 2002-01-09 John Marshall <johnm@falch.net>:
11625 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11626 sources.redhat.com, and tweak some related URLs which had
11627 suffered from linkrot.
11628
b6649e88
AC
116292002-01-13 Andrew Cagney <ac131313@redhat.com>
11630
11631 From Jeff law:
11632 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11633 structures passed in registers.
11634
82cc5033
EZ
116352002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11636
11637 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11638 white space which prevented compilation. Reported by DSK
11639 <dsk@student.unsw.edu.au>.
11640
ba5f2f8a
MS
116412002-01-11 Michael Snyder <msnyder@redhat.com>
11642
fbd35540
MS
11643 * symfile.c (build_section_addr_info_from_section_tab):
11644 Use bfd access method instead of manipulating bfd directly.
11645 (syms_from_objfile): Ditto.
11646 (simple_overlay_update_1): Ditto.
11647 (simple_overlay_update): Ditto.
11648 (generic_load): Ditto.
11649 (overlay_unmapped_address): FIXME comment, bfd access methods.
11650 (sections_overlap): FIXME comment, bfd access methods.
11651 (pc_in_mapped_range): FIXME comment, bfd access methods.
11652 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11653 (section_is_mapped): FIXME comment, bfd access methods.
11654 (section_is_overlay): FIXME comment, bfd access methods.
11655
ba5f2f8a
MS
11656 * symfile.c (generic_load): Whitespace and long line cleanups.
11657 Remove duplicate variable, change several local variables to
11658 more appropriate data types.
11659 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11660
17df2af6
AC
116612002-01-12 Andrew Cagney <ac131313@redhat.com>
11662
11663 From Peter Schauer:
11664 * language.c (longest_local_hex_string_custom): Use phex_nz to
11665 convert NUM to a hex string.
11666
ec920329
EZ
116672002-01-12 Elena Zannoni <ezannoni@redhat.com>
11668
11669 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11670 the function.
538a76d6 11671 Update Copyright year.
ec920329 11672
3abd2e01
AC
116732002-01-12 Andrew Cagney <ac131313@redhat.com>
11674
11675 * language.c (longest_raw_hex_string): Delete unused function.
11676
b21b22e0
PS
116772002-01-11 Petr Sorfa <petrs@caldera.com>
11678
11679 * MAINTAINERS (write-after-approval): Add myself.
11680 * dwarf2read.c (read_tag_string_type): Handling of
11681 DW_AT_byte_size.
11682 (read_tag_string_type): FORTRAN fix to prevent propagation of
11683 first string size.
11684 (set_cu_language): Handling of DW_LANG_Fortran95
11685
747fe712
RE
116862002-01-11 Richard Earnshaw <rearnsha@arm.com>
11687
11688 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11689 GETPID(inferior_ptid).
11690 (store_inferior_registers): Likewise.
11691
f1bea926
JM
116922002-01-10 Jason Merrill <jason@redhat.com>
11693
11694 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11695 Fix DW_OP_minus.
11696
ae940673
AC
116972002-01-10 Andrew Cagney <ac131313@redhat.com>
11698
11699 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11700 and bfd/elf32-sh-nbsd.c.
11701
00546b04
MS
117022002-01-10 Michael Snyder <msnyder@redhat.com>
11703
352ed7b4
MS
11704 * NEWS: Mention --pid and corefile/proc-id behavior change.
11705
c18be923
MS
11706 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11707 * gcore.c: Include cli/cli-decode.h instead of command.h.
11708
00546b04
MS
11709 * main.c (captured_main): Add new command line option "--pid".
11710 If the second command line argument (following the symbol-file)
11711 begins with a digit, try to attach to it before trying to open
11712 it as a corefile.
11713 (print_gdb_help): Document the "--pid" argument.
11714
db60ec62
EZ
117152002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11716
11717 * completer.c (command_completer): New function.
11718
11719 * completer.h <command_completer>: Add prototype.
11720
11721 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11722 completer for the "help" command.
11723
39c22d1a
JM
117242002-01-09 Jason Merrill <jason@redhat.com>
11725
11726 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11727
c564377f
MS
117282002-01-09 Michael Snyder <msnyder@redhat.com>
11729
975aec09
MS
11730 * i386-linux-nat.c (fill_fpxregset): Make global.
11731 (store_fpxregset): Ditto.
11732
db4a10fa
MS
11733 * gregset.h (gdb_fpxregset_t): Define.
11734 (supply_fpxregset): Prototype.
11735 (fill_fpxregset): Prototype.
11736
c564377f
MS
11737 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11738
c3d45d70
RE
117392002-01-09 Richard Earnshaw <rearnsha@arm.com>
11740
11741 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11742 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11743 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11744
fcc87af1
AC
117452002-01-09 Andrew Cagney <ac131313@redhat.com>
11746
11747 * MAINTAINERS: Update target maintainer rules so that any
11748 Maintainer can approve a tested patch for a maintenance-only
11749 target.
11750
dd96c05b
RE
117512002-01-09 Richard Earnshaw <rearnsha@arm.com>
11752
d4297db9 11753 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11754
d4297db9 11755 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11756 IN_SIGTRAMP.
11757
145fdc6e
MS
117582002-01-08 Michael Snyder <msnyder@redhat.com>
11759
11760 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11761 real name of the executable, rather than the /proc name.
11762
be4d1333
MS
117632002-01-03 Michael Snyder <msnyder@redhat.com>
11764
11765 Implement a "generate-core-file" command in gdb, save target state.
11766 * gcore.c: New file. Implement new command 'generate-core-file'.
11767 Save a corefile image of the current state of the inferior.
11768 * linux-proc.c: Add linux-specific code for saving corefiles.
11769 * target.h (struct target_ops): Add new target vectors for saving
11770 corefiles; to_find_memory_regions and to_make_corefile_notes.
11771 (target_find_memory_regions): New macro.
11772 (target_make_corefile_notes): New macro.
11773 * target.c (update_current_target): Inherit new target methods.
11774 (dummy_find_memory_regions): New place-holder method.
11775 (dummy_make_corefile_notes): New place-holder method.
11776 (init_dummy_target): Initialize new dummy target vectors.
11777 * exec.c (exec_set_find_memory_regions): New function.
11778 Allow the exec_ops vector for memory regions to be taken over.
11779 (exec_make_note_section): New function, target vector method.
11780 * defs.h (exec_set_find_memory_regions): Export prototype.
11781 * procfs.c (proc_find_memory_regions): New function, corefile method.
11782 (procfs_make_note_section): New function, corefile method.
11783 (init_procfs_ops): Set new target vector pointers.
11784 (find_memory_regions_callback): New function.
11785 (procfs_do_thread_registers): New function.
11786 (procfs_corefile_thread_callback): New function.
11787 * sol-thread.c (sol_find_memory_regions): New function.
11788 (sol_make_note_section): New function.
11789 (init_sol_thread_ops): Initialize new target vectors.
11790 * inftarg.c (inftarg_set_find_memory_regions): New function.
11791 Allow to_find_memory_regions vector to be taken over.
11792 (inftarg_set_make_corefile_notes): New function.
11793 Allow to_make_corefile_notes vector to be taken over.
11794 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11795 interface layer if not target_has_execution (may be a corefile).
11796 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11797 * config/sparc/sun4sol2.mh: Ditto.
11798 * config/alpha/alpha-linux.mh: Ditto.
11799 * config/arm/linux.mh: Ditto.
11800 * config/i386/x86-64linux.mh: Ditto.
11801 * config/ia64/linux.mh: Ditto.
11802 * config/m68k/linux.mh: Ditto.
11803 * config/mips/linux.mh: Ditto.
11804 * config/powerpc/linux.mh: Ditto.
11805 * config/sparc/linux.mh: Ditto.
11806
c6b92abd
MS
118072002-01-07 Michael Snyder <msnyder@redhat.com>
11808
11809 * arm-linux-nat.c: Remove references to regcache.c internal data
11810 (registers[] and register_valid[]).
11811
4b09dc8c
MS
118122002-01-07 Michael Snyder <msnyder@redhat.com>
11813
abf22e64
AJ
11814 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11815 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11816 symbol file and shlibs.
11817 * Makefile.in: Add rule for linux-proc.o.
11818 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11819 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11820 * config/arm/linux.mh: Ditto.
11821 * config/i386/linux.mh: Ditto.
11822 * config/i386/x86-64linux.mh: Ditto.
11823 * config/ia64/linux.mh: Ditto.
11824 * config/m68k/linux.mh: Ditto.
11825 * config/mips/linux.mh: Ditto.
11826 * config/powerpc/linux.mh: Ditto.
11827 * config/sparc/linux.mh: Ditto.
11828
c25b74ac
PM
118292002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11830
11831 * win32-nat.c: Add i386-tdep.h dependency.
11832
94cd915f
MS
118332002-01-07 Michael Snyder <msnyder@redhat.com>
11834
c7cccb76
MS
11835 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11836 instead of bfd_get_arch_size. Don't bail out just because
11837 there's no exec_bfd.
abf22e64 11838
34c0bd93
MS
11839 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11840 * p-valprint.c (pascal_object_print_value): Ditto.
11841 * somread.c (som_symtab_read): Ditto.
11842 * symfile.c (simple_free_overlay_region_table): Ditto.
11843 * valops.c (value_assign): Ditto.
11844
21c1c920
MS
11845 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11846 use tilde_expand and strerror for opening save-tracepoints file.
11847
5bbd998e
MS
11848 * thread-db.c (thread_db_new_objfile): Indendation fix.
11849
94cd915f
MS
11850 * infptrace.c (GDB_MAX_ALLOCA): New define.
11851 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11852 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11853 can be overridden with whatever value is appropriate to the host).
11854 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11855 alloca to allocate potentially large buffer.
11856 * rs6000-nat.c (child_xfer_memory): Ditto.
11857 * symm-nat.c (child_xfer_memory): Ditto.
11858 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11859
494e8a93
JSC
118602002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11861
11862 From Nick Clifton <nickc@redhat.com>
11863 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11864
d0e1d48e
MS
118652002-01-07 Michael Snyder <msnyder@redhat.com>
11866
abf22e64 11867 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11868 Don't use exec_bfd if it's NULL.
11869
290b2c7a
MK
118702002-01-06 Mark Kettenis <kettenis@gnu.org>
11871
abf22e64 11872 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11873
aef21287
AC
118742002-01-06 Andrew Cagney <ac131313@redhat.com>
11875
11876 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11877 * gnu-nat.c: Ditto.
11878
30efa627
AC
118792002-01-06 Andrew Cagney <ac131313@redhat.com>
11880
11881 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11882 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11883 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11884 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11885 z8k-coff have not been multi-arched. Update z8k-coff build
11886 status.
11887
9b4ff276
AC
118882002-01-06 Andrew Cagney <ac131313@redhat.com>
11889
11890 * MAINTAINERS: Mark a29k target as obsolete.
11891 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11892 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11893 comments.
11894 * NEWS: Note that a29k targets are obsolete.
11895 * a29k-tdep.c: Mark as obsolete.
11896 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11897 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11898 a29k-*-vxworks* targets as obsolete.
11899 * remote-adapt.c: Obsolete.
11900 * remote-eb.c: Obsolete.
11901 * remote-mm.c: Obsolete.
11902 * remote-udi.c: Obsolete.
11903 * config/a29k/a29k-udi.mt: Obsolete.
11904 * config/a29k/a29k.mt: Obsolete.
11905 * config/a29k/tm-a29k.h: Obsolete.
11906 * config/a29k/tm-vx29k.h: Obsolete.
11907 * config/a29k/vx29k.mt: Obsolete.
11908
a9011d31
AC
119092002-01-05 Andrew Cagney <ac131313@redhat.com>
11910
11911 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11912 with BFD_ENDIAN_BIG.
11913
9299404e
AC
119142002-01-05 Andrew Cagney <ac131313@redhat.com>
11915
11916 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11917 * configure, config.in: Re-generate.
11918 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11919 * defs.h: Do not include <endian.h>.
11920
7e89e357
JT
119212002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11922
11923 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11924 * config.in: Regenerate.
11925 * configure.in: Update copyright years.
11926 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11927 * configure: Regenerate.
11928 * i386bsd-nat.c: Update copyright years.
11929 (fill_gregset): Use regcache_collect.
11930 (fetch_inferior_registers): Only fetch integer registers
11931 if requested to do so. Add support for XMM registers
11932 using PT_GETXMMREGS.
11933 (store_inferior_registers): Only store integer registers
11934 if requested to do so. Add support for XMM registers
11935 using PT_SETXMMREGS.
11936 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11937 (store_inferior_registers): Remove.
11938 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11939 (fetch_elfcore_registers): New function.
11940 (i386nbsd_elfcore_fns): New.
11941 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11942 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11943 i386bsd-nat.o.
11944 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11945 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11946 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11947 * config/i386/tm-nbsd.h: Update copyright years.
11948 (HAVE_SSE_REGS): Define.
11949 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11950 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11951 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11952 (SIGCONTEXT_PC_OFFSET): Remove.
11953 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11954
a752853e
AC
119552002-01-05 Andrew Cagney <ac131313@redhat.com>
11956
11957 * configure.tgt: Remove powerpc-*-macos* target.
11958 * config/m68k/xm-mpw.h: Delete file.
11959 * config/xm-mpw.h: Delete file.
11960 * ser-mac.c: Delete file.
11961 * mpw-make.sed: Delete file.
11962 * mpw-config.in: Delete file.
11963 * mac-xdep.c: Delete file.
11964 * mac-gdb.r: Delete file.
11965 * mac-defs.h: Delete file.
11966 * mac-nat.c: Delete file.
11967 * config/powerpc/macos.mh: Delete file.
11968 * config/powerpc/macos.mt: Delete file.
11969 * config/powerpc/nm-macos.h: Delete file.
11970 * config/powerpc/tm-macos.h: Delete file.
11971 * source.c (openp, open_source_file): Remove obsolete code.
11972 * top.c (gdb_readline): Ditto.
11973 * utils.c (query): Ditto.
11974 * event-top.c (display_gdb_prompt): Ditto.
11975 * Makefile.in (ser-mac.o): Delete obsolete target.
11976 * NEWS: Update.
11977
d7449b42
AC
119782002-01-04 Andrew Cagney <ac131313@redhat.com>
11979
11980 * defs.h (BIG_ENDIAN): Delete macro definition.
11981 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11982 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11983 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11984 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11985 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11986 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11987 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11988 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11989 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11990 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11991 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11992 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11993 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11994 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11995 * gdbarch.c: Re-generate.
11996
356374e8
DJ
119972002-01-04 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12000 for core files.
12001
a2b8f8f8
JT
120022002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12003
12004 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12005
12466af9
AC
120062002-01-04 Andrew Cagney <ac131313@redhat.com>
12007
12008 * value.h (value_ptr): Delete typedef.
12009
3549ab40
JT
120102002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12011
12012 * i386nbsd-nat.c: Update copyright years.
12013 Include i386-tdep.h.
12014
fedbd091
EZ
120152002-01-04 Elena Zannoni <ezannoni@redhat.com>
12016
12017 * stabsread.c: Update copyright years.
12018
12019 From Debashis Mahata <debashis.mahata@wipro.com>:
12020 (read_struct_fields): Deal with Sun C compiler erroneous stab
12021 output for structs and unions.
fec8b34f 12022 Fix PR gdb/269.
fedbd091 12023
eb43544b
DJ
120242002-01-04 Daniel Jacobowitz <drow@mvista.com>
12025
12026 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12027 prototype.
12028
1514d34e
DJ
120292002-01-04 Daniel Jacobowitz <drow@mvista.com>
12030
12031 * cp-abi.c: Fix whitespace.
12032 (baseclass_offset): New wrapper function.
12033 * cp-abi.h (baseclass_offset): Add prototype.
12034 (struct cp_abi_ops): Add baseclass_offset pointer.
12035
12036 * valops.c (vb_match): Move to...
12037 * gnu-v2-abi.c (vb_match): here.
12038 * valops.c (baseclass_offset): Move to...
12039 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12040
12041 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12042
12043 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12044 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12045 * hpacc-abi.c (init_hpacc_ops): Likewise.
12046
7f8c9282
DJ
120472002-01-04 Daniel Jacobowitz <drow@mvista.com>
12048
12049 * valops.c (find_overload_match): Accept obj as a
12050 reference parameter. Update it before returning.
12051 * value.h (find_overload_match): Update prototype.
12052 * eval.c (evaluate_subexp_standard): Pass object to
12053 find_overload_match by reference.
12054
f23631e4
AC
120552002-01-03 Andrew Cagney <ac131313@redhat.com>
12056
12057 * valarith.c: Replace value_ptr with struct value pointer. Remove
12058 register attribute from value declarations.
12059 * valops.c: Ditto.
12060 * value.h: Ditto.
12061 * scm-lang.c (scm_lookup_name): Ditto.
12062
79e10fab 120632002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 12064
79e10fab
AC
12065 Abstract the functionality of iterating over mapped memory
12066 regions into a general purpose iterator function.
abf22e64 12067 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
12068 iterator for memory sections.
12069 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12070 (solib_mappings_callback): New function, callback for above.
12071 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12072 (info_mappings_callback): New function, callback for above.
12073
12074 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12075
c5ad026a
MK
120762002-01-01 Mark Kettenis <kettenis@gnu.org>
12077
d2a7c97a
MK
12078 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12079 * i386-tdep.c: Include "elf-bfd.h".
12080 (process_note_abi_tag_sections): New function.
12081 (i386_gdbarch_init): Add code to recognize various OS/ABI
12082 combinations.
12083
c5ad026a
MK
12084 * maint.c (_initialize_maint_cmds): Add missing \ in
12085 string-literal.
12086
a1a5b71e 12087For older changes see ChangeLog-2001
c906108c
SS
12088\f
12089Local Variables:
12090mode: change-log
12091left-margin: 8
12092fill-column: 74
12093version-control: never
12094End:
This page took 0.976413 seconds and 4 git commands to generate.