2002-10-19 David O'Brien <obrien@FreeBSD.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9c96f9f2
AF
12002-10-19 Adam Fedor <fedor@gnu.org>
2
3 * objc-exp.y (name_not_typename): Fix invalid comment.
4
ce1ed485
MK
52002-10-20 Mark Kettenis <kettenis@gnu.org>
6
7 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
8 to allocate partial syms and macro byte caches.
9
1efc7aaa
DC
102002-10-18 David Carlton <carlton@math.stanford.edu>
11
12 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
13
7e1d63ec
AF
142002-10-18 Adam Fedor <fedor@gnu.org>
15
16 * stabsread.c (find_name_end): New function.
17 (define_symbol): Use it.
18
6e8d29a9
DJ
192002-10-18 Daniel Jacobowitz <drow@mvista.com>
20
21 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
22 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
23 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
24 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
25
1efc7aaa 262002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
27
28 * symfile.h: Add opaque declaration for struct obstack.
29 Declare obsavestring to take a const char *.
30 * symfile.c (obsavestring): Make first argument a const char *.
31
1aeae86e
AF
322002-10-16 Adam Fedor <fedor@gnu.org>
33
34 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
35 names when matching breakpoints in current file.
36
8b2dbe47
KB
372002-10-16 Kevin Buettner <kevinb@redhat.com>
38
39 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
40 (read_tag_pointer_type): Add address class support.
41 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
42 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
43 New methods.
44 * gdbarch.h, gdbarch.c: Regenerate.
45 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
46 (make_type_with_address_space, recursive_type_dump): Add address
47 class support.
48 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
49 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
50 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
51
74451869
KD
522002-10-16 Klee Dienes <kdienes@apple.com>
53
54 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
55 to get the last character of a char[] buffer, not
56 name[sizeof(vptr_name)-1].
57
ff4cb3e8
AF
582002-10-14 Adam Fedor <fedor@gnu.org>
59
60 * symtab.h: New objc_specific struct.
61 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
62 (SYMBOL_DEMANGLED_NAME): Likewise.
63
da2cf7e0
AF
642002-10-14 Adam Fedor <fedor@gnu.org>
65
66 * symfile.c (init_filename_language_table): Add ObjC file extension.
67
4a351cef
AF
682002-10-14 Adam Fedor <fedor@gnu.org>
69
70 * utils.c (puts_filtered_tabular): New function.
71 (fprintf_symbol_filtered): Get ObjC demangled name.
72 * defs.h (puts_filtered_tabular): Declared.
73
9750e763
KB
742002-10-14 Kevin Buettner <kevinb@redhat.com>
75
76 * c-lang.h (c_type_print_varspec_prefix): Delete.
77 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
78 ``need_post_space'' parameter. Adjust all callers.
79
eee771c1
DJ
802002-10-14 Daniel Jacobowitz <drow@mvista.com>
81
82 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
83 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
84 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
85 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
86
46c82446
AF
872002-10-13 Adam Fedor <fedor@gnu.org>
88
89 * source.c (print_source_lines): Update comments.
90
d069f99d
AF
912002-10-13 Adam Fedor <fedor@gnu.org>
92
93 * valops.c (value_of_local): New function.
94 (value_of_this): Use it.
95 * value.h (value_of_local): Declared.
96
53c551b7
AF
972002-10-13 Adam Fedor <fedor@gnu.org>
98
99 * parse.c: (length_of_subexp, prefixify_subexp): Handle
100 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
101
eb392fbf
AF
1022002-10-12 Adam Fedor <fedor@gnu.org>
103
104 * language.c (binop_result_type): Add language_objc to case.
105 (integral_type): Likewise.
106 (character_type): Likewise.
107 (string_type): Likewise.
108 (boolean_type): Likewise.
109 (structured_type): Likewise.
110 (binop_type_check): Likewise.
111
e2b23ee9
AF
1122002-10-11 Adam Fedor <fedor@gnu.org>
113
114 * printcmd.c (address_info): Print 'self' for ObjC.
115
b01ab485
AF
1162002-10-11 Adam Fedor <fedor@gnu.org>
117
118 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
119 OP_SELF.
120
806e6073
AF
1212002-10-11 Adam Fedor <fedor@gnu.org>
122
123 * language.h (CAST_IS_CONVERSION): Add language_objc.
124
50f85cdf
AF
1252002-10-11 Adam Fedor <fedor@gnu.org>
126
127 * defs.h (enum language): Add language_objc.
128
0d540cdf
KD
1292002-10-11 Klee Dienes <kdienes@apple.com>
130
131 * findvar.c (read_memory_typed_address): New function.
132 * gdbcore.h (read_memory_typed_address): Add prototype.
133 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
134 to read a value destined for a CORE_ADDR, not read_memory_integer.
135 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
136 (f77_get_dynamic_lowerbound): Ditto.
137
d5dc7960
MH
1382002-10-11 Martin M. Hunt <hunt@redhat.com>
139
140 * utils.c (string_to_core_addr): After turning string into
141 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
142 which will do necessary sign-extension, etc.
143
8343f86c
DJ
1442002-10-11 Daniel Jacobowitz <drow@mvista.com>
145
146 * c-exp.y (THIS): Delete token and grammar rule.
147 (yylex): Don't return THIS.
148 * cp-valprint.c (vtbl_ptr_name_old): Delete.
149 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
150 * demangle.c (cplus_markers): Update comment. Put '$'
151 first. Remove CPLUS_MARKER.
152 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
153 * jv-exp.y (THIS): Delete token and grammar rule.
154 (yylex): Don't return THIS.
155 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
156 * objc-exp.y (THIS): Delete token and grammar rule.
157 (yylex): Don't return THIS.
158 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
159 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
160 (read_member_functions): Likewise for opname.
161 (read_tilde_fields): Use is_cplus_marker.
162
163 * defs.h (CPLUS_MARKER): Don't define.
164 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
165 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
166 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
167 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
168 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
169
170 * config/i386/tm-i386v4.h: Delete file.
171 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
172 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
173 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
174 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
175 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
176 * config/i386/i386sco5.mt (TM_FILE): Likewise.
177 * config/i386/i386v4.mt (TM_FILE): Likewise.
178 * config/i386/ncr3000.mt (TM_FILE): Likewise.
179
967c0d83
MM
1802002-10-10 Marko Mlinar <markom@opencores.org>
181
182 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
183 accidentially not commited 2002-10-09
184 * gdbarch.h, gdbarch.c: Re-generate.
185
f74fa174
MM
1862002-10-09 Marko Mlinar <markom@opencores.org>
187
188 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
189 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
190 * gdbarch.h, gdbarch.c: Re-generate.
191
57349743
JB
1922002-10-08 Petr Sorfa <petrs@caldera.com>
193
194 Revised and re-submitted by John Wolfe <jlw@caldera.com>
195
196 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
197 so we can work on more than one compilation unit at a time. This
198 helps prepare GDB to handle inter-CU die references.
199 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
200 the code to be defined before struct comp_unit_head.
201 (comp_unit_head): Added new members - offset, cu_head,
202 begin_die, next and dwarf2_abbrevs.
203 (dwarf2_abbrevs): Removed single static var; now member of
204 struct comp_unit_head.
205 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
206 members.
207 (psymtab_to_symtab_1): Changed to work with the new
208 struct comp_unit_head.
209 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
210 constructs the dwarf2_abbrevs[] inside the cu_header.
211 (dwarf2_empty_abbrev_table): Now expects a ptr to a
212 dwarf2_abbrev table to clean up.
213 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
214 handling of dwarf2_abbrevs inside the cu_header.
215 (read_partial_die): Now supports the call to the new
216 dwarf2_lookup_abbrev.
217 (read_full_die): Now supports the call to the new
218 dwarf2_lookup_abbrev.
219
4092aadb
CF
2202002-10-06 Christopher Faylor <cgf@redhat.com>
221
222 * Makefile.in (install-gdbtk): Add missing continuation backslash to
223 insure that shell variables, such as "transformed_name" are propagated
224 to later shell statements in rule.
225
af0b2512
MK
2262002-10-06 Mark Kettenis <kettenis@gnu.org>
227
228 * config/i386/nm-i386sco.h: Add protection against
229 multiple-inclusion. Include "i386/nm-i386v.h".
230 (REGISTER_U_ADDR): Remove define.
231 (i386_register_u_addr): Remove prototype.
232
d6020d45
MS
2332002-10-04 Michael Snyder <msnyder@redhat.com>
234
235 * m32r-stub.c (handle_exception): Make sure exception is "trap"
236 before treating it as a single-step event.
237
7248f48e
AF
2382002-10-03 Adam Fedor <fedor@gnu.org>
239
240 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
241 (objc_demangle): Remove assignment in if statements, Replace
242 free with xfree.
243 (add_msglist): Likewise.
244 (end_msglist): Likewise.
245 (complare_selectors): Likewise.
246 (selectors_info): Likewise.
247 (compare_classes): Likewise.
248 (classes_info): Likewise.
249 (print_object_command): Likewise.
250 (find_objc_msgcall_submethod): Replace PTR with void *.
251 * objc-lang.h: Remove check for __STDC__.
252
52c6a6ac
JJ
2532002-10-03 Jeff Johnston <jjohnstn@redhat.com>
254
255 * ui-out.h (ui_out_field_fmt_int): New prototype.
256 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
257 of field width and alignment.
258 * stack.c (print_frame_info_base): When printing frame level, use
259 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
260 PR gdb/192
261
7e3cec17
JJ
2622002-10-03 Jeff Johnston <jjohnstn@redhat.com>
263
264 * MAINTAINERS: Add self to Write After Approval list.
265
a58dd373
EZ
2662002-10-02 Elena Zannoni <ezannoni@redhat.com>
267
268 * infcmd.c (interrupt_target_command_wrapper): Delete.
269 (interrupt_target_command): Make non static.
270 (nofp_registers_info): Make static.
271 * stack.c (return_command_wrapper): Delete.
272 (return_command): Make non static.
273
cee6ddeb
EZ
2742002-10-02 Elena Zannoni <ezannoni@redhat.com>
275
276 * event-top.c (gdb_setup_readline): New function. Code moved from
277 _initialize_event_loop().
278 (_initialize_event_loop): Call gdb_setup_readline().
279
c4ed33b9
AC
2802002-10-02 Andrew Cagney <ac131313@redhat.com>
281
282 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
283 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
284 * gdbarch.h, gdbarch.c: Re-generate.
285
cef4f5dd
DJ
2862002-10-02 Daniel Jacobowitz <drow@mvista.com>
287
288 Fix PR gdb/778
289 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
290 before recursing.
291 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
292 of fill_in_vptr_fieldno.
293
36dc181b 2942002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 295
36dc181b
EZ
296 * inferior.h (registers_info, stepi_command, nexti_command,
297 continue_command, interrupt_target_command): Export from infcmd.c.
298 * frame.h (args_info, selected_frame_level_changed_hook,
299 return_command): Export from stack.c.
300 * v850ice.c (stepi_command, nexti_command, continue_command): use
301 prototypes from inferior.h.
302 * tracepoint.c (registers_info, args_info, locals_info): Use
303 prototypes from frame.h and inferior.h.
304 * Makefile.in (mi-main.o): Add dependency on frame.h.
305
6f99cb26
AC
3062002-10-02 Andrew Cagney <ac131313@redhat.com>
307
da3eff49
AC
308 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
309 value in register 3 adjusted by ppc_gp0_regnum.
310
6f99cb26
AC
311 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
312
da615bee
MM
3132002-10-02 Marko Mlinar <markom@opencores.org>
314
315 * MAINTAINERS: Add myself to the Write After Approval list.
316
d154bee2
AO
3172002-10-01 Alexandre Oliva <aoliva@redhat.com>
318
62a49b2c
AO
319 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
320 of the section for the N64 ABI, fixed.
321
d154bee2
AO
322 * config/mips/tm-irix6.h: Include solib.h.
323
ed348acc
EZ
3242002-10-01 Elena Zannoni <ezannoni@redhat.com>
325
326 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
327 GNU operators.
328
da0f9dcd
AC
3292002-10-01 Andrew Cagney <ac131313@redhat.com>
330
331 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
332 and that "mi0" syntax has been removed.
333
bdf64bac
DC
3342002-09-30 David Carlton <carlton@math.stanford.edu>
335
336 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
337 * ppc-sysv-tdep.c: #include "gdb_string.h".
338 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
339 pacify GCC.
340
54c2a1e6
AC
3412002-10-01 Andrew Cagney <ac131313@redhat.com>
342
343 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
344 "vrsave"'s register number.
345
cedea778
AC
3462002-09-30 Andrew Cagney <ac131313@redhat.com>
347
348 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
349 use frame_unwind_signed_register to obtain the PC.
350 (mips_frame_chain): Handle a generic dummy frame.
351 (mips_init_extra_frame_info): When a generic dummy frame, don't
352 re-compute the frame base.
353 (mips_pop_frame): Handle generic dummy frames.
354 (mips_gdbarch_init): When generic dummy frames, set
355 use_generic_dummy_frames, push_dummy_frame to
356 generic_push_dummy_frame, pc_in_call_dummy to
357 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
358 generic_save_dummy_frame_tos.
359
68315eb8
AC
3602002-09-30 Andrew Cagney <ac131313@redhat.com>
361
362 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
363 against TOP when TOP was explictly set.
364 (generic_push_dummy_frame): Set TOP to zero.
365
3b8630c3
EZ
3662002-09-30 Elena Zannoni <ezannoni@redhat.com>
367
368 * event-loop.c (start_event_loop): Rename variable 'result' to
369 'gdb_result', to avoid conflicts with upcoming intepreters changes.
370
28ee05e9
KS
3712002-09-30 Keith Seitz <keiths@redhat.com>
372
373 * gdb-events.sh (selected_thread_changed): New event.
374 * gdb-events.c: Regenerated.
375 * gdb-events.h: Regenerated.
376
6eecb1c8
HPN
3772002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
378
379 * MAINTAINERS: Add self to Write After Approval list.
380
92df71f0
FN
3812002-09-30 Fernando Nasser <fnasser@redhat.com>
382
3b8630c3
EZ
383 * disasm.c: New file.
384 * disasm.h: New file.
92df71f0
FN
385 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
386 (compare_lines): Ditto.
387 (dump_insns): Ditto.
3b8630c3
EZ
388 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
389 argument.
92df71f0 390 (do_assembly_only): Ditto.
3b8630c3
EZ
391 (do_disassembly): Renamed to gdb_disassembly and moved to
392 disasm.c. Sdded uiout argument.
393 * Makefile.in: Add new files. Reorder SFILES list. Update
394 dependencies. Include libgdb.a later in the insight executable.
92df71f0 395
0c22854d
AC
3962002-09-29 Andrew Cagney <ac131313@redhat.com>
397
398 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
399 bfd/elf64-alpha-fbsd.c.
400
e67f2023
AC
4012002-09-29 Andrew Cagney <ac131313@redhat.com>
402
403 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
404 i386gnu-tdep.c.
405
89396210
AC
4062002-09-29 Andrew Cagney <ac131313@redhat.com>
407
408 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
409 __FUNCTION__.
410 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
411 function name.
412 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
413 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
414 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
415 (S_msg_sig_post_reply): Ditto.
416
7079c36c
CV
4172002-09-28 Corinna Vinschen <vinschen@redhat.com>
418
89396210
AC
419 * sh-tdep.c (sh_use_struct_convention): Use definition according
420 to ABI.
7079c36c
CV
421 (sh_push_arguments): Store in register with correct endianess.
422 (sh_default_store_return_value): Ditto.
423 (sh_gdbarch_init): Set sizeof long double to 8.
424
975ac915
MK
4252002-09-27 Mark Kettenis <kettenis@gnu.org>
426
427 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
428 Fix some whitespace problems.
429
9bbe19fb
DC
4302002-09-27 David Carlton <carlton@math.stanford.edu>
431
432 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
433 (mcore-tdep.o): Ditto.
434 (ns32k-tdep.o): Ditto.
435 (ns32knbsd-tdep.o): Ditto.
436 (sh3-rom.o): Ditto.
437 (vax-tdep.o): Ditto.
438 * cris-tdep.c: #include "gdb_string.h"
439 * mcore-tdep.c: Ditto.
440 * ns32k-tdep.c: Ditto.
441 * ns32knbsd-tdep.c: Ditto.
442 * sh3-rom.c: Ditto.
443 * vax-tdep.c: Ditto.
444
43b2fdc7
DC
4452002-09-27 David Carlton <carlton@math.stanford.edu>
446
447 * config/djgpp/fnchange.lst: Add entries for
448 gdb/testsuite/gdb.c++/m-static files.
449
e8cfbbd9
JW
4502002-09-27 Jim Wilson <wilson@redhat.com>
451
452 * MAINTAINERS: Add myself to the Write After Approval list.
453
43b2fdc7 4542002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
455
456 * mips-tdep.c (find_proc_desc): Initialize startaddr.
457
458
9f3b7f07
AC
4592002-09-26 Andrew Cagney <ac131313@redhat.com>
460
461 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
462 frame.
463
11269d7e
AC
4642002-09-26 Andrew Cagney <ac131313@redhat.com>
465
466 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
467 (rs6000_struct_return_address): Delete variable.
468 (rs6000_store_struct_return): Update.
469 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
470 deprecated_extract_struct_value_address.
471 (rs6000_frame_align): New function.
472 (rs6000_gdbarch_init): Set frame_align.
473
f15ab4a7
AC
4742002-09-26 Andrew Cagney <ac131313@redhat.com>
475
476 From Grace Sainsbury <graces@redhat.com>:
477 * Makefile.in (gdbtk-main.o): New target.
478 (gdb.o): New target.
479 (main_h): Define.
480 (main.o): Update dependencies.
481 (gdb$(EXEEXT)): Add gdb.o.
482 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
483 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
484 (SUBDIR_GDBTK_CLEAN): Set.
485 (install-gdbtk): Install the insight binary.
486 (uninstall-gdbtk): New target.
487 (all-gdbtk, clean-gdbtk): New rule.
488 * top.c (use_windows): Default to zero.
489 * main.c: Include "main.h".
490 (main): Delete.
491 (struct captured_main_args): Delete.
492 (gdb_main): New function.
493 * main.h: New file.
494 * gdb.c: New File.
495
e36180d7
AC
4962002-09-25 Andrew Cagney <cagney@redhat.com>
497
498 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
499 (frame_map_regnum_to_name): New function.
500 (frame_map_name_to_regnum): New function.
501 * frame.h (frame_map_name_to_regnum): Declare.
502 (frame_map_regnum_to_name): Declare.
503 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
504 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
505 * parse.c: Do not include "builtin-regs.h".
506 (target_map_name_to_register): Delete function.
507 (write_dollar_variable): Use frame_map_name_to_regnum.
508 * parser-defs.h (target_map_name_to_register): Delete declaration.
509 * expprint.c: Include "frame.h".
510 (print_subexp): Use frame_map_regnum_to_name.
511 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
512 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
513
8b69000d
AC
5142002-09-25 Andrew Cagney <ac131313@redhat.com>
515
516 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
517 wasn't saved, and the next innermost frame is a dummy, return the
518 dummy frame's link register.
519
046ca86a
JB
5202002-09-24 Jim Blandy <jimb@redhat.com>
521
522 Fix from Paul Breed:
523 * main.c (captured_main): Add a `break' after the case for 'b'.
524
94b66fa7
KS
5252002-09-24 Keith Seitz <keiths@redhat.com>
526
527 * varobj.c (c_type_of_child): Use get_target_type instead
528 of TYPE_TARGET_TYPE.
529
c214a6fd
FN
5302002-09-22 Fernando Nasser <fnasser@redhat.com>
531
53cb0458
FN
532 * source.c (get_current_or_default_source_symtab_and_line): Remove
533 function.
534 (set_default_source_symtab_and_line): New function. Attempts to
535 determine a source file to list lines from if one is not currently
536 defined.
537 (get_current_source_symtab_and_line): Initialize sal.pc and
538 sal.end fields.
539 (set_current_source_symtab_and_line): Mark argument as const.
540 * source.h: Update declarations and comments.
541 * linespec.c (decode_line_1): Replace call to removed routine above.
542 * stack.c (print_frame_info_base): Ditto.
543 * cli/cli-cmds.c (edit_command): Ditto.
544 (list_command): Ditto.
545
5462002-09-22 Fernando Nasser <fnasser@redhat.com>
547
d6020d45 548 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 549 sal.pc and sal.end fields.
c214a6fd
FN
550 (get_current_or_default_source_symtab_and_line): Ditto.
551 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
552 so we do not cause a new source symtab to be searched for (reverting an
553 unintentional change from the 2002-09-20 patch).
554 * scm-lang.c (scm_unpac): Ditto.
555
cc3b68a5
AC
5562002-09-21 Andrew Cagney <cagney@redhat.com>
557
558 * complaints.c (symfile_explanations): Remove new-line from
559 ``isolated_message''.
560 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
561 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
562
5835abe7
NC
5632002-09-20 Nick Clifton <nickc@redhat.com>
564
565 * NEWS: Announce that V850EA ISA is no longer supported.
566 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
567
a15ef5f5
DC
5682002-09-20 David Carlton <carlton@math.stanford.edu>
569
06ba1b39
DC
570 * Makefile.in (c-lang.o): Correct dependencies.
571 (utils.o): Gather dependencies.
572 (charset.o): Move.
a15ef5f5
DC
573 * c-lang.c: #include "gdb_string.h"
574
87885426
FN
5752002-09-20 Fernando Nasser <fnasser@redhat.com>
576
577 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
578 * cli/cli-cmds.c (list_command): New function. Implements the new
579 cli edit command.
580 (_init_cli_cmds): Add new command definition.
581 * gdb.1: Document edit command.
582 * doc/gdb.texinfo: Document edit command.
583
5842002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
585
586 * source.c: Make global variables current_source_symtab and
587 current_source_line static.
588 (list_command): Moved to cli/cli-cmds.c.
589 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
590 (get_first_line_listed): New accessor function.
591 (get_lines_to_list): New accessor function.
592 (get_current_source_symtab_and_line): New function. Retrieves the
593 position in the source code that we consider current.
594 (get_current_or_default_source_symtab_and_line): New function.
595 Like the above but attempts to determine a default position if one
596 is not currently defined.
597 (set_current_source_symtab_and_line): New function. Sets the source
598 code position considered current and returns the previously set one.
599 (clear_current_source_symtab_and_line): Reset stored information about
600 a current source line.
601 (_initialize_source): Remove registration for the "list" command and
602 its alias.
603 * source.h: Add declarations for the new functions above.
604 * symtab.h: Remove declarations for the global variables mentioned
605 above.
606 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
607 obtain current source line.
608 * linespec.c (decode_line_1): Ditto.
609 * macroscope.c (default_macro_scope): Ditto.
610 * scm-lang.c (scm_unpac): Ditto.
611 * stack.c (print_frame_info_base): Ditto.
612 * symfile.c (clear_symtab_users): Ditto.
613 * symtab.c (decode_line_spec): Ditto.
614 * cli/cli-cmds.c (list_command): Moved here from source.c.
615 (ambiguous_line_spec): Moved here from source.c.
616 (_init_cli_cmds): Add definition for "list" and its alias.
617 * Makefile.in: Update dependencies.
618
ddd216ea
CV
6192002-09-20 Corinna Vinschen <vinschen@redhat.com>
620
621 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
622 with what gcc thinks is correct.
623
6d305052
CV
6242002-09-20 Corinna Vinschen <vinschen@redhat.com>
625
626 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
627 multiple register push instruction.
628
234b45d4
KB
6292002-09-19 Jim Blandy <jimb@redhat.com>
630
631 Add support for distinct host and target character sets.
632 * charset.c, charset.h: New files.
633 * c-exp.y: #include "charset.h".
634 (yylex): Convert character and string literals to the target
635 character set, before returning them as the semantic value of the
636 token.
637 * c-lang.c: #include "charset.h".
638 (c_emit_char): Use charset-specific methods to recognize
639 characters with backslash escape forms, to decide which characters
640 to print literally and which to print using numeric escape
641 sequences, and to convert target characters to host characters
642 before printing.
643 * utils.c: #include "charset.h".
644 (no_control_char_error): New function.
645 (parse_escape): Use charset-specific methods to recognize
646 backslash escapes, parse `control character' notation, and convert
647 characters from the host character set to the target character set.
648 * configure.in: Set the default host character set.
649 Check where to find iconv, and what its argument types might be.
650 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
651 * Makefile.in (SFILES): List charset.c.
652 (COMMON_OBS): List charset.o.
653 (charset.o): New rule.
654 (charset_h): New header dependency variable.
655 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
656 (LIBICONV): New variable, set by configure.
657 (CLIBS): Include $(LIBICONV) here.
658 * aclocal.m4, config.in, configure: Regenerated.
659
525d6a61
JB
6602002-09-19 Joel Brobecker <brobecker@gnat.com>
661
662 * ada-exp.y: Add missing semicolons to end rules. Fixes a
663 bison 1.35 warning.
664
3ed93867
RE
6652002-09-19 Richard Earnshaw <rearnsha@arm.com>
666
667 * gdb_mbuild.sh: New file.
668
437666f8
AC
6692002-09-19 Andrew Cagney <ac131313@redhat.com>
670
671 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
672
389e51db
AC
6732002-09-18 Andrew Cagney <ac131313@redhat.com>
674
675 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
676 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
677 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
678 valops.c, value.h: Revert previous change.
679
3b4efeaa
MS
6802002-09-18 Michael Snyder <msnyder@redhat.com>
681
682 Preliminary support for Objective-C:
683 * defs.h (language_objc): New enum value.
684 (puts_filtered_tabular): Declaration only, exported from utils.c.
685 (skip_quoted): Delete, declared in completer.h.
686 * c-exp.y: Include completer.h.
687 * p-exp.y: Ditto.
688 * jv-exp.y: Ditto.
689 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
690 New operator enum values.
691 * language.h (CAST_IS_CONVERSION): Test for language_objc.
692 * language.c (binop_result_type): Handle language_objc case.
693 (integral_type, character_type, string_type, boolean_type,
694 structured_type, binop_type_check): Ditto.
695 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
696 (struct objc_specific): Add to general_symbol_info.
697 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
698 (SYMBOL_DEMANGLED_NAME): Handle objc case.
699 * parser-defs.h (struct objc_class_str): New struct type.
700 (start_msglist, end_msglist, add_msglist): Declaration only,
701 exported from objc-lang.c.
702 * value.h (value_of_local, value_nsstring,
703 call_function_by_hand_expecting_type): Exported from valops.c.
704 * valops.c (find_function_addr): Export.
705 (call_function_by_hand_expecting_type): New function.
706 (value_of_local): New function.
707 * symfile.c (init_filename_language_table): Add ".m" extension
708 for Objective-C.
709 * utils.c (puts_filtered_tabular): New function.
710 (fprintf_symbol_filtered): Add objc demangling support (disabled).
711 (set/show demangle): Extend help-string to refer to ObjC.
712 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
713 * stabsread.c (symbol_reference_defined): Objective-C symbols
714 may contain colons: make allowances when scanning stabs strings
715 for colons.
716 (objc_find_colon): New function.
717 * printcmd.c (address_info): If language == objc then print
718 "self" instead of "this".
719 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
720 OP_NSSTRING, and OP_SELF.
721 (prefixify_subexp): Ditto.
722 * source.c (print_source_lines): Mention objc in comment.
723 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
724 method names.
725
b9caf505
AC
7262002-09-18 Andrew Cagney <ac131313@redhat.com>
727
728 * complaints.h: Update copyright.
729 (struct complaints): Declare.
730 (struct complaint): Make `message' constant.
731 (internal_complaint): Declare.
732 (complaint): Declare.
733 (complaint_root): Delete declaration.
734 (symfile_complaints): Delete declaration.
735 (struct complaints): Add opaque declaration.
736 (clear_complaints): Add a complaints parameter.
737 * complaints.c: Update copyright.
738 (enum complaint_series): Define.
739 (complaint_root): Delete.
740 (struct complaints): Define.
741 (complaint_sentinel, symfile_complaint_book): New variables.
742 (symfile_explanations, symfile_complaints): New variables.
743 New variables.
744 (get_complaints): New function.
745 (vcomplaint): New function.
746 (complaint): New function.
747 (internal_complaint): New function.
748 (complain): Call vcomplain with symfile_complaint.
749 (clear_complaints): Rewrite.
750 (_initialize_complaints): Use add_setshow_command.
751 * Makefile.in (complaints.o): Update dependencies.
752 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
753 to call to clear_complaints.
754 (new_symfile_objfile, reread_symbols): Ditto.
755 (oldsyms_complaint): Delete.
756 (empty_symtab_complaint, unknown_option_complaint): Delete.
757 (free_named_symtabs): Use complaint instead of complain.
758
d2e6263c
MS
7592002-09-18 Michael Snyder <msnyder@redhat.com>
760
5fb2031a
AC
761 Contributed by Apple Computer, Inc. Merged with current sources
762 by Adam Fedor <fedor@doc.com> [cagney].
763
d2e6263c
MS
764 * objc-lang.c: First clean-up round: comments, indentation.
765 * objc-lang.h: Ditto.
766 * objc-lang.y: Ditto.
767
dec43320
AC
7682002-09-18 Andrew Cagney <ac131313@redhat.com>
769
770 * maint.c (maintenance_internal_error): Print the parameter as the
771 error message.
772 (maintenance_internal_warning): New function.
773 (_initialize_maint_cmds): Add command `maint internal-warning'.
774
775 * defs.h (internal_warning, internal_vwarning): Declare.
776 * utils.c (struct internal_problem): Define.
777 (internal_vproblem): New function.
778 (internal_warning): New function.
779 (internal_vwarning): New function.
780 (internal_warning_problem, internal_error_problem): New variables.
781 (internal_verror): Just call internal_vproblem.
782
b81654f1
MS
7832002-09-18 Michael Snyder <msnyder@redhat.com>
784
785 * objc-lang.c: New file, support for Objective-C.
786 Preliminary check-in, not yet integrated into gdb.
787 * objc-lang.h: New file.
788 * objc-exp.y: New file.
789
0542c381
AC
7902002-09-18 Andrew Cagney <ac131313@redhat.com>
791
7bda5e4a
AC
792 * infrun.c (signal_stop_update): Convert definition to ISO C.
793 (signal_print_update): Ditto.
794 (signal_pass_update): Ditto.
795 * inflow.c (terminal_save_ours): Ditto.
796
5247b418
AC
797 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
798 comments.
799
fc60962c
AC
800 * config/djgpp/fnchange.lst: Handle name clashes between
801 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
802 bfd/coff-tic80.c.
803
0542c381
AC
804 * i386-linux-tdep.h: Fix tipo.
805
5b924b9b
AF
8062002-09-18 Adam Fedor <fedor@gnu.org>
807
808 * MAINTAINERS: Add myself to the Write After Approval list.
809
5afc051b
JB
8102002-09-18 Jim Blandy <jimb@redhat.com>
811
812 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
813 texthigh and textlow to reader-specific structs caused
814 objfile_relocate to miss them. This is fixable, but the work that
815 the change was supposed to prepare GDB for never got done anyway.
816
eb944380
DC
8172002-09-18 David Carlton <carlton@math.stanford.edu>
818
819 * MAINTAINERS: Alphabetize Write After Approval list.
820
948e66d9
DJ
8212002-09-18 Daniel Jacobowitz <drow@mvista.com>
822
823 Fix PR gdb/709
824 * values.c (value_static_field): Call read_var_value.
825
dc604539
AC
8262002-09-18 Andrew Cagney <ac131313@redhat.com>
827
828 * valops.c (hand_function_call): Align the initial stack pointer
829 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
830 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
831 return value.
832 * mips-tdep.c (mips_frame_align): New function.
833 (mips_gdbarch_init): Set frame_align.
834 * gdbarch.sh (FRAME_ALIGN): New method.
835 * gdbarch.h, gdbarch.c: Re-generate.
836
cb7e422f
ML
8372002-09-18 Michal Ludvig <mludvig@suse.cz>
838
839 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
840 registers.
841
a094c6fb
AC
8422002-09-17 Andrew Cagney <ac131313@redhat.com>
843
844 * NEWS: Mention that MIPS $fp behavior changed.
845 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
846 reference to FP_REGNUM.
847 (mipsnbsd_cannot_store_register): Ditto.
848 * mips-linux-nat.c: Update copyright.
849 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
850 (mips_linux_cannot_store_register): Ditto.
851 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
852 * config/mips/tm-mips.h: Update copyright.
853 (FP_REGNUM): Delete macro.
854 (MIPS_REGISTER_NAMES): Replace "fp" with "".
855 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
856 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
857 (mips_r3041_reg_names, mips_r3051_reg_names)
858 (mips_r3081_reg_names): Replace "fp" with "".
859 Fix PR gdb/480.
860
45cf40d1
TR
8612002-09-17 Theodore A. Roth <troth@verinet.com>
862
863 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
864 generic_read_register_dummy() (PR gdb/703).
865 (avr_push_return_address): #if 0 out unused vars.
866 (avr_gdbarch_init): Enable use of avr_push_return_address().
867
c7e701b5
MS
8682002-09-17 Michael Snyder <msnyder@redhat.com>
869
d76ba2a5 870 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
871 RTE will take care of it.
872
20bcf01c
AC
8732002-09-17 Andrew Cagney <ac131313@redhat.com>
874
875 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
876 invalid, return SP_REGNUM.
877
009a9971 8782002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
879
880 * mips-tdep.c (mips_pop_frame): Read saved values of floating
881 point registers without sign extension.
882
135c175f
AC
8832002-09-17 Andrew Cagney <cagney@redhat.com>
884
885 * blockframe.c (deprecated_read_register_dummy): Rename
886 generic_read_register_dummy.
887 * frame.c (frame_unwind_signed_register): New function.
888 (frame_unwind_unsigned_register): New function.
889 * frame.h (frame_unwind_signed_register): Declare.
890 (frame_unwind_unsigned_register): Declare.
891 (deprecated_read_register_dummy): Rename
892 generic_read_register_dummy.
893
894 * h8300-tdep.c (h8300_frame_chain): Update.
895 (h8300_frame_saved_pc): Update.
896 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
897 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
898 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
899 (s390_frame_chain): Update.
900 * v850-tdep.c (v850_find_callers_reg): Update.
901 (v850_frame_saved_pc): Update.
902 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
903 (m32r_find_callers_reg): Update.
904 (m32r_frame_saved_pc): Update.
905 * sh-tdep.c (sh_find_callers_reg): Update.
906 (sh64_get_saved_pr): Update.
907 (sh_init_extra_frame_info): Update.
908 (sh_init_extra_frame_info): Update.
909 (sh64_init_extra_frame_info): Update.
910 (sh64_init_extra_frame_info): Update.
911 * mcore-tdep.c (mcore_find_callers_reg): Update.
912 (mcore_frame_saved_pc): Update.
913 (mcore_init_extra_frame_info): Update.
914 * i386-tdep.c (i386_frame_saved_pc): Update.
915 * ia64-tdep.c (ia64_frame_saved_pc): Update.
916 (ia64_init_extra_frame_info): Update.
917 (ia64_init_extra_frame_info): Update.
918 * d10v-tdep.c (d10v_frame_saved_pc): Update.
919 * cris-tdep.c (cris_init_extra_frame_info): Update.
920 * avr-tdep.c (avr_frame_chain): Update.
921 (avr_init_extra_frame_info): Update.
922 (avr_frame_saved_pc): Update.
923 * arm-tdep.c (arm_find_callers_reg): Update.
924 (arm_init_extra_frame_info): Update.
925 (arm_frame_saved_pc): Update.
926
a741e514
TT
9272002-09-17 Tom Tromey <tromey@redhat.com>
928
929 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
930 is "'".
931
d1a8e808
CV
9322002-09-17 Corinna Vinschen <vinschen@redhat.com>
933
934 * MAINTAINERS: Remove "non multi-arched" text from h8300.
935 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
936 NEXT_PROLOGUE_INSN.
937 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
938 NEXT_PROLOGUE_INSN.
939
d9025a18
JB
9402002-09-16 Joel Brobecker <brobecker@gnat.com>
941
942 * osfsolib.c: Remove file, replaced by solib-osf.c.
943 * Makefile.in: Remove compilation rules for osfsolib.c.
944
1b2ef1b6
DC
9452002-09-16 David Carlton <carlton@math.stanford.edu>
946
947 * cp-valprint.c (cp_print_class_method): Correct args to
948 check_stub_method_group.
949
928e48af
CV
9502002-09-16 Corinna Vinschen <vinschen@redhat.com>
951
952 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
953 `set architecture'. Unify naming convention of functions.
954 (h8300_skip_prologue): Improve prologue analysis.
955 (h8300_push_arguments): Rewritten to more closely match GCC's
956 bizarre argument-passing behavior, along with the comment describing
957 said behavior.
958 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
959 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
960 sim, remote-e7000.c, remote-hms.c and remote.c
961
5e3397bb
MK
9622002-09-15 Mark Kettenis <kettenis@gnu.org>
963
964 * i386-tdep.c (gdb_print_insn_i386): Removed.
965 (i386_print_insn): New function.
966 (i386_gdbarch_init): Set print_insn to i386_print_insns.
967 (_initialize_i386_tdep): Don't initialize tm_print_insn and
968 tm_print_insn_info.
969
f710f4fc
MK
9702002-09-14 Mark Kettenis <kettenis@gnu.org>
971
972 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
973 zero.
974
db54fef4
CV
9752002-09-14 Corinna Vinschen <vinschen@redhat.com>
976
977 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
978 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
979 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
980
2becadee
CF
9812002-09-13 Christopher Faylor <cgf@redhat.com>
982
983 * win32-nat.c (child_create_inferior): Honor 'tty' command.
984
de17c821
DJ
9852002-09-13 Daniel Jacobowitz <drow@mvista.com>
986
987 * gdbtypes.c (check_stub_method): Make static.
988 (check_stub_method_group): New function.
989 * gdbtypes.h: Update prototypes.
990 * cp-support.c: New file.
991 * cp-support.h: New file.
992
993 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
994 (update_method_name_from_physname): New function.
995 (read_member_functions): Correct method names for operators
996 and v3 constructors/destructors. Separate v2 constructors and
997 destructors.
998 * Makefile.in (stabsread.o): Update dependencies.
999 (SFILES): Add cp-support.c.
1000 (COMMON_OBS): Add cp-support.o.
1001 (cp_support_h, cp-support.o): Add.
1002
1003 * cp-valprint.c (cp_print_class_method): Call
1004 check_stub_method_group instead of check_stub_method. Remove
1005 extraneous QUITs.
1006 * p-valprint.c (pascal_object_print_class_method): Likewise.
1007 * valops.c (search_struct_method): Likewise.
1008 (find_method_list, value_struct_elt_for_reference): Likewise.
1009
e76cff22
AC
10102002-09-13 Andrew Cagney <cagney@redhat.com>
1011
1012 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1013 * gdbarch.h, gdbarch.c: Regenerate.
1014
905abb3f
AC
10152002-09-13 Andrew Cagney <ac131313@redhat.com>
1016
1017 * frame.c (find_saved_register): Delete function.
1018 * frame.h (find_saved_register): Delete declaration.
1019 Fix PR gdb/631.
1020
64159455
AC
1021Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1022
1023 * mips-tdep.c (read_next_frame_reg): Re-hack using
1024 frame_register_unwind.
1025
795e1e11
AC
1026Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1027
1028 * mips-tdep.c (mips_get_saved_register): Re-hack using
1029 frame_register_unwind.
1030
5720643c
JB
10312002-09-12 Joel Brobecker <brobecker@gnat.com>
1032
1033 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1034 vector. Will be useful for Interix.
1035 * gdbarch.h, gdbarch.c: Regenerate.
1036
1037 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1038 name of the malloc function by NAME_OF_MALLOC.
1039
3bada2a2
JB
10402002-09-12 Joel Brobecker <brobecker@gnat.com>
1041
1042 * value.h (find_function_in_inferior): Add const keyword to
1043 one of the parameters. Allows us to invoke this function with
1044 a const char *.
1045 * valops.c (find_function_in_inferior): Likewise.
1046
3db26b01
JB
10472002-09-12 Joel Brobecker <brobecker@gnat.com>
1048
1049 * exec.c (xfer_memory): Fix compilation warning with old versions
1050 of GCC.
1051 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1052
17c5ed2c
DC
10532002-09-12 David Carlton <carlton@math.stanford.edu>
1054
1055 * symtab.h: Run through gdb_indent.h.
1056 Add 2002 to Copyright year list.
1057
ecd1107e
AM
10582002-09-12 Alan Modra <amodra@bigpond.net.au>
1059
1060 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1061 mach constants.
1062 * MAINTAINERS: Add myself to write after approval list.
1063
e64f66d1
JB
10642002-09-11 J. Brobecker <brobecker@gnat.com>
1065
1066 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1067
f9395794
JB
10682002-09-11 J. Brobecker <brobecker@gnat.com>
1069
1070 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1071 Interix.
1072
1a303dec
MS
10732002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1074
1075 * procfs.c (do_detach): Clear current signal, not just fault.
1076 Corrects problem with breakpoint trap signal leaking to detached
1077 process on Tru64.
1078
c0219d42
MS
10792002-09-10 Michael Snyder <msnyder@redhat.com>
1080
1081 * buildsym.c (finish_block): Protect against null pointer.
1082
9d84ac84
AC
10832002-09-10 Andrew Cagney <cagney@redhat.com>
1084
1085 * infcmd.c (default_print_registers_info): Send all output to
1086 ``file'' instead of ``gdb_stdout''.
1087
77d8f2b4
MS
10882002-09-10 Michael Snyder <msnyder@redhat.com>
1089
1090 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1091 LONGEST, and use signed register read (addresses are sign-
1092 extended for mips).
1093
99656a61
SC
10942002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1095
1096 * event-loop.c (gdb_do_one_event): Make public.
1097 * event-loop.h (gdb_do_one_event): Declare.
1098
da12f4d8
JL
10992002-09-10 Jeff Law <law@redhat.com>
1100
1101 * infttrace.c (child_resume): Simplify and rework to avoid
1102 TT_PROC_CONTINUE.
1103
d0aee0c4
FF
11042002-09-09 Fred Fish <fnf@intrinsity.com>
1105
1106 * printcmd.c (print_scalar_formatted): "len" is the number of
1107 target bytes, NOT the number of target bits.
1108
7cb3ec5e
EZ
11092002-09-09 Elena Zannoni <ezannoni@redhat.com>
1110
1111 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1112 * top.c (init_main): Set rl_terminal_name.
1113
4dc81987
AS
11142002-09-08 Aidan Skinner <aidan@velvet.net>
1115
1116 * ada-lang.c (ada_array_bound, ada_type_match,
1117 _initialize_ada_language): Fix K&R definitions.
1118 * ada-tasks.c (get_current_task): Fix K&R definitions.
1119 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1120
842330b4
CF
11212002-09-07 Christopher Faylor <cgf@redhat.com>
1122
1123 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1124 Add XP.
1125
43156d82
MK
11262002-09-06 Mark Kettenis <kettenis@gnu.org>
1127
66da5fd8
MK
1128 * i386-tdep.c (i386_register_virtual_type,
1129 i386_register_convertible, i386_register_convert_to_virtual,
1130 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1131 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1132 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1133 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1134 Don't set push_arguments twice.
1135
4b218c18
MK
1136 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1137 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1138 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1139 sigtramp_end to NULL.
1140 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1141 defines.
1142 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1143
4cc314d5
MK
1144 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1145 whitespace.
1146
43156d82
MK
1147 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1148 * gdbarch.h, gdbarch.c: Re-generate.
1149 * blockframe.c (find_pc_sect_partial_function): Convert to use
1150 SIGTRAMP_START_P predicate.
1151
6672060b
MS
11522002-09-05 Michael Snyder <msnyder@redhat.com>
1153
a90c3637
MS
1154 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1155 generic_dummy_frame method and old method. Also distinguish
1156 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1157 (arm_extract_return_value): Use new regcache method.
a90c3637 1158
6672060b
MS
1159 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1160 adjustment that doesn't conform to the ABI.
1161 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1162 saved regcache, not from current regcache.
1163
299ffc64
AC
11642002-09-05 Andrew Cagney <ac131313@redhat.com>
1165
1166 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1167 * README: Update.
1168
a3a2ee65
JT
11692002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1170
1171 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1172 if arm_apcs_32 is false.
1173
2bc7eea9
AC
11742002-09-04 Andrew Cagney <ac131313@redhat.com>
1175
1176 GDB 5.3 branch created.
1177
8a55a7c5
TR
11782002-09-03 Theodore A. Roth <troth@verinet.com>
1179
1180 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1181 generic_unwind_get_saved_register.
1182
e26fb1d7
DC
11832002-09-03 David Carlton <carlton@math.stanford.edu>
1184
1185 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1186 argument (PR gdb/653). Update call to smash_to_method_type.
1187 (read_structure_scope): Update call to dwarf2_add_member_fn.
1188
30d52491
ML
11892002-09-03 Michal Ludvig <mludvig@suse.cz>
1190
1191 * x86-64-linux-tdep.c: Include gdb_string.h
1192 * x86-64-linux-nat.c: Ditto.
1193
06891d83
JT
11942002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1195
1196 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1197 when YYDEBUG is set to 1.
1198 * c-exp.y: Likewise.
1199 * f-exp.y: Likewise.
1200 * jv-exp.y: Likewise.
1201 * m2-exp.y: Likewise.
1202 * p-exp.y: Likewise.
1203
7d400e77
JT
12042002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1205
1206 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1207 dependency list.
1208 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1209 solib_svr4_fetch_link_map_offsets to
1210 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1211 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1212 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1213 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1214 solib-svr4.o, and solib-legacy.o.
1215 * config/i386/tm-nbsd.h: Include solib.h.
1216
704a27c4
JT
12172002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1218
1219 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1220 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1221 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1222 comment noting that this needs its own target configuration.
1223 * config/i386/nbsd.mt: New file.
1224 * config/i386/nbsdaout.mt: Remove.
1225 * config/i386/nbsdelf.mt: Ditto.
1226 * config/i386/tm-nbsdaout.h: Ditto.
1227
d66198e1
JT
12282002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1229
1230 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1231 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1232 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1233 tdep->sigtramp_end.
1234 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1235 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1236 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1237
3cac699e
JT
12382002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1239
1240 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1241 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1242 * i386-tdep.h (i386bsd_init_abi): New prototype.
1243 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1244 function declaration.
1245 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1246 for NetBSD-a.out or NetBSD-ELF.
1247 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1248 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1249 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1250 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1251 and nbsd-tdep.h.
1252 (i386nbsd_pc_in_sigtramp): New function.
1253 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1254 i386nbsd_pc_in_sigtramp.
1255 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1256 and i386nbsdelf_init_abi OS ABI handlers.
1257 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1258 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1259
7010ca0a
MK
12602002-09-02 Mark Kettenis <kettenis@gnu.org>
1261
1262 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1263 registers if the target really has them.
1264
6dd93b72
JT
12652002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1266
1267 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1268 than nbsd-tdep.h.
1269
2ca8ae21
JT
12702002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1271
1272 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1273 list.
1274 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1275 (alphanbsd_skip_sigtramp_frame): New functions.
1276 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1277 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1278 to alphanbsd_sigcontext_addr.
1279
3d9b49b0
JT
12802002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1281
1282 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1283 list.
1284 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1285 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1286 nbsd_pc_in_sigtramp.
1287 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1288 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1289 * nbsd-tdep.c: Include gdb_string.h.
1290 (nbsd_pc_in_sigtramp): New function.
1291 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1292 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1293 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1294 ppcnbsd_pc_in_sigtramp.
1295 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1296 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1297 shnbsd_pc_in_sigtramp.
1298 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1299 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1300 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1301
c860120c
PM
13022002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1303
1304 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1305 watchpoints to NULL.
1306 (insert_breakpoints): set val field of watchpoints if NULL.
1307
1308
c7612d53
JB
13092002-08-29 Jim Blandy <jimb@redhat.com>
1310
1311 * symtab.c (lookup_symbol_aux): In the cases where we find a
1312 minimal symbol of an appropriate name and use its address to
1313 select a symtab to read and search, use `name' (as passed to us)
1314 as the demangled name when searching the symtab's global and
1315 static blocks, not the minsym's name.
1316
66609862
KS
13172002-08-29 Keith Seitz <keiths@redhat.com>
1318
1319 * stack.c (print_frame_info_base): Always set current_source_symtab
1320 and current_source_line.
1321
151fefe2
JB
13222002-08-29 Donn Terry <donnte@microsoft.com>
1323
1324 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1325
bfb3754e
KS
13262002-08-28 Keith Seitz <keiths@redhat.com>
1327
1328 * stack.c (select_frame): Add FIXME concerning selected-frame
1329 events.
1330 (select_frame_command): Send selected-frame-level-changed
1331 event notification, but only if the level actually changed.
1332 (up_silently_base): Add selected-frame-level-changed event
1333 notification.
1334 (down_silently_base): Likewise.
1335
e822a2a0
AC
13362002-08-28 Andrew Cagney <ac131313@redhat.com>
1337
1338 * Makefile.in: Update dependencies for all gdb/*.c files.
1339
309367d4
TT
13402002-08-27 Tom Tromey <tromey@redhat.com>
1341
1342 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1343 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1344 Update dependencies.
1345 * i387-tdep.c: Include gdb_string.h.
1346 * osabi.c: Likewise.
1347 * i386-linux-nat.c: Likewise.
1348 * lin-lwp.c: Likewise.
1349 * ax-gdb.c: Likewise.
1350 * signals/signals.c: Likewise.
1351 * jv-valprint.c: Likewise.
1352 * p-lang.c: Likewise.
1353 * c-valprint.c: Likewise.
1354 * cp-abi.c: Likewise.
1355
e1507482
EZ
13562002-08-27 Elena Zannoni <ezannoni@redhat.com>
1357
1358 * cli/cli-script.h (copy_command_lines): Export.
1359 * breakpoint.c: Include cli/cli-script.h.
1360 * Makefile.in (breakpoint.o): Update dependencies.
1361
c6510018
MS
13622002-08-26 Michael Snyder <msnyder@redhat.com>
1363
1364 * breakpoint.c (insert_breakpoints): Protect all references
1365 to 'process_warning'. Shorten long lines.
1366
c2b8ed2c
MS
13672002-08-26 Joel Brobecker <brobecker@gnat.com>
1368
1369 * cli/cli-script.c (copy_command_lines): New function.
1370 * defs.h (copy_command_lines): Export.
1371 * testsuite/gdb.base/commands.exp: New tests for commands
1372 attached to a temporary breakpoint, and for commands that
1373 delete the breakpoint they are attached to.
1374
13752002-08-26 Michael Snyder <msnyder@redhat.com>
1376
1377 * breakpoint.c (bpstat_stop_status): Instead of copying the
1378 pointer to the breakpoint commands struct, make a new copy
1379 of the struct and point to that.
1380 (bpstat_clear): Free the commands struct.
1381 (bpstat_clear_actions): Free the commands struct.
1382 (bpstat_do_actions): Free the command actions. Also execute
1383 the local cleanups, instead of deleting them.
1384 (delete_breakpoint): Leave the commands field of the bpstat
1385 chain alone -- it will be freed later.
1386
64b84175
KB
13872002-08-26 Kevin Buettner <kevinb@redhat.com>
1388
1389 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1390 deleted in 2002-08-20 commit. This function is still used by
1391 ppc-linux-nat.c.
1392
55970da6
KS
13932002-08-26 Keith Seitz <keiths@redhat.com>
1394
1395 * gdb-events.sh: Add selected-frame-level-changed event.
1396 * gdb-events.c: Regenerated.
1397 * gdb-events.h: Regenerated.
1398
a790ad35
SC
13992002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1400
1401 Fix PR gdb/393:
1402 * inflow.c (terminal_save_ours): New function to save terminal
1403 settings.
1404 * inferior.h (terminal_save_ours): Declare.
1405 * target.c (debug_to_terminal_save_ours): New function.
1406 (cleanup_target): Defaults to_terminal_save_ours.
1407 (update_current_target): Inherit to_terminal_save_ours.
1408 (setup_target_debug): Set to_terminal_save_ours.
1409 * target.h (target_terminal_save_ours): New to save terminal settings.
1410 (target_ops): New member to_terminal_save_ours.
1411 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1412 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1413 * inftarg.c (init_child_ops): Likewise.
1414 * m3-nat.c (init_m3_ops): Likewise.
1415 * procfs.c (init_procfs_ops): Likewise.
1416 * wince.c (init_child_ops): Likewise.
1417 * win32-nat.c (init_child_ops): Likewise.
1418 * sol-thread.c (init_sol_thread_ops): Likewise.
1419
c00dcbe9
MK
14202002-08-26 Mark Kettenis <kettenis@gnu.org>
1421
3d7f4f49
MK
1422 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1423 use regcache_* functions.
1424 (i386_gdbarch_init): Set store_return_value instead of
1425 deprecated_store_return_value.
1426
c00dcbe9
MK
1427 * regcache.c (regcache_raw_write_signed,
1428 regcache_raw_write_unsigned): New functions.
1429 * regcache.h (regcache_raw_write_signed,
1430 regcache_raw_write_unsigned): New prototypes.
1431
0e0d15ca
AC
14322002-08-25 Andrew Cagney <ac131313@redhat.com>
1433
1434 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1435 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1436 source file dependencies. Cleanup corresponding generator rules.
1437
d3b22ed5
AC
14382002-08-25 Andrew Cagney <ac131313@redhat.com>
1439
1440 * regcache.h (register_offset_hack): Declare.
1441 (regcache_cooked_read_using_offset_hack): Declare.
1442 (regcache_cooked_write_using_offset_hack): Declare.
1443
1444 * regcache.c (register_offset_hack): New function.
1445 (regcache_cooked_read_using_offset_hack): New function.
1446 (regcache_cooked_write_using_offset_hack): New function.
1447 (regcache_dump): Check that the registers, according to their
1448 offset, are packed hard against each other.
1449 (cooked_xfer_using_offset_hack): New function.
1450
bb425013
AC
14512002-08-25 Andrew Cagney <ac131313@redhat.com>
1452
1453 * regcache.c (struct regcache_descr): Add field register_type.
1454 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1455 in as a parameter
1456 (init_regcache_descr): Initialize register_type. Pass the descr
1457 to init_legacy_regcache_descr. Use register_type instead of
1458 REGISTER_VIRTUAL_TYPE.
1459 (register_type): New function.
1460 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1461 * regcache.h (register_type): Declare.
1462
d0403e00
AC
14632002-08-25 Andrew Cagney <ac131313@redhat.com>
1464
1465 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1466 instead of deprecated_store_return_value. Fix fallout from
1467 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1468
0ed04cce
AC
14692002-08-25 Andrew Cagney <ac131313@redhat.com>
1470
1471 * regcache.c (max_register_size): New function.
1472 (init_legacy_regcache_descr): Ensure that max_register_size is
1473 large enough for REGISTER_VIRTUAL_SIZE.
1474 * regcache.h (max_register_size): Declare.
1475
46d79c04
AC
14762002-08-24 Andrew Cagney <ac131313@redhat.com>
1477
1478 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1479 store_return_value.
1480 (e500_extract_return_value): Change type of valbuf pointer to
1481 void.
1482
853c7bd0
MK
14832002-08-24 Mark Kettenis <kettenis@gnu.org>
1484
cd87e769
MK
1485 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1486 workaround.
1487
853c7bd0
MK
1488 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1489 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1490 long long) to prevent compiler warning on 64-bit systems.
1491
ebba8386
AC
14922002-08-23 Andrew Cagney <cagney@redhat.com>
1493
1494 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1495 (DEPRECATED_STORE_RETURN_VALUE): New method.
1496 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1497 * gdbarch.h, gdbarch.c: Re-generate.
1498
1499 * values.c (set_return_value): Pass current_regcache to
1500 STORE_RETURN_VALUE.
1501 * arch-utils.h (legacy_store_return_value): Declare.
1502 * arch-utils.c (legacy_store_return_value): New function.
1503 (legacy_extract_return_value): Update parameters.
1504
1505 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1506 STORE_RETURN_VALUE.
1507 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1508 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1509 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1510 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1511 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1512 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1513 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1514 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1515 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1516 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1517
1518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1519 * i386-tdep.c (i386_extract_return_value): Update.
1520 * arch-utils.c (legacy_extract_return_value): Update.
1521 * frv-tdep.c (frv_gdbarch_init): Update.
1522 * cris-tdep.c (cris_gdbarch_init): Update.
1523 * d10v-tdep.c (d10v_gdbarch_init): Update.
1524 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1525 * m68k-tdep.c (m68k_gdbarch_init): Update.
1526 * mcore-tdep.c (mcore_gdbarch_init): Update.
1527 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1528 * s390-tdep.c (s390_gdbarch_init): Update.
1529 * sparc-tdep.c (sparc_gdbarch_init): Update.
1530 * sh-tdep.c (sh_gdbarch_init): Update.
1531 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1532 * v850-tdep.c (v850_gdbarch_init): Update.
1533 * avr-tdep.c (avr_gdbarch_init): Update.
1534 * ia64-tdep.c (ia64_gdbarch_init): Update.
1535 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1536 * vax-tdep.c (vax_gdbarch_init): Update.
1537 * alpha-tdep.c (alpha_gdbarch_init): Update.
1538 * arm-tdep.c (arm_gdbarch_init): Update.
1539 * mips-tdep.c (mips_gdbarch_init): Update.
1540 * i386-tdep.c (i386_gdbarch_init): Update.
1541
5bd8c6d0
AC
15422002-08-23 Andrew Cagney <ac131313@redhat.com>
1543
1544 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1545 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1546
e73e1724
MK
15472002-08-24 Mark Kettenis <kettenis@gnu.org>
1548
1549 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1550 problems.
1551
3e6564e1
JB
15522002-08-23 Joel Brobecker <brobecker@gnat.com>
1553
1554 * infrun.c (handle_inferior_event): Move a comment outside of a
1555 function call, in order to avoid indent reformatting this part
1556 of the code in an unreadable way.
1557
81d0cc19
GS
15582002-08-23 Grace Sainsbury <graces@redhat.com>
1559
1560 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1561 when breakpoints fail. Move general breakpoint error messages to
1562 insert_breakpoints.
1563 * breakpoint.c (insert_breakpoints): Change warnings when
1564 breakpoints are nto inserted to specify the type. Remove call to
1565 memory_error when hardware breakpoints can't be inserted. Remove
1566 multiple calls to warning so all messages are sent to the user at
1567 once.
1568 (delete_breakpoints): Make insert error messsages more explicit.
1569
17574093
DJ
15702002-08-23 Daniel Jacobowitz <drow@mvista.com>
1571
1572 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1573 gdbserver/ChangeLog.
1574
8acc2935
MK
15752002-08-23 Mark Kettenis <kettenis@gnu.org>
1576
dfe01d39
MK
1577 * i386-tdep.c: Include "objfiles.h".
1578 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1579 skip_trampoline_code.
1580 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1581 (CPLUS_MARKER): Define to '.'.
1582
8acc2935
MK
1583 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1584 member.
1585 (linux_corefile_thread_callback): Increase args->num_notes.
1586 (linux_make_note_section): Initialize thread_args.num_notes, and
1587 use it to determine whether notes for any threads were created.
1588
151fefe2 15892002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1590
1591 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1592 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1593 and PCUNKILL.
1594 (write_with_trace): Conditionalize out the switch branch handling
1595 PCSHOLD if the corresponding macro is not defined. Likewise for
1596 PRSABORT and PRSTOP.
1597 This change will be needed by the Interix port.
1598
e1507482
EZ
15992002-08-22 Elena Zannoni <ezannoni@redhat.com>
1600
1601 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1602 write_register wherever possible instead of manipulating the
1603 register bytes directly.
1604 Assign VALUE_CONTENTS to a variable and use that.
1605 The GPR numbers are now dependent on the architecture.
1606
96ff0de4
EZ
16072002-08-22 Elena Zannoni <ezannoni@redhat.com>
1608
1609 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1610 ev_offset fields.
1611 (skip_prologue): Add support for BookE/e500 instructions.
1612 (e500_extract_return_value): New function.
1613 (frame_get_saved_regs): Add support for saving ev registers and
1614 pseudo gpr's.
1615 (e500_store_return_value): New function.
1616 (rs6000_gdbarch_init): Move up default intializations of
1617 deprecated_extract_return_value and store_return_value. Overwrite
1618 init of store_return_value with e500 specific version.
1619 Set extract_return_value for e500.
1620
fbefca5b
EZ
16212002-08-22 Elena Zannoni <ezannoni@redhat.com>
1622
1623 * blockframe.c (generic_call_dummy_register_unwind): Use
1624 regcache_cooked_read to catch cases in which the variable is
1625 stored in a pseudo register.
1626
4d210288
AC
16272002-08-22 Andrew Cagney <cagney@redhat.com>
1628
1629 * NEWS: Mention that the i960 has been made obsolete.
1630 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1631 i960-tdep.c
1632 (remote-nrom.o): Obsolete target.
1633 (remote-nindy.o, i960-tdep.o): Ditto.
1634 * remote-nrom.c: Make file obsolete.
1635 * remote-nindy.c, remote-vx960.c: Ditto.
1636 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1637 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1638 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1639 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1640 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1641 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1642 i960-*-vxworks* obsolete.
1643 * MAINTAINERS: Note that the i960 is obsolete.
1644
6c0c456d
CV
16452002-08-21 Corinna Vinschen <vinschen@redhat.com
1646
1647 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1648 detach to allow reinitialization.
1649
9f9d12b3
AC
16502002-08-22 Andrew Cagney <ac131313@redhat.com>
1651
1652 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1653 attempt).
1654
ebeb39fe
JB
16552002-08-22 Jim Blandy <jimb@redhat.com>
1656
1657 * coffread.c (coff_symfile_read): Don't try to read the line
1658 number table from disk if the image file doesn't have a symbol
1659 table; we'll never actually look at the info anyway, and Windows
1660 ships DLL's with bogus file offsets for the line number data.
1661
5bf1c677
EZ
16622002-08-21 Elena Zannoni <ezannoni@redhat.com>
1663
1664 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1665 an e500 executable.
1666
71b8ef93
MS
16672002-08-21 Michael Snyder <msnyder@redhat.com>
1668
1669 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1670 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1671 (DEFAULT_MIPS_TYPE): Delete unused macro.
1672 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1673 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1674
d174216d
JB
16752002-08-21 Jim Blandy <jimb@redhat.com>
1676
1677 * valops.c (value_cast): Simplify and correct logic for doing a
1678 static cast from a pointer to a base class to a pointer to a
1679 derived class.
1680
0ab7a791
AC
16812002-08-21 Andrew Cagney <ac131313@redhat.com>
1682
1683 * infcmd.c (default_print_registers_info): Replace
1684 do_registers_info.
1685 (registers_info): Use gdbarch_print_registers_info instead of
1686 DO_REGISTERS_INFO.
1687 * inferior.h (default_print_registers_info): Replace
1688 do_registers_info.
1689 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1690 (DO_REGISTERS_INFO): Change to a predicate function.
1691 * gdbarch.h, gdbarch.c: Regenerate.
1692
e23792cc
KS
16932002-08-21 Keith Seitz <keiths@redhat.com>
1694
1695 * gdb-events.sh: Add target-changed event.
1696 * gdb-events.c: Regenerated.
1697 * gdb-events.c: Regenerated.
1698 * valops.c (value_assign): Add target-changed event notification
1699 to inlval_register, lval_memory, and lval_reg_frame_relative.
1700
9fb14e79
JB
17012002-08-21 Joel Brobecker <brobecker@gnat.com>
1702
1703 * NEWS: Add an entry regarding the improvement of the next/step
1704 operation on Alpha Tru64 multi-processor machines.
1705
6d39a69f
AC
17062002-08-21 Andrew Cagney <ac131313@redhat.com>
1707
72acd513
AC
1708 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1709 directores.
342af04b 1710 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1711 * Makefile.in (install-gdbtk): Move to install section.
1712 (rdi-share/libangsd.a): Move to end of file.
1713
fa5f27c7
AC
17142002-08-19 Andrew Cagney <ac131313@redhat.com>
1715
1716 * frame.c (frame_register_unwind): When a register, set addrp to
1717 the register's byte.
1718
5a89d8aa
MS
17192002-08-20 Michael Snyder <msnyder@redhat.com>
1720
1721 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1722 used locally, so move them from the target machine header to here.
1723 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1724 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1725 Make static.
1726 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1727
822e978b
AC
17282002-08-20 Andrew Cagney <cagney@redhat.com>
1729
1730 * NEWS: Mention that the Apollo line was made obsolete.
1731 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1732 m68*-hp-hpux* obsolete.
1733 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1734 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1735 * buildsym.c (make_blockvector): Make static.
1736 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1737 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1738 (ALLDEPFILES): Remove dstread.c.
1739 (dstread.o): Obsolete make rule.
1740 * dstread.c: Makefile obsolete.
1741 * dst.h: Ditto.
1742 * config/m68k/hp300hpux.mt: Ditto.
1743 * config/m68k/hp300hpux.mh: Ditto.
1744 * config/m68k/hp300bsd.mt: Ditto.
1745 * config/m68k/hp300bsd.mh: Ditto.
1746 * config/m68k/apollo68b.mt: Ditto.
1747 * config/m68k/apollo68v.mh: Ditto.
1748 * config/m68k/apollo68b.mh: Ditto.
1749
e41b17f0
MS
17502002-08-20 Michael Snyder <msnyder@redhat.com>
1751
1752 * mips-tdep.c (mips_in_return_stub): Make static.
1753 (mips_gdbarch_init): Set in_solib_return_trampoline.
1754 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1755
d50355b6
MS
17562002-08-20 Michael Snyder <msnyder@redhat.com>
1757
1758 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1759 * gdbarch.c, gdbarch.h: Regenerate.
1760 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1761 Add.
1762 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1763
757a7cc6
MS
17642002-08-20 Michael Snyder <msnyder@redhat.com>
1765
1766 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1767 (mips_gdbarch_init): Set skip_trampoline_code,
1768 in_solib_call_trampoline.
1769 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1770 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1771
c8001721
EZ
17722002-08-20 Elena Zannoni <ezannoni@redhat.com>
1773
1774 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1775
1776 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1777 vector type for ev registers.
1778 (e500_pseudo_register_read): New function.
1779 (e500_pseudo_register_write): New function.
1780 (e500_dwarf2_reg_to_regnum): New function.
1781 (PPC_UISA_NOFP_SPRS): New macro.
1782 (PPC_EV_REGS): New macro.
1783 (PPC_GPRS_PSEUDO_REGS): New macro.
1784 (registers_e500): New register set for e500.
1785 (variants): Add e500 variant.
1786 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1787 before setting architectural dependent variations. Initialize ev
1788 registers numbers. Add case for e500 architecture. Set the
1789 number of pseudo registers.
1790
64366f1c
EZ
17912002-08-20 Elena Zannoni <ezannoni@redhat.com>
1792
1793 * rs6000-tdep.c: Clean up comments.
1794
7e78f0ca
AC
17952002-08-20 Andrew Cagney <cagney@redhat.com>
1796
1797 * h8300-tdep.c: Re-indent file.
1798
697f7479
JB
17992002-08-20 Jim Blandy <jimb@redhat.com>
1800
1801 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1802 default for this.
697f7479 1803
e86ae29f
KS
18042002-08-20 Keith Seitz <keiths@redhat.com>
1805
1806 * breakpoints.c (watch_command_1): Use internal breakpoint
1807 when setting a watchpoint_scope breakpoint.
1808
216b504f
EZ
18092002-08-20 Elena Zannoni <ezannoni@redhat.com>
1810
1811 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1812 (build_builtin_type_vec64i): Ditto.
1813 (build_builtin_type_vec128): Ditto.
1814 (build_builtin_type_vec128i): Ditto.
1815
f7ab6ec6
MS
18162002-08-19 Michael Snyder <msnyder@redhat.com>
1817
1818 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1819 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1820 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1821 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1822 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1823 CALL_DUMMY_ADDRESS): Delete.
1824 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1825 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1826 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1827 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1828 push_return_address.
1829 (mips_register_raw_size, mips_eabi_use_struct_convention,
1830 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1831 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1832 mips_init_extra_frame_info, mips_eabi_push_arguments,
1833 mips_n32n64_push_arguments, mips_push_return_address,
1834 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1835 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1836
b5d1566e
MS
18372002-08-19 Michael Snyder <msnyder@redhat.com>
1838
1839 * mips-tdep.c (mips_frame_num_args): New function.
1840 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1841 frame_saved_pc, frame_args_address, frame_locals_address,
1842 frame_num_args, and frame_args_skip.
1843 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1844 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1845 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1846 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1847
2f1488ce
MS
18482002-08-20 Michael Snyder <msnyder@redhat.com>
1849
1850 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1851 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1852 * mips-tdep.c (mips_store_struct_return): New function.
1853 (mips_extract_struct_value_address): New function.
1854 (mips_gdbarch_init): Set store_struct_return and
1855 extract_struct_value_address.
1856
41ff2da1
DC
18572002-08-20 David Carlton <carlton@math.stanford.edu>
1858
1859 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1860 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1861 (read_file_scope): Check that line_header is nonzero before
1862 decoding macro information.
1863
e5451d58
MK
18642002-08-20 Mark Kettenis <kettenis@gnu.org>
1865
1866 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1867 flag the general-purpose registers as floating-point on targets
1868 that don't support the floating-point registers.
1869
4a6daafa
EZ
18702002-08-20 Elena Zannoni <ezannoni@redhat.com>
1871
1872 * rs6000-tdep.c (altivec_register_p): Delete.
1873 (rs6000_do_altivec_registers): Delete.
1874 (rs6000_altivec_registers_info): Delete.
1875 (rs6000_do_registers_info): Delete.
1876 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1877 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1878
ab4327e0
EZ
18792002-08-20 Elena Zannoni <ezannoni@redhat.com>
1880
1881 * infcmd.c (do_registers_info): Print vector registers in hex
1882 format only.
1883 (print_vector_info): Check that printing registers
1884 makes sense.
1885 (print_float_info): Ditto.
1886
cb1d2653
AC
18872002-08-20 Andrew Cagney <ac131313@redhat.com>
1888
1889 * mips-tdep.c (mips_gdbarch_init): Update.
1890 (mips_o32_extract_return_value): Rewrite.
1891 (mips_o32_store_return_value): Rewrite.
1892 (mips_o32_xfer_return_value): New function.
1893 (mips_xfer_register): Tweak debug print message. Allow for
1894 buf_offset when dumping the value transfered.
1895
dfc3d9b2
AC
18962002-08-20 Andrew Cagney <ac131313@redhat.com>
1897
1898 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1899 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1900 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1901 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1902 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1903
7807aa61
MS
19042002-08-14 Michael Snyder <msnyder@redhat.com>
1905
1906 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1907
489461e2
EZ
19082002-08-19 Elena Zannoni <ezannoni@redhat.com>
1909
1910 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1911 register.
1912 (P): New macro to define a register as a pseudo register.
1913 (R, R4, R8, R16, FR32, R64, R0): Updated.
1914 (struct variant): Add new fields for number of pseudo registers
1915 and number of total registers.
1916 (tot_num_registers): New macro replacing....
1917 (num_registers): ...deleted macro.
1918 (num_registers): New function.
1919 (num_pseudo_registers): New function.
1920 (variants): Update all variants to intialize new fields correctly.
1921 Postpone initialization of number of pseudo regs and real regs.
1922 (init_variants): New function.
1923 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1924 registers offsets.
1925
fcaffe4c
DC
19262002-08-19 David Carlton <carlton@math.stanford.edu>
1927
2c2738a0
DC
1928 * valops.c (search_struct_field): Change error message to treat
1929 return value of 0 from value_static_field as meaning that field is
1930 optimized out.
1931 (value_struct_elt_for_reference): Ditto.
1932 * values.c (value_static_field): Treat an unresolved location the
1933 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1934 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1935 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1936 * MAINTAINERS: Add self to Write After Approval list.
1937
88658117
AC
19382002-08-19 Andrew Cagney <ac131313@redhat.com>
1939
1940 * mips-tdep.c (mips_xfer_register): New function.
1941 (mips_n32n64_extract_return_value): Rewrite.
1942 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1943 instead of deprecated_extract_return_value.
1944
21283beb
EZ
19452002-08-19 Elena Zannoni <ezannoni@redhat.com>
1946
1947 * rs6000-tdep.c (TDEP): Delete macro.
1948 (branch_dest): Replace use of TDEP macro with its body.
1949 (rs6000_pop_frame): Ditto.
1950 (rs6000_push_arguments): Ditto.
1951 (rs6000_skip_trampoline_code): Ditto.
1952 (rs6000_frame_saved_pc): Ditto.
1953 (rs6000_frame_chain): Ditto.
1954 (rs6000_register_name): Ditto.
1955 (rs6000_register_byte): Ditto.
1956 (rs6000_register_raw_size): Ditto.
1957 (rs6000_register_virtual_type): Ditto.
1958 (rs6000_register_convertible): Ditto.
1959 (rs6000_convert_from_func_ptr_addr): Ditto.
1960
bf072999
DJ
19612002-08-19 Daniel Jacobowitz <drow@mvista.com>
1962
1963 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1964 conditionally.
1965 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1966 MIPS_LINUX_JB_ELEMENT_SIZE.
1967 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1968 for MAX_REGISTER_RAW_SIZE arrays.
1969 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1970 MIPS_LINUX_JB_ELEMENT_SIZE.
1971
9b949a49
PM
19722002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1973
1974 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1975
6d3e79c6
AS
19762002-08-19 Aidan Skinner <aidan@velvet.net>
1977
1978 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1979 ada-valprint.c ada-tasks.c.
1980 (YYFILES): Add ada-exp.y.
1981 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1982 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1983 (ada-exp.tab.o): New target.
1984
06c0b04e
AC
19852002-08-18 Andrew Cagney <ac131313@redhat.com>
1986
1987 * regcache.c (regcache_xfer_part): New function.
1988 (regcache_raw_read_part): New function.
1989 (regcache_raw_write_part): New function.
1990 (regcache_cooked_read_part): New function.
1991 (regcache_cooked_write_part): New function.
1992 * regcache.h (regcache_raw_read_part): Declare.
1993 (regcache_raw_write_part): Declare.
1994 (regcache_cooked_read_part): Declare.
1995 (regcache_cooked_write_part): Declare.
1996
92d1e331
DJ
19972002-08-18 Daniel Jacobowitz <drow@mvista.com>
1998
1999 * remote.c (remote_open_1): Add async_p.
2000 (remote_async_open_1): Delete.
2001 (open_remote_target): Delete.
2002 (remote_open, extended_remote_open): Update calls to remote_open_1.
2003 (remote_async_open, extended_remote_async_open): Call
2004 remote_open_1 instead of remote_async_open_1.
2005
247055de
MK
20062002-08-19 Mark Kettenis <kettenis@gnu.org>
2007
2008 * blockframe.c: Fix a few coding standard violations.
2009
641eda39
MK
20102002-08-19 Mark Kettenis <kettenis@gnu.org>
2011
0b717710
MK
2012 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2013 here from ...
2014 * config/i386/tm-i386sco5.h: ... here. File removed.
2015 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2016
26d28e12 2017 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
2018 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2019 (TM_FILE): Set to tm-i386.h.
2020 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2021 * config/i386/tm-i386v.h: Remove file.
2022 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2023 instead of "i386/tm-i386v.h".
2024 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2025 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2026 "i386/tm-i386v.h".
2027 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2028 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2029 "i386/tm-i386.h".
2030
d4e0bab4
MK
20312002-08-18 Mark Kettenis <kettenis@gnu.org>
2032
2033 * config/i386/nm-i386v.h: Add protection against
2034 multiple-inclusion.
2035 (i386_register_u_addr): Remove prototype.
2036 (register_u_addr): New prototype.
2037 (REGISTER_U_ADDR): Redefine accordingly.
2038 * i386v-nat.c: Improve several comments.
2039 (i386_register_u_addr): Change signature and rename to
2040 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2041 ubase variable.
2042
46cac009
AC
20432002-08-18 Andrew Cagney <ac131313@redhat.com>
2044
2045 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2046 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2047 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2048 deprecated_extract_return_value.
2049 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2050 rename mips_o32o64_push_arguments.
2051 (mips_gdbarch_init): Update.
2052 (mips_extract_return_value): Delete.
2053 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2054 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2055 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2056 (mips_n32n64_extract_return_value): Clone
2057 mips_extract_return_value.
2058 (mips_store_return_value): Delete.
2059 (mips_o32_store_return_value): Clone mips_store_return_value.
2060 (mips_o64_store_return_value): Clone mips_store_return_value.
2061 (mips_eabi_store_return_value): Clone mips_store_return_value.
2062 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2063
d2e4a39e
AS
20642002-08-18 Aidan Skinner <aidan@velvet.net>
2065
0c30c098
AS
2066 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2067 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2068
20692002-08-18 Aidan Skinner <aidan@velvet.net>
2070
2071 * ada-lang.c: Run through gdb_indent.sh.
2072 * ada-lang.h: Run through gdb_indent.sh.
2073 * ada-tasks.c: Run through gdb_indent.sh.
2074 * ada-typeprint.c: Run through gdb_indent.sh.
2075 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2076
01fc4e33
AC
20772002-08-18 Andrew Cagney <ac131313@redhat.com>
2078
2079 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2080 ABI.
2081
d8ee244c
MK
20822002-08-18 Mark Kettenis <kettenis@gnu.org>
2083
c38d8261
MK
2084 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2085
222db64c
MK
2086 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2087 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2088
c2848c82
MK
2089 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2090 write_register_gen instead of write_register_bytes.
2091
d8ee244c
MK
2092 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2093 i[3456]-*-osf1mk* configurations have been made obsolete.
2094 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2095 i[3456]86-*-osf1mk* hosts obsolete.
2096 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2097 targets obsolete.
2098 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2099 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2100 config/i386/i386m3.mt, config/i386/nm-m3.h,
2101 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2102 config/i386/i386mk.mh, config/i386/i386mk.mt,
2103 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2104 obsolete.
2105 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2106 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2107 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2108
61d8d407
AC
21092002-08-18 Andrew Cagney <ac131313@redhat.com>
2110
2111 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2112 (hppa_value_returned_from_stack): Declare.
2113 (hppa_extract_return_value): Declare.
2114 * config/pa/hppa.mt: New file.
2115 * configure.tgt: Recognize hppa*-*-*.
2116 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2117
0c52bd59
MK
21182002-08-18 Mark Kettenis <kettenis@gnu.org>
2119
2120 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2121 comment.
2122
b5686e99
MK
21232002-08-17 Mark Kettenis <kettenis@gnu.org>
2124
2125 * top.c (gdb_rl_operate_and_get_next): Make sure
2126 operate-and-get-next functions correctly even when the history
2127 list is completely filled.
2128
c1bab85b
AC
21292002-08-18 Andrew Cagney <ac131313@redhat.com>
2130
2131 * MAINTAINERS (Target Instruction Set Architectures): Rename
2132 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2133 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2134 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2135 already listed under Host/Native.
2136
2137 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2138 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2139 mips*-*-*.
2140
32089c7c
AC
21412002-08-17 Andrew Cagney <ac131313@redhat.com>
2142
2143 * config/ia64/ia64.mt: New file.
2144 * config/alpha/alpha.mt: New file.
2145 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2146 ia64-linux-gnu. Mention that ia64-elf is broken.
2147 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2148
b4671f85
MK
21492002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2150
2151 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2152 generic_func_frame_valid instead of func_frame_valid.
2153
c8edd8b4
JB
21542002-08-16 Joel Brobecker <brobecker@gnat.com>
2155
2156 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2157 procfs appears to be broken when debugging on multi-processor
2158 machines. So enable software single stepping in order to avoid
2159 using the procfs interface to do next/step operations, using
2160 internal breakpoints instead.
2161
2162 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2163 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2164 make this pc address equal to the value it would have if the
2165 system stepping capability was used. Also set a new flag used
2166 to ensure that we don't readjust the PC one more time later.
2167
2168 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2169 address by DECR_PC_AFTER_BREAK when software single step is
2170 in use for this architecture, as this has already been taken
2171 care of in handle_inferior_event().
2172
238617f6
JB
21732002-08-16 Joel Brobecker <brobecker@gnat.com>
2174
2175 * infrun.c (handle_inferior_event): Minor reformatting, to make
2176 a rather long condition expression easier to read.
2177
541a7aac
AC
21782002-08-16 Andrew Cagney <ac131313@redhat.com>
2179
2180 * Makefile.in (gdbtk.o): Move to end of file.
2181 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2182 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2183 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2184 (gdbtk-wrapper.o, gdbres.o): Ditto.
2185
f92d4a7b
AC
21862002-08-16 Andrew Cagney <ac131313@redhat.com>
2187
2188 * Makefile.in (copying.o): Separate out compile rule.
2189 (hpux-thread.o, procfs.o, signals.o): Ditto.
2190 (v850ice.o, z8k-tdep.o): Ditto.
2191 (tui-file.o): Move to TUI section.
2192 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2193 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2194
1cce71eb
JB
21952002-08-16 Joel Brobecker <brobecker@gnat.com>
2196
2197 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2198 skip_trampoline_code, for better namespace-proofing.
2199
2200 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2201
0851f23d
JB
22022002-08-16 Joel Brobecker <brobecker@gnat.com>
2203
2204 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2205
f8d40ec8
JB
22062002-08-16 Joel Brobecker <brobecker@gnat.com>
2207
2208 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2209 signal, check whether we hit a breakpoint before checking for a
2210 single step breakpoint. Otherwise, GDB fails to notice that a
2211 breakpoint has been hit when stepping onto a breakpoint.
2212
63d022e0
KS
22132002-08-16 Keith Seitz <keiths@redhat.com>
2214
2215 * gdb-events.sh (clear_gdb_event_hooks): New function.
2216 * gdb-events.c: Regenerate.
2217 * gdb-events.h: Regenerate.
2218
6e31adb3
AC
22192002-08-16 Andrew Cagney <ac131313@redhat.com>
2220
2221 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2222 not_a_sw_breakpoint.
2223 * breakpoint.h (bpstat_stop_status): Add parameter names.
2224
c8189ed1
GS
22252002-08-16 Grace Sainsbury <graces@redhat.com>
2226
2227 * remote.c (remote_insert_hw_breakpoint)
2228 (remote_remove_hw_breakpoint): Fix calculation of length field
2229 for Z-packet.
2230
d05285fa
MS
22312002-08-15 Michael Snyder <msnyder@redhat.com>
2232
466d7106
MS
2233 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2234 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2235 (supply_fpregset): Ditto.
2236
d05285fa
MS
2237 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2238 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2239 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2240 (TARGET_READ_SP): Delete.
bf1f5b4c 2241 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2242 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2243 Delete.
2244 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2245 from macros to functions.
bf1f5b4c 2246
d05285fa
MS
2247 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2248 (mips_register_convertible, mips_register_convert_to_virtual,
2249 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2250 (mips_read_sp): New function.
2251 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2252 (mips_do_registers_info): Make static.
2253 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2254 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2255 (mips_register_convert_from_type, mips_register_convert_to_type):
2256 New functions.
2257 (mips_gdbarch_init): Set up function_start_offset,
2258 register_virtual_size, pc_in_sigtramp.
d05285fa 2259
e76f1f2e
AC
22602002-08-15 Andrew Cagney <ac131313@redhat.com>
2261
2262 * infcmd.c (vector_info): New function.
2263 (_initialize_infcmd): Add command "info vector".
2264 (print_vector_info): New function.
2265
2266 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2267 * gdbarch.h, gdbarch.c: Regenerate.
2268
4782dc19
AC
22692002-08-15 Andrew Cagney <ac131313@redhat.com>
2270
2271 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2272 ``print_all''. Only print vector registers when ``print_all''.
2273
23e3a7ac
AC
22742002-08-15 Andrew Cagney <ac131313@redhat.com>
2275
8e186fd6
AC
2276 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2277 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2278
23e3a7ac
AC
2279 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2280 Add `args' parameter.
2281 * gdbarch.h, gdbarch.c: Regenerate.
2282
2283 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2284
2285 * infcmd.c (float_info): Call print_float_info.
2286 (print_float_info): New function. By default, print the
2287 floating-point registers.
2288
2289 * arch-utils.h (default_print_float_info): Delete declaration.
2290 * arch-utils.c (default_print_float_info): Delete function.
2291
e0ca2bb9
MK
22922002-08-16 Mark Kettenis <kettenis@gnu.org>
2293
3f733acc
MK
2294 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2295 out define.
2296
7d8d2918
MK
2297 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2298 FRAME.
2299
1c7cc583
MK
2300 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2301 * configure.host: Make i[3456]86-*-aix host obsolete.
2302 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2303 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2304 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2305 config/i386/xm-i386aix.h: Make files obsolete.
2306 * i386aix-nat.c: Make file obsolete.
2307 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2308 (i386aix-nat.o): Make target obsolete.
2309
e0ca2bb9
MK
2310 * config/i386/nm-gnu.h: Removed.
2311 * config/i386/nm-i386gnu.h: New file.
2312 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2313 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2314 Moved here from ...
2315 * config/i386/tm-i386gnu.h: ... here. Removed.
2316 * config/i386/xm-i386gnu.h: Removed.
2317 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2318 (NAT_FILE): Set to nm-i386gnu.h.
2319 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2320 * i386-tdep.c: New file.
2321 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2322 (i386gnu-tdep.o): Specify dependencies.
2323
16057ec7 23242002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2325
6b99ee2e
MK
2326 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2327 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2328 Adjust a few comments to reflect reality a bit closer.
2329 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2330 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2331 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2332 target_insert_watchpoint, target_remove_watchpoint):
2333 Move defines to ...
2334 * config/i386/nm-i386sco5.h: ... here.
2335 (kernel_u_size): Add prototype. Improve a few comments and add
2336 protection against multiple inclusion.
2337
d9a6f65c
MK
2338 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2339 out define.
2340
047eff6a
MK
2341 * uw-thread.c (SP_ARG0): Define if not already defined.
2342 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2343
dcdb1290
MK
2344 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2345
5d2d0b2a
MK
2346 * config/i386/tm-i386.h: Don't include "regcache.h".
2347
61113f8b
MK
2348 * i387-tdep.h (i387_print_float_info): New prototype.
2349 * i387-tdep.c (print_i387_value, print_i387_ext,
2350 print_i387_status_word, print_i387_control_word): Add `struct
2351 ui_file *' argument and use it for output.
2352 (i387_print_float_info): Renamed from i387_float_info. Add
2353 `struct gdbarch *' and `struct ui_file *' arguments and use the
2354 latter for output.
2355 * i386-tdep.c: Include "i387-tdep.h".
2356 (i386_gdbarch_init): Set print_float_info.
2357 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2358 (FLOAT_INFO): Remove define.
2359
46e0f506
MS
23602002-08-13 Michael Snyder <msnyder@redhat.com>
2361
2362 * mips-tdep.c (mips_push_arguments): Rename to
2363 mips_eabi_push_arguments, and tune for EABI.
2364 (MIPS_REGS_HAVE_HOME_P): Delete.
2365 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2366 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2367 Delete references to mips_regs_have_home_p.
2368
409268de
KS
23692002-08-14 Keith Seitz <keiths@redhat.com>
2370
2371 * Makefile.in (install-gdbtk): Create insight plugin directory.
2372 Install plugins.tcl file.
2373
ffc6a242
KS
23742002-08-14 Keith Seitz <keiths@redhat.com>
2375
2376 * configure.in: Move SUBDIRS to near top of the file so that
2377 --enable options may add things to it.
2378 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2379 * configure: Regenerate.
2380
ebafbe83
MS
23812002-08-13 Michael Snyder <msnyder@redhat.com>
2382
2383 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2384 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2385 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2386
32f6f25d
AC
23872002-08-13 Andrew Cagney <ac131313@redhat.com>
2388
2389 * vax-tdep.c (vax_get_saved_register): Delete function.
2390 (vax_gdbarch_init): Update.
2391 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2392 (ns32k_gdbarch_init): Update.
2393 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2394 (alpha_gdbarch_init): Update.
2395
53826de9
AC
23962002-08-13 Andrew Cagney <cagney@redhat.com>
2397
2398 * regcache.c (init_regcache_descr): Overallocate the
2399 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2400 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2401 nr_raw_registers.
2402 (set_register_cached): Add range checking assertions. Use
2403 current_regcache.
2404
16057ec7 24052002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2406
2407 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2408 numbers for MMX registers.
2409
7b4c2dce
AC
24102002-08-13 Andrew Cagney <cagney@redhat.com>
2411
2412 * i386-tdep.c (i386_gdbarch_init): Use
2413 generic_unwind_get_saved_register.
2414
1e03ad20
KB
24152002-08-13 Kevin Buettner <kevinb@redhat.com>
2416
2417 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2418 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2419 target vector.
2420 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2421 Delete. Add comment regarding this now-deleted target method.
2422
548bcbec
SC
24232002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2424
2425 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2426 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2427 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2428 real PC and the page number (if it's within the memory bank window).
2429 (m68hc11_pseudo_register_write): Likewise when saving.
2430 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2431 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2432 (m68hc11_register_raw_size): And use 32-bit for it.
2433 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2434 16K memory bank is used by the prog; also use the virtual pc.
2435
7df11f59
SC
24362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2437
2438 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2439 (m68hc11_gdbarch_init): Install it in gdbarch.
2440 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2441 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2442 (MSYMBOL_SIZE): New for documentation.
2443 (insn_return_kind): Enum to specify how a function returns.
2444 (frame_extra_info): Cleanup and record the return mode.
2445 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2446 register in address computation.
2447 (m68hc11_get_return_insn): New to obtain the return instruction used
2448 by the function.
2449 (m68hc11_frame_init_saved_regs): Take into account the return
2450 instruction used by the function for far and interrupt functions.
2451 (m68hc11_init_extra_frame_info): Take into account page register.
2452 (m68hc11_frame_args_address): Adjust according to the return mode.
2453 (show_regs): Print page register only when it's used.
2454
5706502a
SC
24552002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2456
2457 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2458 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2459 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2460 registers.
2461 (m68hc11_register_raw_size): Likewise.
2462
28fc6740
AC
24632002-08-13 Andrew Cagney <cagney@redhat.com>
2464
2465 * i386-tdep.c (i386_register_name): Handle mmx registers.
2466 (mmx_regnum_p): New function.
2467 (i386_mmx_names): New array.
2468 (mmx_num_regs): New variable.
2469 (i386_pseudo_register_read): New function.
2470 (i386_pseudo_register_write): New function.
2471 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2472
2473 * regcache.c (regcache_raw_read_unsigned): New function.
2474 (regcache_raw_read_signed): New function.
2475 * regcache.h (regcache_raw_read_unsigned): Declare.
2476 (regcache_raw_read_signed): Declare.
2477
a378f419
AC
24782002-08-13 Andrew Cagney <cagney@redhat.com>
2479
2480 * regcache.c (regcache_raw_read_as_address): Delete function.
2481 (regcache_cooked_read_signed): New function.
2482 (regcache_cooked_read_unsigned): New function.
2483 * regcache.h (regcache_cooked_read_signed): Declare.
2484 (regcache_cooked_read_unsigned): Declare.
2485 (regcache_raw_read_as_address): Delete declaration.
2486
2487 * blockframe.c (generic_read_register_dummy): Use
2488 regcache_cooked_read_unsigned.
2489 * i386-tdep.c (i386_extract_struct_value_address): Use
2490 regcache_cooked_read_unsigned.
2491
81967506
SC
24922002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2493
2494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2495 double sizes according to ELF ABI flags.
2496 (gdbarch_tdep): Record elf_flags.
2497
ffe1f3ee
SC
24982002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2499
2500 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2501 (m6812_prolog): They can appear in 68HC12 function prologue.
2502 (m68hc11_frame_chain): Cleanup.
2503
98216c5d
AC
25042002-08-12 Andrew Cagney <cagney@redhat.com>
2505
2506 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2507 declarations.
2508 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2509 (i386_linux_register_raw_size): Delete function.
2510 (i386_linux_init_abi): Update.
2511 * i386-tdep.c (i386_register_raw_size): Delete function.
2512 (i386_register_byte): Delete function.
2513 (i386_gdbarch_init): Update.
2514 (i386_register_size): Delete array.
2515 (i386_register_offset): Delete array.
2516
2517 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2518 (REGISTER_RAW_SIZE): Delete macro.
2519 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2520 (REGISTER_BYTE): Delete macro.
2521
3b19021e
AS
25222002-08-11 Aidan Skinner <aidan@velvet.net>
2523
2524 * ada-lang.c (ada_lookup_partial_symbol)
2525 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2526 prototype names so that grep ^func works properly.
2527
2528 * ada-lang.c (ada_array_element_type)
2529 (ada_lookup_partial_symbol): Fix typos in parameter list.
2530
2531 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2532 Fix prototype names so that grep ^func works properly.
2533
b063e7a2
AC
25342002-08-10 Andrew Cagney <cagney@redhat.com>
2535 Elena Zannoni <ezannoni@redhat.com>
2536 Martin M. Hunt <hunt@redhat.com>
2537
2538 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2539 (build_builtin_type_vec128i): Set the vector bit.
2540 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2541 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2542 (build_builtin_type_vec64): New function.
2543 (build_builtin_type_vec64i): New function.
2544 (build_gdbtypes): Initialize builtin_type_vec64 and
2545 builtin_type_vec64i.
2546
a7e3c2ad
AC
25472002-08-09 Andrew Cagney <cagney@redhat.com>
2548
2549 * regcache.c (regcache_dump): Compare the register offset
2550 with REGISTER_BYTE.
2551 * arch-utils.c (generic_register_byte): New function.
2552 * arch-utils.h (generic_register_byte): Declare.
2553 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2554 * gdbarch.h, gdbarch.c: Regenerate.
2555
af030b9a
AC
25562002-08-09 Andrew Cagney <cagney@redhat.com>
2557
2558 * regcache.c: Include "gdbcmd.h"
2559 (_initialize_regcache): Add commands "maintenance print
2560 registers", "maintenance print raw-registers" and "maintenance
2561 print cooked-registers".
2562 (enum regcache_dump_what): Define.
2563 (dump_endian_bytes): New function.
2564 (regcache_dump): New function.
2565 (regcache_print): New function.
2566 (maintenance_print_registers): New function.
2567 (maintenance_print_raw_registers): New function.
2568 (maintenance_print_cooked_registers): New function.
2569 * Makefile.in (regcache.o): Update dependencies.
2570
cb3d25d1
MS
25712002-08-09 Michael Snyder <msnyder@redhat.com>
2572
2573 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2574 (mips_push_arguments): Correct some comments. Use paddr_nz
2575 for printing addresses in debug output. Replace static
2576 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2577 (mips_n32n64_push_arguments): New function, cloned from
2578 mips_push_arguments and tuned for the n32/n64 ABI.
2579 (mips_push_register): Buffer needs dynamic allocation.
2580 (mips_print_register): Ditto.
2581 (do_gp_register_row): Ditto.
2582 (mips_store_return_value): Ditto.
2583 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2584
2163ab9d
DH
25852002-08-09 Don Howard <dhoward@redhat.com>
2586
2587 * memattr.c (mem_info_command): Print special case of upper bound
2588 as max CORE_ADDR + 1.
2589
b78bcb18
MS
25902002-08-08 Michael Snyder <msnyder@redhat.com>
2591
2592 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2593 returns structs by ref if they're too big to fit in two registers.
2594
ffabd70d
KB
25952002-08-09 Kevin Buettner <kevinb@redhat.com>
2596
2597 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2598 saved regs value.
2599 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2600 mips_find_saved_regs().
2601 (mips_pop_frame): Likewise.
2602
fbcdb4a3
KB
26032002-08-09 Kevin Buettner <kevinb@redhat.com>
2604
2605 * blockframe.c (frame_saved_regs_register_unwind): Revise
2606 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2607 frames are in use.
2608
3c3bea1c
GS
26092002-08-09 Grace Sainsbury <graces@redhat.com>
2610
2611 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2612 T-packets; the 'a' is not taken as a register number.
2613 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2614 (remote_stopped_data_address): New functions; add to target
2615 vector.
2616 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2617 prototypes to match other implementations of this
2618 function. replace integer argument with pointer -- the length
2619 field in the Z-packet is the length of what is pointed to or 1 if
2620 pointer is null. Add to target vector.
2621 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2622 target vector.
2623
2624 From Mark Salter:
2625 * remote.c (remote_wait): Add support to extract optional
2626 watchpoint information from T-packet. Ignore unrecognized
2627 optional info in T-packet.
2628 (remote_async_wait): Ditto.
2629
5d1d95de
CV
26302002-08-09 Corinna Vinschen <vinschen@redhat.com>
2631
2632 * cli/cli-dump.c: Change fopen modes to use binary open modes
2633 as defined in include/fopen-bin.h throughout.
2634
c86b5b38
MS
26352002-08-08 Michael Snyder <msnyder@redhat.com>
2636
2637 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2638
b30590dc
KB
26392002-08-08 Kevin Buettner <kevinb@redhat.com>
2640
2641 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2642 assertion failure by returning early after a warning.
2643
498868ed
KB
26442002-08-08 Kevin Buettner <kevinb@redhat.com>
2645
2646 * mips-tdep.c (mips_find_saved_regs): Make static.
2647 (mips_frame_init_saved_regs): New function.
2648 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2649 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2650 (mips_find_saved_regs): Delete declaration.
2651
b2dd6311
GS
26522002-08-08 Grace Sainsbury <graces@redhat.com>
2653
3c3bea1c
GS
2654 * remote.c (remote_wait, remote_async_wait): Change
2655 thread_num from int to ULONGEST.
2656 (unpack_varlen_hex): Change result parameter from
2657 int * to ULONGEST *.
b2dd6311 2658
ea47855f
AC
26592002-08-08 Andrew Cagney <ac131313@redhat.com>
2660
2661 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2662 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2663 powerpc*-*-*.
2664 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2665
69db8bae
AC
26662002-08-08 Andrew Cagney <cagney@redhat.com>
2667
2668 * gcore.c (override_derive_stack_segment): Delete variable.
2669 (preempt_derive_stack_segment): Delete function.
2670 (derive_stack_segment): Delete function.
2671 (default_derive_stack_segment): Renamed to derive_stack_segment.
2672 (override_derive_heap_segment): Delete variable.
2673 (preempt_derive_heap_segment): Delete function.
2674 (derive_heap_segment): Delete function.
2675 (default_derive_heap_segment): Rename to derive_heap_segment.
2676
cb811fe7
MS
26772002-08-06 Michael Snyder <msnyder@redhat.com>
2678
2679 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2680 * mips-tdep.c (mips_EABI_use_struct_convention,
2681 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2682 New functions. (mips_use_struct_convention): Delete.
2683 (mips_gdbarch_init): set use_gdbarch_convention.
2684
8b389c40
MS
26852002-08-06 Michael Snyder <msnyder@redhat.com>
2686
2687 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2688 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2689 mips_o32_reg_struct_has_addr): New functions.
2690 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2691
5c27f28a
AC
26922002-08-07 Andrew Cagney <ac131313@redhat.com>
2693
2694 * regcache.c (pseudo_register): Delete function.
2695 (fetch_register): Delete function.
2696 (store_register): Delete function.
2697 (regcache_raw_read, legacy_read_register_gen): Use
2698 target_fetch_registers instead of fetch_register.
2699 (legacy_write_register_gen, regcache_raw_write): Use
2700 target_store_register instead of store_register.
2701 (write_register_bytes): Ditto.
2702
2703 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2704 (STORE_PSEUDO_REGISTER): Delete.
2705 * gdbarch.h, gdbarch.c: Regenerate.
2706
5b331675
CV
27072002-08-06 Corinna Vinschen <vinschen@redhat.com>
2708
2709 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2710 write dump file binary.
2711
6acdf5c7
MS
27122002-08-05 Michael Snyder <msnyder@redhat.com>
2713
2714 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2715 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2716 (mips_gdbarch_init): Set N32 target to be mips64.
2717
b2f01c35
KB
27182002-08-06 Kevin Buettner <kevinb@redhat.com>
2719
2720 * frame.c (find_saved_register): Break out of loop once saved
2721 register address is found. Don't mention sparc in loop comment
2722 anymore.
2723
63db5580
KB
27242002-08-06 Kevin Buettner <kevinb@redhat.com>
2725
2726 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2727 mips_default_saved_regsize to 8.
2728
5e34e75e
AC
27292002-08-06 Andrew Cagney <ac131313@redhat.com>
2730
2731 * gcore.c: Do not include <sys/procfs.h>.
2732 * Makefile.in (gcore.o): Update dependencies.
2733
eb4c54a2
AC
27342002-08-06 Andrew Cagney <cagney@redhat.com>
2735
2736 * configure.tgt: Make arc-*-* obsolete.
2737 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2738 * MAINTAINERS: Make arc-elf obsolete.
2739 * arc-tdep.c: Make file obsolete.
2740 * config/arc/arc.mt: Ditto.
2741 * config/arc/tm-arc.h: Ditto.
2742
ced15480
TR
27432002-08-05 Theodore A. Roth <troth@verinet.com>
2744
c1bab85b 2745 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2746
b4743822
AC
27472002-08-05 Andrew Cagney <ac131313@redhat.com>
2748
2749 * mcore-tdep.c (mcore_gdbarch_init): Use
2750 generic_unwind_get_saved_register instead of
2751 generic_get_saved_register.
2752 * v850-tdep.c (v850_gdbarch_init): Ditto.
2753 * frv-tdep.c (frv_gdbarch_init): Ditto.
2754 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2755 * s390-tdep.c (s390_gdbarch_init): Ditto.
2756 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2757 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2758 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2759
3956d554
JB
27602002-08-05 Joel Brobecker <brobecker@gnat.com>
2761
2762 * objfiles.h: Add missing #include "symfile.h"
2763
2764 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2765
8249c0d6
AC
27662002-08-04 Andrew Cagney <ac131313@redhat.com>
2767
2768 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2769 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2770 of FIELD_BITSIZE.
2771
b9d14705
DJ
27722002-08-04 Daniel Jacobowitz <drow@mvista.com>
2773
2774 * NEWS: Cleanup and nitpick.
2775
dd73b9bb
AC
27762002-08-03 Andrew Cagney <ac131313@redhat.com>
2777
2778 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2779
043a27f8
AC
27802002-08-03 Andrew Cagney <ac131313@redhat.com>
2781
2782 * Makefile.in (gdbtk-bp.o): Update dependencies.
2783 (gdbtk-register.o): Ditto.
2784 (gdbtk-varobj.o): Ditto.
2785
46ce284d
AC
27862002-08-03 Andrew Cagney <cagney@redhat.com>
2787
2788 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2789 m68hc11_fetch_pseudo_register.
2790 (m68hc11_pseudo_register_write): Replace
2791 m68hc11_store_pseudo_register.
2792 (m68hc11_gdbarch_init): Update.
2793
b66d6d2e
AC
2794Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2795
2796 * gdbarch.sh: Include "gdb_string.h".
2797 * gdbarch.c: Regenerate.
2798
2799 * regcache.c: Include "gdb_string.h".
2800 * ax-general.c: Ditto.
2801 * varobj.c: Ditto.
2802 * std-regs.c: Ditto.
2803 * fbsd-proc.c: Ditto.
2804 * thread.c: Ditto.
2805
2806 * Makefile.in (regcache.o): Update dependencies.
2807 (thread.o, gdbarch.o): Ditto.
2808 (ax-general.o, gdbarch.o): Ditto.
2809 (varobj.o, std-regs.o): Ditto.
2810 (fbsd-proc.o): Specify dependencies.
2811
29e1842b
AC
28122002-08-02 Andrew Cagney <cagney@redhat.com>
2813
2814 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2815 regnum.
2816 (regcache_cooked_write): Ditto.
2817
68365089
AC
28182002-08-02 Andrew Cagney <ac131313@redhat.com>
2819
2820 * regcache.c (regcache_cooked_read): New function.
2821 (regcache_cooked_write): New function.
2822 (read_register_gen): Rewrite using regcache_cooked_read.
2823 (write_register_gen): Rewrite using regcache_cooked_write.
2824
2825 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2826 Declare.
2827
d8124050
AC
28282002-08-02 Andrew Cagney <cagney@redhat.com>
2829
2830 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2831 Replace the architecture methods register_read and register_write.
2832 * gdbarch.h, gdbarch.c: Regenerate.
2833 * regcache.c (init_regcache_descr): Update.
2834 (read_register_gen): Update.
2835 (write_register_gen): Update.
2836 (supply_register): Update comment.
2837
2838 * sh-tdep.c (sh_gdbarch_init): Update.
2839 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2840 `regcache' and `gdbarch' parameters. Make `buffer' a void
2841 pointer. Update code.
2842 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2843 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2844 void pointer. Update code.
2845 (sh64_register_write): Delete.
2846 (sh4_register_read): Delete.
2847 (sh64_register_read): Delete.
2848 (sh4_register_write): Delete.
2849 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2850 void pointer, `to' parameter a void pointer.
2851 (sh_sh64_register_convert_to_raw): Ditto.
2852
a6425924
KB
28532002-08-01 Kevin Buettner <kevinb@redhat.com>
2854
2855 * mips-tdep.c (mips_register_virtual_type): Use architecture
2856 invariant return values.
2857
ff5922b5
AC
28582002-08-01 Andrew Cagney <cagney@redhat.com>
2859
2860 * linux-proc.c: Include "gdb_string.h".
2861 * Makefile.in (linux-proc.o): Update dependency list.
2862
32a6503c
KB
28632002-08-01 Kevin Buettner <kevinb@redhat.com>
2864
2865 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2866 comment.
2867
ccaa32c7
GS
28682002-08-01 Grace Sainsbury <graces@redhat.com>
2869
2870 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2871 to_insert_watchpoint, to_remove_watchpoint,
2872 to_stopped_by_watchpoint, to_stopped_data_address,
2873 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2874 target vecctor. Define their corresponding macros so they call
2875 them.
2876
2877 * target.c: Add default and debug versions of for
2878 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2879 to_insert_watchpoint, to_remove_watchpoint,
2880 to_stopped_by_watchpoint, to_stopped_data_address,
2881 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2882
78fde5f8
KB
28832002-08-01 Kevin Buettner <kevinb@redhat.com>
2884
2885 * mips-tdep.c (mips_register_virtual_type): New function.
2886 (mips_gdbarch_init): Register mips_register_virtual_type()
2887 with gdbarch machinery.
2888 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2889 this file instead of tm-bigmips.h.
2890 (MIPS_REGSIZE): Delete this macro.
2891 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2892 multiarch version in mips-tdep.c will be found.
2893
db034ac5
AC
28942002-08-01 Andrew Cagney <cagney@redhat.com>
2895
2896 * NEWS: Menion that CHILL has been made obsolete.
2897
2898 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2899 * stabsread.c (read_range_type): Ditto.
2900 * gdbtypes.h: Ditto.
2901 * language.c (binop_type_check): Ditto.
2902 (binop_result_type): Ditto.
2903 (integral_type): Ditto.
2904 (character_type): Ditto.
2905 (string_type): Ditto.
2906 (boolean_type): Ditto.
2907 (structured_type): Ditto.
2908 (lang_bool_type): Ditto.
2909 (binop_type_check): Ditto.
2910 * language.h (_LANG_chill): Ditto.
2911 * dwarfread.c (set_cu_language): Ditto.
2912 * dwarfread.c (CHILL_PRODUCER): Ditto.
2913 * dwarfread.c (handle_producer): Ditto.
2914 * expression.h (enum exp_opcode): Ditto.
2915 * eval.c: Ditto for comments.
2916 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2917 * expprint.c (print_subexp): Ditto.
2918 (print_subexp): Ditto.
2919 * valops.c (value_cast): Ditto.
2920 (search_struct_field): Ditto.
2921 * value.h (COERCE_VARYING_ARRAY): Ditto.
2922 * symfile.c (init_filename_language_table): Ditto.
2923 (add_psymbol_with_dem_name_to_list): Ditto.
2924 * valarith.c (value_binop): Ditto.
2925 (value_neg): Ditto.
2926 * valops.c (value_slice): Ditto.
2927 * symtab.h (union language_specific): Ditto.
2928 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2929 (SYMBOL_DEMANGLED_NAME): Ditto.
2930 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2931 * defs.h (enum language): Ditto.
2932 * symtab.c (got_symtab): Ditto.
2933 * utils.c (fprintf_symbol_filtered): Ditto.
2934
2935 * ch-typeprint.c: Make file obsolete.
2936 * ch-valprint.c: Make file obsolete.
2937 * ch-lang.h: Make file obsolete.
2938 * ch-exp.c: Make file obsolete.
2939 * ch-lang.c: Make file obsolete.
2940
2941 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2942 CHILL_LIB.
2943 (TARGET_FLAGS_TO_PASS): Ditto.
2944 (CHILLFLAGS): Obsolete.
2945 (CHILL): Obsolete.
2946 (CHILL_FOR_TARGET): Obsolete.
2947 (CHILL_LIB): Obsolete.
2948 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2949 ch-valprint.c.
2950 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2951 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2952 ch-lang.o.
2953 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2954 targets.
2955
8aaf0b47
JB
29562002-07-31 Joel Brobecker <brobecker@gnat.com>
2957
2958 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2959 This does not change anything at the moment, but will be helpful
2960 later when full Ada support is integrated.
2961
f3a7b3a5
KB
29622002-07-31 Kevin Buettner <kevinb@redhat.com>
2963
2964 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2965 help message.
2966
fb850278
KB
29672002-07-31 Kevin Buettner <kevinb@redhat.com>
2968
2969 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2970 and save it in a local variable. Use variable in later test.
2971
e3bddbfa
KB
29722002-07-31 Kevin Buettner <kevinb@redhat.com>
2973
2974 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2975 test. (Thanks to Daniel Jacobowitz.)
2976
28d169de
KB
29772002-07-31 Kevin Buettner <kevinb@redhat.com>
2978
2979 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2980 (mips_abi_strings): Add "n64".
2981 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2982
7fe7e44e
KB
29832002-07-31 Kevin Buettner <kevinb@redhat.com>
2984
2985 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2986 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2987
c6caf090
KB
29882002-07-31 Kevin Buettner <kevinb@redhat.com>
2989
2990 * utils.c (host_pointer_to_address, address_to_host_pointer):
2991 Use gdb_assert() instead of explicit call to internal_error().
2992
c41669e0
KB
29932002-07-30 Kevin Buettner <kevinb@redhat.com>
2994
2995 * Makefile.in (rs6000-nat.o): Update dependencies.
2996
2997 From Nicholas Duffek:
2998 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2999 (aix-thread.o): New rule.
3000 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3001 * config/powerpc/aix432.mh: New file.
3002
2fda4977
DJ
30032002-07-30 Daniel Jacobowitz <drow@mvista.com>
3004
3005 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3006 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3007 (fetch_core_registers, ppc_linux_supply_gregset)
3008 (ppc_linux_supply_fpregset): New functions.
3009 (ppc_linux_regset_core_fns): New.
3010 (_initialize_ppc_linux_tdep): Call add_core_fns.
3011 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3012 and ppc_linux_supply_gregset.
3013 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3014 (supply_fpregset): Call ppc_linux_supply_fpregset.
3015 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3016 corelow.o.
3017 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3018
729051e6
DJ
30192002-07-30 Daniel Jacobowitz <drow@mvista.com>
3020
3021 * symtab.c (lookup_symbol): Demangle before lowercasing.
3022
5f8a3188
AC
30232002-07-30 Andrew Cagney <ac131313@redhat.com>
3024
3025 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3026 declaration.
3027 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3028 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3029 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3030 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3031 "gdb_string.h".
3032 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3033 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3034 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3035 (avr-tdep.o, mon960-rom.o): Ditto.
3036 (aout_stabs_gnu_h): Define.
3037 (symtab_h): Remove $(gdb_obstack_h).
3038
67f07146
JB
30392002-07-30 Jim Blandy <jimb@redhat.com>
3040
3041 Patch from David Carlton <carlton@math.stanford.edu>:
3042 * gdbinit.in: Move the `dir' commands that add GDB's own source
3043 directory to the search path to the end, so that the `gdb' source
3044 directory will be searched first.
3045
04ea0df1
AC
30462002-07-29 Andrew Cagney <ac131313@redhat.com>
3047
3048 * gdb_obstack.h: New file.
3049 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3050 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3051 * objfiles.h: Include "gdb_obstack.h".
3052 * Makefile.in (gdb_obstack_h): Define.
3053 (symtab_h): Add $(gdb_obstack_h).
3054 (objfiles_h): Add $(gdb_obstack_h).
3055
3056 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3057 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3058 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3059 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3060 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3061 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3062 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3063 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3064
3065 * Makefile.in (bcache.o): Update dependencies.
3066 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3067 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3068 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3069 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3070 (stabsread.o, symfile.o, symmisc.o): Ditto.
3071 (symtab.o, typeprint.o, macroexp.o): Ditto.
3072 (macrotab.o, mdebugread.o): Ditto.
3073 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3074 (coff_ecoff_h, aout_aout64_h): Define.
3075 (aout_stabs_gnu_h, libaout_h): Define.
3076
d138e37a
AC
30772002-07-29 Andrew Cagney <cagney@redhat.com>
3078
3079 * regcache.c (struct regcache_descr): Rename nr_registers to
3080 nr_cooked_registers. Revise comments describing the structure
3081 member fields.
3082 (init_regcache_descr): Update.
3083 (init_legacy_regcache_descr): Update.
3084 (read_register_gen, write_register_gen): When a cooked register in
3085 the raw register range, directly access the value from the raw
3086 register cache.
3087
460e6ec3
AC
30882002-07-29 Andrew Cagney <ac131313@redhat.com>
3089
3090 * z8k-tdep.c: Do not include "obstack.h".
3091 * h8300-tdep.c, h8500-tdep.c: Ditto.
3092 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3093 * valprint.c, v850-tdep.c: Ditto.
3094 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3095 * mn10200-tdep.c: Ditto.
3096
3097 * Makefile.in (z8k-tdep.o): Update dependencies.
3098 (m68hc11-tdep.o, valprint.o): Ditto.
3099 (v850-tdep.o, d10v-tdep.o): Ditto.
3100 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3101 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3102 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3103 (sh_opc_h, gdb_sim_sh_h): Define.
3104 (elf_sh_h, elf_bfd_h): Define.
3105 (opcode_m68hc11_h): Define.
3106 (OPCODES_SRC, OPCODES_DIR): define.
3107 (OPCODES): Use $(OPCODES_DIR).
3108 (gdb_sim_d10v_h): Rename sim_d10v_h.
3109 (gdb_sim_arm_h): Rename sim_arm_h.
3110
790c9cf0
KB
31112002-07-26 Kevin Buettner <kevinb@redhat.com>
3112
3113 * utils.c (host_pointer_to_address, address_to_host_pointer):
3114 Change internal_error() message to indicate function responsible
3115 for the error.
3116
9647fa49
KB
31172002-07-26 Kevin Buettner <kevinb@redhat.com>
3118
3119 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3120 calls to local_hex_string_custom().
3121
dabbe2c0
KB
31222002-07-26 Kevin Buettner <kevinb@redhat.com>
3123
3124 * irix5-nat.c: Move IRIX shared library support from here...
3125 * solib-irix.c: ...to here. Revised substantially to work with
3126 generic solib framework.
3127
b96d0a4e
KB
3128 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3129 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3130 * mips-irix-tdep.c: New file.
3131
313fb2f6
KB
3132 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3133 (mips-irix-tdep.o, solib-irix.o): New rules.
3134 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3135 solib-irix.o.
3136 * config/mips/irix6.mt (TDEPFILES): Likewise.
3137 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3138
ab2eaf26
KB
31392002-07-26 Kevin Buettner <kevinb@redhat.com>
3140
177e4768 3141 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3142 disabled (via ``#if 0'') includes.
3143
7244546a
KB
31442002-07-26 Kevin Buettner <kevinb@redhat.com>
3145
3146 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3147 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3148 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3149 Add support for the fpscr register.
3150 * rs6000-nat.c (regmap, fetch_inferior_registers)
3151 (store_inferior_registers, fetch_core_registers): Likewise.
3152
dd7be90a
KB
31532002-07-26 Kevin Buettner <kevinb@redhat.com>
3154
3155 * rs6000-nat.c (language.h): Include.
3156 (special_regs): Delete this array.
3157 (regmap): New function.
3158 (fetch_register, store_register): Use regmap() to map gdb
3159 register numbers to ptrace register numbers. Also, use
3160 outputs from regmap() to make decisions regarding type of
3161 ptrace() call to make. In particular, don't compare against
3162 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3163 (fetch_inferior_registers, store_inferior_registers): Where
3164 possible, obtain register numbers from tdep struct. Don't
3165 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3166 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3167 (LAST_UISA_SP_REGNUM): Delete.
3168
11bf77db
KB
31692002-07-25 Kevin Buettner <kevinb@redhat.com>
3170
3171 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3172 (fetch_registers, store_register, fetch_core_registers): Don't
3173 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3174 regcache_collect() as appropriate.
3175 (find_toc_address): Format hex address with local_hex_string().
3176
06afebeb
AC
31772002-07-25 Andrew Cagney <ac131313@redhat.com>
3178
3179 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3180 bfd/elf32-frv.c.
3181
8c554d79
TT
31822002-07-24 Tom Tromey <tromey@redhat.com>
3183
3184 * jv-exp.y: Marked all strings with _().
3185 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3186 internal_error.
3187 (MethodInvocation, CastExpression, parse_number, yyerror,
3188 java_type_from_name, push_expression_name, yylex): Typo fixes.
3189
e4c242d9
DJ
31902002-07-24 Daniel Jacobowitz <drow@mvista.com>
3191
3192 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3193 (tee_file_flush, tee_file_write, tee_file_fputs)
3194 (tee_file_isatty): New.
3195 * ui-file.h (tee_file_new): Add prototype.
3196
ebf56fd3
AS
31972002-07-24 Aidan Skinner <aidan@velvet.net>
3198
3199 * ada-lang.c: Change k&r style function definitions to prototyped
3200 form.
3201 * ada-typeprint.c: Change k&r style function definitions to prototyped
3202 form.
3203 * ada-valprint.c: Change k&r style function definitions to prototyped
3204 form.
3205
7fb623f7
AC
32062002-07-24 Andrew Cagney <cagney@redhat.com>
3207
3208 * README: Remove reference to remote-bug.
3209 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3210 remote-bug.c.
3211 (m88k-nat.o): Delete rule.
3212 (m88k-tdep.o): Delete rule.
3213 (remote-bug.o): Delete rule.
3214 * MAINTAINERS: Mark as obsolete.
3215 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3216 * m88k-tdep.c: Make file obsolete.
3217 * config/m88k/m88k.mh: Ditto.
3218 * config/m88k/delta88v4.mh: Ditto.
3219 * config/m88k/delta88v4.mt: Ditto.
3220 * config/m88k/delta88.mt: Ditto.
3221 * config/m88k/delta88.mh: Ditto.
3222 * remote-bug.c: Ditto.
3223 * config/m88k/tm-delta88.h: Ditto.
3224 * config/m88k/nm-delta88v4.h: Ditto.
3225 * config/m88k/xm-delta88.h: Ditto.
3226 * config/m88k/xm-dgux.h: Ditto.
3227 * config/m88k/tm-m88k.h: Ditto.
3228 * config/m88k/nm-m88k.h: Ditto.
3229 * config/m88k/tm-delta88v4.h: Ditto.
3230 * m88k-nat.c: Ditto.
3231 * cxux-nat.c: Ditto.
3232 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3233 and m88*-*-* obsolete.
3234 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3235 m88*-*-* obsolete.
3236
37611a2b
AC
32372002-07-24 Andrew Cagney <cagney@redhat.com>
3238
3239 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3240 constant. Same for local pointer variables.
3241 (extract_signed_integer): Ditto.
3242 * defs.h (extract_unsigned_integer): Update.
3243 (extract_signed_integer): Update.
3244
1aaa5f99
AC
32452002-07-24 Andrew Cagney <cagney@redhat.com>
3246
3247 * regcache.c (regcache_raw_write): Change buf parameter to a
3248 constant void pointer.
3249 (regcache_raw_read): Change buf parameter to a void pointer.
3250 (legacy_write_register_gen): Change myaddr parameter a constant
3251 void pointer.
3252 (supply_register): Change val parameter to a const void pointer.
3253 * regcache.h (regcache_raw_write): Update declaration.
3254 (regcache_raw_read): Update declaration.
3255 (supply_register): Update declaration.
3256
b4f5539f
TT
32572002-07-24 Tom Tromey <tromey@redhat.com>
3258
3259 * defs.h (gdb_readline_wrapper): Declare.
3260 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3261 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3262 * top.c (gdb_readline_wrapper): New function.
3263 (command_line_input): Use it.
3264
0818c12a
AC
32652002-07-24 Andrew Cagney <cagney@redhat.com>
3266
3267 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3268 regcache_read and regcache_write.
3269 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3270 * regcache.c: Update.
3271 * sh-tdep.c (sh64_push_arguments): Update comment.
3272 (sh_pseudo_register_read): Update.
3273 (sh_pseudo_register_write): Update.
3274 (sh4_register_read): Update.
3275 (sh4_register_write): Update.
3276 (sh64_pseudo_register_read): Update.
3277 (sh64_pseudo_register_write): Update.
3278 (sh64_register_read): Update.
3279 (sh64_register_write): Update.
3280 * i386-tdep.c (i386_extract_return_value): Update.
3281 (i386_extract_struct_value_address): Update.
3282 (i386_extract_return_value): Update.
3283 * blockframe.c (generic_read_register_dummy): Update.
3284 (generic_call_dummy_register_unwind): Update
3285 * infrun.c (write_inferior_status_register): Update.
3286
f7321c06
JB
32872002-07-23 Jim Blandy <jimb@redhat.com>
3288
3289 * parser-defs.h (expression_context_pc): Make this extern.
3290 (Thanks to Michael Snyder.)
3291
2037aebb
AC
32922002-07-23 Andrew Cagney <ac131313@redhat.com>
3293
3294 GDB 5.2.1 released from 5.2 branch.
3295 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3296 * README: Update to mention 5.2.1.
3297
66504d44
MS
32982002-07-23 Mark Salter <msalter@redhat.com>
3299
3300 * remote.c (remote_read_bytes): Fix check for error.
3301
27bae383
KB
33022002-07-22 Kevin Buettner <kevinb@redhat.com>
3303
3304 * aix-thread.c (language.h): Include.
3305 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3306 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3307 Print newlines at end of debug messages.
3308 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3309 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3310
33112002-07-22 Kevin Buettner <kevinb@redhat.com>
3312
3313 * aix-thread.c (ppc-tdep.h): Include.
3314 (special_register_p): New function.
3315 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3316 (store_regs_user_thread): Use register number information from
3317 gdbarch_tdep struct instead of hardcoded offsets relative to
3318 FIRST_UISA_SP_REGNUM.
3319 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3320 special_register_p() instead of using FPLAST_REGNUM and
3321 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3322 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3323 will be MQ's register number.
3324
33252002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3326
3327 * aix-thread.c (ops): Rename to aix_thread_ops.
3328 (base_ops): Rename to base_target.
3329 (ops_attach): Rename to aix_thread_attach.
3330 (ops_detach): Rename to aix_thread_detach.
3331 (ops_resume): Rename to aix_thread_detach.
3332 (ops_wait): Rename to aix_thread_wait.
3333 (ops_kill): Rename to aix_thread_kill.
3334 (init_ops): Rename to init_aix_thread_ops.
3335 (ops_fetch_register): Rename to aix_thread_fetch_register.
3336 (ops_store_register): Rename to aix_thread_store_register.
3337 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3338 (ops_thread_alive): Rename to aix_thread_thread_alive.
3339 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3340 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3341 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3342 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3343 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3344 (store_regs_lib): Rename to store_regs_user_thread.
3345 (store_regs_kern): Rename to store_regs_kernel_thread.
3346
27bae383 33472002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3348
3349 * aix-thread.c (ops_prepare_to_store): Eliminate.
3350 (init_ops): Don't initialize ops.prepare_to_store.
3351 (store_regs_kern): Pre-fetch register buffers from child,
3352 because some registers may not be in the cache. Copy
3353 regs from register cache only if they are cached.
3354 (store_regs_lib): Copy regs from register cache only
3355 if they are cached.
3356 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3357 fill_gprs64): Ditto.
3358
61c5da0b
KB
33592002-07-22 Kevin Buettner <kevinb@redhat.com>
3360
3361 * aix-thread.c (gdb_assert.h): Include.
3362 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3363 register sizes (from register cache) match size of buffer holding
3364 register data.
3365 (fill_sprs32): Change parameter types to match those in the ptrace()
3366 buffer.
3367 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3368 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3369
33702002-07-22 Michael Snyder <msnyder@redhat.com>
3371
3372 * aix-thread.c (supply_sprs64): Cosmetic change.
3373 (supply_sprs32): Cosmetic change.
3374 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3375 (fill_sprs64): Use regcache_collect instead of read_register.
3376 (store_regs_lib): Use regcache_collect instead of
3377 read_register. Use fill_sprs32 instead of fill_sprs64,
3378 if debugging a 32-bit architecture.
3379 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3380 out of the register cache, instead of passing a pointer into
3381 the register cache directly to ptrace. Use regcache_collect
3382 insteaad of read_register.
3383 (ops_prepare_to_store): Use target_read_registers instead
3384 of read_register_bytes.
3385
36479eb1
AS
33862002-07-20 Aidan Skinner <aidan@velvet.net>
3387
3388 * MAINTAINERS: Add self under write after approval.
3389
80ae6ee2
AS
33902002-07-20 Aidan Skinner <aidan@velvet.net>
3391
3392 * ada-tasks.c: Change k&r style function definitions to prototyped
3393 form.
3394
8a8ab2b9
AC
33952002-07-19 Andrew Cagney <ac131313@redhat.com>
3396
3397 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3398 * x86-64-tdep.c: Include "objfiles.h".
3399 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3400 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3401
fb16b900
ML
34022002-07-17 Michal Ludvig <michal@suse.cz>
3403
3404 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3405 (update_context): Initialise cfa variable.
3406
0fe7bf7b
MS
34072002-07-17 Michael Snyder <msnyder@redhat.com>
3408
3409 * aix-thread.c: Shorten some long lines.
3410 Bring comments into line with code spec.
3411
488f131b
JB
34122002-07-18 Joel Brobecker <brobecker@gnat.com>
3413
3414 * infrun.c: Re-indent using gdb_indent.sh.
3415
46c415d2
JB
34162002-07-18 Joel Brobecker <brobecker@gnat.com>
3417
3418 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3419 Leave the indentation temporarily untouched, to minimize the diffs.
3420
cdecafbe
EZ
34212002-07-18 Elena Zannoni <ezannoni@redhat.com>
3422
3423 * stabsread.c: Make os9k sections of the code obsolete,
3424 for real this time.
3425 * stabsread.h: Make os9k sections of the code obsolete.
3426
7b6aa020
ML
34272002-07-18 Michal Ludvig <mludvig@suse.cz>
3428
09ec9b38
ML
3429 * linux-low.c (regsets_store_inferior_registers): Add free()
3430 at the end of a loop to prevent memory leak.
3431 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3432 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3433 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3434 line a comment.
4894ac5d 3435 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3436
233282cd
JB
34372002-07-17 Jim Blandy <jimb@redhat.com>
3438
3439 * macrocmd.c (info_macro_command): Remove newline from error
3440 message.
3441
7b6aa020 34422002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3443
3444 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3445 (sh_gdbarch_init): Use it for sh-dsp.
3446
f7ef9339
KB
34472002-07-16 Kevin Buettner <kevinb@redhat.com>
3448
3449 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3450 64-bit DWARF2 format.
3451
8dd72958
JB
34522002-07-16 Joel Brobecker <brobecker@gnat.com>
3453
3454 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3455 <sys/proc.h> when not available.
3456
a99a9e1b
AC
34572002-07-16 Andrew Cagney <ac131313@redhat.com>
3458
3459 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3460 * stabsread.c: Make os9k sections of the code obsolete.
3461 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3462 * config/i386/i386os9k.mt: Make file obsolete.
3463 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3464 (COMMON_OBS): Remove os9kread.o
3465 (SFILES): Remove os9kread.c.
3466 (os9kread.o, remote-os9k.o): Make target obsolete.
3467 * remote-os9k.c: Make file obsolete.
3468 * os9kread.c: Make file obsolete.
3469 * Makefile.in
3470
7a3085c1
AC
34712002-07-16 Andrew Cagney <ac131313@redhat.com>
3472
3473 * NEWS: Mention that the FR30 has been made obsolete.
3474 * fr30-tdep.c: Make file obsolete.
3475 * config/fr30/tm-fr30.h: Ditto.
3476 * config/fr30/fr30.mt: Ditto.
3477 * configure.tgt: Make fr30-*-elf obsolete.
3478 * MAINTAINERS: Make fr30-elf obsolete.
3479
28a93f5a
PM
34802002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3481
3482 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3483 found is not inside a section.
3484
be006b8b
KB
34852002-07-15 Kevin Buettner <kevinb@redhat.com>
3486
3487 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3488 strerror().
3489 (pdc_realloc): Use xrealloc() instead of realloc().
3490
14fa3751
KB
34912002-07-15 Kevin Buettner <kevinb@redhat.com>
3492
3493 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3494 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3495 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3496 macros.
3497
42cc437f
KB
34982002-07-15 Kevin Buettner <kevinb@redhat.com>
3499
3500 * aix-thread.c (ptrace_check): Eliminate goto.
3501 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3502 problem.
3503
8e2c28d4
KB
35042002-07-15 Kevin Buettner <kevinb@redhat.com>
3505
3506 * aix-thread.c (gdbcmd.h): Include.
3507 (DEBUG, DBG, DBG2, dbg): Eliminate.
3508 (debug_aix_thread): New static global.
3509 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3510 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3511 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3512 invocations to DBG and DBG2 macros to test against
3513 ``debug_aix_thread'' and call fprintf_unfiltered().
3514 (_initialize_aix_thread): Add new command "set debug aix-thread".
3515
30413464
AC
35162002-07-15 Andrew Cagney <ac131313@redhat.com>
3517
3518 From Gerhard Tonn <TON@de.ibm.com>:
3519 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3520 instead of supply_register.
3521
7c43edc1
AC
35222002-07-15 Andrew Cagney <ac131313@redhat.com>
3523
3524 * dwarf2cfi.c: Include "gdb_assert.h".
3525 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3526 non-NULL.
3527 (update_context): Do not use __func__. Add missing ``break''.
3528 (update_context): Do not use __func__.
3529
9364a0ef
EZ
35302002-07-15 Elena Zannoni <ezannoni@redhat.com>
3531
3532 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3533 and its setting. Set gdbarch instruction printing functions
3534 directly. For non-rs6000 case use new function
3535 gdb_print_insn_powerpc.
3536 (gdb_print_insn_powerpc): New function.
3537
3fbeef0b
AC
35382002-07-13 Andrew Cagney <ac131313@redhat.com>
3539
92eb23c5 3540 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3541 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3542 * configure.tgt: Mark d30v-*-* as obsolete.
3543 * d30v-tdep.c: Mark file as obsolete.
3544 * config/d30v/d30v.mt: Ditto.
3545 * config/d30v/tm-d30v.h: Ditto.
3546
aacb1f0a
AS
35472002-07-13 Aidan Skinner <aidan@velvet.net>
3548
3549 * ada-tasks.c (add_task_entry): replace calls to
3550 malloc() with xmalloc
3551 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3552
3553 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3554 ada_finish_decode_line_1, all_sals_for_line
3555 ada_breakpoint_rewrite): replace calls to free() with xfree()
3556
c11d79f2
KB
35572002-07-12 Kevin Buettner <kevinb@redhat.com>
3558
3559 From Nicholas Duffek (with minor changes by Martin Hunt,
3560 Louis Hamilton, and Kevin Buettner):
3561 * aix-thread.c: New file.
3562
8e19ed76
PS
35632002-07-12 Petr Sorfa <petrs@caldera.com>
3564
3565 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3566 complaint for invalid attribute class or form.
3567 (read_func_scope): DW_AT_frame_base
3568 better handling of DW_AT_block*.
3569 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3570 better handling of DW_AT_block*.
3571 (read_common_block): DW_AT_location
3572 better handling of DW_AT_block*.
3573 (read_partial_die): DW_AT_location better handling
3574 of DW_AT_block*.
3575 (new_symbol): DW_AT_external better handling of
3576 DW_AT_block*. Proper initialization of variable
3577 "addr".
3578 (attr_form_is_block): New function that returns true
3579 if the attribute's form is of DW_FORM_block*.
3580
295401f7
DJ
35812002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3582
3583 * valops.c (find_method_list): Remove comment about
3584 removed STATIC_MEMFUNCP argument.
3585 (value_find_oload_method_list): Likewise.
3586
e42dc924
KB
35872002-07-12 Kevin Buettner <kevinb@redhat.com>
3588
3589 From Nicholas Duffek:
3590 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3591 target_new_objfile_hook.
3592
6904b546
KB
35932002-07-12 Kevin Buettner <kevinb@redhat.com>
3594
3595 From Nicholas Duffek:
3596 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3597 csect.
3598
53fe9346
AC
35992002-07-12 Andrew Cagney <cagney@redhat.com>
3600
3601 * MAINTAINERS: Mention --enable-sim-build-warnings.
3602 (m68hc11-elf): Disable sim build warnings.
3603 (m32r-elf): Mark as broken obsolete candidate.
3604 (x86_64-linux-gnu): Mark as buildable with -Werror.
3605 (arm-elf): Change -w to ``,'' which enables warnings but not
3606 -Werror.
3607
af5f3db6
AC
36082002-07-12 Andrew Cagney <ac131313@redhat.com>
3609
3610 * bcache.h: Update copyright.
3611 (struct bstring, struct bcache): Move definition to "bcache.c".
3612 Replaced by opaque declaration.
3613 (bcache_xfree): Replace free_bcache.
3614 (bcache_xmalloc, bcache_memory_used): Declare.
3615
3616 * bcache.c: Update copyright.
3617 (struct bstring, struct bcache): Moved to here from "bcache.h".
3618 Update comments.
3619 (bcache_xmalloc, bcache_memory_used): New functions.
3620 (bcache_xfree): Replace function free_bcache.
3621
3622 * Makefile.in (objfiles.o): Add $(bcache_h).
3623 (objfiles_h): Remove $(bcache_h).
3624 (symfile.o): Add $(bcache_h).
3625
3626 * symmisc.c: Update copyright.
3627 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3628 (print_objfile_statistics): Use bcache_memory_used.
3629
3630 * symfile.c: Include "bcache.h".
3631 (reread_symbols): Use bcache_xfree.
3632 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3633 (add_psymbol_to_list): Pass psymbol_cache by value.
3634 (add_psymbol_with_dem_name_to_list): Ditto.
3635
3636 * objfiles.h: Update copyright.
3637 (struct bcache): Declare opaque. Do not include "bcache.h".
3638 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3639 bcache'' pointers.
3640 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3641
3642 * objfiles.c: Include "bcache.h". Update copyright.
3643 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3644 macro_cache.
3645 (free_objfile): Use bcache_xfree.
3646
444199e7
GS
36472002-07-11 Grace Sainsbury <graces@redhat.com>
3648
3649 * monitor.c (monitor_fetch_register): Make name a constant.
3650 (monitor_store_register): Same.
3651
261397f8
DJ
36522002-07-11 Daniel Jacobowitz <drow@mvista.com>
3653
3654 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3655 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3656 (finish_block) For non-function blocks, hash the symbol table. For
3657 function blocks, mark the symbol table as unhashed.
3658 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3659 (msymbol_hash_iw): Likewise.
3660 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3661 value.
3662 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3663 (lookup_minimal_symbol): Likewise for both.
3664 * symtab.h (struct block): Add `hashtable' flag. Comment the
3665 hashtable.
3666 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3667 (ALL_BLOCK_SYMBOLS): Update.
3668 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3669 (struct symbol): Add `hash_next' pointer.
3670 * symtab.c (lookup_block_symbol): Search using the hash table when
3671 possible.
3672 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3673 (search_symbols, find_addr_symbol): Likewise.
3674
3675 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3676 (read_dst_symtab): Likewise.
3677 * jv-lang.c (get_java_class_symtab): Likewise.
3678 * mdebugread.c: Include "gdb_assert.h".
3679 (shrink_block): Assert that the block being modified is not hashed.
3680 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3681 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3682 symbols.
3683 (dump_symtab): Recognize hashed blocks.
3684 * printcmd.c (print_frame_args): Assert that function blocks do not
3685 have hashed symbol tables.
3686 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3687 (fill_in_ada_prototype, debug_print_block): Likewise.
3688 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3689
6f0eaa01
CV
36902002-07-11 Corinna Vinschen <vinschen@redhat.com>
3691
3692 * stack.c (print_frame): Use result of frame_address_in_block()
3693 instead of fi->pc when evaluating symbols.
3694 (backtrace_command_1): Ditto.
3695
a208b0cb
AC
36962002-07-11 Andrew Cagney <cagney@redhat.com>
3697
3698 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3699 Make static.
3700
3701 * arm-tdep.c (arm_register_name): Make return type constant.
3702
a6b6b089
AC
37032002-07-10 Andrew Cagney <ac131313@redhat.com>
3704
5ae5f592
AC
3705 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3706 prototype.
3707 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3708 * s390-tdep.c (s390_fp_regnum): Ditto.
3709 (s390_read_fp): Ditto.
3710 (s390_pop_frame): Ditto.
3711 (_initialize_s390_tdep): Ditto.
3712 * remote.c (get_remote_state): Ditto.
3713 * procfs.c (mappingflags): Ditto.
3714 * memattr.c (_initialize_mem): Ditto.
3715 * mcore-tdep.c (mcore_pop_frame): Ditto.
3716 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3717 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3718 * language.c (set_case_str): Ditto.
3719 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3720 * frv-tdep.c (new_variant): Ditto.
3721 (frv_stopped_data_address): Ditto.
3722 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3723 (context_alloc): Ditto.
3724 (frame_state_alloc): Ditto.
3725 (unwind_tmp_obstack_init): Ditto.
3726 (unwind_tmp_obstack_free): Ditto.
3727 (cfi_read_fp): Ditto.
3728 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3729 (cris_pop_frame): Ditto.
3730 * c-lang.c (scanning_macro_expansion): Ditto.
3731 (finished_macro_expansion): Ditto.
3732 (c_preprocess_and_parse): Ditto.
3733 * gdbarch.sh: Ditto.
3734 * gdbarch.h, gdbarch.c: Regenerate.
3735 * config/mn10200/tm-mn10200.h: Adjust indentation.
3736 * target.c: Adjust indentation.
3737 * symtab.h: Adjust indentation.
3738 * stabsread.h: Adjust indentation.
3739 * remote-es.c: Adjust indentation.
3740 * os9kread.c: Adjust indentation.
3741
37422002-07-10 Andrew Cagney <ac131313@redhat.com>
3743
a6b6b089
AC
3744 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3745 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3746
a1789893
GS
37472002-07-10 Grace Sainsbury <graces@redhat.com>
3748
3749 * NEWS: Mention m68k, mcore multi-arching.
3750 * MAINTAINERS: Change status of m68k, mcore to reflect
3751 multi-arching.
3752
02f0d45d
DJ
37532002-07-10 Daniel Jacobowitz <drow@mvista.com>
3754
3755 * valops.c (find_overload_match): Free oload_syms.
3756
f15f768e
JB
37572002-07-09 Joel Brobecker <brobecker@gnat.com>
3758
3759 Define HAVE_SYS_PROC_H if sys/proc.h exists
3760 * configure.in: Add check for sys/proc.h
3761 * config.in: Regenerate.
3762 * configure: Regenerate.
3763
902a7139
GS
37642002-07-09 Grace Sainsbury <graces@redhat.com>
3765
3766 * config/m68k/tm-m68k.h: Remove macros wrapped in
3767 #if !GDB_MULTI_ARCH.
3768
a534e424
AC
37692002-07-08 Andrew Cagney <ac131313@redhat.com>
3770
3771 * config.in, configure: Regenerate.
3772
9b94f7bf
MK
37732002-07-08 Mark Kettenis <kettenis@gnu.org>
3774
3775 * dwarf2cfi.c: Include "gcore.h".
3776 (execute_stack_op): Fix implementation of the
3777 DW_OP_deref and DW_OP_deref_size operators by letting do their
3778 lookup in the target.
3779
1d34db41
MK
37802002-07-07 Mark Kettenis <kettenis@gnu.org>
3781
3782 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3783 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3784 tdep->sc_sp_offset.
3785
79d5b63a
DJ
37862002-07-05 Daniel Jacobowitz <drow@mvista.com>
3787
3788 Fix PR gdb/595, gdb/602
3789 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3790 Don't call value_cast, just read the vtable pointer; update comments
3791 to match.
3792
3bb912e8
GS
37932002-07-05 Grace Sainsbury <graces@redhat.com>
3794
3795 * config/mcore/tm-mcore.h: Remove file.
3796 * config/mcore/mcore.mt: Remove definition of TM_FILE
3797 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3798
ca39387d
MK
37992002-07-05 Mark Kettenis <kettenis@gnu.org>
3800
3801 * i386bsd-tdep.c: Include "gdb_string.h".
3802
efdc1108
GS
38032002-07-04 Grace Sainsbury <graces@redhat.com>
3804
3805 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3806 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3807 mcore-tdep.
3808 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3809 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3810 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3811 (RETVAL_REGNUM): Move macros from tm-mcore.h
3812 (mcore_reg_struct_has_addr): New function.
3813 (mcore_gdbarch_init): Added initializations for the macros removed
3814 from tm-mcore.h.
3815
bb21884d
MK
38162002-07-04 Mark Kettenis <kettenis@gnu.org>
3817
3818 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3819 traditonal string branding within the ELF header.
3820
228c6d41
DJ
38212002-07-04 Daniel Jacobowitz <drow@mvista.com>
3822
3823 * symtab.c (remove_params): New function.
3824 (make_symbol_overload_list): Use it instead of cplus_demangle.
3825 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3826
2404952e
MK
38272002-07-04 Mark Kettenis <kettenis@gnu.org>
3828
e5e4acad
MK
3829 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3830
baadce09
MK
3831 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3832 New variables.
3833 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3834 and tdep->sigtramp_end.
3835 * i386obsd-nat.c: New file.
3836 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3837
2404952e
MK
3838 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3839 Don't call get_current_frame().
3840
9b4f1ba7
PM
38412002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3842
3843 * i386-nat.c (child_post_startup_inferior): New function
3844 calling i386_cleanup_dregs if
3845 I386_USE_GENERIC_WATCHPOINTS is defined.
3846 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3847 conditional to acknowledge that i386-nat.c has its
3848 own child_post_startup_inferior function.
3849
c0d1d883
MK
38502002-07-04 Mark Kettenis <kettenis@gnu.org>
3851
00f8375e
MK
3852 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3853 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3854 instead of MAX_REGISTER_RAW_SIZE.
3855 (i386_extract_return_value, i386_extract_struct_value_address):
3856 Convert to use regcache.
3857 (i386_gdbarch_init): Set max_register_raw_size and
3858 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3859 Set extract_return_value and extract_struct_value_address instead
3860 of their deprecated variants.
3861
c0d1d883
MK
3862 Convert i386 target to generic dummy frames.
3863 * i386-tdep.c: Include "symfile.h".
3864 (i386_frameless_signal_p): Consider a function to be frameless if
3865 the pc points at the first instruction of the function.
3866 (i386_frame_chain): Handle (generic) call dummies.
3867 (i386_frame_saved_pc): Likewise.
3868 (i386_frame_init_saved_regs): Remove code dealing with call
3869 dummies on the stack.
3870 (i386_push_dummy_frame): Removed.
3871 (i386_call_dummy_words): Removed.
3872 (i386_fix_call_dummy): Removed.
3873 (i386_push_return_address): New function.
3874 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3875 parameter, and don't call get_current_frame.
3876 (i386_pop_frame): New function.
3877 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3878 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3879 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3880 call_dummy_length to 0, set call_dummy_words to NULL, set
3881 sizeof_call_dummy_words to 0, set fix_call_dummy to
3882 generic_fix_call_dummy, set pc_in_call_dummy to
3883 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3884 generic_push_dummy_frame, set push_return_address to
3885 i386_push_return_address and set frame_chain_valid to
3886 generic_file_frame_chain_valid.
3887
049ee0e4
AC
38882002-07-03 Andrew Cagney <ac131313@redhat.com>
3889
3890 * gdbarch.sh (struct regcache): Add opaque declaration.
3891 (EXTRACT_RETURN_VALUE): New architecture method.
3892 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3893 * gdbarch.h, gdbarch.c: Regenerate.
3894 * arch-utils.c (legacy_extract_return_value): New function.
3895 * arch-utils.h (legacy_extract_return_value): Declare.
3896 * values.c (value_being_returned): Re-enable code handling
3897 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3898 deprecated_grub_regcache_for_registers call to block handling
3899 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3900 (EXTRACT_RETURN_VALUE): Do not define.
3901
4e0d9804
GS
39022002-07-03 Grace Sainsbury <graces@redhat.com>
3903
3904 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3905 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3906 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3907 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3908 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3909 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3910 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3911 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3912 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3913 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3914 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3915 argument so the function fits the prototype in the architecture
3916 vector.
3917 (mcore_pop_frame): Remove argument so the function fits the
3918 prototype. Use get_current_frame instead of the argument.
3919 (mcore_push_arguments): Change type of struct_return so the
3920 function can be used in the architecture vector.
3921 (mcore_store_struct_return): Add.
3922 (mcore_frame_init_saved_regs): Add.
3923 (mcore_gdbarch_init): Add function calls to replace the macros
3924 removed from tm-mcore.h
3925
36160dc4
AC
39262002-07-03 Andrew Cagney <ac131313@redhat.com>
3927
3928 * infcmd.c (print_return_value): Remove compatibility code calling
3929 deprecated_grub_regcache_for_registers.
3930
3931 * values.c: Include "regcache.h".
3932 (value_being_returned): Update. Use
3933 deprecated_grub_regcache_for_registers to extract the register
3934 buffer address.
3935 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3936 ``struct regcache''.
3937 * Makefile.in (values.o): Add dependency on $(regcache_h).
3938
3939 * inferior.h (run_stack_dummy): Change type of second parameter to
3940 a ``struct regcache''.
3941 * valops.c (hand_function_call): Change type of retbuf to ``struct
3942 regcache''. Allocate using regcache_xmalloc, clean using
3943 make_cleanup_regcache_xfree.
3944 * infcmd.c (run_stack_dummy): Update. Use
3945 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3946
3947 * regcache.c (do_regcache_xfree): New function.
3948 (make_cleanup_regcache_xfree): New function.
3949 * regcache.h (make_cleanup_regcache_xfree): Declare.
3950
e64d9b3d
MH
39512002-07-03 Martin M. Hunt <hunt@redhat.com>
3952
4dd79c29
MH
3953 * event-top.c (command_line_handler): Don't read past
3954 beginning of buffer.
e64d9b3d 3955
4dd79c29
MH
39562002-07-03 Martin M. Hunt <hunt@redhat.com>
3957
e64d9b3d
MH
3958 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3959 struct frame_id.
3960 (varobj_create): Store frame_id for root.
3961 (varobj_gen_name): Use xasprintf.
3962 (varobj_update): Save and restore frame using get_frame_id() and
3963 frame_find_by_id().
3964 (create_child): Use xasprintf.
3965 (new_root_variable): Initialize frame_id.
3966 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3967 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3968 to prevent memory leak.
3969
26e6c56a
AC
39702002-07-03 Andrew Cagney <ac131313@redhat.com>
3971
3972 * valops.c (hand_function_call): Move declaration of retbuf to
3973 start of function, allocate using malloc, add a cleanup but before
3974 the inf_status cleanup, cleanup the buffer. Rename local variable
3975 old_chain to inf_status_cleanup.
3976
f436dd25
MH
39772002-07-03 Martin M. Hunt <hunt@redhat.com>
3978
3979 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3980
3981 * cli/cli-decode.c (cmd_func_p): New function.
3982 (cmd_func): New function.
3983
3984 * command.h: Add cmd_func() and cmd_func_p().
3985
4cfe2084
GS
39862002-07-03 Grace Sainsbury <graces@redhat.com>
3987
3988 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3989 (REGISTER_SIZE): Remove.
3990 (MAX_REGISTER_RAW_SIZE): Remove.
3991 (REGISTER_VIRTUAL_TYPE): Remove.
3992 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3993 (REGISTER_NAME): Remove.
3994 (USE_GENERIC_DUMMY_FRAMES): Remove.
3995 (CALL_DUMMY): Remove.
3996 (CALL_DUMMY_START_OFFSET): Remove.
3997 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3998 (CALL_DUMMY_LOCATION): Remove.
3999 (FIX_CALL_DUMMY): Remove.
4000 (CALL_DUMMY_ADDRESS): Remove.
4001 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4002 (SAVE_DUMMY_FRAME_TOS): Remove.
4003 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4004 (mcore_register_virtual_type): New function.
4005 (mcore_register_byte): New function.
4006 (mcore_register_size): New function.
4007 (mcore_register_name): New function.
4008 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4009 macros removed from tm-mcore.h.
4010 (mcore_dump_tdep): Add.
4011 (_initialize_mcore_tdep): Add gdbarch_register call.
4012
4fd667e9
MK
40132002-07-03 Mark Kettenis <kettenis@gnu.org>
4014
4015 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4016 frameless_look_for_prologue, such that we actually call this
4017 function.
4018
42f99ac2
JB
40192002-07-02 Joel Brobecker <brobecker@gnat.com>
4020
4021 * frame.h (frame_address_in_block): New function.
4022
4023 * blockframe.c (frame_address_in_block): New function extracted
4024 from get_frame_block().
4025 (get_frame_block): Use frame_address_in_block().
4026 (block_innermost_frame): Use frame_address_in_block() to match
4027 the frame pc address against the block boundaries rather than
4028 the frame pc directly. This prevents a failure when a frame pc
4029 is actually a return-address pointing immediately after the end
4030 of the given block.
4031
103a1597 40322002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
4033
4034 * MAINTAINERS: Add self under write after approval.
4035
40362002-07-02 Grace Sainsbury <graces@redhat.com>
4037
103a1597
GS
4038 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4039 used in architecture vector. The default is
4040 m68k_local_breakpoint_from_pc.
4041 (m68k_local_breakpoint_from_pc): Add.
4042 (enum): Add register numbers from tm-m68k.h.
4043 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4044 vector.
4045 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4046 GDB_MULTI_ARCH_PARTIAL.
4047 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4048 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4049 m68k-tdep.c.
4050 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4051 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4052 to enum in m68k-tdep.c
4053
7a5a0534
JB
40542002-07-02 Joel Brobecker <brobecker@gnat.com>
4055
4056 * solib-osf.c (open_map): Compute the list of shared libraries
4057 loaded by the inferior, rather than the list of libraries loaded
4058 by GDB itself. Otherwise, GDB ends up reading the symbols from
4059 the wrong shared libraries...
4060
6f558d74
MK
40612002-07-02 Mark Kettenis <kettenis@gnu.org>
4062
b7d15bf7
MK
4063 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4064 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4065 macros.
4066 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4067 Remove functions.
4068 (FRAMELESS_SIGNAL): Remove function.
4069 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4070 i386_linux_saved_pc_after_call): Removed.
4071 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4072 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4073 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4074
6bff26de
MK
4075 * i386-tdep.c (i386_frameless_signal_p): New function.
4076 (i386_frame_chain): Deal with frameless signals.
4077 (i386_sigtramp_saved_sp): New function.
4078 (i386_frame_saved_pc): Deal with frameless signals.
4079 (i386_saved_pc_after_call): Make sure the correct value is
4080 returned just after entry into a sigtramp.
4081 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4082 i386fbsd4_sc_sp_offset): New variables.
4083 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4084 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4085 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4086 similiar to what we already did for sc_pc_offset.
4087 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4088 tdep->sc_sp_offset.
4089
6f558d74
MK
4090 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4091
145564b7
ML
40922002-07-02 Michal Ludvig <mludvig@suse.cz>
4093
4094 * config/i386/tm-x86-64linux.h: New.
4095 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4096 definitions.
4097 * config/i386/nm-x86-64.h: Rename to ...
4098 * config/i386/nm-x86-64linux.h: ... this one.
4099 * config/i386/x86-64linux.mh: Reflect the above change.
4100
3a1e71e3
MK
41012002-07-01 Mark Kettenis <kettenis@gnu.org>
4102
21d0e8a4
MK
4103 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4104 with sigcontext_addr. Add sc_sp_offset.
4105 (i386bsd_sigtramp_saved_pc): Remove prototype.
4106 (i386bsd_sicontext_addr): Add prototype.
4107 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4108 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4109 (i386_svr4_sigtramp_saved_pc): Removed.
4110 (i386_svr4_sigcontext_addr): New function.
4111 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4112 Initialize tdep->sigcontext_addr instead. Initialize
4113 tdep->sc_pc_offset and tdep->sc_sp_offset.
4114 (i386_gdbarch_init): Likewise.
4115 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4116 any more.
4117 (i386bsd_sigtramp_saved_pc): Remove function.
4118 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4119 Initialize tdep->sigcontext_addr instead. Initialize
4120 tdep->sc_pc_offset.
4121 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4122 of tdep->sigtramp_saved_pc.
4123 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4124 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4125 instead.
4126
3a1e71e3
MK
4127 * i386-tdep.c (i386_frameless_function_invocation,
4128 i386_frame_num_args, i386_frame_init_saved_regs,
4129 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4130 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4131 i386_extract_return_value, i386_store_return_value,
4132 i386_extract_struct_value_address, i386_register_virtual_type,
4133 i386_register_convertible, i386_register_convert_to_virtual,
4134 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4135 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4136 static.
4137
52e9098c
MK
41382002-07-01 Mark Kettenis <kettenis@gnu.org>
4139
77b13a25
MK
4140 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4141
52e9098c
MK
4142 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4143 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4144 this macro. Include "value.h".
4145
1b372fff
AS
41462002-06-30 Aidan Skinner <aidan@velvet.net>
4147
4148 * ada-exp.tab.c: remove as it's a generated file
4149 * ada-lex.c: remove as it's a generated file
4150
9c5045b5
MK
41512002-06-30 Mark Kettenis <kettenis@gnu.org>
4152
4a93c5bb
MK
4153 * config/i386/tm-i386.h (struct frame_info, struct
4154 frame_saved_regs, struct value, struct type): Remove forward
4155 declarations.
4156
322d4fe0
MK
4157 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4158 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4159 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4160 (FILL_FPXREGSET): Define.
4161
fdd8263d
MK
4162 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4163
482e577b
MK
4164 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4165 i[3456]86-*-netbsd* case.
4166 * config/i386/tm-obsd.h: Removed.
4167 * config/i386/obsd.mt: Removed.
4168 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4169 core-aout.o.
4170 (MH_CFLAGS): Add -DYYDEBUG=0.
4171
6916549a
MK
4172 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4173 i386nbsd_sc_pc_offset on OpenBSD too.
4174
9c5045b5
MK
4175 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4176 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4177 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4178 define.
4179 * i386bsd-tdep.c: Include "arch-utils.h".
4180 (i386bsd_aout_in_solib_call_trampoline): New function.
4181 (i386bsd_init_abi): Set in_solib_call_trampoline to
4182 i386bsd_aout_in_solib_call_trampoline.
4183 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4184 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4185
aa84d1bb
AC
41862002-06-28 Andrew Cagney <ac131313@redhat.com>
4187
4188 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4189 (struct obstack, struct bcache): Add opaque declarations.
4190 * Makefile.in (macrotab_h): Update
4191
b4d83933
AC
41922002-06-28 Andrew Cagney <ac131313@redhat.com>
4193
4194 * blockframe.c (generic_find_dummy_frame): Change return type to
4195 ``struct regcache''.
4196 (struct dummy_frame): Replace field ``registers'' with regcache, a
4197 struct regcache object.
4198 (generic_find_dummy_frame): Update.
4199 (generic_push_dummy_frame): Update. Use regcache_xfree,
4200 regcache_xmalloc and regcache_cpy.
4201 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4202 regcache_xfree.
4203 (deprecated_generic_find_dummy_frame): Update.
4204 (generic_read_register_dummy): Update. Use
4205 regcache_read_as_address.
4206 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4207 (generic_get_saved_register): Update. Use regcache_read.
4208
08c0b5bc
AC
42092002-06-28 Andrew Cagney <ac131313@redhat.com>
4210
4211 * Makefile.in (objfiles_h): Add $(bcache_h).
4212 * objfiles.h: Include "bcache.h".
4213
4214 * Makefile.in (symtab_h): Remove $(bcache_h).
4215 * symtab.h: Do not include "bcache.h".
4216
1f89801a
AC
42172002-06-28 Andrew Cagney <ac131313@redhat.com>
4218
4219 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4220 generic_func_frame_chain_valid.
4221
b9644b58
DB
42222002-06-28 David O'Brien <obrien@FreeBSD.org>
4223
4224 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4225 * config/i386/tm-fbsd.h: Likewise.
4226
dd486634
AC
42272002-06-28 Andrew Cagney <ac131313@redhat.com>
4228
4229 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4230 generic_unwind_get_saved_register.
4231
0b434a00
AC
42322002-06-27 Andrew Cagney <ac131313@redhat.com>
4233
4234 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4235 * regcache.c (supply_register): Add missing argument to
4236 register_buffer call.
4237
f30e5a77
AC
42382002-06-27 Andrew Cagney <ac131313@redhat.com>
4239
4240 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4241 Solaris /bin/grep does not not like it. From Peter Schauer.
4242
9f064c95
TT
42432002-06-26 Tom Tromey <tromey@redhat.com>
4244
4245 * command.h (add_setshow_cmd): Declare.
4246 (add_setshow_cmd_full): Declare.
4247 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4248 returns void. Use add_setshow_cmd_full.
4249 (add_setshow_cmd_full): New function.
4250 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4251 (add_setshow_boolean_cmd): Likewise.
4252
099c7589
JT
42532002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4254
4255 * config/vax/tm-vax.h: Protect from multiple inclusion.
4256 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4257 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4258 * config/vax/tm-vaxbsd.h: ...here. New file.
4259 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4260
1d049c5e
JT
42612002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4262
4263 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4264 (BELIEVE_PCC_PROMOTION): Remove.
4265 (AP_REGNUM): Move to...
4266 * config/vax/nm-vax.h: ...here.
4267 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4268 (vax_breakpoint_from_pc): New function.
4269 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4270 and gdbarch_believe_pcc_promotion.
4271
4791e091
JT
42722002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4273
4274 * Makefile.in (vax_tdep_h): Define.
4275 (vax-tdep.o): Use $(vax_tdep_h).
4276 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4277 (vax_dump_tdep): New function.
4278 (_initialize_vax_tdep): Register vax_dump_tdep.
4279 * vax-tdep.h: Include osabi.h.
4280 (struct gdbarch_tdep): New.
4281
da130f98
AC
42822002-06-26 Andrew Cagney <cagney@redhat.com>
4283
4284 * frame.h (deprecated_generic_find_dummy_frame): Rename
4285 generic_find_dummy_frame.
4286 * blockframe.c (generic_find_dummy_frame): Make static.
4287 (deprecated_generic_find_dummy_frame): New function.
4288 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4289 generic_find_dummy_frame with deprecated_find_dummy_frame.
4290 (sh64_nofp_frame_init_saved_regs): Ditto.
4291 (sh_fp_frame_init_saved_regs): Ditto.
4292 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4293 (s390_frame_chain): Ditto.
4294 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4295
6300c360
GS
42962002-06-26 Grace Sainsbury <graces@redhat.com>
4297
4298 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4299 gdbarch vector are at the top.
4300 (NUM_REGS): Remove.
4301 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4302 (FRAME_ARGS_ADDRESS): Remove.
4303 (FRAME_LOCALS_ADDRESS): Remove.
4304 (FRAME_NUM_ARGS): Remove.
4305 (FRAME_ARGS_SKIP): Remove.
4306 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4307 (m68k_gdbarch_init): Add gdbarch initializations for macros
4308 undefined in tm-m68k.h
4309
1c617db8
GS
43102002-06-26 Grace Sainsbury <graces@redhat.com>
4311
4312 * monitor.h: Add the function regname to monitor_ops
4313 structure. This way NUM_REGS does not have to be a constant.
4314 * monitor.c (monitor_fetch_register): Added support for regname
4315 function. The function is called if the array regnames is NULL.
4316 (monitor_store_register): Same.
da130f98
AC
4317 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4318 regnames array.
1c617db8
GS
4319 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4320 cpu32bug_cmds.regname to point to new function.
4321 * abug-rom.c (abug_regname): Same as above.
4322 (init_abug_cmds): Same.
4323 * dbug-rom.c (dbug_regname): Same as above.
4324 (init_dbug_cmds): Same.
4325 * remote-est.c (est_regname): Same.
4326 (init_est_cmds): Same.
4327 * rom68k-rom.c (rom68k_regname): Same.
4328 (init_rom68k_cmds): Same.
4329
ea9365bb
TT
43302002-06-25 Tom Tromey <tromey@redhat.com>
4331
4332 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4333
72cec141
AC
43342002-06-25 Andrew Cagney <cagney@redhat.com>
4335
4336 * infrun.c (stop_registers): Change variable's type to ``struct
4337 regcache'''.
4338 (xmalloc_inferior_status): Delete function.
4339 (free_inferior_status): Delete function.
4340 (normal_stop): Use regcache_cpy.
4341 (struct inferior_status): Change type of fields ``stop_registers''
4342 and ``registers'' to ``struct regcache''.
4343 (write_inferior_status_register): Use regcache_write.
4344 (save_inferior_status): Instead of calling
4345 xmalloc_inferior_status, allocate the inf_status buffer directly.
4346 Use regcache_dup_no_passthrough and regcache_dup to save the
4347 buffers.
4348 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4349 Replace the stop_registers regcache instead of overriding it. Use
4350 regcache_xfree. Instead of calling free_inferior_status, xfree
4351 the buffer directly.
4352 (discard_inferior_status): Use regcache_xfree. Instead of calling
4353 free_inferior_status, xfree the buffer directly.
4354 (build_infrun): Use regcache_xmalloc.
4355 (_initialize_infrun): Delete redundant call to build_infrun.
4356
4357 * Makefile.in (infcmd.o): Add $(regcache_h).
4358
4359 * infcmd.c: Include "regcache.h".
4360 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4361 obtain the address of `stop_registers' register buffer.
4362 (print_return_value): Ditto.
4363
4364 * inferior.h (struct regcache): Add opaque declaration.
4365 (stop_registers): Change variable's declared type to ``struct
4366 regcache''.
4367
defc6f8c
TT
43682002-06-24 Tom Tromey <tromey@redhat.com>
4369
c0e624e7
TT
4370 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4371 * target.c (initialize_targets): Fixed typo in
4372 trust-readonly-sections `show' documentation.
4373
defc6f8c
TT
4374 * main.c: Marked all strings with _().
4375
2b236d82
DH
43762002-06-24 Don Howard <dhoward@redhat.com>
4377
4378 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4379 that means max CORE_ADDR+1.
4380 (lookup_mem_region): Ditto.
4381 (mem_info_command): Ditto.
4382
942dc0e9
GS
43832002-06-24 Grace Sainsbury <graces@redhat.com>
4384
4385 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4386 (REGISTER_BYTES_OK): Remove.
4387 (REGISTER_BYTES): Remove.
4388 (STORE_STRUCT_RETURN): Remove.
4389 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4390 (STORE_RETURN_VALUE): Remove.
4391 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4392 (FRAME_CHAIN): Remove.
4393 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4394 (FRAME_SAVED_PC): Remove.
4395 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4396 (m68k_store_struct_return): Add.
4397 (m68k_deprecated_extract_return_value): Add.
4398 (m68k_deprecated_extract_struct_value_address): Add.
4399 (m68k_store_return_value): Add.
4400 (m68k_frame_chain): Add.
4401 (m68k_frameless_function_invocation): Add.
4402 (m68k_frame_saved_pc): Add.
4403 (m68k_gdbarch_init): added set_gdbarch calls for new
4404 functions and deleted macros.
4405
03c30d4d
TT
44062002-06-23 Tom Tromey <tromey@redhat.com>
4407
4408 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4409 (ALLDEPFILES): Likewise.
4410 (udiheaders): Removed.
4411 (udip2soc.o): Likewise.
4412 (udi2go32.o): Likewise.
4413 (udr.o): Likewise.
4414 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4415
37e71372
AC
44162002-06-22 Andrew Cagney <ac131313@redhat.com>
4417
06a6ac57
AC
4418 * infrun.c (_initialize_infrun): Delete unnecessary call to
4419 build_infrun.
4420
37e71372
AC
4421 * regcache.h: Update comments describing the regcache_cpy family
4422 of functions.
4423 (regcache_save, regcache_restore): Delete declaration.
4424 (regcache_save_no_passthrough): Delete declaration.
4425 (regcache_restore_no_passthrough): Delete declaration.
4426 * regcache.c (regcache_save): Delete function.
4427 (regcache_save_no_passthrough): Delete function.
4428 (regcache_restore): Delete function.
4429 (regcache_restore_no_passthrough): Delete function.
4430
78f6d055
AC
44312002-06-21 Andrew Cagney <ac131313@redhat.com>
4432
4433 * config/m68k/tm-m68k.h: Fix typo.
4434 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4435 (m68k_frame_init_saved_regs): Declare.
4436
78b119cb
JB
44372002-06-21 Jim Blandy <jimb@redhat.com>
4438
4439 Remove some vestiges of Harris 88k support.
4440 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4441 register numbering quirk.
4442 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4443 odd symbols occurring in Harris 88k ELF targets.
4444
0fbb3da7
TT
44452002-06-21 Tom Tromey <tromey@redhat.com>
4446
4447 * gdb_locale.h: New file.
4448 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4449 (defs_h): Added gdb_locale.h.
4450 * configure, config.in: Rebuilt.
4451 * configure.in (PACKAGE): Define.
4452 * defs.h: Include gdb_locale.h.
4453 * main.c (captured_main): Call setlocale, bindtextdomain,
4454 textdomain.
4455
456f8b9d
DB
44562002-06-21 Dave Brolley <brolley@redhat.com>
4457
4458 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4459 * config/frv/frv.mt: New file.
4460 * config/frv/tm-frv.h: New file.
4461 * configure.tgt: Support frv-*-*.
4462 * Makefile.in (frv-tdep.o): New target.
4463 * frv-tdep.c: New file.
4464 * NEWS: Mention frv.
4465
cdd463f9
DB
44662002-06-21 Dave Brolley <brolley@redhat.com>
4467
4468 * MAINTAINERS: Add self to "Write After Approval" list.
4469
5d3ed2e3
GS
44702002-06-21 Grace Sainsbury <graces@redhat.com>
4471
4472 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4473 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4474 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4475 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4476 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4477
4478 * m68k-tdep.c: Include arch-utils.h
4479 (m68k_register_raw_size): Add.
4480 (m68k_register_virtual_size): Add.
4481 (m68k_register_virtual_type): Add.
4482 (m68k_register_name): Add.
4483 (m68k_stack_align): Add.
4484 (m68k_register_byte): Add.
4485 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4486 tm-m68k.h.
4487
7f8e7424
GS
44882002-06-21 Grace Sainsbury <graces@redhat.com>
4489
a2c6a6d5 4490 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4491 m68k_find_saved_regs.
4492 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4493 references to it with frame->saved_regs.
7f8e7424
GS
4494 (m68k_gdbarch_init): Added function calls to initialize the
4495 gdbarch structure.
a2c6a6d5
GS
4496 (m68k_fix_call_dummy): Add.
4497 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4498 (CALL_DUMMY): Remove.
4499 (CALL_DUMMY_LENGTH): Remove.
4500 (CALL_DUMMY_START_OFFSET): Remove.
4501 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4502 (FIX_CALL_DUMMY): Remove.
4503 (PUSH_DUMMY_FRAME): Remove.
4504 (POP_FRAME): Remove.
7f8e7424 4505
f461f5cf
PM
45062002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4507
4508 * parse.c (parse_fprintf): New function used to avoid calls to
4509 fprintf in bison parser generated debug code.
4510 * parser-defs.h: Declaration of new parse_fprintf function.
4511 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4512 Set YYDEBUG to 1 by default.
4513 Set YYFPRINTF as parse_fprintf.
4514
7f0c12ed
ML
45152002-06-21 Michal Ludvig <mludvig@suse.cz>
4516
4517 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4518 encoding anymore.
4519 (pointer_encoding, enum ptr_encoding): New.
4520 (execute_cfa_program): Take care about pointer encoding.
4521 (dwarf2_build_frame_info): Only call parse_frame_info for
4522 .debug_frame and .eh_frame.
4523 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4524 fixed augmentation handling, added relative addressing,
4525 ignore duplicate FDEs. Added comments.
19d833a2 4526 * dwarf2cfi.c: Reindented.
7f0c12ed 4527
87c4a039
EZ
45282002-06-20 Elena Zannoni <ezannoni@redhat.com>
4529
4530 * event-top.c (command_handler): Don't use space_at_cmd_start
4531 unless there is sbrk() on the host. Assign time and space data
4532 to union fields of the appropriate length.
4533
1cf877ad
ML
45342002-06-20 Michal Ludvig <mludvig@suse.cz>
4535
4536 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4537 x86_64_register_name. Return type changed to 'const char *'.
4538 (x86_64_register_name2nr): Rename to x86_64_register_number.
4539 (x86_64_gdbarch_init): Update to reflect the change.
4540 * x86-64-tdep.h: Ditto.
4541 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4542 (supply_fpregset): Ditto.
4543
3fadccb3
AC
45442002-06-19 Andrew Cagney <cagney@redhat.com>
4545
4546 * regcache.h: Update copyright.
4547 (struct regcache, struct gdbarch): Add opaque declarations.
4548 (current_regcache): Declare global variable.
4549 (regcache_read, regcache_write): Add gdbarch parameter.
4550 (regcache_save, regcache_save_no_passthrough)
4551 (regcache_restore, regcache_restore_no_passthrough)
4552 (regcache_dup, regcache_dup_no_passthrough)
4553 (regcache_cpy, regcache_cpy_no_passthrough)
4554 (deprecated_grub_regcache_for_registers)
4555 (deprecated_grub_regcache_for_register_valid)
4556 (regcache_valid_p): Add function declarations.
4557
4558 * regcache.c: Update copyright.
4559 (regcache_descr_handle): New global variable.
4560 (struct regcache_descr): Define.
4561 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4562 (regcache_descr, xfree_regcache_descr): New functions.
4563 (struct regcache): Define.
4564 (regcache_xmalloc, regcache_xfree): New functions.
4565 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4566 (regcache_dup, regcache_dup_no_passthrough): New functions.
4567 (regcache_valid_p, regcache_read_as_address): New functions.
4568 (deprecated_grub_regcache_for_registers): New function.
4569 (deprecated_grub_regcache_for_register_valid): New function.
4570 (current_regcache): New global variable.
4571 (register_buffer): Add regcache parameter. Update calls.
4572 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4573 (read_register_gen, write_register_gen): Update register_buffer
4574 call. Test for legacy_p instead of gdbarch_register_read_p or
4575 gdbarch_register_write_p.
4576 (regcache_collect): Update register_buffer call.
4577 (build_regcache): Rewrite. Use deprecated grub functions.
4578 (regcache_save, regcache_save_no_passthrough): New functions.
4579 (regcache_restore, regcache_restore_no_passthrough): New
4580 functions.
4581 (_initialize_regcache): Create the regcache_data_handle. Swap
4582 current_regcache global variable.
4583
4584 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4585 parameter to regcache_read and regcache_write calls.
4586 (sh4_register_read): Ditto.
4587 (sh64_pseudo_register_read): Ditto.
4588 (sh64_register_read): Ditto.
4589 (sh_pseudo_register_write): Ditto.
4590 (sh4_register_write): Ditto.
4591 (sh64_pseudo_register_write): Ditto.
4592 (sh64_register_write): Ditto.
4593
4594 * defs.h (XCALLOC): Define.
4595
152d9db6
GS
45962002-06-19 Grace Sainsbury <graces@redhat.com>
4597
4598 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4599 * m68k-tdep.c (m68k_gdbarch_init): Added.
4600 (m68k_dump_tdep): Added.
4601
170911c7
DJ
46022002-06-19 Daniel Jacobowitz <drow@mvista.com>
4603
4604 * ada-lang.c (fill_in_ada_prototype): Update comment.
4605
2e4ebe70
DJ
46062002-06-19 Daniel Jacobowitz <drow@mvista.com>
4607
4608 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4609 MIPS_ABI_LAST.
4610 (mips_abi_string, mips_abi_strings): New.
4611 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4612 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4613 tdep->mips_abi_string. Honor mips_abi_string. Default to
4614 O32 if no ABI is found.
4615 (mips_dump_tdep): Use mips_abi_strings.
4616 (mips_abi_update): New function.
4617 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4618 ``set mips abi'' and ``show mips abi''. Check the size of
4619 mips_abi_strings.
4620
16775908
AC
46212002-06-19 Andrew Cagney <cagney@redhat.com>
4622
4623 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4624 constant.
4625
5051bfa4 46262002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4627
5051bfa4
JB
4628 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4629 current frame using only the first stack size adjustment. All
4630 subsequent size adjustments are not considered to be part of
4631 the "static" part of the current frame.
4632 Compute the address of the saved registers relative to the
4633 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4634 in use in this frame.
4635
56468235
DH
46362002-06-18 Don Howard <dhoward@redhat.com>
4637
4638 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4639 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4640 suggesting this solution.
4641
0b624158
AC
46422002-06-18 Andrew Cagney <ac131313@redhat.com>
4643
4644 * config/romp/xm-rtbsd.h: Delete file.
4645 * config/romp/rtbsd.mh: Delete file.
4646
221ea385
KS
46472002-06-18 Keith Seitz <keiths@redhat.com>
4648
4649 * breakpoint.c (condition_command): Post breakpoint_modify
4650 when a condition is added to an existing breakpoint.
4651 (commands_command): Likewise for commands.
4652 (set_ignore_count): Likewise for ignore counts.
4653 If no tty, do not simply return, still need to send event
4654 notification.
4655 (ignore_command): Only print a newline if the command came
4656 from a tty.
4657 Don't call breakpoints_changed, since this is now properly
4658 handled by set_ignore_count.
4659
5402eed1
AC
46602002-06-18 Andrew Cagney <cagney@redhat.com>
4661
4662 * MAINTAINERS: Note that cris-elf target can be compiled with
4663 -Werror.
4664 * cris-tdep.c (cris_register_name): Make return type constant.
4665 (cris_breakpoint_from_pc): Ditto.
4666
cc22880b
ML
46672002-06-18 Michal Ludvig <mludvig@suse.cz>
4668
4669 * frame.h (struct frame_info): Change type of context to
4670 'struct context'.
4671
fa88f677
AC
46722002-06-17 Andrew Cagney <cagney@redhat.com>
4673
4674 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4675 pointer.
4676 * gdbarch.h, gdbarch.c: Regenerate.
4677 * config/mips/tm-mips.h (mips_register_name): Update.
4678 * i386-tdep.h (i386_register_name): Update.
4679 * mips-tdep.c (mips_register_name): Update
4680 * alpha-tdep.c (alpha_register_name): Update.
4681 * arch-utils.c (legacy_register_name): Update.
4682 * arch-utils.h (legacy_register_name): Update.
4683 * avr-tdep.c (avr_register_name): Update.
4684 * ia64-tdep.c (ia64_register_name): Update.
4685 * i386-tdep.c (i386_register_name): Update.
4686 * sparc-tdep.c (sparc32_register_name): Update.
4687 (sparc64_register_name): Update.
4688 (sparclite_register_name): Update.
4689 (sparclet_register_name): Update.
4690 * sh-tdep.c (sh_generic_register_name): Update.
4691 (sh_sh_register_name): Update.
4692 (sh_sh3_register_name): Update.
4693 (sh_sh3e_register_name): Update.
4694 (sh_sh_dsp_register_name): Update.
4695 (sh_sh3_dsp_register_name): Update.
4696 (sh_sh4_register_name): Update.
4697 (sh_sh64_register_name): Update.
4698 * s390-tdep.c (s390_register_name): Update.
4699 * rs6000-tdep.c (rs6000_register_name): Update.
4700 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4701 (ns32k_register_name_32382): Update.
4702 * d10v-tdep.c (d10v_ts2_register_name): Update.
4703 (d10v_ts3_register_name): Update.
4704 * xstormy16-tdep.c (xstormy16_register_name): Update.
4705 * vax-tdep.c (vax_register_name): Update.
4706 * v850-tdep.c (v850_register_name): Update.
4707 * m68hc11-tdep.c (m68hc11_register_name): Update.
4708 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4709 (am33_register_name): Update.
4710
ea1e7ef6
GS
47112002-06-17 Grace Sainsbury <graces@redhat.com>
4712
4713 * m68k-tdep.c: Reindented.
4714
9b02dd1b
AC
47152002-06-17 Andrew Cagney <ac131313@redhat.com>
4716
4717 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4718 list of predefined types.
4719
8758dec1
MK
47202002-06-16 Mark Kettenis <kettenis@gnu.org>
4721
b6197528
MK
4722 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4723 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4724 REGISTER_CONVERT_TO_RAW): Remove defines.
4725 (i386_register_virtual_type, i386_register_convertible,
4726 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4727 Remove prototypes.
4728 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4729 macros mentioned above.
4730
82b47e62
MK
4731 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4732 (i386lynx_saved_pc_after_call): Remove prototype.
4733 * i386ly-tdep.c: Include "i386-tdep.h".
4734 (i386lynx_saved_pc_after_call): Make static. Use
4735 read_memory_nobpt instead of read_memory. Use
4736 read_memory_unsigned_integer instead of read_memory_integer.
4737 (i386lynx_init_abi): New function.
4738 (i386lynx_coff_osabi_sniffer): New function.
4739 (_initialize_i386bsd_tdep): New function.
4740
8758dec1
MK
4741 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4742 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4743 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4744 (i386_fix_call_dummy): Remove prototype.
4745 * i386-tdep.c (i386_call_dummy_words): New variable.
4746 (i386_gdbarch_init): Adjust for removal of the
4747 macros mentioned above.
4748
e9e68a56
AC
47492002-06-15 Andrew Cagney <ac131313@redhat.com>
4750
4751 * command.h (add_setshow_auto_boolean_cmd): Replace
4752 add_set_auto_boolean_cmd.
4753 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4754 add_set_auto_boolean_cmd.
4755 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4756 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4757 mask-address'' command.
4758 (show_mask_address): Add cmd parameter.
4759 * remote.c (add_packet_config_cmd): Update. Change type of
4760 set_func and show_func to cmd_sfunc_ftype.
4761 (_initialize_remote): Update `set remote Z-packet'
4762 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4763 (show_remote_protocol_e_packet_cmd): Ditto.
4764 (show_remote_protocol_E_packet_cmd): Ditto.
4765 (show_remote_protocol_P_packet_cmd): Ditto.
4766 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4767 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4768 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4769 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4770 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4771 (show_remote_protocol_Z_packet_cmd): Ditto.
4772 (show_remote_protocol_binary_download_cmd): Ditto.
4773 (show_remote_cmd): Pass NULL to all of above.
4774
fc08ec52
MK
47752002-06-15 Mark Kettenis <kettenis@gnu.org>
4776
4777 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4778 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4779 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4780 POP_FRAME): Remove defines.
4781 (i386_push_arguments, i386_store_struct_return,
4782 i386_extract_return_value, i386_store_return_value,
4783 i386_extract_struct_value_address, i386_push_dummy_frame,
4784 i386_pop_frame): Renove prototypes.
4785 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4786 macros mentioned above.
4787
e707bbc2
AC
47882002-06-15 Andrew Cagney <ac131313@redhat.com>
4789
4790 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4791 add_set_boolean_cmd.
4792 (add_setshow_cmd): New function.
4793 * command.h (add_setshow_boolean_cmd): Replace
4794 add_set_boolean_cmd.
4795 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4796 and ``set rdiromatzero''.
4797 * maint.c (_initialize_maint_cmds): Update commented out code.
4798 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4799 * target.c (initialize_targets): Update `set
4800 trust-readonly-sections'.
4801 * remote.c (_initialize_remote): Update `set remotebreak'.
4802
42fdc8df
MK
48032002-06-15 Mark Kettenis <kettenis@gnu.org>
4804
93924b6b
MK
4805 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4806 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4807 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4808 fit into multi-arch framework.
4809 (i386_breakpoint_from_pc): New function.
4810 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4811 above.
4812
42fdc8df
MK
4813 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4814 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4815 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4816 (i386_frameless_function_invocation, i386_frame_num_args,
4817 i386_frame_init_saved_regs): Remove prototypes.
4818 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4819 macros mentioned above.
4820
9773a94b
AC
48212002-06-15 Andrew Cagney <ac131313@redhat.com>
4822
4823 * cli/cli-decode.c (set_cmd_cfunc): Update.
4824 (set_cmd_sfunc): Update.
4825 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4826 (set_cmd_sfunc, set_cmd_cfunc): Update.
4827 * cli/cli-decode.h: Update.
4828
6e157172
MK
48292002-06-15 Mark Kettenis <kettenis@gnu.org>
4830
4831 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4832 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4833
7f19b9a2
AC
48342002-06-15 Andrew Cagney <ac131313@redhat.com>
4835
4836 * defs.h (auto_boolean): Declare enum.
4837 * command.h (cmd_auto_boolean): Delete enum.
4838 * mips-tdep.c (mask_address_var): Update.
4839 (mips_mask_address_p): Update.
4840 (show_mask_address): Update.
4841 * remote.c (struct packet_config): Update.
4842 (update_packet_config): Update.
4843 (show_packet_config_cmd): Update.
4844 (packet_ok): Update.
4845 (add_packet_config_cmd): Update.
4846 (_initialize_remote):
4847 * command.h: Update.
4848 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4849 (do_setshow_command): Update.
4850 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4851 * cli/cli-decode.h: Update.
4852
1cf88de5
MK
48532002-06-15 Mark Kettenis <kettenis@gnu.org>
4854
22ba8cf2
MK
4855 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4856 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4857 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4858 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4859 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4860 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4861
762c5349
MK
4862 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4863 list of DJGPP COFF targets.
4864
091198bb
MK
4865 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4866 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4867 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4868 (FP0_REGNUM): Remove define.
4869 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4870 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4871 (i386_register_virtual_size): Remove protoype.
4872 * i386-tdep.c (i386_register_virtual_size): Removed.
4873 (i386_extract_return_value, i386_store_return_value): Use
4874 FP0_REGNUM instead of NUM_FREGS to determine whether the
4875 floating-point registers are available.
4876 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4877 Adjust for removal of macros mentioned above.
4878
48792002-06-15 Mark Kettenis <kettenis@gnu.org>
4880
fcc9bf01
MK
4881 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4882 comments.
4883 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4884 Remove prototypes.
4885 (supply_gregset, fill_gregset): Remove use of register keyword and
4886 remove declaration for regmap. Use I386_NUM_GREGS instead of
4887 NUM_REGS and NUM_FREGS.
4888 (FPREGSET_FSAVE_OFFSET): Remove.
4889 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4890 NUM_FREGS to determine whether the floating-point registers are
4891 available.
4892
65e78234
MK
4893 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4894 gnu_store_registers): Replace usage of NUM_GREGS with
4895 I386_NUM_GREGS.
4896
98df6387
MK
4897 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4898 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4899 usage of NUM_GREGS with I386_NUM_GREGS.
4900
099a9414
MK
4901 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4902
57976e88
MK
4903 * i386bsd-nat.c: Include "i386-tdep.h".
4904 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4905 I386_NUM_GREGS.
4906
b335f4a6
MK
4907 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4908 and associated comment. They no longer make any sense, since we
4909 don't use this file anymore on Linux.
4910
1cf88de5
MK
4911 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4912 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4913 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4914 elements in these arrays.
4915 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4916 MAX_NUM_REGS.
4917
daa66587
MK
49182002-06-15 Mark Kettenis <kettenis@gnu.org>
4919
4920 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4921 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4922
26e9b323
AC
49232002-06-14 Andrew Cagney <cagney@redhat.com>
4924
4925 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4926 EXTRACT_RETURN_VALUE.
4927 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4928 EXTRACT_STRUCT_VALUE_ADDRESS.
4929 * gdbarch.h, gdbarch.c: Regenerate.
4930
4931 * values.c (value_being_returned): Handle
4932 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4933 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4934
4935 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4936 * arm-tdep.c (arm_gdbarch_init): Update.
4937 * avr-tdep.c (avr_gdbarch_init): Update.
4938 * cris-tdep.c (cris_gdbarch_init): Update.
4939 * d10v-tdep.c (d10v_gdbarch_init): Update.
4940 * ia64-tdep.c (ia64_gdbarch_init): Update.
4941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4942 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4943 * s390-tdep.c (s390_gdbarch_init): Update.
4944 * sh-tdep.c (sh_gdbarch_init): Update.
4945 * s390-tdep.c (s390_gdbarch_init): Update.
4946 * sparc-tdep.c (sparc_gdbarch_init): Update.
4947 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4948 * v850-tdep.c (v850_gdbarch_init): Update.
4949 * vax-tdep.c (vax_gdbarch_init): Update.
4950 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4952
4953 * config/arc/tm-arc.h: Update.
4954 * config/d30v/tm-d30v.h: Update.
4955 * config/fr30/tm-fr30.h: Update.
4956 * config/h8300/tm-h8300.h: Update.
4957 * config/h8500/tm-h8500.h: Update.
4958 * config/i386/tm-i386.h: Update.
4959 * config/i386/tm-ptx.h: Update.
4960 * config/i386/tm-symmetry.h: Update.
4961 * config/i960/tm-i960.h: Update.
4962 * config/m32r/tm-m32r.h: Update.
4963 * config/m68k/tm-delta68.h: Update.
4964 * config/m68k/tm-linux.h: Update.
4965 * config/m68k/tm-m68k.h: Update.
4966 * config/m88k/tm-m88k.h: Update.
4967 * config/mcore/tm-mcore.h: Update.
4968 * config/mips/tm-mips.h: Update.
4969 * config/mn10200/tm-mn10200.h: Update.
4970 * config/pa/tm-hppa.h: Update.
4971 * config/pa/tm-hppa64.h: Update.
4972 * config/sparc/tm-sp64.h: Update.
4973 * config/sparc/tm-sparc.h: Update.
4974 * config/sparc/tm-sparclet.h: Update.
4975 * config/z8k/tm-z8k.h: Update.
4976
5179e78f
AC
49772002-06-14 Andrew Cagney <cagney@redhat.com>
4978
4979 * Makefile.in (i386_linux_tdep_h): Define.
4980 (i386_tdep_h, i387_tdep_h): Define.
4981 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4982 $(i386_tdep_h) and $(i387_tdep_h).
4983 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4984
8201327c
MK
49852002-06-14 Mark Kettenis <kettenis@gnu.org>
4986
edf393ac
MK
4987 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4988 Already covered by the default.
4989
896fb97d
MK
4990 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4991 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4992 (i386_gdbarch_init): Initialize long_double_format and long_double
4993 bit.
4994
8201327c
MK
4995 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4996 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4997 Move these to ...
4998 * config/i386/i386sol2.mh: ... here.
4999 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5000 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5001 (SIGCONTEXT_PC_OFFSET): Remove define.
5002 (IN_SIGTRAMP): Remove define.
5003 * i386-sol2-tdep.c: New file.
5004
5005 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5006 * config/i386/tm-i386nw.h: Removed.
5007
5008 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5009 USE_STRUCT_CONVENTION): Remove defines.
5010 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5011 (get_longjmp_target): Remove prototype.
5012 (IN_SIGTRAMP): Remove define.
5013 (i386bsd_in_sigtramp): Remove prototype.
5014 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5015 function. Update comment accordingly
5016 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5017 (FRAME_SAVED_PC): Remove define.
5018 (i386bsd_frame_saved_pc): Remove prototype.
5019 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5020 GET_LONGJMP_TARGET): Remove defines.
5021 (get_longjmp_target): Remove prototype.
5022 (IN_SIGTRAMP): Remove define.
5023 (i386bsd_in_sigtramp): Remove prototype.
5024 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5025 function. Update comment accordingly
5026 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5027 (FRAME_SAVED_PC): Remove define.
5028 (i386bsd_frame_saved_pc): Remove prototype.
5029 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5030 Remove prototype.
5031 (USE_STRUCT_CONVENTION): Remove prototype.
5032 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5033 declaration.
5034 (_initialize_i386bsd_nat): Revise logic to determine some
5035 constants at compile time when compiling a native GDB. Warn if
5036 things don't match up with what we expect.
5037 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5038 Remove variables.
5039 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5040 to use date stored in `struct gdbarch_tdep'.
5041 (i386bsd_sigcontext_offset): Remove varaible.
5042 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5043 stored in `struct gdbarch_tdep'.
5044 (i386bsd_frame_saved_pc): Make static.
5045 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5046 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5047 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5048 i386fbsd4_sc_pc_offset): New variables.
5049 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5050 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5051 functions.
5052 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5053 functions.
5054 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5055 Modify the value of i386fbsd_sigtramp_start and
5056 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5057 i386fbsd_sigtramp_end.
5058 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5059 function.
5060
5061 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5062 define to i386-linux-tdep.h.
5063 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5064 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5065 defines.
5066 (i386_linux_register_name, i386_linux_register_byte,
5067 i386_linux_register_raw_size): Remove prototypes.
5068 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5069 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5070 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5071 TARGET_WRITE_PC): Remove defines.
5072 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5073 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5074 i386_linux_write_pc): Remove prototypes.
5075 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5076 (get_longjmp_target): Remove prototype.
5077 * i386-linux-tdep.h: New file.
5078 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5079 * i386-linux-tdep.c: Include "i386-tdep.h" and
5080 "i386-linux-tdep.h".
5081 (i386_linux_register_name, i386_linux_register_byte,
5082 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5083 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5084 Make static.
5085 (i386_linux_init_abi): New function.
5086 (_initialize_i386_linux_tdep): New function.
5087
5088 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5089 (i386_saved_pc_after_call): Remove prototype.
5090 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5091 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5092 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5093 (i386_register_name, i386_stab_reg_to_regnum,
5094 i386_dwarf_reg_to_regnum): Remove prototypes.
5095 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5096 SIZEOF_SSE_REGS): Remove defines.
5097 (REGISTER_BYTES): Remove define.
5098 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5099 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5100 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5101 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5102 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5103 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5104 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5105 (get_longjmp_target): Remove prototype.
5106 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5107 (sigtramp_saved_pc): Remove define.
5108 (i386v4_sigtramp_saved_pc): Remove prototype.
5109 * config/i386/tm-go32.h (FRAME_CHAIN,
5110 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5111 (i386go32_frame_saved_pc): Remove prototype.
5112 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5113 (get_longjmp_target): Remove prototype.
5114 * i386-tdep.h: Include "osabi.h".
5115 (enum i386_abi): Removed.
5116 (enum struct_return): New enum.
5117 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5118 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5119 sc_pc_offset members.
5120 (i386_gdbarch_register_os_abi): Remove prototype.
5121 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5122 I386_SSE_NUM_REGS): New defines.
5123 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5124 I386_SSE_SIZEOF_REGS): New defines.
5125 (i386_register_name, i386_register_byte, i386_register_raw_size):
5126 New prototypes.
5127 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5128 (i386bsd_sigtramp_saved_pc): New prototype.
5129 * i386-tdep.c: Don't include "elf-bfd.h".
5130 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5131 i386_frame_chain, i386_saved_pc_after_call): Make static.
5132 (i386_frame_saved_pc): Rewrite to call architecture dependent
5133 function to deal with signal handlers. Make static.
5134 (i386go32_frame_saved_pc): Removed.
5135 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5136 Removed.
5137 (i386_get_longjmp_target): New function.
5138 (default_struct_convention, pcc_struct_convention,
5139 reg_struct_convention, valid_conventions, struct_convention): New
5140 variables.
5141 (i386_use_struct_convention): New function.
5142 (i386v4_sigtramp_saved_pc): Renamed to
5143 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5144 (i386_pc_in_sigtramp): New function.
5145 (i386_abi_names): Removed.
5146 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5147 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5148 Removed.
5149 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5150 i386_gdbarch_register_os_abi): Removed.
5151 (struct i386_abi_handler): Removed.
5152 (i386_abi_handler_list): Removed.
5153 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5154 functions.
5155 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5156 i386_nw_init_abi): New functions.
5157 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5158 Use set_gdbarch_xxx() calls instead of relying on macros for a
5159 number of calls.
5160 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5161 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5162 Register the various architecture variants defined in this file.
5163
ad2f7632
DJ
51642002-06-14 Daniel Jacobowitz <drow@mvista.com>
5165
5166 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5167 (struct main_type): Remove arg_types member. Update comments for
5168 struct field.
5169 (TYPE_ARG_TYPES): Remove.
5170 (TYPE_FN_FIELD_ARGS): Update.
5171 (smash_to_method_type): Update prototype.
5172
5173 * c-typeprint.c (cp_type_print_method_args): Take method type
5174 instead of argument list. Use new argument layout. Simplify.
5175 (c_type_print_args): Use new argument layout. Simplify.
5176 (c_type_print_base): Update call to cp_type_print_method_args.
5177 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5178 argument; use die->type instead. Update call to
5179 smash_to_method_type.
5180 (read_structure_scope): Update call to dwarf2_add_member_fn.
5181 * gdbtypes.c (allocate_stub_method): Update comment.
5182 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5183 Use new argument layout.
5184 (check_stub_method): Use new argument layout. Don't count
5185 void as an argument.
5186 (print_arg_types): Update comments. Use new argument layout.
5187 (recursive_dump_type): Don't print arg_types member.
5188 * hpread.c (hpread_read_struct_type): Use new argument layout.
5189 (fixup_class_method_type): Likewise.
5190 (hpread_type_lookup): Likewise.
5191 * stabsread.c (read_type): Update calls to read_args and
5192 smash_to_method_type.
5193 (read_args): Use new argument layout. Simplify.
5194 * valops.c (typecmp): Use new argument layout. Update parameters
5195 and comments. Simplify.
5196 (hand_function_call): Use new argument layout.
5197 (search_struct_method): Update call to typecmp.
5198 (find_overload_match): Use new argument layout.
5199
6da02953
DJ
52002002-06-13 Daniel Jacobowitz <drow@mvista.com>
5201
5202 * NEWS: Mention multithreaded debug support for gdbserver.
5203
519b2366
DJ
52042002-06-13 Daniel Jacobowitz <drow@mvista.com>
5205
5206 * MAINTAINERS: Mention NEWS.
5207
6c0d6680
DJ
52082002-06-13 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5211 (struct mips_objfile_private, compare_pdr_entries): New.
5212 (non_heuristic_proc_desc): Read the ".pdr" section if it
5213 is present.
5214
6529d2dd
AC
52152002-06-12 Andrew Cagney <ac131313@redhat.com>
5216
5217 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5218 (arm_debug): New static variable.
5219 (_initialize_arm_tdep): Add ``set debug arm'' command.
5220
26216b98
AC
52212002-06-12 Andrew Cagney <ac131313@redhat.com>
5222
5223 * Makefile.in (sim_arm_h): Define.
5224 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5225 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5226 (arm_register_sim_regno): New function, map an internal REGNUM
5227 onto a simulator register number.
5228 (arm_gdbarch_init): Set register_sim_regno.
5229
814b3ba0
AH
52302002-06-09 Aldy Hernandez <aldyh@redhat.com>
5231
5232 * MAINTAINERS: Add self.
5233
475b0867
JB
52342002-06-11 Jim Blandy <jimb@redhat.com>
5235
919d772c
JB
5236 * source.c (source_info): Mention whether the symtab has
5237 information about preprocessor macros.
5238
475b0867
JB
5239 Call the command `info macro', not `show macro'.
5240 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5241 Fix error message.
5242 (_initialize_macrocmd): Register `info_macro_command' in
5243 `infolist', not `showlist'.
5244
9e364162
DJ
52452002-06-11 Daniel Jacobowitz <drow@mvista.com>
5246
5247 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5248 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5249 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5250 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5251 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5252 unconditionally.
5253 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5254 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5255 (_initialize_mips_tdep): Remove dead code.
5256 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5257 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5258 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5259 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5260 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5261 MIPS_LAST_FP_ARG_REGNUM): Remove.
5262
23aa4c72
ML
52632002-06-11 Michal Ludvig <mludvig@suse.cz>
5264
5265 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5266 (unwind_tmp_obstack_free, parse_frame_info)
5267 (update_context, cfi_read_fp, cfi_write_fp)
5268 (cfi_frame_chain, cfi_init_extra_frame_info)
5269 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5270 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5271
70eb15a4
CV
52722002-06-11 Corinna Vinschen <vinschen@redhat.com>
5273
5274 * v850-tdep.c (v850_type_is_scalar): New function.
5275 (v850_use_struct_convention): Match current gcc implementation
5276 as close as possible.
5277 (v850_push_arguments): Fix stack_offset handling. Don't write
5278 struct_addr into register. This is done by v850_store_struct_return.
5279 (v850_extract_return_value): Care for structs.
5280 (v850_store_return_value): Ditto.
5281 (v850_store_struct_return): Actually write address.
5282
482a4d06
ML
52832002-06-11 Michal Ludvig <mludvig@suse.cz>
5284
5285 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5286 without debug information too.
5287
d855c300
AC
52882002-06-10 Andrew Cagney <ac131313@redhat.com>
5289
5290 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5291 Make multi-arch pure.
5292 * gdbarch.h, gdbarch.c: Re-generate.
5293 * arm-tdep.c (arm_print_float_info): Update.
5294 * arch-utils.h (default_print_float_info): Update.
5295 * arch-utils.c (default_print_float_info): Update.
5296 * infcmd.c (float_info): Update call.
5297
dd12a101
AC
52982002-06-10 Andrew Cagney <ac131313@redhat.com>
5299
5300 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5301 the front of the initialize list.
5302
101dcfbe
AC
53032002-06-10 Andrew Cagney <ac131313@redhat.com>
5304
5305 * infrun.c (struct inferior_status): Replace fields
5306 selected_frame_address and selected_level with field
5307 selected_frame_id.
5308 (save_inferior_status): Update. Use get_frame_id.
5309 (struct restore_selected_frame_args): Delete.
5310 (restore_selected_frame): Update. Use frame_find_by_id.
5311 (restore_inferior_status): Update.
5312
5313 * breakpoint.h (struct breakpoint): Change type of
5314 watchpoint_frame to frame_id.
5315 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5316 call to get_current_frame.
5317 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5318 get_current_frame.
5319 (watchpoint_check): Use frame_find_by_id.
5320
5321 * frame.h (record_selected_frame): Delete declaration.
5322 * stack.c (record_selected_frame): Delete function.
5323
5324 * frame.h (struct frame_id): Define.
5325 (get_frame_id): Declare.
5326 (frame_find_by_id): Declare.
5327 * frame.c (frame_find_by_id): New function.
5328 (get_frame_id): New function.
5329
304270b6
AV
53302002-06-10 Andrey Volkov <avolkov@transas.com>
5331
5332 * ser-e7kpc.c: Fix duplicated define and call of
5333 _initialize_ser_e7000pc
5334
2f2cf184
DJ
53352002-06-09 Daniel Jacobowitz <drow@mvista.com>
5336
5337 * signals/signals.c (target_signal_from_host): Fix #ifdef
5338 SIGRTMIN case.
5339 (do_target_signal_to_host): Likewise.
5340
caaa3122
DJ
53412002-06-09 Daniel Jacobowitz <drow@mvista.com>
5342
5343 * mips-tdep.c (mips_find_abi_section): New function.
5344 (mips_gdbarch_init): Call it.
5345
6ac5df3a
MK
53462002-06-09 Mark Kettenis <kettenis@gnu.org>
5347
5348 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5349 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5350 after Andrew's 2002-06-08 gdbarch change.
5351
82ea117a
MK
53522002-06-09 Mark Kettenis <kettenis@gnu.org>
5353
5354 * i386-linux-nat.c (suppy_gregset): Don't supply
5355 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5356 register cache.
5357 (fill_gregset): Don't fetch it under the same circumstances.
5358
3c25f8c7
AC
53592002-06-09 Andrew Cagney <cagney@redhat.com>
5360
5361 * Makefile.in (callback_h): Define.
5362 (remote_sim_h): Update path to remote-sim.h.
5363 (remote-rdp.o): Add $(callback_h).
5364 (remote-sim.o): Use $(callback_h).
5365 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5366 * remote-rdp.c: Include "gdb/callback.h".
5367
1029b7fa
MK
53682002-06-09 Mark Kettenis <kettenis@gnu.org>
5369
5370 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5371 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5372
616675d3
AC
53732002-06-08 Andrew Cagney <ac131313@redhat.com>
5374
a3efda28
AC
5375 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5376 * rdi-share/serpardr.c: Ditto.
5377 * rdi-share/unixcomm.c: Ditto.
5378 * rdi-share/serdrv.c: Ditto.
5379 * rdi-share/hostchan.h: Ditto.
5380 * rdi-share/hostchan.c: Ditto.
5381 * rdi-share/host.h: Ditto.
5382 * rdi-share/devsw.c: Ditto.
5383
c5f10366
AC
5384 * objfiles.h: Change type of obj_private to void pointer.
5385 * pa64solib.c: Update copyright. Don't include "assert.h", use
5386 strcmp instead of STREQ, use LONGEST, do not use PTR
5387 * somsolib.c: Ditto.
5388
616675d3
AC
5389 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5390 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5391 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5392
e4b415d9
AC
53932002-06-08 Andrew Cagney <ac131313@redhat.com>
5394
5395 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5396 (default_get_saved_register): Delete function.
5397 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5398 generic_unwind_get_saved_register.
5399 * gdbarch.h, gdbarch.c: Re-generate.
5400
ca0d0b52
AC
54012002-06-08 Andrew Cagney <ac131313@redhat.com>
5402
5403 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5404 generic_func_frame_chain_valid.
5405 * gdbarch.h, gdbarch.c: Re-generate.
5406 * blockframe.c (generic_func_frame_chain_valid): Only check
5407 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5408 passing FP to PC_IN_CALL_DUMMY.
5409 Fix PR gdb/360.
5410
76860b5f
AC
54112002-06-08 Andrew Cagney <ac131313@redhat.com>
5412
5413 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5414 (register_gdbarch_data): Initialize init_p.
5415 (gdbarch_data): Initialize data pointer using the init function.
5416 (init_gdbarch_data): Delete function.
5417 (gdbarch_update_p): Update.
5418 (initialize_non_multiarch): Update.
5419 (struct gdbarch): Add field initialized_p.
5420 * gdbarch.h, gdbarch.c: Re-generate.
5421
8dda9770
ML
54222002-06-07 Michal Ludvig <mludvig@suse.cz>
5423
5424 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5425 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5426 better do the things actually here.
5427 * x86-64-tdep.c (x86_64_register_name2nr): New.
5428 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5429 (x86_64_gdbarch_init): Respect the above change.
5430 * x86-64-tdep.h (x86_64_register_name2nr)
5431 (x86_64_register_nr2name): Add prototypes.
5432 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5433
3d79a47c
MS
54342002-06-06 Michael Snyder <msnyder@redhat.com>
5435
7bd91a28
MS
5436 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5437 Delete extra braces and re-indent.
5438 (d10v_store_return_value): Char return values
3d79a47c
MS
5439 must be shifted over by one byte in R0.
5440 (d10v_extract_return_value): Delete extra braces, re-indent.
5441
095a4c96
EZ
54422002-06-06 Elena Zannoni <ezannoni@redhat.com>
5443
5444 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5445 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5446 (d10v_integer_to_address): Rewrite.
5447 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5448 the d10v specific functions which take care of converting to the
5449 correct space.
5450
e8a77ca4
EZ
54512002-06-06 Elena Zannoni <ezannoni@redhat.com>
5452
5453 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5454 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5455
4f2e4a4f
AC
54562002-06-02 Andrew Cagney <ac131313@redhat.com>
5457
5458 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5459 includes.
5460 * config/tm-linux.h: Ditto.
5461 * config/alpha/tm-alphalinux.h: Ditto.
5462 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5463 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5464 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5465 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5466 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5467 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5468 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5469 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5470 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5471 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5472 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5473 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5474 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5475 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5476 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5477 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5478 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5479 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5480 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5481 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5482 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5483 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5484 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5485 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5486 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5487 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5488 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5489 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5490 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5491 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5492 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5493 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5494 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5495 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5496 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5497 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5498 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5499
ae2ab2ce
AS
55002002-05-04 Aidan Skinner <aidan@velvet.net>
5501
5502 * ada-exp.tab.c: New file
5503 * ada-exp.y: New file
5504 * ada-lang.c: New file
5505 * ada-lang.h: New file
5506 * ada-lex.c: New file
5507 * ada-lex.l: New file
5508 * ada-tasks.c: New file
5509 * ada-typeprint.c: New file
5510 * ada-valprint.c: New file
5511
0ddd0135
JT
55122002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5513
5514 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5515 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5516
750fbacc
JT
55172002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5518
5519 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5520 insetead of ppc-linux-tdep.o.
5521 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5522 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5523
df94e18a
AC
55242002-06-02 Andrew Cagney <ac131313@redhat.com>
5525
5526 2002-05-07 Christian Groessler <chris@groessler.org>
5527 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5528 bit register contents for little endian hosts.
5529
1a38ab75
AC
55302002-06-01 Andrew Cagney <ac131313@redhat.com>
5531
5532 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5533 any maintainer.
5534
8b1632ac
AC
55352002-06-01 Andrew Cagney <ac131313@redhat.com>
5536
5537 * gdbarch.h: Regenerate.
5538
627054c8
AC
55392002-06-01 Andrew Cagney <ac131313@redhat.com>
5540
5541 * MAINTAINERS: Add everyone to write-after-approval list.
5542
4f460812
AC
55432002-06-01 Andrew Cagney <ac131313@redhat.com>
5544
5545 * stack.c (frame_info): Use frame_register_unwind instead of
5546 saved_regs. Mention when the SP is on the stack or in a register.
5547
5548 * frame.h (frame_register_unwind_ftype): Define. Document.
5549 (struct frame_info): Add field register_unwind and
5550 register_unwind_cache.
5551 (frame_register_unwind): Declare.
5552 (generic_unwind_get_saved_register): Declare.
5553
5554 * frame.c (frame_register_unwind): New function.
5555 (generic_unwind_get_saved_register): New function.
5556
5557 * blockframe.c (generic_call_dummy_register_unwind): New function.
5558 (frame_saved_regs_register_unwind): New function.
5559 (set_unwind_by_pc): New function.
5560 (create_new_frame): New function.
5561 (get_prev_frame): New function.
5562
de888f76
AC
55632002-05-30 Andrew Cagney <ac131313@redhat.com>
5564
5565 * a29k-share/: Delete directory.
5566 * remote-vx29k.c: Delete file.
5567
2f2c3626
JT
55682002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5569
5570 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5571 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5572
9ce5c36a
JT
55732002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5574
5575 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5576 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5577 (sparc64nbsd-nat.o)
5578 (sparcnbsd-nat.o)
5579 (sparcnbsd-tdep.o): New dependency lists.
5580 * NEWS: Note new UltraSPARC NetBSD native configuration.
5581 * configure.host (sparc64-*-netbsd*): New host.
5582 * configure.tgt (sparc-*-netbsdelf*)
5583 (sparc-*-netbsd*): Set gdb_target to nbsd.
5584 (sparc64-*-netbsd*): New target.
5585 * sparc64nbsd-nat.c: New file.
5586 * sparcnbsd-nat.c: New file.
5587 * sparcnbsd-tdep.c: New file.
5588 * sparcnbsd-tdep.h: New file.
5589 * config/sparc/nbsd.mt: New file.
5590 * config/sparc/nbsd64.mh: New file.
5591 * config/sparc/nbsd64.mt: New file.
5592 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5593 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5594 (HOST_IPC): Remove.
5595 * config/sparc/nbsdaout.mt: Remove.
5596 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5597 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5598 (HOST_IPC): Remove.
5599 * config/sparc/nbsdelf.mt: Remove.
5600 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5601 sparc-nat.c compatiblity defines.
5602 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5603 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5604 * config/sparc/tm-nbsd64.h: New file.
5605 * config/sparc/tm-nbsdaout.h: Remove.
5606 * config/sparc/xm-nbsd.h: Remove.
5607
ef3cf062
JT
56082002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5609
5610 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5611 * sparc-tdep.c: Include osabi.h.
5612 (gdbarch_tdep): Add osabi member.
5613 (_initialize_sparc_tdep): Use gdbarch_register.
5614 (sparc_gdbarch_init): Use generic OS ABI framework.
5615 (sparc_dump_tdep): New function.
5616
ee8ff470
KB
56172002-05-30 Kevin Buettner <kevinb@redhat.com>
5618
5619 * corefile.c (do_captured_read_memory_integer): Return non-zero
5620 result.
5621 (safe_read_memory_integer): Copy result of memory read when
5622 status is non-zero. Also, add comments.
5623
7b112f9c
JT
56242002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5625
5626 * Makefile.in (ppc_tdep_h): Define.
5627 (ppc-linux-nat.o)
5628 (ppc-linux-tdep.o)
5629 (rs6000-tdep.o): Use $(ppc_tdep_h).
5630 (ppc-sysv-tdep.o)
5631 (ppcnbsd-nat.o)
5632 (ppcnbsd-tdep.o): New dependency lists.
5633 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5634 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5635 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5636 (ppc_sysv_abi_broken_use_struct_convention)
5637 (ppc_sysv_abi_use_struct_convention)
5638 (ppc_sysv_abi_push_arguments): Move to...
5639 * ppc-sysv-tdep.c: ...here.
5640 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5641 * rs6000-tdep.c (process_note_abi_tag_sections)
5642 (get_elfosabi): Remove.
5643 (rs6000_gdbarch_init): Use generic OS ABI framework.
5644 (rs6000_dump_tdep): New function.
5645 (_initialize_rs6000_tdep): Use gdbarch_register.
5646 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5647 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5648 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5649 of ppc-linux-tdep.o.
5650 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5651 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5652 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5653 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5654 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5655 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5656
480dd42a
JB
56572002-05-29 Jim Blandy <jimb@redhat.com>
5658
5659 * macroscope.c (default_macro_scope): Put `void' in empty argument
5660 list.
5661
4182591f
AC
56622002-05-29 Andrew Cagney <ac131313@redhat.com>
5663
5664 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5665 * arch-utils.c: Include "sim-regno.h".
5666 * gdbarch.sh: Don't include "sim-regno.h".
5667 * gdbarch.h, gdbarch.c: Regenerate.
5668 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5669 here.
5670 * arch-utils.h (legacy_register_sim_regno): To here.
5671 * remote-sim.c (legacy_register_sim_regno): Move function from
5672 here.
5673 * arch-utils.c (legacy_register_sim_regno): To here.
5674
8238d0bf
AC
56752002-05-28 Andrew Cagney <ac131313@redhat.com>
5676
5677 * sim-regno.h: New file.
5678 * Makefile.in (sim_regno_h): Define.
5679 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5680 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5681 (legacy_register_sim_regno): New function.
5682 (one2one_register_sim_regno): New function.
5683 (gdbsim_fetch_register): Rewrite.
5684 (gdbsim_store_register): Only store a register when
5685 REGISTER_SIM_REGNO is valid.
5686 * d10v-tdep.c: Include "sim-regno.h".
5687 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5688 (d10v_ts3_register_sim_regno): Ditto.
5689 * gdbarch.sh: Include "sim-regno.h".
5690 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5691 * gdbarch.h, gdbarch.c: Regenerate.
5692 * arch-utils.h (default_register_sim_regno): Delete declaration.
5693 * arch-utils.c (default_register_sim_regno): Delete function.
5694
485721b1
JT
56952002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5696
5697 * ppcnbsd-nat.c: Rewrite.
5698 * ppcnbsd-tdep.c: New file.
5699 * ppcnbsd-tdep.h: New file.
5700 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5701 solib.o, and solib-svr4.o.
5702 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5703 nbsd-tdep.o, and corelow.o.
5704
697f244d
AC
57052002-05-28 Andrew Cagney <ac131313@redhat.com>
5706
5707 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5708 `tr' and `sed'. Mention that `broken' targets are not expected to
5709 build.
5710
f08caad1 57112002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5712
5713 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5714 Let PC point right after the prologue before looking up symbols.
5715
3139facc
MH
57162002-05-27 Martin M. Hunt <hunt@redhat.com>
5717
5718 * i386-tdep.c (i386_register_virtual_type): Return
5719 builtin_type_vec128i for SSE registers.
5720
5721 * gdbtypes.h (builtin_type_vec128i): Declare.
5722
5723 * gdbtypes.c (build_builtin_type_vec128i): New function.
5724 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5725 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5726 (build_gdbtypes): Initialize new builtin vector types.
5727 (_initialize_gdbtypes): Register new vector types with gdbarch.
5728
6e3ba3b8
JT
57292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5730
5731 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5732 since it has been multi-arch'd.
5733 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5734 Move Alpha and VAX multi-arch news entries to same section
5735 as other multi-arch news.
5736
93d5585d
JT
57372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5738
5739 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5740 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5741 static. Rename some register numbers to put them in ns32k-tdep
5742 private namespace.
5743 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5744 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5745 functions.
5746 (_initialize_ns32k_tdep): Use gdbarch_register.
5747 * ns32k-tdep.h: New file.
5748 * ns32knbsd-tdep.c: New file.
5749 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5750 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5751 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5752 REGISTER_BYTES, REGISTER_BYTE): Remove.
5753 * config/ns32k/tm-ns32k.h: New file.
5754 * config/ns32k/tm-umax.h: Remove.
5755
efb2c70e
JT
57562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5757
5758 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5759 ns32k_store_struct_return, ns32k_extract_return_value,
5760 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5761 functions.
5762 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5763 ns32k_saved_pc_after_call.
5764 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5765 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5766 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5767 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5768 ns32k_extract_struct_value_address.
5769
7bcc927b
JT
57702002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5771
5772 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5773 ns32k_fix_call_dummy): New.
5774 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5775 ns32k_call_dummy_words.
5776 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5777 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5778 CALL_DUMMY_NARGS): Remove.
5779 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5780
78f9d765
JT
57812002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5782
5783 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5784 ns32k_frame_saved_pc, ns32k_frame_args_address,
5785 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5786 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5787 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5788 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5789 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5790 (BREAKPOINT): Remove..
5791 (FRAME_CHAIN): Define as ns32k_frame_chain.
5792 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5793 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5794 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5795 (FRAME_FIND_SAVED_REGS): Remove.
5796 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5797 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5798 (POP_FRAME): Define as ns32k_pop_frame.
5799
f2c762e0
JT
58002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5801
5802 * ns32k-tdep.c (ns32k_register_byte_32082,
5803 ns32k_register_byte_32382, ns32k_register_raw_size,
5804 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5805 functions.
5806 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5807 ns32k_register_byte_32382.
5808 * config/ns32k/tm-umax.h: Update copyright years.
5809 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5810 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5811 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5812 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5813 (ns32k_get_enter_addr): Fix prototype.
5814
af137673
JT
58152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5816
5817 * ns32k-tdep.c: Update copyright years.
5818 (ns32k_register_name_32082): New function.
5819 (ns32k_register_name_32382): Ditto.
5820 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5821 (REGISTER_NAME): Define as ns32k_register_name_32382.
5822 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5823 (REGISTER_NAME): Define as ns32k_register_name_32082.
5824
a8bc7b56
JB
58252002-05-24 Jim Blandy <jimb@redhat.com>
5826
5827 * dwarf2read.c (free_line_header): Use xfree, not free.
5828
83a45910
JT
58292002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5830
5831 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5832 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5833
0db71247
AC
58342002-05-23 Andrew Cagney <ac131313@redhat.com>
5835
5836 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5837
b9e5e4dd
AC
58382002-05-23 Andrew Cagney <ac131313@redhat.com>
5839
5840 From Ross Alexander at NEC Europe:
5841 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5842
de530e84
MS
58432002-05-23 Michael Snyder <msnyder@redhat.com>
5844
5845 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5846 for input, rather than parse_and_eval_address.
5847
b91b96f4
AC
58482002-05-23 Andrew Cagney <ac131313@redhat.com>
5849
5850 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5851 * Makefile.in (sim_d10v_h): Update definition.
5852
8b279e7a
AC
58532002-05-24 Andrew Cagney <cagney@redhat.com>
5854
5855 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5856 change `2002-05-22 Michael Snyder' below.
5857 (d10v_push_arguments): Ditto.
5858 (d10v_extract_return_value): Ditto.
5859
0a3d0425
JB
58602002-05-23 Jim Blandy <jimb@redhat.com>
5861
5862 * macrotab.c (check_for_redefinition): Don't complain if the new
5863 definition is the same as the previous one. Take more arguments
5864 to allow the comparison.
5865 (macro_define_object, macro_define_function): Pass more arguments
5866 to check_for_redefinition.
5867
78eac43e
MS
58682002-05-22 Michael Snyder <msnyder@redhat.com>
5869
5870 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5871 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5872 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5873 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5874 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5875 Add a temp variable to save a call (and a memory read).
5876 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5877 if possible (so that PC_IN_CALL_DUMMY will work).
5878
9bc1edb8
CV
58792002-05-22 Corinna Vinschen <vinschen@redhat.com>
5880
5881 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5882
005ef3d2
ML
58832002-05-22 Michal Ludvig <mludvig@suse.cz>
5884
5885 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5886 fde->cie_ptr.
5887 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5888 (dwarf2_build_frame_info): Add offset to fde->initial_location
5889 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5890 (execute_stack_op): Change type of 'result' from ULONGEST to
5891 CORE_ADDR.
005ef3d2 5892
fcf4f891
JT
58932002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5894
5895 * config/alpha/tm-nbsd.h: Include solib.h.
5896
cfef91e4
JT
58972002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5898
5899 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5900 assumptions about the host's byte order.
5901
9964235a
JT
59022002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5903
5904 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5905 to dependency list.
5906 * alphanbsd-tdep.c: Include solib-svr4.h.
5907 * shnbsd-tdep.c: Ditto.
5908
9eeef8ef
JT
59092002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5910
5911 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5912 nbsd-tdep.h to dependency list.
5913 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5914 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5915 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5916 nbsdaout.mh and nbsdelf.mh consistently.
5917 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5918 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5919 nbsdaout.mt and nbsdelf.mh consistently.
5920 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5921 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5922 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5923 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5924 a.out shared library stuff from here...
5925 * config/nm-nbsdaout.h: ...to here.
5926 * config/tm-nbsd.h: Remove.
5927 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5928 * config/arm/nbsd.mh: Remove.
5929 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5930 nbsd-tdep.o.
5931 * config/arm/nbsdaout.mh: New file.
5932 * config/arm/nbsdelf.mh: New file.
5933 * config/arm/nm-nbsdaout.h: New file.
5934 * config/i386/nbsd.mh: Remove.
5935 * config/i386/nbsd.mt: Remove.
5936 * config/i386/nbsdaout.mh: New file.
5937 * config/i386/nbsdaout.mt: New file.
5938 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5939 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5940 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5941 i386_register_u_addr): Remove.
5942 * config/i386/nm-nbsdaout.h: New file.
5943 * config/i386/nm-nbsdelf.h: Remove.
5944 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5945 (USE_STRUCT_CONVENTION): Remove.
5946 * config/i386/tm-nbsdaout.h: New file.
5947 * config/i386/tm-nbsdelf.h: Remove.
5948 * config/m68k/nbsd.mh: Remove.
5949 * config/m68k/nbsd.mt: Remove.
5950 * config/m68k/nbsdaout.mh: New file.
5951 * config/m68k/nbsdaout.mt: New file.
5952 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5953 * config/m68k/nm-nbsdaout.h: New file.
5954 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5955 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5956 * config/ns32k/nbsd.mh: Remove.
5957 * config/ns32k/nbsd.mt: Remove.
5958 * config/ns32k/nbsdaout.mh: New file.
5959 * config/ns32k/nbsdaout.mt: New file.
5960 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5961 * config/ns32k/nm-nbsdaout.h: New file.
5962 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5963 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5964 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5965 (SVR4_SHARED_LIBS): Remove.
5966 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5967 * config/sparc/nbsd.mh: Remove.
5968 * config/sparc/nbsd.mt: Remove.
5969 * config/sparc/nbsdaout.mh: New file.
5970 * config/sparc/nbsdaout.mt: New file.
5971 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5972 * config/sparc/nbsdelf.mt: New file.
5973 * config/sparc/nm-nbsdaout.h: New file.
5974 * config/sparc/nm-nbsdelf.h: Remove.
5975 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5976 * config/sparc/tm-nbsdaout.h: New file.
5977
257ce470
JT
59782002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5979
5980 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5981 mipsnbsd-tdep.c
5982 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5983
76a6d5fe
JT
59842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5985
5986 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5987 shnbsd-nat.c.
5988 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5989
45888261
JT
59902002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5991
5992 * NEWS: Note new MIPS NetBSD native configuration.
5993 * configure.host (mips*-*-netbsd*): New host.
5994 * configure.tgt (mips*-*-netbsd*): New target.
5995 * mipsnbsd-nat.c: New file.
5996 * mipsnbsd-tdep.c: New file.
5997 * mipsnbsd-tdep.h: New file.
5998 * config/mips/nbsd.mh: New file.
5999 * config/mips/nbsd.mt: New file.
6000 * config/mips/nm-nbsd.h: New file.
6001 * config/mips/tm-nbsd.h: New file.
6002
70f80edf
JT
60032002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6004
6005 * Makefile.in (SFILES): Add osabi.c.
6006 (COMMON_OBS): Add osabi.o.
6007 (osabi.o): New dependency list.
6008 * osabi.c: New file.
6009 * osabi.h: New file.
6010 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6011
6012 * Makefile.in (alpha_tdep_h): Define and use instead of
6013 alpha-tdep.h.
6014 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6015 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6016 Remove.
6017 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6018 * alpha-tdep.h: Include osabi.h.
6019 (alpha_abi): Remove.
6020 (gdbarch_tdep): Use generic OS ABI framework.
6021 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6022 gdbarch_register_osabi.
6023 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6024 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6025 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6026
6027 * Makefile.in (sh_tdep_h): Add osabi.h.
6028 * sh-tdep.h (sh_osabi): Remove.
6029 (gdbarch_tdep): Use generic OS ABI framework.
6030 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6031 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6032 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6033 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6034
6035 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6036 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6037 gdbarch_register_osabi.
6038 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6039 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6040 (get_elfosabi): Rename to...
6041 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6042 ABI framework support routines.
6043 (arm_gdbarch_init): Use generic OS ABI framework.
6044 (arm_dump_tdep): Likewise.
6045 (_initialize_arm_tdep): Likewise.
6046 * arm-tdep.h: Include osabi.h.
6047 (arm_abi): Remove.
6048 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6049 osabi member.
6050 (arm_gdbarch_register_os_abi): Remove prototype.
6051 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6052 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6053
6054 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6055 * mips-tdep.c: Include osabi.h.
6056 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6057 OS ABI framework.
6058
d194345b
KH
60592002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6060
6061 * h8300-tdep.c: Fix formatting.
6062
70c6b0d1
EZ
60632002-05-20 Elena Zannoni <ezannoni@redhat.com>
6064
6065 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6066 printing vector registers.
6067
165b8e33
AC
60682002-05-19 Andrew Cagney <ac131313@redhat.com>
6069
6070 From Fernando Nasser:
6071 * remote.c (remote_async_open_1): Re-throw the exception when the
6072 connection fails.
6073 (remote_cisco_open): Ditto.
6074 (remote_open_1): Ditto.
6075
36918e70
AC
60762002-05-19 Andrew Cagney <ac131313@redhat.com>
6077
6078 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6079 (remote_start_remote): Add uiout parameter. Pass through to
6080 remote_start_remote_dummy.
6081 (remote_open_1): Use catch_exception instead of catch_errors.
6082 (remote_async_open_1): Ditto.
6083 (remote_cisco_open): Ditto.
6084
ae44c0c4
AC
60852002-05-19 Andrew Cagney <ac131313@redhat.com>
6086
6087 * remote.c (remote_start_remote): Replace PTR with void pointer.
6088 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6089 static.
6090
8efe637d
AC
60912002-05-18 Andrew Cagney <ac131313@redhat.com>
6092
6093 * gdb_indent.sh: Allow the script to be run in the sim directory.
6094
2f1b5984
MK
60952002-05-18 Mark Kettenis <kettenis@gnu.org>
6096
f0f625e2
MK
6097 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6098 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6099
2f1b5984
MK
6100 * corelow.c (core_open): Only call set_gdbarch_from_file if
6101 exec_bfd is NULL.
6102
fc974602
AV
61032002-05-17 Andrey Volkov <avolkov@transas.com>
6104
6105 * h8300-tdep.c: Add support of EXR register
6106 * config/h8300/tm-h8300.h: Ditto.
6107
906709f4
AV
61082002-05-17 Andrey Volkov <avolkov@transas.com>
6109
6110 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6111
6e591d68
AV
61122002-05-17 Andrey Volkov <avolkov@transas.com>
6113
6114 * h8300-tdep.c: Change literal regnums to REGNO.
6115
84f0252a
JB
61162002-05-17 Jim Blandy <jimb@redhat.com>
6117
e0e9281e
JB
6118 * NEWS: Note addition of macro support.
6119
84f0252a
JB
6120 Expand preprocessor macros in C expressions.
6121 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6122 (scan_macro_expansion, scanning_macro_expansion,
6123 finished_macro_expansion): New function declarations.
6124 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6125 variable declarations.
6126 * parser-defs.h (expression_context_pc): New declaration.
6127 * parse.c (expression_context_pc): New variable.
6128 (parse_exp_1): Set expression_context_pc, as well as
6129 expression_context_block.
6130 * c-exp.y (yylex): If we're not already reading the result of a
6131 macro expansion, try to macro-expand the next token. When we're
6132 done scanning a macro expansion, switch back to the mainline text.
6133 Commas and `if's in a macro's expansion don't terminate the input.
6134 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6135 (macro_original_text, macro_expanded_text,
6136 expression_macro_lookup_func, expression_macro_lookup_baton): New
6137 variables.
6138 (scan_macro_expansion, scanning_macro_expansion,
6139 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6140 c_preprocess_and_parse): New functions.
6141 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6142 c_preprocess_and_parse, instead of c_parse.
6143 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6144 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6145
1c509ca8
JR
6146Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6147
6148 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6149 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6150 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6151
2250ee0c
CV
61522002-05-17 Corinna Vinschen <vinschen@redhat.com>
6153
6154 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6155
ab3b8126
JT
61562002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * Makefile.in (sh_tdep_h): Define and use.
6159 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6160 register enum): Move to...
6161 * * sh-tdep.h: ...here.
6162 * sh-tdep.c: Include sh-tdep.h.
6163 * sh3-rom.c: Likewise.
6164 * shnbsd-tdep.c: Likewise.
6165
ed9d4749
MS
61662002-05-16 Michael Snyder <msnyder@redhat.com>
6167
6168 * arm-tdep.c: Spelling fix in comment.
6169
2e276125
JB
61702002-05-16 Jim Blandy <jimb@redhat.com>
6171
6821892e
JB
6172 Add commands for manually expanding macros and showing their
6173 definitions.
6174 * macrocmd.c, macroscope.c, macroscope.h: New files.
6175 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6176 (macroscope_h): New variable.
6177 (HFILES_NO_SRCDIR): Add macroscope.h.
6178 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6179 (macroscope.o, macrocmd.o): New rules.
6180
2e276125
JB
6181 Teach the Dwarf 2 reader to read macro information.
6182 * dwarf2read.c: #include "macrotab.h".
6183 (dwarf_macinfo_buffer): New variable.
6184 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6185 dwarf_macinfo_size.
6186 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6187 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6188 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6189 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6190 dwarf2_macro_spaces_in_definition): New complaints.
6191 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6192 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6193 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6194 the partial symbol table.
6195 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6196 from what's recorded in the partial symbol table.
6197 (read_file_scope): If the compilation unit has a
6198 `DW_AT_macro_info' attribute, read its macro information.
6199 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6200
2f53fe6c
DJ
62012002-05-16 Daniel Jacobowitz <drow@mvista.com>
6202
6203 Fix PR gdb/546
6204 * ser-tcp.c: Don't include <netinet/udp.h>.
6205
2be99286
SC
62062002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6207
6208 * MAINTAINERS: Update my email address.
6209
c9af212b 62102002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6211
6212 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6213 include file of the same name.
6214
bf5f1a52
CV
62152002-05-16 Corinna Vinschen <vinschen@redhat.com>
6216
6217 * configure.tgt: Mark v850 as multi-arched.
6218 * config/v850/tm-v850.h: Remove file.
6219 * config/v850/v850.mt: Eliminate TM_FILE.
6220
435e042a
CV
62212002-05-16 Corinna Vinschen <vinschen@redhat.com>
6222
6223 * v850-tdep.c: Full multi-arch.
6224 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6225 Define GDB_MULTI_ARCH to 2.
6226
9819c6c8
PM
62272002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6228
6229 * p-exp.y (current_type): New static variable.
6230 Carries the type of the expression at the position that is parsed.
6231 (push_current_type, pop_current_type): Two new functions. Used
6232 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6233 (search_field): New static variable. Set to one after parsing a point
6234 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6235 (FIELDNAME): New token. After a point only a token belonging to
6236 current_type type definition is allowed.
6237 (all over token rules): reset and change current_type according
6238 to rules.
6239 (exp '[' rule): insert implicit array index field if
6240 exp is a pascal string type.
6241
3a06899a
CV
62422002-05-16 Corinna Vinschen <vinschen@redhat.com>
6243
6244 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6245 frame info. Use frame_info's saved_regs instead of matching member
6246 in extra_frame_info throughout.
6247 (v850_frame_init_saved_regs): New function.
6248 (v850_init_extra_frame_info): Move most functionality into
6249 v850_frame_init_saved_regs().
6250 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6251 (v850_frame_find_saved_regs): Remove declaration.
6252 (FRAME_FIND_SAVED_REGS): Remove definition.
6253 (v850_frame_init_saved_regs): Add declaration.
6254 (FRAME_INIT_SAVED_REGS): Add definition.
6255
6ed14b0e
CV
62562002-05-16 Corinna Vinschen <vinschen@redhat.com>
6257
6258 * v850-tdep.c: Begin multi-arch'ing v850.
6259 (v850_target_architecture_hook): Remove function.
6260 (v850_gdbarch_init): New function. Add code previously in
6261 v850_target_architecture_hook().
6262 (_initialize_v850_tdep): Don't set target_architecture_hook.
6263 Call register_gdbarch_init() instead.
6264
42725910
DJ
62652002-05-16 Daniel Jacobowitz <drow@mvista.com>
6266
6267 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6268 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6269 (fixup_class_method_type): Likewise.
6270
99d9066e
JB
62712002-05-15 Jim Blandy <jimb@redhat.com>
6272
6273 Add macro structures to GDB's symbol tables. Nobody puts anything
6274 in them yet.
6275 * symtab.h (struct symtab): New member: `macro_table'.
6276 * buildsym.h (pending_macros): New global variable.
6277 * buildsym.c: #include "macrotab.h".
6278 (buildsym_init): Initialize `pending_macros'.
6279 (end_symtab): If we found macro information while reading a CU's
6280 debugging info, do build a symtab structure for it. Make the
6281 symtab point to the macro information, and clear the
6282 `pending_macros' pointer which held it while we were reading the
6283 debug info.
6284 (really_free_pendings): Free any pending macro table.
6285 * objfiles.h (struct objfile): New member: `macro_cache'.
6286 * objfiles.c (allocate_objfile): Set allocate and free functions
6287 for the macro cache's objstack.
6288 (free_objfile): Empty the macro cache's obstack.
6289 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6290 set new allocate and free functions for it.
6291 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6292 free functions for the macro cache's objstack. (Why is this
6293 function building its own objfile?)
6294 * symmisc.c (print_objfile_statistics): Print statistics on the
6295 macro bcache.
6296 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6297
c899585b
RE
62982002-05-15 Richard Earnshaw <rearnsha@arm.com>
6299
6300 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6301 (REGISTER_U_ADDR): Delete definition.
6302 (arm_register_u_addr): Delete declaration.
6303
a6cdd8c5
RE
63042002-05-15 Richard Earnshaw <rearnsha@arm.com>
6305
6306 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6307 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6308
c97dcfc7
AC
63092002-05-14 Andrew Cagney <ac131313@redhat.com>
6310
6311 * regcache.c (register_valid): Revise comments refering to "Not
6312 available" and "unavailable".
6313 * frame.c (frame_register_read): Ditto.
6314 * findvar.c (value_of_register): Ditto.
6315
93021b7d
AC
63162002-05-15 Andrew Cagney <cagney@redhat.com>
6317
6318 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6319 (remote-sim.o): Update dependencies.
6320 (d10v-tdep.o): Specify dependencies.
6321 (sim_d10v_h): Define.
6322
a86bc61c
JB
63232002-05-14 Jim Blandy <jimb@redhat.com>
6324
6325 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6326 * macrotab.c (macro_lookup_inclusion, find_definition,
6327 new_macro_table): Same.
6328
6329 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6330 not `! strcmp ()'. This is a dubious improvement.
6331 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6332
6333 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6334 although it's not necessary, to avoid a warning.
6335
2fdde8f8
DJ
63362002-05-14 Daniel Jacobowitz <drow@mvista.com>
6337
6338 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6339 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6340 TYPE_INSTANCE_FLAGS.
6341 (struct main_type): New.
6342 (struct type): Move most members to struct main_type. Change
6343 cv_type and as_type to new type_chain member. Add instance_flags.
6344 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6345 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6346 (finish_cv_type): Remove prototype.
6347 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6348 Set TYPE_CHAIN.
6349 (alloc_type_instance): New function.
6350 (smash_type): New function.
6351 (make_pointer_type, make_reference_type, make_function_type)
6352 (smash_to_member_type, smash_to_method_type): Call smash_type.
6353 (make_qualified_type): New function.
6354 (make_type_with_address_space): Call make_qualified_type.
6355 (make_cv_type): Likewise.
6356 (finish_cv_type): Remove unnecessary function.
6357 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6358 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6359 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6360 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6361 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6362 * hpread.c (hpread_read_struct_type): Likewise.
6363 * stabsread.c (read_struct_type): Likewise.
6364
843fedf4
EZ
63652002-05-14 Elena Zannoni <ezannoni@redhat.com>
6366
6367 * configure.tgt: Add a catch all sh* target, for cases like
6368 sh[2,3,4]-elf and sh-hms.
6369
05a6c72c
KS
63702002-05-14 Keith Seitz <keiths@redhat.com>
6371
6372 * event-loop.c (create_file_handler): Don't do anything but
6373 update data when we are given a fd which we are already
6374 monitoring.
6375
5d085aaf
ML
63762002-05-14 Michal Ludvig <mludvig@suse.cz>
6377
6378 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6379 (update_context): Use __func__ in warnings.
6380
9db8d71f
DJ
63812002-05-14 Daniel Jacobowitz <drow@mvista.com>
6382
6383 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6384 and tcp_close to net_open and net_close.
6385 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6386 using UDP if requested. Don't try to disable Nagle on UDP
6387 sockets.
6388 * remote.c (remote_serial_open): New function. Warn about UDP.
6389 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6390
5dbc6baa
EZ
63912002-05-13 Elena Zannoni <ezannoni@redhat.com>
6392
6393 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6394
cc3023f7
EZ
63952002-05-13 Elena Zannoni <ezannoni@redhat.com>
6396
6397 * configure.tgt: Remove sh-hms target.
6398 * MAINTAINERS: Don't list sh-hms as a separate target.
6399
ec2bcbe7
JB
64002002-05-13 Jim Blandy <jimb@redhat.com>
6401
6402 Add first preprocessor macro-expansion files.
6403 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6404 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6405 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6406 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6407 (COMMON_OBS): Add macrotab.o, macroexp.o.
6408 (macroexp.o, macrotab.o): New rules.
6409
6d531722
AC
64102002-05-13 Andrew Cagney <ac131313@redhat.com>
6411
6412 * config/m88k/tm-m88k.h: Update copyright.
6413 (m88k_target_write_pc): Declare
6414 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6415 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6416 (SHIFT_INST_REGS): Update definition.
6417 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6418 using old definition of TARGET_WRITE_PC.
6419 * regcache.c (generic_target_write_pc): Delete code handling
6420 NNPC_REGNUM.
6421 * gdbarch.sh (NNPC_REGNUM): Delete.
6422 * gdbarch.h, gdbarch.c: Regenerate.
6423
3e3f2739
RE
64242002-05-13 Richard Earnshaw <rearnsha@arm.com>
6425
6426 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6427 builtin reg number.
6428
0004e5a2
DJ
64292002-05-13 Daniel Jacobowitz <drow@mvista.com>
6430
6431 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6432 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6433 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6434 access macros.
6435 * c-typeprint.c (cp_type_print_method_args): Likewise.
6436 (c_type_print_args): Likewise.
6437 * d10v-tdep.c (d10v_push_arguments): Likewise.
6438 (d10v_extract_return_value): Likewise.
6439 * expprint.c (print_subexp): Likewise.
6440 * gdbtypes.c (lookup_primitive_typename): Likewise.
6441 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6442 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6443 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6444 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6445 (TYPE_VECTOR): Likewise.
6446 * hpread.c (hpread_read_struct_type)
6447 (fix_static_member_physnames, fixup_class_method_type)
6448 (hpread_type_lookup): Likewise.
6449 * mdebugread.c (parse_symbol, parse_type): Likewise.
6450 * p-lang.c (is_pascal_string_type): Likewise.
6451 * valops.c (hand_function_call): Likewise.
6452 * x86-64-tdep.c (classify_argument): Likewise.
6453
6454 * hpread.c (hpread_read_function_type)
6455 (hpread_read_doc_function_type): Call replace_type.
6456 * dstread.c (create_new_type): Delete.
6457 (decode_dst_structure, process_dst_function): Call alloc_type.
6458 Use type access macros.
6459
dff95cc7
MK
64602002-05-12 Mark Kettenis <kettenis@gnu.org>
6461
6462 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6463 the're not supported by the current architecture.
6464 (i387_fill_fxsave): Likewise.
6465
bbcd32ad
FF
64662002-05-12 Fred Fish <fnf@redhat.com>
6467
6468 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6469 sect_index_xxx members to index the first slot in section_offsets
6470 if all of the section_offsets are zero.
6471
89cf4787
MK
64722002-05-12 Mark Kettenis <kettenis@gnu.org>
6473
6474 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6475 checked in with last change.
6476
1f77ffc5
MK
64772002-05-12 Mark Kettenis <kettenis@gnu.org>
6478
6479 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6480 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6481 config.sub.
6482
89b8b4a9
DJ
64832002-05-12 Daniel Jacobowitz <drow@mvista.com>
6484
6485 * Makefile.in: Update dependencies.
6486
14a5e767
AC
64872002-05-11 Andrew Cagney <ac131313@redhat.com>
6488
6489 * language.c (local_hex_string_custom): Simplify. Do not depend
6490 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6491
6492 * memattr.c (mem_info_command): Replace calls to
6493 longest_local_hex_string and longest_local_hex_string_custom.
6494 * buildsym.c (make_blockvector): Ditto.
6495 * solib.c (info_sharedlibrary_command): Ditto.
6496 * tracepoint.c (tracepoints_info): Ditto.
6497 * symtab.c (print_msymbol_info): Ditto.
6498
6499 * language.c (local_hex_string): Delete.
6500 (local_hex_string_custom): Delete.
6501 (longest_local_hex_string): Rename to local_hex_string.
6502 (longest_local_hex_string_custom): Rename to
6503 local_hex_string_custom.
6504 * language.h (local_hex_string): Change parameter type to LONGEST.
6505 (local_hex_string_custom): Ditto.
6506 (longest_local_hex_string): Delete declaration.
6507 (longest_local_hex_string_custom): Ditto.
6508
6509 * solib.c: Update copyright.
6510 * memattr.c: Update copyright.
6511
13d01224
AC
65122002-05-11 Andrew Cagney <ac131313@redhat.com>
6513
6514 * arch-utils.h (legacy_register_to_value): Declare.
6515 (legacy_value_to_register): Declare.
6516 (legacy_convert_register_p): Declare.
6517 * arch-utils.c (legacy_register_to_value): New function.
6518 (legacy_value_to_register): New function.
6519 (legacy_convert_register_p): New function.
6520
6521 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6522 (VALUE_TO_REGISTER): Define.
6523 (CONVERT_REGISTER_P): Define.
6524 * gdbarch.h, gdbarch.c: Regenerate.
6525
6526 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6527 VALUE_TO_REGISTER.
6528 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6529 CONVERT_REGISTER_P.
6530
4a1970e4
DJ
65312005-05-11 Daniel Jacobowitz <drow@mvista.com>
6532 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6533
6534 * Makefile.in: Update dependencies for valops.c.
6535 * valops.c: Include "gdb_assert.h".
6536 (typecmp): Skip THIS parameter to methods.
6537 (find_method_list): Remove static_memfuncp argument,
6538 update callers. Check for stub methods.
6539 (find_value_oload_method_list): Don't set *static_memfuncp.
6540 (find_overload_match): Don't check for stub methods. Assert
6541 that methods are not stubbed. Handle static methods.
6542 (value_find_oload_method_list): Remove static_memfuncp argument.
6543 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6544 to the argument list for static stub methods.
6545 * value.h (value_find_oload_method_list): Update prototype.
6546
b2e75d78
AC
65472002-05-11 Andrew Cagney <ac131313@redhat.com>
6548
6549 * arch-utils.h (generic_register_size): Declare.
6550 (generic_register_raw_size, generic_register_virtual_size): Delete
6551 declarations.
6552 * arch-utils.c (generic_register_raw_size): Delete.
6553 (generic_register_size): New function.
6554 (generic_register_virtual_size): Delete.
6555
6556 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6557 default generic_register_size.
6558 * gdbarch.h, gdbarch.c: Re-generate.
6559
6560 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6561 register_virtual_size.
6562 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6563 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6564
451fbdda
AC
65652002-05-11 Andrew Cagney <ac131313@redhat.com>
6566
6567 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6568 * gdbarch.h, gdbarch.c: Regenerate.
6569 * gnu-v3-abi.c: Update copyright.
6570 (vtable_address_point_offset): Update.
6571 (gnuv3_rtti_type): Update.
6572 (gnuv3_baseclass_offset): Update.
6573 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6574 (init_fetch_link_map_offsets): Update.
6575 * remote.c (get_remote_state): Update.
6576
6d2f5cea
DJ
65772002-05-11 Daniel Jacobowitz <drow@mvista.com>
6578
6579 * TODO: Remove value_headof/value_from_vtable_info comment.
6580 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6581 * values.c (value_headof, value_from_vtable_info): Delete.
6582 * value.h (value_from_vtable_info): Delete prototype.
6583
d2324da4
AC
65842002-05-11 Andrew Cagney <ac131313@redhat.com>
6585
6586 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6587 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6588 $(gdb_regex_h).
6589 (gdb_assert_h): Define.
6590 (gdb_wait_h): Define.
6591 (gdb_regex_h): Define.
6592
5c717440
DJ
65932002-05-11 Daniel Jacobowitz <drow@mvista.com>
6594
6595 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6596 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6597
6c7861b3
JT
65982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6599
6600 * nbsd-tdep.c: Fix comment.
6601
ea5bc2a6
JT
66022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6603
6604 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6605 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6606 (nbsd-tdep.o): New dependency list.
6607 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6608 nbsd-tdep.h.
6609 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6610 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6611 * nbsd-tdep.c: New file.
6612 * nbsd-tdep.h: New file.
6613 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6614 nbsd-tdep.h.
6615 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6616 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6617 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6618 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6619
b28da865
JT
66202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6621
6622 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6623 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6624 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6625 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6626 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6627 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6628
4b8ff1fa
JT
66292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6630
6631 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6632 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6633 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6634 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6635 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6636 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6637 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6638
dfe6eb1f
JT
66392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6640
6641 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6642 fetch_elfcore_registers to...
6643 * i386nbsd-tdep.c: ...here.
6644 (i386nbsd_use_struct_convention): Rename to...
6645 (i386nbsd_aout_use_struct_convention): ...this.
6646 (i386nbsd_supply_reg): New function.
6647 (i386nbsd_fill_reg): New function.
6648 (fetch_core_registers): Use i386nbsd_supply_reg.
6649 (fetch_elfcore_registers): Likewise.
6650 (_initialize_i386nbsd_tdep): New function.
6651 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6652 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6653 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6654 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6655 (i386nbsd_aout_use_struct_convention): ...this.
6656
20cb8cda
JT
66572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6658
6659 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6660 (store_inferior_registers): Use shnbsd_fill_reg.
6661 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6662 sh_nbsd_supply_register): Collapse into...
6663 (shnbsd_supply_reg): ...this.
6664 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6665 (shnbsd_fill_reg): ...this.
6666 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6667 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6668 (fetch_core_registers): Use shnbsd_supply_reg.
6669 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6670 (sh_nbsd_core_fns): Rename to...
6671 (shnbsd_core_fns): ...this.
6672 (sh_nbsd_elfcore_fns): Rename to...
6673 (shnbsd_elfcore_fns): ...this.
6674 (sh_nbsd_init_abi): Rename to...
6675 (shnbsd_init_abi): ...this.
6676 (_initialize_sh_nbsd_tdep): Rename to...
6677 (_initialize_shnbsd_tdep): ...this.
6678 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6679 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6680 sh_nbsd_fill_register): Remove prototypes.
6681 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6682
e750d25e
JT
66832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6684
6685 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6686 (i387-nat.o): Delete dependency list.
6687 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6688 (x86-64-linux-nat.o): Likewise.
6689 * i387-nat.c: Delete file, moving contents to...
6690 * i387-tdep.c: ...here.
6691 * i387-nat.h: Rename...
6692 * i387-tdep.h: ...to this.
6693 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6694 * i386-linux-nat.c: Likewise.
6695 * i386bsd-nat.c: Likewise.
6696 * i386gnu-nat.c: Likewise.
6697 * i386nbsd-nat.c: Likewise.
6698 * i386v4-nat.c: Likewise.
6699 * x86-64-linux-nat.c: Likewise.
6700 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6701 * config/i386/go32.mh (NATDEPFILES): Likewise.
6702 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6703 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6704 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6705 * config/i386/linux.mh (NATDEPFILES): Likewise.
6706 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6707 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6708 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6709 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6710
1aee598a
JT
67112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6714 (alphanbsd-nat.o): Remove dependency list.
6715 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6716 * alphanbsd-nat.c: Delete. Contents moved to...
6717 * alphanbsd-tdep.c: ...here.
6718 (_initialize_alphanbsd_tdep): Register core functions.
6719 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6720
12bcb0fe
JT
67212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6722
6723 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6724 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6725 (alphanbsd-nat.o): Likewise.
6726 (alphabsd-tdep.o): New dependency list.
6727 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6728 (fill_gregset): Use alphabsd_fill_reg.
6729 (supply_fpregset): Use alphabsd_supply_fpreg.
6730 (fill_fpregset): Use alphabsd_fill_fpreg.
6731 (fetch_inferior_registers): Use struct reg and struct fpreg
6732 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6733 and alphabsd_supply_fpreg.
6734 (store_inferior_registers): Use struct reg and struct fpreg
6735 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6736 and alphabsd_fill_fpreg.
6737 * alphabsd-tdep.c: New file.
6738 * alphabsd-tdep.h: New file.
6739 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6740 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6741 alphabsd_supply_fpreg.
6742 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6743 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6744
361d1df0
EC
67452002-05-11 Eric Christopher <echristo@redhat.com>
6746
6747 * mips-tdep.c (mips_double_register_type): Fix thinko.
6748 (mips_single_register_type): Ditto.
6749 * MAINTAINERS: Add self.
6750
92dd7cee
MK
67512002-05-11 Mark Kettenis <kettenis@gnu.org>
6752
6753 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6754 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6755 right thing on architectures with different endianness and/or
6756 integer sizes.
6757
e27da16d
JT
67582002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6759
6760 From Christian Limpach <chris@Pin.LU>
6761 * configure.in: Change sed expression which comments out
6762 NATDEPFILES to also comment out continuation lines.
6763 * configure: Regenerate.
6764
ddde02bd
EZ
67652002-05-10 Elena Zannoni <ezannoni@redhat.com>
6766
6767 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6768 big patch.
6769
1c922164
EZ
67702002-05-10 Elena Zannoni <ezannoni@redhat.com>
6771
6772 * sh-tdep.c: Include correct file.
6773
283150cd
EZ
67742002-05-10 Elena Zannoni <ezannoni@redhat.com>
6775
6776 New support for sh64-elf (sh5) target.
6777
6778 * configure.tgt: For sh64-elf target, default to sh-elf.
6779
6780 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6781 (struct gdbarch_tdep): Add new fields for new registers and ABI
6782 info.
361d1df0 6783
283150cd
EZ
6784 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6785 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6786 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6787 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6788 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6789 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6790 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6791 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6792 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6793 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6794 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6795 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6796 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6797 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6798 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6799 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6800 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6801 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6802 sign_extend, sh64_nofp_frame_init_saved_regs,
6803 sh64_init_extra_frame_info, sh64_get_saved_register,
6804 sh64_extract_struct_value_address, sh64_pop_frame,
6805 sh64_push_arguments, sh64_extract_return_value,
6806 sh64_store_return_value, sh64_show_media_regs,
6807 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6808 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6809 sh_sh64_register_virtual_type,
6810 sh_sh64_register_convert_to_virtual,
6811 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6812 sh64_register_read, sh64_pseudo_register_write,
6813 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6814 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6815 sh64_do_pseudo_register, sh_compact_do_registers_info,
6816 sh64_do_registers_info, sh_gdbarch_init): New functions.
6817
3117ed25
EZ
68182002-05-10 Elena Zannoni <ezannoni@redhat.com>
6819
6820 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6821
2654e6d4
DJ
68222002-05-10 Daniel Jacobowitz <drow@mvista.com>
6823
6824 * linespec.c (decode_line_1): Check for a double quote after
6825 a filename correctly.
6826
9ab3e532
JB
68272002-05-10 Jim Blandy <jimb@redhat.com>
6828
6829 Properly track the size of the current objfile's .debug_line section.
6830 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6831 (DWARF_LINE_SIZE): New macro.
6832 (dwarf2_build_psymtabs_hard): Record the line section's size in
6833 the partial symbol table.
6834 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6835 symbol table.
6836
126fa72d
PS
68372002-05-10 Petr Sorfa <petrs@caldera.com>
6838
6839 * ia64-tdep.c: Handle breakpoints on L instruction type
6840 in MLX instruction bundle by moving the breakpoint to
6841 the third slot (X instruction type) as L holds only data.
6842
1f077a3e
KB
68432002-05-10 Kevin Buettner <kevinb@redhat.com>
6844
6845 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6846 (process_one_symbol): Complain about discarding local symbols
6847 due to a misplaced N_LBRAC entry.
6848
8120c9d5 68492002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6850
6851 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6852 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6853 decrease the depth we are at, in the case of templates.
361d1df0 6854
67b2c998
DJ
68552002-05-09 Daniel Jacobowitz <drow@mvista.com>
6856
6857 * mips-tdep.c (mips_float_register_type): New function.
6858 (mips_double_register_type): New function.
6859 (mips_print_register): Use them.
6860 (do_fp_register_row): Likewise.
6861
fd326606
DJ
68622002-05-09 Daniel Jacobowitz <drow@mvista.com>
6863
6609d9af 6864 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6865 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6866 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6867
bef35864
MS
68682002-05-09 Michael Snyder <msnyder@redhat.com>
6869
6870 * remote-rdp.c (remote_rdp_can_run): Remove.
6871
c55a3f73
TT
68722002-05-09 Tom Tromey <tromey@redhat.com>
6873
6874 * jv-valprint.c (java_val_print): Handle `char' as a special case
6875 of TYPE_CODE_INT.
6876
b8d5e71d
MS
68772002-05-09 Michael Snyder <msnyder@redhat.com>
6878
6879 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6880 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6881 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6882 str r(0123),[sp,#nn].
361d1df0 6883 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6884 order-independent by placing it in a loop.
6885
e2cd42dd
MS
68862002-05-06 Michael Snyder <msnyder@redhat.com>
6887
6888 * stabsread.c (read_type): Add recognition for new attribute:
6889 "@V;" means that an array type is actually a vector.
6890 This is analogous to the vector flag that's been added to dwarf2.
6891
3ce1502b
MK
68922002-05-09 Mark Kettenis <kettenis@gnu.org>
6893
6894 * i386-tdep.h (i386_abi): New enum.
6895 (struct gdbarch_tdep): Replace os_ident member with abi.
6896 (i386_gdbarch_register_os_abi): New prototype.
6897 * i386-tdep.c (i386_abi_names): New array.
6898 (process_note_abi_tag_sections): Removed.
6899 (process_note_sections): New function.
6900 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6901 (struct i386_abi_handler): New struct.
6902 (i386_abi_handler_list): New variable.
6903 (i386_gdbarch_register_os_abi): New function.
6904 (i386_gdbarch_init): Adapt for the changes given above.
6905
084c156a
DJ
69062002-05-08 Daniel Jacobowitz <drow@mvista.com>
6907
6908 * gregset.h: Say "GNU/Linux".
6909
6599f021
EZ
69102002-05-08 Elena Zannoni <ezannoni@redhat.com>
6911
6912 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6913 (build_gdbtypes): Build builtin_type_v2_float.
6914 (_initialize_gdbtypes): Register new builtin type.
6915
40af4b0c
AC
69162002-05-08 Andrew Cagney <ac131313@redhat.com>
6917
6918 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6919 (clear_gdbarch_swap): New function.
6920 (initialize_non_multiarch): Call.
6921 (gdbarch_update_p): Before calling init(), swap out and clear the
6922 existing architecture.
6923 * gdbarch.c: Regenerate.
6924
4fe84f46
JT
69252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6928 alphanbsd-tdep.c.
6929
4015edd1
JT
69302002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6931
6932 * sh-nbsd-nat.c: Rename to...
6933 * shnbsd-nat.c: ...this.
6934 * sh-nbsd-tdep.c: Rename to...
6935 * shnbsd-tdep.c: ...this.
6936 * sh-nbsd-tdep.h: Rename to...
6937 * shnbsd-tdep.h: ...this.
6938 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6939 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6940
0e2bd219
RE
69412002-05-08 Richard Earnshaw <rearnsha@arm.com>
6942
6943 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6944 concatenation for command help messages.
6945
13a38d45
JT
69462002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6947
6948 * NEWS: Note new sh*-*-netbsdelf* configuration.
6949 * configure.host: Set gdb_host_cpu to sh for all sh*.
6950 (sh*-*-netbsdelf*): New host.
6951 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6952 (sh*-*-netbsdelf*): New target.
6953 * sh-nbsd-nat.c: New file.
6954 * sh-nbsd-tdep.c: New file.
6955 * sh-nbsd-tdep.h: New file.
6956 * config/sh/nbsd.mh: New file.
6957 * config/sh/nbsd.mt: New file.
6958 * config/sh/nm-nbsd.h: New file.
6959 * config/sh/tm-nbsd.h: New file.
6960
d658f924
JT
69612002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6962
6963 * sh-tdep.c (sh_osabi_names): Declare.
6964 (process_note_abi_tag_sections): New function.
6965 (get_elfosabi): Ditto.
6966 (sh_gdbarch_register_os_abi): Ditto.
6967 (sh_dump_tdep): Ditto.
6968 _initialize_sh_tdep): Use gdbarch_register to register
6969 sh_gdbarch_init and sh_dump_tdep.
6970 * config/sh/tm-sh.h (sh_osabi): Declare.
6971 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6972
848cfffb
AC
69732002-05-07 Andrew Cagney <ac131313@redhat.com>
6974
6975 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6976 (thumb_scan_prologue): Ditto.
6977 (arm_find_callers_reg): Ditto.
6978 (arm_frame_chain): Ditto.
6979 (arm_init_extra_frame_info): Ditto.
6980 (arm_frame_saved_pc): Ditto.
6981 (arm_pop_frame): Ditto.
6982 (arm_push_return_address): New function.
6983 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6984 call_dummy_location, call_dummy_breakpoint_offset_p,
6985 call_dummy_breakpoint_offset, call_dummy_p,
6986 call_dummy_stack_adjust_p, call_dummy_words,
6987 sizeof_call_dummy_words, call_dummy_start_offset,
6988 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6989 call_dummy_address, push_return_address and push_dummy_frame for
6990 generic dummy frames.
6991
e7d717c0
JT
69922002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6993
6994 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6995 size computation for alloca.
6996 (sh_fp_frame_init_saved_regs): Likewise.
6997
7bbcf283
RE
69982002-05-07 Richard Earnshaw <rearnsha@arm.com>
6999
7000 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7001 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 7002 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
7003 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7004 * remote-rdp.c (remote_rdp_fetch_register): Use
7005 ARM_MAX_REGISTER_RAW_SIZE.
7006 (remote_rdp_store_register): Likewise.
7007
4657573b
ML
70082002-05-07 Michal Ludvig <mludvig@suse.cz>
7009
361d1df0 7010 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
7011 added default labels to switch {} statements.
7012 * x86-64-tdep.c: Ditto.
7013 * x86-64-linux-nat.c: Ditto.
7014
010f3b2f
JT
70152002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7016
7017 * solib.h: Protect against multiple inclusion.
7018
debd256d
JB
70192002-05-06 Jim Blandy <jimb@redhat.com>
7020
9ab3e532
JB
7021 Add first preprocessor macro-expansion files.
7022 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7023 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7024 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7025 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7026 (COMMON_OBS): Add macrotab.o, macroexp.o.
7027 (macroexp.o, macrotab.o): New rules.
7028
debd256d
JB
7029 Separate the job of reading the line number info statement program
7030 header (...expialidocious) out into its own function.
7031 * dwarf2read.c (struct line_head, struct filenames, struct
7032 directories): Replace with...
7033 (struct line_header): New structure, containing the full
7034 contents of the statement program header, including the
7035 include directory and file name tables.
7036 (read_file_scope): If we have line number info, instead of just
7037 calling dwarf_decode_lines to do all the work, call
7038 dwarf_decode_line_header first to get a `struct line_header'
7039 containing the data in the statement program header, and then
7040 pass that to dwarf_decode_lines, which will pick up where that
7041 left off. Be sure to clean up the `struct line_header' object.
7042 (dwarf_decode_line_header, free_line_header, add_include_dir,
7043 add_file_name): New functions.
7044 (dwarf_decode_lines): Move all the code to read the statement
7045 program header into dwarf_decode_line_header. Take the line
7046 header it built as the first argument, instead of the offset to
7047 the compilation unit's line number info. Use the new `struct
7048 line_header' type instead of the old structures. No need to do
7049 cleanups here now, since we don't allocate anything.
7050 (dwarf2_statement_list_fits_in_line_number_section,
7051 dwarf2_line_header_too_long): New complaints.
7052
ac3aafc7
EZ
70532002-05-06 Elena Zannoni <ezannoni@redhat.com>
7054
7055 * gdbtypes.c (init_vector_type): New function.
7056 (build_builtin_type_vec128): Simplify the representation of SIMD
7057 registers.
7058 (build_gdbtypes): Initialize new builtin vector types.
7059 (_initialize_gdbtypes): Register new vector types with gdbarch.
7060 (builtin_type_v4_float, builtin_type_v4_int32,
7061 builtin_type_v8_int16, builtin_type_v16_int8,
7062 builtin_type_v2_int32, builtin_type_v4_int16,
7063 builtin_type_v8_int8): New (renamed) SIMD types.
7064
13e49980
MK
70652002-05-06 Mark Kettenis <kettenis@gnu.org>
7066
7067 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7068 (i387_fill_fxsave): Likewise.
7069
997b20b8
AO
70702002-05-05 Alexandre Oliva <aoliva@redhat.com>
7071
7072 * alpha-tdep.c (alpha_extract_return_value): Don't use
7073 non-constant array size in prototype.
7074
535c96ce
AC
70752002-05-04 Andrew Cagney <ac131313@redhat.com>
7076
7077 From Brian Taylor <briant at model dot com>:
7078 * ui-out.c (ui_out_field_core_addr): Use the function
7079 longest_local_hex_string_custom'to format addresses > 32 bits
7080 wide.
7081
7082 * ui-out.c (ui_out_field_core_addr): Update comment.
7083
bedfa57b
AC
70842002-05-04 Andrew Cagney <ac131313@redhat.com>
7085
7086 * stack.c (select_and_print_frame): Make static. Delete the
7087 parameter `level'.
7088 (func_command): Update call.
7089 (select_frame_command): Delete code computing the frame level.
7090 * frame.h (select_and_print_frame): Delete declaration.
7091
f621c63e
AC
70922002-05-04 Andrew Cagney <ac131313@redhat.com>
7093
7094 * sparc-tdep.c (sparc_get_saved_register): Comment why
7095 get_prev_frame call is safe.
7096
0f7d239c
AC
70972002-05-04 Andrew Cagney <ac131313@redhat.com>
7098
7099 * frame.h (select_frame): Delete level parameter.
7100 * stack.c (select_frame): Update. Use frame_relative_level to
7101 obtain the frame's level.
7102 (select_and_print_frame): Update call.
7103 (select_frame_command): Ditto.
7104 (up_silently_base): Ditto.
7105 (down_silently_base): Ditto.
7106 * ocd.c (ocd_start_remote): Ditto.
7107 * remote-rdp.c (remote_rdp_open): Ditto.
7108 * remote-mips.c (mips_initialize): Ditto.
7109 (common_open): Ditto.
7110 * remote-e7000.c (e7000_start_remote): Ditto.
7111 * m3-nat.c (select_thread): Ditto.
7112 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7113 (child_get_current_exception_event): Ditto.
7114 * varobj.c (varobj_create): Ditto.
7115 (varobj_update): Ditto.
7116 (c_value_of_root): Ditto.
7117 * tracepoint.c (finish_tfind_command): Ditto.
7118 * corelow.c (core_open): Ditto.
7119 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7120 * thread.c (info_threads_command): Ditto.
7121 (switch_to_thread): Ditto.
7122 * infrun.c (normal_stop): Ditto.
7123 (restore_selected_frame): Ditto.
7124 (restore_inferior_status): Ditto.
7125 * breakpoint.c (insert_breakpoints): Ditto.
7126 (watchpoint_check): Ditto.
7127 (bpstat_stop_status): Ditto.
7128 (do_enable_breakpoint): Ditto.
7129 * blockframe.c (flush_cached_frames): Ditto.
7130 (reinit_frame_cache): Ditto.
7131
71d6c7b1
AC
71322002-05-04 Andrew Cagney <ac131313@redhat.com>
7133
7134 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7135 maintainer.
7136
cda6c68a
JB
71372002-05-04 Jim Blandy <jimb@redhat.com>
7138
7139 * gdbtypes.c (replace_type): Doc fix.
7140
5c1c87f0
AC
71412002-05-04 Andrew Cagney <ac131313@redhat.com>
7142
7143 * valprint.c (strcat_longest): Delete commented out function.
7144 Update copyright.
7145
cd9bfe15
AC
71462002-05-04 Andrew Cagney <ac131313@redhat.com>
7147
7148 * MAINTAINERS: Mark a29k as deleted.
7149 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7150 Move new configurations to the top.
7151 * configure.tgt: Remove a29k.
7152 * config/a29k/tm-vx29k.h: Delete.
7153 * config/a29k/vx29k.mt: Delete.
7154 * config/a29k/tm-a29k.h: Delete.
7155 * config/a29k/a29k-udi.mt: Delete.
7156 * config/a29k/a29k.mt: Delete.
7157 * a29k-tdep.c: Delete.
7158 * remote-udi.c: Delete.
7159 * remote-mm.c: Delete.
7160 * remote-eb.c: Delete.
7161 * remote-adapt.c: Delete.
7162 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7163 * config/s390/s390x.mt: Ditto.
7164 * config/s390/s390.mt: Ditto.
7165 * config/sparc/sparclynx.mh: Ditto.
7166 * config/sparc/linux.mh: Ditto.
7167 * config/pa/hppaosf.mh: Ditto.
7168 * config/pa/hppabsd.mh: Ditto.
7169 * config/ns32k/nbsd.mt: Ditto.
7170 * config/mips/vr5000.mt: Ditto.
7171 * config/m68k/sun3os4.mh: Ditto.
7172 * config/m68k/nbsd.mt: Ditto.
7173 * config/m68k/m68klynx.mh: Ditto.
7174 * config/m32r/m32r.mt: Ditto.
7175 * config/i386/x86-64linux.mt: Ditto.
7176 * config/i386/nbsdelf.mt: Ditto.
7177 * config/i386/nbsd.mt: Ditto.
7178 * config/i386/i386lynx.mh: Ditto.
7179
bf0c5130
AC
71802002-05-04 Andrew Cagney <ac131313@redhat.com>
7181
7182 * target.c (debug_print_register): New function. Handle oversize
7183 registers.
7184 (debug_to_fetch_registers): Call.
7185 (debug_to_store_registers): Call.
7186
2ae1c2d2
JB
71872002-05-03 Jim Blandy <jimb@redhat.com>
7188
13a393b0
JB
7189 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7190 (read_type): Doc fix.
7191 * gdbtypes.c (replace_type): Doc fix.
7192
2ae1c2d2
JB
7193 * stabsread.c (multiply_defined_struct): New complaint.
7194 (read_struct_type): If the type we were passed isn't empty, or
7195 incomplete, don't read the new struct type into it; complain,
7196 and return the original type unchanged. Take a new `type_code'
7197 argument, which is the type code for the new type.
7198 (read_type): Rather than storing the type's type code here, pass
7199 it as an argument to read_struct_type, and let that take care of
7200 storing it. That way, we don't overwrite the original type code,
7201 so read_struct_type can use it to decide whether we're overwriting
7202 something we shouldn't.
7203 (complain_about_struct_wipeout): New function.
7204
8de9bdc4
AC
72052002-05-03 Andrew Cagney <ac131313@redhat.com>
7206
7207 * gdbarch.sh: Assert that gdbarch is non-NULL.
7208 * gdbarch.c: Regenerate.
7209
f773fdbb
JM
72102002-05-03 Jason Merrill <jason@redhat.com>
7211
7212 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7213 and return NULL.
7214
0e04a514
ML
72152002-05-03 Michal Ludvig <mludvig@suse.cz>
7216
7217 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7218 (x86_64_dwarf2gdb_regno_map_length),
7219 (x86_64_dwarf2_reg_to_regnum): Added.
7220 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7221 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7222 (_initialize_x86_64_tdep): Synced with the change above.
7223 (x86_64_skip_prologue): Reformulated message.
7224
065432a8
PM
72252002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7226
7227 * f-exp.y: Also use new prev_lexptr variable
7228 to improve error reporting. Based on Michael Snyder
7229 2002-04-24 dated patch to c-exp.y.
7230 * jv-exp.y: Likewise.
7231 * m2-exp.y: Likewise.
7232
a3162708
EZ
72332002-05-02 Elena Zannoni <ezannoni@redhat.com>
7234
7235 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7236 we are dealing with vectors.
7237
03620c38
PM
72382002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7239
7240 * config/m68k/tm-nbsd.h: Obvious fix,
7241 correct machine name.
7242
6604db2e
PM
72432002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7244
7245 * p-typeprint.c (pascal_type_print_base): Add support
7246 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7247
0906b739
PM
72482002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7249
7250 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7251 for fondamental pascal 'char' type.
7252
e2625b33
PM
72532002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7254
7255 * p-lang.h (is_pascal_string_type): Declaration changed,
7256 new sixth argument of type char ** added.
361d1df0 7257 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7258 changed. Args length_pos, length_size, string_pos, char_size
7259 can now be NULL. New argument arrayname set to the field
7260 name of the char array. Return value set to char array
7261 field index plus one.
361d1df0 7262 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7263 is_pascal_string_type function.
7264
cf17c188
AC
72652002-05-02 Andrew Cagney <cagney@redhat.com>
7266
7267 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7268 <cagney@redhat.com> change.
7269 * gdbarch.c: Regenerate.
7270
52bca491
AC
72712002-05-02 Andrew Cagney <cagney@redhat.com>
7272
7273 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7274 before probing for a new one. Detect errorenous gdbarch_init
7275 functions.
7276 * gdbarch.c: Regenerate.
7277
d5e72505
AC
72782002-05-01 Andrew Cagney <cagney@redhat.com>
7279
7280 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7281 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7282 * config/v850/tm-v850.h: Ditto. Update copyright.
7283
af566d9f
AC
72842002-04-30 Andrew Cagney <ac131313@redhat.com>
7285
7286 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7287 current_gdbarch.
7288
880d85fa
MS
72892002-04-30 Michael Snyder <msnyder@redhat.com>
7290
94c30b78
MS
7291 * arm-tdep.c: Whitespace clean-ups.
7292 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7293 should have been removed as part of 4/24 change.
7294
6f5987a6
KB
72952002-04-30 Kevin Buettner <kevinb@redhat.com>
7296
7297 * rs6000-tdep.c: Added comment describing how fpscr register
7298 numbers were chosen.
7299
1a113c93
MS
73002002-04-30 Michael Snyder <msnyder@redhat.com>
7301
7302 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7303
9a6f53fe
EZ
73042002-04-29 Elena Zannoni <ezannoni@redhat.com>
7305
7306 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7307 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7308 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7309
11ed25ac
KB
73102002-04-29 Kevin Buettner <kevinb@redhat.com>
7311
7312 From Louis Hamilton <hamilton@redhat.com>:
7313 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7314 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7315 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7316 not bfd-private xcoff data, to determine wordsize.
7317 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7318
ae232405
AC
73192002-04-29 Andrew Cagney <ac131313@redhat.com>
7320
7321 GDB 5.2 released from 5.2 branch.
7322
91fd20f7
ML
73232002-04-29 Michal Ludvig <mludvig@suse.cz>
7324
7325 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7326 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7327 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7328
2dc5091b
EZ
73292002-04-29 Elena Zannoni <ezannoni@redhat.com>
7330
7331 * rs6000-tdep.c (rs6000_extract_return_value,
7332 rs6000_store_return_value): Handle returning vectors.
7333 (rs6000_gdbarch_init): Use
7334 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7335 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7336 New function.
7337 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7338 vectors.
7339 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7340 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7341
2b9848d8
PM
73422002-04-24 Pierre Muller <ics.u-strasbg.fr>
7343
7344 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7345 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7346 with fprintf_unfiltered (gdb_stderr,...).
7347
f8d17dc5
PM
73482002-04-24 Pierre Muller <ics.u-strasbg.fr>
7349
7350 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7351 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7352 Replace fprintf (stderr,...
7353 with fprintf_unfiltered (gdb_stderr,....
7354 * remote-es.c: Likewise.
7355 * remote-os9k.c: Likewise.
7356 * remote-st.c: Likewise.
7357
2f2f1ad1
AS
73582002-04-28 Andreas Schwab <schwab@suse.de>
7359
7360 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7361 linux-proc.o and gcore.o.
7362
b6779aa2
AC
73632002-04-26 Michal Ludvig <mludvig@suse.cz>
7364
7365 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7366 code without frame pointers.
7367
7e57f5f4
AC
73682002-04-26 Andrew Cagney <ac131313@redhat.com>
7369
7370 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7371 ON_STACK is needed.
7372
2ceb85d0
BE
73732002-04-26 Ben Elliston <bje@redhat.com>
7374
7375 * target.c (do_xfer_memory): Correct reference to the new option
7376 "trust-readonly-sections".
7377
f5f8a009
EZ
73782002-04-26 Elena Zannoni <ezannoni@redhat.com>
7379
7380 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7381 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7382 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7383 vectors.
7384 (read_array_type): Record the fact that this array type is really a
7385 vector (i.e. are passed in by value).
7386
5868c862
JT
73872002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7388
7389 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7390 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7391 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7392 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7393 * alpha-linux-tdep.c: Include frame.h.
7394 (alpha_linux_sigcontext_addr): New function.
7395 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7396 alpha_linux_sigcontext_addr.
7397 * alpha-osf1-tdep.c: Include gdbcore.h.
7398 (alpha_osf1_sigcontext_addr): New function.
7399 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7400 alpha_osf1_sigcontext_addr.
7401 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7402 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7403
bfb01f37
AC
74042002-04-26 Andrew Cagney <ac131313@redhat.com>
7405
361d1df0 7406 * stack.c (selected_frame_level):
bfb01f37
AC
7407 (select_frame): Do not set selected_frame_level.
7408 * frame.h (selected_frame_level): Delete declaration.
7409
15813d3f
AC
74102002-04-26 Andrew Cagney <ac131313@redhat.com>
7411
7412 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7413 convert_from_func_ptr-addr when AIX / PowerOpen.
7414
6096c27a
AC
74152002-04-25 Andrew Cagney <ac131313@redhat.com>
7416
7417 * valops.c (hand_function_call): Call
7418 generic_save_call_dummy_addr.
7419 * frame.h (generic_save_call_dummy_addr): Declare.
7420 * blockframe.c (struct dummy_frame): Add fields call_lo and
7421 call_hi.
7422 (generic_find_dummy_frame): Check for PC in range call_lo to
7423 call_hi instead of entry_point_address.
7424 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7425 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7426 (generic_save_call_dummy_addr): New function.
7427
f510d44e
DM
74282002-04-24 David S. Miller <davem@redhat.com>
7429
7430 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7431 sparc_skip_prologue.
7432 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7433 information to find prologue when possible.
7434 (sparc_prologue_frameless_p): Call examine_prologue directly.
7435 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7436 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7437 second argument.
7438 (SKIP_PROLOGUE): Likewise.
7439
15d72a92
JT
74402002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7441
7442 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7443 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7444 indicate that the condition it was testing is always true.
7445 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7446 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7447 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7448
accc6d1f
JT
74492002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7450
7451 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7452 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7453 tdep->jb_pc and tdep->jb_elt_size.
7454 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7455 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7456 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7457 * alpha-nat.c (get_longjmp_target): Remove.
7458 (JB_ELEMENT_SIZE): Ditto.
7459 (JB_PC): Ditto.
7460 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7461 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7462 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7463 to alpha_get_longjmp_target.
7464 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7465 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7466 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7467
1bfdc549
AC
74682002-04-25 Andrew Cagney <ac131313@redhat.com>
7469
7470 * README: Update to GDB 5.2.
7471
1bd316f0
AC
74722002-04-25 Andrew Cagney <ac131313@redhat.com>
7473
7474 * gdbarch.sh (LC_ALL): Set to `c'.
7475
2e5ff58c
TR
74762002-04-25 Theodore A. Roth <troth@verinet.com>
7477
7478 * avr-tdep.c: Ran through gdb_indent.sh.
7479
e33ce519
TR
74802002-04-25 Theodore A. Roth <troth@verinet.com>
7481
7482 * MAINTAINERS: Add myself as AVR maintainer.
7483 * NEWS: Note new target avr.
7484
8818c391
TR
74852002-04-25 Theodore A. Roth <troth@verinet.com>
7486
7487 * Makefile.in: Add support for AVR target.
7488 * configure.tgt: Add support for AVR target.
7489 * avr-tdep.c: New file
7490 * config/avr/avr.mt: New file.
7491
79509c2d
TR
74922002-04-25 Theodore A. Roth <troth@verinet.com>
7493
7494 * MAINTAINERS: Add myself to write-after-approval.
7495
dac8068e
PM
74962002-04-24 Pierre Muller <ics.u-strasbg.fr>
7497
7498 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7499 with fprintf_unfiltered (gdb_stderr,....
7500
25bf3106
PM
75012002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7502
7503 Fix PR gdb/508.
7504 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7505
24467a86
PM
75062002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7507
7508 * p-exp.y: Also use new prev_lexptr variable
7509 to improve error reporting. Based on Michael Snyder
7510 2002-04-24 dated patch to c-exp.y.
7511
95b80706
JT
75122002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7513
7514 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7515 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7516 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7517 to 0.
7518 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7519 and struct value.
7520 (FUNCTION_START_OFFSET): Remove.
7521 (BREAKPOINT): Ditto.
7522
e90cc612
JT
75232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7524
7525 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7526 * NEWS: Ditto.
7527
6c72f9f9
JT
75282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7529
7530 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7531 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7532 alpha_linux_pc_in_sigtramp.
7533 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7534 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7535 alpha_osf1_pc_in_sigtramp.
7536 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7537 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7538 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7539 alphafbsd_pc_in_sigtramp.
7540 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7541 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7542 alphanbsd_pc_in_sigtramp.
7543 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7544 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7545
5e4f3379
JT
75462002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7547
7548 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7549
da8ca43d
JT
75502002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7551
7552 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7553 alphanbsd-tdep.c.
7554 (alphanbsd-nat.o): New dependency list.
7555 (alphanbsd-tdep.o): Ditto.
7556 * NEWS: Note new native NetBSD/alpha configuration.
7557 * alphanbsd-nat.c: New file.
7558 * alphanbsd-tdep.c: Ditto.
7559 * configure.host (alpha*-*-netbsd*): New host.
7560 * configure.tgt (alpha*-*-netbsd*): New target.
7561 * config/alpha/nbsd.mh: New file.
7562 * config/alpha/nbsd.mt: Ditto.
7563 * config/alpha/nm-nbsd.h: Ditto.
7564 * config/alpha/tm-nbsd.h: Ditto.
7565
36a6271d
JT
75662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7567
7568 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7569 (alpha-osf1-tdep.o): New dependency list.
7570 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7571 and skip_sigtramp_frame members.
7572 * alpha-linux-tdep.c: Include gdbcore.h.
7573 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7574 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7575 * alpha-osf1-tdep.c: New file.
7576 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7577 alpha-osf1-dep.c.
7578 (alpha_frame_past_sigtramp_frame): New function.
7579 (alpha_dynamic_sigtramp_offset): Ditto.
7580 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7581 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7582 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7583 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7584 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7585 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7586 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7587 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7588 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7589 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7590 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7591 to find_solib_trampoline_target.
7592 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7593 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7594 (SKIP_TRAMPOLINE_CODE): Remove.
7595 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7596 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7597 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7598 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7599 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7600 (PROC_SIGTRAMP_MAGIC): Ditto.
7601 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7602 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7603 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7604 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7605 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7606
2f4bc57b
JT
76072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * NEWS: Note that Alpha targets are now multi-arch.
7610
665132f9
MS
76112002-04-24 Michael Snyder <msnyder@redhat.com>
7612
7613 * parser-defs.h (prev_lexptr): New external variable.
7614 * parse.c (parse_exp_1): Set prev_lexptr to null before
7615 calling the language-specific parser.
7616 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7617 (yyerror): Use prev_lexptr in error reporting.
7618
32872fa7
DJ
76192002-04-24 Daniel Jacobowitz <drow@mvista.com>
7620
7621 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7622 * gregset.h: If FILL_FPXREGSET is defined, provide
7623 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7624 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7625 is defined, call fill_fpxregset.
7626
57e76fac
MS
76272002-04-24 Roland McGrath <roland@frob.com>
7628
7629 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7630 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7631 (supply_gregset, supply_fpregset): New functions.
7632
7633 * gnu-nat.c (gnu_find_memory_regions): New function.
7634 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7635 (gnu_xfer_memory): Add a cast.
7636
f43845b3
MS
76372002-04-24 Michael Snyder <msnyder@redhat.com>
7638
361d1df0 7639 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7640 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7641 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7642 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7643 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7644 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7645
a0abec03
AC
7646Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7647
7648 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7649 NUM_PSEUDO_REGS can be used.
7650
d7bd68ca
AC
76512002-04-24 Andrew Cagney <ac131313@redhat.com>
7652
7653 * arch-utils.h: Update copyright.
7654
7655 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7656 * gdbarch.h, gdbarch.c: Re-generate.
7657
7658 * inferior.h (IN_SIGTRAMP): Delete definition.
7659 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7660 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7661
7662 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7663 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7664 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7665 (find_proc_framesize): Ditto.
7666 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7667 (alpha_init_extra_frame_info): Ditto.
7668 * infrun.c (handle_inferior_event): Ditto.
7669 (handle_inferior_event): Ditto.
7670 (check_sigtramp2): Ditto.
7671 * blockframe.c (create_new_frame): Ditto.
7672 (get_prev_frame): Ditto.
7673 * ppc-linux-tdep.c: Update comments.
7674 * i386-linux-tdep.c: Update comments.
7675 * breakpoint.c (bpstat_what): Update comment.
7676
4867e41e
DM
76772002-04-24 David S. Miller <davem@redhat.com>
7678
21d83aa5
DM
7679 * i960-tdep.c (register_in_window_p): New function.
7680 (i960_find_saved_register): Use it instead of
7681 REGISTER_IN_WINDOW_P.
7682 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7683
4867e41e
DM
7684 * symtab.h (find_stab_function_addr): Kill extern.
7685 * minsyms.c (find_stab_function_addr): Remove from here...
7686 * dbxread.c: ... to here, and mark it static.
7687
69cdf6a2
DM
76882002-04-20 David S. Miller <davem@redhat.com>
7689
7690 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7691 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7692
5a595886
DM
76932002-04-21 David S. Miller <davem@redhat.com>
7694
7695 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7696 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7697 (vx_write_register): Likewise.
7698
1da1a192
JB
76992002-04-23 J. Brobecker <brobecker@gnat.com>
7700
7701 * source.c (is_regular_file): New function.
7702 (openp): Check wether file to open is a regular file
7703 to avoid opening directories.
7704
baa6f10b
JT
77052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7706
7707 * findvar.c (extract_signed_integer): Cast printf argument
7708 to suppress format warning.
7709 (extract_unsigned_integer): Likewise.
7710 * infcmd.c (registers_info): Likewise.
7711 * top.c (get_prompt_1): Likewise.
7712 * valops.c (value_assign): Likewise.
7713 * valprint.c (print_decimal): Likewise.
7714
b2c4da81
L
77152002-04-22 H.J. Lu (hjl@gnu.org)
7716
7717 * c-exp.y (typebase): Support
361d1df0 7718
b2c4da81
L
7719 [long|long long|short] [signed|unsigned] [int|]
7720
7721 and
7722
7723 signed [long|long long|short] int
7724
f267bd6a
JT
77252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7726
7727 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7728 and vax-tdep.h.
7729 * vax-tdep.h: New file.
7730 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7731 Make several routines static.
7732 (vax_get_saved_register): New function.
7733 (vax_gdbarch_init): New function.
7734 (_initialize_vax_tdep): Register vax_gdbarch_init.
7735 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7736 Remove macros now under the control of gdbarch.
7737
da3c6d4a
MS
77382002-04-22 Michael Snyder <msnyder@redhat.com>
7739
11d3b27d
MS
7740 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7741 Some whitespace and coding standards tweaks.
da3c6d4a 7742
a33f7558
JT
77432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7744
7745 * vax-tdep.c: Include regcache.h.
7746 (vax_call_dummy_words): New.
7747 (sizeof_vax_call_dummy_words): New.
7748 (vax_fix_call_dummy): New function.
7749 (vax_saved_pc_after_call): Ditto.
7750 * config/vax/tm-vax.h: Don't include regcache.h.
7751 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7752 (CALL_DUMMY): Remove.
7753 (CALL_DUMMY_WORDS): Define.
7754 (SIZEOF_CALL_DUMMY_WORDS): Define.
7755 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7756
47a73475
MS
77572002-04-18 Michael Snyder <msnyder@redhat.com>
7758
7759 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7760
52efde73
JT
77612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7762
7763 * vax-tdep.c (vax_frame_chain): New function.
7764 (vax_push_dummy_frame): Ditto.
7765 (vax_pop_frame): Ditto.
7766 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7767 (FRAMELESS_FUNCTION_INVOCATION): Use
7768 generic_frameless_function_invocation_not.
7769 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7770 (POP_FRAME): Use vax_pop_frame.
7771
ea74468c
JT
77722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7773
7774 * vax-tdep.c (vax_store_struct_return): New function.
7775 (vax_extract_return_value): Ditto.
7776 (vax_store_return_value): Ditto.
7777 (vax_extract_struct_value_address): Ditto.
7778 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7779 vax_store_struct_return.
7780 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7781 (STORE_RETURN_VALUE): Use vax_store_return_value.
7782 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7783
5516aa92
JT
77842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7785
7786 * vax-tdep.c (vax_frame_saved_pc): New function.
7787 (vax_frame_args_address_correct): Ditto.
7788 (vax_frame_args_address): Ditto.
7789 (vax_frame_locals_address): Ditto.
7790 (vax_frame_num_args): Move code to be in proximity to
7791 other frame-related functions.
7792 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7793 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7794 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7795 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7796 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7797
36af0b35
L
77982002-04-22 H.J. Lu (hjl@gnu.org)
7799
7800 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7801 includedir.
7802
ab62c900
JT
78032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7804
7805 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7806 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7807 (FRAME_INIT_SAVED_REGS): New macro.
7808
7232b100
JT
78092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7812
b70d2aee
JT
78132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7814
7815 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7816 where needed.
7817 (fetch_osf_core_registers): Likewise.
7818 (supply_gregset): Likewise.
7819
a0e8a2d1 78202002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7821
a0e8a2d1
JB
7822 * symfile.h (get_section_index): Define.
7823 * symfile.c (get_section_index): New function.
7824 * mdebugread.c (SC_IS_SBSS): New macro.
7825 (SC_IS_BSS): Return true for the scBss storage class only, as
7826 the scSBss storage class refers to the .sbss section.
7827 (parse_partial_symbols): Discard the symbols which associated
7828 section does not exist.
7829 Make sure to use the .sbss section index for symbols which
7830 storage class is scBss, rather than using the .bss section index.
7831
51eb8b08
JT
78322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7833
7834 * vax-tdep.c: Update copyright years.
7835 (vax_register_name): New function.
7836 (vax_register_byte): Ditto.
7837 (vax_register_raw_size): Ditto.
7838 (vax_register_virtual_size): Ditto.
7839 (vax_register_virtual_type): Ditto.
7840 * config/vax/tm-vax.h: Update copyright years.
7841 (REGISTER_NAMES): Remove.
7842 (REGISTER_NAME): Define.
7843 (REGISTER_BYTE): Use vax_register_byte.
7844 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7845 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7846 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7847
6cc1c0a8
AC
78482002-04-21 Andrew Cagney <ac131313@redhat.com>
7849
7850 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7851 declaration
7852 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7853
9319a2fe
DM
78542002-04-21 David S. Miller <davem@redhat.com>
7855
7856 * arch-utils.c (generic_prologue_frameless_p): Kill
7857 SKIP_PROLOGUE_FRAMELESS_P code.
7858 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7859 references.
7860 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7861 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7862 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7863 references.
7864 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7865 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7866 (sparc_gdbarch_init): Pass it to
7867 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7868
e9ed6d01
JT
78692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7870
7871 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7872 (alphabsd-nat.o): New dependency list.
7873
36012033
JT
78742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7875
7876 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7877 alphafbsd-tdep.c.
7878 (alpha-linux-tdep.o): New dependency list.
7879 (alphafbsd-tdep.o): Likewise.
7880
3379287a
JT
78812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7882
7883 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7884 to here...
7885 * alpha-tdep.c: ...from here.
7886 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7887
4bcbd6cb
JT
78882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7889
7890 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7891 prototype from here...
7892 * alpha-tdep.h: ...to here.
7893
b31da25e
AC
78942002-04-21 Andrew Cagney <ac131313@redhat.com>
7895
7896 * frame.h (selected_frame_level): Document as deprecated.
7897 (frame_relative_level): Declare.
7898 * stack.c (frame_relative_level): New function.
7899 (selected_frame_level): Document as deprecated.
7900 (select_frame): Do not set the selected_frame_level.
7901
7902 * stack.c (frame_info, record_selected_frame): Update.
7903 (frame_command, current_frame_command): Update.
7904 (up_silently_base, up_command, down_silently_base): Update.
7905 (down_command): Update.
7906 * inflow.c (kill_command): Update.
7907 * tracepoint.c (finish_tfind_command): Update.
7908 * corelow.c (core_open): Update.
7909 * thread.c (info_threads_command): Update.
7910 (do_captured_thread_select): Update.
7911 * infcmd.c (finish_command): Update.
7912 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7913
9c1d6fe5
JT
79142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7915
7916 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7917
ab89facf
AC
79182002-04-21 Andrew Cagney <ac131313@redhat.com>
7919
7920 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7921 type const.
7922
82a4efa1
JT
79232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7924
7925 * alphafbsd-tdep.c: Update copyright years. Include
7926 alpha-tdep.h.
7927 (alphafbsd_use_struct_convention): Make static.
7928 (alphafbsd_init_abi): New function.
7929 (_initialize_alphafbsd_tdep): New function.
7930 * config/alpha/tm-fbsd.h: Update copyright years.
7931 (USE_STRUCT_CONVENTION): Remove.
7932
44dffaac
JT
79332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7934
7935 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7936 an Alpha ABI variant.
7937 (alpha_abi_handler_list): Declare.
7938 (alpha_gdbarch_register_os_abi): New function.
7939 (alpha_gdbarch_init): Give registered ABI variant handlers a
7940 chance to tweak the gdbarch once we have set up defaults.
7941 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7942
65585be4
JT
79432002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7944
7945 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7946 to standard_coerce_float_to_double.
7947 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7948
d9b023cc
JT
79492002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7950
7951 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7952 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7953 from gdbarch_tdep rather than a constant.
7954 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7955 the default text address for all Alpha Unix ABIs.
7956 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7957 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7958
dc129d82
JT
79592002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7960
7961 * alpha-tdep.h: New file. Includes several Alpha target constants
7962 taken from...
7963 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7964 let gdbarch deal with.
7965 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7966 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7967 to dependency list.
7968 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7969 Alpha target register names.
7970 * alphabsd-nat.c: Likewise.
7971 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7972 Alpha target register names. Make serveral routines static.
7973 (alpha_get_saved_register): New function.
7974 (alpha_abi_names): New.
7975 (process_note_abi_tag_sections): New function.
7976 (get_elfosabi): New function.
7977 (alpha_gdbarch_init): New function.
7978 (alpha_dump_tdep): New function.
7979 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7980
d49d1e0a
AC
79812002-04-21 Andrew Cagney <ac131313@redhat.com>
7982
7983 * frame.c (find_saved_register): Delete #ifdef
7984 HAVE_REGISTER_WINDOWS code.
7985 * config/sparc/tm-sparc.h: Update comments.
7986 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7987
92e8c9ed
AC
79882002-04-21 Andrew Cagney <ac131313@redhat.com>
7989
7990 * i960-tdep.c (i960_find_saved_register): New function.
7991 (i960_get_saved_register): New function.
7992 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7993 (i960_get_saved_register): Declare.
7994 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7995
e1925118
DM
79962002-04-20 David S. Miller <davem@redhat.com>
7997
7998 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7999
29673b29
AC
80002002-04-20 Andrew Cagney <ac131313@redhat.com>
8001
8002 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8003 instead of NUM_PSEUDO_REGS.
8004
6c86dcd5
DM
80052002-04-20 David S. Miller <davem@redhat.com>
8006
8007 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8008 GDB_MULTI_ARCH_PARTIAL
8009 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8010 define, let tm-sp64.h do it.
8011
aa40ec90
JT
80122002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8013
8014 * frame.c (find_saved_register): Avoid a NULL pointer
8015 dereference and actually walk the frame list.
8016
0f79675b
AC
80172002-04-20 Andrew Cagney <ac131313@redhat.com>
8018
8019 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8020 sorted in most most-recent-used order. Document.
8021 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8022
f91305dd 80232002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
8024
8025 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8026 instead of ->prev.
8027 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8028 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8029 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8030 instead of ->prev.
8031
73d322b1
EZ
80322002-04-19 Elena Zannoni <ezannoni@redhat.com>
8033
8034 Fix PR gdb/471.
8035 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8036 (build_builtin_type_vec128): Ditto.
8037 (append_composite_type_field): Fix calculation of type length in
8038 union case.
8039
ccd9a834
EZ
80402002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8041
8042 * config/djgpp/README: Update.
8043
8044 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8045 compiler warnings.
8046
a57f9e49
JT
80472002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8048
8049 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8050 (alpha_setup_arbitrary_frame): ...to this.
8051 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8052 for alpha_setup_arbitrary_frame.
8053
f4f9705a
AC
80542002-04-18 Andrew Cagney <cagney@redhat.com>
8055
8056 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8057 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8058
f4f9705a
AC
8059 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8060 * target.h (memory_breakpoint_from_pc): Update declaration.
8061 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8062
8063 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8064 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8065 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8066 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8067 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8068 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8069 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8070 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8071 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8072 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8073 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8074 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8075
8076 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8077 const pointer.
8078 * monitor.c (monitor_insert_breakpoint): Ditto.
8079 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8080
8081 * config/mcore/tm-mcore.h: Update copyright.
8082 * mem-break.c: Ditto.
8083 * xstormy16-tdep.c: Ditto.
8084
29f319b8
PM
80852002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8086
8087 * p-exp.y: Add precedence rule for '^' token.
8088 This removes the shift/reduce conflicts.
8089 Remove the comment concerning these shift/reduce conflicts.
8090
ebeac11a
EZ
80912002-04-18 Elena Zannoni <ezannoni@redhat.com>
8092
8093 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8094 (registers_powerpc_nofp): New register set for processors
8095 without floating point unit.
8096
27c31547
DM
80972002-04-18 David S. Miller <davem@redhat.com>
8098
8099 * MAINTAINERS: Add myself to write-after-approval.
8100
47a73475
MS
81012002-04-17 Michael Snyder <msnyder@redhat.com>
8102
8103 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8104
953836b2
AC
81052002-04-17 Andrew Cagney <ac131313@redhat.com>
8106
8107 * rs6000-tdep.c (frame_initial_stack_address): Use
8108 frame_register_read to read the alloca_reg.
8109
8b0d4340
AC
81102002-04-17 Andrew Cagney <ac131313@redhat.com>
8111
8112 * frame.c (find_saved_register): Find saved registers in the next
8113 not prev frame.
8114 Fix PR gdb/365.
8115
d8864532
AC
81162002-04-17 Andrew Cagney <ac131313@redhat.com>
8117
8118 * gdbarch.sh (LANG): Set to ``c''.
8119
36cc83a3 81202002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8121
36cc83a3 8122 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8123
2f4150cc 81242002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8125
8126 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8127 Update copyright.
8128
628703c6 8129 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8130 Also fix PR gdb/391.
361d1df0 8131
56157b4a
AC
81322002-04-14 Andrew Cagney <ac131313@redhat.com>
8133
8134 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8135 * aclocal.m4, configure: Re-generate.
8136 Fix PR gdb/391.
361d1df0 8137
6d1e3329
EZ
81382002-04-14 Elena Zannoni <ezannoni@redhat.com>
8139
8140 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8141 instead of tm_print_insn.
8142
cb06fa07
EZ
81432002-04-14 Elena Zannoni <ezannoni@redhat.com>
8144
8145 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8146
f208ba17
AC
81472002-04-14 Andrew Cagney <ac131313@redhat.com>
8148
8149 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8150 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8151 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8152
20f01a46
DH
81532002-04-12 Don Howard <dhoward@redhat.com>
8154
8155 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8156 max_user_call_depth.
8157 (init_cmd_lists): Initialize the new value;
8158 * cli/cli-script.c (execute_user_command): Limit the call depth of
8159 user defined commands. This avoids a core-dump when user commands
8160 are infinitly recursive.
8161
a88376a3
KB
81622002-04-12 Kevin Buettner <kevinb@redhat.com>
8163
8164 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8165 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8166 from tdep struct instead of DEFAULT_LR_SAVE.
8167 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8168 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8169 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8170
f2172603
MS
81712002-04-12 Michael Snyder <msnyder@redhat.com>
8172
694f61fb 8173 * Remote.c: Spelling fix.
20fe79c8
MS
8174 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8175 If no symbol found for "sbrk", try "_sbrk".
8176 (make_output_phdrs): Use bfd_section_name.
8177 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8178 * eval.c: Indentation fix-ups.
169a7369
MS
8179 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8180 in case it gets applied to an address that is already
8181 in the instruction space.
de74f71f
MS
8182 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8183 * symfile.c: Fix indentation, long lines.
f2172603
MS
8184 * source.c: White space fix-up.
8185
cda5a58a
AC
81862002-04-12 Andrew Cagney <cagney@redhat.com>
8187
8188 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8189 * frame.c (frame_register_read): New function. Return non-zero on
8190 success.
8191 (read_relative_register_raw_bytes_for_frame): Delete.
8192 (read_relative_register_raw_bytes): Delete.
8193 * frame.h (frame_register_read): Declare.
8194 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8195 * sh-tdep.c: Ditto.
8196 * infcmd.c (do_registers_info): Ditto.
8197 * hppa-tdep.c: Ditto.
8198 * rs6000-tdep.c: Ditto.
8199 * h8500-tdep.c: Ditto.
8200 * mips-tdep.c: Ditto.
8201 * h8300-tdep.c: Ditto.
8202 * z8k-tdep.c: Ditto.
8203
2ea5f656
KB
82042002-04-12 Kevin Buettner <kevinb@redhat.com>
8205
8206 From Jimi X <jimix@watson.ibm.com>:
8207 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8208 64-bit SysV ABI.
8209
27b15785
KB
82102002-04-12 Kevin Buettner <kevinb@redhat.com>
8211
8212 From Jimi X <jimix@watson.ibm.com>:
8213 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8214 bfd info.
8215
5d57ee30
KB
82162002-04-12 Kevin Buettner <kevinb@redhat.com>
8217
8218 From Jimi X <jimix@watson.ibm.com>:
8219 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8220 register sets for these processor variants.
8221
bc1e36ca
DJ
82222002-04-11 Daniel Jacobowitz <drow@mvista.com>
8223
bc1e36ca
DJ
8224 * regformats/reg-ppc.dat: Support FPSCR.
8225
e3f36dbd
KB
82262002-04-11 Kevin Buettner <kevinb@redhat.com>
8227
8228 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8229 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8230 Add fpscr as an invalid/unfetchable register.
8231 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8232 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8233 (fill_fpregset): Add support for register fpscr.
8234 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8235 (fill_gregset): Account for the fact that register ``mq'' might
8236 not exist.
8237 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8238 (registers_power): Add fpscr to register set at slot 71.
8239 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8240 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8241
943c9c25
MS
82422002-04-11 Michael Snyder <msnyder@redhat.com>
8243
8244 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8245 * configure: Regenerate.
8246 * config.in: Regenerate.
8247 * acconfig.h: Add define for _SYSCALL32.
8248 * core-sol2.c: Remove #define _SYSCALL32.
8249 * solib-legacy.c: Remove #define _SYSCALL32.
8250
d8c0a2e7
AC
82512002-04-10 Andrew Cagney <ac131313@redhat.com>
8252
8253 * stack.c (select_frame): Cleanup internal error message, do not
8254 use %p.
8255
7cc19214
AC
82562002-04-10 Andrew Cagney <ac131313@redhat.com>
8257
8258 * stack.c (select_frame): Check that selected_frame and the
8259 specified level are as expected.
8260 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8261 Update copyright.
8262 * frame.h (struct frame_info): Add field `level'. Update
8263 copyright.
8264 Work-in-progress PR gdb/464.
8265
67a2b77e
AC
82662002-04-10 Andrew Cagney <ac131313@redhat.com>
8267
8268 * maint.c (maint_print_section_info): Rename print_section_info.
8269 (print_bfd_section_info, print_objfile_section_info): Update.
8270 * inferior.h (struct gdbarch): Add opaque declaration.
8271 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8272 * gdbarch.h: Regenerate.
8273
8cfda98c
ML
82742002-04-10 Michal Ludvig <mludvig@suse.cz>
8275
8276 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8277 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8278 (kernel_u_size): Added.
8279 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8280 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8281
ca439ad2 82822002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8283
ca439ad2
JI
8284 * valarith.c (find_size_for_pointer_math): New function, either returns
8285 the size for a pointer's target, returns 1 for void *, or errors for
8286 incomplete types.
8287 (value_add, value_sub): use find_size_for_pointer_math.
8288
2f2893d9
DJ
82892002-04-09 Daniel Jacobowitz <drow@mvista.com>
8290
8291 * linux-low.c (linux_look_up_symbols): New hook.
8292 (linux_target_ops): Add linux_look_up_symbols.
8293 * remote-utils.c (decode_address): New function.
8294 (look_up_one_symbol): New function.
8295 * server.c (handle_query): Call target look_up_symbols hook.
8296 * server.h (look_up_one_symbol): Add prototype.
8297 * target.h (struct target_ops): Add look_up_symbols hook.
8298
96cb11df
AC
82992002-04-09 Andrew Cagney <ac131313@redhat.com>
8300
8301 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8302 override FP_REGNUM with frame->fp. Update copyright.
8303 * parse.c (num_std_regs, std_regs): Delete.
8304 (target_map_name_to_register): Do not search std_regs. Update
8305 function description.
8306 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8307 declarations. Update copyright.
8308 Fix PR gdb/251.
361d1df0 8309
97658e92
DJ
83102002-04-09 Daniel Jacobowitz <drow@mvista.com>
8311
8312 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8313 after the last symbol in a block.
8314
6044e3eb
PM
83152002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8316
8317 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8318 is non zero as a found symbol.
8319
0406ec40
AC
83202002-04-08 Andrew Cagney <ac131313@redhat.com>
8321
8322 * findvar.c: Include "builtin-regs.h".
8323 (value_of_register): Call value_of_builtin_reg when applicable.
8324 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8325 (target_map_name_to_register): Call
8326 builtin_reg_map_name_to_regnum.
8327 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8328 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8329 (builtin_regs_h): Define.
8330 (builtin-regs.o): New target.
8331 (findvar.o): Add $(builtin_regs_h).
8332 * builtin-regs.c, builtin-regs.h: New files.
8333 * std-regs.c: New file.
8334 Partial fix for PR gdb/251.
8335
56a6dfb9
KB
83362002-04-08 Kevin Buettner <kevinb@redhat.com>
8337
8338 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8339 it's no longer required.
8340
3a808432
AC
83412002-04-08 Andrew Cagney <ac131313@redhat.com>
8342
8343 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8344
7c40d541
KB
83452002-04-08 Kevin Buettner <kevinb@redhat.com>
8346
8347 From Jimi X <jimix@watson.ibm.com>:
8348 * rs6000-tdep.c (rs6000_software_single_step): Use
8349 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8350 and size. Use target_insert_breakpoint() and
8351 target_remove_breakpoint() to insert and remove breakpoints
8352 instead of explicit memory reads and writes.
8353
cc9836a8
KB
83542002-04-08 Kevin Buettner <kevinb@redhat.com>
8355
8356 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8357 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8358 ELF_OBJECT_FORMAT ifdef.
8359
7495d1dc
KB
83602002-04-08 Kevin Buettner <kevinb@redhat.com>
8361
8362 From Jimi X <jimix@watson.ibm.com>:
8363 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8364
4288e836
KB
83652002-04-08 Kevin Buettner <kevinb@redhat.com>
8366
8367 From Jimi X <jimix@watson.ibm.com>:
8368 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8369 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8370
a4e4e501
MK
83712002-04-07 Mark Kettenis <kettenis@gnu.org>
8372
8373 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8374 s/asprintf/xasprintf/.
8375 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8376
006defba
AC
83772002-04-07 Andrew Cagney <ac131313@redhat.com>
8378
8379 I believe Jeff Law denies responsability for this one:
8380 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8381 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8382 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8383 Work-around for PR gdb/366.
8384
7aa83cac
EZ
83852002-04-07 Elena Zannoni <ezannoni@redhat.com>
8386
8387 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8388 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8389 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8390
cf1fcca1
EZ
83912002-04-07 Elena Zannoni <ezannoni@redhat.com>
8392
8393 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8394 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8395 information.
8396
3f289e6f
AC
83972002-04-07 Andrew Cagney <ac131313@redhat.com>
8398
8399 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8400 maintainer.
8401
129188f6
AC
84022002-04-07 Andrew Cagney <ac131313@redhat.com>
8403
8404 * README (Reporting Bugs in GDB): Document the bug web page as the
8405 prefered way of submitting bugs.
8406 Fix PR gdb/402.
8407
1200cd6e
AC
84082002-04-06 Andrew Cagney <ac131313@redhat.com>
8409
8410 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8411 -1. Update comment.
8412 * gdbarch.h, gdbarch.c: Re-generate.
8413
2853c33c
AS
84142002-04-07 Andreas Schwab <schwab@suse.de>
8415
8416 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8417 buffer to regcache_collect.
8418
c2169756
AC
84192002-04-06 Andrew Cagney <ac131313@redhat.com>
8420
8421 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8422 * gdbarch.c, gdbarch.h: Re-generate.
8423
25f1b008
AC
84242002-04-06 Andrew Cagney <ac131313@redhat.com>
8425
8426 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8427 declaration. Fix -Werror.
8428
59263426
DJ
84292002-04-05 Daniel Jacobowitz <drow@mvista.com>
8430
8431 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8432 * gdbarch.c: Regenerate.
8433
f5db4da3
MS
84342002-04-05 Michael Snyder <msnyder@redhat.com>
8435
80f8a6eb
MS
8436 * breakpoint.c (clear_command): Rewrite middle section to
8437 combine two loops with identical control conditions.
8438 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8439 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8440
ad3dcc5c
L
84412002-04-05 H.J. Lu (hjl@gnu.org)
8442
8443 * solib-svr4.c (bkpt_names): Add "__start".
8444
f32e7a74
AC
84452002-04-04 Andrew Cagney <ac131313@redhat.com>
8446
8447 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8448 as test for 64 bit target.
8449
8227c0ff
AC
84502002-04-05 Andrew Cagney <ac131313@redhat.com>
8451
8452 * h8500-tdep.c (h8500_write_fp): Delete function.
8453 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8454 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8455 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8457 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8458 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8459 (s390_write_fp):
8460 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8461 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8462 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8463 (d10v_write_fp): Delete function.
8464 * inferior.h (write_fp, generic_target_write_fp): Delete
8465 declarations.
8466 * regcache.c (generic_target_write_fp): Delete function.
8467 (write_fp): Delete function.
8468 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8469 * gdbarch.h, gdbarch.c: Regenerate.
8470 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8471 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8472 (sparc64_write_fp): Delete declaration.
8473 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8474 (h8500_write_fp): Delete declaration.
8475
2757dd86
AC
84762002-04-04 Andrew Cagney <ac131313@redhat.com>
8477
8478 * sparc-tdep.c (sparc64_write_fp): Delete.
8479 (sparc_push_dummy_frame): Replace write_fp call with code to store
8480 the FP directly.
8481 (sparc_gdbarch_init): Do not initialize write_fp.
8482
c69255e1
KB
84832002-04-05 Kevin Buettner <kevinb@redhat.com>
8484
8485 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8486 clause.
8487
ae767bfb
JB
84882002-03-29 Jim Blandy <jimb@redhat.com>
8489
8490 * stack.c (get_selected_block): Add new argument `addr_in_block',
8491 used to return the exact code address we used to select the block,
8492 not just the block.
8493 * blockframe.c (get_frame_block, get_current_block): Same.
8494 * frame.h (get_frame_block, get_current_block,
8495 get_selected_block): Update declarations.
8496 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8497 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8498
84d2ac95
MS
84992002-04-05 Michael Snyder <msnyder@redhat.com>
8500
8501 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8502 warning message.
8503
596aa3bf
JB
85042002-04-05 J. Brobecker <brobecker@gnat.com>
8505
8506 * utils.c (xfullpath): New function.
8507 * defs.h (xfullpath): Add declaration.
8508 * source.c (openp): Use xfullpath in place of gdb_realpath to
8509 avoid resolving the basename part of filenames when the
8510 associated file is a symbolic link. This fixes a potential
8511 inconsistency between the filenames known to GDB and the
8512 filenames it prints in the annotations.
8513 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8514 to be able to match a filename with either the real filename, or
8515 the name of any symbolic link to this file.
8516 (lookup_partial_symtab): Ditto.
8517
c02f5703
MS
85182002-04-04 Michael Snyder <msnyder@redhat.com>
8519
8520 * breakpoint.c: Add support for hardware breakpoints in overlays.
8521 (overlay_events_enabled): New state variable.
8522 (insert_breakpoints): Use overlay_events_enabled to decide
8523 whether to attempt to set a breakpoint at the overlay load addr.
8524 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8525 (remove_breakpoint): Use overlay_events_enabled to decide
8526 whether breakpoints need to be removed from overlay load addr.
8527 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8528 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8529 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8530 disable_overlay_breakpoints): Update overlay_events_enabled.
8531
5fb290d7
DJ
85322002-04-04 Daniel Jacobowitz <drow@mvista.com>
8533
8534 * dwarf2read.c (struct function_range): New.
8535 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8536 (check_cu_functions): New.
8537 (read_file_scope): Initialize global function lists.
8538 Call dwarf_decode_line after processing children.
8539 (read_func_scope): Add to global function list.
8540 (dwarf_decode_lines): Call check_cu_functions everywhere
8541 record_line is called. Call record_line with a linenumber
8542 of 0 to mark sequence ends.
8543
7b3fabf0
ML
85442002-04-04 Michal Ludvig <mludvig@suse.cz>
8545
361d1df0 8546 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8547 change sync with glibc.
8548
bce58c09
JB
85492002-04-03 Jim Blandy <jimb@redhat.com>
8550
8551 * configure.in: Call AC_C_INLINE.
8552 * configure: Regenerated.
361d1df0 8553
2fccf04a
DJ
85542002-04-01 Daniel Jacobowitz <drow@mvista.com>
8555
8556 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8557 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8558
2d1bfe2e
MK
85592002-03-31 Mark Kettenis <kettenis@gnu.org>
8560
a5941fbf
MK
8561 * NEWS: Mention gcore support on FreeBSD/i386.
8562
a90cd31d
MK
8563 * fbsd-proc.c: New file.
8564 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8565 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8566
2d1bfe2e
MK
8567 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8568 while statement.
8569
9eb6e5a1
JB
85702002-03-29 Jim Blandy <jimb@redhat.com>
8571
8572 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8573 unescaped newlines in string literals, but newer ones don't. So
8574 escape them.
8575
f02df580
MS
85762002-03-26 Michael Snyder <msnyder@redhat.com>
8577 Andrew Cagney <cagney@redhat.com>
8578
361d1df0 8579 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8580 restore file to memory.
8581 * cli/cli-dump.h: New file.
8582 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8583 * NEWS: Mention new commands.
f02df580 8584
109f874e
MS
85852002-03-28 Michael Snyder <msnyder@redhat.com>
8586
8587 * symfile.c (symbol_file_add): Move test for null symbols to later.
8588
520f6ade
AC
85892002-03-27 Andrew Cagney <ac131313@redhat.com>
8590
8591 From veksler at il.ibm.com:
8592 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8593 the xstrduped original path.
8594 Fix PR gdb/417.
8595
d4654627
MS
85962002-03-27 Michael Snyder <msnyder@redhat.com>
8597
8598 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8599 * infcmd.c (_initialize_infcmd): Ditto.
8600 * language.c (_initialize_language): Ditto.
8601 * symfile.c (_initialize_symfile): Ditto.
8602 * top.c (_init_main): Ditto.
8603 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8604
6be8bc0c
EZ
86052002-03-27 Elena Zannoni <ezannoni@redhat.com>
8606
8607 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8608 vector registers handling.
8609 (skip_prologue): Handle new AltiVec instructions. Fill in new
8610 fields of frame data.
8611 (frame_get_saved_regs): Fill in information for AltiVec registers.
8612
12af6855
JB
86132002-03-27 Jim Blandy <jimb@redhat.com>
8614
8615 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8616 a function; leave this macro here to invoke that function.
8617 (symbol_init_mangled_name): Declaration for that function.
8618 * symtab.c (symbol_init_mangled_name): New function.
8619
dc672865
AC
86202002-03-27 Andrew Cagney <ac131313@redhat.com>
8621
8622 * valarith.c: Replace strerror with safe_strerror.
8623 * tracepoint.c: Ditto.
8624 * lin-lwp.c: Ditto.
8625 * go32-nat.c: Ditto.
8626 * inflow.c: Ditto.
8627 * gnu-nat.c: Ditto.
8628
d96429cd
AS
86292002-03-27 Andreas Schwab <schwab@suse.de>
8630
8631 * event-top.c (command_line_handler): Remove useless if.
8632
7e336ba1
AJ
86332002-03-27 Andreas Jaeger <aj@suse.de>
8634
8635 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8636 comment.
8637
de220d0f
ML
86382002-03-27 Michal Ludvig <mludvig@suse.cz>
8639
8640 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8641 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8642 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8643 (x86_64_linux_dr_get_status, supply_gregset),
8644 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8645 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8646 (x86_64_register_info_table): Add.
8647 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8648 (x86_64_register_raw_size, x86_64_register_virtual_type),
8649 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8650 general x86_64_register_info_table.
8651 (i386_gdbarch_init): gdbarch_register_bytes is now set
8652 dynamicaly during initialization.
8653 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8654 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8655
0e98d0a7
DJ
86562002-03-27 Daniel Jacobowitz <drow@mvista.com>
8657
8658 * gdbserver/server.c (main): Call target_signal_to_host_p
8659 and target_signal_to_host on signals received from the remote.
8660 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8661 target_signal_from_host on signals sent to the remote.
8662 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8663 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8664
3130066b
DJ
86652002-03-27 Daniel Jacobowitz <drow@mvista.com>
8666
8667 * signals/signals.c: Include "server.h" in gdbserver build.
8668 (target_signal_from_name): Don't use STREQ.
8669 (_initialize_signals): Likewise. Don't include function in
8670 gdbserver build.
8671
9aedf4f4
DJ
86722002-03-27 Daniel Jacobowitz <drow@mvista.com>
8673
8674 * signals.c: Moved to...
8675 * signals/signals.c: Here.
7e336ba1 8676 * Makefile (signals.o): Update.
9aedf4f4 8677
3fa41cdb
JL
86782002-03-26 Jeff Law (law@redhat.com)
8679
8680 * somread.c (som_symtab_read): Remove some commented out code and
8681 updated related comments. Do not set the minimal symbol table to
8682 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8683 in a dynamic executable.
8684 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8685 where we are unable to find the minimal symbol for the given
8686 PC value.
8687
ee677e8d
MS
86882002-03-25 Jeff Law (law@redhat.com)
8689
8690 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8691
e76e1718
ML
86922002-03-25 Michal Ludvig <mludvig@suse.cz>
8693
8694 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8695
18a642a1
AC
86962002-03-23 Andrew Cagney <ac131313@redhat.com>
8697
8698 * command.h: Update copyright.
8699 (struct cmd_list_element): Replace definition with opaque
8700 declaration.
8701 (enum cmd_types): Document that it will eventually be moved to
8702 cli/cli-decode.h
8703 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8704 (MALLOCED_REPLACEMENT): Delete macro.
8705 * Makefile.in (cli_decode_h): Add $(command_h).
8706 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8707 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8708 * completer.c: Include "cli/cli-decode.h".
8709 * maint.c: Include "cli/cli-decode.h".
8710 * cli/cli-decode.h: Include "command.h".
8711 (enum command_class): Delete.
8712 (enum cmd_types): Comment out.
8713 (enum cmd_auto_boolean): Delete.
8714 (enum var_types): Delete.
8715
b2875cc0
AC
87162002-03-23 Andrew Cagney <ac131313@redhat.com>
8717
8718 * cli/cli-decode.c: Include "gdb_assert.h".
8719 (add_set_or_show_cmd): New static function.
8720 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8721 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8722 all fields, such as func, from the set command.
8723
3b45974e
AC
87242002-03-23 Andrew Cagney <ac131313@redhat.com>
8725
8726 * MAINTAINERS (sh-elf): Change warning flag to -w.
8727
823ca731
AC
87282002-03-23 Andrew Cagney <cagney@redhat.com>
8729
8730 * defs.h (error): Add printf format attribute.
8731 * thread-db.c (thread_from_lwp): Fix error format string.
8732 * stack.c (parse_frame_specification): Ditto.
8733 * cli/cli-decode.c (undef_cmd_error): Ditto.
8734 * scm-lang.c (scm_lookup_name): Ditto.
8735 * tracepoint.c (trace_error): Ditto.
8736 * remote-utils.c (usage): Ditto.
8737 * remote.c (compare_sections_command): Ditto.
8738 Fix PR gdb/328.
8739
0e101458
AC
87402002-03-22 Andrew Cagney <ac131313@redhat.com>
8741
8742 * gdbtypes.c (append_composite_type_field): New function.
8743 (init_composite_type): New function.
8744 * gdbtypes.h (append_composite_type_field): Declare.
8745 (init_composite_type): Ditto.
8746
8e0662df
EZ
87472002-03-22 Elena Zannoni <ezannoni@redhat.com>
8748
8749 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8750 function.
8e0662df
EZ
8751 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8752 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8753 structure returning convention for SYSV ABI case, but not
8754 for GNU/Linux, FreeBSD, or NetBSD.
8755
3121eff0
DJ
87562002-03-22 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * symtab.h (lookup_block_symbol): Add mangled_name argument
8759 to prototype.
8760
8761 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8762 with new mangled_name argument.
8763 * linespec.c (decode_line_1): Likewise.
8764 * valops (value_of_this): Likewise.
8765 * symtab.c (lookup_transparent_type): Likewise.
8766 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8767 (lookup_symbol): If we are given a mangled name, pass it down
8768 to lookup_symbol_aux.
8769 (lookup_block_symbol): If we are given a mangled name to check
8770 against, only return symbols which match it.
8771
349b409f
CF
87722002-03-22 Christopher Faylor <cgf@redhat.com>
8773
8774 * win32-nat.c (child_create_inferior): Check for proper shell to use
8775 here, in case the user changes it on the fly.
8776 (_initialize_inftarg): Remove shell path considerations.
8777
2a873819
EZ
87782002-03-21 Elena Zannoni <ezannoni@redhat.com>
8779
8780 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8781 for gdbarch_max_register_raw_size and max_register_virtual_size.
8782 Adjust copyright year.
8783
a1b9830c
DJ
87842002-03-21 Daniel Jacobowitz <drow@mvista.com>
8785
8786 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8787 in a function to cover the entire beginning of the function
8788 as well if it does not already.
8789
8b5790f2
TR
87902002-03-21 Tom Rix <trix@redhat.com>
8791
8792 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8793 (rs6000_ptrace64): Renamed from ptrace64.
8794
bdbe5747
MH
87952002-03-20 Martin M. Hunt <hunt@redhat.com>
8796
8797 * gdbserver/remote-utils.c (remote_open): Don't call
8798 getprotobyname, we're all using TCP here so just use
8799 IPPROTO_TCP.
7e336ba1 8800 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8801
88022002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8803
bdbe5747
MH
8804 * regcache.c (_initialize_regcache): No need to call
8805 build_regcache() at this time; it gets called whenever
8806 the gdbarch changes.
8807
7781cd62
DB
88082002-03-20 David O'Brien <obrien@FreeBSD.org>
8809
8810 * sparc-nat.c: Include sys/param.h where possible.
8811
f65ca430
DJ
88122002-03-20 Daniel Jacobowitz <drow@mvista.com>
8813
8814 Fix PR gdb/422.
8815 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8816 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8817 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8818 complex types.
8819 * stabsread.c (rs6000_builtin_type): Likewise.
8820 (read_sun_floating_type): Likewise.
8821
0c867556
PS
88222002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8823
8824 * stabsread.c (read_member_functions): Remove skip code for duplicate
8825 constructor/destructor methods. Use standard parsing for these
8826 methods and just do not chain them to the list of methods after
8827 parsing.
8828
12b9c64f
AO
88292002-03-19 Alexandre Oliva <aoliva@redhat.com>
8830
8831 * coffread.c: Remove redundant static declarations. Replace
8832 occurrences of `PTR' with `void *'.
8833 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8834 * top.h (quit_cover): Likewise.
8835 * defs.h (catch_errors): Likewise.
8836
349c5d5f
AC
88372002-03-18 Andrew Cagney <ac131313@redhat.com>
8838
8839 * defs.h (XMALLOC): Define.
8840 * gdb-events.sh (XMALLOC): Delete macro.
8841 * gdb-events.c, gdb-events.h: Regenerate.
8842 * gdbarch.sh (XMALLOC): Delete macro.
8843 * gdbarch.c: Regenerate.
8844 * serial.c (XMALLOC): Delete macro.
8845 * ui-file.c (XMALLOC): Ditto.
8846 * ser-unix.h (XMALLOC): Ditto.
8847 * sh-tdep.c (XMALLOC): Ditto.
8848 * ui-out.c (XMALLOC): Ditto.
8849 * utils.c (XMALLOC): Ditto.
8850 * i386-tdep.c (XMALLOC): Ditto.
8851 * gdb-events.c (XMALLOC): Ditto.
8852 * d10v-tdep.c (XMALLOC): Ditto.
8853 * cli-out.c (XMALLOC): Ditto.
8854
8855 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8856 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8857 * ui-file.c, ui-out.c: Ditto.
8858
7d0766f3
AC
88592002-03-18 Andrew Cagney <ac131313@redhat.com>
8860
8861 * command.h (struct cmd_list_element): Add field context.
8862 (set_cmd_context, get_cmd_context): Declare.
8863 * cli/cli-decode.h: Ditto.
8864 * cli/cli-decode.c (get_cmd_context): New function.
8865 (set_cmd_context): New function.
8866 (add_cmd): Initialize context.
8867 Part of fixing PR gdb/145 and PR gdb/146.
8868
5913bcb0
AC
88692002-03-17 Andrew Cagney <ac131313@redhat.com>
8870
1868c04e
AC
8871 * cli/cli-decode.c (cmd_type): New function.
8872 * command.h (cmd_type): Declare.
8873 * infrun.c (set_schedlock_func): Call function cmd_type.
8874 * kod.c (kod_set_os): Call cmd_type.
8875 * cris-tdep.c (cris_version_update): Use function cmd_type.
8876 (cris_mode_update, cris_abi_update): Ditto.
8877
5913bcb0
AC
8878 * command.h: (execute_cmd_post_hook): Declare.
8879 (execute_cmd_pre_hook): Declare.
8880 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8881 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8882 functions. Execute pre/post hook while ensuring that afterwords
8883 hook_in is cleared.
8884 * top.c (execute_command): Use execute_cmd_post_hook, and
8885 execute_cmd_pre_hook to execute pre/post commands.
8886 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8887 hook_stop_stub.
8888 (hook_stop_stub): Call execute_cmd_pre_hook.
8889
b51450c9
AC
88902002-03-17 Andrew Cagney <ac131313@redhat.com>
8891
8892 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8893 set'' and this leads to a core dump. Move xstrdup of
8894 operating_system to after check that it is not NULL.
8895
f66c9f11
AC
88962002-03-17 Andrew Cagney <ac131313@redhat.com>
8897
8e694ecf
AC
8898 * kod.c (kod_set_os): Remove unnecessary check that
8899 ``command->type'' is set_cmd.
8900
f66c9f11
AC
8901 * valprint.c (set_input_radix): Use input_radix.
8902 (set_output_radix): Use output_radix.
8903 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8904 isn't reverted.
8905
9d01611c
AC
89062002-03-16 Andrew Cagney <ac131313@redhat.com>
8907
8908 * value.h (struct value): Delete field ``substring_addr''. Change
8909 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8910 force_core_addr_align and force_pointer_aligh.
8911
8912 * value.h (struct value): Fix typo in above change.
9d01611c 8913
4156bb53
PS
89142002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8915
8916 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8917 to fix internal_error from ``maintenance print architecture''.
8918
0e5e3ea6
PS
89192002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8920
8921 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8922 for gcc versions after gcc-2.8.1.
8923
9b013045
PS
89242002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8925
8926 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8927 for method resolution. Restore adjustment of ``this'' pointer after
8928 calling value_struct_elt, which was accidentally removed during the
8929 HP merge.
8930
376c9600
AC
89312002-03-15 Andrew Cagney <ac131313@redhat.com>
8932
8933 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8934 value_of_register.
8935 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8936 get_saved_register.
8937 * value.h (value_of_register): Update.
8938
a4db0f07
RH
89392002-03-14 Richard Henderson <rth@redhat.com>
8940
8941 * configure.in: Detect declaration for canonicalize_file_name.
8942 * utils.c (canonicalize_file_name): Declare, if needed.
8943 (gdb_realpath): Prefer realpath if available and usable.
8944 * config.in, configure: Rebuild.
8945
96383835
RH
89462002-03-14 Richard Henderson <rth@redhat.com>
8947
8948 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8949 a constant array bound.
8950
8951 * MAINTAINERS: Add myself to write-after-approval.
8952
75245b24
MS
89532002-03-14 Michael Snyder <msnyder@redhat.com>
8954
8955 * symfile.c (syms_from_objfile): Return immediately if no syms.
8956 (symbol_file_add): Return immediately if no syms.
8957 (find_sym_fns): Return immediately if no syms.
8958
e641a1ca
ML
89592002-03-13 Michal Ludvig <mludvig@suse.cz>
8960
8961 * gdbserver/remote-util.c (remote_open): Print remote-side's
8962 IP address when remote debugging over the network.
7e336ba1 8963
df08bfec
DB
89642002-03-12 David O'Brien <obrien@FreeBSD.org>
8965
8966 * config/sparc/fbsd.mh: Fix copyright.
8967 * config/sparc/fbsd.mt: Likewise.
8968
9a57864f
RE
89692002-03-11 Richard Earnshaw <rearnsha@arm.com>
8970
8971 * MAINTAINERS: Fix typo in name of gdb warnings option.
8972 (x86-64): Fix formating so that this can be parsed by awk.
8973
dd7bf85e
DJ
89742002-03-10 Daniel Jacobowitz <drow@mvista.com>
8975
8976 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8977 * defs.h: Include "gdb/signals.h".
8978 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8979
33a0a2ac
ML
89802002-03-10 Michal Ludvig <mludvig@suse.cz>
8981
8982 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8983 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8984 from x86-64-tdep.h
8985
dd824b04
DJ
89862002-03-10 Daniel Jacobowitz <drow@mvista.com>
8987 Don Howard <dhoward@redhat.com>
8988
8989 * mips-tdep.c (ST0_FR): Define.
8990 (mips2_fp_compat): New function, temporarily disabled.
8991 (mips_read_fp_register_single): New function.
8992 (mips_read_fp_register_double): New function.
8993 (mips_print_register): Use them.
8994 (do_fp_register_row): Likewise.
8995
6a41ff59
AC
89962002-03-09 Andrew Cagney <ac131313@redhat.com>
8997
8998 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8999 approval''.
9000
4ea09c10
PS
90012002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9002
9003 * stabsread.c (read_member_functions): Fix is_stub test for
9004 static member functions, improve comment.
9005
6ccc741d
RE
90062002-03-07 Richard Earnshaw <rearnsha@arm.com>
9007
9008 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9009 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9010 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9011 commands that set boolean values.
9012 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9013 (arm_rdi_resume): Always initialize PC.
9014 (arm_rdi_open): Don't use rslt as a boolean.
9015 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9016 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9017 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9018 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9019
438013df
AO
90202002-03-06 Alexandre Oliva <aoliva@redhat.com>
9021
9022 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9023 * configure: Rebuilt.
9024
70ed8774
SC
90252002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9026
9027 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9028 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9029
5ba2abeb
AC
90302002-03-06 Andrew Cagney <ac131313@redhat.com>
9031
9032 * cli/cli-decode.c (set_cmd_completer): New function.
9033 * command.h (set_cmd_completer): Declare.
9034 * cli/cli-decode.h (set_cmd_completer): Ditto.
9035
9036 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9037 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9038 * win32-nat.c (_initialize_inftarg): Ditto.
9039 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9040 * proc-api.c (_initialize_proc_api): Ditto.
9041 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9042 * source.c (_initialize_source): Ditto.
9043 * exec.c (_initialize_exec): Ditto.
9044 * solib.c (_initialize_solib): Ditto.
9045 * top.c (init_main): Ditto.
9046 * tracepoint.c (_initialize_tracepoint): Ditto.
9047 * symfile.c (_initialize_symfile): Ditto.
9048 * printcmd.c (_initialize_printcmd): Ditto.
9049 * infcmd.c (_initialize_infcmd): Ditto.
9050 * corefile.c (_initialize_core): Ditto.
9051
f779ca99
AC
90522002-03-05 Andrew Cagney <ac131313@redhat.com>
9053
9054 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9055
01a3934b
AC
90562002-03-05 Andrew Cagney <ac131313@redhat.com>
9057
9058 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9059
37057839
AC
90602002-03-05 Andrew Cagney <ac131313@redhat.com>
9061
9062 * NEWS: Update headings, 5.2 has branched.
9063
c6ecbae5
DJ
90642002-03-04 Daniel Jacobowitz <drow@mvista.com>
9065
9066 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9067 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9068 (register_addr, REGISTER_RAW_SIZE): Likewise.
9069 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9070 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9071
e9f30c21
ML
90722002-03-03 Michal Ludvig <mludvig@suse.cz>
9073
9074 * MAINTAINERS (x86-64): Add myself.
9075 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9076 changed value_ptr -> struct value *
9077
54394ac3
DB
90782002-03-01 David O'Brien <obrien@FreeBSD.org>
9079
9080 * configure.host (sparc64-*-freebsd): Add.
9081 * configure.tgt: Likewise.
9082 * config/sparc/fbsd.mh: New file.
9083 * config/sparc/fbsd.mt: Likewise.
9084 * config/sparc/nm-fbsd.h: Likewise.
9085 * config/sparc/tm-fbsd.h: Likewise.
9086
bfe95955
DJ
90872002-03-01 Daniel Jacobowitz <drow@mvista.com>
9088
9089 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9090 regformats/reg-s390x.dat.
9091
f33c6cbf
AC
90922002-03-01 Andrew Cagney <ac131313@redhat.com>
9093
9094 * utils.c: Add FIXME explaining true/false problem.
9095
5ecaa7dd
AC
90962002-02-28 Andrew Cagney <ac131313@redhat.com>
9097
9098 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9099
2a251cc2
MC
91002002-02-28 Michael Chastain <mec@shout.net>
9101
9102 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9103
6a8031a3 91042002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9105
9106 * gdbserver/linux-s390-low.c: New file.
9107 * regformats/reg-s390.dat: New file.
9108 * regformats/reg-s390x.dat: New file.
9109 * gdbserver/configure.srv: Add S/390.
9110 * gdbserver/Makefile.in: Add S/390.
9111 * configure.tgt: Enable gdbserver for S/390.
9112
ac469903
EZ
91132002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9114
9115 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9116 first line of the doc string for "info dos", except at the end of
9117 the sentence, since the short help stops at the first period.
9118
985cb1a3
JM
91192002-02-28 Jason Merrill <jason@redhat.com>
9120
9121 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9122
c570663e
FF
91232002-02-27 Fred Fish <fnf@redhat.com>
9124
9125 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9126 comment (dumy -> dummy).
9127
43630227
PS
91282002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9129
9130 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9131
b84911e8
RB
91322002-02-27 Rodney Brown <rbrown64@csc.com.au>
9133
9134 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9135
58caa3dc
DJ
91362002-02-27 Daniel Jacobowitz <drow@mvista.com>
9137
9138 * gdbserver/acconfig.h: New file.
9139 * gdbserver/i387-fp.c: New file.
9140 * gdbserver/i387-fp.h: New file.
9141 * gdbserver/linux-x86-64.c: New file.
9142 * regformats/reg-x86-64.dat: New file.
9143 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9144 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9145 * gdbserver/configure.in: Add support for regsets.
9146 * gdbserver/config.in: Regenerate.
9147 * gdbserver/configure: Regenerate.
9148 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9149 * gdbserver/linux-low.h: New file.
9150 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9151 for regsets.
9152 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9153 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9154 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9155 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9156 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9157 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9158 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9159 "i387-fp.h". Add PTRACE_GETREGS and friends.
9160 * gdbserver/regcache.c (supply_register): New function.
9161 (supply_register_by_name): New function.
9162 (collect_register): New function.
9163 (collect_register_by_name): New function.
9164
93652174
DJ
91652002-02-27 Daniel Jacobowitz <drow@mvista.com>
9166
9167 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9168 (config.status): Add configure.srv dependency.
9169 (server_h): Add config.h dependency.
9170
a02e4a61
DJ
91712002-02-27 Daniel Jacobowitz <drow@mvista.com>
9172
9173 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9174 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9175 * gdbserver/configure.srv: Change i386-*-linux* to use
9176 reg-i386-linux.o.
9177
ce0eebec
AC
91782002-02-26 Andrew Cagney <ac131313@redhat.com>
9179
9180 * x86-64-tdep.c: Re-indent. Update copyright date.
9181
82dbc5f7
AC
91822002-02-26 Andrew Cagney <ac131313@redhat.com>
9183
9184 From Michal Ludvig <mludvig@suse.cz>:
9185 * x86-64-tdep.c (value.h): Delete.
9186 (gdb_assert.h): Include.
9187 (x86_64_register_convert_to_virtual,
9188 x86_64_register_convert_to_raw ): Add check which lets only
9189 floating-point values to be converted.
9190 (value_push): Delete.
9191 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9192 (i386_gdbarch_init): Number of register_bytes fixed.
9193
e4621584
AC
91942002-02-26 Andrew Cagney <ac131313@redhat.com>
9195
9196 * MAINTAINERS: Add x86-64 target.
9197
81a9a963
AC
91982002-02-26 Andrew Cagney <ac131313@redhat.com>
9199
9200 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9201 * osfsolib.c (solib_map_sections): Ditto.
9202 * irix5-nat.c (solib_map_sections): Ditto.
9203 * corelow.c (gdb_check_format): Ditto.
9204 * symfile.c (symfile_bfd_open): Ditto.
9205 * solib.c (solib_map_sections): Ditto.
9206 Fix PR gdb/354.
7e336ba1 9207
0f017ab9
AC
92082002-02-26 Andrew Cagney <ac131313@redhat.com>
9209
9210 * remote.c (_initialize_remote): By default, disable ``e'' and
9211 ``E'' step out-of-range packets.
9212
75738c29
AS
92132002-02-26 Andreas Schwab <schwab@suse.de>
9214
9215 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9216 m68k_linux_frame_saved_pc.
9217 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9218 in_sigtramp.
9219 (SIGCONTEXT_PC_OFFSET): Remove.
9220 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9221 m68k_linux_sigtramp_saved_pc): New functions.
9222 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9223 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9224 (UCONTEXT_PC_OFFSET): Define.
9225 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9226 non-RT and RT signal trampolines.
9227
7e8ed687
RE
92282002-02-26 Richard Earnshaw <rearnsha@arm.com>
9229
9230 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9231 (TARGET_NBPG, STACK_END_ADDR): Delete
9232 (VARIABLES_INSIDE_BLOCK): Delete.
9233
6972bc8b
AC
92342002-02-25 Andrew Cagney <ac131313@redhat.com>
9235
9236 * utils.c (perror_with_name): Make string parameter constant.
9237 (print_sys_errmsg): Ditto.
9238 (query): Ditto.
9239 * defs.h (perror_with_name): Update.
9240 (print_sys_errmsg): Update.
9241 (query): Update.
9242
aa32f823
DJ
92432002-02-25 Daniel Jacobowitz <drow@mvista.com>
9244
9245 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9246 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9247
19caaa45
PS
92482002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9249
9250 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9251 if it already matches the current architecture from the exec file.
9252 Include arch-utils.h for gdbarch_info_init prototype.
9253 * Makefile.in (rs6000-nat.o): Update dependencies.
9254
d951901f
EZ
92552002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9256
9257 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9258 list of exported variables.
9259
7ea81414
DJ
92602002-02-24 Daniel Jacobowitz <drow@mvista.com>
9261
9262 * gdbserver/configure.srv: New file.
9263 * gdbserver/configure.in: Use configure.srv instead
9264 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9265 from it.
9266 * gdbserver/configure: Regenerated.
9267 * gdbserver/terminal.h: New file.
9268 * gdbserver/Makefile.in: Update for configure changes. Remove
9269 more unneeded include paths.
9270
080fe24b
AC
92712002-02-24 Andrew Cagney <ac131313@redhat.com>
9272
9273 From wiz at danbala:
9274 * config/sparc/tm-sp64.h: Fix grammar and typos.
9275 Fix PR gdb/287.
9276
8605d56e
AC
92772002-02-24 Andrew Cagney <ac131313@redhat.com>
9278
9279 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9280 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9281 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9282 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9283 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9284 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9285 * s390-tdep.c: Ditto.
92362027
AC
9286 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9287 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9288 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9289 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9290 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9291 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9292 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9293 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9294 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9295 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9296 Fix PR gdb/378.
7e336ba1 9297
8ed32cc0
AC
92982002-02-23 Andrew Cagney <ac131313@redhat.com>
9299
a3007b6f
AC
9300 * lin-thread.c: Delete file.
9301 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9302 to gdb_proc_service.h.
9303 * configure: Re-generate.
9304
50a9e2f1
AC
9305 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9306 * serial.c (serial_open): Delete check for "ocd".
9307 Fix PR gdb/349.
9308
8b6e7932
AC
9309 * Makefile.in (linux-thread.o): Delete target.
9310 * linux-thread.c: Delete file.
9311
d155c46b
AC
9312 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9313 renamed SH files to be consistent.
9314
8ed32cc0
AC
9315 * symtab.c (sort_search_symbols): Use xfree.
9316
0e18d038
RE
93172002-02-23 Richard Earnshaw <rearnsha@arm.com>
9318
9319 * arm-linux-tdep.c (arm_linux_init_abi): Register
9320 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9321 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9322 definition with undef, since we don't want the sysvr4 definition.
9323 (SKIP_TRAMPOLINE_CODE): Likewise.
9324
27aac7ff
AC
93252002-02-23 Andrew Cagney <ac131313@redhat.com>
9326
9327 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9328
9329 * configure.in: (AC_CHECK_FUNCS) Added test for
9330 canonicalize_file_name Regenerated.
9331 * config.in, configure: Regenerated.
9332 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9333 defined use canonicalize_file_name.
7e336ba1 9334
65a6e0ee
MC
93352002-02-23 Michael Chastain <mec@shout.net>
9336
9337 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9338
47b95330
AC
93392002-02-23 Andrew Cagney <ac131313@redhat.com>
9340
9341 * README: Remove references to cygnus.com.
9342 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9343 dot com'' form. Remove references to cygnus.com and sourceware.
9344
696f451b
AC
93452002-02-23 Andrew Cagney <ac131313@redhat.com>
9346
9347 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9348 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9349 1003.1-2001 no longer allows "head -1".
9350 * gdb/Makefile.in (version.c): Likewise.
9351 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9352 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9353 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9354
bbaca940
AC
93552002-02-23 Andrew Cagney <ac131313@redhat.com>
9356
9357 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9358 * command.h (cmd_cfunc_eq): Declare.
9359 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9360
9361 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9362 ``struct cmd_list_element *''.
9363 * cli/cli-cmds.c (is_complete_command): Update. Use
9364 cmd_cfunc_eq.
9365 * top.c (execute_command): Pass the command to
9366 is_complete_command.
9367 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9368
b8b8b047
AC
93692002-02-23 Andrew Cagney <ac131313@redhat.com>
9370
9371 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9372 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9373 architecture defines.
9374 * s390-tdep.c (s390_gdbarch_init): Likewise.
9375
19d3fc80
RE
93762002-02-23 Richard Earnshaw <rearnsha@arm.com>
9377
9378 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9379 (arm_linux_push_arguments): Likewise.
9380 (arm_linux_init_abi): Register them. Also register linux-specific
9381 call_dummy_words.
9382 (find_minsym_and_objfile): Use strcmp, not STREQ.
9383 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9384 (arm_linux_call_dummy_words): Delete declaration.
9385 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9386 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9387 declarations.
9388 (LOWEST_PC): Delete.
9389
3ab13650
PS
93902002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9391
9392 * maint.c (print_section_info): Do not prepend `0x' to filepos
9393 output, it will be handled by local_hex_string_custom.
9394
19d3fc80 93952002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9396
9397 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9398 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9399 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9400
d85a5daf
JB
94012002-02-22 Jim Blandy <jimb@redhat.com>
9402
9403 Indicate that the bcache functions don't change the strings
9404 they're passed.
9405 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9406 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9407
eeb25b8a
PM
94082002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9409
9410 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9411
6badb179
CF
94122002-02-21 Christopher Faylor <cgf@redhat.com>
9413
9414 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9415 find the complete path to a loaded DLL.
9416
e8717518
FF
94172002-02-21 Fred Fish <fnf@redhat.com>
9418
9419 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9420 that marks the end of the range of a function, enter a line number
9421 entry that has a line number of zero and a PC offset that matches
9422 the end of the function. This starts a range of PC's for which no
9423 line number information is known.
9424 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9425 PC's for which no line number info is found (line number is zero)
9426 then we didn't find any valid line information.
9427 * symtab.h: Document use of zero line number entry.
9428
9abe5450
EZ
94292002-02-21 Elena Zannoni <ezannoni@redhat.com>
9430
9431 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9432 (have_ptrace_getvrregs): Define for run time checks.
9433 (gdb_vrregset_t): New type for Altivec register handling.
9434 (fetch_register, store_register): Fetch/store altivec register
9435 when needed.
9436 (fetch_altivec_register, store_altivec_register): New functions.
9437 (supply_vrregset, fill_vrregset): New functions.
9438 (fetch_altivec_registers, store_altivec_registers): New functions.
9439 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9440 registers as well.
9441
aaa38bb5
AJ
94422002-02-21 Jiri Smid <smid@suse.cz>
9443
9444 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9445
b34db576
RE
94462002-02-21 Richard Earnshaw <rearnsha@arm.com>
9447
9448 * Makefile.in (armnbsd-nat.o): Update dependencies.
9449 * armnbsd-nat.c (supply_gregset): New function. Common code to
9450 supply the integer register set.
9451 (supply_fparegset): New function. Similar for FPA registers.
9452 (fetch_regs, fetch_fp_regs): Use them.
9453 (fetch_core_registers): Likewise.
9454 (fetch_elfcore_registers): New function.
9455 (arm_netbsd_elfcore_fns): New core-file type specification.
9456 (_initialize_arm_netbsd_nat): Register it.
9457
3e56fc4b
RE
94582002-02-21 Richard Earnshaw <rearnsha@arm.com>
9459
9460 * armnbsd-nat.c: Include gdbcore.h.
9461 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9462 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9463 'void' to declaration, to shut up ARI.
9464 (fetch_core_registers): Make static. Rewrite using supply_register.
9465 (arm_netbsd_core_fns): New core-file type specification.
9466 (_initialize_arm_netbsd_nat): New function.
9467
097f6b0b
CF
94682002-02-21 Christopher Faylor <cgf@redhat.com>
9469
9470 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9471 value.
9472
c914e0cc
CF
94732002-02-20 Christopher Faylor <cgf@redhat.com>
9474
9475 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9476 fails.
9477
385fa495
DJ
94782002-02-20 Daniel Jacobowitz <drow@mvista.com>
9479
9480 * jv-exp.y (parse_number): Change type of implicit longs
9481 to builtin_type_uint64.
9482
e5f1222d
DJ
94832002-02-20 Daniel Jacobowitz <drow@mvista.com>
9484
9485 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9486 to be an integer instead of a `union wait'.
9487
75c9abc6
DJ
94882002-02-20 Daniel Jacobowitz <drow@mvista.com>
9489
9490 * mips-linux-nat.c: Call the operating system GNU/Linux.
9491 * mips-linux-tdep.c: Likewise.
9492 * mips-tdep.c: Likewise.
9493
551792a5
DJ
94942002-02-20 Daniel Jacobowitz <drow@mvista.com>
9495
9496 Fix PR gdb/265.
9497 * jv-exp.y (parse_number): Handle 64-bit integers.
9498
ee6e2b82
DJ
94992002-02-20 Daniel Jacobowitz <drow@mvista.com>
9500
9501 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9502 AC_STDC_HEADERS to AC_HEADER_STDC.
9503 * gdbserver/configure: Regenerated.
9504
a48442a0
RE
95052002-02-20 Richard Earnshaw <rearnsha@arm.com>
9506
9507 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9508 is defined.
9509 * sparc-tdep.c (get_longjmp_target): Likewise.
9510
fe419ffc
RE
95112002-02-20 Richard Earnshaw <rearnsha@arm.com>
9512
9513 * News: Add news about ARM and Multi-arch. Mention the new target
9514 arm*-*-netbsd*.
9515
5832ed7e
JB
95162002-02-19 Jim Blandy <jimb@redhat.com>
9517
9518 * stabsread.c (error_type_complaint): Improve error message.
9519
84563040
DJ
95202002-02-19 Daniel Jacobowitz <drow@mvista.com>
9521
9522 * gdbserver/README: Update documentation.
9523 * gdbserver/configure.in: Update configury to match documentation.
9524 * gdbserver/Makefile.in: Likewise.
9525 * gdbserver/configure: Regenerated.
9526 * gdbserver/aclocal.m4: New file, generated by aclocal.
9527 * gdbserver/config.in: New file, generated by autoheader.
9528
375fd65b
RE
95292002-02-19 Richard Earnshaw <rearnsha@arm.com>
9530
9531 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9532 armnbsd-nat.c.
9533
08216dd7
RE
95342002-02-19 Richard Earnshaw <rearnsha@arm.com>
9535
9536 * arm-tdep.h (enum arm_float_model): New enum.
9537 (struct gdbarch_tdep): Add fp_model.
9538 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9539 up floating-point conversions until we know the floating-point model
9540 in use by the inferior. Don't complain about being unable to
9541 determine the ABI of the inferior when we don't have one.
9542 (arm_extract_return_value): Support different floating-point models.
9543 (arm_store_return_value): Likewise.
aaa38bb5 9544 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9545 ARM_FLOAT_SOFT.
9546 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9547
65d6d66a
PS
95482002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9549
9550 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9551 of ``current_gdbarch''.
9552
47221191
RE
95532002-02-19 Richard Earnshaw <rearnsha@arm.com>
9554
9555 * armnbsd-nat.c : ANSIfy all function declarations.
9556 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9557 (fetch_inferior_registers): Re-implement in terms of above.
9558 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9559 (store_inferior_registers): Re-implement in terms of above.
9560
fdf39c9a
RE
95612002-02-19 Richard Earnshaw <rearnsha@arm.com>
9562
aaa38bb5 9563 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9564 kernel.
9565 * arm-linux-tdep.c: Likewise.
9566 * config/arm/tm-linux.h: Likewise.
9567
93247f88
RE
95682002-02-19 Richard Earnshaw <rearnsha@arm.com>
9569
9570 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9571 * config/arm/nbsd.mt (TM_FILE): Delete.
9572 * config/arm/tm-nbsd.h: Delete.
9573
d7b486e7
RE
95742002-02-19 Richard Earnshaw <rearnsha@arm.com>
9575
9576 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9577 Initialize CALL_DUMMY_LENGTH.
9578
41d39a95
RE
95792002-02-19 Richard Earnshaw <rearnsha@arm.com>
9580
9581 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9582 function.
9583 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9584 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9585 defines one thing and that is incorrect for this port.
9586 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9587
e1195560
PM
95882002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9589
9590 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9591
c1748f97
PM
95922002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9593
9594 * win32-nat.c (display_selector): New function. Displays information
9595 about the information returned by GetThreadSelectorEntry API function.
9596 (display_selectors): New function. Displays the infomation of
9597 the selector given as argument, or of CS, DS ans FS selectors
9598 if no argument is given.
9599 ( _initialize_inftarg): Add "w32" as info prefix command.
9600 Add "info w32 selector" as command calling display_selectors.
9601
e41e6bbf
PM
96022002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9603
9604 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9605 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9606 if not defined.
9607
0d3a9f48
RE
96082002-02-18 Richard Earnshaw <rearnsha@arm.com>
9609
9610 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9611
3fb4b924
RE
96122002-02-18 Richard Earnshaw <rearnsha@arm.com>
9613
9614 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9615 (arm_fix_call_dummy): Call it.
9616 (arm_call_dummy_breakpoint_offset): Delete.
9617 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9618 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9619
7f55af32
AC
96202002-02-18 Andrew Cagney <ac131313@redhat.com>
9621
9622 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9623 Default to func_frame_chain_valid.
9624 * gdbarch.h, gdbarch.c: Re-generate.
9625 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9626
05f13b9c
EZ
96272002-02-18 Elena Zannoni <ezannoni@redhat.com>
9628
9629 * ppc-linux-nat.c: Update copyright.
9630 (fetch_register, store_register): Add tid parameter, don't compute
9631 tid here.
9632 (fetch_ppc_registers, store_ppc_registers): Add tid
9633 parameter. Pass it along to callees.
9634 (fetch_inferior_registers, store_inferior_registers): Compute tid
9635 here, and pass it to calleed functions.
9636 (fill_gregset, supply_fpregset): Clean up formatting.
9637
d7afb4c9
RE
96382002-02-18 Richard Earnshaw <rearnsha@arm.com>
9639
9640 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9641 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9642
9df628e0
RE
96432002-02-18 Richard Earnshaw <rearnsha@arm.com>
9644
9645 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9646 * gdbarch.c gdbarch.h: Regenerate.
9647 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9648 function.
9649 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9650 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9651 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9652
9653 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9654 * arm-tdep.c (arm_get_longjmp_target): New function.
9655 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9656 this to a positive value register arm_get_longjmp_target as the
9657 longjmp handler.
9658 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9659 (arm_linux_init_abi): Set up longjmp description in tdep.
9660 * armnbsd-nat.c (get_longjmp_target): Delete.
9661 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9662 description in tdep.
9663 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9664 (get_longjmp_target): Delete declaration.
9665 (GET_LONGJMP_TARGET): Delete.
9666 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9667 (GET_LONGJMP_TARGET): Delete.
9668
57bc8964
KB
96692002-02-17 Kevin Buettner <kevinb@redhat.com>
9670
9671 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9672 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9673 of ``current_gdbarch''.
9674
83d31a92
TT
96752002-02-17 Tom Tromey <tromey@redhat.com>
9676
9677 * cli/cli-cmds.c (compare_strings): New function.
9678 (complete_command): Only print each unique item once.
9679 * completer.h (complete_line): Declare.
9680 * completer.c (complete_line): New function.
9681 (line_completion_function): Use it.
9682
17ef5d92
AC
96832002-02-16 Andrew Cagney <ac131313@redhat.com>
9684
9685 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9686 * gdbarch.h, gdbarch.c: Re-generate.
9687
491b8946
DJ
96882002-02-16 Daniel Jacobowitz <drow@mvista.com>
9689
9690 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9691
96922002-02-16 Daniel Jacobowitz <drow@mvista.com>
9693
9694 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9695 * valops.c (value_arg_coerce): Don't take the address of a reference
9696 to convert an argument to a reference.
9697
dfe7f3ac
CF
96982002-02-15 Christopher Faylor <cgf@redhat.com>
9699
9700 * win32-nat.c (get_image_name): New function.
9701 (handle_load_dll): Use get_image_name function.
9702 (get_child_debug_event): Avoid registering debug events until possibly
9703 execed process is started.
9704 (child_create_inferior): Allow invocation via shell so that command
9705 line redirection, etc. works ok.
9706 (_initialize_inftarg): Add new command: "set shell" to control whether
9707 a shell is used to start a process.
9708
1d33e73a
DJ
97092002-02-15 Daniel Jacobowitz <drow@mvista.com>
9710
9711 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9712 instead of find_register_by_number.
9713 (cannot_store_register): Likewise.
9714
48cd0caa
PM
97152002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9716
aaa38bb5 9717 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9718 fprintf_unfiltered (gdb_stderr, ...).
9719
8656e7d8
DJ
97202002-02-15 Daniel Jacobowitz <drow@mvista.com>
9721
9722 * gdbserver/gdbserver.1: Document --attach.
9723
66e810cd
RE
97242002-02-15 Richard Earnshaw <rearnsha@arm.com>
9725
9726 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9727 descriptions.
9728 * arm-tdep.c (arm_default_arm_le_breakpoint)
9729 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9730 (arm_default_thumb_be_breakpoint): New. Initialize them from
9731 traditional breakpoint defines.
9732 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9733 (arm_gdbarch_init): Initialize new breakpoint variables.
9734 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9735 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9736 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9737 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9738 code out to ...
9739 (arm_netbsd_init_abi_common): ... here; new function.
9740 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9741 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9742 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9743 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9744
97e03143
RE
97452002-02-15 Richard Earnshaw <rearnsha@arm.com>
9746
9747 * arm-tdep.h (enum arm_abi): New enum.
9748 (struct gdbarch_tdep): New structure.
9749 (LOWEST_PC): Provide a default.
9750 (arm_gdbarch_register_os_abi): Declare new function.
9751 * arm-tdep.c (arm_abi_names): New array.
9752 (process_note_abi_tag_sections): New function.
9753 (get_elfosabi): New function.
9754 (arm_gdbarch_register_os_abi): New function.
9755 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9756 support for that ABI has been built in, then call the appropriate
9757 configuration routine. Use gdbarch_num_regs() to get the number
9758 of registers.
9759 (arm_dump_tdep): New function.
9760 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9761 place-holder functions.
9762 (_initialize_arm_tdep): Register them.
9763 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9764
9765 * armnbsd-tdep.c: New file.
9766 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9767 * config/arm/nbsd.mt (TDEPFILES): Add it.
9768 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9769
9770 * armnbsd-nat.c: Include regcache.h.
9771 * Makefile.in (armnbsd-nat.o): Update dependency list.
9772
9773 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9774
ad68be46
DJ
97752002-02-14 Daniel Jacobowitz <drow@mvista.com>
9776
9777 * gdbserver/Makefile.in: Fix typos in target rules.
9778
003d6d1d
DJ
97792002-02-14 Daniel Jacobowitz <drow@mvista.com>
9780
aaa38bb5 9781 Fix part of PR gdb/267.
003d6d1d
DJ
9782 * linespec.c (find_methods): Handle constructors specially for now.
9783
6b230f1b
CV
97842002-02-14 Corinna Vinschen <vinschen@redhat.com>
9785
9786 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9787 handling.
9788 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9789 standard_coerce_float_to_double().
9790
1ea98d12
CF
97912002-02-14 Christopher Faylor <cgf@redhat.com>
9792
9793 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9794 GDBINIT_FILENAME.
9795
dd47e6fd
EZ
97962002-02-14 Elena Zannoni <ezannoni@redhat.com>
9797
9798 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9799 find_variant_by_name, because it confuses the multiarch
9800 framework. Return NULL if there isn't an architecture with the
9801 user supplied name, instead of forcing a different one without
9802 recording the change with the multiarch machinery.
9803 (find_variant_by_name): Delete.
9804
d7e39b9e
PS
98052002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9806
9807 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9808 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9809
76e42a4f
MH
98102002-02-13 Martin M. Hunt <hunt@redhat.com>
9811
aaa38bb5 9812 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9813 print_frame_info_listing_hook, set current_source_symtab.
9814
0a30fbc4
DJ
98152002-02-14 Daniel Jacobowitz <drow@mvista.com>
9816
9817 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9818 and remove unused $(INCLUDE_DIR).
9819 Add regcache.c to OBS.
9820 Add generated register protocol files to clean target.
9821 Update dependencies for new objects, obsolete old target code.
9822
9823 * gdbserver/linux-low.c: Remove all platform-specific code to
9824 new files. Remove various dead code. Update to use regcache
9825 functionality.
9826 * gdbserver/remote-utils.c (fromhex): Add return statement
9827 to quiet warning.
9828 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9829 constant.
9830 (input_interrupt): Add integer parameter to match prototype
9831 of a signal handler.
9832 (outreg): Use register_data ().
9833 (prepare_resume_reply): Use gdbserver_expedite_regs.
9834 * gdbserver/server.c (main): Dynamically allocate own_buf because
9835 PBUFSIZ is no longer constant. Use registers_to_string () and
9836 registers_from_string ().
9837 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9838 for error (), fatal (), and warning (). Update definition of
9839 PBUFSIZ to use regcache functionality. Add include guard.
9840 * gdbserver/utils.c (fatal): Add missing ``const''.
9841 (warning): New function.
9842
9843 * regformats/regdat.sh: Include "regcache.h" in generated files.
9844 Provide init_registers () function.
9845 * regformats/regdef.h: Add prototype for set_register_cache ().
9846 Add include guard.
9847
9848 * gdbserver/linux-arm-low.c: New file.
9849 * gdbserver/linux-i386-low.c: New file.
9850 * gdbserver/linux-ia64-low.c: New file.
9851 * gdbserver/linux-m68k-low.c: New file.
9852 * gdbserver/linux-mips-low.c: New file.
9853 * gdbserver/linux-ppc-low.c: New file.
9854 * gdbserver/linux-sh-low.c: New file.
9855
9856 * gdbserver/regcache.c: New file.
9857 * gdbserver/regcache.h: New file.
9858
9859 * gdbserver/low-linux.c: Removed obsolete file.
9860
4cc841d0
DJ
98612002-02-14 Daniel Jacobowitz <drow@mvista.com>
9862
9863 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9864 * config/i386/linux.mt: Likewise.
9865 * config/ia64/linux.mt: Likewise.
9866 * config/m68k/linux.mh: Likewise.
9867 * config/powerpc/linux.mh: Likewise.
9868 * config/mips/linux.mt: Likewise.
9869
9870 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9871
9872 * config/i386/i386lynx.mh: Mark gdbserver variables
9873 as (currently) obsolete for this target.
9874 * config/i386/nbsd.mt: Likewise.
9875 * config/i386/nbsdelf.mt: Likewise.
9876 * config/m32r/m32r.mt: Likewise.
9877 * config/m68k/m68klynx.mh: Likewise.
9878 * config/m68k/nbsd.mt: Likewise.
9879 * config/m68k/sun3os4.mh: Likewise.
9880 * config/mips/vr5000.mt: Likewise.
9881 * config/ns32k/nbsd.mt: Likewise.
9882 * config/pa/hppabsd.mh: Likewise.
9883 * config/pa/hppaosf.mh: Likewise.
9884 * config/powerpc/nbsd.mt: Likewise.
9885 * config/rs6000/rs6000lynx.mh: Likewise.
9886 * config/s390/s390.mt: Likewise.
9887 * config/s390/s390x.mt: Likewise.
9888 * config/sparc/sparclynx.mh: Likewise.
9889 * config/sparc/sun4os4.mh: Likewise.
9890 * config/i386/x86-64linux.mt: Likewise.
9891 * config/sparc/linux.mh: Likewise.
9892
a85f51e7
DJ
98932002-02-14 Daniel Jacobowitz <drow@mvista.com>
9894
9895 * configure.tgt: Configure gdbserver only for known working
9896 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9897 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9898 SUBDIRS if it is configured. Update comment for ${nativefile}.
9899 * configure: Regenerated.
9900
65554fef
MS
99012002-02-13 Michael Snyder <msnyder@redhat.com>
9902
670a52db
MS
9903 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9904
6dbdc4a3
MS
9905 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9906 (default_gcore_mach): Just return 0, work around a problem in bfd.
9907 (default_gcore_target): OK to return NULL if exec_bfd is null.
9908 (make_mem_sec): Use a cast, avoid a warning.
9909
9910 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9911 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9912 sizeof (host pointer) != sizeof (target pointer)).
9913 (procfs_make_note_section): Avoid overflow in psargs string.
9914
aaa38bb5 9915 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9916 implementation return an error.
9917
99182002-02-13 Rodney Brown <rbrown64@csc.com.au>
9919
9920 * procfs.c (procfs_make_note_section): Provide a default definition
9921 (for alpha-dec-osf4.0f). Fix typos.
9922
1e4d76e7
EZ
99232002-02-13 Elena Zannoni <ezannoni@redhat.com>
9924
9925 * linux-proc.c: Add include of regcache.h.
9926 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9927
b6d1a1d5
AC
99282002-02-13 Andrew Cagney <ac131313@redhat.com>
9929
9930 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9931 * memattr.c (create_mem_region): Disallow useless empty region.
9932 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9933 non-overlapping.
b6d1a1d5 9934
6c6ea35e
MC
99352002-02-13 Michael Chastain <mec@shout.net>
9936
9937 * defs.h: Kill CONST_PTR.
9938 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9939 * c-lang.c (c_builtin_types): Likewise.
9940 * ch-lang.c (ch_builtin_types): Likewise.
9941 * f-lang.c (f_builtin_types): Likewise.
9942 * language.c (unknown_builtin_types): Likewise.
9943 * m2-lang.c (m2_builtin_types): Likewise.
9944 * p-lang.c (pascal_builtin_types): Likewise.
9945 * scm-lang.c (c_builtin_types): Likewise.
9946
3e0b0f48
KS
99472002-02-13 Keith Seitz <keiths@redhat.com>
9948
9949 * arm-tdep.h (arm_get_next_pc): Add declaration.
9950
67255d04
RE
99512002-02-13 Richard Earnshaw <rearnsha@arm.com>
9952
9953 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9954 with other related struct-returning functions.
9955 (arm_extract_struct_value_address): New function.
9956 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9957 initialize float_format, double_format and long_double_format as
9958 appropriate to the endianness of the target.
9959 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9960 (arm_use_struct_convention): Delete declaration.
9961 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9962
079777f6
KS
99632002-02-13 Keith Seitz <keiths@redhat.com>
9964
9965 * defs.h (core_addr_to_string_nz): New function.
9966
34588f23
MK
99672002-02-13 Mark Kettenis <kettenis@gnu.org>
9968
9969 Apply missing bits of 2002-01-15 patch.
9970 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9971 (fill_fpregset): Use i387_fill_fsave.
9972
49b563f9
KS
99732002-02-12 Keith Seitz <keiths@redhat.com>
9974
49b563f9
KS
9975 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9976 (core_addr_to_string_nz): New function.
9977
aeb98c60
RE
99782002-02-11 Richard Earnshaw <rearnsha@arm.com>
9979
9980 * arm-linux-nat.c: Really include arm-tdep.h.
9981 * config/arm/tm-linux.h (struct type, struct value): Declare.
9982
65554fef
MS
99832002-02-11 Michael Snyder <msnyder@redhat.com>
9984
9985 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9986 (gcore section): Ifdef for Solaris and Unixware only.
9987 (procfs_do_thread_registers): Unixware needs one lwpstatus
9988 per thread (not one prstatus or pstatus).
9989 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9990 not over all gdb threads. For unixware, call elfcore_write_pstatus
9991 once before iterating over threads.
9992
34e8f22d
RE
99932002-02-11 Richard Earnshaw <rearnsha@arm.com>
9994
9995 * arm-tdep.h: New file.
9996 * arm-tdep.c: Include arm-tdep.h.
9997 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9998 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9999 (arm_print_float_info, arm_register_type, convert_to_extended)
10000 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10001 (arm_extract_return_value, arm_register_name): Make static.
10002 (arm_software_single_step): Similarly. Fix types in declaration.
10003 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10004 (arm_store_return_value, arm_store_struct_return): New functions.
10005 (arm_gdbarch_init): Register the above functions. Also register
10006 call_dummy_start_offset, sizeof_call_dummy_words,
10007 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10008 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 10009 max_register_virtual_size, register_size. Set up
34e8f22d
RE
10010 prologue_cache.saved_regs here, rather than ...
10011 (_initialize_arm_tdep): ... here.
10012 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10013 declarations.
10014 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10015 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10016 (arm_print_float_info, arm_register_type, convert_to_extended)
10017 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10018 (arm_extract_return_value, arm_register_name): Delete declarations.
10019 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10020 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10021 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10022 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10023 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10024 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10025 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10026 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10027 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10028 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10029 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10030 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10031 interface.
10032 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10033 * remote-rdi.c remote-rdp.c: Likewise.
10034 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10035 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10036 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10037 definition.
10038
10039 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10040 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10041 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10042 from non-ARM_ prefixed definitions.
10043 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10044 all uses of above.
10045 * remote-rdi.c remote-rdp.c: Likewise.
10046 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10047
148754e5
RE
100482002-02-11 Richard Earnshaw <rearnsha@arm.com>
10049
10050 * arm-tdep.c (arm_frameless_function_invocation)
10051 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10052 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10053 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10054 (arm_pop_frame, arm_get_next_pc): Make static.
10055 (arm_gdbarch_init): Register above in gdbarch structure.
10056 (arm_read_fp): Renamed from arm_target_read_fp.
10057 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10058 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10059 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10060 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10061 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10062 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10063 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10064 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10065 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10066 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10067 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10068
434d2d4f
DJ
100692002-02-10 Daniel Jacobowitz <drow@mvista.com>
10070
10071 * symtab.c (compare_search_syms): New function.
10072 (sort_search_symbols): New function.
10073 (search_symbols): Sort symbols after searching rather than
10074 before.
10075
55241689
AC
100762002-02-10 Andrew Cagney <ac131313@redhat.com>
10077
10078 * NEWS: Linux -> GNU/Linux.
10079
028c194b
AC
100802002-02-10 Andrew Cagney <ac131313@redhat.com>
10081
10082 * gdbarch.sh: For for level one methods, disallow a definition
10083 when partially multi-arched. Add comments explaining rationale.
10084 * gdbarch.h: Re-generate.
10085
6acf50cd
AC
100862002-02-10 Andrew Cagney <ac131313@redhat.com>
10087
10088 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10089 multi-arch partial.
aaa38bb5 10090
50248794
AC
100912002-02-10 Andrew Cagney <ac131313@redhat.com>
10092
10093 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10094 field. Use diff -u.
10095 * gdbarch.c: Re-generate.
10096
c30e0066
AC
100972002-02-10 Andrew Cagney <ac131313@redhat.com>
10098
9b56c5f3 10099 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10100 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10101 partial.
10102
6e6d6484
AC
101032002-02-10 Andrew Cagney <ac131313@redhat.com>
10104
10105 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10106 multi-arch partial.
10107 (PUSH_ARGUMENTS): Switch to using predefault.
10108 * gdbarch.c: Regenerate.
10109
c203844d
AC
101102002-02-10 Andrew Cagney <ac131313@redhat.com>
10111
10112 * valops.c (PUSH_ARGUMENTS): Delete definition.
10113 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10114 partial. Default to default_push_arguments.
10115 * gdbarch.h, gdbarch.c: Regenerate.
10116
b5a2688f
AC
101172002-02-09 Andrew Cagney <ac131313@redhat.com>
10118
10119 * defs.h (throw_exception): Rename return_to_top_level. Update
10120 comments.
10121 * utils.c (error_stream, internal_verror, quit): Ditto.
10122 * top.c (throw_exception, catcher): Ditto.
10123 * sparclet-rom.c (sparclet_load): Ditto.
10124 * remote.c (interrupt_query, minitelnet): Ditto.
10125 * remote-sds.c (interrupt_query): Ditto.
10126 * remote-mips.c (mips_error, mips_kill): Ditto.
10127 * ocd.c (interrupt_query): Ditto.
10128 * monitor.c (monitor_interrupt_query): Ditto.
10129 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10130 * target.h: Update comment.
aaa38bb5 10131
b5a2688f 10132 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10133
2fa5c1e0
AC
101342002-02-09 Andrew Cagney <ac131313@redhat.com>
10135
10136 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10137 default_double_format.
10138 * gdbarch.h, gdbarch.c: Re-generate.
10139 * findvar.c (floatformat_unknown): Delete variable definition.
10140 * doublest.h (floatformat_unknown): Delete variable declaration.
10141
da966255
JB
101422002-02-09 Jim Blandy <jimb@redhat.com>
10143
10144 * stabsread.c (read_type): Add code to parse Sun's syntax for
10145 prototyped function types.
10146
123a4891
AC
101472002-02-09 Andrew Cagney <ac131313@redhat.com>
10148
10149 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10150 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10151
fb39c8f3
PS
101522002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10153
10154 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10155 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10156 now _initialize_xcoffsolib gets called again and overrides the
10157 commands from solib.c in a native configuration.
10158
0b87a11d
MK
101592002-02-09 Mark Kettenis <kettenis@gnu.org>
10160
10161 * doublest.c (store_typed_floating): Don't try to return a value.
10162 Fixes PR gdb/290.
10163
bdc2fc72
JB
101642002-02-08 Jim Blandy <jimb@redhat.com>
10165
10166 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10167 is prototyped and has no arguments, print its argument list as
10168 `(void)'.
10169
da69bbcf
CD
101702002-02-08 Chris Demetriou <cgd@broadcom.com>
10171
10172 * MAINTAINERS (write-after-approval): Add myself.
10173 (paper-trail): I've escaped!
aaa38bb5 10174
b69571f5
CF
101752002-02-08 Christopher Faylor <cgf@redhat.com>
10176
10177 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10178 changes.
10179 (_initialize_check_for_gdb_ini): Ditto.
10180
f6871398
MH
101812002-02-08 Martin M. Hunt <hunt@redhat.com>
10182
10183 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10184 xaprintf -> xasprintf.
10185
4e52d31c
PM
101862002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10187
10188 * win32-nat.c: Remove use of printf and sprintf functions.
10189
39bbf761
RE
101902002-02-08 Richard Earnshaw <rearnsha@arm.com>
10191
10192 * arm-tdep.c (arm_frame_chain_valid): Make static.
10193 (arm_push_arguments): Likewise.
10194 (arm_gdbarch_init): New function.
10195 (_initialize_arm_tdep): Call it.
10196 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10197 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10198 (FRAME_CHAIN_VALID): Delete.
10199 (arm_frame_chain_valid): Delete declaration.
10200 (PUSH_ARGUMENTS): Delete.
10201 (arm_push_arguments): Delete declaration.
10202 (CALL_DUMMY_P): Delete.
10203
9c9532c9
CV
102042002-02-08 Andrew Cagney <ac131313@redhat.com>
10205 Corinna Vinschen <vinschen@redhat.com>
10206
10207 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10208 on builtin float types.
10209
4e8f7a8b
DJ
102102002-02-08 Daniel Jacobowitz <drow@mvista.com>
10211
10212 * utils.c: Include <curses.h> before "bfd.h".
10213 * tui/tui-hooks.c: Likewise.
10214 * tui/tui.c: Likewise.
10215 * tui/tuiCommand.c: Likewise.
10216 * tui/tuiData.c: Likewise.
10217 * tui/tuiDataWin.c: Likewise.
10218 * tui/tuiDisassem.c: Likewise.
10219 * tui/tuiGeneralWin.c: Likewise.
10220 * tui/tuiIO.c: Likewise.
10221 * tui/tuiLayout.c: Likewise.
10222 * tui/tuiRegs.c: Likewise.
10223 * tui/tuiSource.c: Likewise.
10224 * tui/tuiSourceWin.c: Likewise.
10225 * tui/tuiStack.c: Likewise.
10226 * tui/tuiWin.c: Likewise.
10227
cd4bffcf
EZ
102282002-02-07 Elena Zannoni <ezannoni@redhat.com>
10229
10230 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10231 to include space for pseudoregs as well. Update loops accordingly.
10232 (sh_fp_frame_init_saved_regs): Ditto.
10233 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10234
26806ce2
AC
102352002-02-07 Andrew Cagney <ac131313@redhat.com>
10236
10237 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10238 Add Richard Earnshaw to Arm maintainers.
10239
97fdab62
AC
102402002-02-07 Andrew Cagney <ac131313@redhat.com>
10241
a6b98203
AC
10242 * defs.h (warning_begin): Delete declaration.
10243
97fdab62
AC
10244 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10245 Delete macro.
10246
78b29b40
MS
102472002-02-07 Michael Snyder <msnyder@redhat.com>
10248
aaa38bb5 10249 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10250 Logic bug, remove misplaced else.
10251
d8849953
KD
102522002-02-07 Klee Dienes <klee@apple.com>
10253
10254 * fork-inferior.c (fork_inferior): Add '!' to the list of
10255 characters that need to be quoted when building a string for the
10256 shell. Quote '!' specifically with a backslash, since CSH chokes
10257 when trying to evaluate "str!str".
aaa38bb5 10258
095778a0
NC
102592002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10260
10261 * rdi-share/host.h: Only provide a typedef for bool if it is not
10262 defined.
10263
1900040c
MS
102642002-02-04 Michael Snyder <msnyder@redhat.com>
10265
10266 * breakpoint.h (enum bptype): Add new overlay event bp type.
10267 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10268
1900040c
MS
10269 * breakpoint.c (create_internal_breakpoint): New function.
10270 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10271 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10272 (create_thread_event_breakpoint): Ditto.
10273 (create_solib_event_breakpoint): Ditto.
10274 (create_overlay_event_breakpoint): New function.
10275 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10276 (update_breakpoints_after_exec): Delete and re-initialize
10277 overlay event breakpoints after an exec. Add FIXME comment
10278 about longjmp breakpoint.
10279 (print_it_typical): Ignore overlay event breakpoints.
10280 (print_one_breakpoint): Ditto.
10281 (mention): Ditto.
10282 (bpstat_what): Do not stop for overlay event breakpoints.
10283 (delete_breakpoint): Don't delete overlay event breakpoints.
10284 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10285 (breakpoint_re_set): Re-create overlay event breakpoint.
10286
10287 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10288 (overlay_manual_command): Disable overlay breakpoints.
10289 (overlay_off_command): Disable overlay breakpoints.
10290
082fc60d
RE
102912002-02-06 Richard Earnshaw <rearnsha@arm.com>
10292
10293 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10294 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10295 to here from config/tm-arm.h.
10296 (coff_sym_is_thumb): Make static.
10297 (arm_elf_make_msymbol_special): New function.
10298 (arm_coff_make_msymbol_special): New function.
10299 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10300 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10301 (coff_sym_is_thumb): Delete declaration.
10302 (arm_elf_make_msymbol_special): Declare.
10303 (arm_coff_make_msymbol_special): Declare.
10304 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10305 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10306
039c5766
RE
103072002-02-06 Richard Earnshaw <rearnsha@arm.com>
10308
10309 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10310
103112002-02-06 Richard Earnshaw <rearnsha@arm.com>
10312
10313 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10314 * gdbarch.c gdbarch.h: Regenerate.
10315 * arch-utils.c (default_print_float_info): New function.
10316 * arch-utils.h (default_print_float_info): Prototype it.
10317 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10318 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10319 (PRINT_FLOAT_INFO): Document it.
10320
10321 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10322 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10323 (PRINT_FLOAT_INFO): Define.
10324
58fa08f0
PM
103252002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10326
aaa38bb5 10327 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10328 Add typecast to sprintf argument to suppress a warning.
10329
7393af7c
PM
103302002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10331
58fa08f0 10332 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10333 to allow easier handling of pass state.
10334 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10335 that gives exception name and address.
10336 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10337 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10338 exceptions added.
aaa38bb5
AJ
10339 (child_continue): Correctly report continue_status.
10340 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10341 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10342 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10343 the exception should be passed to debuggee or not.
10344
6af4589c
MS
103452002-02-05 Michael Snyder <msnyder@redhat.com>
10346
10347 * regcache.c (fetch_register): Call target_fetch_register
10348 only if we don't call FETCH_PSEUDO_REGISTER.
10349 (store_register): Call target_store_register only if we
10350 don't call STORE_PSEUDO_REGISTER.
10351
a2cf933a
EZ
103522002-02-05 Elena Zannoni <ezannoni@redhat.com>
10353
10354 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10355 ELF_MAKE_MSYMBOL_SPECIAL.
10356 * gdbarch.c, gdbarch.h: Regenerate.
10357 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10358 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10359 * elfread.c (elf_symtab_read): Compile use of
10360 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10361 multiarched.
10362 * coffread.c (coff_symtab_read): Ditto, for
10363 COFF_MAKE_MSYMBOL_SPECIAL.
10364
6bb7be43
JB
103652002-02-05 Jim Blandy <jimb@redhat.com>
10366
10367 * solib-svr4.c (svr4_truncate_ptr): New function.
10368 (svr4_relocate_section_addresses): Do the address arithmetic with
10369 the appropriate truncation for target addresses, even when
10370 CORE_ADDR is larger than a target address.
10371
e18651ec
DJ
103722002-02-05 Daniel Jacobowitz <drow@mvista.com>
10373
10374 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10375 to (int *).
10376
6b2725be
DJ
103772002-02-05 Daniel Jacobowitz <drow@mvista.com>
10378
10379 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10380 code.
10381
fca9e603
DJ
103822002-02-05 Daniel Jacobowitz <drow@mvista.com>
10383
10384 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10385
6c537a52
DJ
103862002-02-05 Daniel Jacobowitz <drow@mvista.com>
10387
10388 * gdbserver/linux-low.c: Remove unused include files.
10389
d844cde6
DJ
103902002-02-05 Daniel Jacobowitz <drow@mvista.com>
10391
10392 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10393 (read_inferior_memory): Use it.
10394 (write_inferior_memory): Likewise.
10395
d07c63e7
DJ
103962002-02-05 Daniel Jacobowitz <drow@mvista.com>
10397
10398 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10399 grubbing through sys_errlist.
10400
da6d8c04
DJ
104012002-02-05 Daniel Jacobowitz <drow@mvista.com>
10402
10403 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10404
5b421780
PM
104052002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10406 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10407
9f60d481
AC
104082002-02-04 Andrew Cagney <ac131313@redhat.com>
10409
10410 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10411 (do_sfunc, set_cmd_sfunc): New functions.
10412
10413 * command.h (struct cmd_list_element): Add field func.
10414 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10415 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10416 * cli/cli-decode.h: Ditto.
10417
10418 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10419 (help_all, help_cmd_list): Ditto.
10420 (find_cmd, complete_on_cmdlist): Ditto.
10421 * top.c (execute_command): Ditto.
10422
10423 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10424 function.sfunc.
10425
10426 * infcmd.c (notice_args_read): Fix function signature.
10427
10428 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10429 * cli/cli-decode.c (add_set_cmd): Ditto.
10430 * utils.c (initialize_utils): Ditto.
10431 * maint.c (_initialize_maint_cmds): Ditto.
10432 * infrun.c (_initialize_infrun): Ditto.
10433 * demangle.c (_initialize_demangler): Ditto.
10434 * remote.c (add_packet_config_cmd): Ditto.
10435 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10436 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10437 * proc-api.c (_initialize_proc_api): Ditto.
10438 * kod.c (_initialize_kod): Ditto.
10439 * valprint.c (_initialize_valprint): Ditto.
10440 * top.c (init_main): Ditto.
10441 * infcmd.c (_initialize_infcmd): Ditto.
10442 * corefile.c (_initialize_core): Ditto.
10443 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10444 * arch-utils.c (initialize_current_architecture): Ditto.
10445 (_initialize_gdbarch_utils): Ditto.
10446 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10447
10448 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10449 * wince.c (_initialize_inftarg): Ditto.
10450 * symfile.c (_initialize_symfile): Ditto.
10451 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10452 * language.c (_initialize_language): Ditto.
10453 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10454
f9ba0717
MS
104552002-02-04 Michael Snyder <msnyder@redhat.com>
10456
10457 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10458
0c74b2a7
DJ
104592002-02-04 Daniel Jacobowitz <drow@mvista.com>
10460
10461 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10462 Add rules for building the register data files.
10463
c638789f
DJ
104642002-02-04 Daniel Jacobowitz <drow@mvista.com>
10465
10466 * regformats/regdat.sh: Add braces to the definition of
10467 expedite_regs_${arch}.
10468
db253027
DJ
104692002-02-04 Daniel Jacobowitz <drow@mvista.com>
10470
10471 * regformats/regdef.h (struct reg): Add comment describing the
10472 requirements for offset and size fields.
10473
206be19c
AS
104742002-02-04 Andreas Schwab <schwab@suse.de>
10475
10476 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10477 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10478
181c1381
RE
104792002-02-04 Richard Earnshaw <rearnsha@arm.com>
10480
10481 * gdbarch.sh (copyright): Update years in generated header.
10482 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10483 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10484 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10485 * dbxread.c: Likewise.
10486 * dwarfread.c: Likewise.
10487 * elfread.c: Likewise.
10488 * somread.c: Likewise.
10489
10490 * arm-tdep.c (arm_smash_text_address): New function.
10491 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10492
fa4ba8da
PM
104932002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10494
10495 Add support for hardware watchpoints on win32 native.
aaa38bb5 10496 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10497 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10498 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10499 of debug registers.
10500 (debug_registers_changed): New variable. Reflects when debug registers
10501 are changed and need to be written to inferior.
aaa38bb5 10502 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10503 was set, used when new threads are created.
10504 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10505 i386-nat code.
10506 (thread_rec): Set dr array if id is the thread of current_event .
10507 (child_continue, child_resume): Change the debug registers for all
10508 threads if debug_registers_changed.
10509 (child_add_thread): Change the debug registers if debug_registers_used.
10510 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10511 Link nm.h to new nm-cygwin.h file.
10512 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10513 of hardware registers.
10514
a73c86fb
AC
105152002-02-03 Andrew Cagney <ac131313@redhat.com>
10516
10517 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10518 Restore behavour broken by 2002-01-20 Andrew Cagney
10519 <ac131313@redhat.com> IEEE_FLOAT removal.
10520
acf5ed49
DJ
105212002-02-03 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * c-valprint.c (c_val_print): Pass a proper valaddr to
10524 cp_print_class_method.
10525 * valops.c (search_struct_method): If there is only one method
10526 and args is NULL, return that method.
10527
493d28d5
DJ
105282002-02-03 Daniel Jacobowitz <drow@mvista.com>
10529
10530 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10531 accessing tag_name directly.
10532
7495dfdb
DJ
105332002-02-03 Daniel Jacobowitz <drow@mvista.com>
10534
10535 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10536 of accessing tag_name directly.
10537
dd6bda65
DJ
105382002-02-03 Daniel Jacobowitz <drow@mvista.com>
10539
10540 PR gdb/280
10541 * gdbtypes.c (replace_type): New function.
10542 * gdbtypes.h (replace_type): Add prototype.
10543 * stabsread.c (read_type): Use replace_type.
10544
88fe217c
RE
105452002-02-03 Richard Earnshaw <rearnsha@arm.com>
10546
10547 * Makefile.in (memattr.o): Add missing dependencies rule.
10548
e5d66720
PS
105492002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10550
10551 * breakpoint.c (break_at_finish_command): Really export.
10552 (break_at_finish_at_depth_command): Ditto.
10553 (tbreak_at_finish_command): Ditto.
10554 * hppa-tdep.c: Include completer.h.
10555 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10556 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10557
fffee0be
AC
105582002-02-01 Andrew Cagney <ac131313@redhat.com>
10559
10560 * utils.c (do_write): New function.
10561 (error_stream): Rewrite combining the code from error_begin and
10562 verror.
10563 (verror): Rewrite using error_stream.
10564 (error_begin): Delete function.
10565
255e7dbf
AC
105662002-02-01 Andrew Cagney <ac131313@redhat.com>
10567
10568 * utils.c (error_begin): Make static.
10569 * defs.h (error_begin): Delete declaration.
10570
10571 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10572 (decode_line_1): Use cplusplus_error instead of error_begin,
10573 cplusplus_hint and return_to_top_level.
10574 * coffread.c (coff_symfile_read): Use error instead of error_begin
10575 and return_to_top_level.
10576 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10577
ddfe3c15
AC
105782002-02-01 Andrew Cagney <ac131313@redhat.com>
10579
10580 * language.h (type_error, range_error): Make string parameter
10581 constant.
10582 * language.c (warning_pre_print): Delete extern declaration.
10583 * dwarfread.c (warning_pre_print): Ditto.
10584 * language.c (type_error, range_error): Rewrite to use verror and
10585 vwarning instead of warning_begin.
10586
03ac34d5
MS
105872002-02-01 Michael Snyder <msnyder@redhat.com>
10588
261c4ca2
MS
10589 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10590 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10591
e00d1dc8
AC
105922002-02-01 Andrew Cagney <ac131313@redhat.com>
10593
10594 * command.h (NO_FUNCTION): Delete macro.
10595 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10596 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10597 * tracepoint.c (_initialize_tracepoint): Ditto.
10598 * cli/cli-decode.c (add_set_cmd): Ditto.
10599 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10600
76b79d6e
DJ
106012002-02-01 Daniel Jacobowitz <drow@mvista.com>
10602
10603 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10604 Update ``this'' pointer when calling virtual functions.
10605
799f9e91
MS
106062002-02-01 Michael Snyder <msnyder@redhat.com>
10607
c7bd442c 10608 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10609 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10610
3cf384d4
DJ
106112002-02-01 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * regformats/reg-arm.dat: New file.
10614 * regformats/reg-i386.dat: New file.
10615 * regformats/reg-ia64.dat: New file.
10616 * regformats/reg-m68k.dat: New file.
10617 * regformats/reg-mips.dat: New file.
10618 * regformats/reg-ppc.dat: New file.
10619 * regformats/reg-sh.dat: New file.
10620 * regformats/regdef.h: New file.
10621 * regformats/regdat.sh: New file.
10622
0defa245
RE
106232002-02-01 Richard Earnshaw <reanrsha@arm.com>
10624
10625 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10626 (arm_frame_args_address, arm_frame_locals_address): New functions.
10627 (arm_frame_num_args): New function.
10628 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10629 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10630 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10631
405f26e6
MS
106322002-01-31 Michael Snyder <msnyder@redhat.com>
10633
502fd408
MS
10634 * breakpoint.c (break_at_finish_command): Export.
10635 (break_at_finish_at_depth_command): Export.
10636 (tbreak_at_finish_command): Export.
d6020d45 10637 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10638 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10639 "txbreak" commands, which are HPPA specific.
502fd408 10640
7d35e135
MS
10641 * printcmd.c (disassemble_command): Remove an ancient
10642 artifact of an old merge.
10643
aaa38bb5 10644 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10645 Define enum constant values for overlay mode.
10646 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10647 (overlay_is_mapped, overlay_auto_command,
10648 overlay_manual_command): Ditto.
d874f1e2 10649
aaa38bb5
AJ
10650 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10651 breakpoint_here_p, breakpoint_inserted_here_p,
10652 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10653 describe_other_breakpoints, check_duplicates, clear_command):
10654 Coding standard fixes.
10655
8add0441 10656 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10657 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10658 code: check bfd SEC_READONLY flag for section.
10659
e351066e
AC
106602002-01-31 Andrew Cagney <ac131313@redhat.com>
10661
7d35e135 10662 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10663
8a48e967
DJ
106642002-01-30 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10667 data symbols, since we search based on textlow and texthigh.
10668 (find_pc_sect_symtab): Likewise.
10669
f5a96129
AC
106702002-01-30 Andrew Cagney <ac131313@redhat.com>
10671
10672 * defs.h (vwarning): Declare.
f5a96129
AC
10673 * utils.c (vwarning): New function.
10674 (warning): Call vwarning.
10675 (warning_begin): Delete function.
10676
10677 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10678 the warning message.
10679 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10680 warning_begin.
10681
cefd4ef5
MS
106822002-01-30 Michael Snyder <msnyder@redhat.com>
10683
1a703748
MS
10684 * NEWS: Mention "set trust-readonly-sections" command.
10685 Mention generate-core-file command.
cefd4ef5 10686
3a11626d
MS
106872002-01-15 Michael Snyder <msnyder@redhat.com>
10688
10689 * target.c: New command, "set trust-readonly-sections on".
10690 (do_xfer_memory): Honor the suggestion to trust readonly sections
10691 by reading them from the object file instead of from the target.
10692 (initialize_targets): Register command "set trust-readonly-sections".
10693
d1c7e53b
AC
106942002-01-29 Andrew Cagney <ac131313@redhat.com>
10695
10696 * parse.c (target_map_name_to_register): Simplify, search regs and
10697 pseudo-regs using a single loop.
10698
e2c9a72c
AC
106992002-01-30 Andrew Cagney <ac131313@redhat.com>
10700
10701 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10702
69824b4e
MK
107032002-01-15 Rodney Brown <rbrown64@csc.com.au>
10704
10705 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10706 * config/i386/i386v42mp.mh: Add i387-nat.o .
10707 * i386v4-nat.c: Include i387-nat.h.
10708 (supply_fpregset): Use i387_supply_fsave.
10709 (fill_fpregset): Use i387_fill_fsave.
10710
6eb69eab
RE
107112002-01-30 Richard Earnshaw <rearnsha@arm.com>
10712
10713 * arm-tdep.c (arm_call_dummy_words): Define.
10714 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10715 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10716 (CALL_DUMMY_WORDS): Define.
10717 (arm_call_dummy_words): Declare.
10718 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10719 (arm_linux_call_dummy_words): Declare.
10720
9852326a
AS
107212002-01-30 Andreas Schwab <schwab@suse.de>
10722
10723 * m68klinux-nat.c: Fix last change to use regcache_collect
10724 instead of referencing registers[] directly.
10725
977a3030
AC
107262002-01-29 Andrew Cagney <ac131313@redhat.com>
10727
10728 * parse.c (target_map_name_to_register): Delete code wrapped in
10729 #ifdef REGISTER_NAME_ALIAS_HOOK.
10730
2076c72b
MS
107312002-01-28 Michael Snyder <msnyder@redhat.com>
10732
10733 * regcache.c (legacy_read_register_gen): Need to be able to
10734 read pseudo-register as well as real register.
10735 (legacy_write_register_gen): Ditto.
10736
8fcc723b
AC
107372002-01-28 Andrew Cagney <ac131313@redhat.com>
10738
10739 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10740 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10741 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10742 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10743 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10744 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10745 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10746 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10747 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10748 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10749 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10750 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10751 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10752 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10753 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10754 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10755 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10756 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10757 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10758 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10759
afe64c1a
AC
107602002-01-28 Andrew Cagney <ac131313@redhat.com>
10761
10762 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10763 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10764 (initialize_current_architecture): Update target_byte_order using
10765 information from BFD.
aaa38bb5 10766 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10767 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10768
75bc7ddf
AC
107692002-01-28 Andrew Cagney <ac131313@redhat.com>
10770
10771 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10772 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10773
10774 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10775 #ifdef INVALID_FLOAT.
10776 * infcmd.c (do_registers_info): Ditto.
10777 * values.c (unpack_double): Ditto. Add comment.
10778
10779 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10780 already commented out.
10781
0280a90a
AS
107822002-01-26 Andreas Schwab <schwab@suse.de>
10783
10784 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10785 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10786 registers and add support for PTRACE_GETREGS.
10787
7072a954
AC
107882002-01-24 Andrew Cagney <ac131313@redhat.com>
10789
10790 GDB 5.1.1 released from 5.1 branch.
10791 * NEWS: Add 5.1.1 news.
10792 * README: Sync with 5.1 branch.
10793
86f902e0
FF
107942002-01-23 Fred Fish <fnf@redhat.com>
10795
10796 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10797 stabstring on initial malloc. Reallocing will copy it for us,
10798 if necessary.
10799
8af51c36
EZ
108002002-01-23 Elena Zannoni <ezannoni@redhat.com>
10801
aaa38bb5 10802 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10803 (HFILES_NO_SRCDIR): Remove hpread.h.
10804 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10805 (hpread.o): Update dependencies.
10806 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10807
10808 * hp-psymtab-read.c: Remove file.
10809 * hp-symtab-read.c: Remove file.
10810 * hpread.h: Remove file.
10811
10812 * hpread.c: Merge all contents of hp-psymtab-read.c,
10813 hp-symtab-read.c and hpread.h into this file, as it was prior to
10814 January 1999.
10815
10816 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10817 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10818 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10819 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10820
dc5cfeb6
EZ
108212002-01-23 Elena Zannoni <ezannoni@redhat.com>
10822
10823 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10824 fill_gregset): Call gdbarch_tdep() just once, assign result to
10825 variable and use that, instead of calling the function several
10826 times.
10827
ea87b71b
AO
108282002-01-24 Alexandre Oliva <aoliva@redhat.com>
10829
10830 * configure.host: Accept sparcv9 as alias for sparc64.
10831 * configure.tgt: Likewise.
10832
13fc0c2f
KB
108332002-01-22 Kevin Buettner <kevinb@redhat.com>
10834
10835 * solib-aix5.c (build_so_list_from_mapfile)
10836 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10837 arguments is not reversed.
10838 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10839 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10840
7bd872fe
EZ
108412002-01-22 Elena Zannoni <ezannoni@redhat.com>
10842
10843 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10844 modified version of obsolete sh_fetch_pseudo_register.
10845 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10846 (sh4_register_read): New function.
10847 (sh_pseudo_register_write): New function. Renamed and modified
10848 version of obsolete sh_store_pseudo_register.
10849 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10850 (sh4_register_write): New function.
10851 (sh_gdbarch_init): Remove setting of gdbarch function
10852 fetch_pseudo_register and store_pseudo_register. Remove setting of
10853 register_convert_to_raw, register_convert_to_virtual,
10854 register_convertible.
10855 (sh_sh4_register_convertible): Delete. No longer needed. All is
10856 taken care by architecture specific functions
10857 register_read/register_write.
10858 (sh_sh4_register_convert_to_virtual): Make static.
10859 (sh_sh4_register_convert_to_raw): Ditto.
10860
069e84fd
AC
108612002-01-22 Andrew Cagney <ac131313@redhat.com>
10862
10863 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10864 (floatformat_is_nan, floatformat_mantissa): Ditto.
10865
10866 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10867 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10868 builtin_type_ieee_double_little,
10869 builtin_type_ieee_double_littlebyte_bigword,
10870 builtin_type_m68881_ext, builtin_type_i960_ext,
10871 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10872 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10873 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10874 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10875
211a4f69
CV
108762002-01-22 Corinna Vinschen <vinschen@redhat.com>
10877
10878 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10879 parameter. Set frameless flag if it exists and depended of
10880 whether the scanned function is frameless or not.
10881 (xstormy16_skip_prologue): If function is frameless, return
10882 result of xstormy16_scan_prologue().
10883 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10884 call.
10885
f81353e4
EZ
108862002-01-21 Elena Zannoni <ezannoni@redhat.com>
10887
10888 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10889 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10890 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10891 sh_sh4_register_byte, sh_sh4_register_raw_size,
10892 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10893 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10894 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10895 sh_store_pseudo_register, sh_do_pseudo_register): Call
10896 gdbarch_tdep() just once, assign result to variable and use that,
10897 instead of calling the function several times.
10898
63c73a17
MK
108992002-01-20 Mark Kettenis <kettenis@gnu.org>
10900
10901 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10902 macros instead of LAST_FPU_CTRL_REGNUM.
10903 (store_register): Likewise.
10904
39ad761d
JB
109052002-01-21 Jim Blandy <jimb@redhat.com>
10906
10907 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10908 is up-to-date before running the program, not just when a program
10909 exits.
10910
3d74b771
FF
109112002-01-21 Fred Fish <fnf@redhat.com>
10912
10913 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10914 when we have found all instructions we are looking for.
10915
966fbf70
RE
109162002-01-21 Richard Earnshaw <rearnsha@arm.com>
10917
10918 * arm-tdep.c (arm_register_name): New function.
10919 (arm_registers_names): Make static.
10920 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10921 (arm_register_name): Declare.
10922 (REGISTER_NAME): Use it.
10923
c3b4394c
RE
109242002-01-21 Richard Earnshaw <rearnsha@arm.com>
10925 Kevin Buettner <kevinb@redhat.com>
10926
10927 Convert arm targets to new FRAME interface.
10928 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10929 (arm_frame_find_save_regs): Delete.
10930 (arm_frame_init_saved_regs): New.
10931 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10932 Allocate extra_info as required. Convert all uses of fsr.regs
10933 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10934 to use extra_info.
10935 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10936 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10937 (check_prologue_cache, save_prologue_cache): Likewise.
10938 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10939 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10940 (FRAME_FIND_SAVED_REGS): Delete.
10941 (arm_frame_find_saved_regs): Delete prototype.
10942 (arm_frame_init_saved_regs): New prototype.
10943 (FRAME_INIT_SAVED_REGS): Define.
10944
61d99182
AC
109452002-01-20 Andrew Cagney <ac131313@redhat.com>
10946
10947 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10948
6aaea291
AC
109492002-01-20 Andrew Cagney <ac131313@redhat.com>
10950
10951 From Jeff Law <law@redhat.com>:
10952 * infttrace.c: Include <sys/pstat.h>.
10953 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10954 exec file if the ttrace equivalent fails.
10955
15f698d2
AC
109562002-01-20 Andrew Cagney <ac131313@redhat.com>
10957
10958 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10959 (closeLogFile): Ditto.
10960
f86ddd7c
MC
109612002-01-20 Michael Chastain <mec@shout.net>
10962
10963 * top.c (print_gdb_version): Bump copyright year to 2002.
10964
904507ce
AC
109652002-01-20 Andrew Cagney <ac131313@redhat.com>
10966
10967 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10968 Zannoni and Eli Zaretskii.
10969
d7f0b9ce
DJ
109702002-01-20 Daniel Jacobowitz <drow@mvista.com>
10971
10972 * buildsym.c: Update copyright years.
10973 * c-typeprint.c: Likewise.
10974 * dwarf2read.c: Likewise.
10975 * f-typeprint.c: Likewise.
10976 * gdbtypes.c: Likewise.
10977 * gdbtypes.h: Likewise.
10978 * hp-symtab-read.c: Likewise.
10979 * hpread.c: Likewise.
10980 * mdebugread.c: Likewise.
10981 * p-typeprint.c: Likewise.
10982
3fd3d7d2
AC
109832002-01-20 Andrew Cagney <ac131313@redhat.com>
10984
10985 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10986 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10987 byte-order selectable.
10988 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10989 * arch-utils.c: Ditto.
10990 (set_endian): Ditto.
10991 (set_endian_from_file): Ditto.
10992 * gdbserver/low-sim.c (create_inferior): Ditto.
10993 * gdbarch.sh: Ditto.
10994 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10995 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10996 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10997 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10998 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10999 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11000 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11001 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
11002 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11003 macro definition.
11004 * config/mips/tm-wince.h: Remove #undef of macro
11005 TARGET_BYTE_ORDER_SELECTABLE.
11006 * config/sh/tm-wince.h: Ditto.
11007
b02dede2
DJ
110082002-01-20 Daniel Jacobowitz <drow@mvista.com>
11009
11010 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11011 member function fields. Add accessor macro
11012 TYPE_FN_FIELD_ARTIFICIAL.
11013 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11014 * c-typeprint.c (c_type_print_base): Skip artificial member
11015 functions.
11016
c3643761
DJ
110172002-01-20 Daniel Jacobowitz <drow@mvista.com>
11018
11019 * f-typeprint.c: Delete unused function f_type_print_args.
11020 * p-typeprint.c: Delete unused function pascal_type_print_args.
11021
8176bb6d
DJ
110222002-01-20 Daniel Jacobowitz <drow@mvista.com>
11023
11024 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11025 comment. Add ``artificial'' to ``union field_location''.
11026
11027 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11028
11029 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11030 * mdebugread.c (parse_symbol): Likewise.
11031 * stabsread.c (define_symbol): Likewise.
11032 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11033 initializing TYPE_FIELD_BITPOS to n (obsolete).
11034 (hpread_doc_function_type): Likewise.
11035 * hpread.c (hpread_function_type): Likewise.
11036
7fd60527
AC
110372002-01-20 Andrew Cagney <ac131313@redhat.com>
11038
11039 * configure.in (host_makefile_frag): Only require a host makefile
11040 fragment when a native build.
11041 * configure: Re-generate.
11042
c2f05ac9
AC
110432002-01-20 Andrew Cagney <ac131313@redhat.com>
11044
11045 * doublest.h (floatformat_from_type): Declare.
11046 * doublest.c (floatformat_from_type): New function.
11047 (convert_typed_floating): Use.
11048
11049 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11050 call to function floatformat_from_type.
11051
11052 * gdbarch.sh (IEEE_FLOAT): Delete.
11053 * gdbarch.h, gdbarch.c: Re-generate.
11054 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11055 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11056 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11057 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11058 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11059 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11060 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11061 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11062 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11063 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11064 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11065 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11066
11067 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11068 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11069 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11070 * sh-tdep.c (sh_gdbarch_init): Ditto.
11071 * mips-tdep.c (mips_gdbarch_init): Ditto.
11072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11073 * cris-tdep.c (cris_gdbarch_init): Ditto.
11074
abf22e64
AJ
110752002-01-20 Jiri Smid <smid@suse.cz>
11076
11077 * configure.host, configure.tgt: Support x86-64.
11078 * NEWS: Note new target x86-64.
11079
b7c4cbf8
AJ
11080 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11081 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11082 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11083 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11084 x86-64-linux-nat.o): Fix dependencies.
11085
82600034
AC
110862002-01-19 Andrew Cagney <ac131313@redhat.com>
11087
11088 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11089 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11090 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11091 * config/sparc/xm-sun4os4.h: Delete file.
11092 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11093
bbe5c628
AC
110942002-01-19 Andrew Cagney <ac131313@redhat.com>
11095
11096 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11097 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11098 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11099 * config/i386/i386lynx.mh (XM_FILE): Delete.
11100 * config/rs6000/xm-rs6000ly.h: Delete file.
11101 * config/sparc/xm-sparclynx.h: Delete file.
11102 * config/m68k/xm-m68klynx.h: Delete file.
11103 * config/i386/xm-i386lynx.h: Delete file.
11104 * config/xm-lynx.h: Delete file.
11105 * config/djgpp/fnchange.lst: Update.
11106
f8453e34
JT
111072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11108
11109 * alpha-tdep.c (alpha_register_byte): New function.
11110 (alpha_register_raw_size): Ditto.
11111 (alpha_register_virtual_size): Ditto.
11112 (alpha_skip_prologue_internal): Renamed from
11113 alpha_skip_prologue.
11114 (alpha_skip_prologue): New version that calls
11115 alpha_skip_prologue_internal.
11116 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11117 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11118 second argument from alpha_skip_prologue.
11119 (REGISTER_BYTE): Use alpha_register_byte.
11120 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11121 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11122 (FRAMELESS_FUNCTION_INVOCATION): Use
11123 generic_frameless_function_invocation_not.
11124 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11125 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11126
52d9e613
AC
111272002-01-19 Andrew Cagney <ac131313@redhat.com>
11128
11129 * config/mips/xm-news-mips.h: Delete file.
11130 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11131
11132 * config/m88k/xm-m88k.h: Delete file.
11133 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11134 * config/m88k/xm-delta88v4.h: Ditto.
11135 * config/m88k/xm-delta88.h: Ditto.
11136
11137 * config/alpha/xm-fbsd.h: Delete file.
11138 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11139
11140 * config/sparc/xm-sparc.h: Delete file.
11141 * Makefile.in (xm-sun4os4.h): Delete dependency.
11142 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11143 * config/sparc/xm-sun4os4.h: Ditto.
11144 * config/sparc/xm-linux.h: Ditto.
11145
11146 * config/i386/xm-windows.h: Delete file.
11147
2d1b2124
AC
111482002-01-19 Andrew Cagney <ac131313@redhat.com>
11149
11150 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11151 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11152
ee1f65f0
JT
111532002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11154
11155 * alpha-tdep.c (alpha_call_dummy_words): New.
11156 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11157 (CALL_DUMMY_P): Define.
11158 (CALL_DUMMY_WORDS): Define.
11159 (SIZEOF_CALL_DUMMY_WORDS): Define.
11160
98081e55
PB
111612002-01-19 Per Bothner <per@bothner.com>
11162
11163 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11164 isn't NULL, which can happen with some gcj-3.x-produced code.
11165
0d056799
JT
111662002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11167
11168 * alpha-tdep.c (alpha_register_virtual_type): New function.
11169 (alpha_init_frame_pc_first): Ditto.
11170 (alpha_fix_call_dummy): Ditto.
11171 (alpha_store_struct_return): Ditto.
11172 (alpha_extract_struct_value_address): Ditto.
11173 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11174 alpha_register_virtual_type.
11175 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11176 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11177 alpha_extract_struct_value_address.
11178 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11179 (INIT_FRAME_PC): Use init_frame_pc_noop.
11180 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11181
4604bcad
MK
111822002-01-19 Mark Kettenis <kettenis@gnu.org>
11183
11184 * i386gnu-nat.c: Include "i386-tdep.h".
11185 (fetch_fpregs): Simplify code dealing with uninitialized floating
11186 point states such that it doesn't require FP7_REGNUM.
11187
140f9984
JT
111882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11189
abf22e64
AJ
11190 * alpha-tdep.c (frame_extra_info): New.
11191 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11192 frame->extra_info.
11193 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11194 (alpha_frame_saved_pc): Use frame->extra_info.
11195 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11196 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11197 (init_extra_frame_info): Rename to...
11198 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11199 (alpha_print_extra_frame_info): New function.
140f9984
JT
11200 (alpha_frame_locals_address): Ditto.
11201 (alpha_frame_args_address): Ditto.
abf22e64 11202 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11203 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11204 alpha_frame_args_address.
abf22e64 11205 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11206 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11207 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11208 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11209 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11210 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11211
d734c450
JT
112122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11213
11214 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11215 (alpha_cannot_fetch_register): Ditto.
11216 (alpha_cannot_store_register): Ditto.
11217 (alpha_register_convertible): Ditto.
11218 (alpha_use_struct_convention): Ditto.
11219 * config/alpha/tm-alpha.h: Update copyright years.
11220 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11221 (INNER_THAN): Use core_addr_lessthan.
11222 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11223 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11224 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11225 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11226 (FRAME_CHAIN): Remove unnecessary cast.
11227
b4ceaee6
AC
112282002-01-18 Andrew Cagney <ac131313@redhat.com>
11229
11230 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11231 obsolete.
11232
0a65a603
AC
112332002-01-18 Andrew Cagney <ac131313@redhat.com>
11234
11235 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11236 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11237 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11238 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11239 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11240 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11241 * x86-64-linux-nat.c: Ditto.
11242
636a6dfc
JT
112432002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11244
abf22e64 11245 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11246 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11247 (REGISTER_NAME): Define.
11248
acceddb6
JT
112492002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11250
11251 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11252
ec32e4be
JT
112532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11254
11255 * alpha-tdep.c: Update copyright years.
11256 (alpha_next_pc): New function.
11257 (alpha_software_single_step): Ditto.
11258 * config/alpha/tm-alpha.h: Add prototype for
11259 alpha_software_single_step.
11260
e771a871
JT
112612002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11262
11263 * alphabsd-nat.c: Update copyright years.
11264 (fill_gregset): Use regcache_collect.
11265 (fill_fpregset): Likewise.
11266 (fetch_inferior_registers): Only fetch integer registers
11267 if requested to do so.
11268 (store_inferior_registers): Only store integer registers
11269 if requested to do so.
11270
7708fa01
AC
112712002-01-17 Andrew Cagney <ac131313@redhat.com>
11272
11273 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11274 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11275 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11276 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11277 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11278 * config/arm/linux.mh (XDEPFILES): Delete.
11279 * config/arm/nbsd.mh (XDEPFILES): Delete.
11280 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11281 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11282 * config/i386/i386m3.mh (XDEPFILES): Delete.
11283 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11284 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11285 * config/i386/fbsd.mh (XDEPFILES): Delete.
11286 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11287 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11288 * config/i386/i386v4.mh (XDEPFILES): Delete.
11289 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11290 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11291 * config/i386/i386aix.mh (XDEPFILES): Delete.
11292 * config/i386/go32.mh (XDEPFILES): Delete.
11293 * config/i386/cygwin.mh (XDEPFILES): Delete.
11294 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11295 * config/i386/i386mach.mh (XDEPFILES): Delete.
11296 * config/i386/i386v32.mh (XDEPFILES): Delete.
11297 * config/i386/linux.mh (XDEPFILES): Delete.
11298 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11299 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11300 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11301 * config/i386/i386sco.mh (XDEPFILES): Delete.
11302 * config/i386/i386v.mh (XDEPFILES): Delete.
11303 * config/i386/nbsd.mh (XDEPFILES): Delete.
11304 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11305 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11306 * config/i386/symmetry.mh (XDEPFILES): Delete.
11307 * config/i386/obsd.mh (XDEPFILES): Delete.
11308 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11309 * config/ia64/linux.mh (XDEPFILES): Delete.
11310 * config/ia64/aix.mh (XDEPFILES): Delete.
11311 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11312 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11313 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11314 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11315 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11316 * config/m68k/linux.mh (XDEPFILES): Delete.
11317 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11318 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11319 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11320 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11321 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11322 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11323 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11324 * config/m88k/delta88.mh (XDEPFILES): Delete.
11325 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11326 * config/m88k/m88k.mh (XDEPFILES): Delete.
11327 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11328 * config/mips/linux.mh (XDEPFILES): Delete.
11329 * config/mips/irix6.mh (XDEPFILES): Delete.
11330 * config/mips/irix5.mh (XDEPFILES): Delete.
11331 * config/mips/irix4.mh (XDEPFILES): Delete.
11332 * config/mips/irix3.mh (XDEPFILES): Delete.
11333 * config/mips/decstation.mh (XDEPFILES): Delete.
11334 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11335 (NATDEPFILES): Move core-aout.o to here.
11336 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11337 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11338 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11339 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11340 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11341 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11342 * config/pa/hpux11.mh (XDEPFILES): Delete.
11343 * config/powerpc/aix.mh (XDEPFILES): Delete.
11344 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11345 * config/powerpc/linux.mh (XDEPFILES): Delete.
11346 * config/romp/rtbsd.mh: Rename XDEPFILES.
11347 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11348 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11349 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11350 * config/s390/s390.mh (XDEPFILES): Delete.
11351 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11352 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11353 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11354 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11355 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11356 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11357 * config/sparc/linux.mh (XDEPFILES): Delete.
11358 * config/vax/vaxult.mh (XDEPFILES): Delete.
11359 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11360 * Makefile.in (DEPFILES): Remove XDEPFILES.
11361
375fc983
AC
113622002-01-17 Andrew Cagney <ac131313@redhat.com>
11363
11364 * utils.c (internal_verror): Fix comments, default is yes not no.
11365 Update queries to match. Default to quit and dump core.
11366
8926118c
AC
113672002-01-17 Andrew Cagney <ac131313@redhat.com>
11368
11369 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11370 copyright.
11371 * defs.h, event-top.c, gdbcmd.h: Ditto.
11372 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11373 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11374 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11375 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11376 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11377 * mi/mi-main.c:Ditto.
11378
11379 * stack.c, symfile.c: Update copyright.
11380
45b7b345
DJ
113812002-01-17 Daniel Jacobowitz <drow@mvista.com>
11382
db728ff7
DJ
11383 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11384 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11385 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11386 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11387
db728ff7
DJ
113882002-01-17 Daniel Jacobowitz <drow@mvista.com>
11389
11390 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11391 * gdbserver/low-lynx.c (myattach): Likewise.
11392 * gdbserver/low-nbsd.c (myattach): Likewise.
11393 * gdbserver/low-sim.c (myattach): Likewise.
11394 * gdbserver/low-sparc.c (myattach): Likewise.
11395 * gdbserver/low-sun3.c (myattach): Likewise.
11396
11397 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11398
db728ff7 11399 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11400 (main): Handle "--attach".
11401
8de3c354
AC
114022002-01-16 Andrew Cagney <ac131313@redhat.com>
11403
11404 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11405 maintainer.
11406
b0129042
DJ
114072002-01-15 Daniel Jacobowitz <drow@mvista.com>
11408
11409 * c-typeprint.c (is_type_conversion_operator): Add additional
11410 check for non-conversion operators.
11411
ba8679fb 114122002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11413
11414 * linux-proc.c: Add "info proc" command, a la procfs.c.
11415 (read_mapping): New function, abstract and re-use code.
11416 (linux_find_memory_regions): Use new func read_mapping.
11417 (linux_info_proc_cmd): New function, implement "info proc".
11418 (_initialize_linux_proc): Add new command "info proc".
11419
e4f9b4d5
MS
114202002-01-15 Michael Snyder <msnyder@redhat.com>
11421
11422 * symfile.c (generic_load): Use bfd_map_over_sections method
11423 instead of manipulating bfd structure members directly.
11424 (add_section_size_callback): New function, bfd sections callback
11425 used by generic_load.
11426 (load_sections_callback): New function, bfd sections callback
11427 used by generic_load.
11428
08cf96df
EZ
114292002-01-15 Elena Zannoni <ezannoni@redhat.com>
11430
abf22e64 11431 [Based on work by Jim Blandy]
08cf96df
EZ
11432 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11433 (builtin_type_vec128): Export.
11434 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11435 types.
11436 (builtin_type_vec128): New builtin type for 128 bit vector
11437 registers.
11438 (build_gdbtypes): Initialize builtin_type_v16qi and
11439 builtin_type_v8hi. Create the vec128 register builtin type
11440 structure.
11441 (build_builtin_type_vec128): New function.
abf22e64 11442 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11443 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11444 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11445 AltiVec register to new builtin type.
11446
d7242108
DJ
114472001-01-15 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11450 to make_cv_type.
11451
4ee3352d
AC
114522002-01-14 Andrew Cagney <ac131313@redhat.com>
11453
11454 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11455 CLEAN_UP_REGISTER_VALUE.
11456 * regcache.c (supply_register): Update only call.
11457
f015b2e7
AC
114582002-01-14 Andrew Cagney <ac131313@redhat.com>
11459
11460 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11461 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11462 a29k-*-vxworks* targets as obsolete.
11463
356ae49d
MS
114642002-01-14 Michael Snyder <msnyder@redhat.com>
11465
11466 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11467 until we can resolve portability issues.
11468 * gregset.h: Remove references to fpxregs.
11469 * gcore.c (gcore_command): Initialize note_sec to NULL.
11470
ade8f45e
AC
114712002-01-13 Andrew Cagney <ac131313@redhat.com>
11472
11473 * signals.c (target_signal_to_name): Rewrite. Only use
11474 signals[].name when in bounds and non-NULL.
abf22e64 11475
89c49e7a
AC
114762002-01-13 Andrew Cagney <ac131313@redhat.com>
11477
11478 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11479 * signals.c (target_signal_to_name): Verify that SIG is within the
11480 bounds of the signals array.
11481
4daa9f9f
AC
114822002-01-13 Andrew Cagney <ac131313@redhat.com>
11483
11484 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11485
ba4bbdcb
KS
114862002-01-13 Keith Seitz <keiths@redhat.com>
11487
11488 * stack.c (print_frame_info_base): Print the frame's pc
11489 only if when print_frame_info_listing_hook is not defined.
11490
575bbeb6
KS
114912002-01-13 Keith Seitz <keiths@redhat.com>
11492
11493 * varobj.c (varobj_set_value): Make sure that there were no
11494 errors evaluating the object before attempting to set its
11495 value.
11496 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11497 so this offset adjustment is no longer necessary.
11498 (create_child): Don't set the error flag if the child is
11499 a CPLUS_FAKE_CHILD.
11500 (value_of_child): If value_fetch_lazy fails, return NULL
11501 so that callers will be notified that an error occurred.
11502 (c_value_of_variable): Delay check of variable's validity
11503 until later. We actually want all structs and unions to have
11504 the value "{...}".
11505 Do not return "???" for variables which could not be evaluated.
11506 This error condition must be returned to the caller so that it
11507 can get the error condition from gdb.
11508 (cplus_name_of_child): Adjust index for vptr before figuring
11509 out the name of the child.
11510 (cplus_value_of_child): If a child's (real) parent is not valid,
11511 don't even bother trying to give a value for it. Just return
11512 an error. Change all instances in this function.
11513 (cplus_type_of_child): If our parent is one of the "fake"
11514 parents, we need to get at the type of the real parent, and
11515 derive the child's true type using this information.
11516
b76898ab
AC
115172002-01-13 Andrew Cagney <ac131313@redhat.com>
11518
11519 From 2002-01-09 John Marshall <johnm@falch.net>:
11520 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11521 sources.redhat.com, and tweak some related URLs which had
11522 suffered from linkrot.
11523
b6649e88
AC
115242002-01-13 Andrew Cagney <ac131313@redhat.com>
11525
11526 From Jeff law:
11527 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11528 structures passed in registers.
11529
82cc5033
EZ
115302002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11531
11532 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11533 white space which prevented compilation. Reported by DSK
11534 <dsk@student.unsw.edu.au>.
11535
ba5f2f8a
MS
115362002-01-11 Michael Snyder <msnyder@redhat.com>
11537
fbd35540
MS
11538 * symfile.c (build_section_addr_info_from_section_tab):
11539 Use bfd access method instead of manipulating bfd directly.
11540 (syms_from_objfile): Ditto.
11541 (simple_overlay_update_1): Ditto.
11542 (simple_overlay_update): Ditto.
11543 (generic_load): Ditto.
11544 (overlay_unmapped_address): FIXME comment, bfd access methods.
11545 (sections_overlap): FIXME comment, bfd access methods.
11546 (pc_in_mapped_range): FIXME comment, bfd access methods.
11547 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11548 (section_is_mapped): FIXME comment, bfd access methods.
11549 (section_is_overlay): FIXME comment, bfd access methods.
11550
ba5f2f8a
MS
11551 * symfile.c (generic_load): Whitespace and long line cleanups.
11552 Remove duplicate variable, change several local variables to
11553 more appropriate data types.
11554 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11555
17df2af6
AC
115562002-01-12 Andrew Cagney <ac131313@redhat.com>
11557
11558 From Peter Schauer:
11559 * language.c (longest_local_hex_string_custom): Use phex_nz to
11560 convert NUM to a hex string.
11561
ec920329
EZ
115622002-01-12 Elena Zannoni <ezannoni@redhat.com>
11563
11564 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11565 the function.
538a76d6 11566 Update Copyright year.
ec920329 11567
3abd2e01
AC
115682002-01-12 Andrew Cagney <ac131313@redhat.com>
11569
11570 * language.c (longest_raw_hex_string): Delete unused function.
11571
b21b22e0
PS
115722002-01-11 Petr Sorfa <petrs@caldera.com>
11573
11574 * MAINTAINERS (write-after-approval): Add myself.
11575 * dwarf2read.c (read_tag_string_type): Handling of
11576 DW_AT_byte_size.
11577 (read_tag_string_type): FORTRAN fix to prevent propagation of
11578 first string size.
11579 (set_cu_language): Handling of DW_LANG_Fortran95
11580
747fe712
RE
115812002-01-11 Richard Earnshaw <rearnsha@arm.com>
11582
11583 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11584 GETPID(inferior_ptid).
11585 (store_inferior_registers): Likewise.
11586
f1bea926
JM
115872002-01-10 Jason Merrill <jason@redhat.com>
11588
11589 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11590 Fix DW_OP_minus.
11591
ae940673
AC
115922002-01-10 Andrew Cagney <ac131313@redhat.com>
11593
11594 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11595 and bfd/elf32-sh-nbsd.c.
11596
00546b04
MS
115972002-01-10 Michael Snyder <msnyder@redhat.com>
11598
352ed7b4
MS
11599 * NEWS: Mention --pid and corefile/proc-id behavior change.
11600
c18be923
MS
11601 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11602 * gcore.c: Include cli/cli-decode.h instead of command.h.
11603
00546b04
MS
11604 * main.c (captured_main): Add new command line option "--pid".
11605 If the second command line argument (following the symbol-file)
11606 begins with a digit, try to attach to it before trying to open
11607 it as a corefile.
11608 (print_gdb_help): Document the "--pid" argument.
11609
db60ec62
EZ
116102002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11611
11612 * completer.c (command_completer): New function.
11613
11614 * completer.h <command_completer>: Add prototype.
11615
11616 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11617 completer for the "help" command.
11618
39c22d1a
JM
116192002-01-09 Jason Merrill <jason@redhat.com>
11620
11621 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11622
c564377f
MS
116232002-01-09 Michael Snyder <msnyder@redhat.com>
11624
975aec09
MS
11625 * i386-linux-nat.c (fill_fpxregset): Make global.
11626 (store_fpxregset): Ditto.
11627
db4a10fa
MS
11628 * gregset.h (gdb_fpxregset_t): Define.
11629 (supply_fpxregset): Prototype.
11630 (fill_fpxregset): Prototype.
11631
c564377f
MS
11632 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11633
c3d45d70
RE
116342002-01-09 Richard Earnshaw <rearnsha@arm.com>
11635
11636 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11637 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11638 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11639
fcc87af1
AC
116402002-01-09 Andrew Cagney <ac131313@redhat.com>
11641
11642 * MAINTAINERS: Update target maintainer rules so that any
11643 Maintainer can approve a tested patch for a maintenance-only
11644 target.
11645
dd96c05b
RE
116462002-01-09 Richard Earnshaw <rearnsha@arm.com>
11647
d4297db9 11648 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11649
d4297db9 11650 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11651 IN_SIGTRAMP.
11652
145fdc6e
MS
116532002-01-08 Michael Snyder <msnyder@redhat.com>
11654
11655 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11656 real name of the executable, rather than the /proc name.
11657
be4d1333
MS
116582002-01-03 Michael Snyder <msnyder@redhat.com>
11659
11660 Implement a "generate-core-file" command in gdb, save target state.
11661 * gcore.c: New file. Implement new command 'generate-core-file'.
11662 Save a corefile image of the current state of the inferior.
11663 * linux-proc.c: Add linux-specific code for saving corefiles.
11664 * target.h (struct target_ops): Add new target vectors for saving
11665 corefiles; to_find_memory_regions and to_make_corefile_notes.
11666 (target_find_memory_regions): New macro.
11667 (target_make_corefile_notes): New macro.
11668 * target.c (update_current_target): Inherit new target methods.
11669 (dummy_find_memory_regions): New place-holder method.
11670 (dummy_make_corefile_notes): New place-holder method.
11671 (init_dummy_target): Initialize new dummy target vectors.
11672 * exec.c (exec_set_find_memory_regions): New function.
11673 Allow the exec_ops vector for memory regions to be taken over.
11674 (exec_make_note_section): New function, target vector method.
11675 * defs.h (exec_set_find_memory_regions): Export prototype.
11676 * procfs.c (proc_find_memory_regions): New function, corefile method.
11677 (procfs_make_note_section): New function, corefile method.
11678 (init_procfs_ops): Set new target vector pointers.
11679 (find_memory_regions_callback): New function.
11680 (procfs_do_thread_registers): New function.
11681 (procfs_corefile_thread_callback): New function.
11682 * sol-thread.c (sol_find_memory_regions): New function.
11683 (sol_make_note_section): New function.
11684 (init_sol_thread_ops): Initialize new target vectors.
11685 * inftarg.c (inftarg_set_find_memory_regions): New function.
11686 Allow to_find_memory_regions vector to be taken over.
11687 (inftarg_set_make_corefile_notes): New function.
11688 Allow to_make_corefile_notes vector to be taken over.
11689 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11690 interface layer if not target_has_execution (may be a corefile).
11691 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11692 * config/sparc/sun4sol2.mh: Ditto.
11693 * config/alpha/alpha-linux.mh: Ditto.
11694 * config/arm/linux.mh: Ditto.
11695 * config/i386/x86-64linux.mh: Ditto.
11696 * config/ia64/linux.mh: Ditto.
11697 * config/m68k/linux.mh: Ditto.
11698 * config/mips/linux.mh: Ditto.
11699 * config/powerpc/linux.mh: Ditto.
11700 * config/sparc/linux.mh: Ditto.
11701
c6b92abd
MS
117022002-01-07 Michael Snyder <msnyder@redhat.com>
11703
11704 * arm-linux-nat.c: Remove references to regcache.c internal data
11705 (registers[] and register_valid[]).
11706
4b09dc8c
MS
117072002-01-07 Michael Snyder <msnyder@redhat.com>
11708
abf22e64
AJ
11709 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11710 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11711 symbol file and shlibs.
11712 * Makefile.in: Add rule for linux-proc.o.
11713 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11714 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11715 * config/arm/linux.mh: Ditto.
11716 * config/i386/linux.mh: Ditto.
11717 * config/i386/x86-64linux.mh: Ditto.
11718 * config/ia64/linux.mh: Ditto.
11719 * config/m68k/linux.mh: Ditto.
11720 * config/mips/linux.mh: Ditto.
11721 * config/powerpc/linux.mh: Ditto.
11722 * config/sparc/linux.mh: Ditto.
11723
c25b74ac
PM
117242002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11725
11726 * win32-nat.c: Add i386-tdep.h dependency.
11727
94cd915f
MS
117282002-01-07 Michael Snyder <msnyder@redhat.com>
11729
c7cccb76
MS
11730 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11731 instead of bfd_get_arch_size. Don't bail out just because
11732 there's no exec_bfd.
abf22e64 11733
34c0bd93
MS
11734 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11735 * p-valprint.c (pascal_object_print_value): Ditto.
11736 * somread.c (som_symtab_read): Ditto.
11737 * symfile.c (simple_free_overlay_region_table): Ditto.
11738 * valops.c (value_assign): Ditto.
11739
21c1c920
MS
11740 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11741 use tilde_expand and strerror for opening save-tracepoints file.
11742
5bbd998e
MS
11743 * thread-db.c (thread_db_new_objfile): Indendation fix.
11744
94cd915f
MS
11745 * infptrace.c (GDB_MAX_ALLOCA): New define.
11746 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11747 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11748 can be overridden with whatever value is appropriate to the host).
11749 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11750 alloca to allocate potentially large buffer.
11751 * rs6000-nat.c (child_xfer_memory): Ditto.
11752 * symm-nat.c (child_xfer_memory): Ditto.
11753 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11754
494e8a93
JSC
117552002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11756
11757 From Nick Clifton <nickc@redhat.com>
11758 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11759
d0e1d48e
MS
117602002-01-07 Michael Snyder <msnyder@redhat.com>
11761
abf22e64 11762 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11763 Don't use exec_bfd if it's NULL.
11764
290b2c7a
MK
117652002-01-06 Mark Kettenis <kettenis@gnu.org>
11766
abf22e64 11767 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11768
aef21287
AC
117692002-01-06 Andrew Cagney <ac131313@redhat.com>
11770
11771 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11772 * gnu-nat.c: Ditto.
11773
30efa627
AC
117742002-01-06 Andrew Cagney <ac131313@redhat.com>
11775
11776 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11777 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11778 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11779 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11780 z8k-coff have not been multi-arched. Update z8k-coff build
11781 status.
11782
9b4ff276
AC
117832002-01-06 Andrew Cagney <ac131313@redhat.com>
11784
11785 * MAINTAINERS: Mark a29k target as obsolete.
11786 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11787 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11788 comments.
11789 * NEWS: Note that a29k targets are obsolete.
11790 * a29k-tdep.c: Mark as obsolete.
11791 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11792 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11793 a29k-*-vxworks* targets as obsolete.
11794 * remote-adapt.c: Obsolete.
11795 * remote-eb.c: Obsolete.
11796 * remote-mm.c: Obsolete.
11797 * remote-udi.c: Obsolete.
11798 * config/a29k/a29k-udi.mt: Obsolete.
11799 * config/a29k/a29k.mt: Obsolete.
11800 * config/a29k/tm-a29k.h: Obsolete.
11801 * config/a29k/tm-vx29k.h: Obsolete.
11802 * config/a29k/vx29k.mt: Obsolete.
11803
a9011d31
AC
118042002-01-05 Andrew Cagney <ac131313@redhat.com>
11805
11806 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11807 with BFD_ENDIAN_BIG.
11808
9299404e
AC
118092002-01-05 Andrew Cagney <ac131313@redhat.com>
11810
11811 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11812 * configure, config.in: Re-generate.
11813 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11814 * defs.h: Do not include <endian.h>.
11815
7e89e357
JT
118162002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11817
11818 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11819 * config.in: Regenerate.
11820 * configure.in: Update copyright years.
11821 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11822 * configure: Regenerate.
11823 * i386bsd-nat.c: Update copyright years.
11824 (fill_gregset): Use regcache_collect.
11825 (fetch_inferior_registers): Only fetch integer registers
11826 if requested to do so. Add support for XMM registers
11827 using PT_GETXMMREGS.
11828 (store_inferior_registers): Only store integer registers
11829 if requested to do so. Add support for XMM registers
11830 using PT_SETXMMREGS.
11831 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11832 (store_inferior_registers): Remove.
11833 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11834 (fetch_elfcore_registers): New function.
11835 (i386nbsd_elfcore_fns): New.
11836 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11837 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11838 i386bsd-nat.o.
11839 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11840 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11841 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11842 * config/i386/tm-nbsd.h: Update copyright years.
11843 (HAVE_SSE_REGS): Define.
11844 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11845 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11846 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11847 (SIGCONTEXT_PC_OFFSET): Remove.
11848 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11849
a752853e
AC
118502002-01-05 Andrew Cagney <ac131313@redhat.com>
11851
11852 * configure.tgt: Remove powerpc-*-macos* target.
11853 * config/m68k/xm-mpw.h: Delete file.
11854 * config/xm-mpw.h: Delete file.
11855 * ser-mac.c: Delete file.
11856 * mpw-make.sed: Delete file.
11857 * mpw-config.in: Delete file.
11858 * mac-xdep.c: Delete file.
11859 * mac-gdb.r: Delete file.
11860 * mac-defs.h: Delete file.
11861 * mac-nat.c: Delete file.
11862 * config/powerpc/macos.mh: Delete file.
11863 * config/powerpc/macos.mt: Delete file.
11864 * config/powerpc/nm-macos.h: Delete file.
11865 * config/powerpc/tm-macos.h: Delete file.
11866 * source.c (openp, open_source_file): Remove obsolete code.
11867 * top.c (gdb_readline): Ditto.
11868 * utils.c (query): Ditto.
11869 * event-top.c (display_gdb_prompt): Ditto.
11870 * Makefile.in (ser-mac.o): Delete obsolete target.
11871 * NEWS: Update.
11872
d7449b42
AC
118732002-01-04 Andrew Cagney <ac131313@redhat.com>
11874
11875 * defs.h (BIG_ENDIAN): Delete macro definition.
11876 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11877 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11878 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11879 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11880 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11881 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11882 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11883 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11884 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11885 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11886 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11887 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11888 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11889 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11890 * gdbarch.c: Re-generate.
11891
356374e8
DJ
118922002-01-04 Daniel Jacobowitz <drow@mvista.com>
11893
11894 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11895 for core files.
11896
a2b8f8f8
JT
118972002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11898
11899 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11900
12466af9
AC
119012002-01-04 Andrew Cagney <ac131313@redhat.com>
11902
11903 * value.h (value_ptr): Delete typedef.
11904
3549ab40
JT
119052002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11906
11907 * i386nbsd-nat.c: Update copyright years.
11908 Include i386-tdep.h.
11909
fedbd091
EZ
119102002-01-04 Elena Zannoni <ezannoni@redhat.com>
11911
11912 * stabsread.c: Update copyright years.
11913
11914 From Debashis Mahata <debashis.mahata@wipro.com>:
11915 (read_struct_fields): Deal with Sun C compiler erroneous stab
11916 output for structs and unions.
fec8b34f 11917 Fix PR gdb/269.
fedbd091 11918
eb43544b
DJ
119192002-01-04 Daniel Jacobowitz <drow@mvista.com>
11920
11921 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11922 prototype.
11923
1514d34e
DJ
119242002-01-04 Daniel Jacobowitz <drow@mvista.com>
11925
11926 * cp-abi.c: Fix whitespace.
11927 (baseclass_offset): New wrapper function.
11928 * cp-abi.h (baseclass_offset): Add prototype.
11929 (struct cp_abi_ops): Add baseclass_offset pointer.
11930
11931 * valops.c (vb_match): Move to...
11932 * gnu-v2-abi.c (vb_match): here.
11933 * valops.c (baseclass_offset): Move to...
11934 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11935
11936 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11937
11938 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11939 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11940 * hpacc-abi.c (init_hpacc_ops): Likewise.
11941
7f8c9282
DJ
119422002-01-04 Daniel Jacobowitz <drow@mvista.com>
11943
11944 * valops.c (find_overload_match): Accept obj as a
11945 reference parameter. Update it before returning.
11946 * value.h (find_overload_match): Update prototype.
11947 * eval.c (evaluate_subexp_standard): Pass object to
11948 find_overload_match by reference.
11949
f23631e4
AC
119502002-01-03 Andrew Cagney <ac131313@redhat.com>
11951
11952 * valarith.c: Replace value_ptr with struct value pointer. Remove
11953 register attribute from value declarations.
11954 * valops.c: Ditto.
11955 * value.h: Ditto.
11956 * scm-lang.c (scm_lookup_name): Ditto.
11957
79e10fab 119582002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11959
79e10fab
AC
11960 Abstract the functionality of iterating over mapped memory
11961 regions into a general purpose iterator function.
abf22e64 11962 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11963 iterator for memory sections.
11964 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11965 (solib_mappings_callback): New function, callback for above.
11966 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11967 (info_mappings_callback): New function, callback for above.
11968
11969 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11970
c5ad026a
MK
119712002-01-01 Mark Kettenis <kettenis@gnu.org>
11972
d2a7c97a
MK
11973 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11974 * i386-tdep.c: Include "elf-bfd.h".
11975 (process_note_abi_tag_sections): New function.
11976 (i386_gdbarch_init): Add code to recognize various OS/ABI
11977 combinations.
11978
c5ad026a
MK
11979 * maint.c (_initialize_maint_cmds): Add missing \ in
11980 string-literal.
11981
a1a5b71e 11982For older changes see ChangeLog-2001
c906108c
SS
11983\f
11984Local Variables:
11985mode: change-log
11986left-margin: 8
11987fill-column: 74
11988version-control: never
11989End:
This page took 0.836949 seconds and 4 git commands to generate.