Address class support.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8b2dbe47
KB
12002-10-16 Kevin Buettner <kevinb@redhat.com>
2
3 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
4 (read_tag_pointer_type): Add address class support.
5 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
6 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
7 New methods.
8 * gdbarch.h, gdbarch.c: Regenerate.
9 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
10 (make_type_with_address_space, recursive_type_dump): Add address
11 class support.
12 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
13 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
14 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
15
74451869
KD
162002-10-16 Klee Dienes <kdienes@apple.com>
17
18 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
19 to get the last character of a char[] buffer, not
20 name[sizeof(vptr_name)-1].
21
ff4cb3e8
AF
222002-10-14 Adam Fedor <fedor@gnu.org>
23
24 * symtab.h: New objc_specific struct.
25 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
26 (SYMBOL_DEMANGLED_NAME): Likewise.
27
da2cf7e0
AF
282002-10-14 Adam Fedor <fedor@gnu.org>
29
30 * symfile.c (init_filename_language_table): Add ObjC file extension.
31
4a351cef
AF
322002-10-14 Adam Fedor <fedor@gnu.org>
33
34 * utils.c (puts_filtered_tabular): New function.
35 (fprintf_symbol_filtered): Get ObjC demangled name.
36 * defs.h (puts_filtered_tabular): Declared.
37
9750e763
KB
382002-10-14 Kevin Buettner <kevinb@redhat.com>
39
40 * c-lang.h (c_type_print_varspec_prefix): Delete.
41 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
42 ``need_post_space'' parameter. Adjust all callers.
43
eee771c1
DJ
442002-10-14 Daniel Jacobowitz <drow@mvista.com>
45
46 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
47 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
48 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
49 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
50
46c82446
AF
512002-10-13 Adam Fedor <fedor@gnu.org>
52
53 * source.c (print_source_lines): Update comments.
54
d069f99d
AF
552002-10-13 Adam Fedor <fedor@gnu.org>
56
57 * valops.c (value_of_local): New function.
58 (value_of_this): Use it.
59 * value.h (value_of_local): Declared.
60
53c551b7
AF
612002-10-13 Adam Fedor <fedor@gnu.org>
62
63 * parse.c: (length_of_subexp, prefixify_subexp): Handle
64 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
65
eb392fbf
AF
662002-10-12 Adam Fedor <fedor@gnu.org>
67
68 * language.c (binop_result_type): Add language_objc to case.
69 (integral_type): Likewise.
70 (character_type): Likewise.
71 (string_type): Likewise.
72 (boolean_type): Likewise.
73 (structured_type): Likewise.
74 (binop_type_check): Likewise.
75
e2b23ee9
AF
762002-10-11 Adam Fedor <fedor@gnu.org>
77
78 * printcmd.c (address_info): Print 'self' for ObjC.
79
b01ab485
AF
802002-10-11 Adam Fedor <fedor@gnu.org>
81
82 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
83 OP_SELF.
84
806e6073
AF
852002-10-11 Adam Fedor <fedor@gnu.org>
86
87 * language.h (CAST_IS_CONVERSION): Add language_objc.
88
50f85cdf
AF
892002-10-11 Adam Fedor <fedor@gnu.org>
90
91 * defs.h (enum language): Add language_objc.
92
0d540cdf
KD
932002-10-11 Klee Dienes <kdienes@apple.com>
94
95 * findvar.c (read_memory_typed_address): New function.
96 * gdbcore.h (read_memory_typed_address): Add prototype.
97 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
98 to read a value destined for a CORE_ADDR, not read_memory_integer.
99 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
100 (f77_get_dynamic_lowerbound): Ditto.
101
d5dc7960
MH
1022002-10-11 Martin M. Hunt <hunt@redhat.com>
103
104 * utils.c (string_to_core_addr): After turning string into
105 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
106 which will do necessary sign-extension, etc.
107
8343f86c
DJ
1082002-10-11 Daniel Jacobowitz <drow@mvista.com>
109
110 * c-exp.y (THIS): Delete token and grammar rule.
111 (yylex): Don't return THIS.
112 * cp-valprint.c (vtbl_ptr_name_old): Delete.
113 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
114 * demangle.c (cplus_markers): Update comment. Put '$'
115 first. Remove CPLUS_MARKER.
116 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
117 * jv-exp.y (THIS): Delete token and grammar rule.
118 (yylex): Don't return THIS.
119 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
120 * objc-exp.y (THIS): Delete token and grammar rule.
121 (yylex): Don't return THIS.
122 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
123 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
124 (read_member_functions): Likewise for opname.
125 (read_tilde_fields): Use is_cplus_marker.
126
127 * defs.h (CPLUS_MARKER): Don't define.
128 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
129 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
130 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
131 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
132 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
133
134 * config/i386/tm-i386v4.h: Delete file.
135 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
136 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
137 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
138 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
139 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
140 * config/i386/i386sco5.mt (TM_FILE): Likewise.
141 * config/i386/i386v4.mt (TM_FILE): Likewise.
142 * config/i386/ncr3000.mt (TM_FILE): Likewise.
143
967c0d83
MM
1442002-10-10 Marko Mlinar <markom@opencores.org>
145
146 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
147 accidentially not commited 2002-10-09
148 * gdbarch.h, gdbarch.c: Re-generate.
149
f74fa174
MM
1502002-10-09 Marko Mlinar <markom@opencores.org>
151
152 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
153 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
154 * gdbarch.h, gdbarch.c: Re-generate.
155
57349743
JB
1562002-10-08 Petr Sorfa <petrs@caldera.com>
157
158 Revised and re-submitted by John Wolfe <jlw@caldera.com>
159
160 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
161 so we can work on more than one compilation unit at a time. This
162 helps prepare GDB to handle inter-CU die references.
163 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
164 the code to be defined before struct comp_unit_head.
165 (comp_unit_head): Added new members - offset, cu_head,
166 begin_die, next and dwarf2_abbrevs.
167 (dwarf2_abbrevs): Removed single static var; now member of
168 struct comp_unit_head.
169 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
170 members.
171 (psymtab_to_symtab_1): Changed to work with the new
172 struct comp_unit_head.
173 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
174 constructs the dwarf2_abbrevs[] inside the cu_header.
175 (dwarf2_empty_abbrev_table): Now expects a ptr to a
176 dwarf2_abbrev table to clean up.
177 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
178 handling of dwarf2_abbrevs inside the cu_header.
179 (read_partial_die): Now supports the call to the new
180 dwarf2_lookup_abbrev.
181 (read_full_die): Now supports the call to the new
182 dwarf2_lookup_abbrev.
183
4092aadb
CF
1842002-10-06 Christopher Faylor <cgf@redhat.com>
185
186 * Makefile.in (install-gdbtk): Add missing continuation backslash to
187 insure that shell variables, such as "transformed_name" are propagated
188 to later shell statements in rule.
189
af0b2512
MK
1902002-10-06 Mark Kettenis <kettenis@gnu.org>
191
192 * config/i386/nm-i386sco.h: Add protection against
193 multiple-inclusion. Include "i386/nm-i386v.h".
194 (REGISTER_U_ADDR): Remove define.
195 (i386_register_u_addr): Remove prototype.
196
d6020d45
MS
1972002-10-04 Michael Snyder <msnyder@redhat.com>
198
199 * m32r-stub.c (handle_exception): Make sure exception is "trap"
200 before treating it as a single-step event.
201
7248f48e
AF
2022002-10-03 Adam Fedor <fedor@gnu.org>
203
204 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
205 (objc_demangle): Remove assignment in if statements, Replace
206 free with xfree.
207 (add_msglist): Likewise.
208 (end_msglist): Likewise.
209 (complare_selectors): Likewise.
210 (selectors_info): Likewise.
211 (compare_classes): Likewise.
212 (classes_info): Likewise.
213 (print_object_command): Likewise.
214 (find_objc_msgcall_submethod): Replace PTR with void *.
215 * objc-lang.h: Remove check for __STDC__.
216
52c6a6ac
JJ
2172002-10-03 Jeff Johnston <jjohnstn@redhat.com>
218
219 * ui-out.h (ui_out_field_fmt_int): New prototype.
220 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
221 of field width and alignment.
222 * stack.c (print_frame_info_base): When printing frame level, use
223 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
224 PR gdb/192
225
7e3cec17
JJ
2262002-10-03 Jeff Johnston <jjohnstn@redhat.com>
227
228 * MAINTAINERS: Add self to Write After Approval list.
229
a58dd373
EZ
2302002-10-02 Elena Zannoni <ezannoni@redhat.com>
231
232 * infcmd.c (interrupt_target_command_wrapper): Delete.
233 (interrupt_target_command): Make non static.
234 (nofp_registers_info): Make static.
235 * stack.c (return_command_wrapper): Delete.
236 (return_command): Make non static.
237
cee6ddeb
EZ
2382002-10-02 Elena Zannoni <ezannoni@redhat.com>
239
240 * event-top.c (gdb_setup_readline): New function. Code moved from
241 _initialize_event_loop().
242 (_initialize_event_loop): Call gdb_setup_readline().
243
c4ed33b9
AC
2442002-10-02 Andrew Cagney <ac131313@redhat.com>
245
246 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
247 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
248 * gdbarch.h, gdbarch.c: Re-generate.
249
cef4f5dd
DJ
2502002-10-02 Daniel Jacobowitz <drow@mvista.com>
251
252 Fix PR gdb/778
253 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
254 before recursing.
255 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
256 of fill_in_vptr_fieldno.
257
36dc181b 2582002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 259
36dc181b
EZ
260 * inferior.h (registers_info, stepi_command, nexti_command,
261 continue_command, interrupt_target_command): Export from infcmd.c.
262 * frame.h (args_info, selected_frame_level_changed_hook,
263 return_command): Export from stack.c.
264 * v850ice.c (stepi_command, nexti_command, continue_command): use
265 prototypes from inferior.h.
266 * tracepoint.c (registers_info, args_info, locals_info): Use
267 prototypes from frame.h and inferior.h.
268 * Makefile.in (mi-main.o): Add dependency on frame.h.
269
6f99cb26
AC
2702002-10-02 Andrew Cagney <ac131313@redhat.com>
271
da3eff49
AC
272 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
273 value in register 3 adjusted by ppc_gp0_regnum.
274
6f99cb26
AC
275 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
276
da615bee
MM
2772002-10-02 Marko Mlinar <markom@opencores.org>
278
279 * MAINTAINERS: Add myself to the Write After Approval list.
280
d154bee2
AO
2812002-10-01 Alexandre Oliva <aoliva@redhat.com>
282
62a49b2c
AO
283 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
284 of the section for the N64 ABI, fixed.
285
d154bee2
AO
286 * config/mips/tm-irix6.h: Include solib.h.
287
ed348acc
EZ
2882002-10-01 Elena Zannoni <ezannoni@redhat.com>
289
290 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
291 GNU operators.
292
da0f9dcd
AC
2932002-10-01 Andrew Cagney <ac131313@redhat.com>
294
295 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
296 and that "mi0" syntax has been removed.
297
bdf64bac
DC
2982002-09-30 David Carlton <carlton@math.stanford.edu>
299
300 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
301 * ppc-sysv-tdep.c: #include "gdb_string.h".
302 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
303 pacify GCC.
304
54c2a1e6
AC
3052002-10-01 Andrew Cagney <ac131313@redhat.com>
306
307 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
308 "vrsave"'s register number.
309
cedea778
AC
3102002-09-30 Andrew Cagney <ac131313@redhat.com>
311
312 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
313 use frame_unwind_signed_register to obtain the PC.
314 (mips_frame_chain): Handle a generic dummy frame.
315 (mips_init_extra_frame_info): When a generic dummy frame, don't
316 re-compute the frame base.
317 (mips_pop_frame): Handle generic dummy frames.
318 (mips_gdbarch_init): When generic dummy frames, set
319 use_generic_dummy_frames, push_dummy_frame to
320 generic_push_dummy_frame, pc_in_call_dummy to
321 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
322 generic_save_dummy_frame_tos.
323
68315eb8
AC
3242002-09-30 Andrew Cagney <ac131313@redhat.com>
325
326 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
327 against TOP when TOP was explictly set.
328 (generic_push_dummy_frame): Set TOP to zero.
329
3b8630c3
EZ
3302002-09-30 Elena Zannoni <ezannoni@redhat.com>
331
332 * event-loop.c (start_event_loop): Rename variable 'result' to
333 'gdb_result', to avoid conflicts with upcoming intepreters changes.
334
28ee05e9
KS
3352002-09-30 Keith Seitz <keiths@redhat.com>
336
337 * gdb-events.sh (selected_thread_changed): New event.
338 * gdb-events.c: Regenerated.
339 * gdb-events.h: Regenerated.
340
6eecb1c8
HPN
3412002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
342
343 * MAINTAINERS: Add self to Write After Approval list.
344
92df71f0
FN
3452002-09-30 Fernando Nasser <fnasser@redhat.com>
346
3b8630c3
EZ
347 * disasm.c: New file.
348 * disasm.h: New file.
92df71f0
FN
349 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
350 (compare_lines): Ditto.
351 (dump_insns): Ditto.
3b8630c3
EZ
352 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
353 argument.
92df71f0 354 (do_assembly_only): Ditto.
3b8630c3
EZ
355 (do_disassembly): Renamed to gdb_disassembly and moved to
356 disasm.c. Sdded uiout argument.
357 * Makefile.in: Add new files. Reorder SFILES list. Update
358 dependencies. Include libgdb.a later in the insight executable.
92df71f0 359
0c22854d
AC
3602002-09-29 Andrew Cagney <ac131313@redhat.com>
361
362 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
363 bfd/elf64-alpha-fbsd.c.
364
e67f2023
AC
3652002-09-29 Andrew Cagney <ac131313@redhat.com>
366
367 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
368 i386gnu-tdep.c.
369
89396210
AC
3702002-09-29 Andrew Cagney <ac131313@redhat.com>
371
372 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
373 __FUNCTION__.
374 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
375 function name.
376 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
377 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
378 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
379 (S_msg_sig_post_reply): Ditto.
380
7079c36c
CV
3812002-09-28 Corinna Vinschen <vinschen@redhat.com>
382
89396210
AC
383 * sh-tdep.c (sh_use_struct_convention): Use definition according
384 to ABI.
7079c36c
CV
385 (sh_push_arguments): Store in register with correct endianess.
386 (sh_default_store_return_value): Ditto.
387 (sh_gdbarch_init): Set sizeof long double to 8.
388
975ac915
MK
3892002-09-27 Mark Kettenis <kettenis@gnu.org>
390
391 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
392 Fix some whitespace problems.
393
9bbe19fb
DC
3942002-09-27 David Carlton <carlton@math.stanford.edu>
395
396 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
397 (mcore-tdep.o): Ditto.
398 (ns32k-tdep.o): Ditto.
399 (ns32knbsd-tdep.o): Ditto.
400 (sh3-rom.o): Ditto.
401 (vax-tdep.o): Ditto.
402 * cris-tdep.c: #include "gdb_string.h"
403 * mcore-tdep.c: Ditto.
404 * ns32k-tdep.c: Ditto.
405 * ns32knbsd-tdep.c: Ditto.
406 * sh3-rom.c: Ditto.
407 * vax-tdep.c: Ditto.
408
43b2fdc7
DC
4092002-09-27 David Carlton <carlton@math.stanford.edu>
410
411 * config/djgpp/fnchange.lst: Add entries for
412 gdb/testsuite/gdb.c++/m-static files.
413
e8cfbbd9
JW
4142002-09-27 Jim Wilson <wilson@redhat.com>
415
416 * MAINTAINERS: Add myself to the Write After Approval list.
417
43b2fdc7 4182002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
419
420 * mips-tdep.c (find_proc_desc): Initialize startaddr.
421
422
9f3b7f07
AC
4232002-09-26 Andrew Cagney <ac131313@redhat.com>
424
425 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
426 frame.
427
11269d7e
AC
4282002-09-26 Andrew Cagney <ac131313@redhat.com>
429
430 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
431 (rs6000_struct_return_address): Delete variable.
432 (rs6000_store_struct_return): Update.
433 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
434 deprecated_extract_struct_value_address.
435 (rs6000_frame_align): New function.
436 (rs6000_gdbarch_init): Set frame_align.
437
f15ab4a7
AC
4382002-09-26 Andrew Cagney <ac131313@redhat.com>
439
440 From Grace Sainsbury <graces@redhat.com>:
441 * Makefile.in (gdbtk-main.o): New target.
442 (gdb.o): New target.
443 (main_h): Define.
444 (main.o): Update dependencies.
445 (gdb$(EXEEXT)): Add gdb.o.
446 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
447 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
448 (SUBDIR_GDBTK_CLEAN): Set.
449 (install-gdbtk): Install the insight binary.
450 (uninstall-gdbtk): New target.
451 (all-gdbtk, clean-gdbtk): New rule.
452 * top.c (use_windows): Default to zero.
453 * main.c: Include "main.h".
454 (main): Delete.
455 (struct captured_main_args): Delete.
456 (gdb_main): New function.
457 * main.h: New file.
458 * gdb.c: New File.
459
e36180d7
AC
4602002-09-25 Andrew Cagney <cagney@redhat.com>
461
462 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
463 (frame_map_regnum_to_name): New function.
464 (frame_map_name_to_regnum): New function.
465 * frame.h (frame_map_name_to_regnum): Declare.
466 (frame_map_regnum_to_name): Declare.
467 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
468 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
469 * parse.c: Do not include "builtin-regs.h".
470 (target_map_name_to_register): Delete function.
471 (write_dollar_variable): Use frame_map_name_to_regnum.
472 * parser-defs.h (target_map_name_to_register): Delete declaration.
473 * expprint.c: Include "frame.h".
474 (print_subexp): Use frame_map_regnum_to_name.
475 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
476 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
477
8b69000d
AC
4782002-09-25 Andrew Cagney <ac131313@redhat.com>
479
480 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
481 wasn't saved, and the next innermost frame is a dummy, return the
482 dummy frame's link register.
483
046ca86a
JB
4842002-09-24 Jim Blandy <jimb@redhat.com>
485
486 Fix from Paul Breed:
487 * main.c (captured_main): Add a `break' after the case for 'b'.
488
94b66fa7
KS
4892002-09-24 Keith Seitz <keiths@redhat.com>
490
491 * varobj.c (c_type_of_child): Use get_target_type instead
492 of TYPE_TARGET_TYPE.
493
c214a6fd
FN
4942002-09-22 Fernando Nasser <fnasser@redhat.com>
495
53cb0458
FN
496 * source.c (get_current_or_default_source_symtab_and_line): Remove
497 function.
498 (set_default_source_symtab_and_line): New function. Attempts to
499 determine a source file to list lines from if one is not currently
500 defined.
501 (get_current_source_symtab_and_line): Initialize sal.pc and
502 sal.end fields.
503 (set_current_source_symtab_and_line): Mark argument as const.
504 * source.h: Update declarations and comments.
505 * linespec.c (decode_line_1): Replace call to removed routine above.
506 * stack.c (print_frame_info_base): Ditto.
507 * cli/cli-cmds.c (edit_command): Ditto.
508 (list_command): Ditto.
509
5102002-09-22 Fernando Nasser <fnasser@redhat.com>
511
d6020d45 512 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 513 sal.pc and sal.end fields.
c214a6fd
FN
514 (get_current_or_default_source_symtab_and_line): Ditto.
515 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
516 so we do not cause a new source symtab to be searched for (reverting an
517 unintentional change from the 2002-09-20 patch).
518 * scm-lang.c (scm_unpac): Ditto.
519
cc3b68a5
AC
5202002-09-21 Andrew Cagney <cagney@redhat.com>
521
522 * complaints.c (symfile_explanations): Remove new-line from
523 ``isolated_message''.
524 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
525 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
526
5835abe7
NC
5272002-09-20 Nick Clifton <nickc@redhat.com>
528
529 * NEWS: Announce that V850EA ISA is no longer supported.
530 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
531
a15ef5f5
DC
5322002-09-20 David Carlton <carlton@math.stanford.edu>
533
06ba1b39
DC
534 * Makefile.in (c-lang.o): Correct dependencies.
535 (utils.o): Gather dependencies.
536 (charset.o): Move.
a15ef5f5
DC
537 * c-lang.c: #include "gdb_string.h"
538
87885426
FN
5392002-09-20 Fernando Nasser <fnasser@redhat.com>
540
541 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
542 * cli/cli-cmds.c (list_command): New function. Implements the new
543 cli edit command.
544 (_init_cli_cmds): Add new command definition.
545 * gdb.1: Document edit command.
546 * doc/gdb.texinfo: Document edit command.
547
5482002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
549
550 * source.c: Make global variables current_source_symtab and
551 current_source_line static.
552 (list_command): Moved to cli/cli-cmds.c.
553 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
554 (get_first_line_listed): New accessor function.
555 (get_lines_to_list): New accessor function.
556 (get_current_source_symtab_and_line): New function. Retrieves the
557 position in the source code that we consider current.
558 (get_current_or_default_source_symtab_and_line): New function.
559 Like the above but attempts to determine a default position if one
560 is not currently defined.
561 (set_current_source_symtab_and_line): New function. Sets the source
562 code position considered current and returns the previously set one.
563 (clear_current_source_symtab_and_line): Reset stored information about
564 a current source line.
565 (_initialize_source): Remove registration for the "list" command and
566 its alias.
567 * source.h: Add declarations for the new functions above.
568 * symtab.h: Remove declarations for the global variables mentioned
569 above.
570 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
571 obtain current source line.
572 * linespec.c (decode_line_1): Ditto.
573 * macroscope.c (default_macro_scope): Ditto.
574 * scm-lang.c (scm_unpac): Ditto.
575 * stack.c (print_frame_info_base): Ditto.
576 * symfile.c (clear_symtab_users): Ditto.
577 * symtab.c (decode_line_spec): Ditto.
578 * cli/cli-cmds.c (list_command): Moved here from source.c.
579 (ambiguous_line_spec): Moved here from source.c.
580 (_init_cli_cmds): Add definition for "list" and its alias.
581 * Makefile.in: Update dependencies.
582
ddd216ea
CV
5832002-09-20 Corinna Vinschen <vinschen@redhat.com>
584
585 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
586 with what gcc thinks is correct.
587
6d305052
CV
5882002-09-20 Corinna Vinschen <vinschen@redhat.com>
589
590 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
591 multiple register push instruction.
592
234b45d4
KB
5932002-09-19 Jim Blandy <jimb@redhat.com>
594
595 Add support for distinct host and target character sets.
596 * charset.c, charset.h: New files.
597 * c-exp.y: #include "charset.h".
598 (yylex): Convert character and string literals to the target
599 character set, before returning them as the semantic value of the
600 token.
601 * c-lang.c: #include "charset.h".
602 (c_emit_char): Use charset-specific methods to recognize
603 characters with backslash escape forms, to decide which characters
604 to print literally and which to print using numeric escape
605 sequences, and to convert target characters to host characters
606 before printing.
607 * utils.c: #include "charset.h".
608 (no_control_char_error): New function.
609 (parse_escape): Use charset-specific methods to recognize
610 backslash escapes, parse `control character' notation, and convert
611 characters from the host character set to the target character set.
612 * configure.in: Set the default host character set.
613 Check where to find iconv, and what its argument types might be.
614 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
615 * Makefile.in (SFILES): List charset.c.
616 (COMMON_OBS): List charset.o.
617 (charset.o): New rule.
618 (charset_h): New header dependency variable.
619 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
620 (LIBICONV): New variable, set by configure.
621 (CLIBS): Include $(LIBICONV) here.
622 * aclocal.m4, config.in, configure: Regenerated.
623
525d6a61
JB
6242002-09-19 Joel Brobecker <brobecker@gnat.com>
625
626 * ada-exp.y: Add missing semicolons to end rules. Fixes a
627 bison 1.35 warning.
628
3ed93867
RE
6292002-09-19 Richard Earnshaw <rearnsha@arm.com>
630
631 * gdb_mbuild.sh: New file.
632
437666f8
AC
6332002-09-19 Andrew Cagney <ac131313@redhat.com>
634
635 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
636
389e51db
AC
6372002-09-18 Andrew Cagney <ac131313@redhat.com>
638
639 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
640 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
641 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
642 valops.c, value.h: Revert previous change.
643
3b4efeaa
MS
6442002-09-18 Michael Snyder <msnyder@redhat.com>
645
646 Preliminary support for Objective-C:
647 * defs.h (language_objc): New enum value.
648 (puts_filtered_tabular): Declaration only, exported from utils.c.
649 (skip_quoted): Delete, declared in completer.h.
650 * c-exp.y: Include completer.h.
651 * p-exp.y: Ditto.
652 * jv-exp.y: Ditto.
653 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
654 New operator enum values.
655 * language.h (CAST_IS_CONVERSION): Test for language_objc.
656 * language.c (binop_result_type): Handle language_objc case.
657 (integral_type, character_type, string_type, boolean_type,
658 structured_type, binop_type_check): Ditto.
659 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
660 (struct objc_specific): Add to general_symbol_info.
661 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
662 (SYMBOL_DEMANGLED_NAME): Handle objc case.
663 * parser-defs.h (struct objc_class_str): New struct type.
664 (start_msglist, end_msglist, add_msglist): Declaration only,
665 exported from objc-lang.c.
666 * value.h (value_of_local, value_nsstring,
667 call_function_by_hand_expecting_type): Exported from valops.c.
668 * valops.c (find_function_addr): Export.
669 (call_function_by_hand_expecting_type): New function.
670 (value_of_local): New function.
671 * symfile.c (init_filename_language_table): Add ".m" extension
672 for Objective-C.
673 * utils.c (puts_filtered_tabular): New function.
674 (fprintf_symbol_filtered): Add objc demangling support (disabled).
675 (set/show demangle): Extend help-string to refer to ObjC.
676 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
677 * stabsread.c (symbol_reference_defined): Objective-C symbols
678 may contain colons: make allowances when scanning stabs strings
679 for colons.
680 (objc_find_colon): New function.
681 * printcmd.c (address_info): If language == objc then print
682 "self" instead of "this".
683 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
684 OP_NSSTRING, and OP_SELF.
685 (prefixify_subexp): Ditto.
686 * source.c (print_source_lines): Mention objc in comment.
687 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
688 method names.
689
b9caf505
AC
6902002-09-18 Andrew Cagney <ac131313@redhat.com>
691
692 * complaints.h: Update copyright.
693 (struct complaints): Declare.
694 (struct complaint): Make `message' constant.
695 (internal_complaint): Declare.
696 (complaint): Declare.
697 (complaint_root): Delete declaration.
698 (symfile_complaints): Delete declaration.
699 (struct complaints): Add opaque declaration.
700 (clear_complaints): Add a complaints parameter.
701 * complaints.c: Update copyright.
702 (enum complaint_series): Define.
703 (complaint_root): Delete.
704 (struct complaints): Define.
705 (complaint_sentinel, symfile_complaint_book): New variables.
706 (symfile_explanations, symfile_complaints): New variables.
707 New variables.
708 (get_complaints): New function.
709 (vcomplaint): New function.
710 (complaint): New function.
711 (internal_complaint): New function.
712 (complain): Call vcomplain with symfile_complaint.
713 (clear_complaints): Rewrite.
714 (_initialize_complaints): Use add_setshow_command.
715 * Makefile.in (complaints.o): Update dependencies.
716 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
717 to call to clear_complaints.
718 (new_symfile_objfile, reread_symbols): Ditto.
719 (oldsyms_complaint): Delete.
720 (empty_symtab_complaint, unknown_option_complaint): Delete.
721 (free_named_symtabs): Use complaint instead of complain.
722
d2e6263c
MS
7232002-09-18 Michael Snyder <msnyder@redhat.com>
724
5fb2031a
AC
725 Contributed by Apple Computer, Inc. Merged with current sources
726 by Adam Fedor <fedor@doc.com> [cagney].
727
d2e6263c
MS
728 * objc-lang.c: First clean-up round: comments, indentation.
729 * objc-lang.h: Ditto.
730 * objc-lang.y: Ditto.
731
dec43320
AC
7322002-09-18 Andrew Cagney <ac131313@redhat.com>
733
734 * maint.c (maintenance_internal_error): Print the parameter as the
735 error message.
736 (maintenance_internal_warning): New function.
737 (_initialize_maint_cmds): Add command `maint internal-warning'.
738
739 * defs.h (internal_warning, internal_vwarning): Declare.
740 * utils.c (struct internal_problem): Define.
741 (internal_vproblem): New function.
742 (internal_warning): New function.
743 (internal_vwarning): New function.
744 (internal_warning_problem, internal_error_problem): New variables.
745 (internal_verror): Just call internal_vproblem.
746
b81654f1
MS
7472002-09-18 Michael Snyder <msnyder@redhat.com>
748
749 * objc-lang.c: New file, support for Objective-C.
750 Preliminary check-in, not yet integrated into gdb.
751 * objc-lang.h: New file.
752 * objc-exp.y: New file.
753
0542c381
AC
7542002-09-18 Andrew Cagney <ac131313@redhat.com>
755
7bda5e4a
AC
756 * infrun.c (signal_stop_update): Convert definition to ISO C.
757 (signal_print_update): Ditto.
758 (signal_pass_update): Ditto.
759 * inflow.c (terminal_save_ours): Ditto.
760
5247b418
AC
761 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
762 comments.
763
fc60962c
AC
764 * config/djgpp/fnchange.lst: Handle name clashes between
765 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
766 bfd/coff-tic80.c.
767
0542c381
AC
768 * i386-linux-tdep.h: Fix tipo.
769
5b924b9b
AF
7702002-09-18 Adam Fedor <fedor@gnu.org>
771
772 * MAINTAINERS: Add myself to the Write After Approval list.
773
5afc051b
JB
7742002-09-18 Jim Blandy <jimb@redhat.com>
775
776 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
777 texthigh and textlow to reader-specific structs caused
778 objfile_relocate to miss them. This is fixable, but the work that
779 the change was supposed to prepare GDB for never got done anyway.
780
eb944380
DC
7812002-09-18 David Carlton <carlton@math.stanford.edu>
782
783 * MAINTAINERS: Alphabetize Write After Approval list.
784
948e66d9
DJ
7852002-09-18 Daniel Jacobowitz <drow@mvista.com>
786
787 Fix PR gdb/709
788 * values.c (value_static_field): Call read_var_value.
789
dc604539
AC
7902002-09-18 Andrew Cagney <ac131313@redhat.com>
791
792 * valops.c (hand_function_call): Align the initial stack pointer
793 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
794 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
795 return value.
796 * mips-tdep.c (mips_frame_align): New function.
797 (mips_gdbarch_init): Set frame_align.
798 * gdbarch.sh (FRAME_ALIGN): New method.
799 * gdbarch.h, gdbarch.c: Re-generate.
800
cb7e422f
ML
8012002-09-18 Michal Ludvig <mludvig@suse.cz>
802
803 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
804 registers.
805
a094c6fb
AC
8062002-09-17 Andrew Cagney <ac131313@redhat.com>
807
808 * NEWS: Mention that MIPS $fp behavior changed.
809 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
810 reference to FP_REGNUM.
811 (mipsnbsd_cannot_store_register): Ditto.
812 * mips-linux-nat.c: Update copyright.
813 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
814 (mips_linux_cannot_store_register): Ditto.
815 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
816 * config/mips/tm-mips.h: Update copyright.
817 (FP_REGNUM): Delete macro.
818 (MIPS_REGISTER_NAMES): Replace "fp" with "".
819 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
820 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
821 (mips_r3041_reg_names, mips_r3051_reg_names)
822 (mips_r3081_reg_names): Replace "fp" with "".
823 Fix PR gdb/480.
824
45cf40d1
TR
8252002-09-17 Theodore A. Roth <troth@verinet.com>
826
827 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
828 generic_read_register_dummy() (PR gdb/703).
829 (avr_push_return_address): #if 0 out unused vars.
830 (avr_gdbarch_init): Enable use of avr_push_return_address().
831
c7e701b5
MS
8322002-09-17 Michael Snyder <msnyder@redhat.com>
833
d76ba2a5 834 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
835 RTE will take care of it.
836
20bcf01c
AC
8372002-09-17 Andrew Cagney <ac131313@redhat.com>
838
839 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
840 invalid, return SP_REGNUM.
841
009a9971 8422002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
843
844 * mips-tdep.c (mips_pop_frame): Read saved values of floating
845 point registers without sign extension.
846
135c175f
AC
8472002-09-17 Andrew Cagney <cagney@redhat.com>
848
849 * blockframe.c (deprecated_read_register_dummy): Rename
850 generic_read_register_dummy.
851 * frame.c (frame_unwind_signed_register): New function.
852 (frame_unwind_unsigned_register): New function.
853 * frame.h (frame_unwind_signed_register): Declare.
854 (frame_unwind_unsigned_register): Declare.
855 (deprecated_read_register_dummy): Rename
856 generic_read_register_dummy.
857
858 * h8300-tdep.c (h8300_frame_chain): Update.
859 (h8300_frame_saved_pc): Update.
860 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
861 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
862 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
863 (s390_frame_chain): Update.
864 * v850-tdep.c (v850_find_callers_reg): Update.
865 (v850_frame_saved_pc): Update.
866 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
867 (m32r_find_callers_reg): Update.
868 (m32r_frame_saved_pc): Update.
869 * sh-tdep.c (sh_find_callers_reg): Update.
870 (sh64_get_saved_pr): Update.
871 (sh_init_extra_frame_info): Update.
872 (sh_init_extra_frame_info): Update.
873 (sh64_init_extra_frame_info): Update.
874 (sh64_init_extra_frame_info): Update.
875 * mcore-tdep.c (mcore_find_callers_reg): Update.
876 (mcore_frame_saved_pc): Update.
877 (mcore_init_extra_frame_info): Update.
878 * i386-tdep.c (i386_frame_saved_pc): Update.
879 * ia64-tdep.c (ia64_frame_saved_pc): Update.
880 (ia64_init_extra_frame_info): Update.
881 (ia64_init_extra_frame_info): Update.
882 * d10v-tdep.c (d10v_frame_saved_pc): Update.
883 * cris-tdep.c (cris_init_extra_frame_info): Update.
884 * avr-tdep.c (avr_frame_chain): Update.
885 (avr_init_extra_frame_info): Update.
886 (avr_frame_saved_pc): Update.
887 * arm-tdep.c (arm_find_callers_reg): Update.
888 (arm_init_extra_frame_info): Update.
889 (arm_frame_saved_pc): Update.
890
a741e514
TT
8912002-09-17 Tom Tromey <tromey@redhat.com>
892
893 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
894 is "'".
895
d1a8e808
CV
8962002-09-17 Corinna Vinschen <vinschen@redhat.com>
897
898 * MAINTAINERS: Remove "non multi-arched" text from h8300.
899 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
900 NEXT_PROLOGUE_INSN.
901 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
902 NEXT_PROLOGUE_INSN.
903
d9025a18
JB
9042002-09-16 Joel Brobecker <brobecker@gnat.com>
905
906 * osfsolib.c: Remove file, replaced by solib-osf.c.
907 * Makefile.in: Remove compilation rules for osfsolib.c.
908
1b2ef1b6
DC
9092002-09-16 David Carlton <carlton@math.stanford.edu>
910
911 * cp-valprint.c (cp_print_class_method): Correct args to
912 check_stub_method_group.
913
928e48af
CV
9142002-09-16 Corinna Vinschen <vinschen@redhat.com>
915
916 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
917 `set architecture'. Unify naming convention of functions.
918 (h8300_skip_prologue): Improve prologue analysis.
919 (h8300_push_arguments): Rewritten to more closely match GCC's
920 bizarre argument-passing behavior, along with the comment describing
921 said behavior.
922 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
923 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
924 sim, remote-e7000.c, remote-hms.c and remote.c
925
5e3397bb
MK
9262002-09-15 Mark Kettenis <kettenis@gnu.org>
927
928 * i386-tdep.c (gdb_print_insn_i386): Removed.
929 (i386_print_insn): New function.
930 (i386_gdbarch_init): Set print_insn to i386_print_insns.
931 (_initialize_i386_tdep): Don't initialize tm_print_insn and
932 tm_print_insn_info.
933
f710f4fc
MK
9342002-09-14 Mark Kettenis <kettenis@gnu.org>
935
936 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
937 zero.
938
db54fef4
CV
9392002-09-14 Corinna Vinschen <vinschen@redhat.com>
940
941 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
942 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
943 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
944
2becadee
CF
9452002-09-13 Christopher Faylor <cgf@redhat.com>
946
947 * win32-nat.c (child_create_inferior): Honor 'tty' command.
948
de17c821
DJ
9492002-09-13 Daniel Jacobowitz <drow@mvista.com>
950
951 * gdbtypes.c (check_stub_method): Make static.
952 (check_stub_method_group): New function.
953 * gdbtypes.h: Update prototypes.
954 * cp-support.c: New file.
955 * cp-support.h: New file.
956
957 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
958 (update_method_name_from_physname): New function.
959 (read_member_functions): Correct method names for operators
960 and v3 constructors/destructors. Separate v2 constructors and
961 destructors.
962 * Makefile.in (stabsread.o): Update dependencies.
963 (SFILES): Add cp-support.c.
964 (COMMON_OBS): Add cp-support.o.
965 (cp_support_h, cp-support.o): Add.
966
967 * cp-valprint.c (cp_print_class_method): Call
968 check_stub_method_group instead of check_stub_method. Remove
969 extraneous QUITs.
970 * p-valprint.c (pascal_object_print_class_method): Likewise.
971 * valops.c (search_struct_method): Likewise.
972 (find_method_list, value_struct_elt_for_reference): Likewise.
973
e76cff22
AC
9742002-09-13 Andrew Cagney <cagney@redhat.com>
975
976 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
977 * gdbarch.h, gdbarch.c: Regenerate.
978
905abb3f
AC
9792002-09-13 Andrew Cagney <ac131313@redhat.com>
980
981 * frame.c (find_saved_register): Delete function.
982 * frame.h (find_saved_register): Delete declaration.
983 Fix PR gdb/631.
984
64159455
AC
985Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
986
987 * mips-tdep.c (read_next_frame_reg): Re-hack using
988 frame_register_unwind.
989
795e1e11
AC
990Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
991
992 * mips-tdep.c (mips_get_saved_register): Re-hack using
993 frame_register_unwind.
994
5720643c
JB
9952002-09-12 Joel Brobecker <brobecker@gnat.com>
996
997 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
998 vector. Will be useful for Interix.
999 * gdbarch.h, gdbarch.c: Regenerate.
1000
1001 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1002 name of the malloc function by NAME_OF_MALLOC.
1003
3bada2a2
JB
10042002-09-12 Joel Brobecker <brobecker@gnat.com>
1005
1006 * value.h (find_function_in_inferior): Add const keyword to
1007 one of the parameters. Allows us to invoke this function with
1008 a const char *.
1009 * valops.c (find_function_in_inferior): Likewise.
1010
3db26b01
JB
10112002-09-12 Joel Brobecker <brobecker@gnat.com>
1012
1013 * exec.c (xfer_memory): Fix compilation warning with old versions
1014 of GCC.
1015 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1016
17c5ed2c
DC
10172002-09-12 David Carlton <carlton@math.stanford.edu>
1018
1019 * symtab.h: Run through gdb_indent.h.
1020 Add 2002 to Copyright year list.
1021
ecd1107e
AM
10222002-09-12 Alan Modra <amodra@bigpond.net.au>
1023
1024 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1025 mach constants.
1026 * MAINTAINERS: Add myself to write after approval list.
1027
e64f66d1
JB
10282002-09-11 J. Brobecker <brobecker@gnat.com>
1029
1030 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1031
f9395794
JB
10322002-09-11 J. Brobecker <brobecker@gnat.com>
1033
1034 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1035 Interix.
1036
1a303dec
MS
10372002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1038
1039 * procfs.c (do_detach): Clear current signal, not just fault.
1040 Corrects problem with breakpoint trap signal leaking to detached
1041 process on Tru64.
1042
c0219d42
MS
10432002-09-10 Michael Snyder <msnyder@redhat.com>
1044
1045 * buildsym.c (finish_block): Protect against null pointer.
1046
9d84ac84
AC
10472002-09-10 Andrew Cagney <cagney@redhat.com>
1048
1049 * infcmd.c (default_print_registers_info): Send all output to
1050 ``file'' instead of ``gdb_stdout''.
1051
77d8f2b4
MS
10522002-09-10 Michael Snyder <msnyder@redhat.com>
1053
1054 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1055 LONGEST, and use signed register read (addresses are sign-
1056 extended for mips).
1057
99656a61
SC
10582002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1059
1060 * event-loop.c (gdb_do_one_event): Make public.
1061 * event-loop.h (gdb_do_one_event): Declare.
1062
da12f4d8
JL
10632002-09-10 Jeff Law <law@redhat.com>
1064
1065 * infttrace.c (child_resume): Simplify and rework to avoid
1066 TT_PROC_CONTINUE.
1067
d0aee0c4
FF
10682002-09-09 Fred Fish <fnf@intrinsity.com>
1069
1070 * printcmd.c (print_scalar_formatted): "len" is the number of
1071 target bytes, NOT the number of target bits.
1072
7cb3ec5e
EZ
10732002-09-09 Elena Zannoni <ezannoni@redhat.com>
1074
1075 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1076 * top.c (init_main): Set rl_terminal_name.
1077
4dc81987
AS
10782002-09-08 Aidan Skinner <aidan@velvet.net>
1079
1080 * ada-lang.c (ada_array_bound, ada_type_match,
1081 _initialize_ada_language): Fix K&R definitions.
1082 * ada-tasks.c (get_current_task): Fix K&R definitions.
1083 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1084
842330b4
CF
10852002-09-07 Christopher Faylor <cgf@redhat.com>
1086
1087 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1088 Add XP.
1089
43156d82
MK
10902002-09-06 Mark Kettenis <kettenis@gnu.org>
1091
66da5fd8
MK
1092 * i386-tdep.c (i386_register_virtual_type,
1093 i386_register_convertible, i386_register_convert_to_virtual,
1094 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1095 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1096 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1097 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1098 Don't set push_arguments twice.
1099
4b218c18
MK
1100 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1101 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1102 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1103 sigtramp_end to NULL.
1104 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1105 defines.
1106 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1107
4cc314d5
MK
1108 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1109 whitespace.
1110
43156d82
MK
1111 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1112 * gdbarch.h, gdbarch.c: Re-generate.
1113 * blockframe.c (find_pc_sect_partial_function): Convert to use
1114 SIGTRAMP_START_P predicate.
1115
6672060b
MS
11162002-09-05 Michael Snyder <msnyder@redhat.com>
1117
a90c3637
MS
1118 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1119 generic_dummy_frame method and old method. Also distinguish
1120 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 1121 (arm_extract_return_value): Use new regcache method.
a90c3637 1122
6672060b
MS
1123 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1124 adjustment that doesn't conform to the ABI.
1125 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1126 saved regcache, not from current regcache.
1127
299ffc64
AC
11282002-09-05 Andrew Cagney <ac131313@redhat.com>
1129
1130 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1131 * README: Update.
1132
a3a2ee65
JT
11332002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1134
1135 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1136 if arm_apcs_32 is false.
1137
2bc7eea9
AC
11382002-09-04 Andrew Cagney <ac131313@redhat.com>
1139
1140 GDB 5.3 branch created.
1141
8a55a7c5
TR
11422002-09-03 Theodore A. Roth <troth@verinet.com>
1143
1144 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1145 generic_unwind_get_saved_register.
1146
e26fb1d7
DC
11472002-09-03 David Carlton <carlton@math.stanford.edu>
1148
1149 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1150 argument (PR gdb/653). Update call to smash_to_method_type.
1151 (read_structure_scope): Update call to dwarf2_add_member_fn.
1152
30d52491
ML
11532002-09-03 Michal Ludvig <mludvig@suse.cz>
1154
1155 * x86-64-linux-tdep.c: Include gdb_string.h
1156 * x86-64-linux-nat.c: Ditto.
1157
06891d83
JT
11582002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1159
1160 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1161 when YYDEBUG is set to 1.
1162 * c-exp.y: Likewise.
1163 * f-exp.y: Likewise.
1164 * jv-exp.y: Likewise.
1165 * m2-exp.y: Likewise.
1166 * p-exp.y: Likewise.
1167
7d400e77
JT
11682002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1169
1170 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1171 dependency list.
1172 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1173 solib_svr4_fetch_link_map_offsets to
1174 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1175 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1176 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1177 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1178 solib-svr4.o, and solib-legacy.o.
1179 * config/i386/tm-nbsd.h: Include solib.h.
1180
704a27c4
JT
11812002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1182
1183 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1184 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1185 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1186 comment noting that this needs its own target configuration.
1187 * config/i386/nbsd.mt: New file.
1188 * config/i386/nbsdaout.mt: Remove.
1189 * config/i386/nbsdelf.mt: Ditto.
1190 * config/i386/tm-nbsdaout.h: Ditto.
1191
d66198e1
JT
11922002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1193
1194 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1195 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1196 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1197 tdep->sigtramp_end.
1198 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1199 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1200 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1201
3cac699e
JT
12022002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1203
1204 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1205 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1206 * i386-tdep.h (i386bsd_init_abi): New prototype.
1207 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1208 function declaration.
1209 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1210 for NetBSD-a.out or NetBSD-ELF.
1211 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1212 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1213 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1214 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1215 and nbsd-tdep.h.
1216 (i386nbsd_pc_in_sigtramp): New function.
1217 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1218 i386nbsd_pc_in_sigtramp.
1219 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1220 and i386nbsdelf_init_abi OS ABI handlers.
1221 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1222 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1223
7010ca0a
MK
12242002-09-02 Mark Kettenis <kettenis@gnu.org>
1225
1226 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1227 registers if the target really has them.
1228
6dd93b72
JT
12292002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1230
1231 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1232 than nbsd-tdep.h.
1233
2ca8ae21
JT
12342002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1235
1236 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1237 list.
1238 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1239 (alphanbsd_skip_sigtramp_frame): New functions.
1240 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1241 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1242 to alphanbsd_sigcontext_addr.
1243
3d9b49b0
JT
12442002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1245
1246 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1247 list.
1248 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1249 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1250 nbsd_pc_in_sigtramp.
1251 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1252 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1253 * nbsd-tdep.c: Include gdb_string.h.
1254 (nbsd_pc_in_sigtramp): New function.
1255 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1256 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1257 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1258 ppcnbsd_pc_in_sigtramp.
1259 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1260 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1261 shnbsd_pc_in_sigtramp.
1262 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1263 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1264 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1265
c860120c
PM
12662002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1267
1268 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1269 watchpoints to NULL.
1270 (insert_breakpoints): set val field of watchpoints if NULL.
1271
1272
c7612d53
JB
12732002-08-29 Jim Blandy <jimb@redhat.com>
1274
1275 * symtab.c (lookup_symbol_aux): In the cases where we find a
1276 minimal symbol of an appropriate name and use its address to
1277 select a symtab to read and search, use `name' (as passed to us)
1278 as the demangled name when searching the symtab's global and
1279 static blocks, not the minsym's name.
1280
66609862
KS
12812002-08-29 Keith Seitz <keiths@redhat.com>
1282
1283 * stack.c (print_frame_info_base): Always set current_source_symtab
1284 and current_source_line.
1285
151fefe2
JB
12862002-08-29 Donn Terry <donnte@microsoft.com>
1287
1288 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1289
bfb3754e
KS
12902002-08-28 Keith Seitz <keiths@redhat.com>
1291
1292 * stack.c (select_frame): Add FIXME concerning selected-frame
1293 events.
1294 (select_frame_command): Send selected-frame-level-changed
1295 event notification, but only if the level actually changed.
1296 (up_silently_base): Add selected-frame-level-changed event
1297 notification.
1298 (down_silently_base): Likewise.
1299
e822a2a0
AC
13002002-08-28 Andrew Cagney <ac131313@redhat.com>
1301
1302 * Makefile.in: Update dependencies for all gdb/*.c files.
1303
309367d4
TT
13042002-08-27 Tom Tromey <tromey@redhat.com>
1305
1306 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1307 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1308 Update dependencies.
1309 * i387-tdep.c: Include gdb_string.h.
1310 * osabi.c: Likewise.
1311 * i386-linux-nat.c: Likewise.
1312 * lin-lwp.c: Likewise.
1313 * ax-gdb.c: Likewise.
1314 * signals/signals.c: Likewise.
1315 * jv-valprint.c: Likewise.
1316 * p-lang.c: Likewise.
1317 * c-valprint.c: Likewise.
1318 * cp-abi.c: Likewise.
1319
e1507482
EZ
13202002-08-27 Elena Zannoni <ezannoni@redhat.com>
1321
1322 * cli/cli-script.h (copy_command_lines): Export.
1323 * breakpoint.c: Include cli/cli-script.h.
1324 * Makefile.in (breakpoint.o): Update dependencies.
1325
c6510018
MS
13262002-08-26 Michael Snyder <msnyder@redhat.com>
1327
1328 * breakpoint.c (insert_breakpoints): Protect all references
1329 to 'process_warning'. Shorten long lines.
1330
c2b8ed2c
MS
13312002-08-26 Joel Brobecker <brobecker@gnat.com>
1332
1333 * cli/cli-script.c (copy_command_lines): New function.
1334 * defs.h (copy_command_lines): Export.
1335 * testsuite/gdb.base/commands.exp: New tests for commands
1336 attached to a temporary breakpoint, and for commands that
1337 delete the breakpoint they are attached to.
1338
13392002-08-26 Michael Snyder <msnyder@redhat.com>
1340
1341 * breakpoint.c (bpstat_stop_status): Instead of copying the
1342 pointer to the breakpoint commands struct, make a new copy
1343 of the struct and point to that.
1344 (bpstat_clear): Free the commands struct.
1345 (bpstat_clear_actions): Free the commands struct.
1346 (bpstat_do_actions): Free the command actions. Also execute
1347 the local cleanups, instead of deleting them.
1348 (delete_breakpoint): Leave the commands field of the bpstat
1349 chain alone -- it will be freed later.
1350
64b84175
KB
13512002-08-26 Kevin Buettner <kevinb@redhat.com>
1352
1353 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1354 deleted in 2002-08-20 commit. This function is still used by
1355 ppc-linux-nat.c.
1356
55970da6
KS
13572002-08-26 Keith Seitz <keiths@redhat.com>
1358
1359 * gdb-events.sh: Add selected-frame-level-changed event.
1360 * gdb-events.c: Regenerated.
1361 * gdb-events.h: Regenerated.
1362
a790ad35
SC
13632002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1364
1365 Fix PR gdb/393:
1366 * inflow.c (terminal_save_ours): New function to save terminal
1367 settings.
1368 * inferior.h (terminal_save_ours): Declare.
1369 * target.c (debug_to_terminal_save_ours): New function.
1370 (cleanup_target): Defaults to_terminal_save_ours.
1371 (update_current_target): Inherit to_terminal_save_ours.
1372 (setup_target_debug): Set to_terminal_save_ours.
1373 * target.h (target_terminal_save_ours): New to save terminal settings.
1374 (target_ops): New member to_terminal_save_ours.
1375 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1376 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1377 * inftarg.c (init_child_ops): Likewise.
1378 * m3-nat.c (init_m3_ops): Likewise.
1379 * procfs.c (init_procfs_ops): Likewise.
1380 * wince.c (init_child_ops): Likewise.
1381 * win32-nat.c (init_child_ops): Likewise.
1382 * sol-thread.c (init_sol_thread_ops): Likewise.
1383
c00dcbe9
MK
13842002-08-26 Mark Kettenis <kettenis@gnu.org>
1385
3d7f4f49
MK
1386 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1387 use regcache_* functions.
1388 (i386_gdbarch_init): Set store_return_value instead of
1389 deprecated_store_return_value.
1390
c00dcbe9
MK
1391 * regcache.c (regcache_raw_write_signed,
1392 regcache_raw_write_unsigned): New functions.
1393 * regcache.h (regcache_raw_write_signed,
1394 regcache_raw_write_unsigned): New prototypes.
1395
0e0d15ca
AC
13962002-08-25 Andrew Cagney <ac131313@redhat.com>
1397
1398 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1399 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1400 source file dependencies. Cleanup corresponding generator rules.
1401
d3b22ed5
AC
14022002-08-25 Andrew Cagney <ac131313@redhat.com>
1403
1404 * regcache.h (register_offset_hack): Declare.
1405 (regcache_cooked_read_using_offset_hack): Declare.
1406 (regcache_cooked_write_using_offset_hack): Declare.
1407
1408 * regcache.c (register_offset_hack): New function.
1409 (regcache_cooked_read_using_offset_hack): New function.
1410 (regcache_cooked_write_using_offset_hack): New function.
1411 (regcache_dump): Check that the registers, according to their
1412 offset, are packed hard against each other.
1413 (cooked_xfer_using_offset_hack): New function.
1414
bb425013
AC
14152002-08-25 Andrew Cagney <ac131313@redhat.com>
1416
1417 * regcache.c (struct regcache_descr): Add field register_type.
1418 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1419 in as a parameter
1420 (init_regcache_descr): Initialize register_type. Pass the descr
1421 to init_legacy_regcache_descr. Use register_type instead of
1422 REGISTER_VIRTUAL_TYPE.
1423 (register_type): New function.
1424 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1425 * regcache.h (register_type): Declare.
1426
d0403e00
AC
14272002-08-25 Andrew Cagney <ac131313@redhat.com>
1428
1429 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1430 instead of deprecated_store_return_value. Fix fallout from
1431 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1432
0ed04cce
AC
14332002-08-25 Andrew Cagney <ac131313@redhat.com>
1434
1435 * regcache.c (max_register_size): New function.
1436 (init_legacy_regcache_descr): Ensure that max_register_size is
1437 large enough for REGISTER_VIRTUAL_SIZE.
1438 * regcache.h (max_register_size): Declare.
1439
46d79c04
AC
14402002-08-24 Andrew Cagney <ac131313@redhat.com>
1441
1442 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1443 store_return_value.
1444 (e500_extract_return_value): Change type of valbuf pointer to
1445 void.
1446
853c7bd0
MK
14472002-08-24 Mark Kettenis <kettenis@gnu.org>
1448
cd87e769
MK
1449 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1450 workaround.
1451
853c7bd0
MK
1452 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1453 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1454 long long) to prevent compiler warning on 64-bit systems.
1455
ebba8386
AC
14562002-08-23 Andrew Cagney <cagney@redhat.com>
1457
1458 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1459 (DEPRECATED_STORE_RETURN_VALUE): New method.
1460 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1461 * gdbarch.h, gdbarch.c: Re-generate.
1462
1463 * values.c (set_return_value): Pass current_regcache to
1464 STORE_RETURN_VALUE.
1465 * arch-utils.h (legacy_store_return_value): Declare.
1466 * arch-utils.c (legacy_store_return_value): New function.
1467 (legacy_extract_return_value): Update parameters.
1468
1469 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1470 STORE_RETURN_VALUE.
1471 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1472 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1473 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1474 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1475 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1476 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1477 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1478 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1479 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1480 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1481
1482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1483 * i386-tdep.c (i386_extract_return_value): Update.
1484 * arch-utils.c (legacy_extract_return_value): Update.
1485 * frv-tdep.c (frv_gdbarch_init): Update.
1486 * cris-tdep.c (cris_gdbarch_init): Update.
1487 * d10v-tdep.c (d10v_gdbarch_init): Update.
1488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1489 * m68k-tdep.c (m68k_gdbarch_init): Update.
1490 * mcore-tdep.c (mcore_gdbarch_init): Update.
1491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1492 * s390-tdep.c (s390_gdbarch_init): Update.
1493 * sparc-tdep.c (sparc_gdbarch_init): Update.
1494 * sh-tdep.c (sh_gdbarch_init): Update.
1495 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1496 * v850-tdep.c (v850_gdbarch_init): Update.
1497 * avr-tdep.c (avr_gdbarch_init): Update.
1498 * ia64-tdep.c (ia64_gdbarch_init): Update.
1499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1500 * vax-tdep.c (vax_gdbarch_init): Update.
1501 * alpha-tdep.c (alpha_gdbarch_init): Update.
1502 * arm-tdep.c (arm_gdbarch_init): Update.
1503 * mips-tdep.c (mips_gdbarch_init): Update.
1504 * i386-tdep.c (i386_gdbarch_init): Update.
1505
5bd8c6d0
AC
15062002-08-23 Andrew Cagney <ac131313@redhat.com>
1507
1508 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1509 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1510
e73e1724
MK
15112002-08-24 Mark Kettenis <kettenis@gnu.org>
1512
1513 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1514 problems.
1515
3e6564e1
JB
15162002-08-23 Joel Brobecker <brobecker@gnat.com>
1517
1518 * infrun.c (handle_inferior_event): Move a comment outside of a
1519 function call, in order to avoid indent reformatting this part
1520 of the code in an unreadable way.
1521
81d0cc19
GS
15222002-08-23 Grace Sainsbury <graces@redhat.com>
1523
1524 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1525 when breakpoints fail. Move general breakpoint error messages to
1526 insert_breakpoints.
1527 * breakpoint.c (insert_breakpoints): Change warnings when
1528 breakpoints are nto inserted to specify the type. Remove call to
1529 memory_error when hardware breakpoints can't be inserted. Remove
1530 multiple calls to warning so all messages are sent to the user at
1531 once.
1532 (delete_breakpoints): Make insert error messsages more explicit.
1533
17574093
DJ
15342002-08-23 Daniel Jacobowitz <drow@mvista.com>
1535
1536 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1537 gdbserver/ChangeLog.
1538
8acc2935
MK
15392002-08-23 Mark Kettenis <kettenis@gnu.org>
1540
dfe01d39
MK
1541 * i386-tdep.c: Include "objfiles.h".
1542 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1543 skip_trampoline_code.
1544 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1545 (CPLUS_MARKER): Define to '.'.
1546
8acc2935
MK
1547 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1548 member.
1549 (linux_corefile_thread_callback): Increase args->num_notes.
1550 (linux_make_note_section): Initialize thread_args.num_notes, and
1551 use it to determine whether notes for any threads were created.
1552
151fefe2 15532002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1554
1555 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1556 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1557 and PCUNKILL.
1558 (write_with_trace): Conditionalize out the switch branch handling
1559 PCSHOLD if the corresponding macro is not defined. Likewise for
1560 PRSABORT and PRSTOP.
1561 This change will be needed by the Interix port.
1562
e1507482
EZ
15632002-08-22 Elena Zannoni <ezannoni@redhat.com>
1564
1565 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1566 write_register wherever possible instead of manipulating the
1567 register bytes directly.
1568 Assign VALUE_CONTENTS to a variable and use that.
1569 The GPR numbers are now dependent on the architecture.
1570
96ff0de4
EZ
15712002-08-22 Elena Zannoni <ezannoni@redhat.com>
1572
1573 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1574 ev_offset fields.
1575 (skip_prologue): Add support for BookE/e500 instructions.
1576 (e500_extract_return_value): New function.
1577 (frame_get_saved_regs): Add support for saving ev registers and
1578 pseudo gpr's.
1579 (e500_store_return_value): New function.
1580 (rs6000_gdbarch_init): Move up default intializations of
1581 deprecated_extract_return_value and store_return_value. Overwrite
1582 init of store_return_value with e500 specific version.
1583 Set extract_return_value for e500.
1584
fbefca5b
EZ
15852002-08-22 Elena Zannoni <ezannoni@redhat.com>
1586
1587 * blockframe.c (generic_call_dummy_register_unwind): Use
1588 regcache_cooked_read to catch cases in which the variable is
1589 stored in a pseudo register.
1590
4d210288
AC
15912002-08-22 Andrew Cagney <cagney@redhat.com>
1592
1593 * NEWS: Mention that the i960 has been made obsolete.
1594 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1595 i960-tdep.c
1596 (remote-nrom.o): Obsolete target.
1597 (remote-nindy.o, i960-tdep.o): Ditto.
1598 * remote-nrom.c: Make file obsolete.
1599 * remote-nindy.c, remote-vx960.c: Ditto.
1600 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1601 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1602 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1603 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1604 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1605 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1606 i960-*-vxworks* obsolete.
1607 * MAINTAINERS: Note that the i960 is obsolete.
1608
6c0c456d
CV
16092002-08-21 Corinna Vinschen <vinschen@redhat.com
1610
1611 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1612 detach to allow reinitialization.
1613
9f9d12b3
AC
16142002-08-22 Andrew Cagney <ac131313@redhat.com>
1615
1616 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1617 attempt).
1618
ebeb39fe
JB
16192002-08-22 Jim Blandy <jimb@redhat.com>
1620
1621 * coffread.c (coff_symfile_read): Don't try to read the line
1622 number table from disk if the image file doesn't have a symbol
1623 table; we'll never actually look at the info anyway, and Windows
1624 ships DLL's with bogus file offsets for the line number data.
1625
5bf1c677
EZ
16262002-08-21 Elena Zannoni <ezannoni@redhat.com>
1627
1628 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1629 an e500 executable.
1630
71b8ef93
MS
16312002-08-21 Michael Snyder <msnyder@redhat.com>
1632
1633 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1634 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1635 (DEFAULT_MIPS_TYPE): Delete unused macro.
1636 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1637 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1638
d174216d
JB
16392002-08-21 Jim Blandy <jimb@redhat.com>
1640
1641 * valops.c (value_cast): Simplify and correct logic for doing a
1642 static cast from a pointer to a base class to a pointer to a
1643 derived class.
1644
0ab7a791
AC
16452002-08-21 Andrew Cagney <ac131313@redhat.com>
1646
1647 * infcmd.c (default_print_registers_info): Replace
1648 do_registers_info.
1649 (registers_info): Use gdbarch_print_registers_info instead of
1650 DO_REGISTERS_INFO.
1651 * inferior.h (default_print_registers_info): Replace
1652 do_registers_info.
1653 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1654 (DO_REGISTERS_INFO): Change to a predicate function.
1655 * gdbarch.h, gdbarch.c: Regenerate.
1656
e23792cc
KS
16572002-08-21 Keith Seitz <keiths@redhat.com>
1658
1659 * gdb-events.sh: Add target-changed event.
1660 * gdb-events.c: Regenerated.
1661 * gdb-events.c: Regenerated.
1662 * valops.c (value_assign): Add target-changed event notification
1663 to inlval_register, lval_memory, and lval_reg_frame_relative.
1664
9fb14e79
JB
16652002-08-21 Joel Brobecker <brobecker@gnat.com>
1666
1667 * NEWS: Add an entry regarding the improvement of the next/step
1668 operation on Alpha Tru64 multi-processor machines.
1669
6d39a69f
AC
16702002-08-21 Andrew Cagney <ac131313@redhat.com>
1671
72acd513
AC
1672 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1673 directores.
342af04b 1674 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1675 * Makefile.in (install-gdbtk): Move to install section.
1676 (rdi-share/libangsd.a): Move to end of file.
1677
fa5f27c7
AC
16782002-08-19 Andrew Cagney <ac131313@redhat.com>
1679
1680 * frame.c (frame_register_unwind): When a register, set addrp to
1681 the register's byte.
1682
5a89d8aa
MS
16832002-08-20 Michael Snyder <msnyder@redhat.com>
1684
1685 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1686 used locally, so move them from the target machine header to here.
1687 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1688 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1689 Make static.
1690 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1691
822e978b
AC
16922002-08-20 Andrew Cagney <cagney@redhat.com>
1693
1694 * NEWS: Mention that the Apollo line was made obsolete.
1695 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1696 m68*-hp-hpux* obsolete.
1697 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1698 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1699 * buildsym.c (make_blockvector): Make static.
1700 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1701 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1702 (ALLDEPFILES): Remove dstread.c.
1703 (dstread.o): Obsolete make rule.
1704 * dstread.c: Makefile obsolete.
1705 * dst.h: Ditto.
1706 * config/m68k/hp300hpux.mt: Ditto.
1707 * config/m68k/hp300hpux.mh: Ditto.
1708 * config/m68k/hp300bsd.mt: Ditto.
1709 * config/m68k/hp300bsd.mh: Ditto.
1710 * config/m68k/apollo68b.mt: Ditto.
1711 * config/m68k/apollo68v.mh: Ditto.
1712 * config/m68k/apollo68b.mh: Ditto.
1713
e41b17f0
MS
17142002-08-20 Michael Snyder <msnyder@redhat.com>
1715
1716 * mips-tdep.c (mips_in_return_stub): Make static.
1717 (mips_gdbarch_init): Set in_solib_return_trampoline.
1718 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1719
d50355b6
MS
17202002-08-20 Michael Snyder <msnyder@redhat.com>
1721
1722 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1723 * gdbarch.c, gdbarch.h: Regenerate.
1724 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1725 Add.
1726 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1727
757a7cc6
MS
17282002-08-20 Michael Snyder <msnyder@redhat.com>
1729
1730 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1731 (mips_gdbarch_init): Set skip_trampoline_code,
1732 in_solib_call_trampoline.
1733 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1734 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1735
c8001721
EZ
17362002-08-20 Elena Zannoni <ezannoni@redhat.com>
1737
1738 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1739
1740 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1741 vector type for ev registers.
1742 (e500_pseudo_register_read): New function.
1743 (e500_pseudo_register_write): New function.
1744 (e500_dwarf2_reg_to_regnum): New function.
1745 (PPC_UISA_NOFP_SPRS): New macro.
1746 (PPC_EV_REGS): New macro.
1747 (PPC_GPRS_PSEUDO_REGS): New macro.
1748 (registers_e500): New register set for e500.
1749 (variants): Add e500 variant.
1750 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1751 before setting architectural dependent variations. Initialize ev
1752 registers numbers. Add case for e500 architecture. Set the
1753 number of pseudo registers.
1754
64366f1c
EZ
17552002-08-20 Elena Zannoni <ezannoni@redhat.com>
1756
1757 * rs6000-tdep.c: Clean up comments.
1758
7e78f0ca
AC
17592002-08-20 Andrew Cagney <cagney@redhat.com>
1760
1761 * h8300-tdep.c: Re-indent file.
1762
697f7479
JB
17632002-08-20 Jim Blandy <jimb@redhat.com>
1764
1765 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1766 default for this.
697f7479 1767
e86ae29f
KS
17682002-08-20 Keith Seitz <keiths@redhat.com>
1769
1770 * breakpoints.c (watch_command_1): Use internal breakpoint
1771 when setting a watchpoint_scope breakpoint.
1772
216b504f
EZ
17732002-08-20 Elena Zannoni <ezannoni@redhat.com>
1774
1775 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1776 (build_builtin_type_vec64i): Ditto.
1777 (build_builtin_type_vec128): Ditto.
1778 (build_builtin_type_vec128i): Ditto.
1779
f7ab6ec6
MS
17802002-08-19 Michael Snyder <msnyder@redhat.com>
1781
1782 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1783 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1784 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1785 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1786 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1787 CALL_DUMMY_ADDRESS): Delete.
1788 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1789 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1790 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1791 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1792 push_return_address.
1793 (mips_register_raw_size, mips_eabi_use_struct_convention,
1794 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1795 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1796 mips_init_extra_frame_info, mips_eabi_push_arguments,
1797 mips_n32n64_push_arguments, mips_push_return_address,
1798 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1799 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1800
b5d1566e
MS
18012002-08-19 Michael Snyder <msnyder@redhat.com>
1802
1803 * mips-tdep.c (mips_frame_num_args): New function.
1804 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1805 frame_saved_pc, frame_args_address, frame_locals_address,
1806 frame_num_args, and frame_args_skip.
1807 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1808 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1809 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1810 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1811
2f1488ce
MS
18122002-08-20 Michael Snyder <msnyder@redhat.com>
1813
1814 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1815 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1816 * mips-tdep.c (mips_store_struct_return): New function.
1817 (mips_extract_struct_value_address): New function.
1818 (mips_gdbarch_init): Set store_struct_return and
1819 extract_struct_value_address.
1820
41ff2da1
DC
18212002-08-20 David Carlton <carlton@math.stanford.edu>
1822
1823 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1824 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1825 (read_file_scope): Check that line_header is nonzero before
1826 decoding macro information.
1827
e5451d58
MK
18282002-08-20 Mark Kettenis <kettenis@gnu.org>
1829
1830 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1831 flag the general-purpose registers as floating-point on targets
1832 that don't support the floating-point registers.
1833
4a6daafa
EZ
18342002-08-20 Elena Zannoni <ezannoni@redhat.com>
1835
1836 * rs6000-tdep.c (altivec_register_p): Delete.
1837 (rs6000_do_altivec_registers): Delete.
1838 (rs6000_altivec_registers_info): Delete.
1839 (rs6000_do_registers_info): Delete.
1840 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1841 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1842
ab4327e0
EZ
18432002-08-20 Elena Zannoni <ezannoni@redhat.com>
1844
1845 * infcmd.c (do_registers_info): Print vector registers in hex
1846 format only.
1847 (print_vector_info): Check that printing registers
1848 makes sense.
1849 (print_float_info): Ditto.
1850
cb1d2653
AC
18512002-08-20 Andrew Cagney <ac131313@redhat.com>
1852
1853 * mips-tdep.c (mips_gdbarch_init): Update.
1854 (mips_o32_extract_return_value): Rewrite.
1855 (mips_o32_store_return_value): Rewrite.
1856 (mips_o32_xfer_return_value): New function.
1857 (mips_xfer_register): Tweak debug print message. Allow for
1858 buf_offset when dumping the value transfered.
1859
dfc3d9b2
AC
18602002-08-20 Andrew Cagney <ac131313@redhat.com>
1861
1862 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1863 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1864 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1865 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1866 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1867
7807aa61
MS
18682002-08-14 Michael Snyder <msnyder@redhat.com>
1869
1870 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1871
489461e2
EZ
18722002-08-19 Elena Zannoni <ezannoni@redhat.com>
1873
1874 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1875 register.
1876 (P): New macro to define a register as a pseudo register.
1877 (R, R4, R8, R16, FR32, R64, R0): Updated.
1878 (struct variant): Add new fields for number of pseudo registers
1879 and number of total registers.
1880 (tot_num_registers): New macro replacing....
1881 (num_registers): ...deleted macro.
1882 (num_registers): New function.
1883 (num_pseudo_registers): New function.
1884 (variants): Update all variants to intialize new fields correctly.
1885 Postpone initialization of number of pseudo regs and real regs.
1886 (init_variants): New function.
1887 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1888 registers offsets.
1889
fcaffe4c
DC
18902002-08-19 David Carlton <carlton@math.stanford.edu>
1891
2c2738a0
DC
1892 * valops.c (search_struct_field): Change error message to treat
1893 return value of 0 from value_static_field as meaning that field is
1894 optimized out.
1895 (value_struct_elt_for_reference): Ditto.
1896 * values.c (value_static_field): Treat an unresolved location the
1897 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1898 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1899 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1900 * MAINTAINERS: Add self to Write After Approval list.
1901
88658117
AC
19022002-08-19 Andrew Cagney <ac131313@redhat.com>
1903
1904 * mips-tdep.c (mips_xfer_register): New function.
1905 (mips_n32n64_extract_return_value): Rewrite.
1906 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1907 instead of deprecated_extract_return_value.
1908
21283beb
EZ
19092002-08-19 Elena Zannoni <ezannoni@redhat.com>
1910
1911 * rs6000-tdep.c (TDEP): Delete macro.
1912 (branch_dest): Replace use of TDEP macro with its body.
1913 (rs6000_pop_frame): Ditto.
1914 (rs6000_push_arguments): Ditto.
1915 (rs6000_skip_trampoline_code): Ditto.
1916 (rs6000_frame_saved_pc): Ditto.
1917 (rs6000_frame_chain): Ditto.
1918 (rs6000_register_name): Ditto.
1919 (rs6000_register_byte): Ditto.
1920 (rs6000_register_raw_size): Ditto.
1921 (rs6000_register_virtual_type): Ditto.
1922 (rs6000_register_convertible): Ditto.
1923 (rs6000_convert_from_func_ptr_addr): Ditto.
1924
bf072999
DJ
19252002-08-19 Daniel Jacobowitz <drow@mvista.com>
1926
1927 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1928 conditionally.
1929 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1930 MIPS_LINUX_JB_ELEMENT_SIZE.
1931 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1932 for MAX_REGISTER_RAW_SIZE arrays.
1933 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1934 MIPS_LINUX_JB_ELEMENT_SIZE.
1935
9b949a49
PM
19362002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1937
1938 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1939
6d3e79c6
AS
19402002-08-19 Aidan Skinner <aidan@velvet.net>
1941
1942 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1943 ada-valprint.c ada-tasks.c.
1944 (YYFILES): Add ada-exp.y.
1945 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1946 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1947 (ada-exp.tab.o): New target.
1948
06c0b04e
AC
19492002-08-18 Andrew Cagney <ac131313@redhat.com>
1950
1951 * regcache.c (regcache_xfer_part): New function.
1952 (regcache_raw_read_part): New function.
1953 (regcache_raw_write_part): New function.
1954 (regcache_cooked_read_part): New function.
1955 (regcache_cooked_write_part): New function.
1956 * regcache.h (regcache_raw_read_part): Declare.
1957 (regcache_raw_write_part): Declare.
1958 (regcache_cooked_read_part): Declare.
1959 (regcache_cooked_write_part): Declare.
1960
92d1e331
DJ
19612002-08-18 Daniel Jacobowitz <drow@mvista.com>
1962
1963 * remote.c (remote_open_1): Add async_p.
1964 (remote_async_open_1): Delete.
1965 (open_remote_target): Delete.
1966 (remote_open, extended_remote_open): Update calls to remote_open_1.
1967 (remote_async_open, extended_remote_async_open): Call
1968 remote_open_1 instead of remote_async_open_1.
1969
247055de
MK
19702002-08-19 Mark Kettenis <kettenis@gnu.org>
1971
1972 * blockframe.c: Fix a few coding standard violations.
1973
641eda39
MK
19742002-08-19 Mark Kettenis <kettenis@gnu.org>
1975
0b717710
MK
1976 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1977 here from ...
1978 * config/i386/tm-i386sco5.h: ... here. File removed.
1979 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1980
26d28e12 1981 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1982 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1983 (TM_FILE): Set to tm-i386.h.
1984 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1985 * config/i386/tm-i386v.h: Remove file.
1986 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1987 instead of "i386/tm-i386v.h".
1988 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1989 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1990 "i386/tm-i386v.h".
1991 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1992 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1993 "i386/tm-i386.h".
1994
d4e0bab4
MK
19952002-08-18 Mark Kettenis <kettenis@gnu.org>
1996
1997 * config/i386/nm-i386v.h: Add protection against
1998 multiple-inclusion.
1999 (i386_register_u_addr): Remove prototype.
2000 (register_u_addr): New prototype.
2001 (REGISTER_U_ADDR): Redefine accordingly.
2002 * i386v-nat.c: Improve several comments.
2003 (i386_register_u_addr): Change signature and rename to
2004 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2005 ubase variable.
2006
46cac009
AC
20072002-08-18 Andrew Cagney <ac131313@redhat.com>
2008
2009 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2010 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2011 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2012 deprecated_extract_return_value.
2013 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2014 rename mips_o32o64_push_arguments.
2015 (mips_gdbarch_init): Update.
2016 (mips_extract_return_value): Delete.
2017 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2018 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2019 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2020 (mips_n32n64_extract_return_value): Clone
2021 mips_extract_return_value.
2022 (mips_store_return_value): Delete.
2023 (mips_o32_store_return_value): Clone mips_store_return_value.
2024 (mips_o64_store_return_value): Clone mips_store_return_value.
2025 (mips_eabi_store_return_value): Clone mips_store_return_value.
2026 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2027
d2e4a39e
AS
20282002-08-18 Aidan Skinner <aidan@velvet.net>
2029
0c30c098
AS
2030 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2031 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2032
20332002-08-18 Aidan Skinner <aidan@velvet.net>
2034
2035 * ada-lang.c: Run through gdb_indent.sh.
2036 * ada-lang.h: Run through gdb_indent.sh.
2037 * ada-tasks.c: Run through gdb_indent.sh.
2038 * ada-typeprint.c: Run through gdb_indent.sh.
2039 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 2040
01fc4e33
AC
20412002-08-18 Andrew Cagney <ac131313@redhat.com>
2042
2043 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2044 ABI.
2045
d8ee244c
MK
20462002-08-18 Mark Kettenis <kettenis@gnu.org>
2047
c38d8261
MK
2048 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2049
222db64c
MK
2050 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2051 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2052
c2848c82
MK
2053 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2054 write_register_gen instead of write_register_bytes.
2055
d8ee244c
MK
2056 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2057 i[3456]-*-osf1mk* configurations have been made obsolete.
2058 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2059 i[3456]86-*-osf1mk* hosts obsolete.
2060 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2061 targets obsolete.
2062 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2063 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2064 config/i386/i386m3.mt, config/i386/nm-m3.h,
2065 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2066 config/i386/i386mk.mh, config/i386/i386mk.mt,
2067 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2068 obsolete.
2069 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2070 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2071 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2072
61d8d407
AC
20732002-08-18 Andrew Cagney <ac131313@redhat.com>
2074
2075 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2076 (hppa_value_returned_from_stack): Declare.
2077 (hppa_extract_return_value): Declare.
2078 * config/pa/hppa.mt: New file.
2079 * configure.tgt: Recognize hppa*-*-*.
2080 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2081
0c52bd59
MK
20822002-08-18 Mark Kettenis <kettenis@gnu.org>
2083
2084 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2085 comment.
2086
b5686e99
MK
20872002-08-17 Mark Kettenis <kettenis@gnu.org>
2088
2089 * top.c (gdb_rl_operate_and_get_next): Make sure
2090 operate-and-get-next functions correctly even when the history
2091 list is completely filled.
2092
c1bab85b
AC
20932002-08-18 Andrew Cagney <ac131313@redhat.com>
2094
2095 * MAINTAINERS (Target Instruction Set Architectures): Rename
2096 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2097 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2098 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2099 already listed under Host/Native.
2100
2101 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2102 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2103 mips*-*-*.
2104
32089c7c
AC
21052002-08-17 Andrew Cagney <ac131313@redhat.com>
2106
2107 * config/ia64/ia64.mt: New file.
2108 * config/alpha/alpha.mt: New file.
2109 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2110 ia64-linux-gnu. Mention that ia64-elf is broken.
2111 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2112
b4671f85
MK
21132002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2114
2115 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2116 generic_func_frame_valid instead of func_frame_valid.
2117
c8edd8b4
JB
21182002-08-16 Joel Brobecker <brobecker@gnat.com>
2119
2120 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2121 procfs appears to be broken when debugging on multi-processor
2122 machines. So enable software single stepping in order to avoid
2123 using the procfs interface to do next/step operations, using
2124 internal breakpoints instead.
2125
2126 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2127 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2128 make this pc address equal to the value it would have if the
2129 system stepping capability was used. Also set a new flag used
2130 to ensure that we don't readjust the PC one more time later.
2131
2132 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2133 address by DECR_PC_AFTER_BREAK when software single step is
2134 in use for this architecture, as this has already been taken
2135 care of in handle_inferior_event().
2136
238617f6
JB
21372002-08-16 Joel Brobecker <brobecker@gnat.com>
2138
2139 * infrun.c (handle_inferior_event): Minor reformatting, to make
2140 a rather long condition expression easier to read.
2141
541a7aac
AC
21422002-08-16 Andrew Cagney <ac131313@redhat.com>
2143
2144 * Makefile.in (gdbtk.o): Move to end of file.
2145 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2146 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2147 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2148 (gdbtk-wrapper.o, gdbres.o): Ditto.
2149
f92d4a7b
AC
21502002-08-16 Andrew Cagney <ac131313@redhat.com>
2151
2152 * Makefile.in (copying.o): Separate out compile rule.
2153 (hpux-thread.o, procfs.o, signals.o): Ditto.
2154 (v850ice.o, z8k-tdep.o): Ditto.
2155 (tui-file.o): Move to TUI section.
2156 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2157 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2158
1cce71eb
JB
21592002-08-16 Joel Brobecker <brobecker@gnat.com>
2160
2161 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2162 skip_trampoline_code, for better namespace-proofing.
2163
2164 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2165
0851f23d
JB
21662002-08-16 Joel Brobecker <brobecker@gnat.com>
2167
2168 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2169
f8d40ec8
JB
21702002-08-16 Joel Brobecker <brobecker@gnat.com>
2171
2172 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2173 signal, check whether we hit a breakpoint before checking for a
2174 single step breakpoint. Otherwise, GDB fails to notice that a
2175 breakpoint has been hit when stepping onto a breakpoint.
2176
63d022e0
KS
21772002-08-16 Keith Seitz <keiths@redhat.com>
2178
2179 * gdb-events.sh (clear_gdb_event_hooks): New function.
2180 * gdb-events.c: Regenerate.
2181 * gdb-events.h: Regenerate.
2182
6e31adb3
AC
21832002-08-16 Andrew Cagney <ac131313@redhat.com>
2184
2185 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2186 not_a_sw_breakpoint.
2187 * breakpoint.h (bpstat_stop_status): Add parameter names.
2188
c8189ed1
GS
21892002-08-16 Grace Sainsbury <graces@redhat.com>
2190
2191 * remote.c (remote_insert_hw_breakpoint)
2192 (remote_remove_hw_breakpoint): Fix calculation of length field
2193 for Z-packet.
2194
d05285fa
MS
21952002-08-15 Michael Snyder <msnyder@redhat.com>
2196
466d7106
MS
2197 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2198 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2199 (supply_fpregset): Ditto.
2200
d05285fa
MS
2201 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2202 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2203 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2204 (TARGET_READ_SP): Delete.
bf1f5b4c 2205 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2206 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2207 Delete.
2208 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2209 from macros to functions.
bf1f5b4c 2210
d05285fa
MS
2211 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2212 (mips_register_convertible, mips_register_convert_to_virtual,
2213 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2214 (mips_read_sp): New function.
2215 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2216 (mips_do_registers_info): Make static.
2217 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2218 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2219 (mips_register_convert_from_type, mips_register_convert_to_type):
2220 New functions.
2221 (mips_gdbarch_init): Set up function_start_offset,
2222 register_virtual_size, pc_in_sigtramp.
d05285fa 2223
e76f1f2e
AC
22242002-08-15 Andrew Cagney <ac131313@redhat.com>
2225
2226 * infcmd.c (vector_info): New function.
2227 (_initialize_infcmd): Add command "info vector".
2228 (print_vector_info): New function.
2229
2230 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2231 * gdbarch.h, gdbarch.c: Regenerate.
2232
4782dc19
AC
22332002-08-15 Andrew Cagney <ac131313@redhat.com>
2234
2235 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2236 ``print_all''. Only print vector registers when ``print_all''.
2237
23e3a7ac
AC
22382002-08-15 Andrew Cagney <ac131313@redhat.com>
2239
8e186fd6
AC
2240 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2241 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2242
23e3a7ac
AC
2243 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2244 Add `args' parameter.
2245 * gdbarch.h, gdbarch.c: Regenerate.
2246
2247 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2248
2249 * infcmd.c (float_info): Call print_float_info.
2250 (print_float_info): New function. By default, print the
2251 floating-point registers.
2252
2253 * arch-utils.h (default_print_float_info): Delete declaration.
2254 * arch-utils.c (default_print_float_info): Delete function.
2255
e0ca2bb9
MK
22562002-08-16 Mark Kettenis <kettenis@gnu.org>
2257
3f733acc
MK
2258 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2259 out define.
2260
7d8d2918
MK
2261 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2262 FRAME.
2263
1c7cc583
MK
2264 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2265 * configure.host: Make i[3456]86-*-aix host obsolete.
2266 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2267 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2268 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2269 config/i386/xm-i386aix.h: Make files obsolete.
2270 * i386aix-nat.c: Make file obsolete.
2271 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2272 (i386aix-nat.o): Make target obsolete.
2273
e0ca2bb9
MK
2274 * config/i386/nm-gnu.h: Removed.
2275 * config/i386/nm-i386gnu.h: New file.
2276 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2277 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2278 Moved here from ...
2279 * config/i386/tm-i386gnu.h: ... here. Removed.
2280 * config/i386/xm-i386gnu.h: Removed.
2281 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2282 (NAT_FILE): Set to nm-i386gnu.h.
2283 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2284 * i386-tdep.c: New file.
2285 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2286 (i386gnu-tdep.o): Specify dependencies.
2287
16057ec7 22882002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2289
6b99ee2e
MK
2290 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2291 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2292 Adjust a few comments to reflect reality a bit closer.
2293 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2294 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2295 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2296 target_insert_watchpoint, target_remove_watchpoint):
2297 Move defines to ...
2298 * config/i386/nm-i386sco5.h: ... here.
2299 (kernel_u_size): Add prototype. Improve a few comments and add
2300 protection against multiple inclusion.
2301
d9a6f65c
MK
2302 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2303 out define.
2304
047eff6a
MK
2305 * uw-thread.c (SP_ARG0): Define if not already defined.
2306 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2307
dcdb1290
MK
2308 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2309
5d2d0b2a
MK
2310 * config/i386/tm-i386.h: Don't include "regcache.h".
2311
61113f8b
MK
2312 * i387-tdep.h (i387_print_float_info): New prototype.
2313 * i387-tdep.c (print_i387_value, print_i387_ext,
2314 print_i387_status_word, print_i387_control_word): Add `struct
2315 ui_file *' argument and use it for output.
2316 (i387_print_float_info): Renamed from i387_float_info. Add
2317 `struct gdbarch *' and `struct ui_file *' arguments and use the
2318 latter for output.
2319 * i386-tdep.c: Include "i387-tdep.h".
2320 (i386_gdbarch_init): Set print_float_info.
2321 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2322 (FLOAT_INFO): Remove define.
2323
46e0f506
MS
23242002-08-13 Michael Snyder <msnyder@redhat.com>
2325
2326 * mips-tdep.c (mips_push_arguments): Rename to
2327 mips_eabi_push_arguments, and tune for EABI.
2328 (MIPS_REGS_HAVE_HOME_P): Delete.
2329 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2330 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2331 Delete references to mips_regs_have_home_p.
2332
409268de
KS
23332002-08-14 Keith Seitz <keiths@redhat.com>
2334
2335 * Makefile.in (install-gdbtk): Create insight plugin directory.
2336 Install plugins.tcl file.
2337
ffc6a242
KS
23382002-08-14 Keith Seitz <keiths@redhat.com>
2339
2340 * configure.in: Move SUBDIRS to near top of the file so that
2341 --enable options may add things to it.
2342 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2343 * configure: Regenerate.
2344
ebafbe83
MS
23452002-08-13 Michael Snyder <msnyder@redhat.com>
2346
2347 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2348 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2349 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2350
32f6f25d
AC
23512002-08-13 Andrew Cagney <ac131313@redhat.com>
2352
2353 * vax-tdep.c (vax_get_saved_register): Delete function.
2354 (vax_gdbarch_init): Update.
2355 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2356 (ns32k_gdbarch_init): Update.
2357 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2358 (alpha_gdbarch_init): Update.
2359
53826de9
AC
23602002-08-13 Andrew Cagney <cagney@redhat.com>
2361
2362 * regcache.c (init_regcache_descr): Overallocate the
2363 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2364 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2365 nr_raw_registers.
2366 (set_register_cached): Add range checking assertions. Use
2367 current_regcache.
2368
16057ec7 23692002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2370
2371 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2372 numbers for MMX registers.
2373
7b4c2dce
AC
23742002-08-13 Andrew Cagney <cagney@redhat.com>
2375
2376 * i386-tdep.c (i386_gdbarch_init): Use
2377 generic_unwind_get_saved_register.
2378
1e03ad20
KB
23792002-08-13 Kevin Buettner <kevinb@redhat.com>
2380
2381 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2382 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2383 target vector.
2384 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2385 Delete. Add comment regarding this now-deleted target method.
2386
548bcbec
SC
23872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2388
2389 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2390 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2391 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2392 real PC and the page number (if it's within the memory bank window).
2393 (m68hc11_pseudo_register_write): Likewise when saving.
2394 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2395 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2396 (m68hc11_register_raw_size): And use 32-bit for it.
2397 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2398 16K memory bank is used by the prog; also use the virtual pc.
2399
7df11f59
SC
24002002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2401
2402 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2403 (m68hc11_gdbarch_init): Install it in gdbarch.
2404 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2405 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2406 (MSYMBOL_SIZE): New for documentation.
2407 (insn_return_kind): Enum to specify how a function returns.
2408 (frame_extra_info): Cleanup and record the return mode.
2409 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2410 register in address computation.
2411 (m68hc11_get_return_insn): New to obtain the return instruction used
2412 by the function.
2413 (m68hc11_frame_init_saved_regs): Take into account the return
2414 instruction used by the function for far and interrupt functions.
2415 (m68hc11_init_extra_frame_info): Take into account page register.
2416 (m68hc11_frame_args_address): Adjust according to the return mode.
2417 (show_regs): Print page register only when it's used.
2418
5706502a
SC
24192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2420
2421 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2422 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2423 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2424 registers.
2425 (m68hc11_register_raw_size): Likewise.
2426
28fc6740
AC
24272002-08-13 Andrew Cagney <cagney@redhat.com>
2428
2429 * i386-tdep.c (i386_register_name): Handle mmx registers.
2430 (mmx_regnum_p): New function.
2431 (i386_mmx_names): New array.
2432 (mmx_num_regs): New variable.
2433 (i386_pseudo_register_read): New function.
2434 (i386_pseudo_register_write): New function.
2435 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2436
2437 * regcache.c (regcache_raw_read_unsigned): New function.
2438 (regcache_raw_read_signed): New function.
2439 * regcache.h (regcache_raw_read_unsigned): Declare.
2440 (regcache_raw_read_signed): Declare.
2441
a378f419
AC
24422002-08-13 Andrew Cagney <cagney@redhat.com>
2443
2444 * regcache.c (regcache_raw_read_as_address): Delete function.
2445 (regcache_cooked_read_signed): New function.
2446 (regcache_cooked_read_unsigned): New function.
2447 * regcache.h (regcache_cooked_read_signed): Declare.
2448 (regcache_cooked_read_unsigned): Declare.
2449 (regcache_raw_read_as_address): Delete declaration.
2450
2451 * blockframe.c (generic_read_register_dummy): Use
2452 regcache_cooked_read_unsigned.
2453 * i386-tdep.c (i386_extract_struct_value_address): Use
2454 regcache_cooked_read_unsigned.
2455
81967506
SC
24562002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2457
2458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2459 double sizes according to ELF ABI flags.
2460 (gdbarch_tdep): Record elf_flags.
2461
ffe1f3ee
SC
24622002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2463
2464 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2465 (m6812_prolog): They can appear in 68HC12 function prologue.
2466 (m68hc11_frame_chain): Cleanup.
2467
98216c5d
AC
24682002-08-12 Andrew Cagney <cagney@redhat.com>
2469
2470 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2471 declarations.
2472 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2473 (i386_linux_register_raw_size): Delete function.
2474 (i386_linux_init_abi): Update.
2475 * i386-tdep.c (i386_register_raw_size): Delete function.
2476 (i386_register_byte): Delete function.
2477 (i386_gdbarch_init): Update.
2478 (i386_register_size): Delete array.
2479 (i386_register_offset): Delete array.
2480
2481 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2482 (REGISTER_RAW_SIZE): Delete macro.
2483 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2484 (REGISTER_BYTE): Delete macro.
2485
3b19021e
AS
24862002-08-11 Aidan Skinner <aidan@velvet.net>
2487
2488 * ada-lang.c (ada_lookup_partial_symbol)
2489 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2490 prototype names so that grep ^func works properly.
2491
2492 * ada-lang.c (ada_array_element_type)
2493 (ada_lookup_partial_symbol): Fix typos in parameter list.
2494
2495 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2496 Fix prototype names so that grep ^func works properly.
2497
b063e7a2
AC
24982002-08-10 Andrew Cagney <cagney@redhat.com>
2499 Elena Zannoni <ezannoni@redhat.com>
2500 Martin M. Hunt <hunt@redhat.com>
2501
2502 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2503 (build_builtin_type_vec128i): Set the vector bit.
2504 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2505 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2506 (build_builtin_type_vec64): New function.
2507 (build_builtin_type_vec64i): New function.
2508 (build_gdbtypes): Initialize builtin_type_vec64 and
2509 builtin_type_vec64i.
2510
a7e3c2ad
AC
25112002-08-09 Andrew Cagney <cagney@redhat.com>
2512
2513 * regcache.c (regcache_dump): Compare the register offset
2514 with REGISTER_BYTE.
2515 * arch-utils.c (generic_register_byte): New function.
2516 * arch-utils.h (generic_register_byte): Declare.
2517 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2518 * gdbarch.h, gdbarch.c: Regenerate.
2519
af030b9a
AC
25202002-08-09 Andrew Cagney <cagney@redhat.com>
2521
2522 * regcache.c: Include "gdbcmd.h"
2523 (_initialize_regcache): Add commands "maintenance print
2524 registers", "maintenance print raw-registers" and "maintenance
2525 print cooked-registers".
2526 (enum regcache_dump_what): Define.
2527 (dump_endian_bytes): New function.
2528 (regcache_dump): New function.
2529 (regcache_print): New function.
2530 (maintenance_print_registers): New function.
2531 (maintenance_print_raw_registers): New function.
2532 (maintenance_print_cooked_registers): New function.
2533 * Makefile.in (regcache.o): Update dependencies.
2534
cb3d25d1
MS
25352002-08-09 Michael Snyder <msnyder@redhat.com>
2536
2537 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2538 (mips_push_arguments): Correct some comments. Use paddr_nz
2539 for printing addresses in debug output. Replace static
2540 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2541 (mips_n32n64_push_arguments): New function, cloned from
2542 mips_push_arguments and tuned for the n32/n64 ABI.
2543 (mips_push_register): Buffer needs dynamic allocation.
2544 (mips_print_register): Ditto.
2545 (do_gp_register_row): Ditto.
2546 (mips_store_return_value): Ditto.
2547 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2548
2163ab9d
DH
25492002-08-09 Don Howard <dhoward@redhat.com>
2550
2551 * memattr.c (mem_info_command): Print special case of upper bound
2552 as max CORE_ADDR + 1.
2553
b78bcb18
MS
25542002-08-08 Michael Snyder <msnyder@redhat.com>
2555
2556 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2557 returns structs by ref if they're too big to fit in two registers.
2558
ffabd70d
KB
25592002-08-09 Kevin Buettner <kevinb@redhat.com>
2560
2561 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2562 saved regs value.
2563 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2564 mips_find_saved_regs().
2565 (mips_pop_frame): Likewise.
2566
fbcdb4a3
KB
25672002-08-09 Kevin Buettner <kevinb@redhat.com>
2568
2569 * blockframe.c (frame_saved_regs_register_unwind): Revise
2570 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2571 frames are in use.
2572
3c3bea1c
GS
25732002-08-09 Grace Sainsbury <graces@redhat.com>
2574
2575 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2576 T-packets; the 'a' is not taken as a register number.
2577 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2578 (remote_stopped_data_address): New functions; add to target
2579 vector.
2580 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2581 prototypes to match other implementations of this
2582 function. replace integer argument with pointer -- the length
2583 field in the Z-packet is the length of what is pointed to or 1 if
2584 pointer is null. Add to target vector.
2585 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2586 target vector.
2587
2588 From Mark Salter:
2589 * remote.c (remote_wait): Add support to extract optional
2590 watchpoint information from T-packet. Ignore unrecognized
2591 optional info in T-packet.
2592 (remote_async_wait): Ditto.
2593
5d1d95de
CV
25942002-08-09 Corinna Vinschen <vinschen@redhat.com>
2595
2596 * cli/cli-dump.c: Change fopen modes to use binary open modes
2597 as defined in include/fopen-bin.h throughout.
2598
c86b5b38
MS
25992002-08-08 Michael Snyder <msnyder@redhat.com>
2600
2601 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2602
b30590dc
KB
26032002-08-08 Kevin Buettner <kevinb@redhat.com>
2604
2605 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2606 assertion failure by returning early after a warning.
2607
498868ed
KB
26082002-08-08 Kevin Buettner <kevinb@redhat.com>
2609
2610 * mips-tdep.c (mips_find_saved_regs): Make static.
2611 (mips_frame_init_saved_regs): New function.
2612 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2613 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2614 (mips_find_saved_regs): Delete declaration.
2615
b2dd6311
GS
26162002-08-08 Grace Sainsbury <graces@redhat.com>
2617
3c3bea1c
GS
2618 * remote.c (remote_wait, remote_async_wait): Change
2619 thread_num from int to ULONGEST.
2620 (unpack_varlen_hex): Change result parameter from
2621 int * to ULONGEST *.
b2dd6311 2622
ea47855f
AC
26232002-08-08 Andrew Cagney <ac131313@redhat.com>
2624
2625 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2626 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2627 powerpc*-*-*.
2628 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2629
69db8bae
AC
26302002-08-08 Andrew Cagney <cagney@redhat.com>
2631
2632 * gcore.c (override_derive_stack_segment): Delete variable.
2633 (preempt_derive_stack_segment): Delete function.
2634 (derive_stack_segment): Delete function.
2635 (default_derive_stack_segment): Renamed to derive_stack_segment.
2636 (override_derive_heap_segment): Delete variable.
2637 (preempt_derive_heap_segment): Delete function.
2638 (derive_heap_segment): Delete function.
2639 (default_derive_heap_segment): Rename to derive_heap_segment.
2640
cb811fe7
MS
26412002-08-06 Michael Snyder <msnyder@redhat.com>
2642
2643 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2644 * mips-tdep.c (mips_EABI_use_struct_convention,
2645 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2646 New functions. (mips_use_struct_convention): Delete.
2647 (mips_gdbarch_init): set use_gdbarch_convention.
2648
8b389c40
MS
26492002-08-06 Michael Snyder <msnyder@redhat.com>
2650
2651 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2652 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2653 mips_o32_reg_struct_has_addr): New functions.
2654 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2655
5c27f28a
AC
26562002-08-07 Andrew Cagney <ac131313@redhat.com>
2657
2658 * regcache.c (pseudo_register): Delete function.
2659 (fetch_register): Delete function.
2660 (store_register): Delete function.
2661 (regcache_raw_read, legacy_read_register_gen): Use
2662 target_fetch_registers instead of fetch_register.
2663 (legacy_write_register_gen, regcache_raw_write): Use
2664 target_store_register instead of store_register.
2665 (write_register_bytes): Ditto.
2666
2667 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2668 (STORE_PSEUDO_REGISTER): Delete.
2669 * gdbarch.h, gdbarch.c: Regenerate.
2670
5b331675
CV
26712002-08-06 Corinna Vinschen <vinschen@redhat.com>
2672
2673 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2674 write dump file binary.
2675
6acdf5c7
MS
26762002-08-05 Michael Snyder <msnyder@redhat.com>
2677
2678 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2679 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2680 (mips_gdbarch_init): Set N32 target to be mips64.
2681
b2f01c35
KB
26822002-08-06 Kevin Buettner <kevinb@redhat.com>
2683
2684 * frame.c (find_saved_register): Break out of loop once saved
2685 register address is found. Don't mention sparc in loop comment
2686 anymore.
2687
63db5580
KB
26882002-08-06 Kevin Buettner <kevinb@redhat.com>
2689
2690 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2691 mips_default_saved_regsize to 8.
2692
5e34e75e
AC
26932002-08-06 Andrew Cagney <ac131313@redhat.com>
2694
2695 * gcore.c: Do not include <sys/procfs.h>.
2696 * Makefile.in (gcore.o): Update dependencies.
2697
eb4c54a2
AC
26982002-08-06 Andrew Cagney <cagney@redhat.com>
2699
2700 * configure.tgt: Make arc-*-* obsolete.
2701 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2702 * MAINTAINERS: Make arc-elf obsolete.
2703 * arc-tdep.c: Make file obsolete.
2704 * config/arc/arc.mt: Ditto.
2705 * config/arc/tm-arc.h: Ditto.
2706
ced15480
TR
27072002-08-05 Theodore A. Roth <troth@verinet.com>
2708
c1bab85b 2709 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2710
b4743822
AC
27112002-08-05 Andrew Cagney <ac131313@redhat.com>
2712
2713 * mcore-tdep.c (mcore_gdbarch_init): Use
2714 generic_unwind_get_saved_register instead of
2715 generic_get_saved_register.
2716 * v850-tdep.c (v850_gdbarch_init): Ditto.
2717 * frv-tdep.c (frv_gdbarch_init): Ditto.
2718 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2719 * s390-tdep.c (s390_gdbarch_init): Ditto.
2720 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2721 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2722 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2723
3956d554
JB
27242002-08-05 Joel Brobecker <brobecker@gnat.com>
2725
2726 * objfiles.h: Add missing #include "symfile.h"
2727
2728 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2729
8249c0d6
AC
27302002-08-04 Andrew Cagney <ac131313@redhat.com>
2731
2732 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2733 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2734 of FIELD_BITSIZE.
2735
b9d14705
DJ
27362002-08-04 Daniel Jacobowitz <drow@mvista.com>
2737
2738 * NEWS: Cleanup and nitpick.
2739
dd73b9bb
AC
27402002-08-03 Andrew Cagney <ac131313@redhat.com>
2741
2742 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2743
043a27f8
AC
27442002-08-03 Andrew Cagney <ac131313@redhat.com>
2745
2746 * Makefile.in (gdbtk-bp.o): Update dependencies.
2747 (gdbtk-register.o): Ditto.
2748 (gdbtk-varobj.o): Ditto.
2749
46ce284d
AC
27502002-08-03 Andrew Cagney <cagney@redhat.com>
2751
2752 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2753 m68hc11_fetch_pseudo_register.
2754 (m68hc11_pseudo_register_write): Replace
2755 m68hc11_store_pseudo_register.
2756 (m68hc11_gdbarch_init): Update.
2757
b66d6d2e
AC
2758Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2759
2760 * gdbarch.sh: Include "gdb_string.h".
2761 * gdbarch.c: Regenerate.
2762
2763 * regcache.c: Include "gdb_string.h".
2764 * ax-general.c: Ditto.
2765 * varobj.c: Ditto.
2766 * std-regs.c: Ditto.
2767 * fbsd-proc.c: Ditto.
2768 * thread.c: Ditto.
2769
2770 * Makefile.in (regcache.o): Update dependencies.
2771 (thread.o, gdbarch.o): Ditto.
2772 (ax-general.o, gdbarch.o): Ditto.
2773 (varobj.o, std-regs.o): Ditto.
2774 (fbsd-proc.o): Specify dependencies.
2775
29e1842b
AC
27762002-08-02 Andrew Cagney <cagney@redhat.com>
2777
2778 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2779 regnum.
2780 (regcache_cooked_write): Ditto.
2781
68365089
AC
27822002-08-02 Andrew Cagney <ac131313@redhat.com>
2783
2784 * regcache.c (regcache_cooked_read): New function.
2785 (regcache_cooked_write): New function.
2786 (read_register_gen): Rewrite using regcache_cooked_read.
2787 (write_register_gen): Rewrite using regcache_cooked_write.
2788
2789 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2790 Declare.
2791
d8124050
AC
27922002-08-02 Andrew Cagney <cagney@redhat.com>
2793
2794 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2795 Replace the architecture methods register_read and register_write.
2796 * gdbarch.h, gdbarch.c: Regenerate.
2797 * regcache.c (init_regcache_descr): Update.
2798 (read_register_gen): Update.
2799 (write_register_gen): Update.
2800 (supply_register): Update comment.
2801
2802 * sh-tdep.c (sh_gdbarch_init): Update.
2803 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2804 `regcache' and `gdbarch' parameters. Make `buffer' a void
2805 pointer. Update code.
2806 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2807 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2808 void pointer. Update code.
2809 (sh64_register_write): Delete.
2810 (sh4_register_read): Delete.
2811 (sh64_register_read): Delete.
2812 (sh4_register_write): Delete.
2813 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2814 void pointer, `to' parameter a void pointer.
2815 (sh_sh64_register_convert_to_raw): Ditto.
2816
a6425924
KB
28172002-08-01 Kevin Buettner <kevinb@redhat.com>
2818
2819 * mips-tdep.c (mips_register_virtual_type): Use architecture
2820 invariant return values.
2821
ff5922b5
AC
28222002-08-01 Andrew Cagney <cagney@redhat.com>
2823
2824 * linux-proc.c: Include "gdb_string.h".
2825 * Makefile.in (linux-proc.o): Update dependency list.
2826
32a6503c
KB
28272002-08-01 Kevin Buettner <kevinb@redhat.com>
2828
2829 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2830 comment.
2831
ccaa32c7
GS
28322002-08-01 Grace Sainsbury <graces@redhat.com>
2833
2834 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2835 to_insert_watchpoint, to_remove_watchpoint,
2836 to_stopped_by_watchpoint, to_stopped_data_address,
2837 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2838 target vecctor. Define their corresponding macros so they call
2839 them.
2840
2841 * target.c: Add default and debug versions of for
2842 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2843 to_insert_watchpoint, to_remove_watchpoint,
2844 to_stopped_by_watchpoint, to_stopped_data_address,
2845 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2846
78fde5f8
KB
28472002-08-01 Kevin Buettner <kevinb@redhat.com>
2848
2849 * mips-tdep.c (mips_register_virtual_type): New function.
2850 (mips_gdbarch_init): Register mips_register_virtual_type()
2851 with gdbarch machinery.
2852 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2853 this file instead of tm-bigmips.h.
2854 (MIPS_REGSIZE): Delete this macro.
2855 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2856 multiarch version in mips-tdep.c will be found.
2857
db034ac5
AC
28582002-08-01 Andrew Cagney <cagney@redhat.com>
2859
2860 * NEWS: Menion that CHILL has been made obsolete.
2861
2862 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2863 * stabsread.c (read_range_type): Ditto.
2864 * gdbtypes.h: Ditto.
2865 * language.c (binop_type_check): Ditto.
2866 (binop_result_type): Ditto.
2867 (integral_type): Ditto.
2868 (character_type): Ditto.
2869 (string_type): Ditto.
2870 (boolean_type): Ditto.
2871 (structured_type): Ditto.
2872 (lang_bool_type): Ditto.
2873 (binop_type_check): Ditto.
2874 * language.h (_LANG_chill): Ditto.
2875 * dwarfread.c (set_cu_language): Ditto.
2876 * dwarfread.c (CHILL_PRODUCER): Ditto.
2877 * dwarfread.c (handle_producer): Ditto.
2878 * expression.h (enum exp_opcode): Ditto.
2879 * eval.c: Ditto for comments.
2880 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2881 * expprint.c (print_subexp): Ditto.
2882 (print_subexp): Ditto.
2883 * valops.c (value_cast): Ditto.
2884 (search_struct_field): Ditto.
2885 * value.h (COERCE_VARYING_ARRAY): Ditto.
2886 * symfile.c (init_filename_language_table): Ditto.
2887 (add_psymbol_with_dem_name_to_list): Ditto.
2888 * valarith.c (value_binop): Ditto.
2889 (value_neg): Ditto.
2890 * valops.c (value_slice): Ditto.
2891 * symtab.h (union language_specific): Ditto.
2892 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2893 (SYMBOL_DEMANGLED_NAME): Ditto.
2894 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2895 * defs.h (enum language): Ditto.
2896 * symtab.c (got_symtab): Ditto.
2897 * utils.c (fprintf_symbol_filtered): Ditto.
2898
2899 * ch-typeprint.c: Make file obsolete.
2900 * ch-valprint.c: Make file obsolete.
2901 * ch-lang.h: Make file obsolete.
2902 * ch-exp.c: Make file obsolete.
2903 * ch-lang.c: Make file obsolete.
2904
2905 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2906 CHILL_LIB.
2907 (TARGET_FLAGS_TO_PASS): Ditto.
2908 (CHILLFLAGS): Obsolete.
2909 (CHILL): Obsolete.
2910 (CHILL_FOR_TARGET): Obsolete.
2911 (CHILL_LIB): Obsolete.
2912 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2913 ch-valprint.c.
2914 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2915 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2916 ch-lang.o.
2917 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2918 targets.
2919
8aaf0b47
JB
29202002-07-31 Joel Brobecker <brobecker@gnat.com>
2921
2922 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2923 This does not change anything at the moment, but will be helpful
2924 later when full Ada support is integrated.
2925
f3a7b3a5
KB
29262002-07-31 Kevin Buettner <kevinb@redhat.com>
2927
2928 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2929 help message.
2930
fb850278
KB
29312002-07-31 Kevin Buettner <kevinb@redhat.com>
2932
2933 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2934 and save it in a local variable. Use variable in later test.
2935
e3bddbfa
KB
29362002-07-31 Kevin Buettner <kevinb@redhat.com>
2937
2938 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2939 test. (Thanks to Daniel Jacobowitz.)
2940
28d169de
KB
29412002-07-31 Kevin Buettner <kevinb@redhat.com>
2942
2943 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2944 (mips_abi_strings): Add "n64".
2945 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2946
7fe7e44e
KB
29472002-07-31 Kevin Buettner <kevinb@redhat.com>
2948
2949 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2950 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2951
c6caf090
KB
29522002-07-31 Kevin Buettner <kevinb@redhat.com>
2953
2954 * utils.c (host_pointer_to_address, address_to_host_pointer):
2955 Use gdb_assert() instead of explicit call to internal_error().
2956
c41669e0
KB
29572002-07-30 Kevin Buettner <kevinb@redhat.com>
2958
2959 * Makefile.in (rs6000-nat.o): Update dependencies.
2960
2961 From Nicholas Duffek:
2962 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2963 (aix-thread.o): New rule.
2964 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2965 * config/powerpc/aix432.mh: New file.
2966
2fda4977
DJ
29672002-07-30 Daniel Jacobowitz <drow@mvista.com>
2968
2969 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2970 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2971 (fetch_core_registers, ppc_linux_supply_gregset)
2972 (ppc_linux_supply_fpregset): New functions.
2973 (ppc_linux_regset_core_fns): New.
2974 (_initialize_ppc_linux_tdep): Call add_core_fns.
2975 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2976 and ppc_linux_supply_gregset.
2977 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2978 (supply_fpregset): Call ppc_linux_supply_fpregset.
2979 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2980 corelow.o.
2981 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2982
729051e6
DJ
29832002-07-30 Daniel Jacobowitz <drow@mvista.com>
2984
2985 * symtab.c (lookup_symbol): Demangle before lowercasing.
2986
5f8a3188
AC
29872002-07-30 Andrew Cagney <ac131313@redhat.com>
2988
2989 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2990 declaration.
2991 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2992 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2993 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2994 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2995 "gdb_string.h".
2996 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2997 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2998 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2999 (avr-tdep.o, mon960-rom.o): Ditto.
3000 (aout_stabs_gnu_h): Define.
3001 (symtab_h): Remove $(gdb_obstack_h).
3002
67f07146
JB
30032002-07-30 Jim Blandy <jimb@redhat.com>
3004
3005 Patch from David Carlton <carlton@math.stanford.edu>:
3006 * gdbinit.in: Move the `dir' commands that add GDB's own source
3007 directory to the search path to the end, so that the `gdb' source
3008 directory will be searched first.
3009
04ea0df1
AC
30102002-07-29 Andrew Cagney <ac131313@redhat.com>
3011
3012 * gdb_obstack.h: New file.
3013 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3014 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3015 * objfiles.h: Include "gdb_obstack.h".
3016 * Makefile.in (gdb_obstack_h): Define.
3017 (symtab_h): Add $(gdb_obstack_h).
3018 (objfiles_h): Add $(gdb_obstack_h).
3019
3020 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3021 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3022 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3023 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3024 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3025 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3026 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3027 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3028
3029 * Makefile.in (bcache.o): Update dependencies.
3030 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3031 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3032 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3033 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3034 (stabsread.o, symfile.o, symmisc.o): Ditto.
3035 (symtab.o, typeprint.o, macroexp.o): Ditto.
3036 (macrotab.o, mdebugread.o): Ditto.
3037 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3038 (coff_ecoff_h, aout_aout64_h): Define.
3039 (aout_stabs_gnu_h, libaout_h): Define.
3040
d138e37a
AC
30412002-07-29 Andrew Cagney <cagney@redhat.com>
3042
3043 * regcache.c (struct regcache_descr): Rename nr_registers to
3044 nr_cooked_registers. Revise comments describing the structure
3045 member fields.
3046 (init_regcache_descr): Update.
3047 (init_legacy_regcache_descr): Update.
3048 (read_register_gen, write_register_gen): When a cooked register in
3049 the raw register range, directly access the value from the raw
3050 register cache.
3051
460e6ec3
AC
30522002-07-29 Andrew Cagney <ac131313@redhat.com>
3053
3054 * z8k-tdep.c: Do not include "obstack.h".
3055 * h8300-tdep.c, h8500-tdep.c: Ditto.
3056 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3057 * valprint.c, v850-tdep.c: Ditto.
3058 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3059 * mn10200-tdep.c: Ditto.
3060
3061 * Makefile.in (z8k-tdep.o): Update dependencies.
3062 (m68hc11-tdep.o, valprint.o): Ditto.
3063 (v850-tdep.o, d10v-tdep.o): Ditto.
3064 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3065 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3066 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3067 (sh_opc_h, gdb_sim_sh_h): Define.
3068 (elf_sh_h, elf_bfd_h): Define.
3069 (opcode_m68hc11_h): Define.
3070 (OPCODES_SRC, OPCODES_DIR): define.
3071 (OPCODES): Use $(OPCODES_DIR).
3072 (gdb_sim_d10v_h): Rename sim_d10v_h.
3073 (gdb_sim_arm_h): Rename sim_arm_h.
3074
790c9cf0
KB
30752002-07-26 Kevin Buettner <kevinb@redhat.com>
3076
3077 * utils.c (host_pointer_to_address, address_to_host_pointer):
3078 Change internal_error() message to indicate function responsible
3079 for the error.
3080
9647fa49
KB
30812002-07-26 Kevin Buettner <kevinb@redhat.com>
3082
3083 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3084 calls to local_hex_string_custom().
3085
dabbe2c0
KB
30862002-07-26 Kevin Buettner <kevinb@redhat.com>
3087
3088 * irix5-nat.c: Move IRIX shared library support from here...
3089 * solib-irix.c: ...to here. Revised substantially to work with
3090 generic solib framework.
3091
b96d0a4e
KB
3092 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3093 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3094 * mips-irix-tdep.c: New file.
3095
313fb2f6
KB
3096 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3097 (mips-irix-tdep.o, solib-irix.o): New rules.
3098 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3099 solib-irix.o.
3100 * config/mips/irix6.mt (TDEPFILES): Likewise.
3101 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3102
ab2eaf26
KB
31032002-07-26 Kevin Buettner <kevinb@redhat.com>
3104
177e4768 3105 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
3106 disabled (via ``#if 0'') includes.
3107
7244546a
KB
31082002-07-26 Kevin Buettner <kevinb@redhat.com>
3109
3110 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3111 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3112 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3113 Add support for the fpscr register.
3114 * rs6000-nat.c (regmap, fetch_inferior_registers)
3115 (store_inferior_registers, fetch_core_registers): Likewise.
3116
dd7be90a
KB
31172002-07-26 Kevin Buettner <kevinb@redhat.com>
3118
3119 * rs6000-nat.c (language.h): Include.
3120 (special_regs): Delete this array.
3121 (regmap): New function.
3122 (fetch_register, store_register): Use regmap() to map gdb
3123 register numbers to ptrace register numbers. Also, use
3124 outputs from regmap() to make decisions regarding type of
3125 ptrace() call to make. In particular, don't compare against
3126 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3127 (fetch_inferior_registers, store_inferior_registers): Where
3128 possible, obtain register numbers from tdep struct. Don't
3129 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3130 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3131 (LAST_UISA_SP_REGNUM): Delete.
3132
11bf77db
KB
31332002-07-25 Kevin Buettner <kevinb@redhat.com>
3134
3135 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
3136 (fetch_registers, store_register, fetch_core_registers): Don't
3137 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
3138 regcache_collect() as appropriate.
3139 (find_toc_address): Format hex address with local_hex_string().
3140
06afebeb
AC
31412002-07-25 Andrew Cagney <ac131313@redhat.com>
3142
3143 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3144 bfd/elf32-frv.c.
3145
8c554d79
TT
31462002-07-24 Tom Tromey <tromey@redhat.com>
3147
3148 * jv-exp.y: Marked all strings with _().
3149 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3150 internal_error.
3151 (MethodInvocation, CastExpression, parse_number, yyerror,
3152 java_type_from_name, push_expression_name, yylex): Typo fixes.
3153
e4c242d9
DJ
31542002-07-24 Daniel Jacobowitz <drow@mvista.com>
3155
3156 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3157 (tee_file_flush, tee_file_write, tee_file_fputs)
3158 (tee_file_isatty): New.
3159 * ui-file.h (tee_file_new): Add prototype.
3160
ebf56fd3
AS
31612002-07-24 Aidan Skinner <aidan@velvet.net>
3162
3163 * ada-lang.c: Change k&r style function definitions to prototyped
3164 form.
3165 * ada-typeprint.c: Change k&r style function definitions to prototyped
3166 form.
3167 * ada-valprint.c: Change k&r style function definitions to prototyped
3168 form.
3169
7fb623f7
AC
31702002-07-24 Andrew Cagney <cagney@redhat.com>
3171
3172 * README: Remove reference to remote-bug.
3173 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3174 remote-bug.c.
3175 (m88k-nat.o): Delete rule.
3176 (m88k-tdep.o): Delete rule.
3177 (remote-bug.o): Delete rule.
3178 * MAINTAINERS: Mark as obsolete.
3179 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3180 * m88k-tdep.c: Make file obsolete.
3181 * config/m88k/m88k.mh: Ditto.
3182 * config/m88k/delta88v4.mh: Ditto.
3183 * config/m88k/delta88v4.mt: Ditto.
3184 * config/m88k/delta88.mt: Ditto.
3185 * config/m88k/delta88.mh: Ditto.
3186 * remote-bug.c: Ditto.
3187 * config/m88k/tm-delta88.h: Ditto.
3188 * config/m88k/nm-delta88v4.h: Ditto.
3189 * config/m88k/xm-delta88.h: Ditto.
3190 * config/m88k/xm-dgux.h: Ditto.
3191 * config/m88k/tm-m88k.h: Ditto.
3192 * config/m88k/nm-m88k.h: Ditto.
3193 * config/m88k/tm-delta88v4.h: Ditto.
3194 * m88k-nat.c: Ditto.
3195 * cxux-nat.c: Ditto.
3196 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3197 and m88*-*-* obsolete.
3198 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3199 m88*-*-* obsolete.
3200
37611a2b
AC
32012002-07-24 Andrew Cagney <cagney@redhat.com>
3202
3203 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3204 constant. Same for local pointer variables.
3205 (extract_signed_integer): Ditto.
3206 * defs.h (extract_unsigned_integer): Update.
3207 (extract_signed_integer): Update.
3208
1aaa5f99
AC
32092002-07-24 Andrew Cagney <cagney@redhat.com>
3210
3211 * regcache.c (regcache_raw_write): Change buf parameter to a
3212 constant void pointer.
3213 (regcache_raw_read): Change buf parameter to a void pointer.
3214 (legacy_write_register_gen): Change myaddr parameter a constant
3215 void pointer.
3216 (supply_register): Change val parameter to a const void pointer.
3217 * regcache.h (regcache_raw_write): Update declaration.
3218 (regcache_raw_read): Update declaration.
3219 (supply_register): Update declaration.
3220
b4f5539f
TT
32212002-07-24 Tom Tromey <tromey@redhat.com>
3222
3223 * defs.h (gdb_readline_wrapper): Declare.
3224 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3225 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3226 * top.c (gdb_readline_wrapper): New function.
3227 (command_line_input): Use it.
3228
0818c12a
AC
32292002-07-24 Andrew Cagney <cagney@redhat.com>
3230
3231 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3232 regcache_read and regcache_write.
3233 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3234 * regcache.c: Update.
3235 * sh-tdep.c (sh64_push_arguments): Update comment.
3236 (sh_pseudo_register_read): Update.
3237 (sh_pseudo_register_write): Update.
3238 (sh4_register_read): Update.
3239 (sh4_register_write): Update.
3240 (sh64_pseudo_register_read): Update.
3241 (sh64_pseudo_register_write): Update.
3242 (sh64_register_read): Update.
3243 (sh64_register_write): Update.
3244 * i386-tdep.c (i386_extract_return_value): Update.
3245 (i386_extract_struct_value_address): Update.
3246 (i386_extract_return_value): Update.
3247 * blockframe.c (generic_read_register_dummy): Update.
3248 (generic_call_dummy_register_unwind): Update
3249 * infrun.c (write_inferior_status_register): Update.
3250
f7321c06
JB
32512002-07-23 Jim Blandy <jimb@redhat.com>
3252
3253 * parser-defs.h (expression_context_pc): Make this extern.
3254 (Thanks to Michael Snyder.)
3255
2037aebb
AC
32562002-07-23 Andrew Cagney <ac131313@redhat.com>
3257
3258 GDB 5.2.1 released from 5.2 branch.
3259 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3260 * README: Update to mention 5.2.1.
3261
66504d44
MS
32622002-07-23 Mark Salter <msalter@redhat.com>
3263
3264 * remote.c (remote_read_bytes): Fix check for error.
3265
27bae383
KB
32662002-07-22 Kevin Buettner <kevinb@redhat.com>
3267
3268 * aix-thread.c (language.h): Include.
3269 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3270 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3271 Print newlines at end of debug messages.
3272 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3273 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3274
32752002-07-22 Kevin Buettner <kevinb@redhat.com>
3276
3277 * aix-thread.c (ppc-tdep.h): Include.
3278 (special_register_p): New function.
3279 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3280 (store_regs_user_thread): Use register number information from
3281 gdbarch_tdep struct instead of hardcoded offsets relative to
3282 FIRST_UISA_SP_REGNUM.
3283 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3284 special_register_p() instead of using FPLAST_REGNUM and
3285 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3286 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3287 will be MQ's register number.
3288
32892002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3290
3291 * aix-thread.c (ops): Rename to aix_thread_ops.
3292 (base_ops): Rename to base_target.
3293 (ops_attach): Rename to aix_thread_attach.
3294 (ops_detach): Rename to aix_thread_detach.
3295 (ops_resume): Rename to aix_thread_detach.
3296 (ops_wait): Rename to aix_thread_wait.
3297 (ops_kill): Rename to aix_thread_kill.
3298 (init_ops): Rename to init_aix_thread_ops.
3299 (ops_fetch_register): Rename to aix_thread_fetch_register.
3300 (ops_store_register): Rename to aix_thread_store_register.
3301 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3302 (ops_thread_alive): Rename to aix_thread_thread_alive.
3303 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3304 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3305 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3306 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3307 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3308 (store_regs_lib): Rename to store_regs_user_thread.
3309 (store_regs_kern): Rename to store_regs_kernel_thread.
3310
27bae383 33112002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3312
3313 * aix-thread.c (ops_prepare_to_store): Eliminate.
3314 (init_ops): Don't initialize ops.prepare_to_store.
3315 (store_regs_kern): Pre-fetch register buffers from child,
3316 because some registers may not be in the cache. Copy
3317 regs from register cache only if they are cached.
3318 (store_regs_lib): Copy regs from register cache only
3319 if they are cached.
3320 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3321 fill_gprs64): Ditto.
3322
61c5da0b
KB
33232002-07-22 Kevin Buettner <kevinb@redhat.com>
3324
3325 * aix-thread.c (gdb_assert.h): Include.
3326 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3327 register sizes (from register cache) match size of buffer holding
3328 register data.
3329 (fill_sprs32): Change parameter types to match those in the ptrace()
3330 buffer.
3331 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3332 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3333
33342002-07-22 Michael Snyder <msnyder@redhat.com>
3335
3336 * aix-thread.c (supply_sprs64): Cosmetic change.
3337 (supply_sprs32): Cosmetic change.
3338 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3339 (fill_sprs64): Use regcache_collect instead of read_register.
3340 (store_regs_lib): Use regcache_collect instead of
3341 read_register. Use fill_sprs32 instead of fill_sprs64,
3342 if debugging a 32-bit architecture.
3343 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3344 out of the register cache, instead of passing a pointer into
3345 the register cache directly to ptrace. Use regcache_collect
3346 insteaad of read_register.
3347 (ops_prepare_to_store): Use target_read_registers instead
3348 of read_register_bytes.
3349
36479eb1
AS
33502002-07-20 Aidan Skinner <aidan@velvet.net>
3351
3352 * MAINTAINERS: Add self under write after approval.
3353
80ae6ee2
AS
33542002-07-20 Aidan Skinner <aidan@velvet.net>
3355
3356 * ada-tasks.c: Change k&r style function definitions to prototyped
3357 form.
3358
8a8ab2b9
AC
33592002-07-19 Andrew Cagney <ac131313@redhat.com>
3360
3361 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3362 * x86-64-tdep.c: Include "objfiles.h".
3363 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3364 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3365
fb16b900
ML
33662002-07-17 Michal Ludvig <michal@suse.cz>
3367
3368 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3369 (update_context): Initialise cfa variable.
3370
0fe7bf7b
MS
33712002-07-17 Michael Snyder <msnyder@redhat.com>
3372
3373 * aix-thread.c: Shorten some long lines.
3374 Bring comments into line with code spec.
3375
488f131b
JB
33762002-07-18 Joel Brobecker <brobecker@gnat.com>
3377
3378 * infrun.c: Re-indent using gdb_indent.sh.
3379
46c415d2
JB
33802002-07-18 Joel Brobecker <brobecker@gnat.com>
3381
3382 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3383 Leave the indentation temporarily untouched, to minimize the diffs.
3384
cdecafbe
EZ
33852002-07-18 Elena Zannoni <ezannoni@redhat.com>
3386
3387 * stabsread.c: Make os9k sections of the code obsolete,
3388 for real this time.
3389 * stabsread.h: Make os9k sections of the code obsolete.
3390
7b6aa020
ML
33912002-07-18 Michal Ludvig <mludvig@suse.cz>
3392
09ec9b38
ML
3393 * linux-low.c (regsets_store_inferior_registers): Add free()
3394 at the end of a loop to prevent memory leak.
3395 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3396 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3397 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3398 line a comment.
4894ac5d 3399 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3400
233282cd
JB
34012002-07-17 Jim Blandy <jimb@redhat.com>
3402
3403 * macrocmd.c (info_macro_command): Remove newline from error
3404 message.
3405
7b6aa020 34062002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3407
3408 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3409 (sh_gdbarch_init): Use it for sh-dsp.
3410
f7ef9339
KB
34112002-07-16 Kevin Buettner <kevinb@redhat.com>
3412
3413 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3414 64-bit DWARF2 format.
3415
8dd72958
JB
34162002-07-16 Joel Brobecker <brobecker@gnat.com>
3417
3418 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3419 <sys/proc.h> when not available.
3420
a99a9e1b
AC
34212002-07-16 Andrew Cagney <ac131313@redhat.com>
3422
3423 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3424 * stabsread.c: Make os9k sections of the code obsolete.
3425 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3426 * config/i386/i386os9k.mt: Make file obsolete.
3427 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3428 (COMMON_OBS): Remove os9kread.o
3429 (SFILES): Remove os9kread.c.
3430 (os9kread.o, remote-os9k.o): Make target obsolete.
3431 * remote-os9k.c: Make file obsolete.
3432 * os9kread.c: Make file obsolete.
3433 * Makefile.in
3434
7a3085c1
AC
34352002-07-16 Andrew Cagney <ac131313@redhat.com>
3436
3437 * NEWS: Mention that the FR30 has been made obsolete.
3438 * fr30-tdep.c: Make file obsolete.
3439 * config/fr30/tm-fr30.h: Ditto.
3440 * config/fr30/fr30.mt: Ditto.
3441 * configure.tgt: Make fr30-*-elf obsolete.
3442 * MAINTAINERS: Make fr30-elf obsolete.
3443
28a93f5a
PM
34442002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3445
3446 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3447 found is not inside a section.
3448
be006b8b
KB
34492002-07-15 Kevin Buettner <kevinb@redhat.com>
3450
3451 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3452 strerror().
3453 (pdc_realloc): Use xrealloc() instead of realloc().
3454
14fa3751
KB
34552002-07-15 Kevin Buettner <kevinb@redhat.com>
3456
3457 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3458 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3459 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3460 macros.
3461
42cc437f
KB
34622002-07-15 Kevin Buettner <kevinb@redhat.com>
3463
3464 * aix-thread.c (ptrace_check): Eliminate goto.
3465 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3466 problem.
3467
8e2c28d4
KB
34682002-07-15 Kevin Buettner <kevinb@redhat.com>
3469
3470 * aix-thread.c (gdbcmd.h): Include.
3471 (DEBUG, DBG, DBG2, dbg): Eliminate.
3472 (debug_aix_thread): New static global.
3473 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3474 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3475 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3476 invocations to DBG and DBG2 macros to test against
3477 ``debug_aix_thread'' and call fprintf_unfiltered().
3478 (_initialize_aix_thread): Add new command "set debug aix-thread".
3479
30413464
AC
34802002-07-15 Andrew Cagney <ac131313@redhat.com>
3481
3482 From Gerhard Tonn <TON@de.ibm.com>:
3483 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3484 instead of supply_register.
3485
7c43edc1
AC
34862002-07-15 Andrew Cagney <ac131313@redhat.com>
3487
3488 * dwarf2cfi.c: Include "gdb_assert.h".
3489 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3490 non-NULL.
3491 (update_context): Do not use __func__. Add missing ``break''.
3492 (update_context): Do not use __func__.
3493
9364a0ef
EZ
34942002-07-15 Elena Zannoni <ezannoni@redhat.com>
3495
3496 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3497 and its setting. Set gdbarch instruction printing functions
3498 directly. For non-rs6000 case use new function
3499 gdb_print_insn_powerpc.
3500 (gdb_print_insn_powerpc): New function.
3501
3fbeef0b
AC
35022002-07-13 Andrew Cagney <ac131313@redhat.com>
3503
92eb23c5 3504 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3505 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3506 * configure.tgt: Mark d30v-*-* as obsolete.
3507 * d30v-tdep.c: Mark file as obsolete.
3508 * config/d30v/d30v.mt: Ditto.
3509 * config/d30v/tm-d30v.h: Ditto.
3510
aacb1f0a
AS
35112002-07-13 Aidan Skinner <aidan@velvet.net>
3512
3513 * ada-tasks.c (add_task_entry): replace calls to
3514 malloc() with xmalloc
3515 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3516
3517 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3518 ada_finish_decode_line_1, all_sals_for_line
3519 ada_breakpoint_rewrite): replace calls to free() with xfree()
3520
c11d79f2
KB
35212002-07-12 Kevin Buettner <kevinb@redhat.com>
3522
3523 From Nicholas Duffek (with minor changes by Martin Hunt,
3524 Louis Hamilton, and Kevin Buettner):
3525 * aix-thread.c: New file.
3526
8e19ed76
PS
35272002-07-12 Petr Sorfa <petrs@caldera.com>
3528
3529 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3530 complaint for invalid attribute class or form.
3531 (read_func_scope): DW_AT_frame_base
3532 better handling of DW_AT_block*.
3533 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3534 better handling of DW_AT_block*.
3535 (read_common_block): DW_AT_location
3536 better handling of DW_AT_block*.
3537 (read_partial_die): DW_AT_location better handling
3538 of DW_AT_block*.
3539 (new_symbol): DW_AT_external better handling of
3540 DW_AT_block*. Proper initialization of variable
3541 "addr".
3542 (attr_form_is_block): New function that returns true
3543 if the attribute's form is of DW_FORM_block*.
3544
295401f7
DJ
35452002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3546
3547 * valops.c (find_method_list): Remove comment about
3548 removed STATIC_MEMFUNCP argument.
3549 (value_find_oload_method_list): Likewise.
3550
e42dc924
KB
35512002-07-12 Kevin Buettner <kevinb@redhat.com>
3552
3553 From Nicholas Duffek:
3554 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3555 target_new_objfile_hook.
3556
6904b546
KB
35572002-07-12 Kevin Buettner <kevinb@redhat.com>
3558
3559 From Nicholas Duffek:
3560 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3561 csect.
3562
53fe9346
AC
35632002-07-12 Andrew Cagney <cagney@redhat.com>
3564
3565 * MAINTAINERS: Mention --enable-sim-build-warnings.
3566 (m68hc11-elf): Disable sim build warnings.
3567 (m32r-elf): Mark as broken obsolete candidate.
3568 (x86_64-linux-gnu): Mark as buildable with -Werror.
3569 (arm-elf): Change -w to ``,'' which enables warnings but not
3570 -Werror.
3571
af5f3db6
AC
35722002-07-12 Andrew Cagney <ac131313@redhat.com>
3573
3574 * bcache.h: Update copyright.
3575 (struct bstring, struct bcache): Move definition to "bcache.c".
3576 Replaced by opaque declaration.
3577 (bcache_xfree): Replace free_bcache.
3578 (bcache_xmalloc, bcache_memory_used): Declare.
3579
3580 * bcache.c: Update copyright.
3581 (struct bstring, struct bcache): Moved to here from "bcache.h".
3582 Update comments.
3583 (bcache_xmalloc, bcache_memory_used): New functions.
3584 (bcache_xfree): Replace function free_bcache.
3585
3586 * Makefile.in (objfiles.o): Add $(bcache_h).
3587 (objfiles_h): Remove $(bcache_h).
3588 (symfile.o): Add $(bcache_h).
3589
3590 * symmisc.c: Update copyright.
3591 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3592 (print_objfile_statistics): Use bcache_memory_used.
3593
3594 * symfile.c: Include "bcache.h".
3595 (reread_symbols): Use bcache_xfree.
3596 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3597 (add_psymbol_to_list): Pass psymbol_cache by value.
3598 (add_psymbol_with_dem_name_to_list): Ditto.
3599
3600 * objfiles.h: Update copyright.
3601 (struct bcache): Declare opaque. Do not include "bcache.h".
3602 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3603 bcache'' pointers.
3604 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3605
3606 * objfiles.c: Include "bcache.h". Update copyright.
3607 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3608 macro_cache.
3609 (free_objfile): Use bcache_xfree.
3610
444199e7
GS
36112002-07-11 Grace Sainsbury <graces@redhat.com>
3612
3613 * monitor.c (monitor_fetch_register): Make name a constant.
3614 (monitor_store_register): Same.
3615
261397f8
DJ
36162002-07-11 Daniel Jacobowitz <drow@mvista.com>
3617
3618 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3619 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3620 (finish_block) For non-function blocks, hash the symbol table. For
3621 function blocks, mark the symbol table as unhashed.
3622 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3623 (msymbol_hash_iw): Likewise.
3624 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3625 value.
3626 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3627 (lookup_minimal_symbol): Likewise for both.
3628 * symtab.h (struct block): Add `hashtable' flag. Comment the
3629 hashtable.
3630 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3631 (ALL_BLOCK_SYMBOLS): Update.
3632 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3633 (struct symbol): Add `hash_next' pointer.
3634 * symtab.c (lookup_block_symbol): Search using the hash table when
3635 possible.
3636 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3637 (search_symbols, find_addr_symbol): Likewise.
3638
3639 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3640 (read_dst_symtab): Likewise.
3641 * jv-lang.c (get_java_class_symtab): Likewise.
3642 * mdebugread.c: Include "gdb_assert.h".
3643 (shrink_block): Assert that the block being modified is not hashed.
3644 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3645 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3646 symbols.
3647 (dump_symtab): Recognize hashed blocks.
3648 * printcmd.c (print_frame_args): Assert that function blocks do not
3649 have hashed symbol tables.
3650 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3651 (fill_in_ada_prototype, debug_print_block): Likewise.
3652 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3653
6f0eaa01
CV
36542002-07-11 Corinna Vinschen <vinschen@redhat.com>
3655
3656 * stack.c (print_frame): Use result of frame_address_in_block()
3657 instead of fi->pc when evaluating symbols.
3658 (backtrace_command_1): Ditto.
3659
a208b0cb
AC
36602002-07-11 Andrew Cagney <cagney@redhat.com>
3661
3662 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3663 Make static.
3664
3665 * arm-tdep.c (arm_register_name): Make return type constant.
3666
a6b6b089
AC
36672002-07-10 Andrew Cagney <ac131313@redhat.com>
3668
5ae5f592
AC
3669 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3670 prototype.
3671 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3672 * s390-tdep.c (s390_fp_regnum): Ditto.
3673 (s390_read_fp): Ditto.
3674 (s390_pop_frame): Ditto.
3675 (_initialize_s390_tdep): Ditto.
3676 * remote.c (get_remote_state): Ditto.
3677 * procfs.c (mappingflags): Ditto.
3678 * memattr.c (_initialize_mem): Ditto.
3679 * mcore-tdep.c (mcore_pop_frame): Ditto.
3680 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3681 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3682 * language.c (set_case_str): Ditto.
3683 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3684 * frv-tdep.c (new_variant): Ditto.
3685 (frv_stopped_data_address): Ditto.
3686 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3687 (context_alloc): Ditto.
3688 (frame_state_alloc): Ditto.
3689 (unwind_tmp_obstack_init): Ditto.
3690 (unwind_tmp_obstack_free): Ditto.
3691 (cfi_read_fp): Ditto.
3692 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3693 (cris_pop_frame): Ditto.
3694 * c-lang.c (scanning_macro_expansion): Ditto.
3695 (finished_macro_expansion): Ditto.
3696 (c_preprocess_and_parse): Ditto.
3697 * gdbarch.sh: Ditto.
3698 * gdbarch.h, gdbarch.c: Regenerate.
3699 * config/mn10200/tm-mn10200.h: Adjust indentation.
3700 * target.c: Adjust indentation.
3701 * symtab.h: Adjust indentation.
3702 * stabsread.h: Adjust indentation.
3703 * remote-es.c: Adjust indentation.
3704 * os9kread.c: Adjust indentation.
3705
37062002-07-10 Andrew Cagney <ac131313@redhat.com>
3707
a6b6b089
AC
3708 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3709 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3710
a1789893
GS
37112002-07-10 Grace Sainsbury <graces@redhat.com>
3712
3713 * NEWS: Mention m68k, mcore multi-arching.
3714 * MAINTAINERS: Change status of m68k, mcore to reflect
3715 multi-arching.
3716
02f0d45d
DJ
37172002-07-10 Daniel Jacobowitz <drow@mvista.com>
3718
3719 * valops.c (find_overload_match): Free oload_syms.
3720
f15f768e
JB
37212002-07-09 Joel Brobecker <brobecker@gnat.com>
3722
3723 Define HAVE_SYS_PROC_H if sys/proc.h exists
3724 * configure.in: Add check for sys/proc.h
3725 * config.in: Regenerate.
3726 * configure: Regenerate.
3727
902a7139
GS
37282002-07-09 Grace Sainsbury <graces@redhat.com>
3729
3730 * config/m68k/tm-m68k.h: Remove macros wrapped in
3731 #if !GDB_MULTI_ARCH.
3732
a534e424
AC
37332002-07-08 Andrew Cagney <ac131313@redhat.com>
3734
3735 * config.in, configure: Regenerate.
3736
9b94f7bf
MK
37372002-07-08 Mark Kettenis <kettenis@gnu.org>
3738
3739 * dwarf2cfi.c: Include "gcore.h".
3740 (execute_stack_op): Fix implementation of the
3741 DW_OP_deref and DW_OP_deref_size operators by letting do their
3742 lookup in the target.
3743
1d34db41
MK
37442002-07-07 Mark Kettenis <kettenis@gnu.org>
3745
3746 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3747 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3748 tdep->sc_sp_offset.
3749
79d5b63a
DJ
37502002-07-05 Daniel Jacobowitz <drow@mvista.com>
3751
3752 Fix PR gdb/595, gdb/602
3753 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3754 Don't call value_cast, just read the vtable pointer; update comments
3755 to match.
3756
3bb912e8
GS
37572002-07-05 Grace Sainsbury <graces@redhat.com>
3758
3759 * config/mcore/tm-mcore.h: Remove file.
3760 * config/mcore/mcore.mt: Remove definition of TM_FILE
3761 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3762
ca39387d
MK
37632002-07-05 Mark Kettenis <kettenis@gnu.org>
3764
3765 * i386bsd-tdep.c: Include "gdb_string.h".
3766
efdc1108
GS
37672002-07-04 Grace Sainsbury <graces@redhat.com>
3768
3769 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3770 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3771 mcore-tdep.
3772 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3773 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3774 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3775 (RETVAL_REGNUM): Move macros from tm-mcore.h
3776 (mcore_reg_struct_has_addr): New function.
3777 (mcore_gdbarch_init): Added initializations for the macros removed
3778 from tm-mcore.h.
3779
bb21884d
MK
37802002-07-04 Mark Kettenis <kettenis@gnu.org>
3781
3782 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3783 traditonal string branding within the ELF header.
3784
228c6d41
DJ
37852002-07-04 Daniel Jacobowitz <drow@mvista.com>
3786
3787 * symtab.c (remove_params): New function.
3788 (make_symbol_overload_list): Use it instead of cplus_demangle.
3789 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3790
2404952e
MK
37912002-07-04 Mark Kettenis <kettenis@gnu.org>
3792
e5e4acad
MK
3793 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3794
baadce09
MK
3795 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3796 New variables.
3797 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3798 and tdep->sigtramp_end.
3799 * i386obsd-nat.c: New file.
3800 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3801
2404952e
MK
3802 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3803 Don't call get_current_frame().
3804
9b4f1ba7
PM
38052002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3806
3807 * i386-nat.c (child_post_startup_inferior): New function
3808 calling i386_cleanup_dregs if
3809 I386_USE_GENERIC_WATCHPOINTS is defined.
3810 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3811 conditional to acknowledge that i386-nat.c has its
3812 own child_post_startup_inferior function.
3813
c0d1d883
MK
38142002-07-04 Mark Kettenis <kettenis@gnu.org>
3815
00f8375e
MK
3816 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3817 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3818 instead of MAX_REGISTER_RAW_SIZE.
3819 (i386_extract_return_value, i386_extract_struct_value_address):
3820 Convert to use regcache.
3821 (i386_gdbarch_init): Set max_register_raw_size and
3822 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3823 Set extract_return_value and extract_struct_value_address instead
3824 of their deprecated variants.
3825
c0d1d883
MK
3826 Convert i386 target to generic dummy frames.
3827 * i386-tdep.c: Include "symfile.h".
3828 (i386_frameless_signal_p): Consider a function to be frameless if
3829 the pc points at the first instruction of the function.
3830 (i386_frame_chain): Handle (generic) call dummies.
3831 (i386_frame_saved_pc): Likewise.
3832 (i386_frame_init_saved_regs): Remove code dealing with call
3833 dummies on the stack.
3834 (i386_push_dummy_frame): Removed.
3835 (i386_call_dummy_words): Removed.
3836 (i386_fix_call_dummy): Removed.
3837 (i386_push_return_address): New function.
3838 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3839 parameter, and don't call get_current_frame.
3840 (i386_pop_frame): New function.
3841 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3842 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3843 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3844 call_dummy_length to 0, set call_dummy_words to NULL, set
3845 sizeof_call_dummy_words to 0, set fix_call_dummy to
3846 generic_fix_call_dummy, set pc_in_call_dummy to
3847 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3848 generic_push_dummy_frame, set push_return_address to
3849 i386_push_return_address and set frame_chain_valid to
3850 generic_file_frame_chain_valid.
3851
049ee0e4
AC
38522002-07-03 Andrew Cagney <ac131313@redhat.com>
3853
3854 * gdbarch.sh (struct regcache): Add opaque declaration.
3855 (EXTRACT_RETURN_VALUE): New architecture method.
3856 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3857 * gdbarch.h, gdbarch.c: Regenerate.
3858 * arch-utils.c (legacy_extract_return_value): New function.
3859 * arch-utils.h (legacy_extract_return_value): Declare.
3860 * values.c (value_being_returned): Re-enable code handling
3861 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3862 deprecated_grub_regcache_for_registers call to block handling
3863 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3864 (EXTRACT_RETURN_VALUE): Do not define.
3865
4e0d9804
GS
38662002-07-03 Grace Sainsbury <graces@redhat.com>
3867
3868 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3869 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3870 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3871 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3872 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3873 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3874 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3875 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3876 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3877 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3878 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3879 argument so the function fits the prototype in the architecture
3880 vector.
3881 (mcore_pop_frame): Remove argument so the function fits the
3882 prototype. Use get_current_frame instead of the argument.
3883 (mcore_push_arguments): Change type of struct_return so the
3884 function can be used in the architecture vector.
3885 (mcore_store_struct_return): Add.
3886 (mcore_frame_init_saved_regs): Add.
3887 (mcore_gdbarch_init): Add function calls to replace the macros
3888 removed from tm-mcore.h
3889
36160dc4
AC
38902002-07-03 Andrew Cagney <ac131313@redhat.com>
3891
3892 * infcmd.c (print_return_value): Remove compatibility code calling
3893 deprecated_grub_regcache_for_registers.
3894
3895 * values.c: Include "regcache.h".
3896 (value_being_returned): Update. Use
3897 deprecated_grub_regcache_for_registers to extract the register
3898 buffer address.
3899 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3900 ``struct regcache''.
3901 * Makefile.in (values.o): Add dependency on $(regcache_h).
3902
3903 * inferior.h (run_stack_dummy): Change type of second parameter to
3904 a ``struct regcache''.
3905 * valops.c (hand_function_call): Change type of retbuf to ``struct
3906 regcache''. Allocate using regcache_xmalloc, clean using
3907 make_cleanup_regcache_xfree.
3908 * infcmd.c (run_stack_dummy): Update. Use
3909 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3910
3911 * regcache.c (do_regcache_xfree): New function.
3912 (make_cleanup_regcache_xfree): New function.
3913 * regcache.h (make_cleanup_regcache_xfree): Declare.
3914
e64d9b3d
MH
39152002-07-03 Martin M. Hunt <hunt@redhat.com>
3916
4dd79c29
MH
3917 * event-top.c (command_line_handler): Don't read past
3918 beginning of buffer.
e64d9b3d 3919
4dd79c29
MH
39202002-07-03 Martin M. Hunt <hunt@redhat.com>
3921
e64d9b3d
MH
3922 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3923 struct frame_id.
3924 (varobj_create): Store frame_id for root.
3925 (varobj_gen_name): Use xasprintf.
3926 (varobj_update): Save and restore frame using get_frame_id() and
3927 frame_find_by_id().
3928 (create_child): Use xasprintf.
3929 (new_root_variable): Initialize frame_id.
3930 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3931 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3932 to prevent memory leak.
3933
26e6c56a
AC
39342002-07-03 Andrew Cagney <ac131313@redhat.com>
3935
3936 * valops.c (hand_function_call): Move declaration of retbuf to
3937 start of function, allocate using malloc, add a cleanup but before
3938 the inf_status cleanup, cleanup the buffer. Rename local variable
3939 old_chain to inf_status_cleanup.
3940
f436dd25
MH
39412002-07-03 Martin M. Hunt <hunt@redhat.com>
3942
3943 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3944
3945 * cli/cli-decode.c (cmd_func_p): New function.
3946 (cmd_func): New function.
3947
3948 * command.h: Add cmd_func() and cmd_func_p().
3949
4cfe2084
GS
39502002-07-03 Grace Sainsbury <graces@redhat.com>
3951
3952 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3953 (REGISTER_SIZE): Remove.
3954 (MAX_REGISTER_RAW_SIZE): Remove.
3955 (REGISTER_VIRTUAL_TYPE): Remove.
3956 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3957 (REGISTER_NAME): Remove.
3958 (USE_GENERIC_DUMMY_FRAMES): Remove.
3959 (CALL_DUMMY): Remove.
3960 (CALL_DUMMY_START_OFFSET): Remove.
3961 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3962 (CALL_DUMMY_LOCATION): Remove.
3963 (FIX_CALL_DUMMY): Remove.
3964 (CALL_DUMMY_ADDRESS): Remove.
3965 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3966 (SAVE_DUMMY_FRAME_TOS): Remove.
3967 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3968 (mcore_register_virtual_type): New function.
3969 (mcore_register_byte): New function.
3970 (mcore_register_size): New function.
3971 (mcore_register_name): New function.
3972 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3973 macros removed from tm-mcore.h.
3974 (mcore_dump_tdep): Add.
3975 (_initialize_mcore_tdep): Add gdbarch_register call.
3976
4fd667e9
MK
39772002-07-03 Mark Kettenis <kettenis@gnu.org>
3978
3979 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3980 frameless_look_for_prologue, such that we actually call this
3981 function.
3982
42f99ac2
JB
39832002-07-02 Joel Brobecker <brobecker@gnat.com>
3984
3985 * frame.h (frame_address_in_block): New function.
3986
3987 * blockframe.c (frame_address_in_block): New function extracted
3988 from get_frame_block().
3989 (get_frame_block): Use frame_address_in_block().
3990 (block_innermost_frame): Use frame_address_in_block() to match
3991 the frame pc address against the block boundaries rather than
3992 the frame pc directly. This prevents a failure when a frame pc
3993 is actually a return-address pointing immediately after the end
3994 of the given block.
3995
103a1597 39962002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3997
3998 * MAINTAINERS: Add self under write after approval.
3999
40002002-07-02 Grace Sainsbury <graces@redhat.com>
4001
103a1597
GS
4002 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4003 used in architecture vector. The default is
4004 m68k_local_breakpoint_from_pc.
4005 (m68k_local_breakpoint_from_pc): Add.
4006 (enum): Add register numbers from tm-m68k.h.
4007 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4008 vector.
4009 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4010 GDB_MULTI_ARCH_PARTIAL.
4011 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4012 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4013 m68k-tdep.c.
4014 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4015 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4016 to enum in m68k-tdep.c
4017
7a5a0534
JB
40182002-07-02 Joel Brobecker <brobecker@gnat.com>
4019
4020 * solib-osf.c (open_map): Compute the list of shared libraries
4021 loaded by the inferior, rather than the list of libraries loaded
4022 by GDB itself. Otherwise, GDB ends up reading the symbols from
4023 the wrong shared libraries...
4024
6f558d74
MK
40252002-07-02 Mark Kettenis <kettenis@gnu.org>
4026
b7d15bf7
MK
4027 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4028 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4029 macros.
4030 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4031 Remove functions.
4032 (FRAMELESS_SIGNAL): Remove function.
4033 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4034 i386_linux_saved_pc_after_call): Removed.
4035 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4036 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4037 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4038
6bff26de
MK
4039 * i386-tdep.c (i386_frameless_signal_p): New function.
4040 (i386_frame_chain): Deal with frameless signals.
4041 (i386_sigtramp_saved_sp): New function.
4042 (i386_frame_saved_pc): Deal with frameless signals.
4043 (i386_saved_pc_after_call): Make sure the correct value is
4044 returned just after entry into a sigtramp.
4045 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4046 i386fbsd4_sc_sp_offset): New variables.
4047 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4048 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4049 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4050 similiar to what we already did for sc_pc_offset.
4051 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4052 tdep->sc_sp_offset.
4053
6f558d74
MK
4054 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4055
145564b7
ML
40562002-07-02 Michal Ludvig <mludvig@suse.cz>
4057
4058 * config/i386/tm-x86-64linux.h: New.
4059 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4060 definitions.
4061 * config/i386/nm-x86-64.h: Rename to ...
4062 * config/i386/nm-x86-64linux.h: ... this one.
4063 * config/i386/x86-64linux.mh: Reflect the above change.
4064
3a1e71e3
MK
40652002-07-01 Mark Kettenis <kettenis@gnu.org>
4066
21d0e8a4
MK
4067 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4068 with sigcontext_addr. Add sc_sp_offset.
4069 (i386bsd_sigtramp_saved_pc): Remove prototype.
4070 (i386bsd_sicontext_addr): Add prototype.
4071 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4072 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4073 (i386_svr4_sigtramp_saved_pc): Removed.
4074 (i386_svr4_sigcontext_addr): New function.
4075 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4076 Initialize tdep->sigcontext_addr instead. Initialize
4077 tdep->sc_pc_offset and tdep->sc_sp_offset.
4078 (i386_gdbarch_init): Likewise.
4079 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4080 any more.
4081 (i386bsd_sigtramp_saved_pc): Remove function.
4082 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4083 Initialize tdep->sigcontext_addr instead. Initialize
4084 tdep->sc_pc_offset.
4085 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4086 of tdep->sigtramp_saved_pc.
4087 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4088 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4089 instead.
4090
3a1e71e3
MK
4091 * i386-tdep.c (i386_frameless_function_invocation,
4092 i386_frame_num_args, i386_frame_init_saved_regs,
4093 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4094 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4095 i386_extract_return_value, i386_store_return_value,
4096 i386_extract_struct_value_address, i386_register_virtual_type,
4097 i386_register_convertible, i386_register_convert_to_virtual,
4098 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4099 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4100 static.
4101
52e9098c
MK
41022002-07-01 Mark Kettenis <kettenis@gnu.org>
4103
77b13a25
MK
4104 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4105
52e9098c
MK
4106 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4107 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4108 this macro. Include "value.h".
4109
1b372fff
AS
41102002-06-30 Aidan Skinner <aidan@velvet.net>
4111
4112 * ada-exp.tab.c: remove as it's a generated file
4113 * ada-lex.c: remove as it's a generated file
4114
9c5045b5
MK
41152002-06-30 Mark Kettenis <kettenis@gnu.org>
4116
4a93c5bb
MK
4117 * config/i386/tm-i386.h (struct frame_info, struct
4118 frame_saved_regs, struct value, struct type): Remove forward
4119 declarations.
4120
322d4fe0
MK
4121 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4122 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4123 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4124 (FILL_FPXREGSET): Define.
4125
fdd8263d
MK
4126 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4127
482e577b
MK
4128 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4129 i[3456]86-*-netbsd* case.
4130 * config/i386/tm-obsd.h: Removed.
4131 * config/i386/obsd.mt: Removed.
4132 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4133 core-aout.o.
4134 (MH_CFLAGS): Add -DYYDEBUG=0.
4135
6916549a
MK
4136 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4137 i386nbsd_sc_pc_offset on OpenBSD too.
4138
9c5045b5
MK
4139 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4140 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4141 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4142 define.
4143 * i386bsd-tdep.c: Include "arch-utils.h".
4144 (i386bsd_aout_in_solib_call_trampoline): New function.
4145 (i386bsd_init_abi): Set in_solib_call_trampoline to
4146 i386bsd_aout_in_solib_call_trampoline.
4147 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4148 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4149
aa84d1bb
AC
41502002-06-28 Andrew Cagney <ac131313@redhat.com>
4151
4152 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4153 (struct obstack, struct bcache): Add opaque declarations.
4154 * Makefile.in (macrotab_h): Update
4155
b4d83933
AC
41562002-06-28 Andrew Cagney <ac131313@redhat.com>
4157
4158 * blockframe.c (generic_find_dummy_frame): Change return type to
4159 ``struct regcache''.
4160 (struct dummy_frame): Replace field ``registers'' with regcache, a
4161 struct regcache object.
4162 (generic_find_dummy_frame): Update.
4163 (generic_push_dummy_frame): Update. Use regcache_xfree,
4164 regcache_xmalloc and regcache_cpy.
4165 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4166 regcache_xfree.
4167 (deprecated_generic_find_dummy_frame): Update.
4168 (generic_read_register_dummy): Update. Use
4169 regcache_read_as_address.
4170 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4171 (generic_get_saved_register): Update. Use regcache_read.
4172
08c0b5bc
AC
41732002-06-28 Andrew Cagney <ac131313@redhat.com>
4174
4175 * Makefile.in (objfiles_h): Add $(bcache_h).
4176 * objfiles.h: Include "bcache.h".
4177
4178 * Makefile.in (symtab_h): Remove $(bcache_h).
4179 * symtab.h: Do not include "bcache.h".
4180
1f89801a
AC
41812002-06-28 Andrew Cagney <ac131313@redhat.com>
4182
4183 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4184 generic_func_frame_chain_valid.
4185
b9644b58
DB
41862002-06-28 David O'Brien <obrien@FreeBSD.org>
4187
4188 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4189 * config/i386/tm-fbsd.h: Likewise.
4190
dd486634
AC
41912002-06-28 Andrew Cagney <ac131313@redhat.com>
4192
4193 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4194 generic_unwind_get_saved_register.
4195
0b434a00
AC
41962002-06-27 Andrew Cagney <ac131313@redhat.com>
4197
4198 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4199 * regcache.c (supply_register): Add missing argument to
4200 register_buffer call.
4201
f30e5a77
AC
42022002-06-27 Andrew Cagney <ac131313@redhat.com>
4203
4204 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4205 Solaris /bin/grep does not not like it. From Peter Schauer.
4206
9f064c95
TT
42072002-06-26 Tom Tromey <tromey@redhat.com>
4208
4209 * command.h (add_setshow_cmd): Declare.
4210 (add_setshow_cmd_full): Declare.
4211 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4212 returns void. Use add_setshow_cmd_full.
4213 (add_setshow_cmd_full): New function.
4214 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4215 (add_setshow_boolean_cmd): Likewise.
4216
099c7589
JT
42172002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4218
4219 * config/vax/tm-vax.h: Protect from multiple inclusion.
4220 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4221 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4222 * config/vax/tm-vaxbsd.h: ...here. New file.
4223 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4224
1d049c5e
JT
42252002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4226
4227 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4228 (BELIEVE_PCC_PROMOTION): Remove.
4229 (AP_REGNUM): Move to...
4230 * config/vax/nm-vax.h: ...here.
4231 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4232 (vax_breakpoint_from_pc): New function.
4233 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4234 and gdbarch_believe_pcc_promotion.
4235
4791e091
JT
42362002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4237
4238 * Makefile.in (vax_tdep_h): Define.
4239 (vax-tdep.o): Use $(vax_tdep_h).
4240 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4241 (vax_dump_tdep): New function.
4242 (_initialize_vax_tdep): Register vax_dump_tdep.
4243 * vax-tdep.h: Include osabi.h.
4244 (struct gdbarch_tdep): New.
4245
da130f98
AC
42462002-06-26 Andrew Cagney <cagney@redhat.com>
4247
4248 * frame.h (deprecated_generic_find_dummy_frame): Rename
4249 generic_find_dummy_frame.
4250 * blockframe.c (generic_find_dummy_frame): Make static.
4251 (deprecated_generic_find_dummy_frame): New function.
4252 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4253 generic_find_dummy_frame with deprecated_find_dummy_frame.
4254 (sh64_nofp_frame_init_saved_regs): Ditto.
4255 (sh_fp_frame_init_saved_regs): Ditto.
4256 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4257 (s390_frame_chain): Ditto.
4258 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4259
6300c360
GS
42602002-06-26 Grace Sainsbury <graces@redhat.com>
4261
4262 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4263 gdbarch vector are at the top.
4264 (NUM_REGS): Remove.
4265 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4266 (FRAME_ARGS_ADDRESS): Remove.
4267 (FRAME_LOCALS_ADDRESS): Remove.
4268 (FRAME_NUM_ARGS): Remove.
4269 (FRAME_ARGS_SKIP): Remove.
4270 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4271 (m68k_gdbarch_init): Add gdbarch initializations for macros
4272 undefined in tm-m68k.h
4273
1c617db8
GS
42742002-06-26 Grace Sainsbury <graces@redhat.com>
4275
4276 * monitor.h: Add the function regname to monitor_ops
4277 structure. This way NUM_REGS does not have to be a constant.
4278 * monitor.c (monitor_fetch_register): Added support for regname
4279 function. The function is called if the array regnames is NULL.
4280 (monitor_store_register): Same.
da130f98
AC
4281 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4282 regnames array.
1c617db8
GS
4283 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4284 cpu32bug_cmds.regname to point to new function.
4285 * abug-rom.c (abug_regname): Same as above.
4286 (init_abug_cmds): Same.
4287 * dbug-rom.c (dbug_regname): Same as above.
4288 (init_dbug_cmds): Same.
4289 * remote-est.c (est_regname): Same.
4290 (init_est_cmds): Same.
4291 * rom68k-rom.c (rom68k_regname): Same.
4292 (init_rom68k_cmds): Same.
4293
ea9365bb
TT
42942002-06-25 Tom Tromey <tromey@redhat.com>
4295
4296 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4297
72cec141
AC
42982002-06-25 Andrew Cagney <cagney@redhat.com>
4299
4300 * infrun.c (stop_registers): Change variable's type to ``struct
4301 regcache'''.
4302 (xmalloc_inferior_status): Delete function.
4303 (free_inferior_status): Delete function.
4304 (normal_stop): Use regcache_cpy.
4305 (struct inferior_status): Change type of fields ``stop_registers''
4306 and ``registers'' to ``struct regcache''.
4307 (write_inferior_status_register): Use regcache_write.
4308 (save_inferior_status): Instead of calling
4309 xmalloc_inferior_status, allocate the inf_status buffer directly.
4310 Use regcache_dup_no_passthrough and regcache_dup to save the
4311 buffers.
4312 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4313 Replace the stop_registers regcache instead of overriding it. Use
4314 regcache_xfree. Instead of calling free_inferior_status, xfree
4315 the buffer directly.
4316 (discard_inferior_status): Use regcache_xfree. Instead of calling
4317 free_inferior_status, xfree the buffer directly.
4318 (build_infrun): Use regcache_xmalloc.
4319 (_initialize_infrun): Delete redundant call to build_infrun.
4320
4321 * Makefile.in (infcmd.o): Add $(regcache_h).
4322
4323 * infcmd.c: Include "regcache.h".
4324 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4325 obtain the address of `stop_registers' register buffer.
4326 (print_return_value): Ditto.
4327
4328 * inferior.h (struct regcache): Add opaque declaration.
4329 (stop_registers): Change variable's declared type to ``struct
4330 regcache''.
4331
defc6f8c
TT
43322002-06-24 Tom Tromey <tromey@redhat.com>
4333
c0e624e7
TT
4334 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4335 * target.c (initialize_targets): Fixed typo in
4336 trust-readonly-sections `show' documentation.
4337
defc6f8c
TT
4338 * main.c: Marked all strings with _().
4339
2b236d82
DH
43402002-06-24 Don Howard <dhoward@redhat.com>
4341
4342 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4343 that means max CORE_ADDR+1.
4344 (lookup_mem_region): Ditto.
4345 (mem_info_command): Ditto.
4346
942dc0e9
GS
43472002-06-24 Grace Sainsbury <graces@redhat.com>
4348
4349 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4350 (REGISTER_BYTES_OK): Remove.
4351 (REGISTER_BYTES): Remove.
4352 (STORE_STRUCT_RETURN): Remove.
4353 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4354 (STORE_RETURN_VALUE): Remove.
4355 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4356 (FRAME_CHAIN): Remove.
4357 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4358 (FRAME_SAVED_PC): Remove.
4359 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4360 (m68k_store_struct_return): Add.
4361 (m68k_deprecated_extract_return_value): Add.
4362 (m68k_deprecated_extract_struct_value_address): Add.
4363 (m68k_store_return_value): Add.
4364 (m68k_frame_chain): Add.
4365 (m68k_frameless_function_invocation): Add.
4366 (m68k_frame_saved_pc): Add.
4367 (m68k_gdbarch_init): added set_gdbarch calls for new
4368 functions and deleted macros.
4369
03c30d4d
TT
43702002-06-23 Tom Tromey <tromey@redhat.com>
4371
4372 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4373 (ALLDEPFILES): Likewise.
4374 (udiheaders): Removed.
4375 (udip2soc.o): Likewise.
4376 (udi2go32.o): Likewise.
4377 (udr.o): Likewise.
4378 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4379
37e71372
AC
43802002-06-22 Andrew Cagney <ac131313@redhat.com>
4381
06a6ac57
AC
4382 * infrun.c (_initialize_infrun): Delete unnecessary call to
4383 build_infrun.
4384
37e71372
AC
4385 * regcache.h: Update comments describing the regcache_cpy family
4386 of functions.
4387 (regcache_save, regcache_restore): Delete declaration.
4388 (regcache_save_no_passthrough): Delete declaration.
4389 (regcache_restore_no_passthrough): Delete declaration.
4390 * regcache.c (regcache_save): Delete function.
4391 (regcache_save_no_passthrough): Delete function.
4392 (regcache_restore): Delete function.
4393 (regcache_restore_no_passthrough): Delete function.
4394
78f6d055
AC
43952002-06-21 Andrew Cagney <ac131313@redhat.com>
4396
4397 * config/m68k/tm-m68k.h: Fix typo.
4398 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4399 (m68k_frame_init_saved_regs): Declare.
4400
78b119cb
JB
44012002-06-21 Jim Blandy <jimb@redhat.com>
4402
4403 Remove some vestiges of Harris 88k support.
4404 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4405 register numbering quirk.
4406 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4407 odd symbols occurring in Harris 88k ELF targets.
4408
0fbb3da7
TT
44092002-06-21 Tom Tromey <tromey@redhat.com>
4410
4411 * gdb_locale.h: New file.
4412 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4413 (defs_h): Added gdb_locale.h.
4414 * configure, config.in: Rebuilt.
4415 * configure.in (PACKAGE): Define.
4416 * defs.h: Include gdb_locale.h.
4417 * main.c (captured_main): Call setlocale, bindtextdomain,
4418 textdomain.
4419
456f8b9d
DB
44202002-06-21 Dave Brolley <brolley@redhat.com>
4421
4422 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4423 * config/frv/frv.mt: New file.
4424 * config/frv/tm-frv.h: New file.
4425 * configure.tgt: Support frv-*-*.
4426 * Makefile.in (frv-tdep.o): New target.
4427 * frv-tdep.c: New file.
4428 * NEWS: Mention frv.
4429
cdd463f9
DB
44302002-06-21 Dave Brolley <brolley@redhat.com>
4431
4432 * MAINTAINERS: Add self to "Write After Approval" list.
4433
5d3ed2e3
GS
44342002-06-21 Grace Sainsbury <graces@redhat.com>
4435
4436 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4437 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4438 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4439 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4440 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4441
4442 * m68k-tdep.c: Include arch-utils.h
4443 (m68k_register_raw_size): Add.
4444 (m68k_register_virtual_size): Add.
4445 (m68k_register_virtual_type): Add.
4446 (m68k_register_name): Add.
4447 (m68k_stack_align): Add.
4448 (m68k_register_byte): Add.
4449 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4450 tm-m68k.h.
4451
7f8e7424
GS
44522002-06-21 Grace Sainsbury <graces@redhat.com>
4453
a2c6a6d5 4454 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4455 m68k_find_saved_regs.
4456 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4457 references to it with frame->saved_regs.
7f8e7424
GS
4458 (m68k_gdbarch_init): Added function calls to initialize the
4459 gdbarch structure.
a2c6a6d5
GS
4460 (m68k_fix_call_dummy): Add.
4461 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4462 (CALL_DUMMY): Remove.
4463 (CALL_DUMMY_LENGTH): Remove.
4464 (CALL_DUMMY_START_OFFSET): Remove.
4465 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4466 (FIX_CALL_DUMMY): Remove.
4467 (PUSH_DUMMY_FRAME): Remove.
4468 (POP_FRAME): Remove.
7f8e7424 4469
f461f5cf
PM
44702002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4471
4472 * parse.c (parse_fprintf): New function used to avoid calls to
4473 fprintf in bison parser generated debug code.
4474 * parser-defs.h: Declaration of new parse_fprintf function.
4475 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4476 Set YYDEBUG to 1 by default.
4477 Set YYFPRINTF as parse_fprintf.
4478
7f0c12ed
ML
44792002-06-21 Michal Ludvig <mludvig@suse.cz>
4480
4481 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4482 encoding anymore.
4483 (pointer_encoding, enum ptr_encoding): New.
4484 (execute_cfa_program): Take care about pointer encoding.
4485 (dwarf2_build_frame_info): Only call parse_frame_info for
4486 .debug_frame and .eh_frame.
4487 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4488 fixed augmentation handling, added relative addressing,
4489 ignore duplicate FDEs. Added comments.
19d833a2 4490 * dwarf2cfi.c: Reindented.
7f0c12ed 4491
87c4a039
EZ
44922002-06-20 Elena Zannoni <ezannoni@redhat.com>
4493
4494 * event-top.c (command_handler): Don't use space_at_cmd_start
4495 unless there is sbrk() on the host. Assign time and space data
4496 to union fields of the appropriate length.
4497
1cf877ad
ML
44982002-06-20 Michal Ludvig <mludvig@suse.cz>
4499
4500 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4501 x86_64_register_name. Return type changed to 'const char *'.
4502 (x86_64_register_name2nr): Rename to x86_64_register_number.
4503 (x86_64_gdbarch_init): Update to reflect the change.
4504 * x86-64-tdep.h: Ditto.
4505 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4506 (supply_fpregset): Ditto.
4507
3fadccb3
AC
45082002-06-19 Andrew Cagney <cagney@redhat.com>
4509
4510 * regcache.h: Update copyright.
4511 (struct regcache, struct gdbarch): Add opaque declarations.
4512 (current_regcache): Declare global variable.
4513 (regcache_read, regcache_write): Add gdbarch parameter.
4514 (regcache_save, regcache_save_no_passthrough)
4515 (regcache_restore, regcache_restore_no_passthrough)
4516 (regcache_dup, regcache_dup_no_passthrough)
4517 (regcache_cpy, regcache_cpy_no_passthrough)
4518 (deprecated_grub_regcache_for_registers)
4519 (deprecated_grub_regcache_for_register_valid)
4520 (regcache_valid_p): Add function declarations.
4521
4522 * regcache.c: Update copyright.
4523 (regcache_descr_handle): New global variable.
4524 (struct regcache_descr): Define.
4525 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4526 (regcache_descr, xfree_regcache_descr): New functions.
4527 (struct regcache): Define.
4528 (regcache_xmalloc, regcache_xfree): New functions.
4529 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4530 (regcache_dup, regcache_dup_no_passthrough): New functions.
4531 (regcache_valid_p, regcache_read_as_address): New functions.
4532 (deprecated_grub_regcache_for_registers): New function.
4533 (deprecated_grub_regcache_for_register_valid): New function.
4534 (current_regcache): New global variable.
4535 (register_buffer): Add regcache parameter. Update calls.
4536 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4537 (read_register_gen, write_register_gen): Update register_buffer
4538 call. Test for legacy_p instead of gdbarch_register_read_p or
4539 gdbarch_register_write_p.
4540 (regcache_collect): Update register_buffer call.
4541 (build_regcache): Rewrite. Use deprecated grub functions.
4542 (regcache_save, regcache_save_no_passthrough): New functions.
4543 (regcache_restore, regcache_restore_no_passthrough): New
4544 functions.
4545 (_initialize_regcache): Create the regcache_data_handle. Swap
4546 current_regcache global variable.
4547
4548 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4549 parameter to regcache_read and regcache_write calls.
4550 (sh4_register_read): Ditto.
4551 (sh64_pseudo_register_read): Ditto.
4552 (sh64_register_read): Ditto.
4553 (sh_pseudo_register_write): Ditto.
4554 (sh4_register_write): Ditto.
4555 (sh64_pseudo_register_write): Ditto.
4556 (sh64_register_write): Ditto.
4557
4558 * defs.h (XCALLOC): Define.
4559
152d9db6
GS
45602002-06-19 Grace Sainsbury <graces@redhat.com>
4561
4562 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4563 * m68k-tdep.c (m68k_gdbarch_init): Added.
4564 (m68k_dump_tdep): Added.
4565
170911c7
DJ
45662002-06-19 Daniel Jacobowitz <drow@mvista.com>
4567
4568 * ada-lang.c (fill_in_ada_prototype): Update comment.
4569
2e4ebe70
DJ
45702002-06-19 Daniel Jacobowitz <drow@mvista.com>
4571
4572 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4573 MIPS_ABI_LAST.
4574 (mips_abi_string, mips_abi_strings): New.
4575 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4576 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4577 tdep->mips_abi_string. Honor mips_abi_string. Default to
4578 O32 if no ABI is found.
4579 (mips_dump_tdep): Use mips_abi_strings.
4580 (mips_abi_update): New function.
4581 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4582 ``set mips abi'' and ``show mips abi''. Check the size of
4583 mips_abi_strings.
4584
16775908
AC
45852002-06-19 Andrew Cagney <cagney@redhat.com>
4586
4587 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4588 constant.
4589
5051bfa4 45902002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4591
5051bfa4
JB
4592 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4593 current frame using only the first stack size adjustment. All
4594 subsequent size adjustments are not considered to be part of
4595 the "static" part of the current frame.
4596 Compute the address of the saved registers relative to the
4597 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4598 in use in this frame.
4599
56468235
DH
46002002-06-18 Don Howard <dhoward@redhat.com>
4601
4602 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4603 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4604 suggesting this solution.
4605
0b624158
AC
46062002-06-18 Andrew Cagney <ac131313@redhat.com>
4607
4608 * config/romp/xm-rtbsd.h: Delete file.
4609 * config/romp/rtbsd.mh: Delete file.
4610
221ea385
KS
46112002-06-18 Keith Seitz <keiths@redhat.com>
4612
4613 * breakpoint.c (condition_command): Post breakpoint_modify
4614 when a condition is added to an existing breakpoint.
4615 (commands_command): Likewise for commands.
4616 (set_ignore_count): Likewise for ignore counts.
4617 If no tty, do not simply return, still need to send event
4618 notification.
4619 (ignore_command): Only print a newline if the command came
4620 from a tty.
4621 Don't call breakpoints_changed, since this is now properly
4622 handled by set_ignore_count.
4623
5402eed1
AC
46242002-06-18 Andrew Cagney <cagney@redhat.com>
4625
4626 * MAINTAINERS: Note that cris-elf target can be compiled with
4627 -Werror.
4628 * cris-tdep.c (cris_register_name): Make return type constant.
4629 (cris_breakpoint_from_pc): Ditto.
4630
cc22880b
ML
46312002-06-18 Michal Ludvig <mludvig@suse.cz>
4632
4633 * frame.h (struct frame_info): Change type of context to
4634 'struct context'.
4635
fa88f677
AC
46362002-06-17 Andrew Cagney <cagney@redhat.com>
4637
4638 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4639 pointer.
4640 * gdbarch.h, gdbarch.c: Regenerate.
4641 * config/mips/tm-mips.h (mips_register_name): Update.
4642 * i386-tdep.h (i386_register_name): Update.
4643 * mips-tdep.c (mips_register_name): Update
4644 * alpha-tdep.c (alpha_register_name): Update.
4645 * arch-utils.c (legacy_register_name): Update.
4646 * arch-utils.h (legacy_register_name): Update.
4647 * avr-tdep.c (avr_register_name): Update.
4648 * ia64-tdep.c (ia64_register_name): Update.
4649 * i386-tdep.c (i386_register_name): Update.
4650 * sparc-tdep.c (sparc32_register_name): Update.
4651 (sparc64_register_name): Update.
4652 (sparclite_register_name): Update.
4653 (sparclet_register_name): Update.
4654 * sh-tdep.c (sh_generic_register_name): Update.
4655 (sh_sh_register_name): Update.
4656 (sh_sh3_register_name): Update.
4657 (sh_sh3e_register_name): Update.
4658 (sh_sh_dsp_register_name): Update.
4659 (sh_sh3_dsp_register_name): Update.
4660 (sh_sh4_register_name): Update.
4661 (sh_sh64_register_name): Update.
4662 * s390-tdep.c (s390_register_name): Update.
4663 * rs6000-tdep.c (rs6000_register_name): Update.
4664 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4665 (ns32k_register_name_32382): Update.
4666 * d10v-tdep.c (d10v_ts2_register_name): Update.
4667 (d10v_ts3_register_name): Update.
4668 * xstormy16-tdep.c (xstormy16_register_name): Update.
4669 * vax-tdep.c (vax_register_name): Update.
4670 * v850-tdep.c (v850_register_name): Update.
4671 * m68hc11-tdep.c (m68hc11_register_name): Update.
4672 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4673 (am33_register_name): Update.
4674
ea1e7ef6
GS
46752002-06-17 Grace Sainsbury <graces@redhat.com>
4676
4677 * m68k-tdep.c: Reindented.
4678
9b02dd1b
AC
46792002-06-17 Andrew Cagney <ac131313@redhat.com>
4680
4681 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4682 list of predefined types.
4683
8758dec1
MK
46842002-06-16 Mark Kettenis <kettenis@gnu.org>
4685
b6197528
MK
4686 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4687 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4688 REGISTER_CONVERT_TO_RAW): Remove defines.
4689 (i386_register_virtual_type, i386_register_convertible,
4690 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4691 Remove prototypes.
4692 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4693 macros mentioned above.
4694
82b47e62
MK
4695 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4696 (i386lynx_saved_pc_after_call): Remove prototype.
4697 * i386ly-tdep.c: Include "i386-tdep.h".
4698 (i386lynx_saved_pc_after_call): Make static. Use
4699 read_memory_nobpt instead of read_memory. Use
4700 read_memory_unsigned_integer instead of read_memory_integer.
4701 (i386lynx_init_abi): New function.
4702 (i386lynx_coff_osabi_sniffer): New function.
4703 (_initialize_i386bsd_tdep): New function.
4704
8758dec1
MK
4705 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4706 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4707 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4708 (i386_fix_call_dummy): Remove prototype.
4709 * i386-tdep.c (i386_call_dummy_words): New variable.
4710 (i386_gdbarch_init): Adjust for removal of the
4711 macros mentioned above.
4712
e9e68a56
AC
47132002-06-15 Andrew Cagney <ac131313@redhat.com>
4714
4715 * command.h (add_setshow_auto_boolean_cmd): Replace
4716 add_set_auto_boolean_cmd.
4717 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4718 add_set_auto_boolean_cmd.
4719 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4720 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4721 mask-address'' command.
4722 (show_mask_address): Add cmd parameter.
4723 * remote.c (add_packet_config_cmd): Update. Change type of
4724 set_func and show_func to cmd_sfunc_ftype.
4725 (_initialize_remote): Update `set remote Z-packet'
4726 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4727 (show_remote_protocol_e_packet_cmd): Ditto.
4728 (show_remote_protocol_E_packet_cmd): Ditto.
4729 (show_remote_protocol_P_packet_cmd): Ditto.
4730 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4731 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4732 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4733 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4734 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4735 (show_remote_protocol_Z_packet_cmd): Ditto.
4736 (show_remote_protocol_binary_download_cmd): Ditto.
4737 (show_remote_cmd): Pass NULL to all of above.
4738
fc08ec52
MK
47392002-06-15 Mark Kettenis <kettenis@gnu.org>
4740
4741 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4742 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4743 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4744 POP_FRAME): Remove defines.
4745 (i386_push_arguments, i386_store_struct_return,
4746 i386_extract_return_value, i386_store_return_value,
4747 i386_extract_struct_value_address, i386_push_dummy_frame,
4748 i386_pop_frame): Renove prototypes.
4749 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4750 macros mentioned above.
4751
e707bbc2
AC
47522002-06-15 Andrew Cagney <ac131313@redhat.com>
4753
4754 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4755 add_set_boolean_cmd.
4756 (add_setshow_cmd): New function.
4757 * command.h (add_setshow_boolean_cmd): Replace
4758 add_set_boolean_cmd.
4759 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4760 and ``set rdiromatzero''.
4761 * maint.c (_initialize_maint_cmds): Update commented out code.
4762 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4763 * target.c (initialize_targets): Update `set
4764 trust-readonly-sections'.
4765 * remote.c (_initialize_remote): Update `set remotebreak'.
4766
42fdc8df
MK
47672002-06-15 Mark Kettenis <kettenis@gnu.org>
4768
93924b6b
MK
4769 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4770 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4771 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4772 fit into multi-arch framework.
4773 (i386_breakpoint_from_pc): New function.
4774 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4775 above.
4776
42fdc8df
MK
4777 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4778 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4779 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4780 (i386_frameless_function_invocation, i386_frame_num_args,
4781 i386_frame_init_saved_regs): Remove prototypes.
4782 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4783 macros mentioned above.
4784
9773a94b
AC
47852002-06-15 Andrew Cagney <ac131313@redhat.com>
4786
4787 * cli/cli-decode.c (set_cmd_cfunc): Update.
4788 (set_cmd_sfunc): Update.
4789 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4790 (set_cmd_sfunc, set_cmd_cfunc): Update.
4791 * cli/cli-decode.h: Update.
4792
6e157172
MK
47932002-06-15 Mark Kettenis <kettenis@gnu.org>
4794
4795 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4796 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4797
7f19b9a2
AC
47982002-06-15 Andrew Cagney <ac131313@redhat.com>
4799
4800 * defs.h (auto_boolean): Declare enum.
4801 * command.h (cmd_auto_boolean): Delete enum.
4802 * mips-tdep.c (mask_address_var): Update.
4803 (mips_mask_address_p): Update.
4804 (show_mask_address): Update.
4805 * remote.c (struct packet_config): Update.
4806 (update_packet_config): Update.
4807 (show_packet_config_cmd): Update.
4808 (packet_ok): Update.
4809 (add_packet_config_cmd): Update.
4810 (_initialize_remote):
4811 * command.h: Update.
4812 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4813 (do_setshow_command): Update.
4814 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4815 * cli/cli-decode.h: Update.
4816
1cf88de5
MK
48172002-06-15 Mark Kettenis <kettenis@gnu.org>
4818
22ba8cf2
MK
4819 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4820 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4821 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4822 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4823 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4824 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4825
762c5349
MK
4826 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4827 list of DJGPP COFF targets.
4828
091198bb
MK
4829 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4830 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4831 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4832 (FP0_REGNUM): Remove define.
4833 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4834 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4835 (i386_register_virtual_size): Remove protoype.
4836 * i386-tdep.c (i386_register_virtual_size): Removed.
4837 (i386_extract_return_value, i386_store_return_value): Use
4838 FP0_REGNUM instead of NUM_FREGS to determine whether the
4839 floating-point registers are available.
4840 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4841 Adjust for removal of macros mentioned above.
4842
48432002-06-15 Mark Kettenis <kettenis@gnu.org>
4844
fcc9bf01
MK
4845 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4846 comments.
4847 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4848 Remove prototypes.
4849 (supply_gregset, fill_gregset): Remove use of register keyword and
4850 remove declaration for regmap. Use I386_NUM_GREGS instead of
4851 NUM_REGS and NUM_FREGS.
4852 (FPREGSET_FSAVE_OFFSET): Remove.
4853 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4854 NUM_FREGS to determine whether the floating-point registers are
4855 available.
4856
65e78234
MK
4857 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4858 gnu_store_registers): Replace usage of NUM_GREGS with
4859 I386_NUM_GREGS.
4860
98df6387
MK
4861 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4862 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4863 usage of NUM_GREGS with I386_NUM_GREGS.
4864
099a9414
MK
4865 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4866
57976e88
MK
4867 * i386bsd-nat.c: Include "i386-tdep.h".
4868 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4869 I386_NUM_GREGS.
4870
b335f4a6
MK
4871 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4872 and associated comment. They no longer make any sense, since we
4873 don't use this file anymore on Linux.
4874
1cf88de5
MK
4875 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4876 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4877 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4878 elements in these arrays.
4879 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4880 MAX_NUM_REGS.
4881
daa66587
MK
48822002-06-15 Mark Kettenis <kettenis@gnu.org>
4883
4884 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4885 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4886
26e9b323
AC
48872002-06-14 Andrew Cagney <cagney@redhat.com>
4888
4889 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4890 EXTRACT_RETURN_VALUE.
4891 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4892 EXTRACT_STRUCT_VALUE_ADDRESS.
4893 * gdbarch.h, gdbarch.c: Regenerate.
4894
4895 * values.c (value_being_returned): Handle
4896 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4897 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4898
4899 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4900 * arm-tdep.c (arm_gdbarch_init): Update.
4901 * avr-tdep.c (avr_gdbarch_init): Update.
4902 * cris-tdep.c (cris_gdbarch_init): Update.
4903 * d10v-tdep.c (d10v_gdbarch_init): Update.
4904 * ia64-tdep.c (ia64_gdbarch_init): Update.
4905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4907 * s390-tdep.c (s390_gdbarch_init): Update.
4908 * sh-tdep.c (sh_gdbarch_init): Update.
4909 * s390-tdep.c (s390_gdbarch_init): Update.
4910 * sparc-tdep.c (sparc_gdbarch_init): Update.
4911 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4912 * v850-tdep.c (v850_gdbarch_init): Update.
4913 * vax-tdep.c (vax_gdbarch_init): Update.
4914 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4916
4917 * config/arc/tm-arc.h: Update.
4918 * config/d30v/tm-d30v.h: Update.
4919 * config/fr30/tm-fr30.h: Update.
4920 * config/h8300/tm-h8300.h: Update.
4921 * config/h8500/tm-h8500.h: Update.
4922 * config/i386/tm-i386.h: Update.
4923 * config/i386/tm-ptx.h: Update.
4924 * config/i386/tm-symmetry.h: Update.
4925 * config/i960/tm-i960.h: Update.
4926 * config/m32r/tm-m32r.h: Update.
4927 * config/m68k/tm-delta68.h: Update.
4928 * config/m68k/tm-linux.h: Update.
4929 * config/m68k/tm-m68k.h: Update.
4930 * config/m88k/tm-m88k.h: Update.
4931 * config/mcore/tm-mcore.h: Update.
4932 * config/mips/tm-mips.h: Update.
4933 * config/mn10200/tm-mn10200.h: Update.
4934 * config/pa/tm-hppa.h: Update.
4935 * config/pa/tm-hppa64.h: Update.
4936 * config/sparc/tm-sp64.h: Update.
4937 * config/sparc/tm-sparc.h: Update.
4938 * config/sparc/tm-sparclet.h: Update.
4939 * config/z8k/tm-z8k.h: Update.
4940
5179e78f
AC
49412002-06-14 Andrew Cagney <cagney@redhat.com>
4942
4943 * Makefile.in (i386_linux_tdep_h): Define.
4944 (i386_tdep_h, i387_tdep_h): Define.
4945 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4946 $(i386_tdep_h) and $(i387_tdep_h).
4947 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4948
8201327c
MK
49492002-06-14 Mark Kettenis <kettenis@gnu.org>
4950
edf393ac
MK
4951 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4952 Already covered by the default.
4953
896fb97d
MK
4954 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4955 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4956 (i386_gdbarch_init): Initialize long_double_format and long_double
4957 bit.
4958
8201327c
MK
4959 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4960 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4961 Move these to ...
4962 * config/i386/i386sol2.mh: ... here.
4963 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4964 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4965 (SIGCONTEXT_PC_OFFSET): Remove define.
4966 (IN_SIGTRAMP): Remove define.
4967 * i386-sol2-tdep.c: New file.
4968
4969 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4970 * config/i386/tm-i386nw.h: Removed.
4971
4972 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4973 USE_STRUCT_CONVENTION): Remove defines.
4974 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4975 (get_longjmp_target): Remove prototype.
4976 (IN_SIGTRAMP): Remove define.
4977 (i386bsd_in_sigtramp): Remove prototype.
4978 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4979 function. Update comment accordingly
4980 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4981 (FRAME_SAVED_PC): Remove define.
4982 (i386bsd_frame_saved_pc): Remove prototype.
4983 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4984 GET_LONGJMP_TARGET): Remove defines.
4985 (get_longjmp_target): Remove prototype.
4986 (IN_SIGTRAMP): Remove define.
4987 (i386bsd_in_sigtramp): Remove prototype.
4988 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4989 function. Update comment accordingly
4990 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4991 (FRAME_SAVED_PC): Remove define.
4992 (i386bsd_frame_saved_pc): Remove prototype.
4993 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4994 Remove prototype.
4995 (USE_STRUCT_CONVENTION): Remove prototype.
4996 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4997 declaration.
4998 (_initialize_i386bsd_nat): Revise logic to determine some
4999 constants at compile time when compiling a native GDB. Warn if
5000 things don't match up with what we expect.
5001 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5002 Remove variables.
5003 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5004 to use date stored in `struct gdbarch_tdep'.
5005 (i386bsd_sigcontext_offset): Remove varaible.
5006 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5007 stored in `struct gdbarch_tdep'.
5008 (i386bsd_frame_saved_pc): Make static.
5009 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5010 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5011 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5012 i386fbsd4_sc_pc_offset): New variables.
5013 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5014 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5015 functions.
5016 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5017 functions.
5018 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5019 Modify the value of i386fbsd_sigtramp_start and
5020 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5021 i386fbsd_sigtramp_end.
5022 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5023 function.
5024
5025 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5026 define to i386-linux-tdep.h.
5027 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5028 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5029 defines.
5030 (i386_linux_register_name, i386_linux_register_byte,
5031 i386_linux_register_raw_size): Remove prototypes.
5032 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5033 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5034 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5035 TARGET_WRITE_PC): Remove defines.
5036 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5037 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5038 i386_linux_write_pc): Remove prototypes.
5039 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5040 (get_longjmp_target): Remove prototype.
5041 * i386-linux-tdep.h: New file.
5042 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5043 * i386-linux-tdep.c: Include "i386-tdep.h" and
5044 "i386-linux-tdep.h".
5045 (i386_linux_register_name, i386_linux_register_byte,
5046 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5047 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5048 Make static.
5049 (i386_linux_init_abi): New function.
5050 (_initialize_i386_linux_tdep): New function.
5051
5052 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5053 (i386_saved_pc_after_call): Remove prototype.
5054 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5055 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5056 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5057 (i386_register_name, i386_stab_reg_to_regnum,
5058 i386_dwarf_reg_to_regnum): Remove prototypes.
5059 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5060 SIZEOF_SSE_REGS): Remove defines.
5061 (REGISTER_BYTES): Remove define.
5062 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5063 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5064 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5065 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5066 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5067 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5068 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5069 (get_longjmp_target): Remove prototype.
5070 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5071 (sigtramp_saved_pc): Remove define.
5072 (i386v4_sigtramp_saved_pc): Remove prototype.
5073 * config/i386/tm-go32.h (FRAME_CHAIN,
5074 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5075 (i386go32_frame_saved_pc): Remove prototype.
5076 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5077 (get_longjmp_target): Remove prototype.
5078 * i386-tdep.h: Include "osabi.h".
5079 (enum i386_abi): Removed.
5080 (enum struct_return): New enum.
5081 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5082 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5083 sc_pc_offset members.
5084 (i386_gdbarch_register_os_abi): Remove prototype.
5085 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5086 I386_SSE_NUM_REGS): New defines.
5087 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5088 I386_SSE_SIZEOF_REGS): New defines.
5089 (i386_register_name, i386_register_byte, i386_register_raw_size):
5090 New prototypes.
5091 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5092 (i386bsd_sigtramp_saved_pc): New prototype.
5093 * i386-tdep.c: Don't include "elf-bfd.h".
5094 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5095 i386_frame_chain, i386_saved_pc_after_call): Make static.
5096 (i386_frame_saved_pc): Rewrite to call architecture dependent
5097 function to deal with signal handlers. Make static.
5098 (i386go32_frame_saved_pc): Removed.
5099 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5100 Removed.
5101 (i386_get_longjmp_target): New function.
5102 (default_struct_convention, pcc_struct_convention,
5103 reg_struct_convention, valid_conventions, struct_convention): New
5104 variables.
5105 (i386_use_struct_convention): New function.
5106 (i386v4_sigtramp_saved_pc): Renamed to
5107 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5108 (i386_pc_in_sigtramp): New function.
5109 (i386_abi_names): Removed.
5110 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5111 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5112 Removed.
5113 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5114 i386_gdbarch_register_os_abi): Removed.
5115 (struct i386_abi_handler): Removed.
5116 (i386_abi_handler_list): Removed.
5117 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5118 functions.
5119 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5120 i386_nw_init_abi): New functions.
5121 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5122 Use set_gdbarch_xxx() calls instead of relying on macros for a
5123 number of calls.
5124 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5125 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5126 Register the various architecture variants defined in this file.
5127
ad2f7632
DJ
51282002-06-14 Daniel Jacobowitz <drow@mvista.com>
5129
5130 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5131 (struct main_type): Remove arg_types member. Update comments for
5132 struct field.
5133 (TYPE_ARG_TYPES): Remove.
5134 (TYPE_FN_FIELD_ARGS): Update.
5135 (smash_to_method_type): Update prototype.
5136
5137 * c-typeprint.c (cp_type_print_method_args): Take method type
5138 instead of argument list. Use new argument layout. Simplify.
5139 (c_type_print_args): Use new argument layout. Simplify.
5140 (c_type_print_base): Update call to cp_type_print_method_args.
5141 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5142 argument; use die->type instead. Update call to
5143 smash_to_method_type.
5144 (read_structure_scope): Update call to dwarf2_add_member_fn.
5145 * gdbtypes.c (allocate_stub_method): Update comment.
5146 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5147 Use new argument layout.
5148 (check_stub_method): Use new argument layout. Don't count
5149 void as an argument.
5150 (print_arg_types): Update comments. Use new argument layout.
5151 (recursive_dump_type): Don't print arg_types member.
5152 * hpread.c (hpread_read_struct_type): Use new argument layout.
5153 (fixup_class_method_type): Likewise.
5154 (hpread_type_lookup): Likewise.
5155 * stabsread.c (read_type): Update calls to read_args and
5156 smash_to_method_type.
5157 (read_args): Use new argument layout. Simplify.
5158 * valops.c (typecmp): Use new argument layout. Update parameters
5159 and comments. Simplify.
5160 (hand_function_call): Use new argument layout.
5161 (search_struct_method): Update call to typecmp.
5162 (find_overload_match): Use new argument layout.
5163
6da02953
DJ
51642002-06-13 Daniel Jacobowitz <drow@mvista.com>
5165
5166 * NEWS: Mention multithreaded debug support for gdbserver.
5167
519b2366
DJ
51682002-06-13 Daniel Jacobowitz <drow@mvista.com>
5169
5170 * MAINTAINERS: Mention NEWS.
5171
6c0d6680
DJ
51722002-06-13 Daniel Jacobowitz <drow@mvista.com>
5173
5174 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5175 (struct mips_objfile_private, compare_pdr_entries): New.
5176 (non_heuristic_proc_desc): Read the ".pdr" section if it
5177 is present.
5178
6529d2dd
AC
51792002-06-12 Andrew Cagney <ac131313@redhat.com>
5180
5181 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5182 (arm_debug): New static variable.
5183 (_initialize_arm_tdep): Add ``set debug arm'' command.
5184
26216b98
AC
51852002-06-12 Andrew Cagney <ac131313@redhat.com>
5186
5187 * Makefile.in (sim_arm_h): Define.
5188 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5189 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5190 (arm_register_sim_regno): New function, map an internal REGNUM
5191 onto a simulator register number.
5192 (arm_gdbarch_init): Set register_sim_regno.
5193
814b3ba0
AH
51942002-06-09 Aldy Hernandez <aldyh@redhat.com>
5195
5196 * MAINTAINERS: Add self.
5197
475b0867
JB
51982002-06-11 Jim Blandy <jimb@redhat.com>
5199
919d772c
JB
5200 * source.c (source_info): Mention whether the symtab has
5201 information about preprocessor macros.
5202
475b0867
JB
5203 Call the command `info macro', not `show macro'.
5204 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5205 Fix error message.
5206 (_initialize_macrocmd): Register `info_macro_command' in
5207 `infolist', not `showlist'.
5208
9e364162
DJ
52092002-06-11 Daniel Jacobowitz <drow@mvista.com>
5210
5211 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5212 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5213 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5214 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5215 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5216 unconditionally.
5217 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5218 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5219 (_initialize_mips_tdep): Remove dead code.
5220 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5221 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5222 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5223 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5224 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5225 MIPS_LAST_FP_ARG_REGNUM): Remove.
5226
23aa4c72
ML
52272002-06-11 Michal Ludvig <mludvig@suse.cz>
5228
5229 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5230 (unwind_tmp_obstack_free, parse_frame_info)
5231 (update_context, cfi_read_fp, cfi_write_fp)
5232 (cfi_frame_chain, cfi_init_extra_frame_info)
5233 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5234 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5235
70eb15a4
CV
52362002-06-11 Corinna Vinschen <vinschen@redhat.com>
5237
5238 * v850-tdep.c (v850_type_is_scalar): New function.
5239 (v850_use_struct_convention): Match current gcc implementation
5240 as close as possible.
5241 (v850_push_arguments): Fix stack_offset handling. Don't write
5242 struct_addr into register. This is done by v850_store_struct_return.
5243 (v850_extract_return_value): Care for structs.
5244 (v850_store_return_value): Ditto.
5245 (v850_store_struct_return): Actually write address.
5246
482a4d06
ML
52472002-06-11 Michal Ludvig <mludvig@suse.cz>
5248
5249 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5250 without debug information too.
5251
d855c300
AC
52522002-06-10 Andrew Cagney <ac131313@redhat.com>
5253
5254 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5255 Make multi-arch pure.
5256 * gdbarch.h, gdbarch.c: Re-generate.
5257 * arm-tdep.c (arm_print_float_info): Update.
5258 * arch-utils.h (default_print_float_info): Update.
5259 * arch-utils.c (default_print_float_info): Update.
5260 * infcmd.c (float_info): Update call.
5261
dd12a101
AC
52622002-06-10 Andrew Cagney <ac131313@redhat.com>
5263
5264 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5265 the front of the initialize list.
5266
101dcfbe
AC
52672002-06-10 Andrew Cagney <ac131313@redhat.com>
5268
5269 * infrun.c (struct inferior_status): Replace fields
5270 selected_frame_address and selected_level with field
5271 selected_frame_id.
5272 (save_inferior_status): Update. Use get_frame_id.
5273 (struct restore_selected_frame_args): Delete.
5274 (restore_selected_frame): Update. Use frame_find_by_id.
5275 (restore_inferior_status): Update.
5276
5277 * breakpoint.h (struct breakpoint): Change type of
5278 watchpoint_frame to frame_id.
5279 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5280 call to get_current_frame.
5281 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5282 get_current_frame.
5283 (watchpoint_check): Use frame_find_by_id.
5284
5285 * frame.h (record_selected_frame): Delete declaration.
5286 * stack.c (record_selected_frame): Delete function.
5287
5288 * frame.h (struct frame_id): Define.
5289 (get_frame_id): Declare.
5290 (frame_find_by_id): Declare.
5291 * frame.c (frame_find_by_id): New function.
5292 (get_frame_id): New function.
5293
304270b6
AV
52942002-06-10 Andrey Volkov <avolkov@transas.com>
5295
5296 * ser-e7kpc.c: Fix duplicated define and call of
5297 _initialize_ser_e7000pc
5298
2f2cf184
DJ
52992002-06-09 Daniel Jacobowitz <drow@mvista.com>
5300
5301 * signals/signals.c (target_signal_from_host): Fix #ifdef
5302 SIGRTMIN case.
5303 (do_target_signal_to_host): Likewise.
5304
caaa3122
DJ
53052002-06-09 Daniel Jacobowitz <drow@mvista.com>
5306
5307 * mips-tdep.c (mips_find_abi_section): New function.
5308 (mips_gdbarch_init): Call it.
5309
6ac5df3a
MK
53102002-06-09 Mark Kettenis <kettenis@gnu.org>
5311
5312 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5313 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5314 after Andrew's 2002-06-08 gdbarch change.
5315
82ea117a
MK
53162002-06-09 Mark Kettenis <kettenis@gnu.org>
5317
5318 * i386-linux-nat.c (suppy_gregset): Don't supply
5319 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5320 register cache.
5321 (fill_gregset): Don't fetch it under the same circumstances.
5322
3c25f8c7
AC
53232002-06-09 Andrew Cagney <cagney@redhat.com>
5324
5325 * Makefile.in (callback_h): Define.
5326 (remote_sim_h): Update path to remote-sim.h.
5327 (remote-rdp.o): Add $(callback_h).
5328 (remote-sim.o): Use $(callback_h).
5329 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5330 * remote-rdp.c: Include "gdb/callback.h".
5331
1029b7fa
MK
53322002-06-09 Mark Kettenis <kettenis@gnu.org>
5333
5334 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5335 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5336
616675d3
AC
53372002-06-08 Andrew Cagney <ac131313@redhat.com>
5338
a3efda28
AC
5339 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5340 * rdi-share/serpardr.c: Ditto.
5341 * rdi-share/unixcomm.c: Ditto.
5342 * rdi-share/serdrv.c: Ditto.
5343 * rdi-share/hostchan.h: Ditto.
5344 * rdi-share/hostchan.c: Ditto.
5345 * rdi-share/host.h: Ditto.
5346 * rdi-share/devsw.c: Ditto.
5347
c5f10366
AC
5348 * objfiles.h: Change type of obj_private to void pointer.
5349 * pa64solib.c: Update copyright. Don't include "assert.h", use
5350 strcmp instead of STREQ, use LONGEST, do not use PTR
5351 * somsolib.c: Ditto.
5352
616675d3
AC
5353 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5354 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5355 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5356
e4b415d9
AC
53572002-06-08 Andrew Cagney <ac131313@redhat.com>
5358
5359 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5360 (default_get_saved_register): Delete function.
5361 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5362 generic_unwind_get_saved_register.
5363 * gdbarch.h, gdbarch.c: Re-generate.
5364
ca0d0b52
AC
53652002-06-08 Andrew Cagney <ac131313@redhat.com>
5366
5367 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5368 generic_func_frame_chain_valid.
5369 * gdbarch.h, gdbarch.c: Re-generate.
5370 * blockframe.c (generic_func_frame_chain_valid): Only check
5371 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5372 passing FP to PC_IN_CALL_DUMMY.
5373 Fix PR gdb/360.
5374
76860b5f
AC
53752002-06-08 Andrew Cagney <ac131313@redhat.com>
5376
5377 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5378 (register_gdbarch_data): Initialize init_p.
5379 (gdbarch_data): Initialize data pointer using the init function.
5380 (init_gdbarch_data): Delete function.
5381 (gdbarch_update_p): Update.
5382 (initialize_non_multiarch): Update.
5383 (struct gdbarch): Add field initialized_p.
5384 * gdbarch.h, gdbarch.c: Re-generate.
5385
8dda9770
ML
53862002-06-07 Michal Ludvig <mludvig@suse.cz>
5387
5388 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5389 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5390 better do the things actually here.
5391 * x86-64-tdep.c (x86_64_register_name2nr): New.
5392 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5393 (x86_64_gdbarch_init): Respect the above change.
5394 * x86-64-tdep.h (x86_64_register_name2nr)
5395 (x86_64_register_nr2name): Add prototypes.
5396 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5397
3d79a47c
MS
53982002-06-06 Michael Snyder <msnyder@redhat.com>
5399
7bd91a28
MS
5400 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5401 Delete extra braces and re-indent.
5402 (d10v_store_return_value): Char return values
3d79a47c
MS
5403 must be shifted over by one byte in R0.
5404 (d10v_extract_return_value): Delete extra braces, re-indent.
5405
095a4c96
EZ
54062002-06-06 Elena Zannoni <ezannoni@redhat.com>
5407
5408 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5409 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5410 (d10v_integer_to_address): Rewrite.
5411 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5412 the d10v specific functions which take care of converting to the
5413 correct space.
5414
e8a77ca4
EZ
54152002-06-06 Elena Zannoni <ezannoni@redhat.com>
5416
5417 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5418 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5419
4f2e4a4f
AC
54202002-06-02 Andrew Cagney <ac131313@redhat.com>
5421
5422 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5423 includes.
5424 * config/tm-linux.h: Ditto.
5425 * config/alpha/tm-alphalinux.h: Ditto.
5426 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5427 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5428 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5429 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5430 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5431 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5432 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5433 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5434 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5435 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5436 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5437 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5438 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5439 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5440 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5441 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5442 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5443 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5444 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5445 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5446 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5447 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5448 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5449 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5450 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5451 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5452 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5453 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5454 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5455 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5456 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5457 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5458 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5459 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5460 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5461 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5462 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5463
ae2ab2ce
AS
54642002-05-04 Aidan Skinner <aidan@velvet.net>
5465
5466 * ada-exp.tab.c: New file
5467 * ada-exp.y: New file
5468 * ada-lang.c: New file
5469 * ada-lang.h: New file
5470 * ada-lex.c: New file
5471 * ada-lex.l: New file
5472 * ada-tasks.c: New file
5473 * ada-typeprint.c: New file
5474 * ada-valprint.c: New file
5475
0ddd0135
JT
54762002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5477
5478 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5479 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5480
750fbacc
JT
54812002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5482
5483 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5484 insetead of ppc-linux-tdep.o.
5485 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5486 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5487
df94e18a
AC
54882002-06-02 Andrew Cagney <ac131313@redhat.com>
5489
5490 2002-05-07 Christian Groessler <chris@groessler.org>
5491 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5492 bit register contents for little endian hosts.
5493
1a38ab75
AC
54942002-06-01 Andrew Cagney <ac131313@redhat.com>
5495
5496 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5497 any maintainer.
5498
8b1632ac
AC
54992002-06-01 Andrew Cagney <ac131313@redhat.com>
5500
5501 * gdbarch.h: Regenerate.
5502
627054c8
AC
55032002-06-01 Andrew Cagney <ac131313@redhat.com>
5504
5505 * MAINTAINERS: Add everyone to write-after-approval list.
5506
4f460812
AC
55072002-06-01 Andrew Cagney <ac131313@redhat.com>
5508
5509 * stack.c (frame_info): Use frame_register_unwind instead of
5510 saved_regs. Mention when the SP is on the stack or in a register.
5511
5512 * frame.h (frame_register_unwind_ftype): Define. Document.
5513 (struct frame_info): Add field register_unwind and
5514 register_unwind_cache.
5515 (frame_register_unwind): Declare.
5516 (generic_unwind_get_saved_register): Declare.
5517
5518 * frame.c (frame_register_unwind): New function.
5519 (generic_unwind_get_saved_register): New function.
5520
5521 * blockframe.c (generic_call_dummy_register_unwind): New function.
5522 (frame_saved_regs_register_unwind): New function.
5523 (set_unwind_by_pc): New function.
5524 (create_new_frame): New function.
5525 (get_prev_frame): New function.
5526
de888f76
AC
55272002-05-30 Andrew Cagney <ac131313@redhat.com>
5528
5529 * a29k-share/: Delete directory.
5530 * remote-vx29k.c: Delete file.
5531
2f2c3626
JT
55322002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5533
5534 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5535 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5536
9ce5c36a
JT
55372002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5538
5539 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5540 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5541 (sparc64nbsd-nat.o)
5542 (sparcnbsd-nat.o)
5543 (sparcnbsd-tdep.o): New dependency lists.
5544 * NEWS: Note new UltraSPARC NetBSD native configuration.
5545 * configure.host (sparc64-*-netbsd*): New host.
5546 * configure.tgt (sparc-*-netbsdelf*)
5547 (sparc-*-netbsd*): Set gdb_target to nbsd.
5548 (sparc64-*-netbsd*): New target.
5549 * sparc64nbsd-nat.c: New file.
5550 * sparcnbsd-nat.c: New file.
5551 * sparcnbsd-tdep.c: New file.
5552 * sparcnbsd-tdep.h: New file.
5553 * config/sparc/nbsd.mt: New file.
5554 * config/sparc/nbsd64.mh: New file.
5555 * config/sparc/nbsd64.mt: New file.
5556 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5557 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5558 (HOST_IPC): Remove.
5559 * config/sparc/nbsdaout.mt: Remove.
5560 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5561 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5562 (HOST_IPC): Remove.
5563 * config/sparc/nbsdelf.mt: Remove.
5564 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5565 sparc-nat.c compatiblity defines.
5566 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5567 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5568 * config/sparc/tm-nbsd64.h: New file.
5569 * config/sparc/tm-nbsdaout.h: Remove.
5570 * config/sparc/xm-nbsd.h: Remove.
5571
ef3cf062
JT
55722002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5573
5574 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5575 * sparc-tdep.c: Include osabi.h.
5576 (gdbarch_tdep): Add osabi member.
5577 (_initialize_sparc_tdep): Use gdbarch_register.
5578 (sparc_gdbarch_init): Use generic OS ABI framework.
5579 (sparc_dump_tdep): New function.
5580
ee8ff470
KB
55812002-05-30 Kevin Buettner <kevinb@redhat.com>
5582
5583 * corefile.c (do_captured_read_memory_integer): Return non-zero
5584 result.
5585 (safe_read_memory_integer): Copy result of memory read when
5586 status is non-zero. Also, add comments.
5587
7b112f9c
JT
55882002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5589
5590 * Makefile.in (ppc_tdep_h): Define.
5591 (ppc-linux-nat.o)
5592 (ppc-linux-tdep.o)
5593 (rs6000-tdep.o): Use $(ppc_tdep_h).
5594 (ppc-sysv-tdep.o)
5595 (ppcnbsd-nat.o)
5596 (ppcnbsd-tdep.o): New dependency lists.
5597 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5598 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5599 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5600 (ppc_sysv_abi_broken_use_struct_convention)
5601 (ppc_sysv_abi_use_struct_convention)
5602 (ppc_sysv_abi_push_arguments): Move to...
5603 * ppc-sysv-tdep.c: ...here.
5604 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5605 * rs6000-tdep.c (process_note_abi_tag_sections)
5606 (get_elfosabi): Remove.
5607 (rs6000_gdbarch_init): Use generic OS ABI framework.
5608 (rs6000_dump_tdep): New function.
5609 (_initialize_rs6000_tdep): Use gdbarch_register.
5610 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5611 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5612 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5613 of ppc-linux-tdep.o.
5614 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5615 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5616 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5617 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5618 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5619 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5620
480dd42a
JB
56212002-05-29 Jim Blandy <jimb@redhat.com>
5622
5623 * macroscope.c (default_macro_scope): Put `void' in empty argument
5624 list.
5625
4182591f
AC
56262002-05-29 Andrew Cagney <ac131313@redhat.com>
5627
5628 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5629 * arch-utils.c: Include "sim-regno.h".
5630 * gdbarch.sh: Don't include "sim-regno.h".
5631 * gdbarch.h, gdbarch.c: Regenerate.
5632 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5633 here.
5634 * arch-utils.h (legacy_register_sim_regno): To here.
5635 * remote-sim.c (legacy_register_sim_regno): Move function from
5636 here.
5637 * arch-utils.c (legacy_register_sim_regno): To here.
5638
8238d0bf
AC
56392002-05-28 Andrew Cagney <ac131313@redhat.com>
5640
5641 * sim-regno.h: New file.
5642 * Makefile.in (sim_regno_h): Define.
5643 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5644 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5645 (legacy_register_sim_regno): New function.
5646 (one2one_register_sim_regno): New function.
5647 (gdbsim_fetch_register): Rewrite.
5648 (gdbsim_store_register): Only store a register when
5649 REGISTER_SIM_REGNO is valid.
5650 * d10v-tdep.c: Include "sim-regno.h".
5651 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5652 (d10v_ts3_register_sim_regno): Ditto.
5653 * gdbarch.sh: Include "sim-regno.h".
5654 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5655 * gdbarch.h, gdbarch.c: Regenerate.
5656 * arch-utils.h (default_register_sim_regno): Delete declaration.
5657 * arch-utils.c (default_register_sim_regno): Delete function.
5658
485721b1
JT
56592002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5660
5661 * ppcnbsd-nat.c: Rewrite.
5662 * ppcnbsd-tdep.c: New file.
5663 * ppcnbsd-tdep.h: New file.
5664 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5665 solib.o, and solib-svr4.o.
5666 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5667 nbsd-tdep.o, and corelow.o.
5668
697f244d
AC
56692002-05-28 Andrew Cagney <ac131313@redhat.com>
5670
5671 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5672 `tr' and `sed'. Mention that `broken' targets are not expected to
5673 build.
5674
f08caad1 56752002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5676
5677 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5678 Let PC point right after the prologue before looking up symbols.
5679
3139facc
MH
56802002-05-27 Martin M. Hunt <hunt@redhat.com>
5681
5682 * i386-tdep.c (i386_register_virtual_type): Return
5683 builtin_type_vec128i for SSE registers.
5684
5685 * gdbtypes.h (builtin_type_vec128i): Declare.
5686
5687 * gdbtypes.c (build_builtin_type_vec128i): New function.
5688 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5689 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5690 (build_gdbtypes): Initialize new builtin vector types.
5691 (_initialize_gdbtypes): Register new vector types with gdbarch.
5692
6e3ba3b8
JT
56932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5694
5695 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5696 since it has been multi-arch'd.
5697 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5698 Move Alpha and VAX multi-arch news entries to same section
5699 as other multi-arch news.
5700
93d5585d
JT
57012002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5702
5703 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5704 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5705 static. Rename some register numbers to put them in ns32k-tdep
5706 private namespace.
5707 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5708 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5709 functions.
5710 (_initialize_ns32k_tdep): Use gdbarch_register.
5711 * ns32k-tdep.h: New file.
5712 * ns32knbsd-tdep.c: New file.
5713 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5714 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5715 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5716 REGISTER_BYTES, REGISTER_BYTE): Remove.
5717 * config/ns32k/tm-ns32k.h: New file.
5718 * config/ns32k/tm-umax.h: Remove.
5719
efb2c70e
JT
57202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5721
5722 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5723 ns32k_store_struct_return, ns32k_extract_return_value,
5724 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5725 functions.
5726 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5727 ns32k_saved_pc_after_call.
5728 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5729 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5730 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5731 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5732 ns32k_extract_struct_value_address.
5733
7bcc927b
JT
57342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5735
5736 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5737 ns32k_fix_call_dummy): New.
5738 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5739 ns32k_call_dummy_words.
5740 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5741 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5742 CALL_DUMMY_NARGS): Remove.
5743 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5744
78f9d765
JT
57452002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5746
5747 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5748 ns32k_frame_saved_pc, ns32k_frame_args_address,
5749 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5750 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5751 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5752 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5753 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5754 (BREAKPOINT): Remove..
5755 (FRAME_CHAIN): Define as ns32k_frame_chain.
5756 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5757 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5758 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5759 (FRAME_FIND_SAVED_REGS): Remove.
5760 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5761 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5762 (POP_FRAME): Define as ns32k_pop_frame.
5763
f2c762e0
JT
57642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5765
5766 * ns32k-tdep.c (ns32k_register_byte_32082,
5767 ns32k_register_byte_32382, ns32k_register_raw_size,
5768 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5769 functions.
5770 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5771 ns32k_register_byte_32382.
5772 * config/ns32k/tm-umax.h: Update copyright years.
5773 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5774 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5775 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5776 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5777 (ns32k_get_enter_addr): Fix prototype.
5778
af137673
JT
57792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5780
5781 * ns32k-tdep.c: Update copyright years.
5782 (ns32k_register_name_32082): New function.
5783 (ns32k_register_name_32382): Ditto.
5784 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5785 (REGISTER_NAME): Define as ns32k_register_name_32382.
5786 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5787 (REGISTER_NAME): Define as ns32k_register_name_32082.
5788
a8bc7b56
JB
57892002-05-24 Jim Blandy <jimb@redhat.com>
5790
5791 * dwarf2read.c (free_line_header): Use xfree, not free.
5792
83a45910
JT
57932002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5794
5795 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5796 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5797
0db71247
AC
57982002-05-23 Andrew Cagney <ac131313@redhat.com>
5799
5800 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5801
b9e5e4dd
AC
58022002-05-23 Andrew Cagney <ac131313@redhat.com>
5803
5804 From Ross Alexander at NEC Europe:
5805 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5806
de530e84
MS
58072002-05-23 Michael Snyder <msnyder@redhat.com>
5808
5809 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5810 for input, rather than parse_and_eval_address.
5811
b91b96f4
AC
58122002-05-23 Andrew Cagney <ac131313@redhat.com>
5813
5814 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5815 * Makefile.in (sim_d10v_h): Update definition.
5816
8b279e7a
AC
58172002-05-24 Andrew Cagney <cagney@redhat.com>
5818
5819 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5820 change `2002-05-22 Michael Snyder' below.
5821 (d10v_push_arguments): Ditto.
5822 (d10v_extract_return_value): Ditto.
5823
0a3d0425
JB
58242002-05-23 Jim Blandy <jimb@redhat.com>
5825
5826 * macrotab.c (check_for_redefinition): Don't complain if the new
5827 definition is the same as the previous one. Take more arguments
5828 to allow the comparison.
5829 (macro_define_object, macro_define_function): Pass more arguments
5830 to check_for_redefinition.
5831
78eac43e
MS
58322002-05-22 Michael Snyder <msnyder@redhat.com>
5833
5834 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5835 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5836 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5837 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5838 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5839 Add a temp variable to save a call (and a memory read).
5840 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5841 if possible (so that PC_IN_CALL_DUMMY will work).
5842
9bc1edb8
CV
58432002-05-22 Corinna Vinschen <vinschen@redhat.com>
5844
5845 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5846
005ef3d2
ML
58472002-05-22 Michal Ludvig <mludvig@suse.cz>
5848
5849 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5850 fde->cie_ptr.
5851 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5852 (dwarf2_build_frame_info): Add offset to fde->initial_location
5853 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5854 (execute_stack_op): Change type of 'result' from ULONGEST to
5855 CORE_ADDR.
005ef3d2 5856
fcf4f891
JT
58572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5858
5859 * config/alpha/tm-nbsd.h: Include solib.h.
5860
cfef91e4
JT
58612002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5862
5863 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5864 assumptions about the host's byte order.
5865
9964235a
JT
58662002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5867
5868 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5869 to dependency list.
5870 * alphanbsd-tdep.c: Include solib-svr4.h.
5871 * shnbsd-tdep.c: Ditto.
5872
9eeef8ef
JT
58732002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5874
5875 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5876 nbsd-tdep.h to dependency list.
5877 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5878 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5879 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5880 nbsdaout.mh and nbsdelf.mh consistently.
5881 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5882 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5883 nbsdaout.mt and nbsdelf.mh consistently.
5884 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5885 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5886 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5887 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5888 a.out shared library stuff from here...
5889 * config/nm-nbsdaout.h: ...to here.
5890 * config/tm-nbsd.h: Remove.
5891 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5892 * config/arm/nbsd.mh: Remove.
5893 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5894 nbsd-tdep.o.
5895 * config/arm/nbsdaout.mh: New file.
5896 * config/arm/nbsdelf.mh: New file.
5897 * config/arm/nm-nbsdaout.h: New file.
5898 * config/i386/nbsd.mh: Remove.
5899 * config/i386/nbsd.mt: Remove.
5900 * config/i386/nbsdaout.mh: New file.
5901 * config/i386/nbsdaout.mt: New file.
5902 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5903 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5904 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5905 i386_register_u_addr): Remove.
5906 * config/i386/nm-nbsdaout.h: New file.
5907 * config/i386/nm-nbsdelf.h: Remove.
5908 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5909 (USE_STRUCT_CONVENTION): Remove.
5910 * config/i386/tm-nbsdaout.h: New file.
5911 * config/i386/tm-nbsdelf.h: Remove.
5912 * config/m68k/nbsd.mh: Remove.
5913 * config/m68k/nbsd.mt: Remove.
5914 * config/m68k/nbsdaout.mh: New file.
5915 * config/m68k/nbsdaout.mt: New file.
5916 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5917 * config/m68k/nm-nbsdaout.h: New file.
5918 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5919 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5920 * config/ns32k/nbsd.mh: Remove.
5921 * config/ns32k/nbsd.mt: Remove.
5922 * config/ns32k/nbsdaout.mh: New file.
5923 * config/ns32k/nbsdaout.mt: New file.
5924 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5925 * config/ns32k/nm-nbsdaout.h: New file.
5926 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5927 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5928 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5929 (SVR4_SHARED_LIBS): Remove.
5930 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5931 * config/sparc/nbsd.mh: Remove.
5932 * config/sparc/nbsd.mt: Remove.
5933 * config/sparc/nbsdaout.mh: New file.
5934 * config/sparc/nbsdaout.mt: New file.
5935 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5936 * config/sparc/nbsdelf.mt: New file.
5937 * config/sparc/nm-nbsdaout.h: New file.
5938 * config/sparc/nm-nbsdelf.h: Remove.
5939 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5940 * config/sparc/tm-nbsdaout.h: New file.
5941
257ce470
JT
59422002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5943
5944 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5945 mipsnbsd-tdep.c
5946 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5947
76a6d5fe
JT
59482002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5949
5950 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5951 shnbsd-nat.c.
5952 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5953
45888261
JT
59542002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5955
5956 * NEWS: Note new MIPS NetBSD native configuration.
5957 * configure.host (mips*-*-netbsd*): New host.
5958 * configure.tgt (mips*-*-netbsd*): New target.
5959 * mipsnbsd-nat.c: New file.
5960 * mipsnbsd-tdep.c: New file.
5961 * mipsnbsd-tdep.h: New file.
5962 * config/mips/nbsd.mh: New file.
5963 * config/mips/nbsd.mt: New file.
5964 * config/mips/nm-nbsd.h: New file.
5965 * config/mips/tm-nbsd.h: New file.
5966
70f80edf
JT
59672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5968
5969 * Makefile.in (SFILES): Add osabi.c.
5970 (COMMON_OBS): Add osabi.o.
5971 (osabi.o): New dependency list.
5972 * osabi.c: New file.
5973 * osabi.h: New file.
5974 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5975
5976 * Makefile.in (alpha_tdep_h): Define and use instead of
5977 alpha-tdep.h.
5978 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5979 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5980 Remove.
5981 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5982 * alpha-tdep.h: Include osabi.h.
5983 (alpha_abi): Remove.
5984 (gdbarch_tdep): Use generic OS ABI framework.
5985 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5986 gdbarch_register_osabi.
5987 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5988 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5989 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5990
5991 * Makefile.in (sh_tdep_h): Add osabi.h.
5992 * sh-tdep.h (sh_osabi): Remove.
5993 (gdbarch_tdep): Use generic OS ABI framework.
5994 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5995 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5996 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5997 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5998
5999 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6000 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6001 gdbarch_register_osabi.
6002 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6003 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6004 (get_elfosabi): Rename to...
6005 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6006 ABI framework support routines.
6007 (arm_gdbarch_init): Use generic OS ABI framework.
6008 (arm_dump_tdep): Likewise.
6009 (_initialize_arm_tdep): Likewise.
6010 * arm-tdep.h: Include osabi.h.
6011 (arm_abi): Remove.
6012 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6013 osabi member.
6014 (arm_gdbarch_register_os_abi): Remove prototype.
6015 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6016 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6017
6018 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6019 * mips-tdep.c: Include osabi.h.
6020 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6021 OS ABI framework.
6022
d194345b
KH
60232002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6024
6025 * h8300-tdep.c: Fix formatting.
6026
70c6b0d1
EZ
60272002-05-20 Elena Zannoni <ezannoni@redhat.com>
6028
6029 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6030 printing vector registers.
6031
165b8e33
AC
60322002-05-19 Andrew Cagney <ac131313@redhat.com>
6033
6034 From Fernando Nasser:
6035 * remote.c (remote_async_open_1): Re-throw the exception when the
6036 connection fails.
6037 (remote_cisco_open): Ditto.
6038 (remote_open_1): Ditto.
6039
36918e70
AC
60402002-05-19 Andrew Cagney <ac131313@redhat.com>
6041
6042 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6043 (remote_start_remote): Add uiout parameter. Pass through to
6044 remote_start_remote_dummy.
6045 (remote_open_1): Use catch_exception instead of catch_errors.
6046 (remote_async_open_1): Ditto.
6047 (remote_cisco_open): Ditto.
6048
ae44c0c4
AC
60492002-05-19 Andrew Cagney <ac131313@redhat.com>
6050
6051 * remote.c (remote_start_remote): Replace PTR with void pointer.
6052 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6053 static.
6054
8efe637d
AC
60552002-05-18 Andrew Cagney <ac131313@redhat.com>
6056
6057 * gdb_indent.sh: Allow the script to be run in the sim directory.
6058
2f1b5984
MK
60592002-05-18 Mark Kettenis <kettenis@gnu.org>
6060
f0f625e2
MK
6061 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6062 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6063
2f1b5984
MK
6064 * corelow.c (core_open): Only call set_gdbarch_from_file if
6065 exec_bfd is NULL.
6066
fc974602
AV
60672002-05-17 Andrey Volkov <avolkov@transas.com>
6068
6069 * h8300-tdep.c: Add support of EXR register
6070 * config/h8300/tm-h8300.h: Ditto.
6071
906709f4
AV
60722002-05-17 Andrey Volkov <avolkov@transas.com>
6073
6074 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6075
6e591d68
AV
60762002-05-17 Andrey Volkov <avolkov@transas.com>
6077
6078 * h8300-tdep.c: Change literal regnums to REGNO.
6079
84f0252a
JB
60802002-05-17 Jim Blandy <jimb@redhat.com>
6081
e0e9281e
JB
6082 * NEWS: Note addition of macro support.
6083
84f0252a
JB
6084 Expand preprocessor macros in C expressions.
6085 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6086 (scan_macro_expansion, scanning_macro_expansion,
6087 finished_macro_expansion): New function declarations.
6088 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6089 variable declarations.
6090 * parser-defs.h (expression_context_pc): New declaration.
6091 * parse.c (expression_context_pc): New variable.
6092 (parse_exp_1): Set expression_context_pc, as well as
6093 expression_context_block.
6094 * c-exp.y (yylex): If we're not already reading the result of a
6095 macro expansion, try to macro-expand the next token. When we're
6096 done scanning a macro expansion, switch back to the mainline text.
6097 Commas and `if's in a macro's expansion don't terminate the input.
6098 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6099 (macro_original_text, macro_expanded_text,
6100 expression_macro_lookup_func, expression_macro_lookup_baton): New
6101 variables.
6102 (scan_macro_expansion, scanning_macro_expansion,
6103 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6104 c_preprocess_and_parse): New functions.
6105 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6106 c_preprocess_and_parse, instead of c_parse.
6107 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6108 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6109
1c509ca8
JR
6110Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6111
6112 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6113 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6114 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6115
2250ee0c
CV
61162002-05-17 Corinna Vinschen <vinschen@redhat.com>
6117
6118 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6119
ab3b8126
JT
61202002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6121
6122 * Makefile.in (sh_tdep_h): Define and use.
6123 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6124 register enum): Move to...
6125 * * sh-tdep.h: ...here.
6126 * sh-tdep.c: Include sh-tdep.h.
6127 * sh3-rom.c: Likewise.
6128 * shnbsd-tdep.c: Likewise.
6129
ed9d4749
MS
61302002-05-16 Michael Snyder <msnyder@redhat.com>
6131
6132 * arm-tdep.c: Spelling fix in comment.
6133
2e276125
JB
61342002-05-16 Jim Blandy <jimb@redhat.com>
6135
6821892e
JB
6136 Add commands for manually expanding macros and showing their
6137 definitions.
6138 * macrocmd.c, macroscope.c, macroscope.h: New files.
6139 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6140 (macroscope_h): New variable.
6141 (HFILES_NO_SRCDIR): Add macroscope.h.
6142 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6143 (macroscope.o, macrocmd.o): New rules.
6144
2e276125
JB
6145 Teach the Dwarf 2 reader to read macro information.
6146 * dwarf2read.c: #include "macrotab.h".
6147 (dwarf_macinfo_buffer): New variable.
6148 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6149 dwarf_macinfo_size.
6150 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6151 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6152 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6153 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6154 dwarf2_macro_spaces_in_definition): New complaints.
6155 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6156 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6157 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6158 the partial symbol table.
6159 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6160 from what's recorded in the partial symbol table.
6161 (read_file_scope): If the compilation unit has a
6162 `DW_AT_macro_info' attribute, read its macro information.
6163 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6164
2f53fe6c
DJ
61652002-05-16 Daniel Jacobowitz <drow@mvista.com>
6166
6167 Fix PR gdb/546
6168 * ser-tcp.c: Don't include <netinet/udp.h>.
6169
2be99286
SC
61702002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6171
6172 * MAINTAINERS: Update my email address.
6173
c9af212b 61742002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
6175
6176 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6177 include file of the same name.
6178
bf5f1a52
CV
61792002-05-16 Corinna Vinschen <vinschen@redhat.com>
6180
6181 * configure.tgt: Mark v850 as multi-arched.
6182 * config/v850/tm-v850.h: Remove file.
6183 * config/v850/v850.mt: Eliminate TM_FILE.
6184
435e042a
CV
61852002-05-16 Corinna Vinschen <vinschen@redhat.com>
6186
6187 * v850-tdep.c: Full multi-arch.
6188 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6189 Define GDB_MULTI_ARCH to 2.
6190
9819c6c8
PM
61912002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6192
6193 * p-exp.y (current_type): New static variable.
6194 Carries the type of the expression at the position that is parsed.
6195 (push_current_type, pop_current_type): Two new functions. Used
6196 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6197 (search_field): New static variable. Set to one after parsing a point
6198 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6199 (FIELDNAME): New token. After a point only a token belonging to
6200 current_type type definition is allowed.
6201 (all over token rules): reset and change current_type according
6202 to rules.
6203 (exp '[' rule): insert implicit array index field if
6204 exp is a pascal string type.
6205
3a06899a
CV
62062002-05-16 Corinna Vinschen <vinschen@redhat.com>
6207
6208 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6209 frame info. Use frame_info's saved_regs instead of matching member
6210 in extra_frame_info throughout.
6211 (v850_frame_init_saved_regs): New function.
6212 (v850_init_extra_frame_info): Move most functionality into
6213 v850_frame_init_saved_regs().
6214 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6215 (v850_frame_find_saved_regs): Remove declaration.
6216 (FRAME_FIND_SAVED_REGS): Remove definition.
6217 (v850_frame_init_saved_regs): Add declaration.
6218 (FRAME_INIT_SAVED_REGS): Add definition.
6219
6ed14b0e
CV
62202002-05-16 Corinna Vinschen <vinschen@redhat.com>
6221
6222 * v850-tdep.c: Begin multi-arch'ing v850.
6223 (v850_target_architecture_hook): Remove function.
6224 (v850_gdbarch_init): New function. Add code previously in
6225 v850_target_architecture_hook().
6226 (_initialize_v850_tdep): Don't set target_architecture_hook.
6227 Call register_gdbarch_init() instead.
6228
42725910
DJ
62292002-05-16 Daniel Jacobowitz <drow@mvista.com>
6230
6231 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6232 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6233 (fixup_class_method_type): Likewise.
6234
99d9066e
JB
62352002-05-15 Jim Blandy <jimb@redhat.com>
6236
6237 Add macro structures to GDB's symbol tables. Nobody puts anything
6238 in them yet.
6239 * symtab.h (struct symtab): New member: `macro_table'.
6240 * buildsym.h (pending_macros): New global variable.
6241 * buildsym.c: #include "macrotab.h".
6242 (buildsym_init): Initialize `pending_macros'.
6243 (end_symtab): If we found macro information while reading a CU's
6244 debugging info, do build a symtab structure for it. Make the
6245 symtab point to the macro information, and clear the
6246 `pending_macros' pointer which held it while we were reading the
6247 debug info.
6248 (really_free_pendings): Free any pending macro table.
6249 * objfiles.h (struct objfile): New member: `macro_cache'.
6250 * objfiles.c (allocate_objfile): Set allocate and free functions
6251 for the macro cache's objstack.
6252 (free_objfile): Empty the macro cache's obstack.
6253 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6254 set new allocate and free functions for it.
6255 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6256 free functions for the macro cache's objstack. (Why is this
6257 function building its own objfile?)
6258 * symmisc.c (print_objfile_statistics): Print statistics on the
6259 macro bcache.
6260 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6261
c899585b
RE
62622002-05-15 Richard Earnshaw <rearnsha@arm.com>
6263
6264 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6265 (REGISTER_U_ADDR): Delete definition.
6266 (arm_register_u_addr): Delete declaration.
6267
a6cdd8c5
RE
62682002-05-15 Richard Earnshaw <rearnsha@arm.com>
6269
6270 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6271 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6272
c97dcfc7
AC
62732002-05-14 Andrew Cagney <ac131313@redhat.com>
6274
6275 * regcache.c (register_valid): Revise comments refering to "Not
6276 available" and "unavailable".
6277 * frame.c (frame_register_read): Ditto.
6278 * findvar.c (value_of_register): Ditto.
6279
93021b7d
AC
62802002-05-15 Andrew Cagney <cagney@redhat.com>
6281
6282 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6283 (remote-sim.o): Update dependencies.
6284 (d10v-tdep.o): Specify dependencies.
6285 (sim_d10v_h): Define.
6286
a86bc61c
JB
62872002-05-14 Jim Blandy <jimb@redhat.com>
6288
6289 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6290 * macrotab.c (macro_lookup_inclusion, find_definition,
6291 new_macro_table): Same.
6292
6293 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6294 not `! strcmp ()'. This is a dubious improvement.
6295 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6296
6297 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6298 although it's not necessary, to avoid a warning.
6299
2fdde8f8
DJ
63002002-05-14 Daniel Jacobowitz <drow@mvista.com>
6301
6302 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6303 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6304 TYPE_INSTANCE_FLAGS.
6305 (struct main_type): New.
6306 (struct type): Move most members to struct main_type. Change
6307 cv_type and as_type to new type_chain member. Add instance_flags.
6308 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6309 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6310 (finish_cv_type): Remove prototype.
6311 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6312 Set TYPE_CHAIN.
6313 (alloc_type_instance): New function.
6314 (smash_type): New function.
6315 (make_pointer_type, make_reference_type, make_function_type)
6316 (smash_to_member_type, smash_to_method_type): Call smash_type.
6317 (make_qualified_type): New function.
6318 (make_type_with_address_space): Call make_qualified_type.
6319 (make_cv_type): Likewise.
6320 (finish_cv_type): Remove unnecessary function.
6321 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6322 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6323 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6324 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6325 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6326 * hpread.c (hpread_read_struct_type): Likewise.
6327 * stabsread.c (read_struct_type): Likewise.
6328
843fedf4
EZ
63292002-05-14 Elena Zannoni <ezannoni@redhat.com>
6330
6331 * configure.tgt: Add a catch all sh* target, for cases like
6332 sh[2,3,4]-elf and sh-hms.
6333
05a6c72c
KS
63342002-05-14 Keith Seitz <keiths@redhat.com>
6335
6336 * event-loop.c (create_file_handler): Don't do anything but
6337 update data when we are given a fd which we are already
6338 monitoring.
6339
5d085aaf
ML
63402002-05-14 Michal Ludvig <mludvig@suse.cz>
6341
6342 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6343 (update_context): Use __func__ in warnings.
6344
9db8d71f
DJ
63452002-05-14 Daniel Jacobowitz <drow@mvista.com>
6346
6347 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6348 and tcp_close to net_open and net_close.
6349 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6350 using UDP if requested. Don't try to disable Nagle on UDP
6351 sockets.
6352 * remote.c (remote_serial_open): New function. Warn about UDP.
6353 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6354
5dbc6baa
EZ
63552002-05-13 Elena Zannoni <ezannoni@redhat.com>
6356
6357 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6358
cc3023f7
EZ
63592002-05-13 Elena Zannoni <ezannoni@redhat.com>
6360
6361 * configure.tgt: Remove sh-hms target.
6362 * MAINTAINERS: Don't list sh-hms as a separate target.
6363
ec2bcbe7
JB
63642002-05-13 Jim Blandy <jimb@redhat.com>
6365
6366 Add first preprocessor macro-expansion files.
6367 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6368 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6369 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6370 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6371 (COMMON_OBS): Add macrotab.o, macroexp.o.
6372 (macroexp.o, macrotab.o): New rules.
6373
6d531722
AC
63742002-05-13 Andrew Cagney <ac131313@redhat.com>
6375
6376 * config/m88k/tm-m88k.h: Update copyright.
6377 (m88k_target_write_pc): Declare
6378 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6379 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6380 (SHIFT_INST_REGS): Update definition.
6381 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6382 using old definition of TARGET_WRITE_PC.
6383 * regcache.c (generic_target_write_pc): Delete code handling
6384 NNPC_REGNUM.
6385 * gdbarch.sh (NNPC_REGNUM): Delete.
6386 * gdbarch.h, gdbarch.c: Regenerate.
6387
3e3f2739
RE
63882002-05-13 Richard Earnshaw <rearnsha@arm.com>
6389
6390 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6391 builtin reg number.
6392
0004e5a2
DJ
63932002-05-13 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6396 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6397 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6398 access macros.
6399 * c-typeprint.c (cp_type_print_method_args): Likewise.
6400 (c_type_print_args): Likewise.
6401 * d10v-tdep.c (d10v_push_arguments): Likewise.
6402 (d10v_extract_return_value): Likewise.
6403 * expprint.c (print_subexp): Likewise.
6404 * gdbtypes.c (lookup_primitive_typename): Likewise.
6405 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6406 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6407 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6408 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6409 (TYPE_VECTOR): Likewise.
6410 * hpread.c (hpread_read_struct_type)
6411 (fix_static_member_physnames, fixup_class_method_type)
6412 (hpread_type_lookup): Likewise.
6413 * mdebugread.c (parse_symbol, parse_type): Likewise.
6414 * p-lang.c (is_pascal_string_type): Likewise.
6415 * valops.c (hand_function_call): Likewise.
6416 * x86-64-tdep.c (classify_argument): Likewise.
6417
6418 * hpread.c (hpread_read_function_type)
6419 (hpread_read_doc_function_type): Call replace_type.
6420 * dstread.c (create_new_type): Delete.
6421 (decode_dst_structure, process_dst_function): Call alloc_type.
6422 Use type access macros.
6423
dff95cc7
MK
64242002-05-12 Mark Kettenis <kettenis@gnu.org>
6425
6426 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6427 the're not supported by the current architecture.
6428 (i387_fill_fxsave): Likewise.
6429
bbcd32ad
FF
64302002-05-12 Fred Fish <fnf@redhat.com>
6431
6432 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6433 sect_index_xxx members to index the first slot in section_offsets
6434 if all of the section_offsets are zero.
6435
89cf4787
MK
64362002-05-12 Mark Kettenis <kettenis@gnu.org>
6437
6438 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6439 checked in with last change.
6440
1f77ffc5
MK
64412002-05-12 Mark Kettenis <kettenis@gnu.org>
6442
6443 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6444 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6445 config.sub.
6446
89b8b4a9
DJ
64472002-05-12 Daniel Jacobowitz <drow@mvista.com>
6448
6449 * Makefile.in: Update dependencies.
6450
14a5e767
AC
64512002-05-11 Andrew Cagney <ac131313@redhat.com>
6452
6453 * language.c (local_hex_string_custom): Simplify. Do not depend
6454 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6455
6456 * memattr.c (mem_info_command): Replace calls to
6457 longest_local_hex_string and longest_local_hex_string_custom.
6458 * buildsym.c (make_blockvector): Ditto.
6459 * solib.c (info_sharedlibrary_command): Ditto.
6460 * tracepoint.c (tracepoints_info): Ditto.
6461 * symtab.c (print_msymbol_info): Ditto.
6462
6463 * language.c (local_hex_string): Delete.
6464 (local_hex_string_custom): Delete.
6465 (longest_local_hex_string): Rename to local_hex_string.
6466 (longest_local_hex_string_custom): Rename to
6467 local_hex_string_custom.
6468 * language.h (local_hex_string): Change parameter type to LONGEST.
6469 (local_hex_string_custom): Ditto.
6470 (longest_local_hex_string): Delete declaration.
6471 (longest_local_hex_string_custom): Ditto.
6472
6473 * solib.c: Update copyright.
6474 * memattr.c: Update copyright.
6475
13d01224
AC
64762002-05-11 Andrew Cagney <ac131313@redhat.com>
6477
6478 * arch-utils.h (legacy_register_to_value): Declare.
6479 (legacy_value_to_register): Declare.
6480 (legacy_convert_register_p): Declare.
6481 * arch-utils.c (legacy_register_to_value): New function.
6482 (legacy_value_to_register): New function.
6483 (legacy_convert_register_p): New function.
6484
6485 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6486 (VALUE_TO_REGISTER): Define.
6487 (CONVERT_REGISTER_P): Define.
6488 * gdbarch.h, gdbarch.c: Regenerate.
6489
6490 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6491 VALUE_TO_REGISTER.
6492 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6493 CONVERT_REGISTER_P.
6494
4a1970e4
DJ
64952005-05-11 Daniel Jacobowitz <drow@mvista.com>
6496 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6497
6498 * Makefile.in: Update dependencies for valops.c.
6499 * valops.c: Include "gdb_assert.h".
6500 (typecmp): Skip THIS parameter to methods.
6501 (find_method_list): Remove static_memfuncp argument,
6502 update callers. Check for stub methods.
6503 (find_value_oload_method_list): Don't set *static_memfuncp.
6504 (find_overload_match): Don't check for stub methods. Assert
6505 that methods are not stubbed. Handle static methods.
6506 (value_find_oload_method_list): Remove static_memfuncp argument.
6507 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6508 to the argument list for static stub methods.
6509 * value.h (value_find_oload_method_list): Update prototype.
6510
b2e75d78
AC
65112002-05-11 Andrew Cagney <ac131313@redhat.com>
6512
6513 * arch-utils.h (generic_register_size): Declare.
6514 (generic_register_raw_size, generic_register_virtual_size): Delete
6515 declarations.
6516 * arch-utils.c (generic_register_raw_size): Delete.
6517 (generic_register_size): New function.
6518 (generic_register_virtual_size): Delete.
6519
6520 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6521 default generic_register_size.
6522 * gdbarch.h, gdbarch.c: Re-generate.
6523
6524 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6525 register_virtual_size.
6526 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6527 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6528
451fbdda
AC
65292002-05-11 Andrew Cagney <ac131313@redhat.com>
6530
6531 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6532 * gdbarch.h, gdbarch.c: Regenerate.
6533 * gnu-v3-abi.c: Update copyright.
6534 (vtable_address_point_offset): Update.
6535 (gnuv3_rtti_type): Update.
6536 (gnuv3_baseclass_offset): Update.
6537 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6538 (init_fetch_link_map_offsets): Update.
6539 * remote.c (get_remote_state): Update.
6540
6d2f5cea
DJ
65412002-05-11 Daniel Jacobowitz <drow@mvista.com>
6542
6543 * TODO: Remove value_headof/value_from_vtable_info comment.
6544 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6545 * values.c (value_headof, value_from_vtable_info): Delete.
6546 * value.h (value_from_vtable_info): Delete prototype.
6547
d2324da4
AC
65482002-05-11 Andrew Cagney <ac131313@redhat.com>
6549
6550 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6551 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6552 $(gdb_regex_h).
6553 (gdb_assert_h): Define.
6554 (gdb_wait_h): Define.
6555 (gdb_regex_h): Define.
6556
5c717440
DJ
65572002-05-11 Daniel Jacobowitz <drow@mvista.com>
6558
6559 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6560 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6561
6c7861b3
JT
65622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6563
6564 * nbsd-tdep.c: Fix comment.
6565
ea5bc2a6
JT
65662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6567
6568 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6569 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6570 (nbsd-tdep.o): New dependency list.
6571 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6572 nbsd-tdep.h.
6573 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6574 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6575 * nbsd-tdep.c: New file.
6576 * nbsd-tdep.h: New file.
6577 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6578 nbsd-tdep.h.
6579 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6580 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6581 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6582 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6583
b28da865
JT
65842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6585
6586 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6587 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6588 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6589 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6590 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6591 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6592
4b8ff1fa
JT
65932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6594
6595 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6596 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6597 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6598 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6599 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6600 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6601 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6602
dfe6eb1f
JT
66032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6604
6605 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6606 fetch_elfcore_registers to...
6607 * i386nbsd-tdep.c: ...here.
6608 (i386nbsd_use_struct_convention): Rename to...
6609 (i386nbsd_aout_use_struct_convention): ...this.
6610 (i386nbsd_supply_reg): New function.
6611 (i386nbsd_fill_reg): New function.
6612 (fetch_core_registers): Use i386nbsd_supply_reg.
6613 (fetch_elfcore_registers): Likewise.
6614 (_initialize_i386nbsd_tdep): New function.
6615 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6616 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6617 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6618 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6619 (i386nbsd_aout_use_struct_convention): ...this.
6620
20cb8cda
JT
66212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6622
6623 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6624 (store_inferior_registers): Use shnbsd_fill_reg.
6625 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6626 sh_nbsd_supply_register): Collapse into...
6627 (shnbsd_supply_reg): ...this.
6628 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6629 (shnbsd_fill_reg): ...this.
6630 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6631 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6632 (fetch_core_registers): Use shnbsd_supply_reg.
6633 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6634 (sh_nbsd_core_fns): Rename to...
6635 (shnbsd_core_fns): ...this.
6636 (sh_nbsd_elfcore_fns): Rename to...
6637 (shnbsd_elfcore_fns): ...this.
6638 (sh_nbsd_init_abi): Rename to...
6639 (shnbsd_init_abi): ...this.
6640 (_initialize_sh_nbsd_tdep): Rename to...
6641 (_initialize_shnbsd_tdep): ...this.
6642 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6643 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6644 sh_nbsd_fill_register): Remove prototypes.
6645 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6646
e750d25e
JT
66472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6648
6649 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6650 (i387-nat.o): Delete dependency list.
6651 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6652 (x86-64-linux-nat.o): Likewise.
6653 * i387-nat.c: Delete file, moving contents to...
6654 * i387-tdep.c: ...here.
6655 * i387-nat.h: Rename...
6656 * i387-tdep.h: ...to this.
6657 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6658 * i386-linux-nat.c: Likewise.
6659 * i386bsd-nat.c: Likewise.
6660 * i386gnu-nat.c: Likewise.
6661 * i386nbsd-nat.c: Likewise.
6662 * i386v4-nat.c: Likewise.
6663 * x86-64-linux-nat.c: Likewise.
6664 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6665 * config/i386/go32.mh (NATDEPFILES): Likewise.
6666 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6667 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6668 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6669 * config/i386/linux.mh (NATDEPFILES): Likewise.
6670 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6671 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6672 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6673 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6674
1aee598a
JT
66752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6676
6677 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6678 (alphanbsd-nat.o): Remove dependency list.
6679 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6680 * alphanbsd-nat.c: Delete. Contents moved to...
6681 * alphanbsd-tdep.c: ...here.
6682 (_initialize_alphanbsd_tdep): Register core functions.
6683 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6684
12bcb0fe
JT
66852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6686
6687 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6688 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6689 (alphanbsd-nat.o): Likewise.
6690 (alphabsd-tdep.o): New dependency list.
6691 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6692 (fill_gregset): Use alphabsd_fill_reg.
6693 (supply_fpregset): Use alphabsd_supply_fpreg.
6694 (fill_fpregset): Use alphabsd_fill_fpreg.
6695 (fetch_inferior_registers): Use struct reg and struct fpreg
6696 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6697 and alphabsd_supply_fpreg.
6698 (store_inferior_registers): Use struct reg and struct fpreg
6699 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6700 and alphabsd_fill_fpreg.
6701 * alphabsd-tdep.c: New file.
6702 * alphabsd-tdep.h: New file.
6703 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6704 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6705 alphabsd_supply_fpreg.
6706 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6707 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6708
361d1df0
EC
67092002-05-11 Eric Christopher <echristo@redhat.com>
6710
6711 * mips-tdep.c (mips_double_register_type): Fix thinko.
6712 (mips_single_register_type): Ditto.
6713 * MAINTAINERS: Add self.
6714
92dd7cee
MK
67152002-05-11 Mark Kettenis <kettenis@gnu.org>
6716
6717 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6718 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6719 right thing on architectures with different endianness and/or
6720 integer sizes.
6721
e27da16d
JT
67222002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6723
6724 From Christian Limpach <chris@Pin.LU>
6725 * configure.in: Change sed expression which comments out
6726 NATDEPFILES to also comment out continuation lines.
6727 * configure: Regenerate.
6728
ddde02bd
EZ
67292002-05-10 Elena Zannoni <ezannoni@redhat.com>
6730
6731 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6732 big patch.
6733
1c922164
EZ
67342002-05-10 Elena Zannoni <ezannoni@redhat.com>
6735
6736 * sh-tdep.c: Include correct file.
6737
283150cd
EZ
67382002-05-10 Elena Zannoni <ezannoni@redhat.com>
6739
6740 New support for sh64-elf (sh5) target.
6741
6742 * configure.tgt: For sh64-elf target, default to sh-elf.
6743
6744 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6745 (struct gdbarch_tdep): Add new fields for new registers and ABI
6746 info.
361d1df0 6747
283150cd
EZ
6748 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6749 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6750 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6751 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6752 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6753 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6754 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6755 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6756 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6757 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6758 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6759 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6760 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6761 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6762 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6763 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6764 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6765 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6766 sign_extend, sh64_nofp_frame_init_saved_regs,
6767 sh64_init_extra_frame_info, sh64_get_saved_register,
6768 sh64_extract_struct_value_address, sh64_pop_frame,
6769 sh64_push_arguments, sh64_extract_return_value,
6770 sh64_store_return_value, sh64_show_media_regs,
6771 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6772 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6773 sh_sh64_register_virtual_type,
6774 sh_sh64_register_convert_to_virtual,
6775 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6776 sh64_register_read, sh64_pseudo_register_write,
6777 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6778 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6779 sh64_do_pseudo_register, sh_compact_do_registers_info,
6780 sh64_do_registers_info, sh_gdbarch_init): New functions.
6781
3117ed25
EZ
67822002-05-10 Elena Zannoni <ezannoni@redhat.com>
6783
6784 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6785
2654e6d4
DJ
67862002-05-10 Daniel Jacobowitz <drow@mvista.com>
6787
6788 * linespec.c (decode_line_1): Check for a double quote after
6789 a filename correctly.
6790
9ab3e532
JB
67912002-05-10 Jim Blandy <jimb@redhat.com>
6792
6793 Properly track the size of the current objfile's .debug_line section.
6794 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6795 (DWARF_LINE_SIZE): New macro.
6796 (dwarf2_build_psymtabs_hard): Record the line section's size in
6797 the partial symbol table.
6798 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6799 symbol table.
6800
126fa72d
PS
68012002-05-10 Petr Sorfa <petrs@caldera.com>
6802
6803 * ia64-tdep.c: Handle breakpoints on L instruction type
6804 in MLX instruction bundle by moving the breakpoint to
6805 the third slot (X instruction type) as L holds only data.
6806
1f077a3e
KB
68072002-05-10 Kevin Buettner <kevinb@redhat.com>
6808
6809 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6810 (process_one_symbol): Complain about discarding local symbols
6811 due to a misplaced N_LBRAC entry.
6812
8120c9d5 68132002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6814
6815 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6816 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6817 decrease the depth we are at, in the case of templates.
361d1df0 6818
67b2c998
DJ
68192002-05-09 Daniel Jacobowitz <drow@mvista.com>
6820
6821 * mips-tdep.c (mips_float_register_type): New function.
6822 (mips_double_register_type): New function.
6823 (mips_print_register): Use them.
6824 (do_fp_register_row): Likewise.
6825
fd326606
DJ
68262002-05-09 Daniel Jacobowitz <drow@mvista.com>
6827
6609d9af 6828 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6829 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6830 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6831
bef35864
MS
68322002-05-09 Michael Snyder <msnyder@redhat.com>
6833
6834 * remote-rdp.c (remote_rdp_can_run): Remove.
6835
c55a3f73
TT
68362002-05-09 Tom Tromey <tromey@redhat.com>
6837
6838 * jv-valprint.c (java_val_print): Handle `char' as a special case
6839 of TYPE_CODE_INT.
6840
b8d5e71d
MS
68412002-05-09 Michael Snyder <msnyder@redhat.com>
6842
6843 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6844 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6845 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6846 str r(0123),[sp,#nn].
361d1df0 6847 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6848 order-independent by placing it in a loop.
6849
e2cd42dd
MS
68502002-05-06 Michael Snyder <msnyder@redhat.com>
6851
6852 * stabsread.c (read_type): Add recognition for new attribute:
6853 "@V;" means that an array type is actually a vector.
6854 This is analogous to the vector flag that's been added to dwarf2.
6855
3ce1502b
MK
68562002-05-09 Mark Kettenis <kettenis@gnu.org>
6857
6858 * i386-tdep.h (i386_abi): New enum.
6859 (struct gdbarch_tdep): Replace os_ident member with abi.
6860 (i386_gdbarch_register_os_abi): New prototype.
6861 * i386-tdep.c (i386_abi_names): New array.
6862 (process_note_abi_tag_sections): Removed.
6863 (process_note_sections): New function.
6864 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6865 (struct i386_abi_handler): New struct.
6866 (i386_abi_handler_list): New variable.
6867 (i386_gdbarch_register_os_abi): New function.
6868 (i386_gdbarch_init): Adapt for the changes given above.
6869
084c156a
DJ
68702002-05-08 Daniel Jacobowitz <drow@mvista.com>
6871
6872 * gregset.h: Say "GNU/Linux".
6873
6599f021
EZ
68742002-05-08 Elena Zannoni <ezannoni@redhat.com>
6875
6876 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6877 (build_gdbtypes): Build builtin_type_v2_float.
6878 (_initialize_gdbtypes): Register new builtin type.
6879
40af4b0c
AC
68802002-05-08 Andrew Cagney <ac131313@redhat.com>
6881
6882 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6883 (clear_gdbarch_swap): New function.
6884 (initialize_non_multiarch): Call.
6885 (gdbarch_update_p): Before calling init(), swap out and clear the
6886 existing architecture.
6887 * gdbarch.c: Regenerate.
6888
4fe84f46
JT
68892002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6890
6891 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6892 alphanbsd-tdep.c.
6893
4015edd1
JT
68942002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6895
6896 * sh-nbsd-nat.c: Rename to...
6897 * shnbsd-nat.c: ...this.
6898 * sh-nbsd-tdep.c: Rename to...
6899 * shnbsd-tdep.c: ...this.
6900 * sh-nbsd-tdep.h: Rename to...
6901 * shnbsd-tdep.h: ...this.
6902 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6903 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6904
0e2bd219
RE
69052002-05-08 Richard Earnshaw <rearnsha@arm.com>
6906
6907 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6908 concatenation for command help messages.
6909
13a38d45
JT
69102002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6911
6912 * NEWS: Note new sh*-*-netbsdelf* configuration.
6913 * configure.host: Set gdb_host_cpu to sh for all sh*.
6914 (sh*-*-netbsdelf*): New host.
6915 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6916 (sh*-*-netbsdelf*): New target.
6917 * sh-nbsd-nat.c: New file.
6918 * sh-nbsd-tdep.c: New file.
6919 * sh-nbsd-tdep.h: New file.
6920 * config/sh/nbsd.mh: New file.
6921 * config/sh/nbsd.mt: New file.
6922 * config/sh/nm-nbsd.h: New file.
6923 * config/sh/tm-nbsd.h: New file.
6924
d658f924
JT
69252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * sh-tdep.c (sh_osabi_names): Declare.
6928 (process_note_abi_tag_sections): New function.
6929 (get_elfosabi): Ditto.
6930 (sh_gdbarch_register_os_abi): Ditto.
6931 (sh_dump_tdep): Ditto.
6932 _initialize_sh_tdep): Use gdbarch_register to register
6933 sh_gdbarch_init and sh_dump_tdep.
6934 * config/sh/tm-sh.h (sh_osabi): Declare.
6935 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6936
848cfffb
AC
69372002-05-07 Andrew Cagney <ac131313@redhat.com>
6938
6939 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6940 (thumb_scan_prologue): Ditto.
6941 (arm_find_callers_reg): Ditto.
6942 (arm_frame_chain): Ditto.
6943 (arm_init_extra_frame_info): Ditto.
6944 (arm_frame_saved_pc): Ditto.
6945 (arm_pop_frame): Ditto.
6946 (arm_push_return_address): New function.
6947 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6948 call_dummy_location, call_dummy_breakpoint_offset_p,
6949 call_dummy_breakpoint_offset, call_dummy_p,
6950 call_dummy_stack_adjust_p, call_dummy_words,
6951 sizeof_call_dummy_words, call_dummy_start_offset,
6952 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6953 call_dummy_address, push_return_address and push_dummy_frame for
6954 generic dummy frames.
6955
e7d717c0
JT
69562002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6957
6958 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6959 size computation for alloca.
6960 (sh_fp_frame_init_saved_regs): Likewise.
6961
7bbcf283
RE
69622002-05-07 Richard Earnshaw <rearnsha@arm.com>
6963
6964 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6965 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6966 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6967 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6968 * remote-rdp.c (remote_rdp_fetch_register): Use
6969 ARM_MAX_REGISTER_RAW_SIZE.
6970 (remote_rdp_store_register): Likewise.
6971
4657573b
ML
69722002-05-07 Michal Ludvig <mludvig@suse.cz>
6973
361d1df0 6974 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6975 added default labels to switch {} statements.
6976 * x86-64-tdep.c: Ditto.
6977 * x86-64-linux-nat.c: Ditto.
6978
010f3b2f
JT
69792002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6980
6981 * solib.h: Protect against multiple inclusion.
6982
debd256d
JB
69832002-05-06 Jim Blandy <jimb@redhat.com>
6984
9ab3e532
JB
6985 Add first preprocessor macro-expansion files.
6986 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6987 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6988 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6989 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6990 (COMMON_OBS): Add macrotab.o, macroexp.o.
6991 (macroexp.o, macrotab.o): New rules.
6992
debd256d
JB
6993 Separate the job of reading the line number info statement program
6994 header (...expialidocious) out into its own function.
6995 * dwarf2read.c (struct line_head, struct filenames, struct
6996 directories): Replace with...
6997 (struct line_header): New structure, containing the full
6998 contents of the statement program header, including the
6999 include directory and file name tables.
7000 (read_file_scope): If we have line number info, instead of just
7001 calling dwarf_decode_lines to do all the work, call
7002 dwarf_decode_line_header first to get a `struct line_header'
7003 containing the data in the statement program header, and then
7004 pass that to dwarf_decode_lines, which will pick up where that
7005 left off. Be sure to clean up the `struct line_header' object.
7006 (dwarf_decode_line_header, free_line_header, add_include_dir,
7007 add_file_name): New functions.
7008 (dwarf_decode_lines): Move all the code to read the statement
7009 program header into dwarf_decode_line_header. Take the line
7010 header it built as the first argument, instead of the offset to
7011 the compilation unit's line number info. Use the new `struct
7012 line_header' type instead of the old structures. No need to do
7013 cleanups here now, since we don't allocate anything.
7014 (dwarf2_statement_list_fits_in_line_number_section,
7015 dwarf2_line_header_too_long): New complaints.
7016
ac3aafc7
EZ
70172002-05-06 Elena Zannoni <ezannoni@redhat.com>
7018
7019 * gdbtypes.c (init_vector_type): New function.
7020 (build_builtin_type_vec128): Simplify the representation of SIMD
7021 registers.
7022 (build_gdbtypes): Initialize new builtin vector types.
7023 (_initialize_gdbtypes): Register new vector types with gdbarch.
7024 (builtin_type_v4_float, builtin_type_v4_int32,
7025 builtin_type_v8_int16, builtin_type_v16_int8,
7026 builtin_type_v2_int32, builtin_type_v4_int16,
7027 builtin_type_v8_int8): New (renamed) SIMD types.
7028
13e49980
MK
70292002-05-06 Mark Kettenis <kettenis@gnu.org>
7030
7031 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7032 (i387_fill_fxsave): Likewise.
7033
997b20b8
AO
70342002-05-05 Alexandre Oliva <aoliva@redhat.com>
7035
7036 * alpha-tdep.c (alpha_extract_return_value): Don't use
7037 non-constant array size in prototype.
7038
535c96ce
AC
70392002-05-04 Andrew Cagney <ac131313@redhat.com>
7040
7041 From Brian Taylor <briant at model dot com>:
7042 * ui-out.c (ui_out_field_core_addr): Use the function
7043 longest_local_hex_string_custom'to format addresses > 32 bits
7044 wide.
7045
7046 * ui-out.c (ui_out_field_core_addr): Update comment.
7047
bedfa57b
AC
70482002-05-04 Andrew Cagney <ac131313@redhat.com>
7049
7050 * stack.c (select_and_print_frame): Make static. Delete the
7051 parameter `level'.
7052 (func_command): Update call.
7053 (select_frame_command): Delete code computing the frame level.
7054 * frame.h (select_and_print_frame): Delete declaration.
7055
f621c63e
AC
70562002-05-04 Andrew Cagney <ac131313@redhat.com>
7057
7058 * sparc-tdep.c (sparc_get_saved_register): Comment why
7059 get_prev_frame call is safe.
7060
0f7d239c
AC
70612002-05-04 Andrew Cagney <ac131313@redhat.com>
7062
7063 * frame.h (select_frame): Delete level parameter.
7064 * stack.c (select_frame): Update. Use frame_relative_level to
7065 obtain the frame's level.
7066 (select_and_print_frame): Update call.
7067 (select_frame_command): Ditto.
7068 (up_silently_base): Ditto.
7069 (down_silently_base): Ditto.
7070 * ocd.c (ocd_start_remote): Ditto.
7071 * remote-rdp.c (remote_rdp_open): Ditto.
7072 * remote-mips.c (mips_initialize): Ditto.
7073 (common_open): Ditto.
7074 * remote-e7000.c (e7000_start_remote): Ditto.
7075 * m3-nat.c (select_thread): Ditto.
7076 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7077 (child_get_current_exception_event): Ditto.
7078 * varobj.c (varobj_create): Ditto.
7079 (varobj_update): Ditto.
7080 (c_value_of_root): Ditto.
7081 * tracepoint.c (finish_tfind_command): Ditto.
7082 * corelow.c (core_open): Ditto.
7083 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7084 * thread.c (info_threads_command): Ditto.
7085 (switch_to_thread): Ditto.
7086 * infrun.c (normal_stop): Ditto.
7087 (restore_selected_frame): Ditto.
7088 (restore_inferior_status): Ditto.
7089 * breakpoint.c (insert_breakpoints): Ditto.
7090 (watchpoint_check): Ditto.
7091 (bpstat_stop_status): Ditto.
7092 (do_enable_breakpoint): Ditto.
7093 * blockframe.c (flush_cached_frames): Ditto.
7094 (reinit_frame_cache): Ditto.
7095
71d6c7b1
AC
70962002-05-04 Andrew Cagney <ac131313@redhat.com>
7097
7098 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7099 maintainer.
7100
cda6c68a
JB
71012002-05-04 Jim Blandy <jimb@redhat.com>
7102
7103 * gdbtypes.c (replace_type): Doc fix.
7104
5c1c87f0
AC
71052002-05-04 Andrew Cagney <ac131313@redhat.com>
7106
7107 * valprint.c (strcat_longest): Delete commented out function.
7108 Update copyright.
7109
cd9bfe15
AC
71102002-05-04 Andrew Cagney <ac131313@redhat.com>
7111
7112 * MAINTAINERS: Mark a29k as deleted.
7113 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7114 Move new configurations to the top.
7115 * configure.tgt: Remove a29k.
7116 * config/a29k/tm-vx29k.h: Delete.
7117 * config/a29k/vx29k.mt: Delete.
7118 * config/a29k/tm-a29k.h: Delete.
7119 * config/a29k/a29k-udi.mt: Delete.
7120 * config/a29k/a29k.mt: Delete.
7121 * a29k-tdep.c: Delete.
7122 * remote-udi.c: Delete.
7123 * remote-mm.c: Delete.
7124 * remote-eb.c: Delete.
7125 * remote-adapt.c: Delete.
7126 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
7127 * config/s390/s390x.mt: Ditto.
7128 * config/s390/s390.mt: Ditto.
7129 * config/sparc/sparclynx.mh: Ditto.
7130 * config/sparc/linux.mh: Ditto.
7131 * config/pa/hppaosf.mh: Ditto.
7132 * config/pa/hppabsd.mh: Ditto.
7133 * config/ns32k/nbsd.mt: Ditto.
7134 * config/mips/vr5000.mt: Ditto.
7135 * config/m68k/sun3os4.mh: Ditto.
7136 * config/m68k/nbsd.mt: Ditto.
7137 * config/m68k/m68klynx.mh: Ditto.
7138 * config/m32r/m32r.mt: Ditto.
7139 * config/i386/x86-64linux.mt: Ditto.
7140 * config/i386/nbsdelf.mt: Ditto.
7141 * config/i386/nbsd.mt: Ditto.
7142 * config/i386/i386lynx.mh: Ditto.
7143
bf0c5130
AC
71442002-05-04 Andrew Cagney <ac131313@redhat.com>
7145
7146 * target.c (debug_print_register): New function. Handle oversize
7147 registers.
7148 (debug_to_fetch_registers): Call.
7149 (debug_to_store_registers): Call.
7150
2ae1c2d2
JB
71512002-05-03 Jim Blandy <jimb@redhat.com>
7152
13a393b0
JB
7153 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7154 (read_type): Doc fix.
7155 * gdbtypes.c (replace_type): Doc fix.
7156
2ae1c2d2
JB
7157 * stabsread.c (multiply_defined_struct): New complaint.
7158 (read_struct_type): If the type we were passed isn't empty, or
7159 incomplete, don't read the new struct type into it; complain,
7160 and return the original type unchanged. Take a new `type_code'
7161 argument, which is the type code for the new type.
7162 (read_type): Rather than storing the type's type code here, pass
7163 it as an argument to read_struct_type, and let that take care of
7164 storing it. That way, we don't overwrite the original type code,
7165 so read_struct_type can use it to decide whether we're overwriting
7166 something we shouldn't.
7167 (complain_about_struct_wipeout): New function.
7168
8de9bdc4
AC
71692002-05-03 Andrew Cagney <ac131313@redhat.com>
7170
7171 * gdbarch.sh: Assert that gdbarch is non-NULL.
7172 * gdbarch.c: Regenerate.
7173
f773fdbb
JM
71742002-05-03 Jason Merrill <jason@redhat.com>
7175
7176 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7177 and return NULL.
7178
0e04a514
ML
71792002-05-03 Michal Ludvig <mludvig@suse.cz>
7180
7181 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7182 (x86_64_dwarf2gdb_regno_map_length),
7183 (x86_64_dwarf2_reg_to_regnum): Added.
7184 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7185 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7186 (_initialize_x86_64_tdep): Synced with the change above.
7187 (x86_64_skip_prologue): Reformulated message.
7188
065432a8
PM
71892002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7190
7191 * f-exp.y: Also use new prev_lexptr variable
7192 to improve error reporting. Based on Michael Snyder
7193 2002-04-24 dated patch to c-exp.y.
7194 * jv-exp.y: Likewise.
7195 * m2-exp.y: Likewise.
7196
a3162708
EZ
71972002-05-02 Elena Zannoni <ezannoni@redhat.com>
7198
7199 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7200 we are dealing with vectors.
7201
03620c38
PM
72022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7203
7204 * config/m68k/tm-nbsd.h: Obvious fix,
7205 correct machine name.
7206
6604db2e
PM
72072002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7208
7209 * p-typeprint.c (pascal_type_print_base): Add support
7210 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7211
0906b739
PM
72122002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7213
7214 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7215 for fondamental pascal 'char' type.
7216
e2625b33
PM
72172002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7218
7219 * p-lang.h (is_pascal_string_type): Declaration changed,
7220 new sixth argument of type char ** added.
361d1df0 7221 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7222 changed. Args length_pos, length_size, string_pos, char_size
7223 can now be NULL. New argument arrayname set to the field
7224 name of the char array. Return value set to char array
7225 field index plus one.
361d1df0 7226 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7227 is_pascal_string_type function.
7228
cf17c188
AC
72292002-05-02 Andrew Cagney <cagney@redhat.com>
7230
7231 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7232 <cagney@redhat.com> change.
7233 * gdbarch.c: Regenerate.
7234
52bca491
AC
72352002-05-02 Andrew Cagney <cagney@redhat.com>
7236
7237 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7238 before probing for a new one. Detect errorenous gdbarch_init
7239 functions.
7240 * gdbarch.c: Regenerate.
7241
d5e72505
AC
72422002-05-01 Andrew Cagney <cagney@redhat.com>
7243
7244 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7245 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7246 * config/v850/tm-v850.h: Ditto. Update copyright.
7247
af566d9f
AC
72482002-04-30 Andrew Cagney <ac131313@redhat.com>
7249
7250 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7251 current_gdbarch.
7252
880d85fa
MS
72532002-04-30 Michael Snyder <msnyder@redhat.com>
7254
94c30b78
MS
7255 * arm-tdep.c: Whitespace clean-ups.
7256 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7257 should have been removed as part of 4/24 change.
7258
6f5987a6
KB
72592002-04-30 Kevin Buettner <kevinb@redhat.com>
7260
7261 * rs6000-tdep.c: Added comment describing how fpscr register
7262 numbers were chosen.
7263
1a113c93
MS
72642002-04-30 Michael Snyder <msnyder@redhat.com>
7265
7266 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7267
9a6f53fe
EZ
72682002-04-29 Elena Zannoni <ezannoni@redhat.com>
7269
7270 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7271 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7272 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7273
11ed25ac
KB
72742002-04-29 Kevin Buettner <kevinb@redhat.com>
7275
7276 From Louis Hamilton <hamilton@redhat.com>:
7277 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7278 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7279 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7280 not bfd-private xcoff data, to determine wordsize.
7281 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7282
ae232405
AC
72832002-04-29 Andrew Cagney <ac131313@redhat.com>
7284
7285 GDB 5.2 released from 5.2 branch.
7286
91fd20f7
ML
72872002-04-29 Michal Ludvig <mludvig@suse.cz>
7288
7289 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7290 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7291 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7292
2dc5091b
EZ
72932002-04-29 Elena Zannoni <ezannoni@redhat.com>
7294
7295 * rs6000-tdep.c (rs6000_extract_return_value,
7296 rs6000_store_return_value): Handle returning vectors.
7297 (rs6000_gdbarch_init): Use
7298 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7299 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7300 New function.
7301 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7302 vectors.
7303 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7304 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7305
2b9848d8
PM
73062002-04-24 Pierre Muller <ics.u-strasbg.fr>
7307
7308 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7309 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7310 with fprintf_unfiltered (gdb_stderr,...).
7311
f8d17dc5
PM
73122002-04-24 Pierre Muller <ics.u-strasbg.fr>
7313
7314 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7315 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7316 Replace fprintf (stderr,...
7317 with fprintf_unfiltered (gdb_stderr,....
7318 * remote-es.c: Likewise.
7319 * remote-os9k.c: Likewise.
7320 * remote-st.c: Likewise.
7321
2f2f1ad1
AS
73222002-04-28 Andreas Schwab <schwab@suse.de>
7323
7324 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7325 linux-proc.o and gcore.o.
7326
b6779aa2
AC
73272002-04-26 Michal Ludvig <mludvig@suse.cz>
7328
7329 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7330 code without frame pointers.
7331
7e57f5f4
AC
73322002-04-26 Andrew Cagney <ac131313@redhat.com>
7333
7334 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7335 ON_STACK is needed.
7336
2ceb85d0
BE
73372002-04-26 Ben Elliston <bje@redhat.com>
7338
7339 * target.c (do_xfer_memory): Correct reference to the new option
7340 "trust-readonly-sections".
7341
f5f8a009
EZ
73422002-04-26 Elena Zannoni <ezannoni@redhat.com>
7343
7344 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7345 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7346 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7347 vectors.
7348 (read_array_type): Record the fact that this array type is really a
7349 vector (i.e. are passed in by value).
7350
5868c862
JT
73512002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7352
7353 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7354 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7355 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7356 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7357 * alpha-linux-tdep.c: Include frame.h.
7358 (alpha_linux_sigcontext_addr): New function.
7359 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7360 alpha_linux_sigcontext_addr.
7361 * alpha-osf1-tdep.c: Include gdbcore.h.
7362 (alpha_osf1_sigcontext_addr): New function.
7363 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7364 alpha_osf1_sigcontext_addr.
7365 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7366 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7367
bfb01f37
AC
73682002-04-26 Andrew Cagney <ac131313@redhat.com>
7369
361d1df0 7370 * stack.c (selected_frame_level):
bfb01f37
AC
7371 (select_frame): Do not set selected_frame_level.
7372 * frame.h (selected_frame_level): Delete declaration.
7373
15813d3f
AC
73742002-04-26 Andrew Cagney <ac131313@redhat.com>
7375
7376 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7377 convert_from_func_ptr-addr when AIX / PowerOpen.
7378
6096c27a
AC
73792002-04-25 Andrew Cagney <ac131313@redhat.com>
7380
7381 * valops.c (hand_function_call): Call
7382 generic_save_call_dummy_addr.
7383 * frame.h (generic_save_call_dummy_addr): Declare.
7384 * blockframe.c (struct dummy_frame): Add fields call_lo and
7385 call_hi.
7386 (generic_find_dummy_frame): Check for PC in range call_lo to
7387 call_hi instead of entry_point_address.
7388 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7389 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7390 (generic_save_call_dummy_addr): New function.
7391
f510d44e
DM
73922002-04-24 David S. Miller <davem@redhat.com>
7393
7394 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7395 sparc_skip_prologue.
7396 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7397 information to find prologue when possible.
7398 (sparc_prologue_frameless_p): Call examine_prologue directly.
7399 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7400 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7401 second argument.
7402 (SKIP_PROLOGUE): Likewise.
7403
15d72a92
JT
74042002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7405
7406 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7407 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7408 indicate that the condition it was testing is always true.
7409 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7410 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7411 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7412
accc6d1f
JT
74132002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7414
7415 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7416 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7417 tdep->jb_pc and tdep->jb_elt_size.
7418 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7419 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7420 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7421 * alpha-nat.c (get_longjmp_target): Remove.
7422 (JB_ELEMENT_SIZE): Ditto.
7423 (JB_PC): Ditto.
7424 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7425 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7426 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7427 to alpha_get_longjmp_target.
7428 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7429 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7430 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7431
1bfdc549
AC
74322002-04-25 Andrew Cagney <ac131313@redhat.com>
7433
7434 * README: Update to GDB 5.2.
7435
1bd316f0
AC
74362002-04-25 Andrew Cagney <ac131313@redhat.com>
7437
7438 * gdbarch.sh (LC_ALL): Set to `c'.
7439
2e5ff58c
TR
74402002-04-25 Theodore A. Roth <troth@verinet.com>
7441
7442 * avr-tdep.c: Ran through gdb_indent.sh.
7443
e33ce519
TR
74442002-04-25 Theodore A. Roth <troth@verinet.com>
7445
7446 * MAINTAINERS: Add myself as AVR maintainer.
7447 * NEWS: Note new target avr.
7448
8818c391
TR
74492002-04-25 Theodore A. Roth <troth@verinet.com>
7450
7451 * Makefile.in: Add support for AVR target.
7452 * configure.tgt: Add support for AVR target.
7453 * avr-tdep.c: New file
7454 * config/avr/avr.mt: New file.
7455
79509c2d
TR
74562002-04-25 Theodore A. Roth <troth@verinet.com>
7457
7458 * MAINTAINERS: Add myself to write-after-approval.
7459
dac8068e
PM
74602002-04-24 Pierre Muller <ics.u-strasbg.fr>
7461
7462 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7463 with fprintf_unfiltered (gdb_stderr,....
7464
25bf3106
PM
74652002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7466
7467 Fix PR gdb/508.
7468 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7469
24467a86
PM
74702002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7471
7472 * p-exp.y: Also use new prev_lexptr variable
7473 to improve error reporting. Based on Michael Snyder
7474 2002-04-24 dated patch to c-exp.y.
7475
95b80706
JT
74762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7479 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7480 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7481 to 0.
7482 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7483 and struct value.
7484 (FUNCTION_START_OFFSET): Remove.
7485 (BREAKPOINT): Ditto.
7486
e90cc612
JT
74872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7490 * NEWS: Ditto.
7491
6c72f9f9
JT
74922002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7493
7494 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7495 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7496 alpha_linux_pc_in_sigtramp.
7497 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7498 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7499 alpha_osf1_pc_in_sigtramp.
7500 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7501 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7502 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7503 alphafbsd_pc_in_sigtramp.
7504 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7505 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7506 alphanbsd_pc_in_sigtramp.
7507 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7508 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7509
5e4f3379
JT
75102002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7513
da8ca43d
JT
75142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7515
7516 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7517 alphanbsd-tdep.c.
7518 (alphanbsd-nat.o): New dependency list.
7519 (alphanbsd-tdep.o): Ditto.
7520 * NEWS: Note new native NetBSD/alpha configuration.
7521 * alphanbsd-nat.c: New file.
7522 * alphanbsd-tdep.c: Ditto.
7523 * configure.host (alpha*-*-netbsd*): New host.
7524 * configure.tgt (alpha*-*-netbsd*): New target.
7525 * config/alpha/nbsd.mh: New file.
7526 * config/alpha/nbsd.mt: Ditto.
7527 * config/alpha/nm-nbsd.h: Ditto.
7528 * config/alpha/tm-nbsd.h: Ditto.
7529
36a6271d
JT
75302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7531
7532 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7533 (alpha-osf1-tdep.o): New dependency list.
7534 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7535 and skip_sigtramp_frame members.
7536 * alpha-linux-tdep.c: Include gdbcore.h.
7537 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7538 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7539 * alpha-osf1-tdep.c: New file.
7540 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7541 alpha-osf1-dep.c.
7542 (alpha_frame_past_sigtramp_frame): New function.
7543 (alpha_dynamic_sigtramp_offset): Ditto.
7544 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7545 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7546 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7547 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7548 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7549 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7550 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7551 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7552 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7553 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7554 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7555 to find_solib_trampoline_target.
7556 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7557 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7558 (SKIP_TRAMPOLINE_CODE): Remove.
7559 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7560 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7561 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7562 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7563 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7564 (PROC_SIGTRAMP_MAGIC): Ditto.
7565 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7566 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7567 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7568 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7569 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7570
2f4bc57b
JT
75712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7572
7573 * NEWS: Note that Alpha targets are now multi-arch.
7574
665132f9
MS
75752002-04-24 Michael Snyder <msnyder@redhat.com>
7576
7577 * parser-defs.h (prev_lexptr): New external variable.
7578 * parse.c (parse_exp_1): Set prev_lexptr to null before
7579 calling the language-specific parser.
7580 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7581 (yyerror): Use prev_lexptr in error reporting.
7582
32872fa7
DJ
75832002-04-24 Daniel Jacobowitz <drow@mvista.com>
7584
7585 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7586 * gregset.h: If FILL_FPXREGSET is defined, provide
7587 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7588 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7589 is defined, call fill_fpxregset.
7590
57e76fac
MS
75912002-04-24 Roland McGrath <roland@frob.com>
7592
7593 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7594 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7595 (supply_gregset, supply_fpregset): New functions.
7596
7597 * gnu-nat.c (gnu_find_memory_regions): New function.
7598 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7599 (gnu_xfer_memory): Add a cast.
7600
f43845b3
MS
76012002-04-24 Michael Snyder <msnyder@redhat.com>
7602
361d1df0 7603 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7604 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7605 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7606 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7607 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7608 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7609
a0abec03
AC
7610Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7611
7612 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7613 NUM_PSEUDO_REGS can be used.
7614
d7bd68ca
AC
76152002-04-24 Andrew Cagney <ac131313@redhat.com>
7616
7617 * arch-utils.h: Update copyright.
7618
7619 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7620 * gdbarch.h, gdbarch.c: Re-generate.
7621
7622 * inferior.h (IN_SIGTRAMP): Delete definition.
7623 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7624 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7625
7626 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7627 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7628 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7629 (find_proc_framesize): Ditto.
7630 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7631 (alpha_init_extra_frame_info): Ditto.
7632 * infrun.c (handle_inferior_event): Ditto.
7633 (handle_inferior_event): Ditto.
7634 (check_sigtramp2): Ditto.
7635 * blockframe.c (create_new_frame): Ditto.
7636 (get_prev_frame): Ditto.
7637 * ppc-linux-tdep.c: Update comments.
7638 * i386-linux-tdep.c: Update comments.
7639 * breakpoint.c (bpstat_what): Update comment.
7640
4867e41e
DM
76412002-04-24 David S. Miller <davem@redhat.com>
7642
21d83aa5
DM
7643 * i960-tdep.c (register_in_window_p): New function.
7644 (i960_find_saved_register): Use it instead of
7645 REGISTER_IN_WINDOW_P.
7646 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7647
4867e41e
DM
7648 * symtab.h (find_stab_function_addr): Kill extern.
7649 * minsyms.c (find_stab_function_addr): Remove from here...
7650 * dbxread.c: ... to here, and mark it static.
7651
69cdf6a2
DM
76522002-04-20 David S. Miller <davem@redhat.com>
7653
7654 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7655 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7656
5a595886
DM
76572002-04-21 David S. Miller <davem@redhat.com>
7658
7659 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7660 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7661 (vx_write_register): Likewise.
7662
1da1a192
JB
76632002-04-23 J. Brobecker <brobecker@gnat.com>
7664
7665 * source.c (is_regular_file): New function.
7666 (openp): Check wether file to open is a regular file
7667 to avoid opening directories.
7668
baa6f10b
JT
76692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7670
7671 * findvar.c (extract_signed_integer): Cast printf argument
7672 to suppress format warning.
7673 (extract_unsigned_integer): Likewise.
7674 * infcmd.c (registers_info): Likewise.
7675 * top.c (get_prompt_1): Likewise.
7676 * valops.c (value_assign): Likewise.
7677 * valprint.c (print_decimal): Likewise.
7678
b2c4da81
L
76792002-04-22 H.J. Lu (hjl@gnu.org)
7680
7681 * c-exp.y (typebase): Support
361d1df0 7682
b2c4da81
L
7683 [long|long long|short] [signed|unsigned] [int|]
7684
7685 and
7686
7687 signed [long|long long|short] int
7688
f267bd6a
JT
76892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7690
7691 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7692 and vax-tdep.h.
7693 * vax-tdep.h: New file.
7694 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7695 Make several routines static.
7696 (vax_get_saved_register): New function.
7697 (vax_gdbarch_init): New function.
7698 (_initialize_vax_tdep): Register vax_gdbarch_init.
7699 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7700 Remove macros now under the control of gdbarch.
7701
da3c6d4a
MS
77022002-04-22 Michael Snyder <msnyder@redhat.com>
7703
11d3b27d
MS
7704 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7705 Some whitespace and coding standards tweaks.
da3c6d4a 7706
a33f7558
JT
77072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * vax-tdep.c: Include regcache.h.
7710 (vax_call_dummy_words): New.
7711 (sizeof_vax_call_dummy_words): New.
7712 (vax_fix_call_dummy): New function.
7713 (vax_saved_pc_after_call): Ditto.
7714 * config/vax/tm-vax.h: Don't include regcache.h.
7715 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7716 (CALL_DUMMY): Remove.
7717 (CALL_DUMMY_WORDS): Define.
7718 (SIZEOF_CALL_DUMMY_WORDS): Define.
7719 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7720
47a73475
MS
77212002-04-18 Michael Snyder <msnyder@redhat.com>
7722
7723 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7724
52efde73
JT
77252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7726
7727 * vax-tdep.c (vax_frame_chain): New function.
7728 (vax_push_dummy_frame): Ditto.
7729 (vax_pop_frame): Ditto.
7730 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7731 (FRAMELESS_FUNCTION_INVOCATION): Use
7732 generic_frameless_function_invocation_not.
7733 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7734 (POP_FRAME): Use vax_pop_frame.
7735
ea74468c
JT
77362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7737
7738 * vax-tdep.c (vax_store_struct_return): New function.
7739 (vax_extract_return_value): Ditto.
7740 (vax_store_return_value): Ditto.
7741 (vax_extract_struct_value_address): Ditto.
7742 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7743 vax_store_struct_return.
7744 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7745 (STORE_RETURN_VALUE): Use vax_store_return_value.
7746 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7747
5516aa92
JT
77482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7749
7750 * vax-tdep.c (vax_frame_saved_pc): New function.
7751 (vax_frame_args_address_correct): Ditto.
7752 (vax_frame_args_address): Ditto.
7753 (vax_frame_locals_address): Ditto.
7754 (vax_frame_num_args): Move code to be in proximity to
7755 other frame-related functions.
7756 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7757 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7758 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7759 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7760 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7761
36af0b35
L
77622002-04-22 H.J. Lu (hjl@gnu.org)
7763
7764 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7765 includedir.
7766
ab62c900
JT
77672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7768
7769 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7770 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7771 (FRAME_INIT_SAVED_REGS): New macro.
7772
7232b100
JT
77732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7774
7775 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7776
b70d2aee
JT
77772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7778
7779 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7780 where needed.
7781 (fetch_osf_core_registers): Likewise.
7782 (supply_gregset): Likewise.
7783
a0e8a2d1 77842002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7785
a0e8a2d1
JB
7786 * symfile.h (get_section_index): Define.
7787 * symfile.c (get_section_index): New function.
7788 * mdebugread.c (SC_IS_SBSS): New macro.
7789 (SC_IS_BSS): Return true for the scBss storage class only, as
7790 the scSBss storage class refers to the .sbss section.
7791 (parse_partial_symbols): Discard the symbols which associated
7792 section does not exist.
7793 Make sure to use the .sbss section index for symbols which
7794 storage class is scBss, rather than using the .bss section index.
7795
51eb8b08
JT
77962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7797
7798 * vax-tdep.c: Update copyright years.
7799 (vax_register_name): New function.
7800 (vax_register_byte): Ditto.
7801 (vax_register_raw_size): Ditto.
7802 (vax_register_virtual_size): Ditto.
7803 (vax_register_virtual_type): Ditto.
7804 * config/vax/tm-vax.h: Update copyright years.
7805 (REGISTER_NAMES): Remove.
7806 (REGISTER_NAME): Define.
7807 (REGISTER_BYTE): Use vax_register_byte.
7808 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7809 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7810 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7811
6cc1c0a8
AC
78122002-04-21 Andrew Cagney <ac131313@redhat.com>
7813
7814 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7815 declaration
7816 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7817
9319a2fe
DM
78182002-04-21 David S. Miller <davem@redhat.com>
7819
7820 * arch-utils.c (generic_prologue_frameless_p): Kill
7821 SKIP_PROLOGUE_FRAMELESS_P code.
7822 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7823 references.
7824 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7825 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7826 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7827 references.
7828 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7829 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7830 (sparc_gdbarch_init): Pass it to
7831 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7832
e9ed6d01
JT
78332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7834
7835 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7836 (alphabsd-nat.o): New dependency list.
7837
36012033
JT
78382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7839
7840 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7841 alphafbsd-tdep.c.
7842 (alpha-linux-tdep.o): New dependency list.
7843 (alphafbsd-tdep.o): Likewise.
7844
3379287a
JT
78452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7846
7847 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7848 to here...
7849 * alpha-tdep.c: ...from here.
7850 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7851
4bcbd6cb
JT
78522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7853
7854 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7855 prototype from here...
7856 * alpha-tdep.h: ...to here.
7857
b31da25e
AC
78582002-04-21 Andrew Cagney <ac131313@redhat.com>
7859
7860 * frame.h (selected_frame_level): Document as deprecated.
7861 (frame_relative_level): Declare.
7862 * stack.c (frame_relative_level): New function.
7863 (selected_frame_level): Document as deprecated.
7864 (select_frame): Do not set the selected_frame_level.
7865
7866 * stack.c (frame_info, record_selected_frame): Update.
7867 (frame_command, current_frame_command): Update.
7868 (up_silently_base, up_command, down_silently_base): Update.
7869 (down_command): Update.
7870 * inflow.c (kill_command): Update.
7871 * tracepoint.c (finish_tfind_command): Update.
7872 * corelow.c (core_open): Update.
7873 * thread.c (info_threads_command): Update.
7874 (do_captured_thread_select): Update.
7875 * infcmd.c (finish_command): Update.
7876 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7877
9c1d6fe5
JT
78782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7879
7880 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7881
ab89facf
AC
78822002-04-21 Andrew Cagney <ac131313@redhat.com>
7883
7884 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7885 type const.
7886
82a4efa1
JT
78872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7888
7889 * alphafbsd-tdep.c: Update copyright years. Include
7890 alpha-tdep.h.
7891 (alphafbsd_use_struct_convention): Make static.
7892 (alphafbsd_init_abi): New function.
7893 (_initialize_alphafbsd_tdep): New function.
7894 * config/alpha/tm-fbsd.h: Update copyright years.
7895 (USE_STRUCT_CONVENTION): Remove.
7896
44dffaac
JT
78972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7898
7899 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7900 an Alpha ABI variant.
7901 (alpha_abi_handler_list): Declare.
7902 (alpha_gdbarch_register_os_abi): New function.
7903 (alpha_gdbarch_init): Give registered ABI variant handlers a
7904 chance to tweak the gdbarch once we have set up defaults.
7905 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7906
65585be4
JT
79072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7908
7909 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7910 to standard_coerce_float_to_double.
7911 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7912
d9b023cc
JT
79132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7914
7915 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7916 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7917 from gdbarch_tdep rather than a constant.
7918 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7919 the default text address for all Alpha Unix ABIs.
7920 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7921 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7922
dc129d82
JT
79232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7924
7925 * alpha-tdep.h: New file. Includes several Alpha target constants
7926 taken from...
7927 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7928 let gdbarch deal with.
7929 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7930 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7931 to dependency list.
7932 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7933 Alpha target register names.
7934 * alphabsd-nat.c: Likewise.
7935 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7936 Alpha target register names. Make serveral routines static.
7937 (alpha_get_saved_register): New function.
7938 (alpha_abi_names): New.
7939 (process_note_abi_tag_sections): New function.
7940 (get_elfosabi): New function.
7941 (alpha_gdbarch_init): New function.
7942 (alpha_dump_tdep): New function.
7943 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7944
d49d1e0a
AC
79452002-04-21 Andrew Cagney <ac131313@redhat.com>
7946
7947 * frame.c (find_saved_register): Delete #ifdef
7948 HAVE_REGISTER_WINDOWS code.
7949 * config/sparc/tm-sparc.h: Update comments.
7950 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7951
92e8c9ed
AC
79522002-04-21 Andrew Cagney <ac131313@redhat.com>
7953
7954 * i960-tdep.c (i960_find_saved_register): New function.
7955 (i960_get_saved_register): New function.
7956 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7957 (i960_get_saved_register): Declare.
7958 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7959
e1925118
DM
79602002-04-20 David S. Miller <davem@redhat.com>
7961
7962 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7963
29673b29
AC
79642002-04-20 Andrew Cagney <ac131313@redhat.com>
7965
7966 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7967 instead of NUM_PSEUDO_REGS.
7968
6c86dcd5
DM
79692002-04-20 David S. Miller <davem@redhat.com>
7970
7971 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7972 GDB_MULTI_ARCH_PARTIAL
7973 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7974 define, let tm-sp64.h do it.
7975
aa40ec90
JT
79762002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7977
7978 * frame.c (find_saved_register): Avoid a NULL pointer
7979 dereference and actually walk the frame list.
7980
0f79675b
AC
79812002-04-20 Andrew Cagney <ac131313@redhat.com>
7982
7983 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7984 sorted in most most-recent-used order. Document.
7985 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7986
f91305dd 79872002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7988
7989 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7990 instead of ->prev.
7991 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7992 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7993 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7994 instead of ->prev.
7995
73d322b1
EZ
79962002-04-19 Elena Zannoni <ezannoni@redhat.com>
7997
7998 Fix PR gdb/471.
7999 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8000 (build_builtin_type_vec128): Ditto.
8001 (append_composite_type_field): Fix calculation of type length in
8002 union case.
8003
ccd9a834
EZ
80042002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8005
8006 * config/djgpp/README: Update.
8007
8008 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8009 compiler warnings.
8010
a57f9e49
JT
80112002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8012
8013 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8014 (alpha_setup_arbitrary_frame): ...to this.
8015 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8016 for alpha_setup_arbitrary_frame.
8017
f4f9705a
AC
80182002-04-18 Andrew Cagney <cagney@redhat.com>
8019
8020 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8021 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 8022
f4f9705a
AC
8023 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8024 * target.h (memory_breakpoint_from_pc): Update declaration.
8025 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8026
8027 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8028 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8029 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8030 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8031 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8032 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8033 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8034 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8035 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8036 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8037 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8038 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8039
8040 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8041 const pointer.
8042 * monitor.c (monitor_insert_breakpoint): Ditto.
8043 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8044
8045 * config/mcore/tm-mcore.h: Update copyright.
8046 * mem-break.c: Ditto.
8047 * xstormy16-tdep.c: Ditto.
8048
29f319b8
PM
80492002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8050
8051 * p-exp.y: Add precedence rule for '^' token.
8052 This removes the shift/reduce conflicts.
8053 Remove the comment concerning these shift/reduce conflicts.
8054
ebeac11a
EZ
80552002-04-18 Elena Zannoni <ezannoni@redhat.com>
8056
8057 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8058 (registers_powerpc_nofp): New register set for processors
8059 without floating point unit.
8060
27c31547
DM
80612002-04-18 David S. Miller <davem@redhat.com>
8062
8063 * MAINTAINERS: Add myself to write-after-approval.
8064
47a73475
MS
80652002-04-17 Michael Snyder <msnyder@redhat.com>
8066
8067 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8068
953836b2
AC
80692002-04-17 Andrew Cagney <ac131313@redhat.com>
8070
8071 * rs6000-tdep.c (frame_initial_stack_address): Use
8072 frame_register_read to read the alloca_reg.
8073
8b0d4340
AC
80742002-04-17 Andrew Cagney <ac131313@redhat.com>
8075
8076 * frame.c (find_saved_register): Find saved registers in the next
8077 not prev frame.
8078 Fix PR gdb/365.
8079
d8864532
AC
80802002-04-17 Andrew Cagney <ac131313@redhat.com>
8081
8082 * gdbarch.sh (LANG): Set to ``c''.
8083
36cc83a3 80842002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 8085
36cc83a3 8086 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 8087
2f4150cc 80882002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
8089
8090 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8091 Update copyright.
8092
628703c6 8093 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 8094 Also fix PR gdb/391.
361d1df0 8095
56157b4a
AC
80962002-04-14 Andrew Cagney <ac131313@redhat.com>
8097
8098 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8099 * aclocal.m4, configure: Re-generate.
8100 Fix PR gdb/391.
361d1df0 8101
6d1e3329
EZ
81022002-04-14 Elena Zannoni <ezannoni@redhat.com>
8103
8104 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8105 instead of tm_print_insn.
8106
cb06fa07
EZ
81072002-04-14 Elena Zannoni <ezannoni@redhat.com>
8108
8109 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8110
f208ba17
AC
81112002-04-14 Andrew Cagney <ac131313@redhat.com>
8112
8113 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8114 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8115 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8116
20f01a46
DH
81172002-04-12 Don Howard <dhoward@redhat.com>
8118
8119 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8120 max_user_call_depth.
8121 (init_cmd_lists): Initialize the new value;
8122 * cli/cli-script.c (execute_user_command): Limit the call depth of
8123 user defined commands. This avoids a core-dump when user commands
8124 are infinitly recursive.
8125
a88376a3
KB
81262002-04-12 Kevin Buettner <kevinb@redhat.com>
8127
8128 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8129 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8130 from tdep struct instead of DEFAULT_LR_SAVE.
8131 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8132 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8133 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8134
f2172603
MS
81352002-04-12 Michael Snyder <msnyder@redhat.com>
8136
694f61fb 8137 * Remote.c: Spelling fix.
20fe79c8
MS
8138 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8139 If no symbol found for "sbrk", try "_sbrk".
8140 (make_output_phdrs): Use bfd_section_name.
8141 (gcore_copy_callback): Use bfd_section_name.
62995fc4 8142 * eval.c: Indentation fix-ups.
169a7369
MS
8143 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8144 in case it gets applied to an address that is already
8145 in the instruction space.
de74f71f
MS
8146 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8147 * symfile.c: Fix indentation, long lines.
f2172603
MS
8148 * source.c: White space fix-up.
8149
cda5a58a
AC
81502002-04-12 Andrew Cagney <cagney@redhat.com>
8151
8152 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8153 * frame.c (frame_register_read): New function. Return non-zero on
8154 success.
8155 (read_relative_register_raw_bytes_for_frame): Delete.
8156 (read_relative_register_raw_bytes): Delete.
8157 * frame.h (frame_register_read): Declare.
8158 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8159 * sh-tdep.c: Ditto.
8160 * infcmd.c (do_registers_info): Ditto.
8161 * hppa-tdep.c: Ditto.
8162 * rs6000-tdep.c: Ditto.
8163 * h8500-tdep.c: Ditto.
8164 * mips-tdep.c: Ditto.
8165 * h8300-tdep.c: Ditto.
8166 * z8k-tdep.c: Ditto.
8167
2ea5f656
KB
81682002-04-12 Kevin Buettner <kevinb@redhat.com>
8169
8170 From Jimi X <jimix@watson.ibm.com>:
8171 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8172 64-bit SysV ABI.
8173
27b15785
KB
81742002-04-12 Kevin Buettner <kevinb@redhat.com>
8175
8176 From Jimi X <jimix@watson.ibm.com>:
8177 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8178 bfd info.
8179
5d57ee30
KB
81802002-04-12 Kevin Buettner <kevinb@redhat.com>
8181
8182 From Jimi X <jimix@watson.ibm.com>:
8183 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8184 register sets for these processor variants.
8185
bc1e36ca
DJ
81862002-04-11 Daniel Jacobowitz <drow@mvista.com>
8187
bc1e36ca
DJ
8188 * regformats/reg-ppc.dat: Support FPSCR.
8189
e3f36dbd
KB
81902002-04-11 Kevin Buettner <kevinb@redhat.com>
8191
8192 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8193 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8194 Add fpscr as an invalid/unfetchable register.
8195 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8196 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8197 (fill_fpregset): Add support for register fpscr.
8198 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8199 (fill_gregset): Account for the fact that register ``mq'' might
8200 not exist.
8201 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8202 (registers_power): Add fpscr to register set at slot 71.
8203 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8204 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8205
943c9c25
MS
82062002-04-11 Michael Snyder <msnyder@redhat.com>
8207
8208 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8209 * configure: Regenerate.
8210 * config.in: Regenerate.
8211 * acconfig.h: Add define for _SYSCALL32.
8212 * core-sol2.c: Remove #define _SYSCALL32.
8213 * solib-legacy.c: Remove #define _SYSCALL32.
8214
d8c0a2e7
AC
82152002-04-10 Andrew Cagney <ac131313@redhat.com>
8216
8217 * stack.c (select_frame): Cleanup internal error message, do not
8218 use %p.
8219
7cc19214
AC
82202002-04-10 Andrew Cagney <ac131313@redhat.com>
8221
8222 * stack.c (select_frame): Check that selected_frame and the
8223 specified level are as expected.
8224 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8225 Update copyright.
8226 * frame.h (struct frame_info): Add field `level'. Update
8227 copyright.
8228 Work-in-progress PR gdb/464.
8229
67a2b77e
AC
82302002-04-10 Andrew Cagney <ac131313@redhat.com>
8231
8232 * maint.c (maint_print_section_info): Rename print_section_info.
8233 (print_bfd_section_info, print_objfile_section_info): Update.
8234 * inferior.h (struct gdbarch): Add opaque declaration.
8235 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8236 * gdbarch.h: Regenerate.
8237
8cfda98c
ML
82382002-04-10 Michal Ludvig <mludvig@suse.cz>
8239
8240 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8241 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8242 (kernel_u_size): Added.
8243 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8244 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8245
ca439ad2 82462002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8247
ca439ad2
JI
8248 * valarith.c (find_size_for_pointer_math): New function, either returns
8249 the size for a pointer's target, returns 1 for void *, or errors for
8250 incomplete types.
8251 (value_add, value_sub): use find_size_for_pointer_math.
8252
2f2893d9
DJ
82532002-04-09 Daniel Jacobowitz <drow@mvista.com>
8254
8255 * linux-low.c (linux_look_up_symbols): New hook.
8256 (linux_target_ops): Add linux_look_up_symbols.
8257 * remote-utils.c (decode_address): New function.
8258 (look_up_one_symbol): New function.
8259 * server.c (handle_query): Call target look_up_symbols hook.
8260 * server.h (look_up_one_symbol): Add prototype.
8261 * target.h (struct target_ops): Add look_up_symbols hook.
8262
96cb11df
AC
82632002-04-09 Andrew Cagney <ac131313@redhat.com>
8264
8265 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8266 override FP_REGNUM with frame->fp. Update copyright.
8267 * parse.c (num_std_regs, std_regs): Delete.
8268 (target_map_name_to_register): Do not search std_regs. Update
8269 function description.
8270 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8271 declarations. Update copyright.
8272 Fix PR gdb/251.
361d1df0 8273
97658e92
DJ
82742002-04-09 Daniel Jacobowitz <drow@mvista.com>
8275
8276 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8277 after the last symbol in a block.
8278
6044e3eb
PM
82792002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8280
8281 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8282 is non zero as a found symbol.
8283
0406ec40
AC
82842002-04-08 Andrew Cagney <ac131313@redhat.com>
8285
8286 * findvar.c: Include "builtin-regs.h".
8287 (value_of_register): Call value_of_builtin_reg when applicable.
8288 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8289 (target_map_name_to_register): Call
8290 builtin_reg_map_name_to_regnum.
8291 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8292 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8293 (builtin_regs_h): Define.
8294 (builtin-regs.o): New target.
8295 (findvar.o): Add $(builtin_regs_h).
8296 * builtin-regs.c, builtin-regs.h: New files.
8297 * std-regs.c: New file.
8298 Partial fix for PR gdb/251.
8299
56a6dfb9
KB
83002002-04-08 Kevin Buettner <kevinb@redhat.com>
8301
8302 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8303 it's no longer required.
8304
3a808432
AC
83052002-04-08 Andrew Cagney <ac131313@redhat.com>
8306
8307 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8308
7c40d541
KB
83092002-04-08 Kevin Buettner <kevinb@redhat.com>
8310
8311 From Jimi X <jimix@watson.ibm.com>:
8312 * rs6000-tdep.c (rs6000_software_single_step): Use
8313 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8314 and size. Use target_insert_breakpoint() and
8315 target_remove_breakpoint() to insert and remove breakpoints
8316 instead of explicit memory reads and writes.
8317
cc9836a8
KB
83182002-04-08 Kevin Buettner <kevinb@redhat.com>
8319
8320 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8321 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8322 ELF_OBJECT_FORMAT ifdef.
8323
7495d1dc
KB
83242002-04-08 Kevin Buettner <kevinb@redhat.com>
8325
8326 From Jimi X <jimix@watson.ibm.com>:
8327 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8328
4288e836
KB
83292002-04-08 Kevin Buettner <kevinb@redhat.com>
8330
8331 From Jimi X <jimix@watson.ibm.com>:
8332 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8333 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8334
a4e4e501
MK
83352002-04-07 Mark Kettenis <kettenis@gnu.org>
8336
8337 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8338 s/asprintf/xasprintf/.
8339 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8340
006defba
AC
83412002-04-07 Andrew Cagney <ac131313@redhat.com>
8342
8343 I believe Jeff Law denies responsability for this one:
8344 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8345 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8346 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8347 Work-around for PR gdb/366.
8348
7aa83cac
EZ
83492002-04-07 Elena Zannoni <ezannoni@redhat.com>
8350
8351 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8352 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8353 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8354
cf1fcca1
EZ
83552002-04-07 Elena Zannoni <ezannoni@redhat.com>
8356
8357 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8358 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8359 information.
8360
3f289e6f
AC
83612002-04-07 Andrew Cagney <ac131313@redhat.com>
8362
8363 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8364 maintainer.
8365
129188f6
AC
83662002-04-07 Andrew Cagney <ac131313@redhat.com>
8367
8368 * README (Reporting Bugs in GDB): Document the bug web page as the
8369 prefered way of submitting bugs.
8370 Fix PR gdb/402.
8371
1200cd6e
AC
83722002-04-06 Andrew Cagney <ac131313@redhat.com>
8373
8374 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8375 -1. Update comment.
8376 * gdbarch.h, gdbarch.c: Re-generate.
8377
2853c33c
AS
83782002-04-07 Andreas Schwab <schwab@suse.de>
8379
8380 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8381 buffer to regcache_collect.
8382
c2169756
AC
83832002-04-06 Andrew Cagney <ac131313@redhat.com>
8384
8385 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8386 * gdbarch.c, gdbarch.h: Re-generate.
8387
25f1b008
AC
83882002-04-06 Andrew Cagney <ac131313@redhat.com>
8389
8390 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8391 declaration. Fix -Werror.
8392
59263426
DJ
83932002-04-05 Daniel Jacobowitz <drow@mvista.com>
8394
8395 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8396 * gdbarch.c: Regenerate.
8397
f5db4da3
MS
83982002-04-05 Michael Snyder <msnyder@redhat.com>
8399
80f8a6eb
MS
8400 * breakpoint.c (clear_command): Rewrite middle section to
8401 combine two loops with identical control conditions.
8402 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8403 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8404
ad3dcc5c
L
84052002-04-05 H.J. Lu (hjl@gnu.org)
8406
8407 * solib-svr4.c (bkpt_names): Add "__start".
8408
f32e7a74
AC
84092002-04-04 Andrew Cagney <ac131313@redhat.com>
8410
8411 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8412 as test for 64 bit target.
8413
8227c0ff
AC
84142002-04-05 Andrew Cagney <ac131313@redhat.com>
8415
8416 * h8500-tdep.c (h8500_write_fp): Delete function.
8417 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8418 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8419 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8421 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8422 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8423 (s390_write_fp):
8424 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8425 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8426 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8427 (d10v_write_fp): Delete function.
8428 * inferior.h (write_fp, generic_target_write_fp): Delete
8429 declarations.
8430 * regcache.c (generic_target_write_fp): Delete function.
8431 (write_fp): Delete function.
8432 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8433 * gdbarch.h, gdbarch.c: Regenerate.
8434 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8435 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8436 (sparc64_write_fp): Delete declaration.
8437 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8438 (h8500_write_fp): Delete declaration.
8439
2757dd86
AC
84402002-04-04 Andrew Cagney <ac131313@redhat.com>
8441
8442 * sparc-tdep.c (sparc64_write_fp): Delete.
8443 (sparc_push_dummy_frame): Replace write_fp call with code to store
8444 the FP directly.
8445 (sparc_gdbarch_init): Do not initialize write_fp.
8446
c69255e1
KB
84472002-04-05 Kevin Buettner <kevinb@redhat.com>
8448
8449 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8450 clause.
8451
ae767bfb
JB
84522002-03-29 Jim Blandy <jimb@redhat.com>
8453
8454 * stack.c (get_selected_block): Add new argument `addr_in_block',
8455 used to return the exact code address we used to select the block,
8456 not just the block.
8457 * blockframe.c (get_frame_block, get_current_block): Same.
8458 * frame.h (get_frame_block, get_current_block,
8459 get_selected_block): Update declarations.
8460 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8461 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8462
84d2ac95
MS
84632002-04-05 Michael Snyder <msnyder@redhat.com>
8464
8465 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8466 warning message.
8467
596aa3bf
JB
84682002-04-05 J. Brobecker <brobecker@gnat.com>
8469
8470 * utils.c (xfullpath): New function.
8471 * defs.h (xfullpath): Add declaration.
8472 * source.c (openp): Use xfullpath in place of gdb_realpath to
8473 avoid resolving the basename part of filenames when the
8474 associated file is a symbolic link. This fixes a potential
8475 inconsistency between the filenames known to GDB and the
8476 filenames it prints in the annotations.
8477 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8478 to be able to match a filename with either the real filename, or
8479 the name of any symbolic link to this file.
8480 (lookup_partial_symtab): Ditto.
8481
c02f5703
MS
84822002-04-04 Michael Snyder <msnyder@redhat.com>
8483
8484 * breakpoint.c: Add support for hardware breakpoints in overlays.
8485 (overlay_events_enabled): New state variable.
8486 (insert_breakpoints): Use overlay_events_enabled to decide
8487 whether to attempt to set a breakpoint at the overlay load addr.
8488 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8489 (remove_breakpoint): Use overlay_events_enabled to decide
8490 whether breakpoints need to be removed from overlay load addr.
8491 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8492 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8493 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8494 disable_overlay_breakpoints): Update overlay_events_enabled.
8495
5fb290d7
DJ
84962002-04-04 Daniel Jacobowitz <drow@mvista.com>
8497
8498 * dwarf2read.c (struct function_range): New.
8499 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8500 (check_cu_functions): New.
8501 (read_file_scope): Initialize global function lists.
8502 Call dwarf_decode_line after processing children.
8503 (read_func_scope): Add to global function list.
8504 (dwarf_decode_lines): Call check_cu_functions everywhere
8505 record_line is called. Call record_line with a linenumber
8506 of 0 to mark sequence ends.
8507
7b3fabf0
ML
85082002-04-04 Michal Ludvig <mludvig@suse.cz>
8509
361d1df0 8510 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8511 change sync with glibc.
8512
bce58c09
JB
85132002-04-03 Jim Blandy <jimb@redhat.com>
8514
8515 * configure.in: Call AC_C_INLINE.
8516 * configure: Regenerated.
361d1df0 8517
2fccf04a
DJ
85182002-04-01 Daniel Jacobowitz <drow@mvista.com>
8519
8520 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8521 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8522
2d1bfe2e
MK
85232002-03-31 Mark Kettenis <kettenis@gnu.org>
8524
a5941fbf
MK
8525 * NEWS: Mention gcore support on FreeBSD/i386.
8526
a90cd31d
MK
8527 * fbsd-proc.c: New file.
8528 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8529 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8530
2d1bfe2e
MK
8531 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8532 while statement.
8533
9eb6e5a1
JB
85342002-03-29 Jim Blandy <jimb@redhat.com>
8535
8536 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8537 unescaped newlines in string literals, but newer ones don't. So
8538 escape them.
8539
f02df580
MS
85402002-03-26 Michael Snyder <msnyder@redhat.com>
8541 Andrew Cagney <cagney@redhat.com>
8542
361d1df0 8543 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8544 restore file to memory.
8545 * cli/cli-dump.h: New file.
8546 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8547 * NEWS: Mention new commands.
f02df580 8548
109f874e
MS
85492002-03-28 Michael Snyder <msnyder@redhat.com>
8550
8551 * symfile.c (symbol_file_add): Move test for null symbols to later.
8552
520f6ade
AC
85532002-03-27 Andrew Cagney <ac131313@redhat.com>
8554
8555 From veksler at il.ibm.com:
8556 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8557 the xstrduped original path.
8558 Fix PR gdb/417.
8559
d4654627
MS
85602002-03-27 Michael Snyder <msnyder@redhat.com>
8561
8562 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8563 * infcmd.c (_initialize_infcmd): Ditto.
8564 * language.c (_initialize_language): Ditto.
8565 * symfile.c (_initialize_symfile): Ditto.
8566 * top.c (_init_main): Ditto.
8567 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8568
6be8bc0c
EZ
85692002-03-27 Elena Zannoni <ezannoni@redhat.com>
8570
8571 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8572 vector registers handling.
8573 (skip_prologue): Handle new AltiVec instructions. Fill in new
8574 fields of frame data.
8575 (frame_get_saved_regs): Fill in information for AltiVec registers.
8576
12af6855
JB
85772002-03-27 Jim Blandy <jimb@redhat.com>
8578
8579 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8580 a function; leave this macro here to invoke that function.
8581 (symbol_init_mangled_name): Declaration for that function.
8582 * symtab.c (symbol_init_mangled_name): New function.
8583
dc672865
AC
85842002-03-27 Andrew Cagney <ac131313@redhat.com>
8585
8586 * valarith.c: Replace strerror with safe_strerror.
8587 * tracepoint.c: Ditto.
8588 * lin-lwp.c: Ditto.
8589 * go32-nat.c: Ditto.
8590 * inflow.c: Ditto.
8591 * gnu-nat.c: Ditto.
8592
d96429cd
AS
85932002-03-27 Andreas Schwab <schwab@suse.de>
8594
8595 * event-top.c (command_line_handler): Remove useless if.
8596
7e336ba1
AJ
85972002-03-27 Andreas Jaeger <aj@suse.de>
8598
8599 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8600 comment.
8601
de220d0f
ML
86022002-03-27 Michal Ludvig <mludvig@suse.cz>
8603
8604 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8605 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8606 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8607 (x86_64_linux_dr_get_status, supply_gregset),
8608 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8609 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8610 (x86_64_register_info_table): Add.
8611 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8612 (x86_64_register_raw_size, x86_64_register_virtual_type),
8613 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8614 general x86_64_register_info_table.
8615 (i386_gdbarch_init): gdbarch_register_bytes is now set
8616 dynamicaly during initialization.
8617 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8618 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8619
0e98d0a7
DJ
86202002-03-27 Daniel Jacobowitz <drow@mvista.com>
8621
8622 * gdbserver/server.c (main): Call target_signal_to_host_p
8623 and target_signal_to_host on signals received from the remote.
8624 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8625 target_signal_from_host on signals sent to the remote.
8626 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8627 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8628
3130066b
DJ
86292002-03-27 Daniel Jacobowitz <drow@mvista.com>
8630
8631 * signals/signals.c: Include "server.h" in gdbserver build.
8632 (target_signal_from_name): Don't use STREQ.
8633 (_initialize_signals): Likewise. Don't include function in
8634 gdbserver build.
8635
9aedf4f4
DJ
86362002-03-27 Daniel Jacobowitz <drow@mvista.com>
8637
8638 * signals.c: Moved to...
8639 * signals/signals.c: Here.
7e336ba1 8640 * Makefile (signals.o): Update.
9aedf4f4 8641
3fa41cdb
JL
86422002-03-26 Jeff Law (law@redhat.com)
8643
8644 * somread.c (som_symtab_read): Remove some commented out code and
8645 updated related comments. Do not set the minimal symbol table to
8646 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8647 in a dynamic executable.
8648 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8649 where we are unable to find the minimal symbol for the given
8650 PC value.
8651
ee677e8d
MS
86522002-03-25 Jeff Law (law@redhat.com)
8653
8654 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8655
e76e1718
ML
86562002-03-25 Michal Ludvig <mludvig@suse.cz>
8657
8658 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8659
18a642a1
AC
86602002-03-23 Andrew Cagney <ac131313@redhat.com>
8661
8662 * command.h: Update copyright.
8663 (struct cmd_list_element): Replace definition with opaque
8664 declaration.
8665 (enum cmd_types): Document that it will eventually be moved to
8666 cli/cli-decode.h
8667 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8668 (MALLOCED_REPLACEMENT): Delete macro.
8669 * Makefile.in (cli_decode_h): Add $(command_h).
8670 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8671 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8672 * completer.c: Include "cli/cli-decode.h".
8673 * maint.c: Include "cli/cli-decode.h".
8674 * cli/cli-decode.h: Include "command.h".
8675 (enum command_class): Delete.
8676 (enum cmd_types): Comment out.
8677 (enum cmd_auto_boolean): Delete.
8678 (enum var_types): Delete.
8679
b2875cc0
AC
86802002-03-23 Andrew Cagney <ac131313@redhat.com>
8681
8682 * cli/cli-decode.c: Include "gdb_assert.h".
8683 (add_set_or_show_cmd): New static function.
8684 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8685 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8686 all fields, such as func, from the set command.
8687
3b45974e
AC
86882002-03-23 Andrew Cagney <ac131313@redhat.com>
8689
8690 * MAINTAINERS (sh-elf): Change warning flag to -w.
8691
823ca731
AC
86922002-03-23 Andrew Cagney <cagney@redhat.com>
8693
8694 * defs.h (error): Add printf format attribute.
8695 * thread-db.c (thread_from_lwp): Fix error format string.
8696 * stack.c (parse_frame_specification): Ditto.
8697 * cli/cli-decode.c (undef_cmd_error): Ditto.
8698 * scm-lang.c (scm_lookup_name): Ditto.
8699 * tracepoint.c (trace_error): Ditto.
8700 * remote-utils.c (usage): Ditto.
8701 * remote.c (compare_sections_command): Ditto.
8702 Fix PR gdb/328.
8703
0e101458
AC
87042002-03-22 Andrew Cagney <ac131313@redhat.com>
8705
8706 * gdbtypes.c (append_composite_type_field): New function.
8707 (init_composite_type): New function.
8708 * gdbtypes.h (append_composite_type_field): Declare.
8709 (init_composite_type): Ditto.
8710
8e0662df
EZ
87112002-03-22 Elena Zannoni <ezannoni@redhat.com>
8712
8713 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8714 function.
8e0662df
EZ
8715 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8716 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8717 structure returning convention for SYSV ABI case, but not
8718 for GNU/Linux, FreeBSD, or NetBSD.
8719
3121eff0
DJ
87202002-03-22 Daniel Jacobowitz <drow@mvista.com>
8721
8722 * symtab.h (lookup_block_symbol): Add mangled_name argument
8723 to prototype.
8724
8725 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8726 with new mangled_name argument.
8727 * linespec.c (decode_line_1): Likewise.
8728 * valops (value_of_this): Likewise.
8729 * symtab.c (lookup_transparent_type): Likewise.
8730 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8731 (lookup_symbol): If we are given a mangled name, pass it down
8732 to lookup_symbol_aux.
8733 (lookup_block_symbol): If we are given a mangled name to check
8734 against, only return symbols which match it.
8735
349b409f
CF
87362002-03-22 Christopher Faylor <cgf@redhat.com>
8737
8738 * win32-nat.c (child_create_inferior): Check for proper shell to use
8739 here, in case the user changes it on the fly.
8740 (_initialize_inftarg): Remove shell path considerations.
8741
2a873819
EZ
87422002-03-21 Elena Zannoni <ezannoni@redhat.com>
8743
8744 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8745 for gdbarch_max_register_raw_size and max_register_virtual_size.
8746 Adjust copyright year.
8747
a1b9830c
DJ
87482002-03-21 Daniel Jacobowitz <drow@mvista.com>
8749
8750 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8751 in a function to cover the entire beginning of the function
8752 as well if it does not already.
8753
8b5790f2
TR
87542002-03-21 Tom Rix <trix@redhat.com>
8755
8756 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8757 (rs6000_ptrace64): Renamed from ptrace64.
8758
bdbe5747
MH
87592002-03-20 Martin M. Hunt <hunt@redhat.com>
8760
8761 * gdbserver/remote-utils.c (remote_open): Don't call
8762 getprotobyname, we're all using TCP here so just use
8763 IPPROTO_TCP.
7e336ba1 8764 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8765
87662002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8767
bdbe5747
MH
8768 * regcache.c (_initialize_regcache): No need to call
8769 build_regcache() at this time; it gets called whenever
8770 the gdbarch changes.
8771
7781cd62
DB
87722002-03-20 David O'Brien <obrien@FreeBSD.org>
8773
8774 * sparc-nat.c: Include sys/param.h where possible.
8775
f65ca430
DJ
87762002-03-20 Daniel Jacobowitz <drow@mvista.com>
8777
8778 Fix PR gdb/422.
8779 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8780 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8781 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8782 complex types.
8783 * stabsread.c (rs6000_builtin_type): Likewise.
8784 (read_sun_floating_type): Likewise.
8785
0c867556
PS
87862002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8787
8788 * stabsread.c (read_member_functions): Remove skip code for duplicate
8789 constructor/destructor methods. Use standard parsing for these
8790 methods and just do not chain them to the list of methods after
8791 parsing.
8792
12b9c64f
AO
87932002-03-19 Alexandre Oliva <aoliva@redhat.com>
8794
8795 * coffread.c: Remove redundant static declarations. Replace
8796 occurrences of `PTR' with `void *'.
8797 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8798 * top.h (quit_cover): Likewise.
8799 * defs.h (catch_errors): Likewise.
8800
349c5d5f
AC
88012002-03-18 Andrew Cagney <ac131313@redhat.com>
8802
8803 * defs.h (XMALLOC): Define.
8804 * gdb-events.sh (XMALLOC): Delete macro.
8805 * gdb-events.c, gdb-events.h: Regenerate.
8806 * gdbarch.sh (XMALLOC): Delete macro.
8807 * gdbarch.c: Regenerate.
8808 * serial.c (XMALLOC): Delete macro.
8809 * ui-file.c (XMALLOC): Ditto.
8810 * ser-unix.h (XMALLOC): Ditto.
8811 * sh-tdep.c (XMALLOC): Ditto.
8812 * ui-out.c (XMALLOC): Ditto.
8813 * utils.c (XMALLOC): Ditto.
8814 * i386-tdep.c (XMALLOC): Ditto.
8815 * gdb-events.c (XMALLOC): Ditto.
8816 * d10v-tdep.c (XMALLOC): Ditto.
8817 * cli-out.c (XMALLOC): Ditto.
8818
8819 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8820 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8821 * ui-file.c, ui-out.c: Ditto.
8822
7d0766f3
AC
88232002-03-18 Andrew Cagney <ac131313@redhat.com>
8824
8825 * command.h (struct cmd_list_element): Add field context.
8826 (set_cmd_context, get_cmd_context): Declare.
8827 * cli/cli-decode.h: Ditto.
8828 * cli/cli-decode.c (get_cmd_context): New function.
8829 (set_cmd_context): New function.
8830 (add_cmd): Initialize context.
8831 Part of fixing PR gdb/145 and PR gdb/146.
8832
5913bcb0
AC
88332002-03-17 Andrew Cagney <ac131313@redhat.com>
8834
1868c04e
AC
8835 * cli/cli-decode.c (cmd_type): New function.
8836 * command.h (cmd_type): Declare.
8837 * infrun.c (set_schedlock_func): Call function cmd_type.
8838 * kod.c (kod_set_os): Call cmd_type.
8839 * cris-tdep.c (cris_version_update): Use function cmd_type.
8840 (cris_mode_update, cris_abi_update): Ditto.
8841
5913bcb0
AC
8842 * command.h: (execute_cmd_post_hook): Declare.
8843 (execute_cmd_pre_hook): Declare.
8844 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8845 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8846 functions. Execute pre/post hook while ensuring that afterwords
8847 hook_in is cleared.
8848 * top.c (execute_command): Use execute_cmd_post_hook, and
8849 execute_cmd_pre_hook to execute pre/post commands.
8850 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8851 hook_stop_stub.
8852 (hook_stop_stub): Call execute_cmd_pre_hook.
8853
b51450c9
AC
88542002-03-17 Andrew Cagney <ac131313@redhat.com>
8855
8856 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8857 set'' and this leads to a core dump. Move xstrdup of
8858 operating_system to after check that it is not NULL.
8859
f66c9f11
AC
88602002-03-17 Andrew Cagney <ac131313@redhat.com>
8861
8e694ecf
AC
8862 * kod.c (kod_set_os): Remove unnecessary check that
8863 ``command->type'' is set_cmd.
8864
f66c9f11
AC
8865 * valprint.c (set_input_radix): Use input_radix.
8866 (set_output_radix): Use output_radix.
8867 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8868 isn't reverted.
8869
9d01611c
AC
88702002-03-16 Andrew Cagney <ac131313@redhat.com>
8871
8872 * value.h (struct value): Delete field ``substring_addr''. Change
8873 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8874 force_core_addr_align and force_pointer_aligh.
8875
8876 * value.h (struct value): Fix typo in above change.
9d01611c 8877
4156bb53
PS
88782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8879
8880 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8881 to fix internal_error from ``maintenance print architecture''.
8882
0e5e3ea6
PS
88832002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8884
8885 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8886 for gcc versions after gcc-2.8.1.
8887
9b013045
PS
88882002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8889
8890 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8891 for method resolution. Restore adjustment of ``this'' pointer after
8892 calling value_struct_elt, which was accidentally removed during the
8893 HP merge.
8894
376c9600
AC
88952002-03-15 Andrew Cagney <ac131313@redhat.com>
8896
8897 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8898 value_of_register.
8899 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8900 get_saved_register.
8901 * value.h (value_of_register): Update.
8902
a4db0f07
RH
89032002-03-14 Richard Henderson <rth@redhat.com>
8904
8905 * configure.in: Detect declaration for canonicalize_file_name.
8906 * utils.c (canonicalize_file_name): Declare, if needed.
8907 (gdb_realpath): Prefer realpath if available and usable.
8908 * config.in, configure: Rebuild.
8909
96383835
RH
89102002-03-14 Richard Henderson <rth@redhat.com>
8911
8912 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8913 a constant array bound.
8914
8915 * MAINTAINERS: Add myself to write-after-approval.
8916
75245b24
MS
89172002-03-14 Michael Snyder <msnyder@redhat.com>
8918
8919 * symfile.c (syms_from_objfile): Return immediately if no syms.
8920 (symbol_file_add): Return immediately if no syms.
8921 (find_sym_fns): Return immediately if no syms.
8922
e641a1ca
ML
89232002-03-13 Michal Ludvig <mludvig@suse.cz>
8924
8925 * gdbserver/remote-util.c (remote_open): Print remote-side's
8926 IP address when remote debugging over the network.
7e336ba1 8927
df08bfec
DB
89282002-03-12 David O'Brien <obrien@FreeBSD.org>
8929
8930 * config/sparc/fbsd.mh: Fix copyright.
8931 * config/sparc/fbsd.mt: Likewise.
8932
9a57864f
RE
89332002-03-11 Richard Earnshaw <rearnsha@arm.com>
8934
8935 * MAINTAINERS: Fix typo in name of gdb warnings option.
8936 (x86-64): Fix formating so that this can be parsed by awk.
8937
dd7bf85e
DJ
89382002-03-10 Daniel Jacobowitz <drow@mvista.com>
8939
8940 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8941 * defs.h: Include "gdb/signals.h".
8942 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8943
33a0a2ac
ML
89442002-03-10 Michal Ludvig <mludvig@suse.cz>
8945
8946 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8947 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8948 from x86-64-tdep.h
8949
dd824b04
DJ
89502002-03-10 Daniel Jacobowitz <drow@mvista.com>
8951 Don Howard <dhoward@redhat.com>
8952
8953 * mips-tdep.c (ST0_FR): Define.
8954 (mips2_fp_compat): New function, temporarily disabled.
8955 (mips_read_fp_register_single): New function.
8956 (mips_read_fp_register_double): New function.
8957 (mips_print_register): Use them.
8958 (do_fp_register_row): Likewise.
8959
6a41ff59
AC
89602002-03-09 Andrew Cagney <ac131313@redhat.com>
8961
8962 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8963 approval''.
8964
4ea09c10
PS
89652002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8966
8967 * stabsread.c (read_member_functions): Fix is_stub test for
8968 static member functions, improve comment.
8969
6ccc741d
RE
89702002-03-07 Richard Earnshaw <rearnsha@arm.com>
8971
8972 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8973 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8974 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8975 commands that set boolean values.
8976 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8977 (arm_rdi_resume): Always initialize PC.
8978 (arm_rdi_open): Don't use rslt as a boolean.
8979 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8980 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8981 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8982 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8983
438013df
AO
89842002-03-06 Alexandre Oliva <aoliva@redhat.com>
8985
8986 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8987 * configure: Rebuilt.
8988
70ed8774
SC
89892002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8990
8991 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8992 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8993
5ba2abeb
AC
89942002-03-06 Andrew Cagney <ac131313@redhat.com>
8995
8996 * cli/cli-decode.c (set_cmd_completer): New function.
8997 * command.h (set_cmd_completer): Declare.
8998 * cli/cli-decode.h (set_cmd_completer): Ditto.
8999
9000 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9001 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9002 * win32-nat.c (_initialize_inftarg): Ditto.
9003 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9004 * proc-api.c (_initialize_proc_api): Ditto.
9005 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9006 * source.c (_initialize_source): Ditto.
9007 * exec.c (_initialize_exec): Ditto.
9008 * solib.c (_initialize_solib): Ditto.
9009 * top.c (init_main): Ditto.
9010 * tracepoint.c (_initialize_tracepoint): Ditto.
9011 * symfile.c (_initialize_symfile): Ditto.
9012 * printcmd.c (_initialize_printcmd): Ditto.
9013 * infcmd.c (_initialize_infcmd): Ditto.
9014 * corefile.c (_initialize_core): Ditto.
9015
f779ca99
AC
90162002-03-05 Andrew Cagney <ac131313@redhat.com>
9017
9018 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9019
01a3934b
AC
90202002-03-05 Andrew Cagney <ac131313@redhat.com>
9021
9022 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9023
37057839
AC
90242002-03-05 Andrew Cagney <ac131313@redhat.com>
9025
9026 * NEWS: Update headings, 5.2 has branched.
9027
c6ecbae5
DJ
90282002-03-04 Daniel Jacobowitz <drow@mvista.com>
9029
9030 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9031 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9032 (register_addr, REGISTER_RAW_SIZE): Likewise.
9033 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9034 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9035
e9f30c21
ML
90362002-03-03 Michal Ludvig <mludvig@suse.cz>
9037
9038 * MAINTAINERS (x86-64): Add myself.
9039 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9040 changed value_ptr -> struct value *
9041
54394ac3
DB
90422002-03-01 David O'Brien <obrien@FreeBSD.org>
9043
9044 * configure.host (sparc64-*-freebsd): Add.
9045 * configure.tgt: Likewise.
9046 * config/sparc/fbsd.mh: New file.
9047 * config/sparc/fbsd.mt: Likewise.
9048 * config/sparc/nm-fbsd.h: Likewise.
9049 * config/sparc/tm-fbsd.h: Likewise.
9050
bfe95955
DJ
90512002-03-01 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9054 regformats/reg-s390x.dat.
9055
f33c6cbf
AC
90562002-03-01 Andrew Cagney <ac131313@redhat.com>
9057
9058 * utils.c: Add FIXME explaining true/false problem.
9059
5ecaa7dd
AC
90602002-02-28 Andrew Cagney <ac131313@redhat.com>
9061
9062 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9063
2a251cc2
MC
90642002-02-28 Michael Chastain <mec@shout.net>
9065
9066 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9067
6a8031a3 90682002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
9069
9070 * gdbserver/linux-s390-low.c: New file.
9071 * regformats/reg-s390.dat: New file.
9072 * regformats/reg-s390x.dat: New file.
9073 * gdbserver/configure.srv: Add S/390.
9074 * gdbserver/Makefile.in: Add S/390.
9075 * configure.tgt: Enable gdbserver for S/390.
9076
ac469903
EZ
90772002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9078
9079 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9080 first line of the doc string for "info dos", except at the end of
9081 the sentence, since the short help stops at the first period.
9082
985cb1a3
JM
90832002-02-28 Jason Merrill <jason@redhat.com>
9084
9085 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9086
c570663e
FF
90872002-02-27 Fred Fish <fnf@redhat.com>
9088
9089 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9090 comment (dumy -> dummy).
9091
43630227
PS
90922002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9093
9094 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9095
b84911e8
RB
90962002-02-27 Rodney Brown <rbrown64@csc.com.au>
9097
9098 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9099
58caa3dc
DJ
91002002-02-27 Daniel Jacobowitz <drow@mvista.com>
9101
9102 * gdbserver/acconfig.h: New file.
9103 * gdbserver/i387-fp.c: New file.
9104 * gdbserver/i387-fp.h: New file.
9105 * gdbserver/linux-x86-64.c: New file.
9106 * regformats/reg-x86-64.dat: New file.
9107 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9108 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9109 * gdbserver/configure.in: Add support for regsets.
9110 * gdbserver/config.in: Regenerate.
9111 * gdbserver/configure: Regenerate.
9112 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9113 * gdbserver/linux-low.h: New file.
9114 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9115 for regsets.
9116 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9117 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9118 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9119 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9120 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9121 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9122 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9123 "i387-fp.h". Add PTRACE_GETREGS and friends.
9124 * gdbserver/regcache.c (supply_register): New function.
9125 (supply_register_by_name): New function.
9126 (collect_register): New function.
9127 (collect_register_by_name): New function.
9128
93652174
DJ
91292002-02-27 Daniel Jacobowitz <drow@mvista.com>
9130
9131 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9132 (config.status): Add configure.srv dependency.
9133 (server_h): Add config.h dependency.
9134
a02e4a61
DJ
91352002-02-27 Daniel Jacobowitz <drow@mvista.com>
9136
9137 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9138 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9139 * gdbserver/configure.srv: Change i386-*-linux* to use
9140 reg-i386-linux.o.
9141
ce0eebec
AC
91422002-02-26 Andrew Cagney <ac131313@redhat.com>
9143
9144 * x86-64-tdep.c: Re-indent. Update copyright date.
9145
82dbc5f7
AC
91462002-02-26 Andrew Cagney <ac131313@redhat.com>
9147
9148 From Michal Ludvig <mludvig@suse.cz>:
9149 * x86-64-tdep.c (value.h): Delete.
9150 (gdb_assert.h): Include.
9151 (x86_64_register_convert_to_virtual,
9152 x86_64_register_convert_to_raw ): Add check which lets only
9153 floating-point values to be converted.
9154 (value_push): Delete.
9155 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9156 (i386_gdbarch_init): Number of register_bytes fixed.
9157
e4621584
AC
91582002-02-26 Andrew Cagney <ac131313@redhat.com>
9159
9160 * MAINTAINERS: Add x86-64 target.
9161
81a9a963
AC
91622002-02-26 Andrew Cagney <ac131313@redhat.com>
9163
9164 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9165 * osfsolib.c (solib_map_sections): Ditto.
9166 * irix5-nat.c (solib_map_sections): Ditto.
9167 * corelow.c (gdb_check_format): Ditto.
9168 * symfile.c (symfile_bfd_open): Ditto.
9169 * solib.c (solib_map_sections): Ditto.
9170 Fix PR gdb/354.
7e336ba1 9171
0f017ab9
AC
91722002-02-26 Andrew Cagney <ac131313@redhat.com>
9173
9174 * remote.c (_initialize_remote): By default, disable ``e'' and
9175 ``E'' step out-of-range packets.
9176
75738c29
AS
91772002-02-26 Andreas Schwab <schwab@suse.de>
9178
9179 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9180 m68k_linux_frame_saved_pc.
9181 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9182 in_sigtramp.
9183 (SIGCONTEXT_PC_OFFSET): Remove.
9184 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9185 m68k_linux_sigtramp_saved_pc): New functions.
9186 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9187 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9188 (UCONTEXT_PC_OFFSET): Define.
9189 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9190 non-RT and RT signal trampolines.
9191
7e8ed687
RE
91922002-02-26 Richard Earnshaw <rearnsha@arm.com>
9193
9194 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9195 (TARGET_NBPG, STACK_END_ADDR): Delete
9196 (VARIABLES_INSIDE_BLOCK): Delete.
9197
6972bc8b
AC
91982002-02-25 Andrew Cagney <ac131313@redhat.com>
9199
9200 * utils.c (perror_with_name): Make string parameter constant.
9201 (print_sys_errmsg): Ditto.
9202 (query): Ditto.
9203 * defs.h (perror_with_name): Update.
9204 (print_sys_errmsg): Update.
9205 (query): Update.
9206
aa32f823
DJ
92072002-02-25 Daniel Jacobowitz <drow@mvista.com>
9208
9209 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9210 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9211
19caaa45
PS
92122002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9213
9214 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9215 if it already matches the current architecture from the exec file.
9216 Include arch-utils.h for gdbarch_info_init prototype.
9217 * Makefile.in (rs6000-nat.o): Update dependencies.
9218
d951901f
EZ
92192002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9220
9221 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9222 list of exported variables.
9223
7ea81414
DJ
92242002-02-24 Daniel Jacobowitz <drow@mvista.com>
9225
9226 * gdbserver/configure.srv: New file.
9227 * gdbserver/configure.in: Use configure.srv instead
9228 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9229 from it.
9230 * gdbserver/configure: Regenerated.
9231 * gdbserver/terminal.h: New file.
9232 * gdbserver/Makefile.in: Update for configure changes. Remove
9233 more unneeded include paths.
9234
080fe24b
AC
92352002-02-24 Andrew Cagney <ac131313@redhat.com>
9236
9237 From wiz at danbala:
9238 * config/sparc/tm-sp64.h: Fix grammar and typos.
9239 Fix PR gdb/287.
9240
8605d56e
AC
92412002-02-24 Andrew Cagney <ac131313@redhat.com>
9242
9243 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9244 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9245 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9246 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9247 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9248 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9249 * s390-tdep.c: Ditto.
92362027
AC
9250 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9251 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9252 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9253 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9254 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9255 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9256 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9257 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9258 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9259 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9260 Fix PR gdb/378.
7e336ba1 9261
8ed32cc0
AC
92622002-02-23 Andrew Cagney <ac131313@redhat.com>
9263
a3007b6f
AC
9264 * lin-thread.c: Delete file.
9265 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9266 to gdb_proc_service.h.
9267 * configure: Re-generate.
9268
50a9e2f1
AC
9269 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9270 * serial.c (serial_open): Delete check for "ocd".
9271 Fix PR gdb/349.
9272
8b6e7932
AC
9273 * Makefile.in (linux-thread.o): Delete target.
9274 * linux-thread.c: Delete file.
9275
d155c46b
AC
9276 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9277 renamed SH files to be consistent.
9278
8ed32cc0
AC
9279 * symtab.c (sort_search_symbols): Use xfree.
9280
0e18d038
RE
92812002-02-23 Richard Earnshaw <rearnsha@arm.com>
9282
9283 * arm-linux-tdep.c (arm_linux_init_abi): Register
9284 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9285 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9286 definition with undef, since we don't want the sysvr4 definition.
9287 (SKIP_TRAMPOLINE_CODE): Likewise.
9288
27aac7ff
AC
92892002-02-23 Andrew Cagney <ac131313@redhat.com>
9290
9291 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9292
9293 * configure.in: (AC_CHECK_FUNCS) Added test for
9294 canonicalize_file_name Regenerated.
9295 * config.in, configure: Regenerated.
9296 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9297 defined use canonicalize_file_name.
7e336ba1 9298
65a6e0ee
MC
92992002-02-23 Michael Chastain <mec@shout.net>
9300
9301 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9302
47b95330
AC
93032002-02-23 Andrew Cagney <ac131313@redhat.com>
9304
9305 * README: Remove references to cygnus.com.
9306 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9307 dot com'' form. Remove references to cygnus.com and sourceware.
9308
696f451b
AC
93092002-02-23 Andrew Cagney <ac131313@redhat.com>
9310
9311 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9312 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9313 1003.1-2001 no longer allows "head -1".
9314 * gdb/Makefile.in (version.c): Likewise.
9315 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9316 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9317 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9318
bbaca940
AC
93192002-02-23 Andrew Cagney <ac131313@redhat.com>
9320
9321 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9322 * command.h (cmd_cfunc_eq): Declare.
9323 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9324
9325 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9326 ``struct cmd_list_element *''.
9327 * cli/cli-cmds.c (is_complete_command): Update. Use
9328 cmd_cfunc_eq.
9329 * top.c (execute_command): Pass the command to
9330 is_complete_command.
9331 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9332
b8b8b047
AC
93332002-02-23 Andrew Cagney <ac131313@redhat.com>
9334
9335 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9336 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9337 architecture defines.
9338 * s390-tdep.c (s390_gdbarch_init): Likewise.
9339
19d3fc80
RE
93402002-02-23 Richard Earnshaw <rearnsha@arm.com>
9341
9342 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9343 (arm_linux_push_arguments): Likewise.
9344 (arm_linux_init_abi): Register them. Also register linux-specific
9345 call_dummy_words.
9346 (find_minsym_and_objfile): Use strcmp, not STREQ.
9347 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9348 (arm_linux_call_dummy_words): Delete declaration.
9349 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9350 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9351 declarations.
9352 (LOWEST_PC): Delete.
9353
3ab13650
PS
93542002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9355
9356 * maint.c (print_section_info): Do not prepend `0x' to filepos
9357 output, it will be handled by local_hex_string_custom.
9358
19d3fc80 93592002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9360
9361 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9362 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9363 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9364
d85a5daf
JB
93652002-02-22 Jim Blandy <jimb@redhat.com>
9366
9367 Indicate that the bcache functions don't change the strings
9368 they're passed.
9369 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9370 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9371
eeb25b8a
PM
93722002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9373
9374 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9375
6badb179
CF
93762002-02-21 Christopher Faylor <cgf@redhat.com>
9377
9378 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9379 find the complete path to a loaded DLL.
9380
e8717518
FF
93812002-02-21 Fred Fish <fnf@redhat.com>
9382
9383 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9384 that marks the end of the range of a function, enter a line number
9385 entry that has a line number of zero and a PC offset that matches
9386 the end of the function. This starts a range of PC's for which no
9387 line number information is known.
9388 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9389 PC's for which no line number info is found (line number is zero)
9390 then we didn't find any valid line information.
9391 * symtab.h: Document use of zero line number entry.
9392
9abe5450
EZ
93932002-02-21 Elena Zannoni <ezannoni@redhat.com>
9394
9395 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9396 (have_ptrace_getvrregs): Define for run time checks.
9397 (gdb_vrregset_t): New type for Altivec register handling.
9398 (fetch_register, store_register): Fetch/store altivec register
9399 when needed.
9400 (fetch_altivec_register, store_altivec_register): New functions.
9401 (supply_vrregset, fill_vrregset): New functions.
9402 (fetch_altivec_registers, store_altivec_registers): New functions.
9403 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9404 registers as well.
9405
aaa38bb5
AJ
94062002-02-21 Jiri Smid <smid@suse.cz>
9407
9408 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9409
b34db576
RE
94102002-02-21 Richard Earnshaw <rearnsha@arm.com>
9411
9412 * Makefile.in (armnbsd-nat.o): Update dependencies.
9413 * armnbsd-nat.c (supply_gregset): New function. Common code to
9414 supply the integer register set.
9415 (supply_fparegset): New function. Similar for FPA registers.
9416 (fetch_regs, fetch_fp_regs): Use them.
9417 (fetch_core_registers): Likewise.
9418 (fetch_elfcore_registers): New function.
9419 (arm_netbsd_elfcore_fns): New core-file type specification.
9420 (_initialize_arm_netbsd_nat): Register it.
9421
3e56fc4b
RE
94222002-02-21 Richard Earnshaw <rearnsha@arm.com>
9423
9424 * armnbsd-nat.c: Include gdbcore.h.
9425 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9426 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9427 'void' to declaration, to shut up ARI.
9428 (fetch_core_registers): Make static. Rewrite using supply_register.
9429 (arm_netbsd_core_fns): New core-file type specification.
9430 (_initialize_arm_netbsd_nat): New function.
9431
097f6b0b
CF
94322002-02-21 Christopher Faylor <cgf@redhat.com>
9433
9434 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9435 value.
9436
c914e0cc
CF
94372002-02-20 Christopher Faylor <cgf@redhat.com>
9438
9439 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9440 fails.
9441
385fa495
DJ
94422002-02-20 Daniel Jacobowitz <drow@mvista.com>
9443
9444 * jv-exp.y (parse_number): Change type of implicit longs
9445 to builtin_type_uint64.
9446
e5f1222d
DJ
94472002-02-20 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9450 to be an integer instead of a `union wait'.
9451
75c9abc6
DJ
94522002-02-20 Daniel Jacobowitz <drow@mvista.com>
9453
9454 * mips-linux-nat.c: Call the operating system GNU/Linux.
9455 * mips-linux-tdep.c: Likewise.
9456 * mips-tdep.c: Likewise.
9457
551792a5
DJ
94582002-02-20 Daniel Jacobowitz <drow@mvista.com>
9459
9460 Fix PR gdb/265.
9461 * jv-exp.y (parse_number): Handle 64-bit integers.
9462
ee6e2b82
DJ
94632002-02-20 Daniel Jacobowitz <drow@mvista.com>
9464
9465 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9466 AC_STDC_HEADERS to AC_HEADER_STDC.
9467 * gdbserver/configure: Regenerated.
9468
a48442a0
RE
94692002-02-20 Richard Earnshaw <rearnsha@arm.com>
9470
9471 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9472 is defined.
9473 * sparc-tdep.c (get_longjmp_target): Likewise.
9474
fe419ffc
RE
94752002-02-20 Richard Earnshaw <rearnsha@arm.com>
9476
9477 * News: Add news about ARM and Multi-arch. Mention the new target
9478 arm*-*-netbsd*.
9479
5832ed7e
JB
94802002-02-19 Jim Blandy <jimb@redhat.com>
9481
9482 * stabsread.c (error_type_complaint): Improve error message.
9483
84563040
DJ
94842002-02-19 Daniel Jacobowitz <drow@mvista.com>
9485
9486 * gdbserver/README: Update documentation.
9487 * gdbserver/configure.in: Update configury to match documentation.
9488 * gdbserver/Makefile.in: Likewise.
9489 * gdbserver/configure: Regenerated.
9490 * gdbserver/aclocal.m4: New file, generated by aclocal.
9491 * gdbserver/config.in: New file, generated by autoheader.
9492
375fd65b
RE
94932002-02-19 Richard Earnshaw <rearnsha@arm.com>
9494
9495 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9496 armnbsd-nat.c.
9497
08216dd7
RE
94982002-02-19 Richard Earnshaw <rearnsha@arm.com>
9499
9500 * arm-tdep.h (enum arm_float_model): New enum.
9501 (struct gdbarch_tdep): Add fp_model.
9502 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9503 up floating-point conversions until we know the floating-point model
9504 in use by the inferior. Don't complain about being unable to
9505 determine the ABI of the inferior when we don't have one.
9506 (arm_extract_return_value): Support different floating-point models.
9507 (arm_store_return_value): Likewise.
aaa38bb5 9508 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9509 ARM_FLOAT_SOFT.
9510 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9511
65d6d66a
PS
95122002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9513
9514 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9515 of ``current_gdbarch''.
9516
47221191
RE
95172002-02-19 Richard Earnshaw <rearnsha@arm.com>
9518
9519 * armnbsd-nat.c : ANSIfy all function declarations.
9520 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9521 (fetch_inferior_registers): Re-implement in terms of above.
9522 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9523 (store_inferior_registers): Re-implement in terms of above.
9524
fdf39c9a
RE
95252002-02-19 Richard Earnshaw <rearnsha@arm.com>
9526
aaa38bb5 9527 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9528 kernel.
9529 * arm-linux-tdep.c: Likewise.
9530 * config/arm/tm-linux.h: Likewise.
9531
93247f88
RE
95322002-02-19 Richard Earnshaw <rearnsha@arm.com>
9533
9534 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9535 * config/arm/nbsd.mt (TM_FILE): Delete.
9536 * config/arm/tm-nbsd.h: Delete.
9537
d7b486e7
RE
95382002-02-19 Richard Earnshaw <rearnsha@arm.com>
9539
9540 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9541 Initialize CALL_DUMMY_LENGTH.
9542
41d39a95
RE
95432002-02-19 Richard Earnshaw <rearnsha@arm.com>
9544
9545 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9546 function.
9547 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9548 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9549 defines one thing and that is incorrect for this port.
9550 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9551
e1195560
PM
95522002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9553
9554 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9555
c1748f97
PM
95562002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9557
9558 * win32-nat.c (display_selector): New function. Displays information
9559 about the information returned by GetThreadSelectorEntry API function.
9560 (display_selectors): New function. Displays the infomation of
9561 the selector given as argument, or of CS, DS ans FS selectors
9562 if no argument is given.
9563 ( _initialize_inftarg): Add "w32" as info prefix command.
9564 Add "info w32 selector" as command calling display_selectors.
9565
e41e6bbf
PM
95662002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9567
9568 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9569 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9570 if not defined.
9571
0d3a9f48
RE
95722002-02-18 Richard Earnshaw <rearnsha@arm.com>
9573
9574 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9575
3fb4b924
RE
95762002-02-18 Richard Earnshaw <rearnsha@arm.com>
9577
9578 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9579 (arm_fix_call_dummy): Call it.
9580 (arm_call_dummy_breakpoint_offset): Delete.
9581 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9582 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9583
7f55af32
AC
95842002-02-18 Andrew Cagney <ac131313@redhat.com>
9585
9586 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9587 Default to func_frame_chain_valid.
9588 * gdbarch.h, gdbarch.c: Re-generate.
9589 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9590
05f13b9c
EZ
95912002-02-18 Elena Zannoni <ezannoni@redhat.com>
9592
9593 * ppc-linux-nat.c: Update copyright.
9594 (fetch_register, store_register): Add tid parameter, don't compute
9595 tid here.
9596 (fetch_ppc_registers, store_ppc_registers): Add tid
9597 parameter. Pass it along to callees.
9598 (fetch_inferior_registers, store_inferior_registers): Compute tid
9599 here, and pass it to calleed functions.
9600 (fill_gregset, supply_fpregset): Clean up formatting.
9601
d7afb4c9
RE
96022002-02-18 Richard Earnshaw <rearnsha@arm.com>
9603
9604 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9605 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9606
9df628e0
RE
96072002-02-18 Richard Earnshaw <rearnsha@arm.com>
9608
9609 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9610 * gdbarch.c gdbarch.h: Regenerate.
9611 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9612 function.
9613 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9614 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9615 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9616
9617 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9618 * arm-tdep.c (arm_get_longjmp_target): New function.
9619 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9620 this to a positive value register arm_get_longjmp_target as the
9621 longjmp handler.
9622 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9623 (arm_linux_init_abi): Set up longjmp description in tdep.
9624 * armnbsd-nat.c (get_longjmp_target): Delete.
9625 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9626 description in tdep.
9627 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9628 (get_longjmp_target): Delete declaration.
9629 (GET_LONGJMP_TARGET): Delete.
9630 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9631 (GET_LONGJMP_TARGET): Delete.
9632
57bc8964
KB
96332002-02-17 Kevin Buettner <kevinb@redhat.com>
9634
9635 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9636 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9637 of ``current_gdbarch''.
9638
83d31a92
TT
96392002-02-17 Tom Tromey <tromey@redhat.com>
9640
9641 * cli/cli-cmds.c (compare_strings): New function.
9642 (complete_command): Only print each unique item once.
9643 * completer.h (complete_line): Declare.
9644 * completer.c (complete_line): New function.
9645 (line_completion_function): Use it.
9646
17ef5d92
AC
96472002-02-16 Andrew Cagney <ac131313@redhat.com>
9648
9649 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9650 * gdbarch.h, gdbarch.c: Re-generate.
9651
491b8946
DJ
96522002-02-16 Daniel Jacobowitz <drow@mvista.com>
9653
9654 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9655
96562002-02-16 Daniel Jacobowitz <drow@mvista.com>
9657
9658 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9659 * valops.c (value_arg_coerce): Don't take the address of a reference
9660 to convert an argument to a reference.
9661
dfe7f3ac
CF
96622002-02-15 Christopher Faylor <cgf@redhat.com>
9663
9664 * win32-nat.c (get_image_name): New function.
9665 (handle_load_dll): Use get_image_name function.
9666 (get_child_debug_event): Avoid registering debug events until possibly
9667 execed process is started.
9668 (child_create_inferior): Allow invocation via shell so that command
9669 line redirection, etc. works ok.
9670 (_initialize_inftarg): Add new command: "set shell" to control whether
9671 a shell is used to start a process.
9672
1d33e73a
DJ
96732002-02-15 Daniel Jacobowitz <drow@mvista.com>
9674
9675 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9676 instead of find_register_by_number.
9677 (cannot_store_register): Likewise.
9678
48cd0caa
PM
96792002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9680
aaa38bb5 9681 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9682 fprintf_unfiltered (gdb_stderr, ...).
9683
8656e7d8
DJ
96842002-02-15 Daniel Jacobowitz <drow@mvista.com>
9685
9686 * gdbserver/gdbserver.1: Document --attach.
9687
66e810cd
RE
96882002-02-15 Richard Earnshaw <rearnsha@arm.com>
9689
9690 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9691 descriptions.
9692 * arm-tdep.c (arm_default_arm_le_breakpoint)
9693 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9694 (arm_default_thumb_be_breakpoint): New. Initialize them from
9695 traditional breakpoint defines.
9696 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9697 (arm_gdbarch_init): Initialize new breakpoint variables.
9698 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9699 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9700 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9701 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9702 code out to ...
9703 (arm_netbsd_init_abi_common): ... here; new function.
9704 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9705 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9706 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9707 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9708
97e03143
RE
97092002-02-15 Richard Earnshaw <rearnsha@arm.com>
9710
9711 * arm-tdep.h (enum arm_abi): New enum.
9712 (struct gdbarch_tdep): New structure.
9713 (LOWEST_PC): Provide a default.
9714 (arm_gdbarch_register_os_abi): Declare new function.
9715 * arm-tdep.c (arm_abi_names): New array.
9716 (process_note_abi_tag_sections): New function.
9717 (get_elfosabi): New function.
9718 (arm_gdbarch_register_os_abi): New function.
9719 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9720 support for that ABI has been built in, then call the appropriate
9721 configuration routine. Use gdbarch_num_regs() to get the number
9722 of registers.
9723 (arm_dump_tdep): New function.
9724 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9725 place-holder functions.
9726 (_initialize_arm_tdep): Register them.
9727 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9728
9729 * armnbsd-tdep.c: New file.
9730 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9731 * config/arm/nbsd.mt (TDEPFILES): Add it.
9732 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9733
9734 * armnbsd-nat.c: Include regcache.h.
9735 * Makefile.in (armnbsd-nat.o): Update dependency list.
9736
9737 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9738
ad68be46
DJ
97392002-02-14 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * gdbserver/Makefile.in: Fix typos in target rules.
9742
003d6d1d
DJ
97432002-02-14 Daniel Jacobowitz <drow@mvista.com>
9744
aaa38bb5 9745 Fix part of PR gdb/267.
003d6d1d
DJ
9746 * linespec.c (find_methods): Handle constructors specially for now.
9747
6b230f1b
CV
97482002-02-14 Corinna Vinschen <vinschen@redhat.com>
9749
9750 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9751 handling.
9752 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9753 standard_coerce_float_to_double().
9754
1ea98d12
CF
97552002-02-14 Christopher Faylor <cgf@redhat.com>
9756
9757 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9758 GDBINIT_FILENAME.
9759
dd47e6fd
EZ
97602002-02-14 Elena Zannoni <ezannoni@redhat.com>
9761
9762 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9763 find_variant_by_name, because it confuses the multiarch
9764 framework. Return NULL if there isn't an architecture with the
9765 user supplied name, instead of forcing a different one without
9766 recording the change with the multiarch machinery.
9767 (find_variant_by_name): Delete.
9768
d7e39b9e
PS
97692002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9770
9771 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9772 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9773
76e42a4f
MH
97742002-02-13 Martin M. Hunt <hunt@redhat.com>
9775
aaa38bb5 9776 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9777 print_frame_info_listing_hook, set current_source_symtab.
9778
0a30fbc4
DJ
97792002-02-14 Daniel Jacobowitz <drow@mvista.com>
9780
9781 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9782 and remove unused $(INCLUDE_DIR).
9783 Add regcache.c to OBS.
9784 Add generated register protocol files to clean target.
9785 Update dependencies for new objects, obsolete old target code.
9786
9787 * gdbserver/linux-low.c: Remove all platform-specific code to
9788 new files. Remove various dead code. Update to use regcache
9789 functionality.
9790 * gdbserver/remote-utils.c (fromhex): Add return statement
9791 to quiet warning.
9792 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9793 constant.
9794 (input_interrupt): Add integer parameter to match prototype
9795 of a signal handler.
9796 (outreg): Use register_data ().
9797 (prepare_resume_reply): Use gdbserver_expedite_regs.
9798 * gdbserver/server.c (main): Dynamically allocate own_buf because
9799 PBUFSIZ is no longer constant. Use registers_to_string () and
9800 registers_from_string ().
9801 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9802 for error (), fatal (), and warning (). Update definition of
9803 PBUFSIZ to use regcache functionality. Add include guard.
9804 * gdbserver/utils.c (fatal): Add missing ``const''.
9805 (warning): New function.
9806
9807 * regformats/regdat.sh: Include "regcache.h" in generated files.
9808 Provide init_registers () function.
9809 * regformats/regdef.h: Add prototype for set_register_cache ().
9810 Add include guard.
9811
9812 * gdbserver/linux-arm-low.c: New file.
9813 * gdbserver/linux-i386-low.c: New file.
9814 * gdbserver/linux-ia64-low.c: New file.
9815 * gdbserver/linux-m68k-low.c: New file.
9816 * gdbserver/linux-mips-low.c: New file.
9817 * gdbserver/linux-ppc-low.c: New file.
9818 * gdbserver/linux-sh-low.c: New file.
9819
9820 * gdbserver/regcache.c: New file.
9821 * gdbserver/regcache.h: New file.
9822
9823 * gdbserver/low-linux.c: Removed obsolete file.
9824
4cc841d0
DJ
98252002-02-14 Daniel Jacobowitz <drow@mvista.com>
9826
9827 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9828 * config/i386/linux.mt: Likewise.
9829 * config/ia64/linux.mt: Likewise.
9830 * config/m68k/linux.mh: Likewise.
9831 * config/powerpc/linux.mh: Likewise.
9832 * config/mips/linux.mt: Likewise.
9833
9834 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9835
9836 * config/i386/i386lynx.mh: Mark gdbserver variables
9837 as (currently) obsolete for this target.
9838 * config/i386/nbsd.mt: Likewise.
9839 * config/i386/nbsdelf.mt: Likewise.
9840 * config/m32r/m32r.mt: Likewise.
9841 * config/m68k/m68klynx.mh: Likewise.
9842 * config/m68k/nbsd.mt: Likewise.
9843 * config/m68k/sun3os4.mh: Likewise.
9844 * config/mips/vr5000.mt: Likewise.
9845 * config/ns32k/nbsd.mt: Likewise.
9846 * config/pa/hppabsd.mh: Likewise.
9847 * config/pa/hppaosf.mh: Likewise.
9848 * config/powerpc/nbsd.mt: Likewise.
9849 * config/rs6000/rs6000lynx.mh: Likewise.
9850 * config/s390/s390.mt: Likewise.
9851 * config/s390/s390x.mt: Likewise.
9852 * config/sparc/sparclynx.mh: Likewise.
9853 * config/sparc/sun4os4.mh: Likewise.
9854 * config/i386/x86-64linux.mt: Likewise.
9855 * config/sparc/linux.mh: Likewise.
9856
a85f51e7
DJ
98572002-02-14 Daniel Jacobowitz <drow@mvista.com>
9858
9859 * configure.tgt: Configure gdbserver only for known working
9860 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9861 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9862 SUBDIRS if it is configured. Update comment for ${nativefile}.
9863 * configure: Regenerated.
9864
65554fef
MS
98652002-02-13 Michael Snyder <msnyder@redhat.com>
9866
670a52db
MS
9867 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9868
6dbdc4a3
MS
9869 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9870 (default_gcore_mach): Just return 0, work around a problem in bfd.
9871 (default_gcore_target): OK to return NULL if exec_bfd is null.
9872 (make_mem_sec): Use a cast, avoid a warning.
9873
9874 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9875 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9876 sizeof (host pointer) != sizeof (target pointer)).
9877 (procfs_make_note_section): Avoid overflow in psargs string.
9878
aaa38bb5 9879 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9880 implementation return an error.
9881
98822002-02-13 Rodney Brown <rbrown64@csc.com.au>
9883
9884 * procfs.c (procfs_make_note_section): Provide a default definition
9885 (for alpha-dec-osf4.0f). Fix typos.
9886
1e4d76e7
EZ
98872002-02-13 Elena Zannoni <ezannoni@redhat.com>
9888
9889 * linux-proc.c: Add include of regcache.h.
9890 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9891
b6d1a1d5
AC
98922002-02-13 Andrew Cagney <ac131313@redhat.com>
9893
9894 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9895 * memattr.c (create_mem_region): Disallow useless empty region.
9896 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9897 non-overlapping.
b6d1a1d5 9898
6c6ea35e
MC
98992002-02-13 Michael Chastain <mec@shout.net>
9900
9901 * defs.h: Kill CONST_PTR.
9902 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9903 * c-lang.c (c_builtin_types): Likewise.
9904 * ch-lang.c (ch_builtin_types): Likewise.
9905 * f-lang.c (f_builtin_types): Likewise.
9906 * language.c (unknown_builtin_types): Likewise.
9907 * m2-lang.c (m2_builtin_types): Likewise.
9908 * p-lang.c (pascal_builtin_types): Likewise.
9909 * scm-lang.c (c_builtin_types): Likewise.
9910
3e0b0f48
KS
99112002-02-13 Keith Seitz <keiths@redhat.com>
9912
9913 * arm-tdep.h (arm_get_next_pc): Add declaration.
9914
67255d04
RE
99152002-02-13 Richard Earnshaw <rearnsha@arm.com>
9916
9917 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9918 with other related struct-returning functions.
9919 (arm_extract_struct_value_address): New function.
9920 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9921 initialize float_format, double_format and long_double_format as
9922 appropriate to the endianness of the target.
9923 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9924 (arm_use_struct_convention): Delete declaration.
9925 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9926
079777f6
KS
99272002-02-13 Keith Seitz <keiths@redhat.com>
9928
9929 * defs.h (core_addr_to_string_nz): New function.
9930
34588f23
MK
99312002-02-13 Mark Kettenis <kettenis@gnu.org>
9932
9933 Apply missing bits of 2002-01-15 patch.
9934 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9935 (fill_fpregset): Use i387_fill_fsave.
9936
49b563f9
KS
99372002-02-12 Keith Seitz <keiths@redhat.com>
9938
49b563f9
KS
9939 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9940 (core_addr_to_string_nz): New function.
9941
aeb98c60
RE
99422002-02-11 Richard Earnshaw <rearnsha@arm.com>
9943
9944 * arm-linux-nat.c: Really include arm-tdep.h.
9945 * config/arm/tm-linux.h (struct type, struct value): Declare.
9946
65554fef
MS
99472002-02-11 Michael Snyder <msnyder@redhat.com>
9948
9949 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9950 (gcore section): Ifdef for Solaris and Unixware only.
9951 (procfs_do_thread_registers): Unixware needs one lwpstatus
9952 per thread (not one prstatus or pstatus).
9953 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9954 not over all gdb threads. For unixware, call elfcore_write_pstatus
9955 once before iterating over threads.
9956
34e8f22d
RE
99572002-02-11 Richard Earnshaw <rearnsha@arm.com>
9958
9959 * arm-tdep.h: New file.
9960 * arm-tdep.c: Include arm-tdep.h.
9961 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9962 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9963 (arm_print_float_info, arm_register_type, convert_to_extended)
9964 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9965 (arm_extract_return_value, arm_register_name): Make static.
9966 (arm_software_single_step): Similarly. Fix types in declaration.
9967 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9968 (arm_store_return_value, arm_store_struct_return): New functions.
9969 (arm_gdbarch_init): Register the above functions. Also register
9970 call_dummy_start_offset, sizeof_call_dummy_words,
9971 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9972 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9973 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9974 prologue_cache.saved_regs here, rather than ...
9975 (_initialize_arm_tdep): ... here.
9976 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9977 declarations.
9978 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9979 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9980 (arm_print_float_info, arm_register_type, convert_to_extended)
9981 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9982 (arm_extract_return_value, arm_register_name): Delete declarations.
9983 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9984 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9985 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9986 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9987 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9988 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9989 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9990 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9991 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9992 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9993 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9994 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9995 interface.
9996 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9997 * remote-rdi.c remote-rdp.c: Likewise.
9998 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9999 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10000 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10001 definition.
10002
10003 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10004 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10005 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10006 from non-ARM_ prefixed definitions.
10007 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10008 all uses of above.
10009 * remote-rdi.c remote-rdp.c: Likewise.
10010 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10011
148754e5
RE
100122002-02-11 Richard Earnshaw <rearnsha@arm.com>
10013
10014 * arm-tdep.c (arm_frameless_function_invocation)
10015 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10016 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10017 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10018 (arm_pop_frame, arm_get_next_pc): Make static.
10019 (arm_gdbarch_init): Register above in gdbarch structure.
10020 (arm_read_fp): Renamed from arm_target_read_fp.
10021 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10022 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10023 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10024 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10025 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10026 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10027 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
10028 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10029 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10030 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10031 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 10032
434d2d4f
DJ
100332002-02-10 Daniel Jacobowitz <drow@mvista.com>
10034
10035 * symtab.c (compare_search_syms): New function.
10036 (sort_search_symbols): New function.
10037 (search_symbols): Sort symbols after searching rather than
10038 before.
10039
55241689
AC
100402002-02-10 Andrew Cagney <ac131313@redhat.com>
10041
10042 * NEWS: Linux -> GNU/Linux.
10043
028c194b
AC
100442002-02-10 Andrew Cagney <ac131313@redhat.com>
10045
10046 * gdbarch.sh: For for level one methods, disallow a definition
10047 when partially multi-arched. Add comments explaining rationale.
10048 * gdbarch.h: Re-generate.
10049
6acf50cd
AC
100502002-02-10 Andrew Cagney <ac131313@redhat.com>
10051
10052 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10053 multi-arch partial.
aaa38bb5 10054
50248794
AC
100552002-02-10 Andrew Cagney <ac131313@redhat.com>
10056
10057 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10058 field. Use diff -u.
10059 * gdbarch.c: Re-generate.
10060
c30e0066
AC
100612002-02-10 Andrew Cagney <ac131313@redhat.com>
10062
9b56c5f3 10063 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
10064 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10065 partial.
10066
6e6d6484
AC
100672002-02-10 Andrew Cagney <ac131313@redhat.com>
10068
10069 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10070 multi-arch partial.
10071 (PUSH_ARGUMENTS): Switch to using predefault.
10072 * gdbarch.c: Regenerate.
10073
c203844d
AC
100742002-02-10 Andrew Cagney <ac131313@redhat.com>
10075
10076 * valops.c (PUSH_ARGUMENTS): Delete definition.
10077 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10078 partial. Default to default_push_arguments.
10079 * gdbarch.h, gdbarch.c: Regenerate.
10080
b5a2688f
AC
100812002-02-09 Andrew Cagney <ac131313@redhat.com>
10082
10083 * defs.h (throw_exception): Rename return_to_top_level. Update
10084 comments.
10085 * utils.c (error_stream, internal_verror, quit): Ditto.
10086 * top.c (throw_exception, catcher): Ditto.
10087 * sparclet-rom.c (sparclet_load): Ditto.
10088 * remote.c (interrupt_query, minitelnet): Ditto.
10089 * remote-sds.c (interrupt_query): Ditto.
10090 * remote-mips.c (mips_error, mips_kill): Ditto.
10091 * ocd.c (interrupt_query): Ditto.
10092 * monitor.c (monitor_interrupt_query): Ditto.
10093 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10094 * target.h: Update comment.
aaa38bb5 10095
b5a2688f 10096 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 10097
2fa5c1e0
AC
100982002-02-09 Andrew Cagney <ac131313@redhat.com>
10099
10100 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10101 default_double_format.
10102 * gdbarch.h, gdbarch.c: Re-generate.
10103 * findvar.c (floatformat_unknown): Delete variable definition.
10104 * doublest.h (floatformat_unknown): Delete variable declaration.
10105
da966255
JB
101062002-02-09 Jim Blandy <jimb@redhat.com>
10107
10108 * stabsread.c (read_type): Add code to parse Sun's syntax for
10109 prototyped function types.
10110
123a4891
AC
101112002-02-09 Andrew Cagney <ac131313@redhat.com>
10112
10113 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10114 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10115
fb39c8f3
PS
101162002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10117
10118 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10119 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10120 now _initialize_xcoffsolib gets called again and overrides the
10121 commands from solib.c in a native configuration.
10122
0b87a11d
MK
101232002-02-09 Mark Kettenis <kettenis@gnu.org>
10124
10125 * doublest.c (store_typed_floating): Don't try to return a value.
10126 Fixes PR gdb/290.
10127
bdc2fc72
JB
101282002-02-08 Jim Blandy <jimb@redhat.com>
10129
10130 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10131 is prototyped and has no arguments, print its argument list as
10132 `(void)'.
10133
da69bbcf
CD
101342002-02-08 Chris Demetriou <cgd@broadcom.com>
10135
10136 * MAINTAINERS (write-after-approval): Add myself.
10137 (paper-trail): I've escaped!
aaa38bb5 10138
b69571f5
CF
101392002-02-08 Christopher Faylor <cgf@redhat.com>
10140
10141 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10142 changes.
10143 (_initialize_check_for_gdb_ini): Ditto.
10144
f6871398
MH
101452002-02-08 Martin M. Hunt <hunt@redhat.com>
10146
10147 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10148 xaprintf -> xasprintf.
10149
4e52d31c
PM
101502002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10151
10152 * win32-nat.c: Remove use of printf and sprintf functions.
10153
39bbf761
RE
101542002-02-08 Richard Earnshaw <rearnsha@arm.com>
10155
10156 * arm-tdep.c (arm_frame_chain_valid): Make static.
10157 (arm_push_arguments): Likewise.
10158 (arm_gdbarch_init): New function.
10159 (_initialize_arm_tdep): Call it.
10160 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10161 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10162 (FRAME_CHAIN_VALID): Delete.
10163 (arm_frame_chain_valid): Delete declaration.
10164 (PUSH_ARGUMENTS): Delete.
10165 (arm_push_arguments): Delete declaration.
10166 (CALL_DUMMY_P): Delete.
10167
9c9532c9
CV
101682002-02-08 Andrew Cagney <ac131313@redhat.com>
10169 Corinna Vinschen <vinschen@redhat.com>
10170
10171 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10172 on builtin float types.
10173
4e8f7a8b
DJ
101742002-02-08 Daniel Jacobowitz <drow@mvista.com>
10175
10176 * utils.c: Include <curses.h> before "bfd.h".
10177 * tui/tui-hooks.c: Likewise.
10178 * tui/tui.c: Likewise.
10179 * tui/tuiCommand.c: Likewise.
10180 * tui/tuiData.c: Likewise.
10181 * tui/tuiDataWin.c: Likewise.
10182 * tui/tuiDisassem.c: Likewise.
10183 * tui/tuiGeneralWin.c: Likewise.
10184 * tui/tuiIO.c: Likewise.
10185 * tui/tuiLayout.c: Likewise.
10186 * tui/tuiRegs.c: Likewise.
10187 * tui/tuiSource.c: Likewise.
10188 * tui/tuiSourceWin.c: Likewise.
10189 * tui/tuiStack.c: Likewise.
10190 * tui/tuiWin.c: Likewise.
10191
cd4bffcf
EZ
101922002-02-07 Elena Zannoni <ezannoni@redhat.com>
10193
10194 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10195 to include space for pseudoregs as well. Update loops accordingly.
10196 (sh_fp_frame_init_saved_regs): Ditto.
10197 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10198
26806ce2
AC
101992002-02-07 Andrew Cagney <ac131313@redhat.com>
10200
10201 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10202 Add Richard Earnshaw to Arm maintainers.
10203
97fdab62
AC
102042002-02-07 Andrew Cagney <ac131313@redhat.com>
10205
a6b98203
AC
10206 * defs.h (warning_begin): Delete declaration.
10207
97fdab62
AC
10208 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10209 Delete macro.
10210
78b29b40
MS
102112002-02-07 Michael Snyder <msnyder@redhat.com>
10212
aaa38bb5 10213 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10214 Logic bug, remove misplaced else.
10215
d8849953
KD
102162002-02-07 Klee Dienes <klee@apple.com>
10217
10218 * fork-inferior.c (fork_inferior): Add '!' to the list of
10219 characters that need to be quoted when building a string for the
10220 shell. Quote '!' specifically with a backslash, since CSH chokes
10221 when trying to evaluate "str!str".
aaa38bb5 10222
095778a0
NC
102232002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10224
10225 * rdi-share/host.h: Only provide a typedef for bool if it is not
10226 defined.
10227
1900040c
MS
102282002-02-04 Michael Snyder <msnyder@redhat.com>
10229
10230 * breakpoint.h (enum bptype): Add new overlay event bp type.
10231 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10232
1900040c
MS
10233 * breakpoint.c (create_internal_breakpoint): New function.
10234 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10235 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10236 (create_thread_event_breakpoint): Ditto.
10237 (create_solib_event_breakpoint): Ditto.
10238 (create_overlay_event_breakpoint): New function.
10239 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10240 (update_breakpoints_after_exec): Delete and re-initialize
10241 overlay event breakpoints after an exec. Add FIXME comment
10242 about longjmp breakpoint.
10243 (print_it_typical): Ignore overlay event breakpoints.
10244 (print_one_breakpoint): Ditto.
10245 (mention): Ditto.
10246 (bpstat_what): Do not stop for overlay event breakpoints.
10247 (delete_breakpoint): Don't delete overlay event breakpoints.
10248 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10249 (breakpoint_re_set): Re-create overlay event breakpoint.
10250
10251 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10252 (overlay_manual_command): Disable overlay breakpoints.
10253 (overlay_off_command): Disable overlay breakpoints.
10254
082fc60d
RE
102552002-02-06 Richard Earnshaw <rearnsha@arm.com>
10256
10257 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10258 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10259 to here from config/tm-arm.h.
10260 (coff_sym_is_thumb): Make static.
10261 (arm_elf_make_msymbol_special): New function.
10262 (arm_coff_make_msymbol_special): New function.
10263 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10264 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10265 (coff_sym_is_thumb): Delete declaration.
10266 (arm_elf_make_msymbol_special): Declare.
10267 (arm_coff_make_msymbol_special): Declare.
10268 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10269 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10270
039c5766
RE
102712002-02-06 Richard Earnshaw <rearnsha@arm.com>
10272
10273 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10274
102752002-02-06 Richard Earnshaw <rearnsha@arm.com>
10276
10277 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10278 * gdbarch.c gdbarch.h: Regenerate.
10279 * arch-utils.c (default_print_float_info): New function.
10280 * arch-utils.h (default_print_float_info): Prototype it.
10281 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10282 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10283 (PRINT_FLOAT_INFO): Document it.
10284
10285 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10286 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10287 (PRINT_FLOAT_INFO): Define.
10288
58fa08f0
PM
102892002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10290
aaa38bb5 10291 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10292 Add typecast to sprintf argument to suppress a warning.
10293
7393af7c
PM
102942002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10295
58fa08f0 10296 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10297 to allow easier handling of pass state.
10298 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10299 that gives exception name and address.
10300 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10301 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10302 exceptions added.
aaa38bb5
AJ
10303 (child_continue): Correctly report continue_status.
10304 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10305 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10306 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10307 the exception should be passed to debuggee or not.
10308
6af4589c
MS
103092002-02-05 Michael Snyder <msnyder@redhat.com>
10310
10311 * regcache.c (fetch_register): Call target_fetch_register
10312 only if we don't call FETCH_PSEUDO_REGISTER.
10313 (store_register): Call target_store_register only if we
10314 don't call STORE_PSEUDO_REGISTER.
10315
a2cf933a
EZ
103162002-02-05 Elena Zannoni <ezannoni@redhat.com>
10317
10318 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10319 ELF_MAKE_MSYMBOL_SPECIAL.
10320 * gdbarch.c, gdbarch.h: Regenerate.
10321 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10322 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10323 * elfread.c (elf_symtab_read): Compile use of
10324 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10325 multiarched.
10326 * coffread.c (coff_symtab_read): Ditto, for
10327 COFF_MAKE_MSYMBOL_SPECIAL.
10328
6bb7be43
JB
103292002-02-05 Jim Blandy <jimb@redhat.com>
10330
10331 * solib-svr4.c (svr4_truncate_ptr): New function.
10332 (svr4_relocate_section_addresses): Do the address arithmetic with
10333 the appropriate truncation for target addresses, even when
10334 CORE_ADDR is larger than a target address.
10335
e18651ec
DJ
103362002-02-05 Daniel Jacobowitz <drow@mvista.com>
10337
10338 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10339 to (int *).
10340
6b2725be
DJ
103412002-02-05 Daniel Jacobowitz <drow@mvista.com>
10342
10343 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10344 code.
10345
fca9e603
DJ
103462002-02-05 Daniel Jacobowitz <drow@mvista.com>
10347
10348 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10349
6c537a52
DJ
103502002-02-05 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * gdbserver/linux-low.c: Remove unused include files.
10353
d844cde6
DJ
103542002-02-05 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10357 (read_inferior_memory): Use it.
10358 (write_inferior_memory): Likewise.
10359
d07c63e7
DJ
103602002-02-05 Daniel Jacobowitz <drow@mvista.com>
10361
10362 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10363 grubbing through sys_errlist.
10364
da6d8c04
DJ
103652002-02-05 Daniel Jacobowitz <drow@mvista.com>
10366
10367 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10368
5b421780
PM
103692002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10370 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10371
9f60d481
AC
103722002-02-04 Andrew Cagney <ac131313@redhat.com>
10373
10374 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10375 (do_sfunc, set_cmd_sfunc): New functions.
10376
10377 * command.h (struct cmd_list_element): Add field func.
10378 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10379 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10380 * cli/cli-decode.h: Ditto.
10381
10382 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10383 (help_all, help_cmd_list): Ditto.
10384 (find_cmd, complete_on_cmdlist): Ditto.
10385 * top.c (execute_command): Ditto.
10386
10387 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10388 function.sfunc.
10389
10390 * infcmd.c (notice_args_read): Fix function signature.
10391
10392 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10393 * cli/cli-decode.c (add_set_cmd): Ditto.
10394 * utils.c (initialize_utils): Ditto.
10395 * maint.c (_initialize_maint_cmds): Ditto.
10396 * infrun.c (_initialize_infrun): Ditto.
10397 * demangle.c (_initialize_demangler): Ditto.
10398 * remote.c (add_packet_config_cmd): Ditto.
10399 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10400 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10401 * proc-api.c (_initialize_proc_api): Ditto.
10402 * kod.c (_initialize_kod): Ditto.
10403 * valprint.c (_initialize_valprint): Ditto.
10404 * top.c (init_main): Ditto.
10405 * infcmd.c (_initialize_infcmd): Ditto.
10406 * corefile.c (_initialize_core): Ditto.
10407 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10408 * arch-utils.c (initialize_current_architecture): Ditto.
10409 (_initialize_gdbarch_utils): Ditto.
10410 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10411
10412 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10413 * wince.c (_initialize_inftarg): Ditto.
10414 * symfile.c (_initialize_symfile): Ditto.
10415 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10416 * language.c (_initialize_language): Ditto.
10417 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10418
f9ba0717
MS
104192002-02-04 Michael Snyder <msnyder@redhat.com>
10420
10421 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10422
0c74b2a7
DJ
104232002-02-04 Daniel Jacobowitz <drow@mvista.com>
10424
10425 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10426 Add rules for building the register data files.
10427
c638789f
DJ
104282002-02-04 Daniel Jacobowitz <drow@mvista.com>
10429
10430 * regformats/regdat.sh: Add braces to the definition of
10431 expedite_regs_${arch}.
10432
db253027
DJ
104332002-02-04 Daniel Jacobowitz <drow@mvista.com>
10434
10435 * regformats/regdef.h (struct reg): Add comment describing the
10436 requirements for offset and size fields.
10437
206be19c
AS
104382002-02-04 Andreas Schwab <schwab@suse.de>
10439
10440 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10441 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10442
181c1381
RE
104432002-02-04 Richard Earnshaw <rearnsha@arm.com>
10444
10445 * gdbarch.sh (copyright): Update years in generated header.
10446 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10447 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10448 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10449 * dbxread.c: Likewise.
10450 * dwarfread.c: Likewise.
10451 * elfread.c: Likewise.
10452 * somread.c: Likewise.
10453
10454 * arm-tdep.c (arm_smash_text_address): New function.
10455 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10456
fa4ba8da
PM
104572002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10458
10459 Add support for hardware watchpoints on win32 native.
aaa38bb5 10460 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10461 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10462 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10463 of debug registers.
10464 (debug_registers_changed): New variable. Reflects when debug registers
10465 are changed and need to be written to inferior.
aaa38bb5 10466 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10467 was set, used when new threads are created.
10468 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10469 i386-nat code.
10470 (thread_rec): Set dr array if id is the thread of current_event .
10471 (child_continue, child_resume): Change the debug registers for all
10472 threads if debug_registers_changed.
10473 (child_add_thread): Change the debug registers if debug_registers_used.
10474 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10475 Link nm.h to new nm-cygwin.h file.
10476 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10477 of hardware registers.
10478
a73c86fb
AC
104792002-02-03 Andrew Cagney <ac131313@redhat.com>
10480
10481 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10482 Restore behavour broken by 2002-01-20 Andrew Cagney
10483 <ac131313@redhat.com> IEEE_FLOAT removal.
10484
acf5ed49
DJ
104852002-02-03 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * c-valprint.c (c_val_print): Pass a proper valaddr to
10488 cp_print_class_method.
10489 * valops.c (search_struct_method): If there is only one method
10490 and args is NULL, return that method.
10491
493d28d5
DJ
104922002-02-03 Daniel Jacobowitz <drow@mvista.com>
10493
10494 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10495 accessing tag_name directly.
10496
7495dfdb
DJ
104972002-02-03 Daniel Jacobowitz <drow@mvista.com>
10498
10499 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10500 of accessing tag_name directly.
10501
dd6bda65
DJ
105022002-02-03 Daniel Jacobowitz <drow@mvista.com>
10503
10504 PR gdb/280
10505 * gdbtypes.c (replace_type): New function.
10506 * gdbtypes.h (replace_type): Add prototype.
10507 * stabsread.c (read_type): Use replace_type.
10508
88fe217c
RE
105092002-02-03 Richard Earnshaw <rearnsha@arm.com>
10510
10511 * Makefile.in (memattr.o): Add missing dependencies rule.
10512
e5d66720
PS
105132002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10514
10515 * breakpoint.c (break_at_finish_command): Really export.
10516 (break_at_finish_at_depth_command): Ditto.
10517 (tbreak_at_finish_command): Ditto.
10518 * hppa-tdep.c: Include completer.h.
10519 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10520 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10521
fffee0be
AC
105222002-02-01 Andrew Cagney <ac131313@redhat.com>
10523
10524 * utils.c (do_write): New function.
10525 (error_stream): Rewrite combining the code from error_begin and
10526 verror.
10527 (verror): Rewrite using error_stream.
10528 (error_begin): Delete function.
10529
255e7dbf
AC
105302002-02-01 Andrew Cagney <ac131313@redhat.com>
10531
10532 * utils.c (error_begin): Make static.
10533 * defs.h (error_begin): Delete declaration.
10534
10535 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10536 (decode_line_1): Use cplusplus_error instead of error_begin,
10537 cplusplus_hint and return_to_top_level.
10538 * coffread.c (coff_symfile_read): Use error instead of error_begin
10539 and return_to_top_level.
10540 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10541
ddfe3c15
AC
105422002-02-01 Andrew Cagney <ac131313@redhat.com>
10543
10544 * language.h (type_error, range_error): Make string parameter
10545 constant.
10546 * language.c (warning_pre_print): Delete extern declaration.
10547 * dwarfread.c (warning_pre_print): Ditto.
10548 * language.c (type_error, range_error): Rewrite to use verror and
10549 vwarning instead of warning_begin.
10550
03ac34d5
MS
105512002-02-01 Michael Snyder <msnyder@redhat.com>
10552
261c4ca2
MS
10553 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10554 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10555
e00d1dc8
AC
105562002-02-01 Andrew Cagney <ac131313@redhat.com>
10557
10558 * command.h (NO_FUNCTION): Delete macro.
10559 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10560 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10561 * tracepoint.c (_initialize_tracepoint): Ditto.
10562 * cli/cli-decode.c (add_set_cmd): Ditto.
10563 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10564
76b79d6e
DJ
105652002-02-01 Daniel Jacobowitz <drow@mvista.com>
10566
10567 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10568 Update ``this'' pointer when calling virtual functions.
10569
799f9e91
MS
105702002-02-01 Michael Snyder <msnyder@redhat.com>
10571
c7bd442c 10572 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10573 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10574
3cf384d4
DJ
105752002-02-01 Daniel Jacobowitz <drow@mvista.com>
10576
10577 * regformats/reg-arm.dat: New file.
10578 * regformats/reg-i386.dat: New file.
10579 * regformats/reg-ia64.dat: New file.
10580 * regformats/reg-m68k.dat: New file.
10581 * regformats/reg-mips.dat: New file.
10582 * regformats/reg-ppc.dat: New file.
10583 * regformats/reg-sh.dat: New file.
10584 * regformats/regdef.h: New file.
10585 * regformats/regdat.sh: New file.
10586
0defa245
RE
105872002-02-01 Richard Earnshaw <reanrsha@arm.com>
10588
10589 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10590 (arm_frame_args_address, arm_frame_locals_address): New functions.
10591 (arm_frame_num_args): New function.
10592 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10593 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10594 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10595
405f26e6
MS
105962002-01-31 Michael Snyder <msnyder@redhat.com>
10597
502fd408
MS
10598 * breakpoint.c (break_at_finish_command): Export.
10599 (break_at_finish_at_depth_command): Export.
10600 (tbreak_at_finish_command): Export.
d6020d45 10601 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10602 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10603 "txbreak" commands, which are HPPA specific.
502fd408 10604
7d35e135
MS
10605 * printcmd.c (disassemble_command): Remove an ancient
10606 artifact of an old merge.
10607
aaa38bb5 10608 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10609 Define enum constant values for overlay mode.
10610 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10611 (overlay_is_mapped, overlay_auto_command,
10612 overlay_manual_command): Ditto.
d874f1e2 10613
aaa38bb5
AJ
10614 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10615 breakpoint_here_p, breakpoint_inserted_here_p,
10616 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10617 describe_other_breakpoints, check_duplicates, clear_command):
10618 Coding standard fixes.
10619
8add0441 10620 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10621 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10622 code: check bfd SEC_READONLY flag for section.
10623
e351066e
AC
106242002-01-31 Andrew Cagney <ac131313@redhat.com>
10625
7d35e135 10626 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10627
8a48e967
DJ
106282002-01-30 Daniel Jacobowitz <drow@mvista.com>
10629
10630 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10631 data symbols, since we search based on textlow and texthigh.
10632 (find_pc_sect_symtab): Likewise.
10633
f5a96129
AC
106342002-01-30 Andrew Cagney <ac131313@redhat.com>
10635
10636 * defs.h (vwarning): Declare.
f5a96129
AC
10637 * utils.c (vwarning): New function.
10638 (warning): Call vwarning.
10639 (warning_begin): Delete function.
10640
10641 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10642 the warning message.
10643 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10644 warning_begin.
10645
cefd4ef5
MS
106462002-01-30 Michael Snyder <msnyder@redhat.com>
10647
1a703748
MS
10648 * NEWS: Mention "set trust-readonly-sections" command.
10649 Mention generate-core-file command.
cefd4ef5 10650
3a11626d
MS
106512002-01-15 Michael Snyder <msnyder@redhat.com>
10652
10653 * target.c: New command, "set trust-readonly-sections on".
10654 (do_xfer_memory): Honor the suggestion to trust readonly sections
10655 by reading them from the object file instead of from the target.
10656 (initialize_targets): Register command "set trust-readonly-sections".
10657
d1c7e53b
AC
106582002-01-29 Andrew Cagney <ac131313@redhat.com>
10659
10660 * parse.c (target_map_name_to_register): Simplify, search regs and
10661 pseudo-regs using a single loop.
10662
e2c9a72c
AC
106632002-01-30 Andrew Cagney <ac131313@redhat.com>
10664
10665 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10666
69824b4e
MK
106672002-01-15 Rodney Brown <rbrown64@csc.com.au>
10668
10669 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10670 * config/i386/i386v42mp.mh: Add i387-nat.o .
10671 * i386v4-nat.c: Include i387-nat.h.
10672 (supply_fpregset): Use i387_supply_fsave.
10673 (fill_fpregset): Use i387_fill_fsave.
10674
6eb69eab
RE
106752002-01-30 Richard Earnshaw <rearnsha@arm.com>
10676
10677 * arm-tdep.c (arm_call_dummy_words): Define.
10678 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10679 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10680 (CALL_DUMMY_WORDS): Define.
10681 (arm_call_dummy_words): Declare.
10682 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10683 (arm_linux_call_dummy_words): Declare.
10684
9852326a
AS
106852002-01-30 Andreas Schwab <schwab@suse.de>
10686
10687 * m68klinux-nat.c: Fix last change to use regcache_collect
10688 instead of referencing registers[] directly.
10689
977a3030
AC
106902002-01-29 Andrew Cagney <ac131313@redhat.com>
10691
10692 * parse.c (target_map_name_to_register): Delete code wrapped in
10693 #ifdef REGISTER_NAME_ALIAS_HOOK.
10694
2076c72b
MS
106952002-01-28 Michael Snyder <msnyder@redhat.com>
10696
10697 * regcache.c (legacy_read_register_gen): Need to be able to
10698 read pseudo-register as well as real register.
10699 (legacy_write_register_gen): Ditto.
10700
8fcc723b
AC
107012002-01-28 Andrew Cagney <ac131313@redhat.com>
10702
10703 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10704 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10705 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10706 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10707 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10708 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10709 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10710 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10711 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10712 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10713 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10714 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10715 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10716 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10717 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10718 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10719 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10720 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10721 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10722 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10723
afe64c1a
AC
107242002-01-28 Andrew Cagney <ac131313@redhat.com>
10725
10726 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10727 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10728 (initialize_current_architecture): Update target_byte_order using
10729 information from BFD.
aaa38bb5 10730 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10731 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10732
75bc7ddf
AC
107332002-01-28 Andrew Cagney <ac131313@redhat.com>
10734
10735 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10736 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10737
10738 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10739 #ifdef INVALID_FLOAT.
10740 * infcmd.c (do_registers_info): Ditto.
10741 * values.c (unpack_double): Ditto. Add comment.
10742
10743 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10744 already commented out.
10745
0280a90a
AS
107462002-01-26 Andreas Schwab <schwab@suse.de>
10747
10748 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10749 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10750 registers and add support for PTRACE_GETREGS.
10751
7072a954
AC
107522002-01-24 Andrew Cagney <ac131313@redhat.com>
10753
10754 GDB 5.1.1 released from 5.1 branch.
10755 * NEWS: Add 5.1.1 news.
10756 * README: Sync with 5.1 branch.
10757
86f902e0
FF
107582002-01-23 Fred Fish <fnf@redhat.com>
10759
10760 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10761 stabstring on initial malloc. Reallocing will copy it for us,
10762 if necessary.
10763
8af51c36
EZ
107642002-01-23 Elena Zannoni <ezannoni@redhat.com>
10765
aaa38bb5 10766 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10767 (HFILES_NO_SRCDIR): Remove hpread.h.
10768 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10769 (hpread.o): Update dependencies.
10770 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10771
10772 * hp-psymtab-read.c: Remove file.
10773 * hp-symtab-read.c: Remove file.
10774 * hpread.h: Remove file.
10775
10776 * hpread.c: Merge all contents of hp-psymtab-read.c,
10777 hp-symtab-read.c and hpread.h into this file, as it was prior to
10778 January 1999.
10779
10780 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10781 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10782 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10783 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10784
dc5cfeb6
EZ
107852002-01-23 Elena Zannoni <ezannoni@redhat.com>
10786
10787 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10788 fill_gregset): Call gdbarch_tdep() just once, assign result to
10789 variable and use that, instead of calling the function several
10790 times.
10791
ea87b71b
AO
107922002-01-24 Alexandre Oliva <aoliva@redhat.com>
10793
10794 * configure.host: Accept sparcv9 as alias for sparc64.
10795 * configure.tgt: Likewise.
10796
13fc0c2f
KB
107972002-01-22 Kevin Buettner <kevinb@redhat.com>
10798
10799 * solib-aix5.c (build_so_list_from_mapfile)
10800 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10801 arguments is not reversed.
10802 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10803 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10804
7bd872fe
EZ
108052002-01-22 Elena Zannoni <ezannoni@redhat.com>
10806
10807 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10808 modified version of obsolete sh_fetch_pseudo_register.
10809 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10810 (sh4_register_read): New function.
10811 (sh_pseudo_register_write): New function. Renamed and modified
10812 version of obsolete sh_store_pseudo_register.
10813 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10814 (sh4_register_write): New function.
10815 (sh_gdbarch_init): Remove setting of gdbarch function
10816 fetch_pseudo_register and store_pseudo_register. Remove setting of
10817 register_convert_to_raw, register_convert_to_virtual,
10818 register_convertible.
10819 (sh_sh4_register_convertible): Delete. No longer needed. All is
10820 taken care by architecture specific functions
10821 register_read/register_write.
10822 (sh_sh4_register_convert_to_virtual): Make static.
10823 (sh_sh4_register_convert_to_raw): Ditto.
10824
069e84fd
AC
108252002-01-22 Andrew Cagney <ac131313@redhat.com>
10826
10827 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10828 (floatformat_is_nan, floatformat_mantissa): Ditto.
10829
10830 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10831 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10832 builtin_type_ieee_double_little,
10833 builtin_type_ieee_double_littlebyte_bigword,
10834 builtin_type_m68881_ext, builtin_type_i960_ext,
10835 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10836 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10837 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10838 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10839
211a4f69
CV
108402002-01-22 Corinna Vinschen <vinschen@redhat.com>
10841
10842 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10843 parameter. Set frameless flag if it exists and depended of
10844 whether the scanned function is frameless or not.
10845 (xstormy16_skip_prologue): If function is frameless, return
10846 result of xstormy16_scan_prologue().
10847 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10848 call.
10849
f81353e4
EZ
108502002-01-21 Elena Zannoni <ezannoni@redhat.com>
10851
10852 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10853 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10854 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10855 sh_sh4_register_byte, sh_sh4_register_raw_size,
10856 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10857 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10858 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10859 sh_store_pseudo_register, sh_do_pseudo_register): Call
10860 gdbarch_tdep() just once, assign result to variable and use that,
10861 instead of calling the function several times.
10862
63c73a17
MK
108632002-01-20 Mark Kettenis <kettenis@gnu.org>
10864
10865 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10866 macros instead of LAST_FPU_CTRL_REGNUM.
10867 (store_register): Likewise.
10868
39ad761d
JB
108692002-01-21 Jim Blandy <jimb@redhat.com>
10870
10871 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10872 is up-to-date before running the program, not just when a program
10873 exits.
10874
3d74b771
FF
108752002-01-21 Fred Fish <fnf@redhat.com>
10876
10877 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10878 when we have found all instructions we are looking for.
10879
966fbf70
RE
108802002-01-21 Richard Earnshaw <rearnsha@arm.com>
10881
10882 * arm-tdep.c (arm_register_name): New function.
10883 (arm_registers_names): Make static.
10884 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10885 (arm_register_name): Declare.
10886 (REGISTER_NAME): Use it.
10887
c3b4394c
RE
108882002-01-21 Richard Earnshaw <rearnsha@arm.com>
10889 Kevin Buettner <kevinb@redhat.com>
10890
10891 Convert arm targets to new FRAME interface.
10892 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10893 (arm_frame_find_save_regs): Delete.
10894 (arm_frame_init_saved_regs): New.
10895 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10896 Allocate extra_info as required. Convert all uses of fsr.regs
10897 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10898 to use extra_info.
10899 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10900 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10901 (check_prologue_cache, save_prologue_cache): Likewise.
10902 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10903 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10904 (FRAME_FIND_SAVED_REGS): Delete.
10905 (arm_frame_find_saved_regs): Delete prototype.
10906 (arm_frame_init_saved_regs): New prototype.
10907 (FRAME_INIT_SAVED_REGS): Define.
10908
61d99182
AC
109092002-01-20 Andrew Cagney <ac131313@redhat.com>
10910
10911 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10912
6aaea291
AC
109132002-01-20 Andrew Cagney <ac131313@redhat.com>
10914
10915 From Jeff Law <law@redhat.com>:
10916 * infttrace.c: Include <sys/pstat.h>.
10917 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10918 exec file if the ttrace equivalent fails.
10919
15f698d2
AC
109202002-01-20 Andrew Cagney <ac131313@redhat.com>
10921
10922 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10923 (closeLogFile): Ditto.
10924
f86ddd7c
MC
109252002-01-20 Michael Chastain <mec@shout.net>
10926
10927 * top.c (print_gdb_version): Bump copyright year to 2002.
10928
904507ce
AC
109292002-01-20 Andrew Cagney <ac131313@redhat.com>
10930
10931 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10932 Zannoni and Eli Zaretskii.
10933
d7f0b9ce
DJ
109342002-01-20 Daniel Jacobowitz <drow@mvista.com>
10935
10936 * buildsym.c: Update copyright years.
10937 * c-typeprint.c: Likewise.
10938 * dwarf2read.c: Likewise.
10939 * f-typeprint.c: Likewise.
10940 * gdbtypes.c: Likewise.
10941 * gdbtypes.h: Likewise.
10942 * hp-symtab-read.c: Likewise.
10943 * hpread.c: Likewise.
10944 * mdebugread.c: Likewise.
10945 * p-typeprint.c: Likewise.
10946
3fd3d7d2
AC
109472002-01-20 Andrew Cagney <ac131313@redhat.com>
10948
10949 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10950 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10951 byte-order selectable.
10952 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10953 * arch-utils.c: Ditto.
10954 (set_endian): Ditto.
10955 (set_endian_from_file): Ditto.
10956 * gdbserver/low-sim.c (create_inferior): Ditto.
10957 * gdbarch.sh: Ditto.
10958 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10959 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10960 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10961 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10962 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10963 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10964 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10965 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10966 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10967 macro definition.
10968 * config/mips/tm-wince.h: Remove #undef of macro
10969 TARGET_BYTE_ORDER_SELECTABLE.
10970 * config/sh/tm-wince.h: Ditto.
10971
b02dede2
DJ
109722002-01-20 Daniel Jacobowitz <drow@mvista.com>
10973
10974 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10975 member function fields. Add accessor macro
10976 TYPE_FN_FIELD_ARTIFICIAL.
10977 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10978 * c-typeprint.c (c_type_print_base): Skip artificial member
10979 functions.
10980
c3643761
DJ
109812002-01-20 Daniel Jacobowitz <drow@mvista.com>
10982
10983 * f-typeprint.c: Delete unused function f_type_print_args.
10984 * p-typeprint.c: Delete unused function pascal_type_print_args.
10985
8176bb6d
DJ
109862002-01-20 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10989 comment. Add ``artificial'' to ``union field_location''.
10990
10991 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10992
10993 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10994 * mdebugread.c (parse_symbol): Likewise.
10995 * stabsread.c (define_symbol): Likewise.
10996 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10997 initializing TYPE_FIELD_BITPOS to n (obsolete).
10998 (hpread_doc_function_type): Likewise.
10999 * hpread.c (hpread_function_type): Likewise.
11000
7fd60527
AC
110012002-01-20 Andrew Cagney <ac131313@redhat.com>
11002
11003 * configure.in (host_makefile_frag): Only require a host makefile
11004 fragment when a native build.
11005 * configure: Re-generate.
11006
c2f05ac9
AC
110072002-01-20 Andrew Cagney <ac131313@redhat.com>
11008
11009 * doublest.h (floatformat_from_type): Declare.
11010 * doublest.c (floatformat_from_type): New function.
11011 (convert_typed_floating): Use.
11012
11013 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11014 call to function floatformat_from_type.
11015
11016 * gdbarch.sh (IEEE_FLOAT): Delete.
11017 * gdbarch.h, gdbarch.c: Re-generate.
11018 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11019 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11020 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11021 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11022 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11023 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11024 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11025 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11026 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11027 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11028 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
11029 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11030
11031 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11032 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11033 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11034 * sh-tdep.c (sh_gdbarch_init): Ditto.
11035 * mips-tdep.c (mips_gdbarch_init): Ditto.
11036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11037 * cris-tdep.c (cris_gdbarch_init): Ditto.
11038
abf22e64
AJ
110392002-01-20 Jiri Smid <smid@suse.cz>
11040
11041 * configure.host, configure.tgt: Support x86-64.
11042 * NEWS: Note new target x86-64.
11043
b7c4cbf8
AJ
11044 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11045 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11046 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11047 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11048 x86-64-linux-nat.o): Fix dependencies.
11049
82600034
AC
110502002-01-19 Andrew Cagney <ac131313@redhat.com>
11051
11052 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11053 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11054 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11055 * config/sparc/xm-sun4os4.h: Delete file.
11056 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 11057
bbe5c628
AC
110582002-01-19 Andrew Cagney <ac131313@redhat.com>
11059
11060 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11061 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11062 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11063 * config/i386/i386lynx.mh (XM_FILE): Delete.
11064 * config/rs6000/xm-rs6000ly.h: Delete file.
11065 * config/sparc/xm-sparclynx.h: Delete file.
11066 * config/m68k/xm-m68klynx.h: Delete file.
11067 * config/i386/xm-i386lynx.h: Delete file.
11068 * config/xm-lynx.h: Delete file.
11069 * config/djgpp/fnchange.lst: Update.
11070
f8453e34
JT
110712002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11072
11073 * alpha-tdep.c (alpha_register_byte): New function.
11074 (alpha_register_raw_size): Ditto.
11075 (alpha_register_virtual_size): Ditto.
11076 (alpha_skip_prologue_internal): Renamed from
11077 alpha_skip_prologue.
11078 (alpha_skip_prologue): New version that calls
11079 alpha_skip_prologue_internal.
11080 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11081 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11082 second argument from alpha_skip_prologue.
11083 (REGISTER_BYTE): Use alpha_register_byte.
11084 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11085 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11086 (FRAMELESS_FUNCTION_INVOCATION): Use
11087 generic_frameless_function_invocation_not.
11088 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11089 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11090
52d9e613
AC
110912002-01-19 Andrew Cagney <ac131313@redhat.com>
11092
11093 * config/mips/xm-news-mips.h: Delete file.
11094 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11095
11096 * config/m88k/xm-m88k.h: Delete file.
11097 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11098 * config/m88k/xm-delta88v4.h: Ditto.
11099 * config/m88k/xm-delta88.h: Ditto.
11100
11101 * config/alpha/xm-fbsd.h: Delete file.
11102 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11103
11104 * config/sparc/xm-sparc.h: Delete file.
11105 * Makefile.in (xm-sun4os4.h): Delete dependency.
11106 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11107 * config/sparc/xm-sun4os4.h: Ditto.
11108 * config/sparc/xm-linux.h: Ditto.
11109
11110 * config/i386/xm-windows.h: Delete file.
11111
2d1b2124
AC
111122002-01-19 Andrew Cagney <ac131313@redhat.com>
11113
11114 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11115 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11116
ee1f65f0
JT
111172002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11118
11119 * alpha-tdep.c (alpha_call_dummy_words): New.
11120 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11121 (CALL_DUMMY_P): Define.
11122 (CALL_DUMMY_WORDS): Define.
11123 (SIZEOF_CALL_DUMMY_WORDS): Define.
11124
98081e55
PB
111252002-01-19 Per Bothner <per@bothner.com>
11126
11127 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11128 isn't NULL, which can happen with some gcj-3.x-produced code.
11129
0d056799
JT
111302002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11131
11132 * alpha-tdep.c (alpha_register_virtual_type): New function.
11133 (alpha_init_frame_pc_first): Ditto.
11134 (alpha_fix_call_dummy): Ditto.
11135 (alpha_store_struct_return): Ditto.
11136 (alpha_extract_struct_value_address): Ditto.
11137 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11138 alpha_register_virtual_type.
11139 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11140 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11141 alpha_extract_struct_value_address.
11142 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11143 (INIT_FRAME_PC): Use init_frame_pc_noop.
11144 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11145
4604bcad
MK
111462002-01-19 Mark Kettenis <kettenis@gnu.org>
11147
11148 * i386gnu-nat.c: Include "i386-tdep.h".
11149 (fetch_fpregs): Simplify code dealing with uninitialized floating
11150 point states such that it doesn't require FP7_REGNUM.
11151
140f9984
JT
111522002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11153
abf22e64
AJ
11154 * alpha-tdep.c (frame_extra_info): New.
11155 (alpha_find_saved_regs): Make static. Use
140f9984
JT
11156 frame->extra_info.
11157 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
11158 (alpha_frame_saved_pc): Use frame->extra_info.
11159 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11160 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
11161 (init_extra_frame_info): Rename to...
11162 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 11163 (alpha_print_extra_frame_info): New function.
140f9984
JT
11164 (alpha_frame_locals_address): Ditto.
11165 (alpha_frame_args_address): Ditto.
abf22e64 11166 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
11167 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11168 alpha_frame_args_address.
abf22e64 11169 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 11170 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
11171 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11172 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
11173 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11174 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11175
d734c450
JT
111762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11177
11178 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11179 (alpha_cannot_fetch_register): Ditto.
11180 (alpha_cannot_store_register): Ditto.
11181 (alpha_register_convertible): Ditto.
11182 (alpha_use_struct_convention): Ditto.
11183 * config/alpha/tm-alpha.h: Update copyright years.
11184 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11185 (INNER_THAN): Use core_addr_lessthan.
11186 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11187 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11188 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11189 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11190 (FRAME_CHAIN): Remove unnecessary cast.
11191
b4ceaee6
AC
111922002-01-18 Andrew Cagney <ac131313@redhat.com>
11193
11194 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11195 obsolete.
11196
0a65a603
AC
111972002-01-18 Andrew Cagney <ac131313@redhat.com>
11198
11199 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11200 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11201 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11202 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11203 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11204 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11205 * x86-64-linux-nat.c: Ditto.
11206
636a6dfc
JT
112072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11208
abf22e64 11209 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11210 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11211 (REGISTER_NAME): Define.
11212
acceddb6
JT
112132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11214
11215 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11216
ec32e4be
JT
112172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11218
11219 * alpha-tdep.c: Update copyright years.
11220 (alpha_next_pc): New function.
11221 (alpha_software_single_step): Ditto.
11222 * config/alpha/tm-alpha.h: Add prototype for
11223 alpha_software_single_step.
11224
e771a871
JT
112252002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11226
11227 * alphabsd-nat.c: Update copyright years.
11228 (fill_gregset): Use regcache_collect.
11229 (fill_fpregset): Likewise.
11230 (fetch_inferior_registers): Only fetch integer registers
11231 if requested to do so.
11232 (store_inferior_registers): Only store integer registers
11233 if requested to do so.
11234
7708fa01
AC
112352002-01-17 Andrew Cagney <ac131313@redhat.com>
11236
11237 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11238 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11239 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11240 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11241 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11242 * config/arm/linux.mh (XDEPFILES): Delete.
11243 * config/arm/nbsd.mh (XDEPFILES): Delete.
11244 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11245 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11246 * config/i386/i386m3.mh (XDEPFILES): Delete.
11247 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11248 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11249 * config/i386/fbsd.mh (XDEPFILES): Delete.
11250 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11251 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11252 * config/i386/i386v4.mh (XDEPFILES): Delete.
11253 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11254 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11255 * config/i386/i386aix.mh (XDEPFILES): Delete.
11256 * config/i386/go32.mh (XDEPFILES): Delete.
11257 * config/i386/cygwin.mh (XDEPFILES): Delete.
11258 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11259 * config/i386/i386mach.mh (XDEPFILES): Delete.
11260 * config/i386/i386v32.mh (XDEPFILES): Delete.
11261 * config/i386/linux.mh (XDEPFILES): Delete.
11262 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11263 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11264 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11265 * config/i386/i386sco.mh (XDEPFILES): Delete.
11266 * config/i386/i386v.mh (XDEPFILES): Delete.
11267 * config/i386/nbsd.mh (XDEPFILES): Delete.
11268 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11269 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11270 * config/i386/symmetry.mh (XDEPFILES): Delete.
11271 * config/i386/obsd.mh (XDEPFILES): Delete.
11272 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11273 * config/ia64/linux.mh (XDEPFILES): Delete.
11274 * config/ia64/aix.mh (XDEPFILES): Delete.
11275 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11276 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11277 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11278 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11279 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11280 * config/m68k/linux.mh (XDEPFILES): Delete.
11281 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11282 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11283 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11284 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11285 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11286 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11287 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11288 * config/m88k/delta88.mh (XDEPFILES): Delete.
11289 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11290 * config/m88k/m88k.mh (XDEPFILES): Delete.
11291 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11292 * config/mips/linux.mh (XDEPFILES): Delete.
11293 * config/mips/irix6.mh (XDEPFILES): Delete.
11294 * config/mips/irix5.mh (XDEPFILES): Delete.
11295 * config/mips/irix4.mh (XDEPFILES): Delete.
11296 * config/mips/irix3.mh (XDEPFILES): Delete.
11297 * config/mips/decstation.mh (XDEPFILES): Delete.
11298 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11299 (NATDEPFILES): Move core-aout.o to here.
11300 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11301 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11302 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11303 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11304 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11305 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11306 * config/pa/hpux11.mh (XDEPFILES): Delete.
11307 * config/powerpc/aix.mh (XDEPFILES): Delete.
11308 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11309 * config/powerpc/linux.mh (XDEPFILES): Delete.
11310 * config/romp/rtbsd.mh: Rename XDEPFILES.
11311 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11312 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11313 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11314 * config/s390/s390.mh (XDEPFILES): Delete.
11315 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11316 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11317 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11318 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11319 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11320 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11321 * config/sparc/linux.mh (XDEPFILES): Delete.
11322 * config/vax/vaxult.mh (XDEPFILES): Delete.
11323 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11324 * Makefile.in (DEPFILES): Remove XDEPFILES.
11325
375fc983
AC
113262002-01-17 Andrew Cagney <ac131313@redhat.com>
11327
11328 * utils.c (internal_verror): Fix comments, default is yes not no.
11329 Update queries to match. Default to quit and dump core.
11330
8926118c
AC
113312002-01-17 Andrew Cagney <ac131313@redhat.com>
11332
11333 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11334 copyright.
11335 * defs.h, event-top.c, gdbcmd.h: Ditto.
11336 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11337 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11338 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11339 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11340 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11341 * mi/mi-main.c:Ditto.
11342
11343 * stack.c, symfile.c: Update copyright.
11344
45b7b345
DJ
113452002-01-17 Daniel Jacobowitz <drow@mvista.com>
11346
db728ff7
DJ
11347 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11348 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11349 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11350 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11351
db728ff7
DJ
113522002-01-17 Daniel Jacobowitz <drow@mvista.com>
11353
11354 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11355 * gdbserver/low-lynx.c (myattach): Likewise.
11356 * gdbserver/low-nbsd.c (myattach): Likewise.
11357 * gdbserver/low-sim.c (myattach): Likewise.
11358 * gdbserver/low-sparc.c (myattach): Likewise.
11359 * gdbserver/low-sun3.c (myattach): Likewise.
11360
11361 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11362
db728ff7 11363 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11364 (main): Handle "--attach".
11365
8de3c354
AC
113662002-01-16 Andrew Cagney <ac131313@redhat.com>
11367
11368 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11369 maintainer.
11370
b0129042
DJ
113712002-01-15 Daniel Jacobowitz <drow@mvista.com>
11372
11373 * c-typeprint.c (is_type_conversion_operator): Add additional
11374 check for non-conversion operators.
11375
ba8679fb 113762002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11377
11378 * linux-proc.c: Add "info proc" command, a la procfs.c.
11379 (read_mapping): New function, abstract and re-use code.
11380 (linux_find_memory_regions): Use new func read_mapping.
11381 (linux_info_proc_cmd): New function, implement "info proc".
11382 (_initialize_linux_proc): Add new command "info proc".
11383
e4f9b4d5
MS
113842002-01-15 Michael Snyder <msnyder@redhat.com>
11385
11386 * symfile.c (generic_load): Use bfd_map_over_sections method
11387 instead of manipulating bfd structure members directly.
11388 (add_section_size_callback): New function, bfd sections callback
11389 used by generic_load.
11390 (load_sections_callback): New function, bfd sections callback
11391 used by generic_load.
11392
08cf96df
EZ
113932002-01-15 Elena Zannoni <ezannoni@redhat.com>
11394
abf22e64 11395 [Based on work by Jim Blandy]
08cf96df
EZ
11396 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11397 (builtin_type_vec128): Export.
11398 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11399 types.
11400 (builtin_type_vec128): New builtin type for 128 bit vector
11401 registers.
11402 (build_gdbtypes): Initialize builtin_type_v16qi and
11403 builtin_type_v8hi. Create the vec128 register builtin type
11404 structure.
11405 (build_builtin_type_vec128): New function.
abf22e64 11406 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11407 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11408 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11409 AltiVec register to new builtin type.
11410
d7242108
DJ
114112001-01-15 Daniel Jacobowitz <drow@mvista.com>
11412
11413 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11414 to make_cv_type.
11415
4ee3352d
AC
114162002-01-14 Andrew Cagney <ac131313@redhat.com>
11417
11418 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11419 CLEAN_UP_REGISTER_VALUE.
11420 * regcache.c (supply_register): Update only call.
11421
f015b2e7
AC
114222002-01-14 Andrew Cagney <ac131313@redhat.com>
11423
11424 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11425 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11426 a29k-*-vxworks* targets as obsolete.
11427
356ae49d
MS
114282002-01-14 Michael Snyder <msnyder@redhat.com>
11429
11430 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11431 until we can resolve portability issues.
11432 * gregset.h: Remove references to fpxregs.
11433 * gcore.c (gcore_command): Initialize note_sec to NULL.
11434
ade8f45e
AC
114352002-01-13 Andrew Cagney <ac131313@redhat.com>
11436
11437 * signals.c (target_signal_to_name): Rewrite. Only use
11438 signals[].name when in bounds and non-NULL.
abf22e64 11439
89c49e7a
AC
114402002-01-13 Andrew Cagney <ac131313@redhat.com>
11441
11442 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11443 * signals.c (target_signal_to_name): Verify that SIG is within the
11444 bounds of the signals array.
11445
4daa9f9f
AC
114462002-01-13 Andrew Cagney <ac131313@redhat.com>
11447
11448 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11449
ba4bbdcb
KS
114502002-01-13 Keith Seitz <keiths@redhat.com>
11451
11452 * stack.c (print_frame_info_base): Print the frame's pc
11453 only if when print_frame_info_listing_hook is not defined.
11454
575bbeb6
KS
114552002-01-13 Keith Seitz <keiths@redhat.com>
11456
11457 * varobj.c (varobj_set_value): Make sure that there were no
11458 errors evaluating the object before attempting to set its
11459 value.
11460 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11461 so this offset adjustment is no longer necessary.
11462 (create_child): Don't set the error flag if the child is
11463 a CPLUS_FAKE_CHILD.
11464 (value_of_child): If value_fetch_lazy fails, return NULL
11465 so that callers will be notified that an error occurred.
11466 (c_value_of_variable): Delay check of variable's validity
11467 until later. We actually want all structs and unions to have
11468 the value "{...}".
11469 Do not return "???" for variables which could not be evaluated.
11470 This error condition must be returned to the caller so that it
11471 can get the error condition from gdb.
11472 (cplus_name_of_child): Adjust index for vptr before figuring
11473 out the name of the child.
11474 (cplus_value_of_child): If a child's (real) parent is not valid,
11475 don't even bother trying to give a value for it. Just return
11476 an error. Change all instances in this function.
11477 (cplus_type_of_child): If our parent is one of the "fake"
11478 parents, we need to get at the type of the real parent, and
11479 derive the child's true type using this information.
11480
b76898ab
AC
114812002-01-13 Andrew Cagney <ac131313@redhat.com>
11482
11483 From 2002-01-09 John Marshall <johnm@falch.net>:
11484 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11485 sources.redhat.com, and tweak some related URLs which had
11486 suffered from linkrot.
11487
b6649e88
AC
114882002-01-13 Andrew Cagney <ac131313@redhat.com>
11489
11490 From Jeff law:
11491 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11492 structures passed in registers.
11493
82cc5033
EZ
114942002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11495
11496 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11497 white space which prevented compilation. Reported by DSK
11498 <dsk@student.unsw.edu.au>.
11499
ba5f2f8a
MS
115002002-01-11 Michael Snyder <msnyder@redhat.com>
11501
fbd35540
MS
11502 * symfile.c (build_section_addr_info_from_section_tab):
11503 Use bfd access method instead of manipulating bfd directly.
11504 (syms_from_objfile): Ditto.
11505 (simple_overlay_update_1): Ditto.
11506 (simple_overlay_update): Ditto.
11507 (generic_load): Ditto.
11508 (overlay_unmapped_address): FIXME comment, bfd access methods.
11509 (sections_overlap): FIXME comment, bfd access methods.
11510 (pc_in_mapped_range): FIXME comment, bfd access methods.
11511 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11512 (section_is_mapped): FIXME comment, bfd access methods.
11513 (section_is_overlay): FIXME comment, bfd access methods.
11514
ba5f2f8a
MS
11515 * symfile.c (generic_load): Whitespace and long line cleanups.
11516 Remove duplicate variable, change several local variables to
11517 more appropriate data types.
11518 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11519
17df2af6
AC
115202002-01-12 Andrew Cagney <ac131313@redhat.com>
11521
11522 From Peter Schauer:
11523 * language.c (longest_local_hex_string_custom): Use phex_nz to
11524 convert NUM to a hex string.
11525
ec920329
EZ
115262002-01-12 Elena Zannoni <ezannoni@redhat.com>
11527
11528 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11529 the function.
538a76d6 11530 Update Copyright year.
ec920329 11531
3abd2e01
AC
115322002-01-12 Andrew Cagney <ac131313@redhat.com>
11533
11534 * language.c (longest_raw_hex_string): Delete unused function.
11535
b21b22e0
PS
115362002-01-11 Petr Sorfa <petrs@caldera.com>
11537
11538 * MAINTAINERS (write-after-approval): Add myself.
11539 * dwarf2read.c (read_tag_string_type): Handling of
11540 DW_AT_byte_size.
11541 (read_tag_string_type): FORTRAN fix to prevent propagation of
11542 first string size.
11543 (set_cu_language): Handling of DW_LANG_Fortran95
11544
747fe712
RE
115452002-01-11 Richard Earnshaw <rearnsha@arm.com>
11546
11547 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11548 GETPID(inferior_ptid).
11549 (store_inferior_registers): Likewise.
11550
f1bea926
JM
115512002-01-10 Jason Merrill <jason@redhat.com>
11552
11553 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11554 Fix DW_OP_minus.
11555
ae940673
AC
115562002-01-10 Andrew Cagney <ac131313@redhat.com>
11557
11558 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11559 and bfd/elf32-sh-nbsd.c.
11560
00546b04
MS
115612002-01-10 Michael Snyder <msnyder@redhat.com>
11562
352ed7b4
MS
11563 * NEWS: Mention --pid and corefile/proc-id behavior change.
11564
c18be923
MS
11565 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11566 * gcore.c: Include cli/cli-decode.h instead of command.h.
11567
00546b04
MS
11568 * main.c (captured_main): Add new command line option "--pid".
11569 If the second command line argument (following the symbol-file)
11570 begins with a digit, try to attach to it before trying to open
11571 it as a corefile.
11572 (print_gdb_help): Document the "--pid" argument.
11573
db60ec62
EZ
115742002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11575
11576 * completer.c (command_completer): New function.
11577
11578 * completer.h <command_completer>: Add prototype.
11579
11580 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11581 completer for the "help" command.
11582
39c22d1a
JM
115832002-01-09 Jason Merrill <jason@redhat.com>
11584
11585 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11586
c564377f
MS
115872002-01-09 Michael Snyder <msnyder@redhat.com>
11588
975aec09
MS
11589 * i386-linux-nat.c (fill_fpxregset): Make global.
11590 (store_fpxregset): Ditto.
11591
db4a10fa
MS
11592 * gregset.h (gdb_fpxregset_t): Define.
11593 (supply_fpxregset): Prototype.
11594 (fill_fpxregset): Prototype.
11595
c564377f
MS
11596 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11597
c3d45d70
RE
115982002-01-09 Richard Earnshaw <rearnsha@arm.com>
11599
11600 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11601 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11602 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11603
fcc87af1
AC
116042002-01-09 Andrew Cagney <ac131313@redhat.com>
11605
11606 * MAINTAINERS: Update target maintainer rules so that any
11607 Maintainer can approve a tested patch for a maintenance-only
11608 target.
11609
dd96c05b
RE
116102002-01-09 Richard Earnshaw <rearnsha@arm.com>
11611
d4297db9 11612 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11613
d4297db9 11614 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11615 IN_SIGTRAMP.
11616
145fdc6e
MS
116172002-01-08 Michael Snyder <msnyder@redhat.com>
11618
11619 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11620 real name of the executable, rather than the /proc name.
11621
be4d1333
MS
116222002-01-03 Michael Snyder <msnyder@redhat.com>
11623
11624 Implement a "generate-core-file" command in gdb, save target state.
11625 * gcore.c: New file. Implement new command 'generate-core-file'.
11626 Save a corefile image of the current state of the inferior.
11627 * linux-proc.c: Add linux-specific code for saving corefiles.
11628 * target.h (struct target_ops): Add new target vectors for saving
11629 corefiles; to_find_memory_regions and to_make_corefile_notes.
11630 (target_find_memory_regions): New macro.
11631 (target_make_corefile_notes): New macro.
11632 * target.c (update_current_target): Inherit new target methods.
11633 (dummy_find_memory_regions): New place-holder method.
11634 (dummy_make_corefile_notes): New place-holder method.
11635 (init_dummy_target): Initialize new dummy target vectors.
11636 * exec.c (exec_set_find_memory_regions): New function.
11637 Allow the exec_ops vector for memory regions to be taken over.
11638 (exec_make_note_section): New function, target vector method.
11639 * defs.h (exec_set_find_memory_regions): Export prototype.
11640 * procfs.c (proc_find_memory_regions): New function, corefile method.
11641 (procfs_make_note_section): New function, corefile method.
11642 (init_procfs_ops): Set new target vector pointers.
11643 (find_memory_regions_callback): New function.
11644 (procfs_do_thread_registers): New function.
11645 (procfs_corefile_thread_callback): New function.
11646 * sol-thread.c (sol_find_memory_regions): New function.
11647 (sol_make_note_section): New function.
11648 (init_sol_thread_ops): Initialize new target vectors.
11649 * inftarg.c (inftarg_set_find_memory_regions): New function.
11650 Allow to_find_memory_regions vector to be taken over.
11651 (inftarg_set_make_corefile_notes): New function.
11652 Allow to_make_corefile_notes vector to be taken over.
11653 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11654 interface layer if not target_has_execution (may be a corefile).
11655 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11656 * config/sparc/sun4sol2.mh: Ditto.
11657 * config/alpha/alpha-linux.mh: Ditto.
11658 * config/arm/linux.mh: Ditto.
11659 * config/i386/x86-64linux.mh: Ditto.
11660 * config/ia64/linux.mh: Ditto.
11661 * config/m68k/linux.mh: Ditto.
11662 * config/mips/linux.mh: Ditto.
11663 * config/powerpc/linux.mh: Ditto.
11664 * config/sparc/linux.mh: Ditto.
11665
c6b92abd
MS
116662002-01-07 Michael Snyder <msnyder@redhat.com>
11667
11668 * arm-linux-nat.c: Remove references to regcache.c internal data
11669 (registers[] and register_valid[]).
11670
4b09dc8c
MS
116712002-01-07 Michael Snyder <msnyder@redhat.com>
11672
abf22e64
AJ
11673 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11674 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11675 symbol file and shlibs.
11676 * Makefile.in: Add rule for linux-proc.o.
11677 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11678 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11679 * config/arm/linux.mh: Ditto.
11680 * config/i386/linux.mh: Ditto.
11681 * config/i386/x86-64linux.mh: Ditto.
11682 * config/ia64/linux.mh: Ditto.
11683 * config/m68k/linux.mh: Ditto.
11684 * config/mips/linux.mh: Ditto.
11685 * config/powerpc/linux.mh: Ditto.
11686 * config/sparc/linux.mh: Ditto.
11687
c25b74ac
PM
116882002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11689
11690 * win32-nat.c: Add i386-tdep.h dependency.
11691
94cd915f
MS
116922002-01-07 Michael Snyder <msnyder@redhat.com>
11693
c7cccb76
MS
11694 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11695 instead of bfd_get_arch_size. Don't bail out just because
11696 there's no exec_bfd.
abf22e64 11697
34c0bd93
MS
11698 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11699 * p-valprint.c (pascal_object_print_value): Ditto.
11700 * somread.c (som_symtab_read): Ditto.
11701 * symfile.c (simple_free_overlay_region_table): Ditto.
11702 * valops.c (value_assign): Ditto.
11703
21c1c920
MS
11704 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11705 use tilde_expand and strerror for opening save-tracepoints file.
11706
5bbd998e
MS
11707 * thread-db.c (thread_db_new_objfile): Indendation fix.
11708
94cd915f
MS
11709 * infptrace.c (GDB_MAX_ALLOCA): New define.
11710 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11711 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11712 can be overridden with whatever value is appropriate to the host).
11713 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11714 alloca to allocate potentially large buffer.
11715 * rs6000-nat.c (child_xfer_memory): Ditto.
11716 * symm-nat.c (child_xfer_memory): Ditto.
11717 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11718
494e8a93
JSC
117192002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11720
11721 From Nick Clifton <nickc@redhat.com>
11722 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11723
d0e1d48e
MS
117242002-01-07 Michael Snyder <msnyder@redhat.com>
11725
abf22e64 11726 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11727 Don't use exec_bfd if it's NULL.
11728
290b2c7a
MK
117292002-01-06 Mark Kettenis <kettenis@gnu.org>
11730
abf22e64 11731 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11732
aef21287
AC
117332002-01-06 Andrew Cagney <ac131313@redhat.com>
11734
11735 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11736 * gnu-nat.c: Ditto.
11737
30efa627
AC
117382002-01-06 Andrew Cagney <ac131313@redhat.com>
11739
11740 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11741 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11742 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11743 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11744 z8k-coff have not been multi-arched. Update z8k-coff build
11745 status.
11746
9b4ff276
AC
117472002-01-06 Andrew Cagney <ac131313@redhat.com>
11748
11749 * MAINTAINERS: Mark a29k target as obsolete.
11750 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11751 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11752 comments.
11753 * NEWS: Note that a29k targets are obsolete.
11754 * a29k-tdep.c: Mark as obsolete.
11755 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11756 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11757 a29k-*-vxworks* targets as obsolete.
11758 * remote-adapt.c: Obsolete.
11759 * remote-eb.c: Obsolete.
11760 * remote-mm.c: Obsolete.
11761 * remote-udi.c: Obsolete.
11762 * config/a29k/a29k-udi.mt: Obsolete.
11763 * config/a29k/a29k.mt: Obsolete.
11764 * config/a29k/tm-a29k.h: Obsolete.
11765 * config/a29k/tm-vx29k.h: Obsolete.
11766 * config/a29k/vx29k.mt: Obsolete.
11767
a9011d31
AC
117682002-01-05 Andrew Cagney <ac131313@redhat.com>
11769
11770 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11771 with BFD_ENDIAN_BIG.
11772
9299404e
AC
117732002-01-05 Andrew Cagney <ac131313@redhat.com>
11774
11775 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11776 * configure, config.in: Re-generate.
11777 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11778 * defs.h: Do not include <endian.h>.
11779
7e89e357
JT
117802002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11781
11782 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11783 * config.in: Regenerate.
11784 * configure.in: Update copyright years.
11785 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11786 * configure: Regenerate.
11787 * i386bsd-nat.c: Update copyright years.
11788 (fill_gregset): Use regcache_collect.
11789 (fetch_inferior_registers): Only fetch integer registers
11790 if requested to do so. Add support for XMM registers
11791 using PT_GETXMMREGS.
11792 (store_inferior_registers): Only store integer registers
11793 if requested to do so. Add support for XMM registers
11794 using PT_SETXMMREGS.
11795 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11796 (store_inferior_registers): Remove.
11797 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11798 (fetch_elfcore_registers): New function.
11799 (i386nbsd_elfcore_fns): New.
11800 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11801 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11802 i386bsd-nat.o.
11803 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11804 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11805 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11806 * config/i386/tm-nbsd.h: Update copyright years.
11807 (HAVE_SSE_REGS): Define.
11808 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11809 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11810 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11811 (SIGCONTEXT_PC_OFFSET): Remove.
11812 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11813
a752853e
AC
118142002-01-05 Andrew Cagney <ac131313@redhat.com>
11815
11816 * configure.tgt: Remove powerpc-*-macos* target.
11817 * config/m68k/xm-mpw.h: Delete file.
11818 * config/xm-mpw.h: Delete file.
11819 * ser-mac.c: Delete file.
11820 * mpw-make.sed: Delete file.
11821 * mpw-config.in: Delete file.
11822 * mac-xdep.c: Delete file.
11823 * mac-gdb.r: Delete file.
11824 * mac-defs.h: Delete file.
11825 * mac-nat.c: Delete file.
11826 * config/powerpc/macos.mh: Delete file.
11827 * config/powerpc/macos.mt: Delete file.
11828 * config/powerpc/nm-macos.h: Delete file.
11829 * config/powerpc/tm-macos.h: Delete file.
11830 * source.c (openp, open_source_file): Remove obsolete code.
11831 * top.c (gdb_readline): Ditto.
11832 * utils.c (query): Ditto.
11833 * event-top.c (display_gdb_prompt): Ditto.
11834 * Makefile.in (ser-mac.o): Delete obsolete target.
11835 * NEWS: Update.
11836
d7449b42
AC
118372002-01-04 Andrew Cagney <ac131313@redhat.com>
11838
11839 * defs.h (BIG_ENDIAN): Delete macro definition.
11840 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11841 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11842 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11843 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11844 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11845 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11846 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11847 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11848 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11849 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11850 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11851 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11852 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11853 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11854 * gdbarch.c: Re-generate.
11855
356374e8
DJ
118562002-01-04 Daniel Jacobowitz <drow@mvista.com>
11857
11858 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11859 for core files.
11860
a2b8f8f8
JT
118612002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11862
11863 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11864
12466af9
AC
118652002-01-04 Andrew Cagney <ac131313@redhat.com>
11866
11867 * value.h (value_ptr): Delete typedef.
11868
3549ab40
JT
118692002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11870
11871 * i386nbsd-nat.c: Update copyright years.
11872 Include i386-tdep.h.
11873
fedbd091
EZ
118742002-01-04 Elena Zannoni <ezannoni@redhat.com>
11875
11876 * stabsread.c: Update copyright years.
11877
11878 From Debashis Mahata <debashis.mahata@wipro.com>:
11879 (read_struct_fields): Deal with Sun C compiler erroneous stab
11880 output for structs and unions.
fec8b34f 11881 Fix PR gdb/269.
fedbd091 11882
eb43544b
DJ
118832002-01-04 Daniel Jacobowitz <drow@mvista.com>
11884
11885 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11886 prototype.
11887
1514d34e
DJ
118882002-01-04 Daniel Jacobowitz <drow@mvista.com>
11889
11890 * cp-abi.c: Fix whitespace.
11891 (baseclass_offset): New wrapper function.
11892 * cp-abi.h (baseclass_offset): Add prototype.
11893 (struct cp_abi_ops): Add baseclass_offset pointer.
11894
11895 * valops.c (vb_match): Move to...
11896 * gnu-v2-abi.c (vb_match): here.
11897 * valops.c (baseclass_offset): Move to...
11898 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11899
11900 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11901
11902 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11903 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11904 * hpacc-abi.c (init_hpacc_ops): Likewise.
11905
7f8c9282
DJ
119062002-01-04 Daniel Jacobowitz <drow@mvista.com>
11907
11908 * valops.c (find_overload_match): Accept obj as a
11909 reference parameter. Update it before returning.
11910 * value.h (find_overload_match): Update prototype.
11911 * eval.c (evaluate_subexp_standard): Pass object to
11912 find_overload_match by reference.
11913
f23631e4
AC
119142002-01-03 Andrew Cagney <ac131313@redhat.com>
11915
11916 * valarith.c: Replace value_ptr with struct value pointer. Remove
11917 register attribute from value declarations.
11918 * valops.c: Ditto.
11919 * value.h: Ditto.
11920 * scm-lang.c (scm_lookup_name): Ditto.
11921
79e10fab 119222002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11923
79e10fab
AC
11924 Abstract the functionality of iterating over mapped memory
11925 regions into a general purpose iterator function.
abf22e64 11926 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11927 iterator for memory sections.
11928 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11929 (solib_mappings_callback): New function, callback for above.
11930 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11931 (info_mappings_callback): New function, callback for above.
11932
11933 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11934
c5ad026a
MK
119352002-01-01 Mark Kettenis <kettenis@gnu.org>
11936
d2a7c97a
MK
11937 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11938 * i386-tdep.c: Include "elf-bfd.h".
11939 (process_note_abi_tag_sections): New function.
11940 (i386_gdbarch_init): Add code to recognize various OS/ABI
11941 combinations.
11942
c5ad026a
MK
11943 * maint.c (_initialize_maint_cmds): Add missing \ in
11944 string-literal.
11945
a1a5b71e 11946For older changes see ChangeLog-2001
c906108c
SS
11947\f
11948Local Variables:
11949mode: change-log
11950left-margin: 8
11951fill-column: 74
11952version-control: never
11953End:
This page took 0.93653 seconds and 4 git commands to generate.