daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4092aadb
CF
12002-10-06 Christopher Faylor <cgf@redhat.com>
2
3 * Makefile.in (install-gdbtk): Add missing continuation backslash to
4 insure that shell variables, such as "transformed_name" are propagated
5 to later shell statements in rule.
6
af0b2512
MK
72002-10-06 Mark Kettenis <kettenis@gnu.org>
8
9 * config/i386/nm-i386sco.h: Add protection against
10 multiple-inclusion. Include "i386/nm-i386v.h".
11 (REGISTER_U_ADDR): Remove define.
12 (i386_register_u_addr): Remove prototype.
13
d6020d45
MS
142002-10-04 Michael Snyder <msnyder@redhat.com>
15
16 * m32r-stub.c (handle_exception): Make sure exception is "trap"
17 before treating it as a single-step event.
18
7248f48e
AF
192002-10-03 Adam Fedor <fedor@gnu.org>
20
21 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
22 (objc_demangle): Remove assignment in if statements, Replace
23 free with xfree.
24 (add_msglist): Likewise.
25 (end_msglist): Likewise.
26 (complare_selectors): Likewise.
27 (selectors_info): Likewise.
28 (compare_classes): Likewise.
29 (classes_info): Likewise.
30 (print_object_command): Likewise.
31 (find_objc_msgcall_submethod): Replace PTR with void *.
32 * objc-lang.h: Remove check for __STDC__.
33
52c6a6ac
JJ
342002-10-03 Jeff Johnston <jjohnstn@redhat.com>
35
36 * ui-out.h (ui_out_field_fmt_int): New prototype.
37 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
38 of field width and alignment.
39 * stack.c (print_frame_info_base): When printing frame level, use
40 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
41 PR gdb/192
42
7e3cec17
JJ
432002-10-03 Jeff Johnston <jjohnstn@redhat.com>
44
45 * MAINTAINERS: Add self to Write After Approval list.
46
a58dd373
EZ
472002-10-02 Elena Zannoni <ezannoni@redhat.com>
48
49 * infcmd.c (interrupt_target_command_wrapper): Delete.
50 (interrupt_target_command): Make non static.
51 (nofp_registers_info): Make static.
52 * stack.c (return_command_wrapper): Delete.
53 (return_command): Make non static.
54
cee6ddeb
EZ
552002-10-02 Elena Zannoni <ezannoni@redhat.com>
56
57 * event-top.c (gdb_setup_readline): New function. Code moved from
58 _initialize_event_loop().
59 (_initialize_event_loop): Call gdb_setup_readline().
60
c4ed33b9
AC
612002-10-02 Andrew Cagney <ac131313@redhat.com>
62
63 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
64 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
65 * gdbarch.h, gdbarch.c: Re-generate.
66
cef4f5dd
DJ
672002-10-02 Daniel Jacobowitz <drow@mvista.com>
68
69 Fix PR gdb/778
70 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
71 before recursing.
72 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
73 of fill_in_vptr_fieldno.
74
36dc181b 752002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 76
36dc181b
EZ
77 * inferior.h (registers_info, stepi_command, nexti_command,
78 continue_command, interrupt_target_command): Export from infcmd.c.
79 * frame.h (args_info, selected_frame_level_changed_hook,
80 return_command): Export from stack.c.
81 * v850ice.c (stepi_command, nexti_command, continue_command): use
82 prototypes from inferior.h.
83 * tracepoint.c (registers_info, args_info, locals_info): Use
84 prototypes from frame.h and inferior.h.
85 * Makefile.in (mi-main.o): Add dependency on frame.h.
86
6f99cb26
AC
872002-10-02 Andrew Cagney <ac131313@redhat.com>
88
da3eff49
AC
89 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
90 value in register 3 adjusted by ppc_gp0_regnum.
91
6f99cb26
AC
92 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
93
da615bee
MM
942002-10-02 Marko Mlinar <markom@opencores.org>
95
96 * MAINTAINERS: Add myself to the Write After Approval list.
97
d154bee2
AO
982002-10-01 Alexandre Oliva <aoliva@redhat.com>
99
62a49b2c
AO
100 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
101 of the section for the N64 ABI, fixed.
102
d154bee2
AO
103 * config/mips/tm-irix6.h: Include solib.h.
104
ed348acc
EZ
1052002-10-01 Elena Zannoni <ezannoni@redhat.com>
106
107 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
108 GNU operators.
109
da0f9dcd
AC
1102002-10-01 Andrew Cagney <ac131313@redhat.com>
111
112 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
113 and that "mi0" syntax has been removed.
114
bdf64bac
DC
1152002-09-30 David Carlton <carlton@math.stanford.edu>
116
117 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
118 * ppc-sysv-tdep.c: #include "gdb_string.h".
119 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
120 pacify GCC.
121
54c2a1e6
AC
1222002-10-01 Andrew Cagney <ac131313@redhat.com>
123
124 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
125 "vrsave"'s register number.
126
cedea778
AC
1272002-09-30 Andrew Cagney <ac131313@redhat.com>
128
129 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
130 use frame_unwind_signed_register to obtain the PC.
131 (mips_frame_chain): Handle a generic dummy frame.
132 (mips_init_extra_frame_info): When a generic dummy frame, don't
133 re-compute the frame base.
134 (mips_pop_frame): Handle generic dummy frames.
135 (mips_gdbarch_init): When generic dummy frames, set
136 use_generic_dummy_frames, push_dummy_frame to
137 generic_push_dummy_frame, pc_in_call_dummy to
138 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
139 generic_save_dummy_frame_tos.
140
68315eb8
AC
1412002-09-30 Andrew Cagney <ac131313@redhat.com>
142
143 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
144 against TOP when TOP was explictly set.
145 (generic_push_dummy_frame): Set TOP to zero.
146
3b8630c3
EZ
1472002-09-30 Elena Zannoni <ezannoni@redhat.com>
148
149 * event-loop.c (start_event_loop): Rename variable 'result' to
150 'gdb_result', to avoid conflicts with upcoming intepreters changes.
151
28ee05e9
KS
1522002-09-30 Keith Seitz <keiths@redhat.com>
153
154 * gdb-events.sh (selected_thread_changed): New event.
155 * gdb-events.c: Regenerated.
156 * gdb-events.h: Regenerated.
157
6eecb1c8
HPN
1582002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
159
160 * MAINTAINERS: Add self to Write After Approval list.
161
92df71f0
FN
1622002-09-30 Fernando Nasser <fnasser@redhat.com>
163
3b8630c3
EZ
164 * disasm.c: New file.
165 * disasm.h: New file.
92df71f0
FN
166 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
167 (compare_lines): Ditto.
168 (dump_insns): Ditto.
3b8630c3
EZ
169 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
170 argument.
92df71f0 171 (do_assembly_only): Ditto.
3b8630c3
EZ
172 (do_disassembly): Renamed to gdb_disassembly and moved to
173 disasm.c. Sdded uiout argument.
174 * Makefile.in: Add new files. Reorder SFILES list. Update
175 dependencies. Include libgdb.a later in the insight executable.
92df71f0 176
0c22854d
AC
1772002-09-29 Andrew Cagney <ac131313@redhat.com>
178
179 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
180 bfd/elf64-alpha-fbsd.c.
181
e67f2023
AC
1822002-09-29 Andrew Cagney <ac131313@redhat.com>
183
184 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
185 i386gnu-tdep.c.
186
89396210
AC
1872002-09-29 Andrew Cagney <ac131313@redhat.com>
188
189 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
190 __FUNCTION__.
191 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
192 function name.
193 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
194 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
195 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
196 (S_msg_sig_post_reply): Ditto.
197
7079c36c
CV
1982002-09-28 Corinna Vinschen <vinschen@redhat.com>
199
89396210
AC
200 * sh-tdep.c (sh_use_struct_convention): Use definition according
201 to ABI.
7079c36c
CV
202 (sh_push_arguments): Store in register with correct endianess.
203 (sh_default_store_return_value): Ditto.
204 (sh_gdbarch_init): Set sizeof long double to 8.
205
975ac915
MK
2062002-09-27 Mark Kettenis <kettenis@gnu.org>
207
208 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
209 Fix some whitespace problems.
210
9bbe19fb
DC
2112002-09-27 David Carlton <carlton@math.stanford.edu>
212
213 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
214 (mcore-tdep.o): Ditto.
215 (ns32k-tdep.o): Ditto.
216 (ns32knbsd-tdep.o): Ditto.
217 (sh3-rom.o): Ditto.
218 (vax-tdep.o): Ditto.
219 * cris-tdep.c: #include "gdb_string.h"
220 * mcore-tdep.c: Ditto.
221 * ns32k-tdep.c: Ditto.
222 * ns32knbsd-tdep.c: Ditto.
223 * sh3-rom.c: Ditto.
224 * vax-tdep.c: Ditto.
225
43b2fdc7
DC
2262002-09-27 David Carlton <carlton@math.stanford.edu>
227
228 * config/djgpp/fnchange.lst: Add entries for
229 gdb/testsuite/gdb.c++/m-static files.
230
e8cfbbd9
JW
2312002-09-27 Jim Wilson <wilson@redhat.com>
232
233 * MAINTAINERS: Add myself to the Write After Approval list.
234
43b2fdc7 2352002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
236
237 * mips-tdep.c (find_proc_desc): Initialize startaddr.
238
239
9f3b7f07
AC
2402002-09-26 Andrew Cagney <ac131313@redhat.com>
241
242 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
243 frame.
244
11269d7e
AC
2452002-09-26 Andrew Cagney <ac131313@redhat.com>
246
247 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
248 (rs6000_struct_return_address): Delete variable.
249 (rs6000_store_struct_return): Update.
250 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
251 deprecated_extract_struct_value_address.
252 (rs6000_frame_align): New function.
253 (rs6000_gdbarch_init): Set frame_align.
254
f15ab4a7
AC
2552002-09-26 Andrew Cagney <ac131313@redhat.com>
256
257 From Grace Sainsbury <graces@redhat.com>:
258 * Makefile.in (gdbtk-main.o): New target.
259 (gdb.o): New target.
260 (main_h): Define.
261 (main.o): Update dependencies.
262 (gdb$(EXEEXT)): Add gdb.o.
263 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
264 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
265 (SUBDIR_GDBTK_CLEAN): Set.
266 (install-gdbtk): Install the insight binary.
267 (uninstall-gdbtk): New target.
268 (all-gdbtk, clean-gdbtk): New rule.
269 * top.c (use_windows): Default to zero.
270 * main.c: Include "main.h".
271 (main): Delete.
272 (struct captured_main_args): Delete.
273 (gdb_main): New function.
274 * main.h: New file.
275 * gdb.c: New File.
276
e36180d7
AC
2772002-09-25 Andrew Cagney <cagney@redhat.com>
278
279 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
280 (frame_map_regnum_to_name): New function.
281 (frame_map_name_to_regnum): New function.
282 * frame.h (frame_map_name_to_regnum): Declare.
283 (frame_map_regnum_to_name): Declare.
284 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
285 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
286 * parse.c: Do not include "builtin-regs.h".
287 (target_map_name_to_register): Delete function.
288 (write_dollar_variable): Use frame_map_name_to_regnum.
289 * parser-defs.h (target_map_name_to_register): Delete declaration.
290 * expprint.c: Include "frame.h".
291 (print_subexp): Use frame_map_regnum_to_name.
292 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
293 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
294
8b69000d
AC
2952002-09-25 Andrew Cagney <ac131313@redhat.com>
296
297 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
298 wasn't saved, and the next innermost frame is a dummy, return the
299 dummy frame's link register.
300
046ca86a
JB
3012002-09-24 Jim Blandy <jimb@redhat.com>
302
303 Fix from Paul Breed:
304 * main.c (captured_main): Add a `break' after the case for 'b'.
305
94b66fa7
KS
3062002-09-24 Keith Seitz <keiths@redhat.com>
307
308 * varobj.c (c_type_of_child): Use get_target_type instead
309 of TYPE_TARGET_TYPE.
310
c214a6fd
FN
3112002-09-22 Fernando Nasser <fnasser@redhat.com>
312
53cb0458
FN
313 * source.c (get_current_or_default_source_symtab_and_line): Remove
314 function.
315 (set_default_source_symtab_and_line): New function. Attempts to
316 determine a source file to list lines from if one is not currently
317 defined.
318 (get_current_source_symtab_and_line): Initialize sal.pc and
319 sal.end fields.
320 (set_current_source_symtab_and_line): Mark argument as const.
321 * source.h: Update declarations and comments.
322 * linespec.c (decode_line_1): Replace call to removed routine above.
323 * stack.c (print_frame_info_base): Ditto.
324 * cli/cli-cmds.c (edit_command): Ditto.
325 (list_command): Ditto.
326
3272002-09-22 Fernando Nasser <fnasser@redhat.com>
328
d6020d45 329 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 330 sal.pc and sal.end fields.
c214a6fd
FN
331 (get_current_or_default_source_symtab_and_line): Ditto.
332 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
333 so we do not cause a new source symtab to be searched for (reverting an
334 unintentional change from the 2002-09-20 patch).
335 * scm-lang.c (scm_unpac): Ditto.
336
cc3b68a5
AC
3372002-09-21 Andrew Cagney <cagney@redhat.com>
338
339 * complaints.c (symfile_explanations): Remove new-line from
340 ``isolated_message''.
341 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
342 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
343
5835abe7
NC
3442002-09-20 Nick Clifton <nickc@redhat.com>
345
346 * NEWS: Announce that V850EA ISA is no longer supported.
347 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
348
a15ef5f5
DC
3492002-09-20 David Carlton <carlton@math.stanford.edu>
350
06ba1b39
DC
351 * Makefile.in (c-lang.o): Correct dependencies.
352 (utils.o): Gather dependencies.
353 (charset.o): Move.
a15ef5f5
DC
354 * c-lang.c: #include "gdb_string.h"
355
87885426
FN
3562002-09-20 Fernando Nasser <fnasser@redhat.com>
357
358 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
359 * cli/cli-cmds.c (list_command): New function. Implements the new
360 cli edit command.
361 (_init_cli_cmds): Add new command definition.
362 * gdb.1: Document edit command.
363 * doc/gdb.texinfo: Document edit command.
364
3652002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
366
367 * source.c: Make global variables current_source_symtab and
368 current_source_line static.
369 (list_command): Moved to cli/cli-cmds.c.
370 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
371 (get_first_line_listed): New accessor function.
372 (get_lines_to_list): New accessor function.
373 (get_current_source_symtab_and_line): New function. Retrieves the
374 position in the source code that we consider current.
375 (get_current_or_default_source_symtab_and_line): New function.
376 Like the above but attempts to determine a default position if one
377 is not currently defined.
378 (set_current_source_symtab_and_line): New function. Sets the source
379 code position considered current and returns the previously set one.
380 (clear_current_source_symtab_and_line): Reset stored information about
381 a current source line.
382 (_initialize_source): Remove registration for the "list" command and
383 its alias.
384 * source.h: Add declarations for the new functions above.
385 * symtab.h: Remove declarations for the global variables mentioned
386 above.
387 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
388 obtain current source line.
389 * linespec.c (decode_line_1): Ditto.
390 * macroscope.c (default_macro_scope): Ditto.
391 * scm-lang.c (scm_unpac): Ditto.
392 * stack.c (print_frame_info_base): Ditto.
393 * symfile.c (clear_symtab_users): Ditto.
394 * symtab.c (decode_line_spec): Ditto.
395 * cli/cli-cmds.c (list_command): Moved here from source.c.
396 (ambiguous_line_spec): Moved here from source.c.
397 (_init_cli_cmds): Add definition for "list" and its alias.
398 * Makefile.in: Update dependencies.
399
ddd216ea
CV
4002002-09-20 Corinna Vinschen <vinschen@redhat.com>
401
402 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
403 with what gcc thinks is correct.
404
6d305052
CV
4052002-09-20 Corinna Vinschen <vinschen@redhat.com>
406
407 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
408 multiple register push instruction.
409
234b45d4
KB
4102002-09-19 Jim Blandy <jimb@redhat.com>
411
412 Add support for distinct host and target character sets.
413 * charset.c, charset.h: New files.
414 * c-exp.y: #include "charset.h".
415 (yylex): Convert character and string literals to the target
416 character set, before returning them as the semantic value of the
417 token.
418 * c-lang.c: #include "charset.h".
419 (c_emit_char): Use charset-specific methods to recognize
420 characters with backslash escape forms, to decide which characters
421 to print literally and which to print using numeric escape
422 sequences, and to convert target characters to host characters
423 before printing.
424 * utils.c: #include "charset.h".
425 (no_control_char_error): New function.
426 (parse_escape): Use charset-specific methods to recognize
427 backslash escapes, parse `control character' notation, and convert
428 characters from the host character set to the target character set.
429 * configure.in: Set the default host character set.
430 Check where to find iconv, and what its argument types might be.
431 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
432 * Makefile.in (SFILES): List charset.c.
433 (COMMON_OBS): List charset.o.
434 (charset.o): New rule.
435 (charset_h): New header dependency variable.
436 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
437 (LIBICONV): New variable, set by configure.
438 (CLIBS): Include $(LIBICONV) here.
439 * aclocal.m4, config.in, configure: Regenerated.
440
525d6a61
JB
4412002-09-19 Joel Brobecker <brobecker@gnat.com>
442
443 * ada-exp.y: Add missing semicolons to end rules. Fixes a
444 bison 1.35 warning.
445
3ed93867
RE
4462002-09-19 Richard Earnshaw <rearnsha@arm.com>
447
448 * gdb_mbuild.sh: New file.
449
437666f8
AC
4502002-09-19 Andrew Cagney <ac131313@redhat.com>
451
452 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
453
389e51db
AC
4542002-09-18 Andrew Cagney <ac131313@redhat.com>
455
456 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
457 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
458 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
459 valops.c, value.h: Revert previous change.
460
3b4efeaa
MS
4612002-09-18 Michael Snyder <msnyder@redhat.com>
462
463 Preliminary support for Objective-C:
464 * defs.h (language_objc): New enum value.
465 (puts_filtered_tabular): Declaration only, exported from utils.c.
466 (skip_quoted): Delete, declared in completer.h.
467 * c-exp.y: Include completer.h.
468 * p-exp.y: Ditto.
469 * jv-exp.y: Ditto.
470 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
471 New operator enum values.
472 * language.h (CAST_IS_CONVERSION): Test for language_objc.
473 * language.c (binop_result_type): Handle language_objc case.
474 (integral_type, character_type, string_type, boolean_type,
475 structured_type, binop_type_check): Ditto.
476 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
477 (struct objc_specific): Add to general_symbol_info.
478 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
479 (SYMBOL_DEMANGLED_NAME): Handle objc case.
480 * parser-defs.h (struct objc_class_str): New struct type.
481 (start_msglist, end_msglist, add_msglist): Declaration only,
482 exported from objc-lang.c.
483 * value.h (value_of_local, value_nsstring,
484 call_function_by_hand_expecting_type): Exported from valops.c.
485 * valops.c (find_function_addr): Export.
486 (call_function_by_hand_expecting_type): New function.
487 (value_of_local): New function.
488 * symfile.c (init_filename_language_table): Add ".m" extension
489 for Objective-C.
490 * utils.c (puts_filtered_tabular): New function.
491 (fprintf_symbol_filtered): Add objc demangling support (disabled).
492 (set/show demangle): Extend help-string to refer to ObjC.
493 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
494 * stabsread.c (symbol_reference_defined): Objective-C symbols
495 may contain colons: make allowances when scanning stabs strings
496 for colons.
497 (objc_find_colon): New function.
498 * printcmd.c (address_info): If language == objc then print
499 "self" instead of "this".
500 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
501 OP_NSSTRING, and OP_SELF.
502 (prefixify_subexp): Ditto.
503 * source.c (print_source_lines): Mention objc in comment.
504 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
505 method names.
506
b9caf505
AC
5072002-09-18 Andrew Cagney <ac131313@redhat.com>
508
509 * complaints.h: Update copyright.
510 (struct complaints): Declare.
511 (struct complaint): Make `message' constant.
512 (internal_complaint): Declare.
513 (complaint): Declare.
514 (complaint_root): Delete declaration.
515 (symfile_complaints): Delete declaration.
516 (struct complaints): Add opaque declaration.
517 (clear_complaints): Add a complaints parameter.
518 * complaints.c: Update copyright.
519 (enum complaint_series): Define.
520 (complaint_root): Delete.
521 (struct complaints): Define.
522 (complaint_sentinel, symfile_complaint_book): New variables.
523 (symfile_explanations, symfile_complaints): New variables.
524 New variables.
525 (get_complaints): New function.
526 (vcomplaint): New function.
527 (complaint): New function.
528 (internal_complaint): New function.
529 (complain): Call vcomplain with symfile_complaint.
530 (clear_complaints): Rewrite.
531 (_initialize_complaints): Use add_setshow_command.
532 * Makefile.in (complaints.o): Update dependencies.
533 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
534 to call to clear_complaints.
535 (new_symfile_objfile, reread_symbols): Ditto.
536 (oldsyms_complaint): Delete.
537 (empty_symtab_complaint, unknown_option_complaint): Delete.
538 (free_named_symtabs): Use complaint instead of complain.
539
d2e6263c
MS
5402002-09-18 Michael Snyder <msnyder@redhat.com>
541
5fb2031a
AC
542 Contributed by Apple Computer, Inc. Merged with current sources
543 by Adam Fedor <fedor@doc.com> [cagney].
544
d2e6263c
MS
545 * objc-lang.c: First clean-up round: comments, indentation.
546 * objc-lang.h: Ditto.
547 * objc-lang.y: Ditto.
548
dec43320
AC
5492002-09-18 Andrew Cagney <ac131313@redhat.com>
550
551 * maint.c (maintenance_internal_error): Print the parameter as the
552 error message.
553 (maintenance_internal_warning): New function.
554 (_initialize_maint_cmds): Add command `maint internal-warning'.
555
556 * defs.h (internal_warning, internal_vwarning): Declare.
557 * utils.c (struct internal_problem): Define.
558 (internal_vproblem): New function.
559 (internal_warning): New function.
560 (internal_vwarning): New function.
561 (internal_warning_problem, internal_error_problem): New variables.
562 (internal_verror): Just call internal_vproblem.
563
b81654f1
MS
5642002-09-18 Michael Snyder <msnyder@redhat.com>
565
566 * objc-lang.c: New file, support for Objective-C.
567 Preliminary check-in, not yet integrated into gdb.
568 * objc-lang.h: New file.
569 * objc-exp.y: New file.
570
0542c381
AC
5712002-09-18 Andrew Cagney <ac131313@redhat.com>
572
7bda5e4a
AC
573 * infrun.c (signal_stop_update): Convert definition to ISO C.
574 (signal_print_update): Ditto.
575 (signal_pass_update): Ditto.
576 * inflow.c (terminal_save_ours): Ditto.
577
5247b418
AC
578 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
579 comments.
580
fc60962c
AC
581 * config/djgpp/fnchange.lst: Handle name clashes between
582 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
583 bfd/coff-tic80.c.
584
0542c381
AC
585 * i386-linux-tdep.h: Fix tipo.
586
5b924b9b
AF
5872002-09-18 Adam Fedor <fedor@gnu.org>
588
589 * MAINTAINERS: Add myself to the Write After Approval list.
590
5afc051b
JB
5912002-09-18 Jim Blandy <jimb@redhat.com>
592
593 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
594 texthigh and textlow to reader-specific structs caused
595 objfile_relocate to miss them. This is fixable, but the work that
596 the change was supposed to prepare GDB for never got done anyway.
597
eb944380
DC
5982002-09-18 David Carlton <carlton@math.stanford.edu>
599
600 * MAINTAINERS: Alphabetize Write After Approval list.
601
948e66d9
DJ
6022002-09-18 Daniel Jacobowitz <drow@mvista.com>
603
604 Fix PR gdb/709
605 * values.c (value_static_field): Call read_var_value.
606
dc604539
AC
6072002-09-18 Andrew Cagney <ac131313@redhat.com>
608
609 * valops.c (hand_function_call): Align the initial stack pointer
610 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
611 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
612 return value.
613 * mips-tdep.c (mips_frame_align): New function.
614 (mips_gdbarch_init): Set frame_align.
615 * gdbarch.sh (FRAME_ALIGN): New method.
616 * gdbarch.h, gdbarch.c: Re-generate.
617
cb7e422f
ML
6182002-09-18 Michal Ludvig <mludvig@suse.cz>
619
620 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
621 registers.
622
a094c6fb
AC
6232002-09-17 Andrew Cagney <ac131313@redhat.com>
624
625 * NEWS: Mention that MIPS $fp behavior changed.
626 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
627 reference to FP_REGNUM.
628 (mipsnbsd_cannot_store_register): Ditto.
629 * mips-linux-nat.c: Update copyright.
630 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
631 (mips_linux_cannot_store_register): Ditto.
632 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
633 * config/mips/tm-mips.h: Update copyright.
634 (FP_REGNUM): Delete macro.
635 (MIPS_REGISTER_NAMES): Replace "fp" with "".
636 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
637 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
638 (mips_r3041_reg_names, mips_r3051_reg_names)
639 (mips_r3081_reg_names): Replace "fp" with "".
640 Fix PR gdb/480.
641
45cf40d1
TR
6422002-09-17 Theodore A. Roth <troth@verinet.com>
643
644 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
645 generic_read_register_dummy() (PR gdb/703).
646 (avr_push_return_address): #if 0 out unused vars.
647 (avr_gdbarch_init): Enable use of avr_push_return_address().
648
c7e701b5
MS
6492002-09-17 Michael Snyder <msnyder@redhat.com>
650
d76ba2a5 651 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
652 RTE will take care of it.
653
20bcf01c
AC
6542002-09-17 Andrew Cagney <ac131313@redhat.com>
655
656 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
657 invalid, return SP_REGNUM.
658
009a9971 6592002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
660
661 * mips-tdep.c (mips_pop_frame): Read saved values of floating
662 point registers without sign extension.
663
135c175f
AC
6642002-09-17 Andrew Cagney <cagney@redhat.com>
665
666 * blockframe.c (deprecated_read_register_dummy): Rename
667 generic_read_register_dummy.
668 * frame.c (frame_unwind_signed_register): New function.
669 (frame_unwind_unsigned_register): New function.
670 * frame.h (frame_unwind_signed_register): Declare.
671 (frame_unwind_unsigned_register): Declare.
672 (deprecated_read_register_dummy): Rename
673 generic_read_register_dummy.
674
675 * h8300-tdep.c (h8300_frame_chain): Update.
676 (h8300_frame_saved_pc): Update.
677 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
678 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
679 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
680 (s390_frame_chain): Update.
681 * v850-tdep.c (v850_find_callers_reg): Update.
682 (v850_frame_saved_pc): Update.
683 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
684 (m32r_find_callers_reg): Update.
685 (m32r_frame_saved_pc): Update.
686 * sh-tdep.c (sh_find_callers_reg): Update.
687 (sh64_get_saved_pr): Update.
688 (sh_init_extra_frame_info): Update.
689 (sh_init_extra_frame_info): Update.
690 (sh64_init_extra_frame_info): Update.
691 (sh64_init_extra_frame_info): Update.
692 * mcore-tdep.c (mcore_find_callers_reg): Update.
693 (mcore_frame_saved_pc): Update.
694 (mcore_init_extra_frame_info): Update.
695 * i386-tdep.c (i386_frame_saved_pc): Update.
696 * ia64-tdep.c (ia64_frame_saved_pc): Update.
697 (ia64_init_extra_frame_info): Update.
698 (ia64_init_extra_frame_info): Update.
699 * d10v-tdep.c (d10v_frame_saved_pc): Update.
700 * cris-tdep.c (cris_init_extra_frame_info): Update.
701 * avr-tdep.c (avr_frame_chain): Update.
702 (avr_init_extra_frame_info): Update.
703 (avr_frame_saved_pc): Update.
704 * arm-tdep.c (arm_find_callers_reg): Update.
705 (arm_init_extra_frame_info): Update.
706 (arm_frame_saved_pc): Update.
707
a741e514
TT
7082002-09-17 Tom Tromey <tromey@redhat.com>
709
710 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
711 is "'".
712
d1a8e808
CV
7132002-09-17 Corinna Vinschen <vinschen@redhat.com>
714
715 * MAINTAINERS: Remove "non multi-arched" text from h8300.
716 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
717 NEXT_PROLOGUE_INSN.
718 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
719 NEXT_PROLOGUE_INSN.
720
d9025a18
JB
7212002-09-16 Joel Brobecker <brobecker@gnat.com>
722
723 * osfsolib.c: Remove file, replaced by solib-osf.c.
724 * Makefile.in: Remove compilation rules for osfsolib.c.
725
1b2ef1b6
DC
7262002-09-16 David Carlton <carlton@math.stanford.edu>
727
728 * cp-valprint.c (cp_print_class_method): Correct args to
729 check_stub_method_group.
730
928e48af
CV
7312002-09-16 Corinna Vinschen <vinschen@redhat.com>
732
733 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
734 `set architecture'. Unify naming convention of functions.
735 (h8300_skip_prologue): Improve prologue analysis.
736 (h8300_push_arguments): Rewritten to more closely match GCC's
737 bizarre argument-passing behavior, along with the comment describing
738 said behavior.
739 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
740 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
741 sim, remote-e7000.c, remote-hms.c and remote.c
742
5e3397bb
MK
7432002-09-15 Mark Kettenis <kettenis@gnu.org>
744
745 * i386-tdep.c (gdb_print_insn_i386): Removed.
746 (i386_print_insn): New function.
747 (i386_gdbarch_init): Set print_insn to i386_print_insns.
748 (_initialize_i386_tdep): Don't initialize tm_print_insn and
749 tm_print_insn_info.
750
f710f4fc
MK
7512002-09-14 Mark Kettenis <kettenis@gnu.org>
752
753 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
754 zero.
755
db54fef4
CV
7562002-09-14 Corinna Vinschen <vinschen@redhat.com>
757
758 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
759 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
760 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
761
2becadee
CF
7622002-09-13 Christopher Faylor <cgf@redhat.com>
763
764 * win32-nat.c (child_create_inferior): Honor 'tty' command.
765
de17c821
DJ
7662002-09-13 Daniel Jacobowitz <drow@mvista.com>
767
768 * gdbtypes.c (check_stub_method): Make static.
769 (check_stub_method_group): New function.
770 * gdbtypes.h: Update prototypes.
771 * cp-support.c: New file.
772 * cp-support.h: New file.
773
774 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
775 (update_method_name_from_physname): New function.
776 (read_member_functions): Correct method names for operators
777 and v3 constructors/destructors. Separate v2 constructors and
778 destructors.
779 * Makefile.in (stabsread.o): Update dependencies.
780 (SFILES): Add cp-support.c.
781 (COMMON_OBS): Add cp-support.o.
782 (cp_support_h, cp-support.o): Add.
783
784 * cp-valprint.c (cp_print_class_method): Call
785 check_stub_method_group instead of check_stub_method. Remove
786 extraneous QUITs.
787 * p-valprint.c (pascal_object_print_class_method): Likewise.
788 * valops.c (search_struct_method): Likewise.
789 (find_method_list, value_struct_elt_for_reference): Likewise.
790
e76cff22
AC
7912002-09-13 Andrew Cagney <cagney@redhat.com>
792
793 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
794 * gdbarch.h, gdbarch.c: Regenerate.
795
905abb3f
AC
7962002-09-13 Andrew Cagney <ac131313@redhat.com>
797
798 * frame.c (find_saved_register): Delete function.
799 * frame.h (find_saved_register): Delete declaration.
800 Fix PR gdb/631.
801
64159455
AC
802Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
803
804 * mips-tdep.c (read_next_frame_reg): Re-hack using
805 frame_register_unwind.
806
795e1e11
AC
807Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
808
809 * mips-tdep.c (mips_get_saved_register): Re-hack using
810 frame_register_unwind.
811
5720643c
JB
8122002-09-12 Joel Brobecker <brobecker@gnat.com>
813
814 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
815 vector. Will be useful for Interix.
816 * gdbarch.h, gdbarch.c: Regenerate.
817
818 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
819 name of the malloc function by NAME_OF_MALLOC.
820
3bada2a2
JB
8212002-09-12 Joel Brobecker <brobecker@gnat.com>
822
823 * value.h (find_function_in_inferior): Add const keyword to
824 one of the parameters. Allows us to invoke this function with
825 a const char *.
826 * valops.c (find_function_in_inferior): Likewise.
827
3db26b01
JB
8282002-09-12 Joel Brobecker <brobecker@gnat.com>
829
830 * exec.c (xfer_memory): Fix compilation warning with old versions
831 of GCC.
832 * tracepoint.c (trace_find_tracepoint_command): Likewise.
833
17c5ed2c
DC
8342002-09-12 David Carlton <carlton@math.stanford.edu>
835
836 * symtab.h: Run through gdb_indent.h.
837 Add 2002 to Copyright year list.
838
ecd1107e
AM
8392002-09-12 Alan Modra <amodra@bigpond.net.au>
840
841 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
842 mach constants.
843 * MAINTAINERS: Add myself to write after approval list.
844
e64f66d1
JB
8452002-09-11 J. Brobecker <brobecker@gnat.com>
846
847 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
848
f9395794
JB
8492002-09-11 J. Brobecker <brobecker@gnat.com>
850
851 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
852 Interix.
853
1a303dec
MS
8542002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
855
856 * procfs.c (do_detach): Clear current signal, not just fault.
857 Corrects problem with breakpoint trap signal leaking to detached
858 process on Tru64.
859
c0219d42
MS
8602002-09-10 Michael Snyder <msnyder@redhat.com>
861
862 * buildsym.c (finish_block): Protect against null pointer.
863
9d84ac84
AC
8642002-09-10 Andrew Cagney <cagney@redhat.com>
865
866 * infcmd.c (default_print_registers_info): Send all output to
867 ``file'' instead of ``gdb_stdout''.
868
77d8f2b4
MS
8692002-09-10 Michael Snyder <msnyder@redhat.com>
870
871 * mips-tdep.c (mips_extract_struct_value_address): Make val a
872 LONGEST, and use signed register read (addresses are sign-
873 extended for mips).
874
99656a61
SC
8752002-09-10 Stephane Carrez <stcarrez@nerim.fr>
876
877 * event-loop.c (gdb_do_one_event): Make public.
878 * event-loop.h (gdb_do_one_event): Declare.
879
da12f4d8
JL
8802002-09-10 Jeff Law <law@redhat.com>
881
882 * infttrace.c (child_resume): Simplify and rework to avoid
883 TT_PROC_CONTINUE.
884
d0aee0c4
FF
8852002-09-09 Fred Fish <fnf@intrinsity.com>
886
887 * printcmd.c (print_scalar_formatted): "len" is the number of
888 target bytes, NOT the number of target bits.
889
7cb3ec5e
EZ
8902002-09-09 Elena Zannoni <ezannoni@redhat.com>
891
892 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
893 * top.c (init_main): Set rl_terminal_name.
894
4dc81987
AS
8952002-09-08 Aidan Skinner <aidan@velvet.net>
896
897 * ada-lang.c (ada_array_bound, ada_type_match,
898 _initialize_ada_language): Fix K&R definitions.
899 * ada-tasks.c (get_current_task): Fix K&R definitions.
900 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
901
842330b4
CF
9022002-09-07 Christopher Faylor <cgf@redhat.com>
903
904 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
905 Add XP.
906
43156d82
MK
9072002-09-06 Mark Kettenis <kettenis@gnu.org>
908
66da5fd8
MK
909 * i386-tdep.c (i386_register_virtual_type,
910 i386_register_convertible, i386_register_convert_to_virtual,
911 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
912 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
913 (i386_gdbarch_init): Fix comment. Add comments on calls that set
914 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
915 Don't set push_arguments twice.
916
4b218c18
MK
917 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
918 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
919 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
920 sigtramp_end to NULL.
921 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
922 defines.
923 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
924
4cc314d5
MK
925 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
926 whitespace.
927
43156d82
MK
928 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
929 * gdbarch.h, gdbarch.c: Re-generate.
930 * blockframe.c (find_pc_sect_partial_function): Convert to use
931 SIGTRAMP_START_P predicate.
932
6672060b
MS
9332002-09-05 Michael Snyder <msnyder@redhat.com>
934
a90c3637
MS
935 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
936 generic_dummy_frame method and old method. Also distinguish
937 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 938 (arm_extract_return_value): Use new regcache method.
a90c3637 939
6672060b
MS
940 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
941 adjustment that doesn't conform to the ABI.
942 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
943 saved regcache, not from current regcache.
944
299ffc64
AC
9452002-09-05 Andrew Cagney <ac131313@redhat.com>
946
947 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
948 * README: Update.
949
a3a2ee65
JT
9502002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
951
952 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
953 if arm_apcs_32 is false.
954
2bc7eea9
AC
9552002-09-04 Andrew Cagney <ac131313@redhat.com>
956
957 GDB 5.3 branch created.
958
8a55a7c5
TR
9592002-09-03 Theodore A. Roth <troth@verinet.com>
960
961 * gdb/avr-tdep.c (avr_gdbarch_init): Use
962 generic_unwind_get_saved_register.
963
e26fb1d7
DC
9642002-09-03 David Carlton <carlton@math.stanford.edu>
965
966 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
967 argument (PR gdb/653). Update call to smash_to_method_type.
968 (read_structure_scope): Update call to dwarf2_add_member_fn.
969
30d52491
ML
9702002-09-03 Michal Ludvig <mludvig@suse.cz>
971
972 * x86-64-linux-tdep.c: Include gdb_string.h
973 * x86-64-linux-nat.c: Ditto.
974
06891d83
JT
9752002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
976
977 * ada-exp.y (yyname, yyrule): Remap global variables that appear
978 when YYDEBUG is set to 1.
979 * c-exp.y: Likewise.
980 * f-exp.y: Likewise.
981 * jv-exp.y: Likewise.
982 * m2-exp.y: Likewise.
983 * p-exp.y: Likewise.
984
7d400e77
JT
9852002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
986
987 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
988 dependency list.
989 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
990 solib_svr4_fetch_link_map_offsets to
991 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
992 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
993 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
994 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
995 solib-svr4.o, and solib-legacy.o.
996 * config/i386/tm-nbsd.h: Include solib.h.
997
704a27c4
JT
9982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
999
1000 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1001 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1002 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1003 comment noting that this needs its own target configuration.
1004 * config/i386/nbsd.mt: New file.
1005 * config/i386/nbsdaout.mt: Remove.
1006 * config/i386/nbsdelf.mt: Ditto.
1007 * config/i386/tm-nbsdaout.h: Ditto.
1008
d66198e1
JT
10092002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1010
1011 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1012 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1013 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1014 tdep->sigtramp_end.
1015 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1016 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1017 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1018
3cac699e
JT
10192002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1020
1021 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1022 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1023 * i386-tdep.h (i386bsd_init_abi): New prototype.
1024 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1025 function declaration.
1026 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1027 for NetBSD-a.out or NetBSD-ELF.
1028 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1029 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1030 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1031 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1032 and nbsd-tdep.h.
1033 (i386nbsd_pc_in_sigtramp): New function.
1034 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1035 i386nbsd_pc_in_sigtramp.
1036 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1037 and i386nbsdelf_init_abi OS ABI handlers.
1038 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1039 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1040
7010ca0a
MK
10412002-09-02 Mark Kettenis <kettenis@gnu.org>
1042
1043 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1044 registers if the target really has them.
1045
6dd93b72
JT
10462002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1047
1048 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1049 than nbsd-tdep.h.
1050
2ca8ae21
JT
10512002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1052
1053 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1054 list.
1055 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1056 (alphanbsd_skip_sigtramp_frame): New functions.
1057 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1058 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1059 to alphanbsd_sigcontext_addr.
1060
3d9b49b0
JT
10612002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1062
1063 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1064 list.
1065 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1066 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1067 nbsd_pc_in_sigtramp.
1068 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1069 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1070 * nbsd-tdep.c: Include gdb_string.h.
1071 (nbsd_pc_in_sigtramp): New function.
1072 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1073 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1074 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1075 ppcnbsd_pc_in_sigtramp.
1076 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1077 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1078 shnbsd_pc_in_sigtramp.
1079 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1080 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1081 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1082
c860120c
PM
10832002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1084
1085 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1086 watchpoints to NULL.
1087 (insert_breakpoints): set val field of watchpoints if NULL.
1088
1089
c7612d53
JB
10902002-08-29 Jim Blandy <jimb@redhat.com>
1091
1092 * symtab.c (lookup_symbol_aux): In the cases where we find a
1093 minimal symbol of an appropriate name and use its address to
1094 select a symtab to read and search, use `name' (as passed to us)
1095 as the demangled name when searching the symtab's global and
1096 static blocks, not the minsym's name.
1097
66609862
KS
10982002-08-29 Keith Seitz <keiths@redhat.com>
1099
1100 * stack.c (print_frame_info_base): Always set current_source_symtab
1101 and current_source_line.
1102
151fefe2
JB
11032002-08-29 Donn Terry <donnte@microsoft.com>
1104
1105 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1106
bfb3754e
KS
11072002-08-28 Keith Seitz <keiths@redhat.com>
1108
1109 * stack.c (select_frame): Add FIXME concerning selected-frame
1110 events.
1111 (select_frame_command): Send selected-frame-level-changed
1112 event notification, but only if the level actually changed.
1113 (up_silently_base): Add selected-frame-level-changed event
1114 notification.
1115 (down_silently_base): Likewise.
1116
e822a2a0
AC
11172002-08-28 Andrew Cagney <ac131313@redhat.com>
1118
1119 * Makefile.in: Update dependencies for all gdb/*.c files.
1120
309367d4
TT
11212002-08-27 Tom Tromey <tromey@redhat.com>
1122
1123 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1124 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1125 Update dependencies.
1126 * i387-tdep.c: Include gdb_string.h.
1127 * osabi.c: Likewise.
1128 * i386-linux-nat.c: Likewise.
1129 * lin-lwp.c: Likewise.
1130 * ax-gdb.c: Likewise.
1131 * signals/signals.c: Likewise.
1132 * jv-valprint.c: Likewise.
1133 * p-lang.c: Likewise.
1134 * c-valprint.c: Likewise.
1135 * cp-abi.c: Likewise.
1136
e1507482
EZ
11372002-08-27 Elena Zannoni <ezannoni@redhat.com>
1138
1139 * cli/cli-script.h (copy_command_lines): Export.
1140 * breakpoint.c: Include cli/cli-script.h.
1141 * Makefile.in (breakpoint.o): Update dependencies.
1142
c6510018
MS
11432002-08-26 Michael Snyder <msnyder@redhat.com>
1144
1145 * breakpoint.c (insert_breakpoints): Protect all references
1146 to 'process_warning'. Shorten long lines.
1147
c2b8ed2c
MS
11482002-08-26 Joel Brobecker <brobecker@gnat.com>
1149
1150 * cli/cli-script.c (copy_command_lines): New function.
1151 * defs.h (copy_command_lines): Export.
1152 * testsuite/gdb.base/commands.exp: New tests for commands
1153 attached to a temporary breakpoint, and for commands that
1154 delete the breakpoint they are attached to.
1155
11562002-08-26 Michael Snyder <msnyder@redhat.com>
1157
1158 * breakpoint.c (bpstat_stop_status): Instead of copying the
1159 pointer to the breakpoint commands struct, make a new copy
1160 of the struct and point to that.
1161 (bpstat_clear): Free the commands struct.
1162 (bpstat_clear_actions): Free the commands struct.
1163 (bpstat_do_actions): Free the command actions. Also execute
1164 the local cleanups, instead of deleting them.
1165 (delete_breakpoint): Leave the commands field of the bpstat
1166 chain alone -- it will be freed later.
1167
64b84175
KB
11682002-08-26 Kevin Buettner <kevinb@redhat.com>
1169
1170 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1171 deleted in 2002-08-20 commit. This function is still used by
1172 ppc-linux-nat.c.
1173
55970da6
KS
11742002-08-26 Keith Seitz <keiths@redhat.com>
1175
1176 * gdb-events.sh: Add selected-frame-level-changed event.
1177 * gdb-events.c: Regenerated.
1178 * gdb-events.h: Regenerated.
1179
a790ad35
SC
11802002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1181
1182 Fix PR gdb/393:
1183 * inflow.c (terminal_save_ours): New function to save terminal
1184 settings.
1185 * inferior.h (terminal_save_ours): Declare.
1186 * target.c (debug_to_terminal_save_ours): New function.
1187 (cleanup_target): Defaults to_terminal_save_ours.
1188 (update_current_target): Inherit to_terminal_save_ours.
1189 (setup_target_debug): Set to_terminal_save_ours.
1190 * target.h (target_terminal_save_ours): New to save terminal settings.
1191 (target_ops): New member to_terminal_save_ours.
1192 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1193 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1194 * inftarg.c (init_child_ops): Likewise.
1195 * m3-nat.c (init_m3_ops): Likewise.
1196 * procfs.c (init_procfs_ops): Likewise.
1197 * wince.c (init_child_ops): Likewise.
1198 * win32-nat.c (init_child_ops): Likewise.
1199 * sol-thread.c (init_sol_thread_ops): Likewise.
1200
c00dcbe9
MK
12012002-08-26 Mark Kettenis <kettenis@gnu.org>
1202
3d7f4f49
MK
1203 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1204 use regcache_* functions.
1205 (i386_gdbarch_init): Set store_return_value instead of
1206 deprecated_store_return_value.
1207
c00dcbe9
MK
1208 * regcache.c (regcache_raw_write_signed,
1209 regcache_raw_write_unsigned): New functions.
1210 * regcache.h (regcache_raw_write_signed,
1211 regcache_raw_write_unsigned): New prototypes.
1212
0e0d15ca
AC
12132002-08-25 Andrew Cagney <ac131313@redhat.com>
1214
1215 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1216 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1217 source file dependencies. Cleanup corresponding generator rules.
1218
d3b22ed5
AC
12192002-08-25 Andrew Cagney <ac131313@redhat.com>
1220
1221 * regcache.h (register_offset_hack): Declare.
1222 (regcache_cooked_read_using_offset_hack): Declare.
1223 (regcache_cooked_write_using_offset_hack): Declare.
1224
1225 * regcache.c (register_offset_hack): New function.
1226 (regcache_cooked_read_using_offset_hack): New function.
1227 (regcache_cooked_write_using_offset_hack): New function.
1228 (regcache_dump): Check that the registers, according to their
1229 offset, are packed hard against each other.
1230 (cooked_xfer_using_offset_hack): New function.
1231
bb425013
AC
12322002-08-25 Andrew Cagney <ac131313@redhat.com>
1233
1234 * regcache.c (struct regcache_descr): Add field register_type.
1235 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1236 in as a parameter
1237 (init_regcache_descr): Initialize register_type. Pass the descr
1238 to init_legacy_regcache_descr. Use register_type instead of
1239 REGISTER_VIRTUAL_TYPE.
1240 (register_type): New function.
1241 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1242 * regcache.h (register_type): Declare.
1243
d0403e00
AC
12442002-08-25 Andrew Cagney <ac131313@redhat.com>
1245
1246 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1247 instead of deprecated_store_return_value. Fix fallout from
1248 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1249
0ed04cce
AC
12502002-08-25 Andrew Cagney <ac131313@redhat.com>
1251
1252 * regcache.c (max_register_size): New function.
1253 (init_legacy_regcache_descr): Ensure that max_register_size is
1254 large enough for REGISTER_VIRTUAL_SIZE.
1255 * regcache.h (max_register_size): Declare.
1256
46d79c04
AC
12572002-08-24 Andrew Cagney <ac131313@redhat.com>
1258
1259 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1260 store_return_value.
1261 (e500_extract_return_value): Change type of valbuf pointer to
1262 void.
1263
853c7bd0
MK
12642002-08-24 Mark Kettenis <kettenis@gnu.org>
1265
cd87e769
MK
1266 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1267 workaround.
1268
853c7bd0
MK
1269 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1270 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1271 long long) to prevent compiler warning on 64-bit systems.
1272
ebba8386
AC
12732002-08-23 Andrew Cagney <cagney@redhat.com>
1274
1275 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1276 (DEPRECATED_STORE_RETURN_VALUE): New method.
1277 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1278 * gdbarch.h, gdbarch.c: Re-generate.
1279
1280 * values.c (set_return_value): Pass current_regcache to
1281 STORE_RETURN_VALUE.
1282 * arch-utils.h (legacy_store_return_value): Declare.
1283 * arch-utils.c (legacy_store_return_value): New function.
1284 (legacy_extract_return_value): Update parameters.
1285
1286 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1287 STORE_RETURN_VALUE.
1288 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1289 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1290 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1291 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1292 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1293 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1294 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1295 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1296 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1297 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1298
1299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1300 * i386-tdep.c (i386_extract_return_value): Update.
1301 * arch-utils.c (legacy_extract_return_value): Update.
1302 * frv-tdep.c (frv_gdbarch_init): Update.
1303 * cris-tdep.c (cris_gdbarch_init): Update.
1304 * d10v-tdep.c (d10v_gdbarch_init): Update.
1305 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1306 * m68k-tdep.c (m68k_gdbarch_init): Update.
1307 * mcore-tdep.c (mcore_gdbarch_init): Update.
1308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1309 * s390-tdep.c (s390_gdbarch_init): Update.
1310 * sparc-tdep.c (sparc_gdbarch_init): Update.
1311 * sh-tdep.c (sh_gdbarch_init): Update.
1312 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1313 * v850-tdep.c (v850_gdbarch_init): Update.
1314 * avr-tdep.c (avr_gdbarch_init): Update.
1315 * ia64-tdep.c (ia64_gdbarch_init): Update.
1316 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1317 * vax-tdep.c (vax_gdbarch_init): Update.
1318 * alpha-tdep.c (alpha_gdbarch_init): Update.
1319 * arm-tdep.c (arm_gdbarch_init): Update.
1320 * mips-tdep.c (mips_gdbarch_init): Update.
1321 * i386-tdep.c (i386_gdbarch_init): Update.
1322
5bd8c6d0
AC
13232002-08-23 Andrew Cagney <ac131313@redhat.com>
1324
1325 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1326 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1327
e73e1724
MK
13282002-08-24 Mark Kettenis <kettenis@gnu.org>
1329
1330 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1331 problems.
1332
3e6564e1
JB
13332002-08-23 Joel Brobecker <brobecker@gnat.com>
1334
1335 * infrun.c (handle_inferior_event): Move a comment outside of a
1336 function call, in order to avoid indent reformatting this part
1337 of the code in an unreadable way.
1338
81d0cc19
GS
13392002-08-23 Grace Sainsbury <graces@redhat.com>
1340
1341 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1342 when breakpoints fail. Move general breakpoint error messages to
1343 insert_breakpoints.
1344 * breakpoint.c (insert_breakpoints): Change warnings when
1345 breakpoints are nto inserted to specify the type. Remove call to
1346 memory_error when hardware breakpoints can't be inserted. Remove
1347 multiple calls to warning so all messages are sent to the user at
1348 once.
1349 (delete_breakpoints): Make insert error messsages more explicit.
1350
17574093
DJ
13512002-08-23 Daniel Jacobowitz <drow@mvista.com>
1352
1353 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1354 gdbserver/ChangeLog.
1355
8acc2935
MK
13562002-08-23 Mark Kettenis <kettenis@gnu.org>
1357
dfe01d39
MK
1358 * i386-tdep.c: Include "objfiles.h".
1359 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1360 skip_trampoline_code.
1361 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1362 (CPLUS_MARKER): Define to '.'.
1363
8acc2935
MK
1364 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1365 member.
1366 (linux_corefile_thread_callback): Increase args->num_notes.
1367 (linux_make_note_section): Initialize thread_args.num_notes, and
1368 use it to determine whether notes for any threads were created.
1369
151fefe2 13702002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1371
1372 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1373 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1374 and PCUNKILL.
1375 (write_with_trace): Conditionalize out the switch branch handling
1376 PCSHOLD if the corresponding macro is not defined. Likewise for
1377 PRSABORT and PRSTOP.
1378 This change will be needed by the Interix port.
1379
e1507482
EZ
13802002-08-22 Elena Zannoni <ezannoni@redhat.com>
1381
1382 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1383 write_register wherever possible instead of manipulating the
1384 register bytes directly.
1385 Assign VALUE_CONTENTS to a variable and use that.
1386 The GPR numbers are now dependent on the architecture.
1387
96ff0de4
EZ
13882002-08-22 Elena Zannoni <ezannoni@redhat.com>
1389
1390 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1391 ev_offset fields.
1392 (skip_prologue): Add support for BookE/e500 instructions.
1393 (e500_extract_return_value): New function.
1394 (frame_get_saved_regs): Add support for saving ev registers and
1395 pseudo gpr's.
1396 (e500_store_return_value): New function.
1397 (rs6000_gdbarch_init): Move up default intializations of
1398 deprecated_extract_return_value and store_return_value. Overwrite
1399 init of store_return_value with e500 specific version.
1400 Set extract_return_value for e500.
1401
fbefca5b
EZ
14022002-08-22 Elena Zannoni <ezannoni@redhat.com>
1403
1404 * blockframe.c (generic_call_dummy_register_unwind): Use
1405 regcache_cooked_read to catch cases in which the variable is
1406 stored in a pseudo register.
1407
4d210288
AC
14082002-08-22 Andrew Cagney <cagney@redhat.com>
1409
1410 * NEWS: Mention that the i960 has been made obsolete.
1411 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1412 i960-tdep.c
1413 (remote-nrom.o): Obsolete target.
1414 (remote-nindy.o, i960-tdep.o): Ditto.
1415 * remote-nrom.c: Make file obsolete.
1416 * remote-nindy.c, remote-vx960.c: Ditto.
1417 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1418 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1419 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1420 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1421 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1422 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1423 i960-*-vxworks* obsolete.
1424 * MAINTAINERS: Note that the i960 is obsolete.
1425
6c0c456d
CV
14262002-08-21 Corinna Vinschen <vinschen@redhat.com
1427
1428 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1429 detach to allow reinitialization.
1430
9f9d12b3
AC
14312002-08-22 Andrew Cagney <ac131313@redhat.com>
1432
1433 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1434 attempt).
1435
ebeb39fe
JB
14362002-08-22 Jim Blandy <jimb@redhat.com>
1437
1438 * coffread.c (coff_symfile_read): Don't try to read the line
1439 number table from disk if the image file doesn't have a symbol
1440 table; we'll never actually look at the info anyway, and Windows
1441 ships DLL's with bogus file offsets for the line number data.
1442
5bf1c677
EZ
14432002-08-21 Elena Zannoni <ezannoni@redhat.com>
1444
1445 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1446 an e500 executable.
1447
71b8ef93
MS
14482002-08-21 Michael Snyder <msnyder@redhat.com>
1449
1450 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1451 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1452 (DEFAULT_MIPS_TYPE): Delete unused macro.
1453 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1454 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1455
d174216d
JB
14562002-08-21 Jim Blandy <jimb@redhat.com>
1457
1458 * valops.c (value_cast): Simplify and correct logic for doing a
1459 static cast from a pointer to a base class to a pointer to a
1460 derived class.
1461
0ab7a791
AC
14622002-08-21 Andrew Cagney <ac131313@redhat.com>
1463
1464 * infcmd.c (default_print_registers_info): Replace
1465 do_registers_info.
1466 (registers_info): Use gdbarch_print_registers_info instead of
1467 DO_REGISTERS_INFO.
1468 * inferior.h (default_print_registers_info): Replace
1469 do_registers_info.
1470 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1471 (DO_REGISTERS_INFO): Change to a predicate function.
1472 * gdbarch.h, gdbarch.c: Regenerate.
1473
e23792cc
KS
14742002-08-21 Keith Seitz <keiths@redhat.com>
1475
1476 * gdb-events.sh: Add target-changed event.
1477 * gdb-events.c: Regenerated.
1478 * gdb-events.c: Regenerated.
1479 * valops.c (value_assign): Add target-changed event notification
1480 to inlval_register, lval_memory, and lval_reg_frame_relative.
1481
9fb14e79
JB
14822002-08-21 Joel Brobecker <brobecker@gnat.com>
1483
1484 * NEWS: Add an entry regarding the improvement of the next/step
1485 operation on Alpha Tru64 multi-processor machines.
1486
6d39a69f
AC
14872002-08-21 Andrew Cagney <ac131313@redhat.com>
1488
72acd513
AC
1489 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1490 directores.
342af04b 1491 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1492 * Makefile.in (install-gdbtk): Move to install section.
1493 (rdi-share/libangsd.a): Move to end of file.
1494
fa5f27c7
AC
14952002-08-19 Andrew Cagney <ac131313@redhat.com>
1496
1497 * frame.c (frame_register_unwind): When a register, set addrp to
1498 the register's byte.
1499
5a89d8aa
MS
15002002-08-20 Michael Snyder <msnyder@redhat.com>
1501
1502 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1503 used locally, so move them from the target machine header to here.
1504 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1505 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1506 Make static.
1507 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1508
822e978b
AC
15092002-08-20 Andrew Cagney <cagney@redhat.com>
1510
1511 * NEWS: Mention that the Apollo line was made obsolete.
1512 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1513 m68*-hp-hpux* obsolete.
1514 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1515 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1516 * buildsym.c (make_blockvector): Make static.
1517 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1518 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1519 (ALLDEPFILES): Remove dstread.c.
1520 (dstread.o): Obsolete make rule.
1521 * dstread.c: Makefile obsolete.
1522 * dst.h: Ditto.
1523 * config/m68k/hp300hpux.mt: Ditto.
1524 * config/m68k/hp300hpux.mh: Ditto.
1525 * config/m68k/hp300bsd.mt: Ditto.
1526 * config/m68k/hp300bsd.mh: Ditto.
1527 * config/m68k/apollo68b.mt: Ditto.
1528 * config/m68k/apollo68v.mh: Ditto.
1529 * config/m68k/apollo68b.mh: Ditto.
1530
e41b17f0
MS
15312002-08-20 Michael Snyder <msnyder@redhat.com>
1532
1533 * mips-tdep.c (mips_in_return_stub): Make static.
1534 (mips_gdbarch_init): Set in_solib_return_trampoline.
1535 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1536
d50355b6
MS
15372002-08-20 Michael Snyder <msnyder@redhat.com>
1538
1539 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1540 * gdbarch.c, gdbarch.h: Regenerate.
1541 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1542 Add.
1543 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1544
757a7cc6
MS
15452002-08-20 Michael Snyder <msnyder@redhat.com>
1546
1547 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1548 (mips_gdbarch_init): Set skip_trampoline_code,
1549 in_solib_call_trampoline.
1550 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1551 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1552
c8001721
EZ
15532002-08-20 Elena Zannoni <ezannoni@redhat.com>
1554
1555 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1556
1557 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1558 vector type for ev registers.
1559 (e500_pseudo_register_read): New function.
1560 (e500_pseudo_register_write): New function.
1561 (e500_dwarf2_reg_to_regnum): New function.
1562 (PPC_UISA_NOFP_SPRS): New macro.
1563 (PPC_EV_REGS): New macro.
1564 (PPC_GPRS_PSEUDO_REGS): New macro.
1565 (registers_e500): New register set for e500.
1566 (variants): Add e500 variant.
1567 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1568 before setting architectural dependent variations. Initialize ev
1569 registers numbers. Add case for e500 architecture. Set the
1570 number of pseudo registers.
1571
64366f1c
EZ
15722002-08-20 Elena Zannoni <ezannoni@redhat.com>
1573
1574 * rs6000-tdep.c: Clean up comments.
1575
7e78f0ca
AC
15762002-08-20 Andrew Cagney <cagney@redhat.com>
1577
1578 * h8300-tdep.c: Re-indent file.
1579
697f7479
JB
15802002-08-20 Jim Blandy <jimb@redhat.com>
1581
1582 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1583 default for this.
697f7479 1584
e86ae29f
KS
15852002-08-20 Keith Seitz <keiths@redhat.com>
1586
1587 * breakpoints.c (watch_command_1): Use internal breakpoint
1588 when setting a watchpoint_scope breakpoint.
1589
216b504f
EZ
15902002-08-20 Elena Zannoni <ezannoni@redhat.com>
1591
1592 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1593 (build_builtin_type_vec64i): Ditto.
1594 (build_builtin_type_vec128): Ditto.
1595 (build_builtin_type_vec128i): Ditto.
1596
f7ab6ec6
MS
15972002-08-19 Michael Snyder <msnyder@redhat.com>
1598
1599 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1600 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1601 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1602 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1603 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1604 CALL_DUMMY_ADDRESS): Delete.
1605 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1606 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1607 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1608 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1609 push_return_address.
1610 (mips_register_raw_size, mips_eabi_use_struct_convention,
1611 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1612 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1613 mips_init_extra_frame_info, mips_eabi_push_arguments,
1614 mips_n32n64_push_arguments, mips_push_return_address,
1615 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1616 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1617
b5d1566e
MS
16182002-08-19 Michael Snyder <msnyder@redhat.com>
1619
1620 * mips-tdep.c (mips_frame_num_args): New function.
1621 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1622 frame_saved_pc, frame_args_address, frame_locals_address,
1623 frame_num_args, and frame_args_skip.
1624 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1625 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1626 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1627 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1628
2f1488ce
MS
16292002-08-20 Michael Snyder <msnyder@redhat.com>
1630
1631 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1632 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1633 * mips-tdep.c (mips_store_struct_return): New function.
1634 (mips_extract_struct_value_address): New function.
1635 (mips_gdbarch_init): Set store_struct_return and
1636 extract_struct_value_address.
1637
41ff2da1
DC
16382002-08-20 David Carlton <carlton@math.stanford.edu>
1639
1640 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1641 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1642 (read_file_scope): Check that line_header is nonzero before
1643 decoding macro information.
1644
e5451d58
MK
16452002-08-20 Mark Kettenis <kettenis@gnu.org>
1646
1647 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1648 flag the general-purpose registers as floating-point on targets
1649 that don't support the floating-point registers.
1650
4a6daafa
EZ
16512002-08-20 Elena Zannoni <ezannoni@redhat.com>
1652
1653 * rs6000-tdep.c (altivec_register_p): Delete.
1654 (rs6000_do_altivec_registers): Delete.
1655 (rs6000_altivec_registers_info): Delete.
1656 (rs6000_do_registers_info): Delete.
1657 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1658 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1659
ab4327e0
EZ
16602002-08-20 Elena Zannoni <ezannoni@redhat.com>
1661
1662 * infcmd.c (do_registers_info): Print vector registers in hex
1663 format only.
1664 (print_vector_info): Check that printing registers
1665 makes sense.
1666 (print_float_info): Ditto.
1667
cb1d2653
AC
16682002-08-20 Andrew Cagney <ac131313@redhat.com>
1669
1670 * mips-tdep.c (mips_gdbarch_init): Update.
1671 (mips_o32_extract_return_value): Rewrite.
1672 (mips_o32_store_return_value): Rewrite.
1673 (mips_o32_xfer_return_value): New function.
1674 (mips_xfer_register): Tweak debug print message. Allow for
1675 buf_offset when dumping the value transfered.
1676
dfc3d9b2
AC
16772002-08-20 Andrew Cagney <ac131313@redhat.com>
1678
1679 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1680 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1681 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1682 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1683 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1684
7807aa61
MS
16852002-08-14 Michael Snyder <msnyder@redhat.com>
1686
1687 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1688
489461e2
EZ
16892002-08-19 Elena Zannoni <ezannoni@redhat.com>
1690
1691 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1692 register.
1693 (P): New macro to define a register as a pseudo register.
1694 (R, R4, R8, R16, FR32, R64, R0): Updated.
1695 (struct variant): Add new fields for number of pseudo registers
1696 and number of total registers.
1697 (tot_num_registers): New macro replacing....
1698 (num_registers): ...deleted macro.
1699 (num_registers): New function.
1700 (num_pseudo_registers): New function.
1701 (variants): Update all variants to intialize new fields correctly.
1702 Postpone initialization of number of pseudo regs and real regs.
1703 (init_variants): New function.
1704 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1705 registers offsets.
1706
fcaffe4c
DC
17072002-08-19 David Carlton <carlton@math.stanford.edu>
1708
2c2738a0
DC
1709 * valops.c (search_struct_field): Change error message to treat
1710 return value of 0 from value_static_field as meaning that field is
1711 optimized out.
1712 (value_struct_elt_for_reference): Ditto.
1713 * values.c (value_static_field): Treat an unresolved location the
1714 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1715 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1716 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1717 * MAINTAINERS: Add self to Write After Approval list.
1718
88658117
AC
17192002-08-19 Andrew Cagney <ac131313@redhat.com>
1720
1721 * mips-tdep.c (mips_xfer_register): New function.
1722 (mips_n32n64_extract_return_value): Rewrite.
1723 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1724 instead of deprecated_extract_return_value.
1725
21283beb
EZ
17262002-08-19 Elena Zannoni <ezannoni@redhat.com>
1727
1728 * rs6000-tdep.c (TDEP): Delete macro.
1729 (branch_dest): Replace use of TDEP macro with its body.
1730 (rs6000_pop_frame): Ditto.
1731 (rs6000_push_arguments): Ditto.
1732 (rs6000_skip_trampoline_code): Ditto.
1733 (rs6000_frame_saved_pc): Ditto.
1734 (rs6000_frame_chain): Ditto.
1735 (rs6000_register_name): Ditto.
1736 (rs6000_register_byte): Ditto.
1737 (rs6000_register_raw_size): Ditto.
1738 (rs6000_register_virtual_type): Ditto.
1739 (rs6000_register_convertible): Ditto.
1740 (rs6000_convert_from_func_ptr_addr): Ditto.
1741
bf072999
DJ
17422002-08-19 Daniel Jacobowitz <drow@mvista.com>
1743
1744 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1745 conditionally.
1746 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1747 MIPS_LINUX_JB_ELEMENT_SIZE.
1748 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1749 for MAX_REGISTER_RAW_SIZE arrays.
1750 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1751 MIPS_LINUX_JB_ELEMENT_SIZE.
1752
9b949a49
PM
17532002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1754
1755 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1756
6d3e79c6
AS
17572002-08-19 Aidan Skinner <aidan@velvet.net>
1758
1759 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1760 ada-valprint.c ada-tasks.c.
1761 (YYFILES): Add ada-exp.y.
1762 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1763 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1764 (ada-exp.tab.o): New target.
1765
06c0b04e
AC
17662002-08-18 Andrew Cagney <ac131313@redhat.com>
1767
1768 * regcache.c (regcache_xfer_part): New function.
1769 (regcache_raw_read_part): New function.
1770 (regcache_raw_write_part): New function.
1771 (regcache_cooked_read_part): New function.
1772 (regcache_cooked_write_part): New function.
1773 * regcache.h (regcache_raw_read_part): Declare.
1774 (regcache_raw_write_part): Declare.
1775 (regcache_cooked_read_part): Declare.
1776 (regcache_cooked_write_part): Declare.
1777
92d1e331
DJ
17782002-08-18 Daniel Jacobowitz <drow@mvista.com>
1779
1780 * remote.c (remote_open_1): Add async_p.
1781 (remote_async_open_1): Delete.
1782 (open_remote_target): Delete.
1783 (remote_open, extended_remote_open): Update calls to remote_open_1.
1784 (remote_async_open, extended_remote_async_open): Call
1785 remote_open_1 instead of remote_async_open_1.
1786
247055de
MK
17872002-08-19 Mark Kettenis <kettenis@gnu.org>
1788
1789 * blockframe.c: Fix a few coding standard violations.
1790
641eda39
MK
17912002-08-19 Mark Kettenis <kettenis@gnu.org>
1792
0b717710
MK
1793 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1794 here from ...
1795 * config/i386/tm-i386sco5.h: ... here. File removed.
1796 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1797
26d28e12 1798 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1799 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1800 (TM_FILE): Set to tm-i386.h.
1801 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1802 * config/i386/tm-i386v.h: Remove file.
1803 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1804 instead of "i386/tm-i386v.h".
1805 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1806 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1807 "i386/tm-i386v.h".
1808 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1809 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1810 "i386/tm-i386.h".
1811
d4e0bab4
MK
18122002-08-18 Mark Kettenis <kettenis@gnu.org>
1813
1814 * config/i386/nm-i386v.h: Add protection against
1815 multiple-inclusion.
1816 (i386_register_u_addr): Remove prototype.
1817 (register_u_addr): New prototype.
1818 (REGISTER_U_ADDR): Redefine accordingly.
1819 * i386v-nat.c: Improve several comments.
1820 (i386_register_u_addr): Change signature and rename to
1821 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1822 ubase variable.
1823
46cac009
AC
18242002-08-18 Andrew Cagney <ac131313@redhat.com>
1825
1826 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1827 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1828 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1829 deprecated_extract_return_value.
1830 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1831 rename mips_o32o64_push_arguments.
1832 (mips_gdbarch_init): Update.
1833 (mips_extract_return_value): Delete.
1834 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1835 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1836 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1837 (mips_n32n64_extract_return_value): Clone
1838 mips_extract_return_value.
1839 (mips_store_return_value): Delete.
1840 (mips_o32_store_return_value): Clone mips_store_return_value.
1841 (mips_o64_store_return_value): Clone mips_store_return_value.
1842 (mips_eabi_store_return_value): Clone mips_store_return_value.
1843 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1844
d2e4a39e
AS
18452002-08-18 Aidan Skinner <aidan@velvet.net>
1846
0c30c098
AS
1847 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1848 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1849
18502002-08-18 Aidan Skinner <aidan@velvet.net>
1851
1852 * ada-lang.c: Run through gdb_indent.sh.
1853 * ada-lang.h: Run through gdb_indent.sh.
1854 * ada-tasks.c: Run through gdb_indent.sh.
1855 * ada-typeprint.c: Run through gdb_indent.sh.
1856 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1857
01fc4e33
AC
18582002-08-18 Andrew Cagney <ac131313@redhat.com>
1859
1860 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1861 ABI.
1862
d8ee244c
MK
18632002-08-18 Mark Kettenis <kettenis@gnu.org>
1864
c38d8261
MK
1865 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1866
222db64c
MK
1867 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1868 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1869
c2848c82
MK
1870 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1871 write_register_gen instead of write_register_bytes.
1872
d8ee244c
MK
1873 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1874 i[3456]-*-osf1mk* configurations have been made obsolete.
1875 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1876 i[3456]86-*-osf1mk* hosts obsolete.
1877 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1878 targets obsolete.
1879 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1880 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1881 config/i386/i386m3.mt, config/i386/nm-m3.h,
1882 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1883 config/i386/i386mk.mh, config/i386/i386mk.mt,
1884 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1885 obsolete.
1886 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1887 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1888 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1889
61d8d407
AC
18902002-08-18 Andrew Cagney <ac131313@redhat.com>
1891
1892 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1893 (hppa_value_returned_from_stack): Declare.
1894 (hppa_extract_return_value): Declare.
1895 * config/pa/hppa.mt: New file.
1896 * configure.tgt: Recognize hppa*-*-*.
1897 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1898
0c52bd59
MK
18992002-08-18 Mark Kettenis <kettenis@gnu.org>
1900
1901 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1902 comment.
1903
b5686e99
MK
19042002-08-17 Mark Kettenis <kettenis@gnu.org>
1905
1906 * top.c (gdb_rl_operate_and_get_next): Make sure
1907 operate-and-get-next functions correctly even when the history
1908 list is completely filled.
1909
c1bab85b
AC
19102002-08-18 Andrew Cagney <ac131313@redhat.com>
1911
1912 * MAINTAINERS (Target Instruction Set Architectures): Rename
1913 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1914 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1915 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1916 already listed under Host/Native.
1917
1918 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1919 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1920 mips*-*-*.
1921
32089c7c
AC
19222002-08-17 Andrew Cagney <ac131313@redhat.com>
1923
1924 * config/ia64/ia64.mt: New file.
1925 * config/alpha/alpha.mt: New file.
1926 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1927 ia64-linux-gnu. Mention that ia64-elf is broken.
1928 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1929
b4671f85
MK
19302002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1931
1932 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1933 generic_func_frame_valid instead of func_frame_valid.
1934
c8edd8b4
JB
19352002-08-16 Joel Brobecker <brobecker@gnat.com>
1936
1937 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1938 procfs appears to be broken when debugging on multi-processor
1939 machines. So enable software single stepping in order to avoid
1940 using the procfs interface to do next/step operations, using
1941 internal breakpoints instead.
1942
1943 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1944 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1945 make this pc address equal to the value it would have if the
1946 system stepping capability was used. Also set a new flag used
1947 to ensure that we don't readjust the PC one more time later.
1948
1949 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1950 address by DECR_PC_AFTER_BREAK when software single step is
1951 in use for this architecture, as this has already been taken
1952 care of in handle_inferior_event().
1953
238617f6
JB
19542002-08-16 Joel Brobecker <brobecker@gnat.com>
1955
1956 * infrun.c (handle_inferior_event): Minor reformatting, to make
1957 a rather long condition expression easier to read.
1958
541a7aac
AC
19592002-08-16 Andrew Cagney <ac131313@redhat.com>
1960
1961 * Makefile.in (gdbtk.o): Move to end of file.
1962 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1963 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1964 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1965 (gdbtk-wrapper.o, gdbres.o): Ditto.
1966
f92d4a7b
AC
19672002-08-16 Andrew Cagney <ac131313@redhat.com>
1968
1969 * Makefile.in (copying.o): Separate out compile rule.
1970 (hpux-thread.o, procfs.o, signals.o): Ditto.
1971 (v850ice.o, z8k-tdep.o): Ditto.
1972 (tui-file.o): Move to TUI section.
1973 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1974 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1975
1cce71eb
JB
19762002-08-16 Joel Brobecker <brobecker@gnat.com>
1977
1978 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1979 skip_trampoline_code, for better namespace-proofing.
1980
1981 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1982
0851f23d
JB
19832002-08-16 Joel Brobecker <brobecker@gnat.com>
1984
1985 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1986
f8d40ec8
JB
19872002-08-16 Joel Brobecker <brobecker@gnat.com>
1988
1989 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1990 signal, check whether we hit a breakpoint before checking for a
1991 single step breakpoint. Otherwise, GDB fails to notice that a
1992 breakpoint has been hit when stepping onto a breakpoint.
1993
63d022e0
KS
19942002-08-16 Keith Seitz <keiths@redhat.com>
1995
1996 * gdb-events.sh (clear_gdb_event_hooks): New function.
1997 * gdb-events.c: Regenerate.
1998 * gdb-events.h: Regenerate.
1999
6e31adb3
AC
20002002-08-16 Andrew Cagney <ac131313@redhat.com>
2001
2002 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2003 not_a_sw_breakpoint.
2004 * breakpoint.h (bpstat_stop_status): Add parameter names.
2005
c8189ed1
GS
20062002-08-16 Grace Sainsbury <graces@redhat.com>
2007
2008 * remote.c (remote_insert_hw_breakpoint)
2009 (remote_remove_hw_breakpoint): Fix calculation of length field
2010 for Z-packet.
2011
d05285fa
MS
20122002-08-15 Michael Snyder <msnyder@redhat.com>
2013
466d7106
MS
2014 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2015 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2016 (supply_fpregset): Ditto.
2017
d05285fa
MS
2018 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2019 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2020 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 2021 (TARGET_READ_SP): Delete.
bf1f5b4c 2022 (DO_REGISTERS_INFO): Delete.
102182a9
MS
2023 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2024 Delete.
2025 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2026 from macros to functions.
bf1f5b4c 2027
d05285fa
MS
2028 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2029 (mips_register_convertible, mips_register_convert_to_virtual,
2030 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
2031 (mips_read_sp): New function.
2032 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
2033 (mips_do_registers_info): Make static.
2034 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
2035 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2036 (mips_register_convert_from_type, mips_register_convert_to_type):
2037 New functions.
2038 (mips_gdbarch_init): Set up function_start_offset,
2039 register_virtual_size, pc_in_sigtramp.
d05285fa 2040
e76f1f2e
AC
20412002-08-15 Andrew Cagney <ac131313@redhat.com>
2042
2043 * infcmd.c (vector_info): New function.
2044 (_initialize_infcmd): Add command "info vector".
2045 (print_vector_info): New function.
2046
2047 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2048 * gdbarch.h, gdbarch.c: Regenerate.
2049
4782dc19
AC
20502002-08-15 Andrew Cagney <ac131313@redhat.com>
2051
2052 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2053 ``print_all''. Only print vector registers when ``print_all''.
2054
23e3a7ac
AC
20552002-08-15 Andrew Cagney <ac131313@redhat.com>
2056
8e186fd6
AC
2057 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2058 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2059
23e3a7ac
AC
2060 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2061 Add `args' parameter.
2062 * gdbarch.h, gdbarch.c: Regenerate.
2063
2064 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2065
2066 * infcmd.c (float_info): Call print_float_info.
2067 (print_float_info): New function. By default, print the
2068 floating-point registers.
2069
2070 * arch-utils.h (default_print_float_info): Delete declaration.
2071 * arch-utils.c (default_print_float_info): Delete function.
2072
e0ca2bb9
MK
20732002-08-16 Mark Kettenis <kettenis@gnu.org>
2074
3f733acc
MK
2075 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2076 out define.
2077
7d8d2918
MK
2078 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2079 FRAME.
2080
1c7cc583
MK
2081 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2082 * configure.host: Make i[3456]86-*-aix host obsolete.
2083 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2084 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2085 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2086 config/i386/xm-i386aix.h: Make files obsolete.
2087 * i386aix-nat.c: Make file obsolete.
2088 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2089 (i386aix-nat.o): Make target obsolete.
2090
e0ca2bb9
MK
2091 * config/i386/nm-gnu.h: Removed.
2092 * config/i386/nm-i386gnu.h: New file.
2093 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2094 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2095 Moved here from ...
2096 * config/i386/tm-i386gnu.h: ... here. Removed.
2097 * config/i386/xm-i386gnu.h: Removed.
2098 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2099 (NAT_FILE): Set to nm-i386gnu.h.
2100 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2101 * i386-tdep.c: New file.
2102 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2103 (i386gnu-tdep.o): Specify dependencies.
2104
16057ec7 21052002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 2106
6b99ee2e
MK
2107 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2108 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2109 Adjust a few comments to reflect reality a bit closer.
2110 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2111 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2112 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2113 target_insert_watchpoint, target_remove_watchpoint):
2114 Move defines to ...
2115 * config/i386/nm-i386sco5.h: ... here.
2116 (kernel_u_size): Add prototype. Improve a few comments and add
2117 protection against multiple inclusion.
2118
d9a6f65c
MK
2119 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2120 out define.
2121
047eff6a
MK
2122 * uw-thread.c (SP_ARG0): Define if not already defined.
2123 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2124
dcdb1290
MK
2125 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2126
5d2d0b2a
MK
2127 * config/i386/tm-i386.h: Don't include "regcache.h".
2128
61113f8b
MK
2129 * i387-tdep.h (i387_print_float_info): New prototype.
2130 * i387-tdep.c (print_i387_value, print_i387_ext,
2131 print_i387_status_word, print_i387_control_word): Add `struct
2132 ui_file *' argument and use it for output.
2133 (i387_print_float_info): Renamed from i387_float_info. Add
2134 `struct gdbarch *' and `struct ui_file *' arguments and use the
2135 latter for output.
2136 * i386-tdep.c: Include "i387-tdep.h".
2137 (i386_gdbarch_init): Set print_float_info.
2138 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2139 (FLOAT_INFO): Remove define.
2140
46e0f506
MS
21412002-08-13 Michael Snyder <msnyder@redhat.com>
2142
2143 * mips-tdep.c (mips_push_arguments): Rename to
2144 mips_eabi_push_arguments, and tune for EABI.
2145 (MIPS_REGS_HAVE_HOME_P): Delete.
2146 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2147 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2148 Delete references to mips_regs_have_home_p.
2149
409268de
KS
21502002-08-14 Keith Seitz <keiths@redhat.com>
2151
2152 * Makefile.in (install-gdbtk): Create insight plugin directory.
2153 Install plugins.tcl file.
2154
ffc6a242
KS
21552002-08-14 Keith Seitz <keiths@redhat.com>
2156
2157 * configure.in: Move SUBDIRS to near top of the file so that
2158 --enable options may add things to it.
2159 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2160 * configure: Regenerate.
2161
ebafbe83
MS
21622002-08-13 Michael Snyder <msnyder@redhat.com>
2163
2164 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2165 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2166 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2167
32f6f25d
AC
21682002-08-13 Andrew Cagney <ac131313@redhat.com>
2169
2170 * vax-tdep.c (vax_get_saved_register): Delete function.
2171 (vax_gdbarch_init): Update.
2172 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2173 (ns32k_gdbarch_init): Update.
2174 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2175 (alpha_gdbarch_init): Update.
2176
53826de9
AC
21772002-08-13 Andrew Cagney <cagney@redhat.com>
2178
2179 * regcache.c (init_regcache_descr): Overallocate the
2180 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2181 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2182 nr_raw_registers.
2183 (set_register_cached): Add range checking assertions. Use
2184 current_regcache.
2185
16057ec7 21862002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
2187
2188 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2189 numbers for MMX registers.
2190
7b4c2dce
AC
21912002-08-13 Andrew Cagney <cagney@redhat.com>
2192
2193 * i386-tdep.c (i386_gdbarch_init): Use
2194 generic_unwind_get_saved_register.
2195
1e03ad20
KB
21962002-08-13 Kevin Buettner <kevinb@redhat.com>
2197
2198 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2199 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2200 target vector.
2201 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2202 Delete. Add comment regarding this now-deleted target method.
2203
548bcbec
SC
22042002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2205
2206 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2207 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2208 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2209 real PC and the page number (if it's within the memory bank window).
2210 (m68hc11_pseudo_register_write): Likewise when saving.
2211 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2212 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2213 (m68hc11_register_raw_size): And use 32-bit for it.
2214 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2215 16K memory bank is used by the prog; also use the virtual pc.
2216
7df11f59
SC
22172002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2218
2219 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2220 (m68hc11_gdbarch_init): Install it in gdbarch.
2221 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2222 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2223 (MSYMBOL_SIZE): New for documentation.
2224 (insn_return_kind): Enum to specify how a function returns.
2225 (frame_extra_info): Cleanup and record the return mode.
2226 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2227 register in address computation.
2228 (m68hc11_get_return_insn): New to obtain the return instruction used
2229 by the function.
2230 (m68hc11_frame_init_saved_regs): Take into account the return
2231 instruction used by the function for far and interrupt functions.
2232 (m68hc11_init_extra_frame_info): Take into account page register.
2233 (m68hc11_frame_args_address): Adjust according to the return mode.
2234 (show_regs): Print page register only when it's used.
2235
5706502a
SC
22362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2237
2238 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2239 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2240 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2241 registers.
2242 (m68hc11_register_raw_size): Likewise.
2243
28fc6740
AC
22442002-08-13 Andrew Cagney <cagney@redhat.com>
2245
2246 * i386-tdep.c (i386_register_name): Handle mmx registers.
2247 (mmx_regnum_p): New function.
2248 (i386_mmx_names): New array.
2249 (mmx_num_regs): New variable.
2250 (i386_pseudo_register_read): New function.
2251 (i386_pseudo_register_write): New function.
2252 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2253
2254 * regcache.c (regcache_raw_read_unsigned): New function.
2255 (regcache_raw_read_signed): New function.
2256 * regcache.h (regcache_raw_read_unsigned): Declare.
2257 (regcache_raw_read_signed): Declare.
2258
a378f419
AC
22592002-08-13 Andrew Cagney <cagney@redhat.com>
2260
2261 * regcache.c (regcache_raw_read_as_address): Delete function.
2262 (regcache_cooked_read_signed): New function.
2263 (regcache_cooked_read_unsigned): New function.
2264 * regcache.h (regcache_cooked_read_signed): Declare.
2265 (regcache_cooked_read_unsigned): Declare.
2266 (regcache_raw_read_as_address): Delete declaration.
2267
2268 * blockframe.c (generic_read_register_dummy): Use
2269 regcache_cooked_read_unsigned.
2270 * i386-tdep.c (i386_extract_struct_value_address): Use
2271 regcache_cooked_read_unsigned.
2272
81967506
SC
22732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2274
2275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2276 double sizes according to ELF ABI flags.
2277 (gdbarch_tdep): Record elf_flags.
2278
ffe1f3ee
SC
22792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2280
2281 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2282 (m6812_prolog): They can appear in 68HC12 function prologue.
2283 (m68hc11_frame_chain): Cleanup.
2284
98216c5d
AC
22852002-08-12 Andrew Cagney <cagney@redhat.com>
2286
2287 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2288 declarations.
2289 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2290 (i386_linux_register_raw_size): Delete function.
2291 (i386_linux_init_abi): Update.
2292 * i386-tdep.c (i386_register_raw_size): Delete function.
2293 (i386_register_byte): Delete function.
2294 (i386_gdbarch_init): Update.
2295 (i386_register_size): Delete array.
2296 (i386_register_offset): Delete array.
2297
2298 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2299 (REGISTER_RAW_SIZE): Delete macro.
2300 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2301 (REGISTER_BYTE): Delete macro.
2302
3b19021e
AS
23032002-08-11 Aidan Skinner <aidan@velvet.net>
2304
2305 * ada-lang.c (ada_lookup_partial_symbol)
2306 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2307 prototype names so that grep ^func works properly.
2308
2309 * ada-lang.c (ada_array_element_type)
2310 (ada_lookup_partial_symbol): Fix typos in parameter list.
2311
2312 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2313 Fix prototype names so that grep ^func works properly.
2314
b063e7a2
AC
23152002-08-10 Andrew Cagney <cagney@redhat.com>
2316 Elena Zannoni <ezannoni@redhat.com>
2317 Martin M. Hunt <hunt@redhat.com>
2318
2319 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2320 (build_builtin_type_vec128i): Set the vector bit.
2321 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2322 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2323 (build_builtin_type_vec64): New function.
2324 (build_builtin_type_vec64i): New function.
2325 (build_gdbtypes): Initialize builtin_type_vec64 and
2326 builtin_type_vec64i.
2327
a7e3c2ad
AC
23282002-08-09 Andrew Cagney <cagney@redhat.com>
2329
2330 * regcache.c (regcache_dump): Compare the register offset
2331 with REGISTER_BYTE.
2332 * arch-utils.c (generic_register_byte): New function.
2333 * arch-utils.h (generic_register_byte): Declare.
2334 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2335 * gdbarch.h, gdbarch.c: Regenerate.
2336
af030b9a
AC
23372002-08-09 Andrew Cagney <cagney@redhat.com>
2338
2339 * regcache.c: Include "gdbcmd.h"
2340 (_initialize_regcache): Add commands "maintenance print
2341 registers", "maintenance print raw-registers" and "maintenance
2342 print cooked-registers".
2343 (enum regcache_dump_what): Define.
2344 (dump_endian_bytes): New function.
2345 (regcache_dump): New function.
2346 (regcache_print): New function.
2347 (maintenance_print_registers): New function.
2348 (maintenance_print_raw_registers): New function.
2349 (maintenance_print_cooked_registers): New function.
2350 * Makefile.in (regcache.o): Update dependencies.
2351
cb3d25d1
MS
23522002-08-09 Michael Snyder <msnyder@redhat.com>
2353
2354 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2355 (mips_push_arguments): Correct some comments. Use paddr_nz
2356 for printing addresses in debug output. Replace static
2357 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2358 (mips_n32n64_push_arguments): New function, cloned from
2359 mips_push_arguments and tuned for the n32/n64 ABI.
2360 (mips_push_register): Buffer needs dynamic allocation.
2361 (mips_print_register): Ditto.
2362 (do_gp_register_row): Ditto.
2363 (mips_store_return_value): Ditto.
2364 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2365
2163ab9d
DH
23662002-08-09 Don Howard <dhoward@redhat.com>
2367
2368 * memattr.c (mem_info_command): Print special case of upper bound
2369 as max CORE_ADDR + 1.
2370
b78bcb18
MS
23712002-08-08 Michael Snyder <msnyder@redhat.com>
2372
2373 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2374 returns structs by ref if they're too big to fit in two registers.
2375
ffabd70d
KB
23762002-08-09 Kevin Buettner <kevinb@redhat.com>
2377
2378 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2379 saved regs value.
2380 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2381 mips_find_saved_regs().
2382 (mips_pop_frame): Likewise.
2383
fbcdb4a3
KB
23842002-08-09 Kevin Buettner <kevinb@redhat.com>
2385
2386 * blockframe.c (frame_saved_regs_register_unwind): Revise
2387 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2388 frames are in use.
2389
3c3bea1c
GS
23902002-08-09 Grace Sainsbury <graces@redhat.com>
2391
2392 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2393 T-packets; the 'a' is not taken as a register number.
2394 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2395 (remote_stopped_data_address): New functions; add to target
2396 vector.
2397 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2398 prototypes to match other implementations of this
2399 function. replace integer argument with pointer -- the length
2400 field in the Z-packet is the length of what is pointed to or 1 if
2401 pointer is null. Add to target vector.
2402 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2403 target vector.
2404
2405 From Mark Salter:
2406 * remote.c (remote_wait): Add support to extract optional
2407 watchpoint information from T-packet. Ignore unrecognized
2408 optional info in T-packet.
2409 (remote_async_wait): Ditto.
2410
5d1d95de
CV
24112002-08-09 Corinna Vinschen <vinschen@redhat.com>
2412
2413 * cli/cli-dump.c: Change fopen modes to use binary open modes
2414 as defined in include/fopen-bin.h throughout.
2415
c86b5b38
MS
24162002-08-08 Michael Snyder <msnyder@redhat.com>
2417
2418 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2419
b30590dc
KB
24202002-08-08 Kevin Buettner <kevinb@redhat.com>
2421
2422 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2423 assertion failure by returning early after a warning.
2424
498868ed
KB
24252002-08-08 Kevin Buettner <kevinb@redhat.com>
2426
2427 * mips-tdep.c (mips_find_saved_regs): Make static.
2428 (mips_frame_init_saved_regs): New function.
2429 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2430 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2431 (mips_find_saved_regs): Delete declaration.
2432
b2dd6311
GS
24332002-08-08 Grace Sainsbury <graces@redhat.com>
2434
3c3bea1c
GS
2435 * remote.c (remote_wait, remote_async_wait): Change
2436 thread_num from int to ULONGEST.
2437 (unpack_varlen_hex): Change result parameter from
2438 int * to ULONGEST *.
b2dd6311 2439
ea47855f
AC
24402002-08-08 Andrew Cagney <ac131313@redhat.com>
2441
2442 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2443 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2444 powerpc*-*-*.
2445 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2446
69db8bae
AC
24472002-08-08 Andrew Cagney <cagney@redhat.com>
2448
2449 * gcore.c (override_derive_stack_segment): Delete variable.
2450 (preempt_derive_stack_segment): Delete function.
2451 (derive_stack_segment): Delete function.
2452 (default_derive_stack_segment): Renamed to derive_stack_segment.
2453 (override_derive_heap_segment): Delete variable.
2454 (preempt_derive_heap_segment): Delete function.
2455 (derive_heap_segment): Delete function.
2456 (default_derive_heap_segment): Rename to derive_heap_segment.
2457
cb811fe7
MS
24582002-08-06 Michael Snyder <msnyder@redhat.com>
2459
2460 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2461 * mips-tdep.c (mips_EABI_use_struct_convention,
2462 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2463 New functions. (mips_use_struct_convention): Delete.
2464 (mips_gdbarch_init): set use_gdbarch_convention.
2465
8b389c40
MS
24662002-08-06 Michael Snyder <msnyder@redhat.com>
2467
2468 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2469 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2470 mips_o32_reg_struct_has_addr): New functions.
2471 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2472
5c27f28a
AC
24732002-08-07 Andrew Cagney <ac131313@redhat.com>
2474
2475 * regcache.c (pseudo_register): Delete function.
2476 (fetch_register): Delete function.
2477 (store_register): Delete function.
2478 (regcache_raw_read, legacy_read_register_gen): Use
2479 target_fetch_registers instead of fetch_register.
2480 (legacy_write_register_gen, regcache_raw_write): Use
2481 target_store_register instead of store_register.
2482 (write_register_bytes): Ditto.
2483
2484 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2485 (STORE_PSEUDO_REGISTER): Delete.
2486 * gdbarch.h, gdbarch.c: Regenerate.
2487
5b331675
CV
24882002-08-06 Corinna Vinschen <vinschen@redhat.com>
2489
2490 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2491 write dump file binary.
2492
6acdf5c7
MS
24932002-08-05 Michael Snyder <msnyder@redhat.com>
2494
2495 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2496 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2497 (mips_gdbarch_init): Set N32 target to be mips64.
2498
b2f01c35
KB
24992002-08-06 Kevin Buettner <kevinb@redhat.com>
2500
2501 * frame.c (find_saved_register): Break out of loop once saved
2502 register address is found. Don't mention sparc in loop comment
2503 anymore.
2504
63db5580
KB
25052002-08-06 Kevin Buettner <kevinb@redhat.com>
2506
2507 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2508 mips_default_saved_regsize to 8.
2509
5e34e75e
AC
25102002-08-06 Andrew Cagney <ac131313@redhat.com>
2511
2512 * gcore.c: Do not include <sys/procfs.h>.
2513 * Makefile.in (gcore.o): Update dependencies.
2514
eb4c54a2
AC
25152002-08-06 Andrew Cagney <cagney@redhat.com>
2516
2517 * configure.tgt: Make arc-*-* obsolete.
2518 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2519 * MAINTAINERS: Make arc-elf obsolete.
2520 * arc-tdep.c: Make file obsolete.
2521 * config/arc/arc.mt: Ditto.
2522 * config/arc/tm-arc.h: Ditto.
2523
ced15480
TR
25242002-08-05 Theodore A. Roth <troth@verinet.com>
2525
c1bab85b 2526 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2527
b4743822
AC
25282002-08-05 Andrew Cagney <ac131313@redhat.com>
2529
2530 * mcore-tdep.c (mcore_gdbarch_init): Use
2531 generic_unwind_get_saved_register instead of
2532 generic_get_saved_register.
2533 * v850-tdep.c (v850_gdbarch_init): Ditto.
2534 * frv-tdep.c (frv_gdbarch_init): Ditto.
2535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2536 * s390-tdep.c (s390_gdbarch_init): Ditto.
2537 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2538 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2539 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2540
3956d554
JB
25412002-08-05 Joel Brobecker <brobecker@gnat.com>
2542
2543 * objfiles.h: Add missing #include "symfile.h"
2544
2545 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2546
8249c0d6
AC
25472002-08-04 Andrew Cagney <ac131313@redhat.com>
2548
2549 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2550 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2551 of FIELD_BITSIZE.
2552
b9d14705
DJ
25532002-08-04 Daniel Jacobowitz <drow@mvista.com>
2554
2555 * NEWS: Cleanup and nitpick.
2556
dd73b9bb
AC
25572002-08-03 Andrew Cagney <ac131313@redhat.com>
2558
2559 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2560
043a27f8
AC
25612002-08-03 Andrew Cagney <ac131313@redhat.com>
2562
2563 * Makefile.in (gdbtk-bp.o): Update dependencies.
2564 (gdbtk-register.o): Ditto.
2565 (gdbtk-varobj.o): Ditto.
2566
46ce284d
AC
25672002-08-03 Andrew Cagney <cagney@redhat.com>
2568
2569 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2570 m68hc11_fetch_pseudo_register.
2571 (m68hc11_pseudo_register_write): Replace
2572 m68hc11_store_pseudo_register.
2573 (m68hc11_gdbarch_init): Update.
2574
b66d6d2e
AC
2575Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2576
2577 * gdbarch.sh: Include "gdb_string.h".
2578 * gdbarch.c: Regenerate.
2579
2580 * regcache.c: Include "gdb_string.h".
2581 * ax-general.c: Ditto.
2582 * varobj.c: Ditto.
2583 * std-regs.c: Ditto.
2584 * fbsd-proc.c: Ditto.
2585 * thread.c: Ditto.
2586
2587 * Makefile.in (regcache.o): Update dependencies.
2588 (thread.o, gdbarch.o): Ditto.
2589 (ax-general.o, gdbarch.o): Ditto.
2590 (varobj.o, std-regs.o): Ditto.
2591 (fbsd-proc.o): Specify dependencies.
2592
29e1842b
AC
25932002-08-02 Andrew Cagney <cagney@redhat.com>
2594
2595 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2596 regnum.
2597 (regcache_cooked_write): Ditto.
2598
68365089
AC
25992002-08-02 Andrew Cagney <ac131313@redhat.com>
2600
2601 * regcache.c (regcache_cooked_read): New function.
2602 (regcache_cooked_write): New function.
2603 (read_register_gen): Rewrite using regcache_cooked_read.
2604 (write_register_gen): Rewrite using regcache_cooked_write.
2605
2606 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2607 Declare.
2608
d8124050
AC
26092002-08-02 Andrew Cagney <cagney@redhat.com>
2610
2611 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2612 Replace the architecture methods register_read and register_write.
2613 * gdbarch.h, gdbarch.c: Regenerate.
2614 * regcache.c (init_regcache_descr): Update.
2615 (read_register_gen): Update.
2616 (write_register_gen): Update.
2617 (supply_register): Update comment.
2618
2619 * sh-tdep.c (sh_gdbarch_init): Update.
2620 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2621 `regcache' and `gdbarch' parameters. Make `buffer' a void
2622 pointer. Update code.
2623 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2624 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2625 void pointer. Update code.
2626 (sh64_register_write): Delete.
2627 (sh4_register_read): Delete.
2628 (sh64_register_read): Delete.
2629 (sh4_register_write): Delete.
2630 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2631 void pointer, `to' parameter a void pointer.
2632 (sh_sh64_register_convert_to_raw): Ditto.
2633
a6425924
KB
26342002-08-01 Kevin Buettner <kevinb@redhat.com>
2635
2636 * mips-tdep.c (mips_register_virtual_type): Use architecture
2637 invariant return values.
2638
ff5922b5
AC
26392002-08-01 Andrew Cagney <cagney@redhat.com>
2640
2641 * linux-proc.c: Include "gdb_string.h".
2642 * Makefile.in (linux-proc.o): Update dependency list.
2643
32a6503c
KB
26442002-08-01 Kevin Buettner <kevinb@redhat.com>
2645
2646 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2647 comment.
2648
ccaa32c7
GS
26492002-08-01 Grace Sainsbury <graces@redhat.com>
2650
2651 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2652 to_insert_watchpoint, to_remove_watchpoint,
2653 to_stopped_by_watchpoint, to_stopped_data_address,
2654 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2655 target vecctor. Define their corresponding macros so they call
2656 them.
2657
2658 * target.c: Add default and debug versions of for
2659 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2660 to_insert_watchpoint, to_remove_watchpoint,
2661 to_stopped_by_watchpoint, to_stopped_data_address,
2662 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2663
78fde5f8
KB
26642002-08-01 Kevin Buettner <kevinb@redhat.com>
2665
2666 * mips-tdep.c (mips_register_virtual_type): New function.
2667 (mips_gdbarch_init): Register mips_register_virtual_type()
2668 with gdbarch machinery.
2669 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2670 this file instead of tm-bigmips.h.
2671 (MIPS_REGSIZE): Delete this macro.
2672 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2673 multiarch version in mips-tdep.c will be found.
2674
db034ac5
AC
26752002-08-01 Andrew Cagney <cagney@redhat.com>
2676
2677 * NEWS: Menion that CHILL has been made obsolete.
2678
2679 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2680 * stabsread.c (read_range_type): Ditto.
2681 * gdbtypes.h: Ditto.
2682 * language.c (binop_type_check): Ditto.
2683 (binop_result_type): Ditto.
2684 (integral_type): Ditto.
2685 (character_type): Ditto.
2686 (string_type): Ditto.
2687 (boolean_type): Ditto.
2688 (structured_type): Ditto.
2689 (lang_bool_type): Ditto.
2690 (binop_type_check): Ditto.
2691 * language.h (_LANG_chill): Ditto.
2692 * dwarfread.c (set_cu_language): Ditto.
2693 * dwarfread.c (CHILL_PRODUCER): Ditto.
2694 * dwarfread.c (handle_producer): Ditto.
2695 * expression.h (enum exp_opcode): Ditto.
2696 * eval.c: Ditto for comments.
2697 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2698 * expprint.c (print_subexp): Ditto.
2699 (print_subexp): Ditto.
2700 * valops.c (value_cast): Ditto.
2701 (search_struct_field): Ditto.
2702 * value.h (COERCE_VARYING_ARRAY): Ditto.
2703 * symfile.c (init_filename_language_table): Ditto.
2704 (add_psymbol_with_dem_name_to_list): Ditto.
2705 * valarith.c (value_binop): Ditto.
2706 (value_neg): Ditto.
2707 * valops.c (value_slice): Ditto.
2708 * symtab.h (union language_specific): Ditto.
2709 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2710 (SYMBOL_DEMANGLED_NAME): Ditto.
2711 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2712 * defs.h (enum language): Ditto.
2713 * symtab.c (got_symtab): Ditto.
2714 * utils.c (fprintf_symbol_filtered): Ditto.
2715
2716 * ch-typeprint.c: Make file obsolete.
2717 * ch-valprint.c: Make file obsolete.
2718 * ch-lang.h: Make file obsolete.
2719 * ch-exp.c: Make file obsolete.
2720 * ch-lang.c: Make file obsolete.
2721
2722 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2723 CHILL_LIB.
2724 (TARGET_FLAGS_TO_PASS): Ditto.
2725 (CHILLFLAGS): Obsolete.
2726 (CHILL): Obsolete.
2727 (CHILL_FOR_TARGET): Obsolete.
2728 (CHILL_LIB): Obsolete.
2729 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2730 ch-valprint.c.
2731 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2732 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2733 ch-lang.o.
2734 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2735 targets.
2736
8aaf0b47
JB
27372002-07-31 Joel Brobecker <brobecker@gnat.com>
2738
2739 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2740 This does not change anything at the moment, but will be helpful
2741 later when full Ada support is integrated.
2742
f3a7b3a5
KB
27432002-07-31 Kevin Buettner <kevinb@redhat.com>
2744
2745 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2746 help message.
2747
fb850278
KB
27482002-07-31 Kevin Buettner <kevinb@redhat.com>
2749
2750 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2751 and save it in a local variable. Use variable in later test.
2752
e3bddbfa
KB
27532002-07-31 Kevin Buettner <kevinb@redhat.com>
2754
2755 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2756 test. (Thanks to Daniel Jacobowitz.)
2757
28d169de
KB
27582002-07-31 Kevin Buettner <kevinb@redhat.com>
2759
2760 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2761 (mips_abi_strings): Add "n64".
2762 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2763
7fe7e44e
KB
27642002-07-31 Kevin Buettner <kevinb@redhat.com>
2765
2766 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2767 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2768
c6caf090
KB
27692002-07-31 Kevin Buettner <kevinb@redhat.com>
2770
2771 * utils.c (host_pointer_to_address, address_to_host_pointer):
2772 Use gdb_assert() instead of explicit call to internal_error().
2773
c41669e0
KB
27742002-07-30 Kevin Buettner <kevinb@redhat.com>
2775
2776 * Makefile.in (rs6000-nat.o): Update dependencies.
2777
2778 From Nicholas Duffek:
2779 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2780 (aix-thread.o): New rule.
2781 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2782 * config/powerpc/aix432.mh: New file.
2783
2fda4977
DJ
27842002-07-30 Daniel Jacobowitz <drow@mvista.com>
2785
2786 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2787 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2788 (fetch_core_registers, ppc_linux_supply_gregset)
2789 (ppc_linux_supply_fpregset): New functions.
2790 (ppc_linux_regset_core_fns): New.
2791 (_initialize_ppc_linux_tdep): Call add_core_fns.
2792 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2793 and ppc_linux_supply_gregset.
2794 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2795 (supply_fpregset): Call ppc_linux_supply_fpregset.
2796 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2797 corelow.o.
2798 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2799
729051e6
DJ
28002002-07-30 Daniel Jacobowitz <drow@mvista.com>
2801
2802 * symtab.c (lookup_symbol): Demangle before lowercasing.
2803
5f8a3188
AC
28042002-07-30 Andrew Cagney <ac131313@redhat.com>
2805
2806 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2807 declaration.
2808 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2809 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2810 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2811 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2812 "gdb_string.h".
2813 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2814 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2815 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2816 (avr-tdep.o, mon960-rom.o): Ditto.
2817 (aout_stabs_gnu_h): Define.
2818 (symtab_h): Remove $(gdb_obstack_h).
2819
67f07146
JB
28202002-07-30 Jim Blandy <jimb@redhat.com>
2821
2822 Patch from David Carlton <carlton@math.stanford.edu>:
2823 * gdbinit.in: Move the `dir' commands that add GDB's own source
2824 directory to the search path to the end, so that the `gdb' source
2825 directory will be searched first.
2826
04ea0df1
AC
28272002-07-29 Andrew Cagney <ac131313@redhat.com>
2828
2829 * gdb_obstack.h: New file.
2830 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2831 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2832 * objfiles.h: Include "gdb_obstack.h".
2833 * Makefile.in (gdb_obstack_h): Define.
2834 (symtab_h): Add $(gdb_obstack_h).
2835 (objfiles_h): Add $(gdb_obstack_h).
2836
2837 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2838 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2839 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2840 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2841 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2842 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2843 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2844 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2845
2846 * Makefile.in (bcache.o): Update dependencies.
2847 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2848 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2849 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2850 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2851 (stabsread.o, symfile.o, symmisc.o): Ditto.
2852 (symtab.o, typeprint.o, macroexp.o): Ditto.
2853 (macrotab.o, mdebugread.o): Ditto.
2854 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2855 (coff_ecoff_h, aout_aout64_h): Define.
2856 (aout_stabs_gnu_h, libaout_h): Define.
2857
d138e37a
AC
28582002-07-29 Andrew Cagney <cagney@redhat.com>
2859
2860 * regcache.c (struct regcache_descr): Rename nr_registers to
2861 nr_cooked_registers. Revise comments describing the structure
2862 member fields.
2863 (init_regcache_descr): Update.
2864 (init_legacy_regcache_descr): Update.
2865 (read_register_gen, write_register_gen): When a cooked register in
2866 the raw register range, directly access the value from the raw
2867 register cache.
2868
460e6ec3
AC
28692002-07-29 Andrew Cagney <ac131313@redhat.com>
2870
2871 * z8k-tdep.c: Do not include "obstack.h".
2872 * h8300-tdep.c, h8500-tdep.c: Ditto.
2873 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2874 * valprint.c, v850-tdep.c: Ditto.
2875 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2876 * mn10200-tdep.c: Ditto.
2877
2878 * Makefile.in (z8k-tdep.o): Update dependencies.
2879 (m68hc11-tdep.o, valprint.o): Ditto.
2880 (v850-tdep.o, d10v-tdep.o): Ditto.
2881 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2882 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2883 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2884 (sh_opc_h, gdb_sim_sh_h): Define.
2885 (elf_sh_h, elf_bfd_h): Define.
2886 (opcode_m68hc11_h): Define.
2887 (OPCODES_SRC, OPCODES_DIR): define.
2888 (OPCODES): Use $(OPCODES_DIR).
2889 (gdb_sim_d10v_h): Rename sim_d10v_h.
2890 (gdb_sim_arm_h): Rename sim_arm_h.
2891
790c9cf0
KB
28922002-07-26 Kevin Buettner <kevinb@redhat.com>
2893
2894 * utils.c (host_pointer_to_address, address_to_host_pointer):
2895 Change internal_error() message to indicate function responsible
2896 for the error.
2897
9647fa49
KB
28982002-07-26 Kevin Buettner <kevinb@redhat.com>
2899
2900 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2901 calls to local_hex_string_custom().
2902
dabbe2c0
KB
29032002-07-26 Kevin Buettner <kevinb@redhat.com>
2904
2905 * irix5-nat.c: Move IRIX shared library support from here...
2906 * solib-irix.c: ...to here. Revised substantially to work with
2907 generic solib framework.
2908
b96d0a4e
KB
2909 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2910 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2911 * mips-irix-tdep.c: New file.
2912
313fb2f6
KB
2913 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2914 (mips-irix-tdep.o, solib-irix.o): New rules.
2915 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2916 solib-irix.o.
2917 * config/mips/irix6.mt (TDEPFILES): Likewise.
2918 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2919
ab2eaf26
KB
29202002-07-26 Kevin Buettner <kevinb@redhat.com>
2921
177e4768 2922 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2923 disabled (via ``#if 0'') includes.
2924
7244546a
KB
29252002-07-26 Kevin Buettner <kevinb@redhat.com>
2926
2927 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2928 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2929 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2930 Add support for the fpscr register.
2931 * rs6000-nat.c (regmap, fetch_inferior_registers)
2932 (store_inferior_registers, fetch_core_registers): Likewise.
2933
dd7be90a
KB
29342002-07-26 Kevin Buettner <kevinb@redhat.com>
2935
2936 * rs6000-nat.c (language.h): Include.
2937 (special_regs): Delete this array.
2938 (regmap): New function.
2939 (fetch_register, store_register): Use regmap() to map gdb
2940 register numbers to ptrace register numbers. Also, use
2941 outputs from regmap() to make decisions regarding type of
2942 ptrace() call to make. In particular, don't compare against
2943 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2944 (fetch_inferior_registers, store_inferior_registers): Where
2945 possible, obtain register numbers from tdep struct. Don't
2946 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2947 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2948 (LAST_UISA_SP_REGNUM): Delete.
2949
11bf77db
KB
29502002-07-25 Kevin Buettner <kevinb@redhat.com>
2951
2952 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2953 (fetch_registers, store_register, fetch_core_registers): Don't
2954 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2955 regcache_collect() as appropriate.
2956 (find_toc_address): Format hex address with local_hex_string().
2957
06afebeb
AC
29582002-07-25 Andrew Cagney <ac131313@redhat.com>
2959
2960 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2961 bfd/elf32-frv.c.
2962
8c554d79
TT
29632002-07-24 Tom Tromey <tromey@redhat.com>
2964
2965 * jv-exp.y: Marked all strings with _().
2966 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2967 internal_error.
2968 (MethodInvocation, CastExpression, parse_number, yyerror,
2969 java_type_from_name, push_expression_name, yylex): Typo fixes.
2970
e4c242d9
DJ
29712002-07-24 Daniel Jacobowitz <drow@mvista.com>
2972
2973 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2974 (tee_file_flush, tee_file_write, tee_file_fputs)
2975 (tee_file_isatty): New.
2976 * ui-file.h (tee_file_new): Add prototype.
2977
ebf56fd3
AS
29782002-07-24 Aidan Skinner <aidan@velvet.net>
2979
2980 * ada-lang.c: Change k&r style function definitions to prototyped
2981 form.
2982 * ada-typeprint.c: Change k&r style function definitions to prototyped
2983 form.
2984 * ada-valprint.c: Change k&r style function definitions to prototyped
2985 form.
2986
7fb623f7
AC
29872002-07-24 Andrew Cagney <cagney@redhat.com>
2988
2989 * README: Remove reference to remote-bug.
2990 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2991 remote-bug.c.
2992 (m88k-nat.o): Delete rule.
2993 (m88k-tdep.o): Delete rule.
2994 (remote-bug.o): Delete rule.
2995 * MAINTAINERS: Mark as obsolete.
2996 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2997 * m88k-tdep.c: Make file obsolete.
2998 * config/m88k/m88k.mh: Ditto.
2999 * config/m88k/delta88v4.mh: Ditto.
3000 * config/m88k/delta88v4.mt: Ditto.
3001 * config/m88k/delta88.mt: Ditto.
3002 * config/m88k/delta88.mh: Ditto.
3003 * remote-bug.c: Ditto.
3004 * config/m88k/tm-delta88.h: Ditto.
3005 * config/m88k/nm-delta88v4.h: Ditto.
3006 * config/m88k/xm-delta88.h: Ditto.
3007 * config/m88k/xm-dgux.h: Ditto.
3008 * config/m88k/tm-m88k.h: Ditto.
3009 * config/m88k/nm-m88k.h: Ditto.
3010 * config/m88k/tm-delta88v4.h: Ditto.
3011 * m88k-nat.c: Ditto.
3012 * cxux-nat.c: Ditto.
3013 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3014 and m88*-*-* obsolete.
3015 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3016 m88*-*-* obsolete.
3017
37611a2b
AC
30182002-07-24 Andrew Cagney <cagney@redhat.com>
3019
3020 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3021 constant. Same for local pointer variables.
3022 (extract_signed_integer): Ditto.
3023 * defs.h (extract_unsigned_integer): Update.
3024 (extract_signed_integer): Update.
3025
1aaa5f99
AC
30262002-07-24 Andrew Cagney <cagney@redhat.com>
3027
3028 * regcache.c (regcache_raw_write): Change buf parameter to a
3029 constant void pointer.
3030 (regcache_raw_read): Change buf parameter to a void pointer.
3031 (legacy_write_register_gen): Change myaddr parameter a constant
3032 void pointer.
3033 (supply_register): Change val parameter to a const void pointer.
3034 * regcache.h (regcache_raw_write): Update declaration.
3035 (regcache_raw_read): Update declaration.
3036 (supply_register): Update declaration.
3037
b4f5539f
TT
30382002-07-24 Tom Tromey <tromey@redhat.com>
3039
3040 * defs.h (gdb_readline_wrapper): Declare.
3041 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3042 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3043 * top.c (gdb_readline_wrapper): New function.
3044 (command_line_input): Use it.
3045
0818c12a
AC
30462002-07-24 Andrew Cagney <cagney@redhat.com>
3047
3048 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3049 regcache_read and regcache_write.
3050 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3051 * regcache.c: Update.
3052 * sh-tdep.c (sh64_push_arguments): Update comment.
3053 (sh_pseudo_register_read): Update.
3054 (sh_pseudo_register_write): Update.
3055 (sh4_register_read): Update.
3056 (sh4_register_write): Update.
3057 (sh64_pseudo_register_read): Update.
3058 (sh64_pseudo_register_write): Update.
3059 (sh64_register_read): Update.
3060 (sh64_register_write): Update.
3061 * i386-tdep.c (i386_extract_return_value): Update.
3062 (i386_extract_struct_value_address): Update.
3063 (i386_extract_return_value): Update.
3064 * blockframe.c (generic_read_register_dummy): Update.
3065 (generic_call_dummy_register_unwind): Update
3066 * infrun.c (write_inferior_status_register): Update.
3067
f7321c06
JB
30682002-07-23 Jim Blandy <jimb@redhat.com>
3069
3070 * parser-defs.h (expression_context_pc): Make this extern.
3071 (Thanks to Michael Snyder.)
3072
2037aebb
AC
30732002-07-23 Andrew Cagney <ac131313@redhat.com>
3074
3075 GDB 5.2.1 released from 5.2 branch.
3076 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3077 * README: Update to mention 5.2.1.
3078
66504d44
MS
30792002-07-23 Mark Salter <msalter@redhat.com>
3080
3081 * remote.c (remote_read_bytes): Fix check for error.
3082
27bae383
KB
30832002-07-22 Kevin Buettner <kevinb@redhat.com>
3084
3085 * aix-thread.c (language.h): Include.
3086 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3087 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3088 Print newlines at end of debug messages.
3089 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3090 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3091
30922002-07-22 Kevin Buettner <kevinb@redhat.com>
3093
3094 * aix-thread.c (ppc-tdep.h): Include.
3095 (special_register_p): New function.
3096 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3097 (store_regs_user_thread): Use register number information from
3098 gdbarch_tdep struct instead of hardcoded offsets relative to
3099 FIRST_UISA_SP_REGNUM.
3100 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3101 special_register_p() instead of using FPLAST_REGNUM and
3102 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3103 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3104 will be MQ's register number.
3105
31062002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
3107
3108 * aix-thread.c (ops): Rename to aix_thread_ops.
3109 (base_ops): Rename to base_target.
3110 (ops_attach): Rename to aix_thread_attach.
3111 (ops_detach): Rename to aix_thread_detach.
3112 (ops_resume): Rename to aix_thread_detach.
3113 (ops_wait): Rename to aix_thread_wait.
3114 (ops_kill): Rename to aix_thread_kill.
3115 (init_ops): Rename to init_aix_thread_ops.
3116 (ops_fetch_register): Rename to aix_thread_fetch_register.
3117 (ops_store_register): Rename to aix_thread_store_register.
3118 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3119 (ops_thread_alive): Rename to aix_thread_thread_alive.
3120 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3121 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3122 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3123 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3124 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3125 (store_regs_lib): Rename to store_regs_user_thread.
3126 (store_regs_kern): Rename to store_regs_kernel_thread.
3127
27bae383 31282002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
3129
3130 * aix-thread.c (ops_prepare_to_store): Eliminate.
3131 (init_ops): Don't initialize ops.prepare_to_store.
3132 (store_regs_kern): Pre-fetch register buffers from child,
3133 because some registers may not be in the cache. Copy
3134 regs from register cache only if they are cached.
3135 (store_regs_lib): Copy regs from register cache only
3136 if they are cached.
3137 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3138 fill_gprs64): Ditto.
3139
61c5da0b
KB
31402002-07-22 Kevin Buettner <kevinb@redhat.com>
3141
3142 * aix-thread.c (gdb_assert.h): Include.
3143 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3144 register sizes (from register cache) match size of buffer holding
3145 register data.
3146 (fill_sprs32): Change parameter types to match those in the ptrace()
3147 buffer.
3148 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3149 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3150
31512002-07-22 Michael Snyder <msnyder@redhat.com>
3152
3153 * aix-thread.c (supply_sprs64): Cosmetic change.
3154 (supply_sprs32): Cosmetic change.
3155 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3156 (fill_sprs64): Use regcache_collect instead of read_register.
3157 (store_regs_lib): Use regcache_collect instead of
3158 read_register. Use fill_sprs32 instead of fill_sprs64,
3159 if debugging a 32-bit architecture.
3160 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3161 out of the register cache, instead of passing a pointer into
3162 the register cache directly to ptrace. Use regcache_collect
3163 insteaad of read_register.
3164 (ops_prepare_to_store): Use target_read_registers instead
3165 of read_register_bytes.
3166
36479eb1
AS
31672002-07-20 Aidan Skinner <aidan@velvet.net>
3168
3169 * MAINTAINERS: Add self under write after approval.
3170
80ae6ee2
AS
31712002-07-20 Aidan Skinner <aidan@velvet.net>
3172
3173 * ada-tasks.c: Change k&r style function definitions to prototyped
3174 form.
3175
8a8ab2b9
AC
31762002-07-19 Andrew Cagney <ac131313@redhat.com>
3177
3178 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3179 * x86-64-tdep.c: Include "objfiles.h".
3180 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3181 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3182
fb16b900
ML
31832002-07-17 Michal Ludvig <michal@suse.cz>
3184
3185 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3186 (update_context): Initialise cfa variable.
3187
0fe7bf7b
MS
31882002-07-17 Michael Snyder <msnyder@redhat.com>
3189
3190 * aix-thread.c: Shorten some long lines.
3191 Bring comments into line with code spec.
3192
488f131b
JB
31932002-07-18 Joel Brobecker <brobecker@gnat.com>
3194
3195 * infrun.c: Re-indent using gdb_indent.sh.
3196
46c415d2
JB
31972002-07-18 Joel Brobecker <brobecker@gnat.com>
3198
3199 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3200 Leave the indentation temporarily untouched, to minimize the diffs.
3201
cdecafbe
EZ
32022002-07-18 Elena Zannoni <ezannoni@redhat.com>
3203
3204 * stabsread.c: Make os9k sections of the code obsolete,
3205 for real this time.
3206 * stabsread.h: Make os9k sections of the code obsolete.
3207
7b6aa020
ML
32082002-07-18 Michal Ludvig <mludvig@suse.cz>
3209
09ec9b38
ML
3210 * linux-low.c (regsets_store_inferior_registers): Add free()
3211 at the end of a loop to prevent memory leak.
3212 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3213 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3214 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3215 line a comment.
4894ac5d 3216 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3217
233282cd
JB
32182002-07-17 Jim Blandy <jimb@redhat.com>
3219
3220 * macrocmd.c (info_macro_command): Remove newline from error
3221 message.
3222
7b6aa020 32232002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3224
3225 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3226 (sh_gdbarch_init): Use it for sh-dsp.
3227
f7ef9339
KB
32282002-07-16 Kevin Buettner <kevinb@redhat.com>
3229
3230 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3231 64-bit DWARF2 format.
3232
8dd72958
JB
32332002-07-16 Joel Brobecker <brobecker@gnat.com>
3234
3235 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3236 <sys/proc.h> when not available.
3237
a99a9e1b
AC
32382002-07-16 Andrew Cagney <ac131313@redhat.com>
3239
3240 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3241 * stabsread.c: Make os9k sections of the code obsolete.
3242 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3243 * config/i386/i386os9k.mt: Make file obsolete.
3244 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3245 (COMMON_OBS): Remove os9kread.o
3246 (SFILES): Remove os9kread.c.
3247 (os9kread.o, remote-os9k.o): Make target obsolete.
3248 * remote-os9k.c: Make file obsolete.
3249 * os9kread.c: Make file obsolete.
3250 * Makefile.in
3251
7a3085c1
AC
32522002-07-16 Andrew Cagney <ac131313@redhat.com>
3253
3254 * NEWS: Mention that the FR30 has been made obsolete.
3255 * fr30-tdep.c: Make file obsolete.
3256 * config/fr30/tm-fr30.h: Ditto.
3257 * config/fr30/fr30.mt: Ditto.
3258 * configure.tgt: Make fr30-*-elf obsolete.
3259 * MAINTAINERS: Make fr30-elf obsolete.
3260
28a93f5a
PM
32612002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3262
3263 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3264 found is not inside a section.
3265
be006b8b
KB
32662002-07-15 Kevin Buettner <kevinb@redhat.com>
3267
3268 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3269 strerror().
3270 (pdc_realloc): Use xrealloc() instead of realloc().
3271
14fa3751
KB
32722002-07-15 Kevin Buettner <kevinb@redhat.com>
3273
3274 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3275 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3276 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3277 macros.
3278
42cc437f
KB
32792002-07-15 Kevin Buettner <kevinb@redhat.com>
3280
3281 * aix-thread.c (ptrace_check): Eliminate goto.
3282 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3283 problem.
3284
8e2c28d4
KB
32852002-07-15 Kevin Buettner <kevinb@redhat.com>
3286
3287 * aix-thread.c (gdbcmd.h): Include.
3288 (DEBUG, DBG, DBG2, dbg): Eliminate.
3289 (debug_aix_thread): New static global.
3290 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3291 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3292 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3293 invocations to DBG and DBG2 macros to test against
3294 ``debug_aix_thread'' and call fprintf_unfiltered().
3295 (_initialize_aix_thread): Add new command "set debug aix-thread".
3296
30413464
AC
32972002-07-15 Andrew Cagney <ac131313@redhat.com>
3298
3299 From Gerhard Tonn <TON@de.ibm.com>:
3300 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3301 instead of supply_register.
3302
7c43edc1
AC
33032002-07-15 Andrew Cagney <ac131313@redhat.com>
3304
3305 * dwarf2cfi.c: Include "gdb_assert.h".
3306 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3307 non-NULL.
3308 (update_context): Do not use __func__. Add missing ``break''.
3309 (update_context): Do not use __func__.
3310
9364a0ef
EZ
33112002-07-15 Elena Zannoni <ezannoni@redhat.com>
3312
3313 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3314 and its setting. Set gdbarch instruction printing functions
3315 directly. For non-rs6000 case use new function
3316 gdb_print_insn_powerpc.
3317 (gdb_print_insn_powerpc): New function.
3318
3fbeef0b
AC
33192002-07-13 Andrew Cagney <ac131313@redhat.com>
3320
92eb23c5 3321 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3322 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3323 * configure.tgt: Mark d30v-*-* as obsolete.
3324 * d30v-tdep.c: Mark file as obsolete.
3325 * config/d30v/d30v.mt: Ditto.
3326 * config/d30v/tm-d30v.h: Ditto.
3327
aacb1f0a
AS
33282002-07-13 Aidan Skinner <aidan@velvet.net>
3329
3330 * ada-tasks.c (add_task_entry): replace calls to
3331 malloc() with xmalloc
3332 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3333
3334 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3335 ada_finish_decode_line_1, all_sals_for_line
3336 ada_breakpoint_rewrite): replace calls to free() with xfree()
3337
c11d79f2
KB
33382002-07-12 Kevin Buettner <kevinb@redhat.com>
3339
3340 From Nicholas Duffek (with minor changes by Martin Hunt,
3341 Louis Hamilton, and Kevin Buettner):
3342 * aix-thread.c: New file.
3343
8e19ed76
PS
33442002-07-12 Petr Sorfa <petrs@caldera.com>
3345
3346 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3347 complaint for invalid attribute class or form.
3348 (read_func_scope): DW_AT_frame_base
3349 better handling of DW_AT_block*.
3350 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3351 better handling of DW_AT_block*.
3352 (read_common_block): DW_AT_location
3353 better handling of DW_AT_block*.
3354 (read_partial_die): DW_AT_location better handling
3355 of DW_AT_block*.
3356 (new_symbol): DW_AT_external better handling of
3357 DW_AT_block*. Proper initialization of variable
3358 "addr".
3359 (attr_form_is_block): New function that returns true
3360 if the attribute's form is of DW_FORM_block*.
3361
295401f7
DJ
33622002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3363
3364 * valops.c (find_method_list): Remove comment about
3365 removed STATIC_MEMFUNCP argument.
3366 (value_find_oload_method_list): Likewise.
3367
e42dc924
KB
33682002-07-12 Kevin Buettner <kevinb@redhat.com>
3369
3370 From Nicholas Duffek:
3371 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3372 target_new_objfile_hook.
3373
6904b546
KB
33742002-07-12 Kevin Buettner <kevinb@redhat.com>
3375
3376 From Nicholas Duffek:
3377 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3378 csect.
3379
53fe9346
AC
33802002-07-12 Andrew Cagney <cagney@redhat.com>
3381
3382 * MAINTAINERS: Mention --enable-sim-build-warnings.
3383 (m68hc11-elf): Disable sim build warnings.
3384 (m32r-elf): Mark as broken obsolete candidate.
3385 (x86_64-linux-gnu): Mark as buildable with -Werror.
3386 (arm-elf): Change -w to ``,'' which enables warnings but not
3387 -Werror.
3388
af5f3db6
AC
33892002-07-12 Andrew Cagney <ac131313@redhat.com>
3390
3391 * bcache.h: Update copyright.
3392 (struct bstring, struct bcache): Move definition to "bcache.c".
3393 Replaced by opaque declaration.
3394 (bcache_xfree): Replace free_bcache.
3395 (bcache_xmalloc, bcache_memory_used): Declare.
3396
3397 * bcache.c: Update copyright.
3398 (struct bstring, struct bcache): Moved to here from "bcache.h".
3399 Update comments.
3400 (bcache_xmalloc, bcache_memory_used): New functions.
3401 (bcache_xfree): Replace function free_bcache.
3402
3403 * Makefile.in (objfiles.o): Add $(bcache_h).
3404 (objfiles_h): Remove $(bcache_h).
3405 (symfile.o): Add $(bcache_h).
3406
3407 * symmisc.c: Update copyright.
3408 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3409 (print_objfile_statistics): Use bcache_memory_used.
3410
3411 * symfile.c: Include "bcache.h".
3412 (reread_symbols): Use bcache_xfree.
3413 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3414 (add_psymbol_to_list): Pass psymbol_cache by value.
3415 (add_psymbol_with_dem_name_to_list): Ditto.
3416
3417 * objfiles.h: Update copyright.
3418 (struct bcache): Declare opaque. Do not include "bcache.h".
3419 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3420 bcache'' pointers.
3421 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3422
3423 * objfiles.c: Include "bcache.h". Update copyright.
3424 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3425 macro_cache.
3426 (free_objfile): Use bcache_xfree.
3427
444199e7
GS
34282002-07-11 Grace Sainsbury <graces@redhat.com>
3429
3430 * monitor.c (monitor_fetch_register): Make name a constant.
3431 (monitor_store_register): Same.
3432
261397f8
DJ
34332002-07-11 Daniel Jacobowitz <drow@mvista.com>
3434
3435 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3436 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3437 (finish_block) For non-function blocks, hash the symbol table. For
3438 function blocks, mark the symbol table as unhashed.
3439 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3440 (msymbol_hash_iw): Likewise.
3441 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3442 value.
3443 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3444 (lookup_minimal_symbol): Likewise for both.
3445 * symtab.h (struct block): Add `hashtable' flag. Comment the
3446 hashtable.
3447 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3448 (ALL_BLOCK_SYMBOLS): Update.
3449 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3450 (struct symbol): Add `hash_next' pointer.
3451 * symtab.c (lookup_block_symbol): Search using the hash table when
3452 possible.
3453 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3454 (search_symbols, find_addr_symbol): Likewise.
3455
3456 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3457 (read_dst_symtab): Likewise.
3458 * jv-lang.c (get_java_class_symtab): Likewise.
3459 * mdebugread.c: Include "gdb_assert.h".
3460 (shrink_block): Assert that the block being modified is not hashed.
3461 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3462 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3463 symbols.
3464 (dump_symtab): Recognize hashed blocks.
3465 * printcmd.c (print_frame_args): Assert that function blocks do not
3466 have hashed symbol tables.
3467 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3468 (fill_in_ada_prototype, debug_print_block): Likewise.
3469 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3470
6f0eaa01
CV
34712002-07-11 Corinna Vinschen <vinschen@redhat.com>
3472
3473 * stack.c (print_frame): Use result of frame_address_in_block()
3474 instead of fi->pc when evaluating symbols.
3475 (backtrace_command_1): Ditto.
3476
a208b0cb
AC
34772002-07-11 Andrew Cagney <cagney@redhat.com>
3478
3479 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3480 Make static.
3481
3482 * arm-tdep.c (arm_register_name): Make return type constant.
3483
a6b6b089
AC
34842002-07-10 Andrew Cagney <ac131313@redhat.com>
3485
5ae5f592
AC
3486 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3487 prototype.
3488 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3489 * s390-tdep.c (s390_fp_regnum): Ditto.
3490 (s390_read_fp): Ditto.
3491 (s390_pop_frame): Ditto.
3492 (_initialize_s390_tdep): Ditto.
3493 * remote.c (get_remote_state): Ditto.
3494 * procfs.c (mappingflags): Ditto.
3495 * memattr.c (_initialize_mem): Ditto.
3496 * mcore-tdep.c (mcore_pop_frame): Ditto.
3497 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3498 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3499 * language.c (set_case_str): Ditto.
3500 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3501 * frv-tdep.c (new_variant): Ditto.
3502 (frv_stopped_data_address): Ditto.
3503 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3504 (context_alloc): Ditto.
3505 (frame_state_alloc): Ditto.
3506 (unwind_tmp_obstack_init): Ditto.
3507 (unwind_tmp_obstack_free): Ditto.
3508 (cfi_read_fp): Ditto.
3509 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3510 (cris_pop_frame): Ditto.
3511 * c-lang.c (scanning_macro_expansion): Ditto.
3512 (finished_macro_expansion): Ditto.
3513 (c_preprocess_and_parse): Ditto.
3514 * gdbarch.sh: Ditto.
3515 * gdbarch.h, gdbarch.c: Regenerate.
3516 * config/mn10200/tm-mn10200.h: Adjust indentation.
3517 * target.c: Adjust indentation.
3518 * symtab.h: Adjust indentation.
3519 * stabsread.h: Adjust indentation.
3520 * remote-es.c: Adjust indentation.
3521 * os9kread.c: Adjust indentation.
3522
35232002-07-10 Andrew Cagney <ac131313@redhat.com>
3524
a6b6b089
AC
3525 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3526 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3527
a1789893
GS
35282002-07-10 Grace Sainsbury <graces@redhat.com>
3529
3530 * NEWS: Mention m68k, mcore multi-arching.
3531 * MAINTAINERS: Change status of m68k, mcore to reflect
3532 multi-arching.
3533
02f0d45d
DJ
35342002-07-10 Daniel Jacobowitz <drow@mvista.com>
3535
3536 * valops.c (find_overload_match): Free oload_syms.
3537
f15f768e
JB
35382002-07-09 Joel Brobecker <brobecker@gnat.com>
3539
3540 Define HAVE_SYS_PROC_H if sys/proc.h exists
3541 * configure.in: Add check for sys/proc.h
3542 * config.in: Regenerate.
3543 * configure: Regenerate.
3544
902a7139
GS
35452002-07-09 Grace Sainsbury <graces@redhat.com>
3546
3547 * config/m68k/tm-m68k.h: Remove macros wrapped in
3548 #if !GDB_MULTI_ARCH.
3549
a534e424
AC
35502002-07-08 Andrew Cagney <ac131313@redhat.com>
3551
3552 * config.in, configure: Regenerate.
3553
9b94f7bf
MK
35542002-07-08 Mark Kettenis <kettenis@gnu.org>
3555
3556 * dwarf2cfi.c: Include "gcore.h".
3557 (execute_stack_op): Fix implementation of the
3558 DW_OP_deref and DW_OP_deref_size operators by letting do their
3559 lookup in the target.
3560
1d34db41
MK
35612002-07-07 Mark Kettenis <kettenis@gnu.org>
3562
3563 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3564 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3565 tdep->sc_sp_offset.
3566
79d5b63a
DJ
35672002-07-05 Daniel Jacobowitz <drow@mvista.com>
3568
3569 Fix PR gdb/595, gdb/602
3570 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3571 Don't call value_cast, just read the vtable pointer; update comments
3572 to match.
3573
3bb912e8
GS
35742002-07-05 Grace Sainsbury <graces@redhat.com>
3575
3576 * config/mcore/tm-mcore.h: Remove file.
3577 * config/mcore/mcore.mt: Remove definition of TM_FILE
3578 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3579
ca39387d
MK
35802002-07-05 Mark Kettenis <kettenis@gnu.org>
3581
3582 * i386bsd-tdep.c: Include "gdb_string.h".
3583
efdc1108
GS
35842002-07-04 Grace Sainsbury <graces@redhat.com>
3585
3586 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3587 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3588 mcore-tdep.
3589 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3590 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3591 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3592 (RETVAL_REGNUM): Move macros from tm-mcore.h
3593 (mcore_reg_struct_has_addr): New function.
3594 (mcore_gdbarch_init): Added initializations for the macros removed
3595 from tm-mcore.h.
3596
bb21884d
MK
35972002-07-04 Mark Kettenis <kettenis@gnu.org>
3598
3599 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3600 traditonal string branding within the ELF header.
3601
228c6d41
DJ
36022002-07-04 Daniel Jacobowitz <drow@mvista.com>
3603
3604 * symtab.c (remove_params): New function.
3605 (make_symbol_overload_list): Use it instead of cplus_demangle.
3606 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3607
2404952e
MK
36082002-07-04 Mark Kettenis <kettenis@gnu.org>
3609
e5e4acad
MK
3610 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3611
baadce09
MK
3612 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3613 New variables.
3614 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3615 and tdep->sigtramp_end.
3616 * i386obsd-nat.c: New file.
3617 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3618
2404952e
MK
3619 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3620 Don't call get_current_frame().
3621
9b4f1ba7
PM
36222002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3623
3624 * i386-nat.c (child_post_startup_inferior): New function
3625 calling i386_cleanup_dregs if
3626 I386_USE_GENERIC_WATCHPOINTS is defined.
3627 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3628 conditional to acknowledge that i386-nat.c has its
3629 own child_post_startup_inferior function.
3630
c0d1d883
MK
36312002-07-04 Mark Kettenis <kettenis@gnu.org>
3632
00f8375e
MK
3633 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3634 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3635 instead of MAX_REGISTER_RAW_SIZE.
3636 (i386_extract_return_value, i386_extract_struct_value_address):
3637 Convert to use regcache.
3638 (i386_gdbarch_init): Set max_register_raw_size and
3639 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3640 Set extract_return_value and extract_struct_value_address instead
3641 of their deprecated variants.
3642
c0d1d883
MK
3643 Convert i386 target to generic dummy frames.
3644 * i386-tdep.c: Include "symfile.h".
3645 (i386_frameless_signal_p): Consider a function to be frameless if
3646 the pc points at the first instruction of the function.
3647 (i386_frame_chain): Handle (generic) call dummies.
3648 (i386_frame_saved_pc): Likewise.
3649 (i386_frame_init_saved_regs): Remove code dealing with call
3650 dummies on the stack.
3651 (i386_push_dummy_frame): Removed.
3652 (i386_call_dummy_words): Removed.
3653 (i386_fix_call_dummy): Removed.
3654 (i386_push_return_address): New function.
3655 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3656 parameter, and don't call get_current_frame.
3657 (i386_pop_frame): New function.
3658 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3659 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3660 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3661 call_dummy_length to 0, set call_dummy_words to NULL, set
3662 sizeof_call_dummy_words to 0, set fix_call_dummy to
3663 generic_fix_call_dummy, set pc_in_call_dummy to
3664 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3665 generic_push_dummy_frame, set push_return_address to
3666 i386_push_return_address and set frame_chain_valid to
3667 generic_file_frame_chain_valid.
3668
049ee0e4
AC
36692002-07-03 Andrew Cagney <ac131313@redhat.com>
3670
3671 * gdbarch.sh (struct regcache): Add opaque declaration.
3672 (EXTRACT_RETURN_VALUE): New architecture method.
3673 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3674 * gdbarch.h, gdbarch.c: Regenerate.
3675 * arch-utils.c (legacy_extract_return_value): New function.
3676 * arch-utils.h (legacy_extract_return_value): Declare.
3677 * values.c (value_being_returned): Re-enable code handling
3678 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3679 deprecated_grub_regcache_for_registers call to block handling
3680 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3681 (EXTRACT_RETURN_VALUE): Do not define.
3682
4e0d9804
GS
36832002-07-03 Grace Sainsbury <graces@redhat.com>
3684
3685 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3686 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3687 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3688 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3689 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3690 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3691 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3692 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3693 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3694 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3695 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3696 argument so the function fits the prototype in the architecture
3697 vector.
3698 (mcore_pop_frame): Remove argument so the function fits the
3699 prototype. Use get_current_frame instead of the argument.
3700 (mcore_push_arguments): Change type of struct_return so the
3701 function can be used in the architecture vector.
3702 (mcore_store_struct_return): Add.
3703 (mcore_frame_init_saved_regs): Add.
3704 (mcore_gdbarch_init): Add function calls to replace the macros
3705 removed from tm-mcore.h
3706
36160dc4
AC
37072002-07-03 Andrew Cagney <ac131313@redhat.com>
3708
3709 * infcmd.c (print_return_value): Remove compatibility code calling
3710 deprecated_grub_regcache_for_registers.
3711
3712 * values.c: Include "regcache.h".
3713 (value_being_returned): Update. Use
3714 deprecated_grub_regcache_for_registers to extract the register
3715 buffer address.
3716 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3717 ``struct regcache''.
3718 * Makefile.in (values.o): Add dependency on $(regcache_h).
3719
3720 * inferior.h (run_stack_dummy): Change type of second parameter to
3721 a ``struct regcache''.
3722 * valops.c (hand_function_call): Change type of retbuf to ``struct
3723 regcache''. Allocate using regcache_xmalloc, clean using
3724 make_cleanup_regcache_xfree.
3725 * infcmd.c (run_stack_dummy): Update. Use
3726 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3727
3728 * regcache.c (do_regcache_xfree): New function.
3729 (make_cleanup_regcache_xfree): New function.
3730 * regcache.h (make_cleanup_regcache_xfree): Declare.
3731
e64d9b3d
MH
37322002-07-03 Martin M. Hunt <hunt@redhat.com>
3733
4dd79c29
MH
3734 * event-top.c (command_line_handler): Don't read past
3735 beginning of buffer.
e64d9b3d 3736
4dd79c29
MH
37372002-07-03 Martin M. Hunt <hunt@redhat.com>
3738
e64d9b3d
MH
3739 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3740 struct frame_id.
3741 (varobj_create): Store frame_id for root.
3742 (varobj_gen_name): Use xasprintf.
3743 (varobj_update): Save and restore frame using get_frame_id() and
3744 frame_find_by_id().
3745 (create_child): Use xasprintf.
3746 (new_root_variable): Initialize frame_id.
3747 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3748 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3749 to prevent memory leak.
3750
26e6c56a
AC
37512002-07-03 Andrew Cagney <ac131313@redhat.com>
3752
3753 * valops.c (hand_function_call): Move declaration of retbuf to
3754 start of function, allocate using malloc, add a cleanup but before
3755 the inf_status cleanup, cleanup the buffer. Rename local variable
3756 old_chain to inf_status_cleanup.
3757
f436dd25
MH
37582002-07-03 Martin M. Hunt <hunt@redhat.com>
3759
3760 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3761
3762 * cli/cli-decode.c (cmd_func_p): New function.
3763 (cmd_func): New function.
3764
3765 * command.h: Add cmd_func() and cmd_func_p().
3766
4cfe2084
GS
37672002-07-03 Grace Sainsbury <graces@redhat.com>
3768
3769 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3770 (REGISTER_SIZE): Remove.
3771 (MAX_REGISTER_RAW_SIZE): Remove.
3772 (REGISTER_VIRTUAL_TYPE): Remove.
3773 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3774 (REGISTER_NAME): Remove.
3775 (USE_GENERIC_DUMMY_FRAMES): Remove.
3776 (CALL_DUMMY): Remove.
3777 (CALL_DUMMY_START_OFFSET): Remove.
3778 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3779 (CALL_DUMMY_LOCATION): Remove.
3780 (FIX_CALL_DUMMY): Remove.
3781 (CALL_DUMMY_ADDRESS): Remove.
3782 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3783 (SAVE_DUMMY_FRAME_TOS): Remove.
3784 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3785 (mcore_register_virtual_type): New function.
3786 (mcore_register_byte): New function.
3787 (mcore_register_size): New function.
3788 (mcore_register_name): New function.
3789 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3790 macros removed from tm-mcore.h.
3791 (mcore_dump_tdep): Add.
3792 (_initialize_mcore_tdep): Add gdbarch_register call.
3793
4fd667e9
MK
37942002-07-03 Mark Kettenis <kettenis@gnu.org>
3795
3796 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3797 frameless_look_for_prologue, such that we actually call this
3798 function.
3799
42f99ac2
JB
38002002-07-02 Joel Brobecker <brobecker@gnat.com>
3801
3802 * frame.h (frame_address_in_block): New function.
3803
3804 * blockframe.c (frame_address_in_block): New function extracted
3805 from get_frame_block().
3806 (get_frame_block): Use frame_address_in_block().
3807 (block_innermost_frame): Use frame_address_in_block() to match
3808 the frame pc address against the block boundaries rather than
3809 the frame pc directly. This prevents a failure when a frame pc
3810 is actually a return-address pointing immediately after the end
3811 of the given block.
3812
103a1597 38132002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3814
3815 * MAINTAINERS: Add self under write after approval.
3816
38172002-07-02 Grace Sainsbury <graces@redhat.com>
3818
103a1597
GS
3819 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3820 used in architecture vector. The default is
3821 m68k_local_breakpoint_from_pc.
3822 (m68k_local_breakpoint_from_pc): Add.
3823 (enum): Add register numbers from tm-m68k.h.
3824 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3825 vector.
3826 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3827 GDB_MULTI_ARCH_PARTIAL.
3828 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3829 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3830 m68k-tdep.c.
3831 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3832 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3833 to enum in m68k-tdep.c
3834
7a5a0534
JB
38352002-07-02 Joel Brobecker <brobecker@gnat.com>
3836
3837 * solib-osf.c (open_map): Compute the list of shared libraries
3838 loaded by the inferior, rather than the list of libraries loaded
3839 by GDB itself. Otherwise, GDB ends up reading the symbols from
3840 the wrong shared libraries...
3841
6f558d74
MK
38422002-07-02 Mark Kettenis <kettenis@gnu.org>
3843
b7d15bf7
MK
3844 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3845 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3846 macros.
3847 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3848 Remove functions.
3849 (FRAMELESS_SIGNAL): Remove function.
3850 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3851 i386_linux_saved_pc_after_call): Removed.
3852 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3853 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3854 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3855
6bff26de
MK
3856 * i386-tdep.c (i386_frameless_signal_p): New function.
3857 (i386_frame_chain): Deal with frameless signals.
3858 (i386_sigtramp_saved_sp): New function.
3859 (i386_frame_saved_pc): Deal with frameless signals.
3860 (i386_saved_pc_after_call): Make sure the correct value is
3861 returned just after entry into a sigtramp.
3862 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3863 i386fbsd4_sc_sp_offset): New variables.
3864 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3865 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3866 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3867 similiar to what we already did for sc_pc_offset.
3868 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3869 tdep->sc_sp_offset.
3870
6f558d74
MK
3871 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3872
145564b7
ML
38732002-07-02 Michal Ludvig <mludvig@suse.cz>
3874
3875 * config/i386/tm-x86-64linux.h: New.
3876 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3877 definitions.
3878 * config/i386/nm-x86-64.h: Rename to ...
3879 * config/i386/nm-x86-64linux.h: ... this one.
3880 * config/i386/x86-64linux.mh: Reflect the above change.
3881
3a1e71e3
MK
38822002-07-01 Mark Kettenis <kettenis@gnu.org>
3883
21d0e8a4
MK
3884 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3885 with sigcontext_addr. Add sc_sp_offset.
3886 (i386bsd_sigtramp_saved_pc): Remove prototype.
3887 (i386bsd_sicontext_addr): Add prototype.
3888 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3889 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3890 (i386_svr4_sigtramp_saved_pc): Removed.
3891 (i386_svr4_sigcontext_addr): New function.
3892 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3893 Initialize tdep->sigcontext_addr instead. Initialize
3894 tdep->sc_pc_offset and tdep->sc_sp_offset.
3895 (i386_gdbarch_init): Likewise.
3896 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3897 any more.
3898 (i386bsd_sigtramp_saved_pc): Remove function.
3899 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3900 Initialize tdep->sigcontext_addr instead. Initialize
3901 tdep->sc_pc_offset.
3902 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3903 of tdep->sigtramp_saved_pc.
3904 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3905 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3906 instead.
3907
3a1e71e3
MK
3908 * i386-tdep.c (i386_frameless_function_invocation,
3909 i386_frame_num_args, i386_frame_init_saved_regs,
3910 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3911 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3912 i386_extract_return_value, i386_store_return_value,
3913 i386_extract_struct_value_address, i386_register_virtual_type,
3914 i386_register_convertible, i386_register_convert_to_virtual,
3915 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3916 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3917 static.
3918
52e9098c
MK
39192002-07-01 Mark Kettenis <kettenis@gnu.org>
3920
77b13a25
MK
3921 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3922
52e9098c
MK
3923 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3924 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3925 this macro. Include "value.h".
3926
1b372fff
AS
39272002-06-30 Aidan Skinner <aidan@velvet.net>
3928
3929 * ada-exp.tab.c: remove as it's a generated file
3930 * ada-lex.c: remove as it's a generated file
3931
9c5045b5
MK
39322002-06-30 Mark Kettenis <kettenis@gnu.org>
3933
4a93c5bb
MK
3934 * config/i386/tm-i386.h (struct frame_info, struct
3935 frame_saved_regs, struct value, struct type): Remove forward
3936 declarations.
3937
322d4fe0
MK
3938 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3939 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3940 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3941 (FILL_FPXREGSET): Define.
3942
fdd8263d
MK
3943 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3944
482e577b
MK
3945 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3946 i[3456]86-*-netbsd* case.
3947 * config/i386/tm-obsd.h: Removed.
3948 * config/i386/obsd.mt: Removed.
3949 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3950 core-aout.o.
3951 (MH_CFLAGS): Add -DYYDEBUG=0.
3952
6916549a
MK
3953 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3954 i386nbsd_sc_pc_offset on OpenBSD too.
3955
9c5045b5
MK
3956 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3957 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3958 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3959 define.
3960 * i386bsd-tdep.c: Include "arch-utils.h".
3961 (i386bsd_aout_in_solib_call_trampoline): New function.
3962 (i386bsd_init_abi): Set in_solib_call_trampoline to
3963 i386bsd_aout_in_solib_call_trampoline.
3964 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3965 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3966
aa84d1bb
AC
39672002-06-28 Andrew Cagney <ac131313@redhat.com>
3968
3969 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3970 (struct obstack, struct bcache): Add opaque declarations.
3971 * Makefile.in (macrotab_h): Update
3972
b4d83933
AC
39732002-06-28 Andrew Cagney <ac131313@redhat.com>
3974
3975 * blockframe.c (generic_find_dummy_frame): Change return type to
3976 ``struct regcache''.
3977 (struct dummy_frame): Replace field ``registers'' with regcache, a
3978 struct regcache object.
3979 (generic_find_dummy_frame): Update.
3980 (generic_push_dummy_frame): Update. Use regcache_xfree,
3981 regcache_xmalloc and regcache_cpy.
3982 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3983 regcache_xfree.
3984 (deprecated_generic_find_dummy_frame): Update.
3985 (generic_read_register_dummy): Update. Use
3986 regcache_read_as_address.
3987 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3988 (generic_get_saved_register): Update. Use regcache_read.
3989
08c0b5bc
AC
39902002-06-28 Andrew Cagney <ac131313@redhat.com>
3991
3992 * Makefile.in (objfiles_h): Add $(bcache_h).
3993 * objfiles.h: Include "bcache.h".
3994
3995 * Makefile.in (symtab_h): Remove $(bcache_h).
3996 * symtab.h: Do not include "bcache.h".
3997
1f89801a
AC
39982002-06-28 Andrew Cagney <ac131313@redhat.com>
3999
4000 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4001 generic_func_frame_chain_valid.
4002
b9644b58
DB
40032002-06-28 David O'Brien <obrien@FreeBSD.org>
4004
4005 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4006 * config/i386/tm-fbsd.h: Likewise.
4007
dd486634
AC
40082002-06-28 Andrew Cagney <ac131313@redhat.com>
4009
4010 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4011 generic_unwind_get_saved_register.
4012
0b434a00
AC
40132002-06-27 Andrew Cagney <ac131313@redhat.com>
4014
4015 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4016 * regcache.c (supply_register): Add missing argument to
4017 register_buffer call.
4018
f30e5a77
AC
40192002-06-27 Andrew Cagney <ac131313@redhat.com>
4020
4021 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4022 Solaris /bin/grep does not not like it. From Peter Schauer.
4023
9f064c95
TT
40242002-06-26 Tom Tromey <tromey@redhat.com>
4025
4026 * command.h (add_setshow_cmd): Declare.
4027 (add_setshow_cmd_full): Declare.
4028 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4029 returns void. Use add_setshow_cmd_full.
4030 (add_setshow_cmd_full): New function.
4031 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4032 (add_setshow_boolean_cmd): Likewise.
4033
099c7589
JT
40342002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4035
4036 * config/vax/tm-vax.h: Protect from multiple inclusion.
4037 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4038 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4039 * config/vax/tm-vaxbsd.h: ...here. New file.
4040 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4041
1d049c5e
JT
40422002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4043
4044 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4045 (BELIEVE_PCC_PROMOTION): Remove.
4046 (AP_REGNUM): Move to...
4047 * config/vax/nm-vax.h: ...here.
4048 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4049 (vax_breakpoint_from_pc): New function.
4050 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4051 and gdbarch_believe_pcc_promotion.
4052
4791e091
JT
40532002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4054
4055 * Makefile.in (vax_tdep_h): Define.
4056 (vax-tdep.o): Use $(vax_tdep_h).
4057 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4058 (vax_dump_tdep): New function.
4059 (_initialize_vax_tdep): Register vax_dump_tdep.
4060 * vax-tdep.h: Include osabi.h.
4061 (struct gdbarch_tdep): New.
4062
da130f98
AC
40632002-06-26 Andrew Cagney <cagney@redhat.com>
4064
4065 * frame.h (deprecated_generic_find_dummy_frame): Rename
4066 generic_find_dummy_frame.
4067 * blockframe.c (generic_find_dummy_frame): Make static.
4068 (deprecated_generic_find_dummy_frame): New function.
4069 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4070 generic_find_dummy_frame with deprecated_find_dummy_frame.
4071 (sh64_nofp_frame_init_saved_regs): Ditto.
4072 (sh_fp_frame_init_saved_regs): Ditto.
4073 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4074 (s390_frame_chain): Ditto.
4075 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4076
6300c360
GS
40772002-06-26 Grace Sainsbury <graces@redhat.com>
4078
4079 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4080 gdbarch vector are at the top.
4081 (NUM_REGS): Remove.
4082 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4083 (FRAME_ARGS_ADDRESS): Remove.
4084 (FRAME_LOCALS_ADDRESS): Remove.
4085 (FRAME_NUM_ARGS): Remove.
4086 (FRAME_ARGS_SKIP): Remove.
4087 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4088 (m68k_gdbarch_init): Add gdbarch initializations for macros
4089 undefined in tm-m68k.h
4090
1c617db8
GS
40912002-06-26 Grace Sainsbury <graces@redhat.com>
4092
4093 * monitor.h: Add the function regname to monitor_ops
4094 structure. This way NUM_REGS does not have to be a constant.
4095 * monitor.c (monitor_fetch_register): Added support for regname
4096 function. The function is called if the array regnames is NULL.
4097 (monitor_store_register): Same.
da130f98
AC
4098 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4099 regnames array.
1c617db8
GS
4100 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4101 cpu32bug_cmds.regname to point to new function.
4102 * abug-rom.c (abug_regname): Same as above.
4103 (init_abug_cmds): Same.
4104 * dbug-rom.c (dbug_regname): Same as above.
4105 (init_dbug_cmds): Same.
4106 * remote-est.c (est_regname): Same.
4107 (init_est_cmds): Same.
4108 * rom68k-rom.c (rom68k_regname): Same.
4109 (init_rom68k_cmds): Same.
4110
ea9365bb
TT
41112002-06-25 Tom Tromey <tromey@redhat.com>
4112
4113 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4114
72cec141
AC
41152002-06-25 Andrew Cagney <cagney@redhat.com>
4116
4117 * infrun.c (stop_registers): Change variable's type to ``struct
4118 regcache'''.
4119 (xmalloc_inferior_status): Delete function.
4120 (free_inferior_status): Delete function.
4121 (normal_stop): Use regcache_cpy.
4122 (struct inferior_status): Change type of fields ``stop_registers''
4123 and ``registers'' to ``struct regcache''.
4124 (write_inferior_status_register): Use regcache_write.
4125 (save_inferior_status): Instead of calling
4126 xmalloc_inferior_status, allocate the inf_status buffer directly.
4127 Use regcache_dup_no_passthrough and regcache_dup to save the
4128 buffers.
4129 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4130 Replace the stop_registers regcache instead of overriding it. Use
4131 regcache_xfree. Instead of calling free_inferior_status, xfree
4132 the buffer directly.
4133 (discard_inferior_status): Use regcache_xfree. Instead of calling
4134 free_inferior_status, xfree the buffer directly.
4135 (build_infrun): Use regcache_xmalloc.
4136 (_initialize_infrun): Delete redundant call to build_infrun.
4137
4138 * Makefile.in (infcmd.o): Add $(regcache_h).
4139
4140 * infcmd.c: Include "regcache.h".
4141 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4142 obtain the address of `stop_registers' register buffer.
4143 (print_return_value): Ditto.
4144
4145 * inferior.h (struct regcache): Add opaque declaration.
4146 (stop_registers): Change variable's declared type to ``struct
4147 regcache''.
4148
defc6f8c
TT
41492002-06-24 Tom Tromey <tromey@redhat.com>
4150
c0e624e7
TT
4151 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4152 * target.c (initialize_targets): Fixed typo in
4153 trust-readonly-sections `show' documentation.
4154
defc6f8c
TT
4155 * main.c: Marked all strings with _().
4156
2b236d82
DH
41572002-06-24 Don Howard <dhoward@redhat.com>
4158
4159 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4160 that means max CORE_ADDR+1.
4161 (lookup_mem_region): Ditto.
4162 (mem_info_command): Ditto.
4163
942dc0e9
GS
41642002-06-24 Grace Sainsbury <graces@redhat.com>
4165
4166 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4167 (REGISTER_BYTES_OK): Remove.
4168 (REGISTER_BYTES): Remove.
4169 (STORE_STRUCT_RETURN): Remove.
4170 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4171 (STORE_RETURN_VALUE): Remove.
4172 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4173 (FRAME_CHAIN): Remove.
4174 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4175 (FRAME_SAVED_PC): Remove.
4176 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4177 (m68k_store_struct_return): Add.
4178 (m68k_deprecated_extract_return_value): Add.
4179 (m68k_deprecated_extract_struct_value_address): Add.
4180 (m68k_store_return_value): Add.
4181 (m68k_frame_chain): Add.
4182 (m68k_frameless_function_invocation): Add.
4183 (m68k_frame_saved_pc): Add.
4184 (m68k_gdbarch_init): added set_gdbarch calls for new
4185 functions and deleted macros.
4186
03c30d4d
TT
41872002-06-23 Tom Tromey <tromey@redhat.com>
4188
4189 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4190 (ALLDEPFILES): Likewise.
4191 (udiheaders): Removed.
4192 (udip2soc.o): Likewise.
4193 (udi2go32.o): Likewise.
4194 (udr.o): Likewise.
4195 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4196
37e71372
AC
41972002-06-22 Andrew Cagney <ac131313@redhat.com>
4198
06a6ac57
AC
4199 * infrun.c (_initialize_infrun): Delete unnecessary call to
4200 build_infrun.
4201
37e71372
AC
4202 * regcache.h: Update comments describing the regcache_cpy family
4203 of functions.
4204 (regcache_save, regcache_restore): Delete declaration.
4205 (regcache_save_no_passthrough): Delete declaration.
4206 (regcache_restore_no_passthrough): Delete declaration.
4207 * regcache.c (regcache_save): Delete function.
4208 (regcache_save_no_passthrough): Delete function.
4209 (regcache_restore): Delete function.
4210 (regcache_restore_no_passthrough): Delete function.
4211
78f6d055
AC
42122002-06-21 Andrew Cagney <ac131313@redhat.com>
4213
4214 * config/m68k/tm-m68k.h: Fix typo.
4215 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4216 (m68k_frame_init_saved_regs): Declare.
4217
78b119cb
JB
42182002-06-21 Jim Blandy <jimb@redhat.com>
4219
4220 Remove some vestiges of Harris 88k support.
4221 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4222 register numbering quirk.
4223 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4224 odd symbols occurring in Harris 88k ELF targets.
4225
0fbb3da7
TT
42262002-06-21 Tom Tromey <tromey@redhat.com>
4227
4228 * gdb_locale.h: New file.
4229 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4230 (defs_h): Added gdb_locale.h.
4231 * configure, config.in: Rebuilt.
4232 * configure.in (PACKAGE): Define.
4233 * defs.h: Include gdb_locale.h.
4234 * main.c (captured_main): Call setlocale, bindtextdomain,
4235 textdomain.
4236
456f8b9d
DB
42372002-06-21 Dave Brolley <brolley@redhat.com>
4238
4239 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4240 * config/frv/frv.mt: New file.
4241 * config/frv/tm-frv.h: New file.
4242 * configure.tgt: Support frv-*-*.
4243 * Makefile.in (frv-tdep.o): New target.
4244 * frv-tdep.c: New file.
4245 * NEWS: Mention frv.
4246
cdd463f9
DB
42472002-06-21 Dave Brolley <brolley@redhat.com>
4248
4249 * MAINTAINERS: Add self to "Write After Approval" list.
4250
5d3ed2e3
GS
42512002-06-21 Grace Sainsbury <graces@redhat.com>
4252
4253 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4254 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4255 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4256 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4257 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4258
4259 * m68k-tdep.c: Include arch-utils.h
4260 (m68k_register_raw_size): Add.
4261 (m68k_register_virtual_size): Add.
4262 (m68k_register_virtual_type): Add.
4263 (m68k_register_name): Add.
4264 (m68k_stack_align): Add.
4265 (m68k_register_byte): Add.
4266 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4267 tm-m68k.h.
4268
7f8e7424
GS
42692002-06-21 Grace Sainsbury <graces@redhat.com>
4270
a2c6a6d5 4271 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4272 m68k_find_saved_regs.
4273 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4274 references to it with frame->saved_regs.
7f8e7424
GS
4275 (m68k_gdbarch_init): Added function calls to initialize the
4276 gdbarch structure.
a2c6a6d5
GS
4277 (m68k_fix_call_dummy): Add.
4278 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4279 (CALL_DUMMY): Remove.
4280 (CALL_DUMMY_LENGTH): Remove.
4281 (CALL_DUMMY_START_OFFSET): Remove.
4282 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4283 (FIX_CALL_DUMMY): Remove.
4284 (PUSH_DUMMY_FRAME): Remove.
4285 (POP_FRAME): Remove.
7f8e7424 4286
f461f5cf
PM
42872002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4288
4289 * parse.c (parse_fprintf): New function used to avoid calls to
4290 fprintf in bison parser generated debug code.
4291 * parser-defs.h: Declaration of new parse_fprintf function.
4292 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4293 Set YYDEBUG to 1 by default.
4294 Set YYFPRINTF as parse_fprintf.
4295
7f0c12ed
ML
42962002-06-21 Michal Ludvig <mludvig@suse.cz>
4297
4298 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4299 encoding anymore.
4300 (pointer_encoding, enum ptr_encoding): New.
4301 (execute_cfa_program): Take care about pointer encoding.
4302 (dwarf2_build_frame_info): Only call parse_frame_info for
4303 .debug_frame and .eh_frame.
4304 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4305 fixed augmentation handling, added relative addressing,
4306 ignore duplicate FDEs. Added comments.
19d833a2 4307 * dwarf2cfi.c: Reindented.
7f0c12ed 4308
87c4a039
EZ
43092002-06-20 Elena Zannoni <ezannoni@redhat.com>
4310
4311 * event-top.c (command_handler): Don't use space_at_cmd_start
4312 unless there is sbrk() on the host. Assign time and space data
4313 to union fields of the appropriate length.
4314
1cf877ad
ML
43152002-06-20 Michal Ludvig <mludvig@suse.cz>
4316
4317 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4318 x86_64_register_name. Return type changed to 'const char *'.
4319 (x86_64_register_name2nr): Rename to x86_64_register_number.
4320 (x86_64_gdbarch_init): Update to reflect the change.
4321 * x86-64-tdep.h: Ditto.
4322 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4323 (supply_fpregset): Ditto.
4324
3fadccb3
AC
43252002-06-19 Andrew Cagney <cagney@redhat.com>
4326
4327 * regcache.h: Update copyright.
4328 (struct regcache, struct gdbarch): Add opaque declarations.
4329 (current_regcache): Declare global variable.
4330 (regcache_read, regcache_write): Add gdbarch parameter.
4331 (regcache_save, regcache_save_no_passthrough)
4332 (regcache_restore, regcache_restore_no_passthrough)
4333 (regcache_dup, regcache_dup_no_passthrough)
4334 (regcache_cpy, regcache_cpy_no_passthrough)
4335 (deprecated_grub_regcache_for_registers)
4336 (deprecated_grub_regcache_for_register_valid)
4337 (regcache_valid_p): Add function declarations.
4338
4339 * regcache.c: Update copyright.
4340 (regcache_descr_handle): New global variable.
4341 (struct regcache_descr): Define.
4342 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4343 (regcache_descr, xfree_regcache_descr): New functions.
4344 (struct regcache): Define.
4345 (regcache_xmalloc, regcache_xfree): New functions.
4346 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4347 (regcache_dup, regcache_dup_no_passthrough): New functions.
4348 (regcache_valid_p, regcache_read_as_address): New functions.
4349 (deprecated_grub_regcache_for_registers): New function.
4350 (deprecated_grub_regcache_for_register_valid): New function.
4351 (current_regcache): New global variable.
4352 (register_buffer): Add regcache parameter. Update calls.
4353 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4354 (read_register_gen, write_register_gen): Update register_buffer
4355 call. Test for legacy_p instead of gdbarch_register_read_p or
4356 gdbarch_register_write_p.
4357 (regcache_collect): Update register_buffer call.
4358 (build_regcache): Rewrite. Use deprecated grub functions.
4359 (regcache_save, regcache_save_no_passthrough): New functions.
4360 (regcache_restore, regcache_restore_no_passthrough): New
4361 functions.
4362 (_initialize_regcache): Create the regcache_data_handle. Swap
4363 current_regcache global variable.
4364
4365 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4366 parameter to regcache_read and regcache_write calls.
4367 (sh4_register_read): Ditto.
4368 (sh64_pseudo_register_read): Ditto.
4369 (sh64_register_read): Ditto.
4370 (sh_pseudo_register_write): Ditto.
4371 (sh4_register_write): Ditto.
4372 (sh64_pseudo_register_write): Ditto.
4373 (sh64_register_write): Ditto.
4374
4375 * defs.h (XCALLOC): Define.
4376
152d9db6
GS
43772002-06-19 Grace Sainsbury <graces@redhat.com>
4378
4379 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4380 * m68k-tdep.c (m68k_gdbarch_init): Added.
4381 (m68k_dump_tdep): Added.
4382
170911c7
DJ
43832002-06-19 Daniel Jacobowitz <drow@mvista.com>
4384
4385 * ada-lang.c (fill_in_ada_prototype): Update comment.
4386
2e4ebe70
DJ
43872002-06-19 Daniel Jacobowitz <drow@mvista.com>
4388
4389 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4390 MIPS_ABI_LAST.
4391 (mips_abi_string, mips_abi_strings): New.
4392 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4393 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4394 tdep->mips_abi_string. Honor mips_abi_string. Default to
4395 O32 if no ABI is found.
4396 (mips_dump_tdep): Use mips_abi_strings.
4397 (mips_abi_update): New function.
4398 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4399 ``set mips abi'' and ``show mips abi''. Check the size of
4400 mips_abi_strings.
4401
16775908
AC
44022002-06-19 Andrew Cagney <cagney@redhat.com>
4403
4404 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4405 constant.
4406
5051bfa4 44072002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4408
5051bfa4
JB
4409 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4410 current frame using only the first stack size adjustment. All
4411 subsequent size adjustments are not considered to be part of
4412 the "static" part of the current frame.
4413 Compute the address of the saved registers relative to the
4414 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4415 in use in this frame.
4416
56468235
DH
44172002-06-18 Don Howard <dhoward@redhat.com>
4418
4419 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4420 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4421 suggesting this solution.
4422
0b624158
AC
44232002-06-18 Andrew Cagney <ac131313@redhat.com>
4424
4425 * config/romp/xm-rtbsd.h: Delete file.
4426 * config/romp/rtbsd.mh: Delete file.
4427
221ea385
KS
44282002-06-18 Keith Seitz <keiths@redhat.com>
4429
4430 * breakpoint.c (condition_command): Post breakpoint_modify
4431 when a condition is added to an existing breakpoint.
4432 (commands_command): Likewise for commands.
4433 (set_ignore_count): Likewise for ignore counts.
4434 If no tty, do not simply return, still need to send event
4435 notification.
4436 (ignore_command): Only print a newline if the command came
4437 from a tty.
4438 Don't call breakpoints_changed, since this is now properly
4439 handled by set_ignore_count.
4440
5402eed1
AC
44412002-06-18 Andrew Cagney <cagney@redhat.com>
4442
4443 * MAINTAINERS: Note that cris-elf target can be compiled with
4444 -Werror.
4445 * cris-tdep.c (cris_register_name): Make return type constant.
4446 (cris_breakpoint_from_pc): Ditto.
4447
cc22880b
ML
44482002-06-18 Michal Ludvig <mludvig@suse.cz>
4449
4450 * frame.h (struct frame_info): Change type of context to
4451 'struct context'.
4452
fa88f677
AC
44532002-06-17 Andrew Cagney <cagney@redhat.com>
4454
4455 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4456 pointer.
4457 * gdbarch.h, gdbarch.c: Regenerate.
4458 * config/mips/tm-mips.h (mips_register_name): Update.
4459 * i386-tdep.h (i386_register_name): Update.
4460 * mips-tdep.c (mips_register_name): Update
4461 * alpha-tdep.c (alpha_register_name): Update.
4462 * arch-utils.c (legacy_register_name): Update.
4463 * arch-utils.h (legacy_register_name): Update.
4464 * avr-tdep.c (avr_register_name): Update.
4465 * ia64-tdep.c (ia64_register_name): Update.
4466 * i386-tdep.c (i386_register_name): Update.
4467 * sparc-tdep.c (sparc32_register_name): Update.
4468 (sparc64_register_name): Update.
4469 (sparclite_register_name): Update.
4470 (sparclet_register_name): Update.
4471 * sh-tdep.c (sh_generic_register_name): Update.
4472 (sh_sh_register_name): Update.
4473 (sh_sh3_register_name): Update.
4474 (sh_sh3e_register_name): Update.
4475 (sh_sh_dsp_register_name): Update.
4476 (sh_sh3_dsp_register_name): Update.
4477 (sh_sh4_register_name): Update.
4478 (sh_sh64_register_name): Update.
4479 * s390-tdep.c (s390_register_name): Update.
4480 * rs6000-tdep.c (rs6000_register_name): Update.
4481 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4482 (ns32k_register_name_32382): Update.
4483 * d10v-tdep.c (d10v_ts2_register_name): Update.
4484 (d10v_ts3_register_name): Update.
4485 * xstormy16-tdep.c (xstormy16_register_name): Update.
4486 * vax-tdep.c (vax_register_name): Update.
4487 * v850-tdep.c (v850_register_name): Update.
4488 * m68hc11-tdep.c (m68hc11_register_name): Update.
4489 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4490 (am33_register_name): Update.
4491
ea1e7ef6
GS
44922002-06-17 Grace Sainsbury <graces@redhat.com>
4493
4494 * m68k-tdep.c: Reindented.
4495
9b02dd1b
AC
44962002-06-17 Andrew Cagney <ac131313@redhat.com>
4497
4498 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4499 list of predefined types.
4500
8758dec1
MK
45012002-06-16 Mark Kettenis <kettenis@gnu.org>
4502
b6197528
MK
4503 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4504 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4505 REGISTER_CONVERT_TO_RAW): Remove defines.
4506 (i386_register_virtual_type, i386_register_convertible,
4507 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4508 Remove prototypes.
4509 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4510 macros mentioned above.
4511
82b47e62
MK
4512 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4513 (i386lynx_saved_pc_after_call): Remove prototype.
4514 * i386ly-tdep.c: Include "i386-tdep.h".
4515 (i386lynx_saved_pc_after_call): Make static. Use
4516 read_memory_nobpt instead of read_memory. Use
4517 read_memory_unsigned_integer instead of read_memory_integer.
4518 (i386lynx_init_abi): New function.
4519 (i386lynx_coff_osabi_sniffer): New function.
4520 (_initialize_i386bsd_tdep): New function.
4521
8758dec1
MK
4522 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4523 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4524 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4525 (i386_fix_call_dummy): Remove prototype.
4526 * i386-tdep.c (i386_call_dummy_words): New variable.
4527 (i386_gdbarch_init): Adjust for removal of the
4528 macros mentioned above.
4529
e9e68a56
AC
45302002-06-15 Andrew Cagney <ac131313@redhat.com>
4531
4532 * command.h (add_setshow_auto_boolean_cmd): Replace
4533 add_set_auto_boolean_cmd.
4534 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4535 add_set_auto_boolean_cmd.
4536 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4537 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4538 mask-address'' command.
4539 (show_mask_address): Add cmd parameter.
4540 * remote.c (add_packet_config_cmd): Update. Change type of
4541 set_func and show_func to cmd_sfunc_ftype.
4542 (_initialize_remote): Update `set remote Z-packet'
4543 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4544 (show_remote_protocol_e_packet_cmd): Ditto.
4545 (show_remote_protocol_E_packet_cmd): Ditto.
4546 (show_remote_protocol_P_packet_cmd): Ditto.
4547 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4548 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4549 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4550 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4551 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4552 (show_remote_protocol_Z_packet_cmd): Ditto.
4553 (show_remote_protocol_binary_download_cmd): Ditto.
4554 (show_remote_cmd): Pass NULL to all of above.
4555
fc08ec52
MK
45562002-06-15 Mark Kettenis <kettenis@gnu.org>
4557
4558 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4559 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4560 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4561 POP_FRAME): Remove defines.
4562 (i386_push_arguments, i386_store_struct_return,
4563 i386_extract_return_value, i386_store_return_value,
4564 i386_extract_struct_value_address, i386_push_dummy_frame,
4565 i386_pop_frame): Renove prototypes.
4566 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4567 macros mentioned above.
4568
e707bbc2
AC
45692002-06-15 Andrew Cagney <ac131313@redhat.com>
4570
4571 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4572 add_set_boolean_cmd.
4573 (add_setshow_cmd): New function.
4574 * command.h (add_setshow_boolean_cmd): Replace
4575 add_set_boolean_cmd.
4576 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4577 and ``set rdiromatzero''.
4578 * maint.c (_initialize_maint_cmds): Update commented out code.
4579 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4580 * target.c (initialize_targets): Update `set
4581 trust-readonly-sections'.
4582 * remote.c (_initialize_remote): Update `set remotebreak'.
4583
42fdc8df
MK
45842002-06-15 Mark Kettenis <kettenis@gnu.org>
4585
93924b6b
MK
4586 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4587 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4588 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4589 fit into multi-arch framework.
4590 (i386_breakpoint_from_pc): New function.
4591 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4592 above.
4593
42fdc8df
MK
4594 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4595 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4596 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4597 (i386_frameless_function_invocation, i386_frame_num_args,
4598 i386_frame_init_saved_regs): Remove prototypes.
4599 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4600 macros mentioned above.
4601
9773a94b
AC
46022002-06-15 Andrew Cagney <ac131313@redhat.com>
4603
4604 * cli/cli-decode.c (set_cmd_cfunc): Update.
4605 (set_cmd_sfunc): Update.
4606 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4607 (set_cmd_sfunc, set_cmd_cfunc): Update.
4608 * cli/cli-decode.h: Update.
4609
6e157172
MK
46102002-06-15 Mark Kettenis <kettenis@gnu.org>
4611
4612 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4613 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4614
7f19b9a2
AC
46152002-06-15 Andrew Cagney <ac131313@redhat.com>
4616
4617 * defs.h (auto_boolean): Declare enum.
4618 * command.h (cmd_auto_boolean): Delete enum.
4619 * mips-tdep.c (mask_address_var): Update.
4620 (mips_mask_address_p): Update.
4621 (show_mask_address): Update.
4622 * remote.c (struct packet_config): Update.
4623 (update_packet_config): Update.
4624 (show_packet_config_cmd): Update.
4625 (packet_ok): Update.
4626 (add_packet_config_cmd): Update.
4627 (_initialize_remote):
4628 * command.h: Update.
4629 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4630 (do_setshow_command): Update.
4631 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4632 * cli/cli-decode.h: Update.
4633
1cf88de5
MK
46342002-06-15 Mark Kettenis <kettenis@gnu.org>
4635
22ba8cf2
MK
4636 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4637 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4638 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4639 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4640 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4641 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4642
762c5349
MK
4643 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4644 list of DJGPP COFF targets.
4645
091198bb
MK
4646 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4647 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4648 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4649 (FP0_REGNUM): Remove define.
4650 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4651 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4652 (i386_register_virtual_size): Remove protoype.
4653 * i386-tdep.c (i386_register_virtual_size): Removed.
4654 (i386_extract_return_value, i386_store_return_value): Use
4655 FP0_REGNUM instead of NUM_FREGS to determine whether the
4656 floating-point registers are available.
4657 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4658 Adjust for removal of macros mentioned above.
4659
46602002-06-15 Mark Kettenis <kettenis@gnu.org>
4661
fcc9bf01
MK
4662 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4663 comments.
4664 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4665 Remove prototypes.
4666 (supply_gregset, fill_gregset): Remove use of register keyword and
4667 remove declaration for regmap. Use I386_NUM_GREGS instead of
4668 NUM_REGS and NUM_FREGS.
4669 (FPREGSET_FSAVE_OFFSET): Remove.
4670 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4671 NUM_FREGS to determine whether the floating-point registers are
4672 available.
4673
65e78234
MK
4674 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4675 gnu_store_registers): Replace usage of NUM_GREGS with
4676 I386_NUM_GREGS.
4677
98df6387
MK
4678 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4679 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4680 usage of NUM_GREGS with I386_NUM_GREGS.
4681
099a9414
MK
4682 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4683
57976e88
MK
4684 * i386bsd-nat.c: Include "i386-tdep.h".
4685 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4686 I386_NUM_GREGS.
4687
b335f4a6
MK
4688 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4689 and associated comment. They no longer make any sense, since we
4690 don't use this file anymore on Linux.
4691
1cf88de5
MK
4692 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4693 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4694 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4695 elements in these arrays.
4696 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4697 MAX_NUM_REGS.
4698
daa66587
MK
46992002-06-15 Mark Kettenis <kettenis@gnu.org>
4700
4701 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4702 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4703
26e9b323
AC
47042002-06-14 Andrew Cagney <cagney@redhat.com>
4705
4706 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4707 EXTRACT_RETURN_VALUE.
4708 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4709 EXTRACT_STRUCT_VALUE_ADDRESS.
4710 * gdbarch.h, gdbarch.c: Regenerate.
4711
4712 * values.c (value_being_returned): Handle
4713 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4714 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4715
4716 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4717 * arm-tdep.c (arm_gdbarch_init): Update.
4718 * avr-tdep.c (avr_gdbarch_init): Update.
4719 * cris-tdep.c (cris_gdbarch_init): Update.
4720 * d10v-tdep.c (d10v_gdbarch_init): Update.
4721 * ia64-tdep.c (ia64_gdbarch_init): Update.
4722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4724 * s390-tdep.c (s390_gdbarch_init): Update.
4725 * sh-tdep.c (sh_gdbarch_init): Update.
4726 * s390-tdep.c (s390_gdbarch_init): Update.
4727 * sparc-tdep.c (sparc_gdbarch_init): Update.
4728 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4729 * v850-tdep.c (v850_gdbarch_init): Update.
4730 * vax-tdep.c (vax_gdbarch_init): Update.
4731 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4733
4734 * config/arc/tm-arc.h: Update.
4735 * config/d30v/tm-d30v.h: Update.
4736 * config/fr30/tm-fr30.h: Update.
4737 * config/h8300/tm-h8300.h: Update.
4738 * config/h8500/tm-h8500.h: Update.
4739 * config/i386/tm-i386.h: Update.
4740 * config/i386/tm-ptx.h: Update.
4741 * config/i386/tm-symmetry.h: Update.
4742 * config/i960/tm-i960.h: Update.
4743 * config/m32r/tm-m32r.h: Update.
4744 * config/m68k/tm-delta68.h: Update.
4745 * config/m68k/tm-linux.h: Update.
4746 * config/m68k/tm-m68k.h: Update.
4747 * config/m88k/tm-m88k.h: Update.
4748 * config/mcore/tm-mcore.h: Update.
4749 * config/mips/tm-mips.h: Update.
4750 * config/mn10200/tm-mn10200.h: Update.
4751 * config/pa/tm-hppa.h: Update.
4752 * config/pa/tm-hppa64.h: Update.
4753 * config/sparc/tm-sp64.h: Update.
4754 * config/sparc/tm-sparc.h: Update.
4755 * config/sparc/tm-sparclet.h: Update.
4756 * config/z8k/tm-z8k.h: Update.
4757
5179e78f
AC
47582002-06-14 Andrew Cagney <cagney@redhat.com>
4759
4760 * Makefile.in (i386_linux_tdep_h): Define.
4761 (i386_tdep_h, i387_tdep_h): Define.
4762 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4763 $(i386_tdep_h) and $(i387_tdep_h).
4764 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4765
8201327c
MK
47662002-06-14 Mark Kettenis <kettenis@gnu.org>
4767
edf393ac
MK
4768 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4769 Already covered by the default.
4770
896fb97d
MK
4771 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4772 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4773 (i386_gdbarch_init): Initialize long_double_format and long_double
4774 bit.
4775
8201327c
MK
4776 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4777 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4778 Move these to ...
4779 * config/i386/i386sol2.mh: ... here.
4780 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4781 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4782 (SIGCONTEXT_PC_OFFSET): Remove define.
4783 (IN_SIGTRAMP): Remove define.
4784 * i386-sol2-tdep.c: New file.
4785
4786 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4787 * config/i386/tm-i386nw.h: Removed.
4788
4789 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4790 USE_STRUCT_CONVENTION): Remove defines.
4791 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4792 (get_longjmp_target): Remove prototype.
4793 (IN_SIGTRAMP): Remove define.
4794 (i386bsd_in_sigtramp): Remove prototype.
4795 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4796 function. Update comment accordingly
4797 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4798 (FRAME_SAVED_PC): Remove define.
4799 (i386bsd_frame_saved_pc): Remove prototype.
4800 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4801 GET_LONGJMP_TARGET): Remove defines.
4802 (get_longjmp_target): Remove prototype.
4803 (IN_SIGTRAMP): Remove define.
4804 (i386bsd_in_sigtramp): Remove prototype.
4805 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4806 function. Update comment accordingly
4807 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4808 (FRAME_SAVED_PC): Remove define.
4809 (i386bsd_frame_saved_pc): Remove prototype.
4810 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4811 Remove prototype.
4812 (USE_STRUCT_CONVENTION): Remove prototype.
4813 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4814 declaration.
4815 (_initialize_i386bsd_nat): Revise logic to determine some
4816 constants at compile time when compiling a native GDB. Warn if
4817 things don't match up with what we expect.
4818 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4819 Remove variables.
4820 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4821 to use date stored in `struct gdbarch_tdep'.
4822 (i386bsd_sigcontext_offset): Remove varaible.
4823 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4824 stored in `struct gdbarch_tdep'.
4825 (i386bsd_frame_saved_pc): Make static.
4826 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4827 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4828 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4829 i386fbsd4_sc_pc_offset): New variables.
4830 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4831 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4832 functions.
4833 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4834 functions.
4835 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4836 Modify the value of i386fbsd_sigtramp_start and
4837 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4838 i386fbsd_sigtramp_end.
4839 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4840 function.
4841
4842 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4843 define to i386-linux-tdep.h.
4844 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4845 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4846 defines.
4847 (i386_linux_register_name, i386_linux_register_byte,
4848 i386_linux_register_raw_size): Remove prototypes.
4849 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4850 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4851 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4852 TARGET_WRITE_PC): Remove defines.
4853 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4854 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4855 i386_linux_write_pc): Remove prototypes.
4856 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4857 (get_longjmp_target): Remove prototype.
4858 * i386-linux-tdep.h: New file.
4859 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4860 * i386-linux-tdep.c: Include "i386-tdep.h" and
4861 "i386-linux-tdep.h".
4862 (i386_linux_register_name, i386_linux_register_byte,
4863 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4864 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4865 Make static.
4866 (i386_linux_init_abi): New function.
4867 (_initialize_i386_linux_tdep): New function.
4868
4869 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4870 (i386_saved_pc_after_call): Remove prototype.
4871 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4872 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4873 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4874 (i386_register_name, i386_stab_reg_to_regnum,
4875 i386_dwarf_reg_to_regnum): Remove prototypes.
4876 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4877 SIZEOF_SSE_REGS): Remove defines.
4878 (REGISTER_BYTES): Remove define.
4879 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4880 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4881 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4882 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4883 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4884 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4885 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4886 (get_longjmp_target): Remove prototype.
4887 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4888 (sigtramp_saved_pc): Remove define.
4889 (i386v4_sigtramp_saved_pc): Remove prototype.
4890 * config/i386/tm-go32.h (FRAME_CHAIN,
4891 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4892 (i386go32_frame_saved_pc): Remove prototype.
4893 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4894 (get_longjmp_target): Remove prototype.
4895 * i386-tdep.h: Include "osabi.h".
4896 (enum i386_abi): Removed.
4897 (enum struct_return): New enum.
4898 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4899 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4900 sc_pc_offset members.
4901 (i386_gdbarch_register_os_abi): Remove prototype.
4902 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4903 I386_SSE_NUM_REGS): New defines.
4904 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4905 I386_SSE_SIZEOF_REGS): New defines.
4906 (i386_register_name, i386_register_byte, i386_register_raw_size):
4907 New prototypes.
4908 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4909 (i386bsd_sigtramp_saved_pc): New prototype.
4910 * i386-tdep.c: Don't include "elf-bfd.h".
4911 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4912 i386_frame_chain, i386_saved_pc_after_call): Make static.
4913 (i386_frame_saved_pc): Rewrite to call architecture dependent
4914 function to deal with signal handlers. Make static.
4915 (i386go32_frame_saved_pc): Removed.
4916 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4917 Removed.
4918 (i386_get_longjmp_target): New function.
4919 (default_struct_convention, pcc_struct_convention,
4920 reg_struct_convention, valid_conventions, struct_convention): New
4921 variables.
4922 (i386_use_struct_convention): New function.
4923 (i386v4_sigtramp_saved_pc): Renamed to
4924 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4925 (i386_pc_in_sigtramp): New function.
4926 (i386_abi_names): Removed.
4927 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4928 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4929 Removed.
4930 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4931 i386_gdbarch_register_os_abi): Removed.
4932 (struct i386_abi_handler): Removed.
4933 (i386_abi_handler_list): Removed.
4934 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4935 functions.
4936 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4937 i386_nw_init_abi): New functions.
4938 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4939 Use set_gdbarch_xxx() calls instead of relying on macros for a
4940 number of calls.
4941 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4942 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4943 Register the various architecture variants defined in this file.
4944
ad2f7632
DJ
49452002-06-14 Daniel Jacobowitz <drow@mvista.com>
4946
4947 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4948 (struct main_type): Remove arg_types member. Update comments for
4949 struct field.
4950 (TYPE_ARG_TYPES): Remove.
4951 (TYPE_FN_FIELD_ARGS): Update.
4952 (smash_to_method_type): Update prototype.
4953
4954 * c-typeprint.c (cp_type_print_method_args): Take method type
4955 instead of argument list. Use new argument layout. Simplify.
4956 (c_type_print_args): Use new argument layout. Simplify.
4957 (c_type_print_base): Update call to cp_type_print_method_args.
4958 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4959 argument; use die->type instead. Update call to
4960 smash_to_method_type.
4961 (read_structure_scope): Update call to dwarf2_add_member_fn.
4962 * gdbtypes.c (allocate_stub_method): Update comment.
4963 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4964 Use new argument layout.
4965 (check_stub_method): Use new argument layout. Don't count
4966 void as an argument.
4967 (print_arg_types): Update comments. Use new argument layout.
4968 (recursive_dump_type): Don't print arg_types member.
4969 * hpread.c (hpread_read_struct_type): Use new argument layout.
4970 (fixup_class_method_type): Likewise.
4971 (hpread_type_lookup): Likewise.
4972 * stabsread.c (read_type): Update calls to read_args and
4973 smash_to_method_type.
4974 (read_args): Use new argument layout. Simplify.
4975 * valops.c (typecmp): Use new argument layout. Update parameters
4976 and comments. Simplify.
4977 (hand_function_call): Use new argument layout.
4978 (search_struct_method): Update call to typecmp.
4979 (find_overload_match): Use new argument layout.
4980
6da02953
DJ
49812002-06-13 Daniel Jacobowitz <drow@mvista.com>
4982
4983 * NEWS: Mention multithreaded debug support for gdbserver.
4984
519b2366
DJ
49852002-06-13 Daniel Jacobowitz <drow@mvista.com>
4986
4987 * MAINTAINERS: Mention NEWS.
4988
6c0d6680
DJ
49892002-06-13 Daniel Jacobowitz <drow@mvista.com>
4990
4991 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4992 (struct mips_objfile_private, compare_pdr_entries): New.
4993 (non_heuristic_proc_desc): Read the ".pdr" section if it
4994 is present.
4995
6529d2dd
AC
49962002-06-12 Andrew Cagney <ac131313@redhat.com>
4997
4998 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4999 (arm_debug): New static variable.
5000 (_initialize_arm_tdep): Add ``set debug arm'' command.
5001
26216b98
AC
50022002-06-12 Andrew Cagney <ac131313@redhat.com>
5003
5004 * Makefile.in (sim_arm_h): Define.
5005 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5006 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5007 (arm_register_sim_regno): New function, map an internal REGNUM
5008 onto a simulator register number.
5009 (arm_gdbarch_init): Set register_sim_regno.
5010
814b3ba0
AH
50112002-06-09 Aldy Hernandez <aldyh@redhat.com>
5012
5013 * MAINTAINERS: Add self.
5014
475b0867
JB
50152002-06-11 Jim Blandy <jimb@redhat.com>
5016
919d772c
JB
5017 * source.c (source_info): Mention whether the symtab has
5018 information about preprocessor macros.
5019
475b0867
JB
5020 Call the command `info macro', not `show macro'.
5021 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5022 Fix error message.
5023 (_initialize_macrocmd): Register `info_macro_command' in
5024 `infolist', not `showlist'.
5025
9e364162
DJ
50262002-06-11 Daniel Jacobowitz <drow@mvista.com>
5027
5028 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5029 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5030 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5031 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5032 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5033 unconditionally.
5034 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5035 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5036 (_initialize_mips_tdep): Remove dead code.
5037 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5038 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5039 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5040 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5041 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5042 MIPS_LAST_FP_ARG_REGNUM): Remove.
5043
23aa4c72
ML
50442002-06-11 Michal Ludvig <mludvig@suse.cz>
5045
5046 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5047 (unwind_tmp_obstack_free, parse_frame_info)
5048 (update_context, cfi_read_fp, cfi_write_fp)
5049 (cfi_frame_chain, cfi_init_extra_frame_info)
5050 (cfi_virtual_frame_pointer): Use the above function.
264d1763 5051 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 5052
70eb15a4
CV
50532002-06-11 Corinna Vinschen <vinschen@redhat.com>
5054
5055 * v850-tdep.c (v850_type_is_scalar): New function.
5056 (v850_use_struct_convention): Match current gcc implementation
5057 as close as possible.
5058 (v850_push_arguments): Fix stack_offset handling. Don't write
5059 struct_addr into register. This is done by v850_store_struct_return.
5060 (v850_extract_return_value): Care for structs.
5061 (v850_store_return_value): Ditto.
5062 (v850_store_struct_return): Actually write address.
5063
482a4d06
ML
50642002-06-11 Michal Ludvig <mludvig@suse.cz>
5065
5066 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5067 without debug information too.
5068
d855c300
AC
50692002-06-10 Andrew Cagney <ac131313@redhat.com>
5070
5071 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5072 Make multi-arch pure.
5073 * gdbarch.h, gdbarch.c: Re-generate.
5074 * arm-tdep.c (arm_print_float_info): Update.
5075 * arch-utils.h (default_print_float_info): Update.
5076 * arch-utils.c (default_print_float_info): Update.
5077 * infcmd.c (float_info): Update call.
5078
dd12a101
AC
50792002-06-10 Andrew Cagney <ac131313@redhat.com>
5080
5081 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5082 the front of the initialize list.
5083
101dcfbe
AC
50842002-06-10 Andrew Cagney <ac131313@redhat.com>
5085
5086 * infrun.c (struct inferior_status): Replace fields
5087 selected_frame_address and selected_level with field
5088 selected_frame_id.
5089 (save_inferior_status): Update. Use get_frame_id.
5090 (struct restore_selected_frame_args): Delete.
5091 (restore_selected_frame): Update. Use frame_find_by_id.
5092 (restore_inferior_status): Update.
5093
5094 * breakpoint.h (struct breakpoint): Change type of
5095 watchpoint_frame to frame_id.
5096 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5097 call to get_current_frame.
5098 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5099 get_current_frame.
5100 (watchpoint_check): Use frame_find_by_id.
5101
5102 * frame.h (record_selected_frame): Delete declaration.
5103 * stack.c (record_selected_frame): Delete function.
5104
5105 * frame.h (struct frame_id): Define.
5106 (get_frame_id): Declare.
5107 (frame_find_by_id): Declare.
5108 * frame.c (frame_find_by_id): New function.
5109 (get_frame_id): New function.
5110
304270b6
AV
51112002-06-10 Andrey Volkov <avolkov@transas.com>
5112
5113 * ser-e7kpc.c: Fix duplicated define and call of
5114 _initialize_ser_e7000pc
5115
2f2cf184
DJ
51162002-06-09 Daniel Jacobowitz <drow@mvista.com>
5117
5118 * signals/signals.c (target_signal_from_host): Fix #ifdef
5119 SIGRTMIN case.
5120 (do_target_signal_to_host): Likewise.
5121
caaa3122
DJ
51222002-06-09 Daniel Jacobowitz <drow@mvista.com>
5123
5124 * mips-tdep.c (mips_find_abi_section): New function.
5125 (mips_gdbarch_init): Call it.
5126
6ac5df3a
MK
51272002-06-09 Mark Kettenis <kettenis@gnu.org>
5128
5129 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5130 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5131 after Andrew's 2002-06-08 gdbarch change.
5132
82ea117a
MK
51332002-06-09 Mark Kettenis <kettenis@gnu.org>
5134
5135 * i386-linux-nat.c (suppy_gregset): Don't supply
5136 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5137 register cache.
5138 (fill_gregset): Don't fetch it under the same circumstances.
5139
3c25f8c7
AC
51402002-06-09 Andrew Cagney <cagney@redhat.com>
5141
5142 * Makefile.in (callback_h): Define.
5143 (remote_sim_h): Update path to remote-sim.h.
5144 (remote-rdp.o): Add $(callback_h).
5145 (remote-sim.o): Use $(callback_h).
5146 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5147 * remote-rdp.c: Include "gdb/callback.h".
5148
1029b7fa
MK
51492002-06-09 Mark Kettenis <kettenis@gnu.org>
5150
5151 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5152 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5153
616675d3
AC
51542002-06-08 Andrew Cagney <ac131313@redhat.com>
5155
a3efda28
AC
5156 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5157 * rdi-share/serpardr.c: Ditto.
5158 * rdi-share/unixcomm.c: Ditto.
5159 * rdi-share/serdrv.c: Ditto.
5160 * rdi-share/hostchan.h: Ditto.
5161 * rdi-share/hostchan.c: Ditto.
5162 * rdi-share/host.h: Ditto.
5163 * rdi-share/devsw.c: Ditto.
5164
c5f10366
AC
5165 * objfiles.h: Change type of obj_private to void pointer.
5166 * pa64solib.c: Update copyright. Don't include "assert.h", use
5167 strcmp instead of STREQ, use LONGEST, do not use PTR
5168 * somsolib.c: Ditto.
5169
616675d3
AC
5170 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5171 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5172 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5173
e4b415d9
AC
51742002-06-08 Andrew Cagney <ac131313@redhat.com>
5175
5176 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5177 (default_get_saved_register): Delete function.
5178 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5179 generic_unwind_get_saved_register.
5180 * gdbarch.h, gdbarch.c: Re-generate.
5181
ca0d0b52
AC
51822002-06-08 Andrew Cagney <ac131313@redhat.com>
5183
5184 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5185 generic_func_frame_chain_valid.
5186 * gdbarch.h, gdbarch.c: Re-generate.
5187 * blockframe.c (generic_func_frame_chain_valid): Only check
5188 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5189 passing FP to PC_IN_CALL_DUMMY.
5190 Fix PR gdb/360.
5191
76860b5f
AC
51922002-06-08 Andrew Cagney <ac131313@redhat.com>
5193
5194 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5195 (register_gdbarch_data): Initialize init_p.
5196 (gdbarch_data): Initialize data pointer using the init function.
5197 (init_gdbarch_data): Delete function.
5198 (gdbarch_update_p): Update.
5199 (initialize_non_multiarch): Update.
5200 (struct gdbarch): Add field initialized_p.
5201 * gdbarch.h, gdbarch.c: Re-generate.
5202
8dda9770
ML
52032002-06-07 Michal Ludvig <mludvig@suse.cz>
5204
5205 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5206 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5207 better do the things actually here.
5208 * x86-64-tdep.c (x86_64_register_name2nr): New.
5209 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5210 (x86_64_gdbarch_init): Respect the above change.
5211 * x86-64-tdep.h (x86_64_register_name2nr)
5212 (x86_64_register_nr2name): Add prototypes.
5213 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5214
3d79a47c
MS
52152002-06-06 Michael Snyder <msnyder@redhat.com>
5216
7bd91a28
MS
5217 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5218 Delete extra braces and re-indent.
5219 (d10v_store_return_value): Char return values
3d79a47c
MS
5220 must be shifted over by one byte in R0.
5221 (d10v_extract_return_value): Delete extra braces, re-indent.
5222
095a4c96
EZ
52232002-06-06 Elena Zannoni <ezannoni@redhat.com>
5224
5225 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5226 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5227 (d10v_integer_to_address): Rewrite.
5228 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5229 the d10v specific functions which take care of converting to the
5230 correct space.
5231
e8a77ca4
EZ
52322002-06-06 Elena Zannoni <ezannoni@redhat.com>
5233
5234 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5235 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5236
4f2e4a4f
AC
52372002-06-02 Andrew Cagney <ac131313@redhat.com>
5238
5239 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5240 includes.
5241 * config/tm-linux.h: Ditto.
5242 * config/alpha/tm-alphalinux.h: Ditto.
5243 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5244 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5245 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5246 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5247 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5248 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5249 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5250 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5251 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5252 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5253 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5254 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5255 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5256 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5257 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5258 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5259 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5260 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5261 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5262 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5263 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5264 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5265 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5266 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5267 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5268 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5269 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5270 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5271 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5272 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5273 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5274 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5275 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5276 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5277 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5278 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5279 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5280
ae2ab2ce
AS
52812002-05-04 Aidan Skinner <aidan@velvet.net>
5282
5283 * ada-exp.tab.c: New file
5284 * ada-exp.y: New file
5285 * ada-lang.c: New file
5286 * ada-lang.h: New file
5287 * ada-lex.c: New file
5288 * ada-lex.l: New file
5289 * ada-tasks.c: New file
5290 * ada-typeprint.c: New file
5291 * ada-valprint.c: New file
5292
0ddd0135
JT
52932002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5294
5295 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5296 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5297
750fbacc
JT
52982002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5299
5300 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5301 insetead of ppc-linux-tdep.o.
5302 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5303 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5304
df94e18a
AC
53052002-06-02 Andrew Cagney <ac131313@redhat.com>
5306
5307 2002-05-07 Christian Groessler <chris@groessler.org>
5308 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5309 bit register contents for little endian hosts.
5310
1a38ab75
AC
53112002-06-01 Andrew Cagney <ac131313@redhat.com>
5312
5313 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5314 any maintainer.
5315
8b1632ac
AC
53162002-06-01 Andrew Cagney <ac131313@redhat.com>
5317
5318 * gdbarch.h: Regenerate.
5319
627054c8
AC
53202002-06-01 Andrew Cagney <ac131313@redhat.com>
5321
5322 * MAINTAINERS: Add everyone to write-after-approval list.
5323
4f460812
AC
53242002-06-01 Andrew Cagney <ac131313@redhat.com>
5325
5326 * stack.c (frame_info): Use frame_register_unwind instead of
5327 saved_regs. Mention when the SP is on the stack or in a register.
5328
5329 * frame.h (frame_register_unwind_ftype): Define. Document.
5330 (struct frame_info): Add field register_unwind and
5331 register_unwind_cache.
5332 (frame_register_unwind): Declare.
5333 (generic_unwind_get_saved_register): Declare.
5334
5335 * frame.c (frame_register_unwind): New function.
5336 (generic_unwind_get_saved_register): New function.
5337
5338 * blockframe.c (generic_call_dummy_register_unwind): New function.
5339 (frame_saved_regs_register_unwind): New function.
5340 (set_unwind_by_pc): New function.
5341 (create_new_frame): New function.
5342 (get_prev_frame): New function.
5343
de888f76
AC
53442002-05-30 Andrew Cagney <ac131313@redhat.com>
5345
5346 * a29k-share/: Delete directory.
5347 * remote-vx29k.c: Delete file.
5348
2f2c3626
JT
53492002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5350
5351 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5352 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5353
9ce5c36a
JT
53542002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5355
5356 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5357 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5358 (sparc64nbsd-nat.o)
5359 (sparcnbsd-nat.o)
5360 (sparcnbsd-tdep.o): New dependency lists.
5361 * NEWS: Note new UltraSPARC NetBSD native configuration.
5362 * configure.host (sparc64-*-netbsd*): New host.
5363 * configure.tgt (sparc-*-netbsdelf*)
5364 (sparc-*-netbsd*): Set gdb_target to nbsd.
5365 (sparc64-*-netbsd*): New target.
5366 * sparc64nbsd-nat.c: New file.
5367 * sparcnbsd-nat.c: New file.
5368 * sparcnbsd-tdep.c: New file.
5369 * sparcnbsd-tdep.h: New file.
5370 * config/sparc/nbsd.mt: New file.
5371 * config/sparc/nbsd64.mh: New file.
5372 * config/sparc/nbsd64.mt: New file.
5373 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5374 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5375 (HOST_IPC): Remove.
5376 * config/sparc/nbsdaout.mt: Remove.
5377 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5378 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5379 (HOST_IPC): Remove.
5380 * config/sparc/nbsdelf.mt: Remove.
5381 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5382 sparc-nat.c compatiblity defines.
5383 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5384 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5385 * config/sparc/tm-nbsd64.h: New file.
5386 * config/sparc/tm-nbsdaout.h: Remove.
5387 * config/sparc/xm-nbsd.h: Remove.
5388
ef3cf062
JT
53892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5390
5391 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5392 * sparc-tdep.c: Include osabi.h.
5393 (gdbarch_tdep): Add osabi member.
5394 (_initialize_sparc_tdep): Use gdbarch_register.
5395 (sparc_gdbarch_init): Use generic OS ABI framework.
5396 (sparc_dump_tdep): New function.
5397
ee8ff470
KB
53982002-05-30 Kevin Buettner <kevinb@redhat.com>
5399
5400 * corefile.c (do_captured_read_memory_integer): Return non-zero
5401 result.
5402 (safe_read_memory_integer): Copy result of memory read when
5403 status is non-zero. Also, add comments.
5404
7b112f9c
JT
54052002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5406
5407 * Makefile.in (ppc_tdep_h): Define.
5408 (ppc-linux-nat.o)
5409 (ppc-linux-tdep.o)
5410 (rs6000-tdep.o): Use $(ppc_tdep_h).
5411 (ppc-sysv-tdep.o)
5412 (ppcnbsd-nat.o)
5413 (ppcnbsd-tdep.o): New dependency lists.
5414 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5415 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5416 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5417 (ppc_sysv_abi_broken_use_struct_convention)
5418 (ppc_sysv_abi_use_struct_convention)
5419 (ppc_sysv_abi_push_arguments): Move to...
5420 * ppc-sysv-tdep.c: ...here.
5421 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5422 * rs6000-tdep.c (process_note_abi_tag_sections)
5423 (get_elfosabi): Remove.
5424 (rs6000_gdbarch_init): Use generic OS ABI framework.
5425 (rs6000_dump_tdep): New function.
5426 (_initialize_rs6000_tdep): Use gdbarch_register.
5427 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5428 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5429 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5430 of ppc-linux-tdep.o.
5431 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5432 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5433 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5434 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5435 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5436 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5437
480dd42a
JB
54382002-05-29 Jim Blandy <jimb@redhat.com>
5439
5440 * macroscope.c (default_macro_scope): Put `void' in empty argument
5441 list.
5442
4182591f
AC
54432002-05-29 Andrew Cagney <ac131313@redhat.com>
5444
5445 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5446 * arch-utils.c: Include "sim-regno.h".
5447 * gdbarch.sh: Don't include "sim-regno.h".
5448 * gdbarch.h, gdbarch.c: Regenerate.
5449 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5450 here.
5451 * arch-utils.h (legacy_register_sim_regno): To here.
5452 * remote-sim.c (legacy_register_sim_regno): Move function from
5453 here.
5454 * arch-utils.c (legacy_register_sim_regno): To here.
5455
8238d0bf
AC
54562002-05-28 Andrew Cagney <ac131313@redhat.com>
5457
5458 * sim-regno.h: New file.
5459 * Makefile.in (sim_regno_h): Define.
5460 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5461 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5462 (legacy_register_sim_regno): New function.
5463 (one2one_register_sim_regno): New function.
5464 (gdbsim_fetch_register): Rewrite.
5465 (gdbsim_store_register): Only store a register when
5466 REGISTER_SIM_REGNO is valid.
5467 * d10v-tdep.c: Include "sim-regno.h".
5468 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5469 (d10v_ts3_register_sim_regno): Ditto.
5470 * gdbarch.sh: Include "sim-regno.h".
5471 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5472 * gdbarch.h, gdbarch.c: Regenerate.
5473 * arch-utils.h (default_register_sim_regno): Delete declaration.
5474 * arch-utils.c (default_register_sim_regno): Delete function.
5475
485721b1
JT
54762002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5477
5478 * ppcnbsd-nat.c: Rewrite.
5479 * ppcnbsd-tdep.c: New file.
5480 * ppcnbsd-tdep.h: New file.
5481 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5482 solib.o, and solib-svr4.o.
5483 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5484 nbsd-tdep.o, and corelow.o.
5485
697f244d
AC
54862002-05-28 Andrew Cagney <ac131313@redhat.com>
5487
5488 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5489 `tr' and `sed'. Mention that `broken' targets are not expected to
5490 build.
5491
f08caad1 54922002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5493
5494 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5495 Let PC point right after the prologue before looking up symbols.
5496
3139facc
MH
54972002-05-27 Martin M. Hunt <hunt@redhat.com>
5498
5499 * i386-tdep.c (i386_register_virtual_type): Return
5500 builtin_type_vec128i for SSE registers.
5501
5502 * gdbtypes.h (builtin_type_vec128i): Declare.
5503
5504 * gdbtypes.c (build_builtin_type_vec128i): New function.
5505 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5506 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5507 (build_gdbtypes): Initialize new builtin vector types.
5508 (_initialize_gdbtypes): Register new vector types with gdbarch.
5509
6e3ba3b8
JT
55102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5511
5512 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5513 since it has been multi-arch'd.
5514 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5515 Move Alpha and VAX multi-arch news entries to same section
5516 as other multi-arch news.
5517
93d5585d
JT
55182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5519
5520 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5521 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5522 static. Rename some register numbers to put them in ns32k-tdep
5523 private namespace.
5524 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5525 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5526 functions.
5527 (_initialize_ns32k_tdep): Use gdbarch_register.
5528 * ns32k-tdep.h: New file.
5529 * ns32knbsd-tdep.c: New file.
5530 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5531 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5532 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5533 REGISTER_BYTES, REGISTER_BYTE): Remove.
5534 * config/ns32k/tm-ns32k.h: New file.
5535 * config/ns32k/tm-umax.h: Remove.
5536
efb2c70e
JT
55372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5538
5539 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5540 ns32k_store_struct_return, ns32k_extract_return_value,
5541 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5542 functions.
5543 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5544 ns32k_saved_pc_after_call.
5545 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5546 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5547 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5548 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5549 ns32k_extract_struct_value_address.
5550
7bcc927b
JT
55512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5552
5553 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5554 ns32k_fix_call_dummy): New.
5555 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5556 ns32k_call_dummy_words.
5557 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5558 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5559 CALL_DUMMY_NARGS): Remove.
5560 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5561
78f9d765
JT
55622002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5563
5564 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5565 ns32k_frame_saved_pc, ns32k_frame_args_address,
5566 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5567 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5568 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5569 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5570 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5571 (BREAKPOINT): Remove..
5572 (FRAME_CHAIN): Define as ns32k_frame_chain.
5573 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5574 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5575 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5576 (FRAME_FIND_SAVED_REGS): Remove.
5577 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5578 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5579 (POP_FRAME): Define as ns32k_pop_frame.
5580
f2c762e0
JT
55812002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5582
5583 * ns32k-tdep.c (ns32k_register_byte_32082,
5584 ns32k_register_byte_32382, ns32k_register_raw_size,
5585 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5586 functions.
5587 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5588 ns32k_register_byte_32382.
5589 * config/ns32k/tm-umax.h: Update copyright years.
5590 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5591 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5592 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5593 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5594 (ns32k_get_enter_addr): Fix prototype.
5595
af137673
JT
55962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5597
5598 * ns32k-tdep.c: Update copyright years.
5599 (ns32k_register_name_32082): New function.
5600 (ns32k_register_name_32382): Ditto.
5601 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5602 (REGISTER_NAME): Define as ns32k_register_name_32382.
5603 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5604 (REGISTER_NAME): Define as ns32k_register_name_32082.
5605
a8bc7b56
JB
56062002-05-24 Jim Blandy <jimb@redhat.com>
5607
5608 * dwarf2read.c (free_line_header): Use xfree, not free.
5609
83a45910
JT
56102002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5611
5612 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5613 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5614
0db71247
AC
56152002-05-23 Andrew Cagney <ac131313@redhat.com>
5616
5617 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5618
b9e5e4dd
AC
56192002-05-23 Andrew Cagney <ac131313@redhat.com>
5620
5621 From Ross Alexander at NEC Europe:
5622 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5623
de530e84
MS
56242002-05-23 Michael Snyder <msnyder@redhat.com>
5625
5626 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5627 for input, rather than parse_and_eval_address.
5628
b91b96f4
AC
56292002-05-23 Andrew Cagney <ac131313@redhat.com>
5630
5631 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5632 * Makefile.in (sim_d10v_h): Update definition.
5633
8b279e7a
AC
56342002-05-24 Andrew Cagney <cagney@redhat.com>
5635
5636 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5637 change `2002-05-22 Michael Snyder' below.
5638 (d10v_push_arguments): Ditto.
5639 (d10v_extract_return_value): Ditto.
5640
0a3d0425
JB
56412002-05-23 Jim Blandy <jimb@redhat.com>
5642
5643 * macrotab.c (check_for_redefinition): Don't complain if the new
5644 definition is the same as the previous one. Take more arguments
5645 to allow the comparison.
5646 (macro_define_object, macro_define_function): Pass more arguments
5647 to check_for_redefinition.
5648
78eac43e
MS
56492002-05-22 Michael Snyder <msnyder@redhat.com>
5650
5651 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5652 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5653 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5654 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5655 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5656 Add a temp variable to save a call (and a memory read).
5657 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5658 if possible (so that PC_IN_CALL_DUMMY will work).
5659
9bc1edb8
CV
56602002-05-22 Corinna Vinschen <vinschen@redhat.com>
5661
5662 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5663
005ef3d2
ML
56642002-05-22 Michal Ludvig <mludvig@suse.cz>
5665
5666 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5667 fde->cie_ptr.
5668 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5669 (dwarf2_build_frame_info): Add offset to fde->initial_location
5670 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5671 (execute_stack_op): Change type of 'result' from ULONGEST to
5672 CORE_ADDR.
005ef3d2 5673
fcf4f891
JT
56742002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5675
5676 * config/alpha/tm-nbsd.h: Include solib.h.
5677
cfef91e4
JT
56782002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5679
5680 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5681 assumptions about the host's byte order.
5682
9964235a
JT
56832002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5684
5685 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5686 to dependency list.
5687 * alphanbsd-tdep.c: Include solib-svr4.h.
5688 * shnbsd-tdep.c: Ditto.
5689
9eeef8ef
JT
56902002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5691
5692 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5693 nbsd-tdep.h to dependency list.
5694 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5695 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5696 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5697 nbsdaout.mh and nbsdelf.mh consistently.
5698 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5699 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5700 nbsdaout.mt and nbsdelf.mh consistently.
5701 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5702 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5703 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5704 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5705 a.out shared library stuff from here...
5706 * config/nm-nbsdaout.h: ...to here.
5707 * config/tm-nbsd.h: Remove.
5708 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5709 * config/arm/nbsd.mh: Remove.
5710 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5711 nbsd-tdep.o.
5712 * config/arm/nbsdaout.mh: New file.
5713 * config/arm/nbsdelf.mh: New file.
5714 * config/arm/nm-nbsdaout.h: New file.
5715 * config/i386/nbsd.mh: Remove.
5716 * config/i386/nbsd.mt: Remove.
5717 * config/i386/nbsdaout.mh: New file.
5718 * config/i386/nbsdaout.mt: New file.
5719 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5720 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5721 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5722 i386_register_u_addr): Remove.
5723 * config/i386/nm-nbsdaout.h: New file.
5724 * config/i386/nm-nbsdelf.h: Remove.
5725 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5726 (USE_STRUCT_CONVENTION): Remove.
5727 * config/i386/tm-nbsdaout.h: New file.
5728 * config/i386/tm-nbsdelf.h: Remove.
5729 * config/m68k/nbsd.mh: Remove.
5730 * config/m68k/nbsd.mt: Remove.
5731 * config/m68k/nbsdaout.mh: New file.
5732 * config/m68k/nbsdaout.mt: New file.
5733 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5734 * config/m68k/nm-nbsdaout.h: New file.
5735 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5736 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5737 * config/ns32k/nbsd.mh: Remove.
5738 * config/ns32k/nbsd.mt: Remove.
5739 * config/ns32k/nbsdaout.mh: New file.
5740 * config/ns32k/nbsdaout.mt: New file.
5741 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5742 * config/ns32k/nm-nbsdaout.h: New file.
5743 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5744 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5745 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5746 (SVR4_SHARED_LIBS): Remove.
5747 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5748 * config/sparc/nbsd.mh: Remove.
5749 * config/sparc/nbsd.mt: Remove.
5750 * config/sparc/nbsdaout.mh: New file.
5751 * config/sparc/nbsdaout.mt: New file.
5752 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5753 * config/sparc/nbsdelf.mt: New file.
5754 * config/sparc/nm-nbsdaout.h: New file.
5755 * config/sparc/nm-nbsdelf.h: Remove.
5756 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5757 * config/sparc/tm-nbsdaout.h: New file.
5758
257ce470
JT
57592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5760
5761 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5762 mipsnbsd-tdep.c
5763 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5764
76a6d5fe
JT
57652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5766
5767 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5768 shnbsd-nat.c.
5769 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5770
45888261
JT
57712002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5772
5773 * NEWS: Note new MIPS NetBSD native configuration.
5774 * configure.host (mips*-*-netbsd*): New host.
5775 * configure.tgt (mips*-*-netbsd*): New target.
5776 * mipsnbsd-nat.c: New file.
5777 * mipsnbsd-tdep.c: New file.
5778 * mipsnbsd-tdep.h: New file.
5779 * config/mips/nbsd.mh: New file.
5780 * config/mips/nbsd.mt: New file.
5781 * config/mips/nm-nbsd.h: New file.
5782 * config/mips/tm-nbsd.h: New file.
5783
70f80edf
JT
57842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5785
5786 * Makefile.in (SFILES): Add osabi.c.
5787 (COMMON_OBS): Add osabi.o.
5788 (osabi.o): New dependency list.
5789 * osabi.c: New file.
5790 * osabi.h: New file.
5791 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5792
5793 * Makefile.in (alpha_tdep_h): Define and use instead of
5794 alpha-tdep.h.
5795 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5796 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5797 Remove.
5798 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5799 * alpha-tdep.h: Include osabi.h.
5800 (alpha_abi): Remove.
5801 (gdbarch_tdep): Use generic OS ABI framework.
5802 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5803 gdbarch_register_osabi.
5804 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5805 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5806 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5807
5808 * Makefile.in (sh_tdep_h): Add osabi.h.
5809 * sh-tdep.h (sh_osabi): Remove.
5810 (gdbarch_tdep): Use generic OS ABI framework.
5811 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5812 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5813 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5814 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5815
5816 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5817 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5818 gdbarch_register_osabi.
5819 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5820 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5821 (get_elfosabi): Rename to...
5822 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5823 ABI framework support routines.
5824 (arm_gdbarch_init): Use generic OS ABI framework.
5825 (arm_dump_tdep): Likewise.
5826 (_initialize_arm_tdep): Likewise.
5827 * arm-tdep.h: Include osabi.h.
5828 (arm_abi): Remove.
5829 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5830 osabi member.
5831 (arm_gdbarch_register_os_abi): Remove prototype.
5832 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5833 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5834
5835 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5836 * mips-tdep.c: Include osabi.h.
5837 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5838 OS ABI framework.
5839
d194345b
KH
58402002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5841
5842 * h8300-tdep.c: Fix formatting.
5843
70c6b0d1
EZ
58442002-05-20 Elena Zannoni <ezannoni@redhat.com>
5845
5846 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5847 printing vector registers.
5848
165b8e33
AC
58492002-05-19 Andrew Cagney <ac131313@redhat.com>
5850
5851 From Fernando Nasser:
5852 * remote.c (remote_async_open_1): Re-throw the exception when the
5853 connection fails.
5854 (remote_cisco_open): Ditto.
5855 (remote_open_1): Ditto.
5856
36918e70
AC
58572002-05-19 Andrew Cagney <ac131313@redhat.com>
5858
5859 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5860 (remote_start_remote): Add uiout parameter. Pass through to
5861 remote_start_remote_dummy.
5862 (remote_open_1): Use catch_exception instead of catch_errors.
5863 (remote_async_open_1): Ditto.
5864 (remote_cisco_open): Ditto.
5865
ae44c0c4
AC
58662002-05-19 Andrew Cagney <ac131313@redhat.com>
5867
5868 * remote.c (remote_start_remote): Replace PTR with void pointer.
5869 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5870 static.
5871
8efe637d
AC
58722002-05-18 Andrew Cagney <ac131313@redhat.com>
5873
5874 * gdb_indent.sh: Allow the script to be run in the sim directory.
5875
2f1b5984
MK
58762002-05-18 Mark Kettenis <kettenis@gnu.org>
5877
f0f625e2
MK
5878 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5879 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5880
2f1b5984
MK
5881 * corelow.c (core_open): Only call set_gdbarch_from_file if
5882 exec_bfd is NULL.
5883
fc974602
AV
58842002-05-17 Andrey Volkov <avolkov@transas.com>
5885
5886 * h8300-tdep.c: Add support of EXR register
5887 * config/h8300/tm-h8300.h: Ditto.
5888
906709f4
AV
58892002-05-17 Andrey Volkov <avolkov@transas.com>
5890
5891 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5892
6e591d68
AV
58932002-05-17 Andrey Volkov <avolkov@transas.com>
5894
5895 * h8300-tdep.c: Change literal regnums to REGNO.
5896
84f0252a
JB
58972002-05-17 Jim Blandy <jimb@redhat.com>
5898
e0e9281e
JB
5899 * NEWS: Note addition of macro support.
5900
84f0252a
JB
5901 Expand preprocessor macros in C expressions.
5902 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5903 (scan_macro_expansion, scanning_macro_expansion,
5904 finished_macro_expansion): New function declarations.
5905 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5906 variable declarations.
5907 * parser-defs.h (expression_context_pc): New declaration.
5908 * parse.c (expression_context_pc): New variable.
5909 (parse_exp_1): Set expression_context_pc, as well as
5910 expression_context_block.
5911 * c-exp.y (yylex): If we're not already reading the result of a
5912 macro expansion, try to macro-expand the next token. When we're
5913 done scanning a macro expansion, switch back to the mainline text.
5914 Commas and `if's in a macro's expansion don't terminate the input.
5915 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5916 (macro_original_text, macro_expanded_text,
5917 expression_macro_lookup_func, expression_macro_lookup_baton): New
5918 variables.
5919 (scan_macro_expansion, scanning_macro_expansion,
5920 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5921 c_preprocess_and_parse): New functions.
5922 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5923 c_preprocess_and_parse, instead of c_parse.
5924 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5925 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5926
1c509ca8
JR
5927Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5928
5929 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5930 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5931 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5932
2250ee0c
CV
59332002-05-17 Corinna Vinschen <vinschen@redhat.com>
5934
5935 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5936
ab3b8126
JT
59372002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5938
5939 * Makefile.in (sh_tdep_h): Define and use.
5940 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5941 register enum): Move to...
5942 * * sh-tdep.h: ...here.
5943 * sh-tdep.c: Include sh-tdep.h.
5944 * sh3-rom.c: Likewise.
5945 * shnbsd-tdep.c: Likewise.
5946
ed9d4749
MS
59472002-05-16 Michael Snyder <msnyder@redhat.com>
5948
5949 * arm-tdep.c: Spelling fix in comment.
5950
2e276125
JB
59512002-05-16 Jim Blandy <jimb@redhat.com>
5952
6821892e
JB
5953 Add commands for manually expanding macros and showing their
5954 definitions.
5955 * macrocmd.c, macroscope.c, macroscope.h: New files.
5956 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5957 (macroscope_h): New variable.
5958 (HFILES_NO_SRCDIR): Add macroscope.h.
5959 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5960 (macroscope.o, macrocmd.o): New rules.
5961
2e276125
JB
5962 Teach the Dwarf 2 reader to read macro information.
5963 * dwarf2read.c: #include "macrotab.h".
5964 (dwarf_macinfo_buffer): New variable.
5965 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5966 dwarf_macinfo_size.
5967 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5968 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5969 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5970 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5971 dwarf2_macro_spaces_in_definition): New complaints.
5972 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5973 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5974 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5975 the partial symbol table.
5976 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5977 from what's recorded in the partial symbol table.
5978 (read_file_scope): If the compilation unit has a
5979 `DW_AT_macro_info' attribute, read its macro information.
5980 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5981
2f53fe6c
DJ
59822002-05-16 Daniel Jacobowitz <drow@mvista.com>
5983
5984 Fix PR gdb/546
5985 * ser-tcp.c: Don't include <netinet/udp.h>.
5986
2be99286
SC
59872002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5988
5989 * MAINTAINERS: Update my email address.
5990
c9af212b 59912002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5992
5993 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5994 include file of the same name.
5995
bf5f1a52
CV
59962002-05-16 Corinna Vinschen <vinschen@redhat.com>
5997
5998 * configure.tgt: Mark v850 as multi-arched.
5999 * config/v850/tm-v850.h: Remove file.
6000 * config/v850/v850.mt: Eliminate TM_FILE.
6001
435e042a
CV
60022002-05-16 Corinna Vinschen <vinschen@redhat.com>
6003
6004 * v850-tdep.c: Full multi-arch.
6005 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6006 Define GDB_MULTI_ARCH to 2.
6007
9819c6c8
PM
60082002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6009
6010 * p-exp.y (current_type): New static variable.
6011 Carries the type of the expression at the position that is parsed.
6012 (push_current_type, pop_current_type): Two new functions. Used
6013 to store/restore current_type in expression on specific tokens.
c9af212b
RE
6014 (search_field): New static variable. Set to one after parsing a point
6015 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
6016 (FIELDNAME): New token. After a point only a token belonging to
6017 current_type type definition is allowed.
6018 (all over token rules): reset and change current_type according
6019 to rules.
6020 (exp '[' rule): insert implicit array index field if
6021 exp is a pascal string type.
6022
3a06899a
CV
60232002-05-16 Corinna Vinschen <vinschen@redhat.com>
6024
6025 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6026 frame info. Use frame_info's saved_regs instead of matching member
6027 in extra_frame_info throughout.
6028 (v850_frame_init_saved_regs): New function.
6029 (v850_init_extra_frame_info): Move most functionality into
6030 v850_frame_init_saved_regs().
6031 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6032 (v850_frame_find_saved_regs): Remove declaration.
6033 (FRAME_FIND_SAVED_REGS): Remove definition.
6034 (v850_frame_init_saved_regs): Add declaration.
6035 (FRAME_INIT_SAVED_REGS): Add definition.
6036
6ed14b0e
CV
60372002-05-16 Corinna Vinschen <vinschen@redhat.com>
6038
6039 * v850-tdep.c: Begin multi-arch'ing v850.
6040 (v850_target_architecture_hook): Remove function.
6041 (v850_gdbarch_init): New function. Add code previously in
6042 v850_target_architecture_hook().
6043 (_initialize_v850_tdep): Don't set target_architecture_hook.
6044 Call register_gdbarch_init() instead.
6045
42725910
DJ
60462002-05-16 Daniel Jacobowitz <drow@mvista.com>
6047
6048 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6049 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6050 (fixup_class_method_type): Likewise.
6051
99d9066e
JB
60522002-05-15 Jim Blandy <jimb@redhat.com>
6053
6054 Add macro structures to GDB's symbol tables. Nobody puts anything
6055 in them yet.
6056 * symtab.h (struct symtab): New member: `macro_table'.
6057 * buildsym.h (pending_macros): New global variable.
6058 * buildsym.c: #include "macrotab.h".
6059 (buildsym_init): Initialize `pending_macros'.
6060 (end_symtab): If we found macro information while reading a CU's
6061 debugging info, do build a symtab structure for it. Make the
6062 symtab point to the macro information, and clear the
6063 `pending_macros' pointer which held it while we were reading the
6064 debug info.
6065 (really_free_pendings): Free any pending macro table.
6066 * objfiles.h (struct objfile): New member: `macro_cache'.
6067 * objfiles.c (allocate_objfile): Set allocate and free functions
6068 for the macro cache's objstack.
6069 (free_objfile): Empty the macro cache's obstack.
6070 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6071 set new allocate and free functions for it.
6072 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6073 free functions for the macro cache's objstack. (Why is this
6074 function building its own objfile?)
6075 * symmisc.c (print_objfile_statistics): Print statistics on the
6076 macro bcache.
6077 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6078
c899585b
RE
60792002-05-15 Richard Earnshaw <rearnsha@arm.com>
6080
6081 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6082 (REGISTER_U_ADDR): Delete definition.
6083 (arm_register_u_addr): Delete declaration.
6084
a6cdd8c5
RE
60852002-05-15 Richard Earnshaw <rearnsha@arm.com>
6086
6087 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6088 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6089
c97dcfc7
AC
60902002-05-14 Andrew Cagney <ac131313@redhat.com>
6091
6092 * regcache.c (register_valid): Revise comments refering to "Not
6093 available" and "unavailable".
6094 * frame.c (frame_register_read): Ditto.
6095 * findvar.c (value_of_register): Ditto.
6096
93021b7d
AC
60972002-05-15 Andrew Cagney <cagney@redhat.com>
6098
6099 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6100 (remote-sim.o): Update dependencies.
6101 (d10v-tdep.o): Specify dependencies.
6102 (sim_d10v_h): Define.
6103
a86bc61c
JB
61042002-05-14 Jim Blandy <jimb@redhat.com>
6105
6106 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6107 * macrotab.c (macro_lookup_inclusion, find_definition,
6108 new_macro_table): Same.
6109
6110 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6111 not `! strcmp ()'. This is a dubious improvement.
6112 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6113
6114 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6115 although it's not necessary, to avoid a warning.
6116
2fdde8f8
DJ
61172002-05-14 Daniel Jacobowitz <drow@mvista.com>
6118
6119 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6120 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6121 TYPE_INSTANCE_FLAGS.
6122 (struct main_type): New.
6123 (struct type): Move most members to struct main_type. Change
6124 cv_type and as_type to new type_chain member. Add instance_flags.
6125 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6126 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6127 (finish_cv_type): Remove prototype.
6128 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6129 Set TYPE_CHAIN.
6130 (alloc_type_instance): New function.
6131 (smash_type): New function.
6132 (make_pointer_type, make_reference_type, make_function_type)
6133 (smash_to_member_type, smash_to_method_type): Call smash_type.
6134 (make_qualified_type): New function.
6135 (make_type_with_address_space): Call make_qualified_type.
6136 (make_cv_type): Likewise.
6137 (finish_cv_type): Remove unnecessary function.
6138 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6139 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6140 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6141 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6142 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6143 * hpread.c (hpread_read_struct_type): Likewise.
6144 * stabsread.c (read_struct_type): Likewise.
6145
843fedf4
EZ
61462002-05-14 Elena Zannoni <ezannoni@redhat.com>
6147
6148 * configure.tgt: Add a catch all sh* target, for cases like
6149 sh[2,3,4]-elf and sh-hms.
6150
05a6c72c
KS
61512002-05-14 Keith Seitz <keiths@redhat.com>
6152
6153 * event-loop.c (create_file_handler): Don't do anything but
6154 update data when we are given a fd which we are already
6155 monitoring.
6156
5d085aaf
ML
61572002-05-14 Michal Ludvig <mludvig@suse.cz>
6158
6159 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6160 (update_context): Use __func__ in warnings.
6161
9db8d71f
DJ
61622002-05-14 Daniel Jacobowitz <drow@mvista.com>
6163
6164 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6165 and tcp_close to net_open and net_close.
6166 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6167 using UDP if requested. Don't try to disable Nagle on UDP
6168 sockets.
6169 * remote.c (remote_serial_open): New function. Warn about UDP.
6170 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6171
5dbc6baa
EZ
61722002-05-13 Elena Zannoni <ezannoni@redhat.com>
6173
6174 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6175
cc3023f7
EZ
61762002-05-13 Elena Zannoni <ezannoni@redhat.com>
6177
6178 * configure.tgt: Remove sh-hms target.
6179 * MAINTAINERS: Don't list sh-hms as a separate target.
6180
ec2bcbe7
JB
61812002-05-13 Jim Blandy <jimb@redhat.com>
6182
6183 Add first preprocessor macro-expansion files.
6184 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6185 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6186 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6187 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6188 (COMMON_OBS): Add macrotab.o, macroexp.o.
6189 (macroexp.o, macrotab.o): New rules.
6190
6d531722
AC
61912002-05-13 Andrew Cagney <ac131313@redhat.com>
6192
6193 * config/m88k/tm-m88k.h: Update copyright.
6194 (m88k_target_write_pc): Declare
6195 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6196 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6197 (SHIFT_INST_REGS): Update definition.
6198 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6199 using old definition of TARGET_WRITE_PC.
6200 * regcache.c (generic_target_write_pc): Delete code handling
6201 NNPC_REGNUM.
6202 * gdbarch.sh (NNPC_REGNUM): Delete.
6203 * gdbarch.h, gdbarch.c: Regenerate.
6204
3e3f2739
RE
62052002-05-13 Richard Earnshaw <rearnsha@arm.com>
6206
6207 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6208 builtin reg number.
6209
0004e5a2
DJ
62102002-05-13 Daniel Jacobowitz <drow@mvista.com>
6211
6212 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6213 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6214 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6215 access macros.
6216 * c-typeprint.c (cp_type_print_method_args): Likewise.
6217 (c_type_print_args): Likewise.
6218 * d10v-tdep.c (d10v_push_arguments): Likewise.
6219 (d10v_extract_return_value): Likewise.
6220 * expprint.c (print_subexp): Likewise.
6221 * gdbtypes.c (lookup_primitive_typename): Likewise.
6222 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6223 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6224 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6225 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6226 (TYPE_VECTOR): Likewise.
6227 * hpread.c (hpread_read_struct_type)
6228 (fix_static_member_physnames, fixup_class_method_type)
6229 (hpread_type_lookup): Likewise.
6230 * mdebugread.c (parse_symbol, parse_type): Likewise.
6231 * p-lang.c (is_pascal_string_type): Likewise.
6232 * valops.c (hand_function_call): Likewise.
6233 * x86-64-tdep.c (classify_argument): Likewise.
6234
6235 * hpread.c (hpread_read_function_type)
6236 (hpread_read_doc_function_type): Call replace_type.
6237 * dstread.c (create_new_type): Delete.
6238 (decode_dst_structure, process_dst_function): Call alloc_type.
6239 Use type access macros.
6240
dff95cc7
MK
62412002-05-12 Mark Kettenis <kettenis@gnu.org>
6242
6243 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6244 the're not supported by the current architecture.
6245 (i387_fill_fxsave): Likewise.
6246
bbcd32ad
FF
62472002-05-12 Fred Fish <fnf@redhat.com>
6248
6249 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6250 sect_index_xxx members to index the first slot in section_offsets
6251 if all of the section_offsets are zero.
6252
89cf4787
MK
62532002-05-12 Mark Kettenis <kettenis@gnu.org>
6254
6255 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6256 checked in with last change.
6257
1f77ffc5
MK
62582002-05-12 Mark Kettenis <kettenis@gnu.org>
6259
6260 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6261 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6262 config.sub.
6263
89b8b4a9
DJ
62642002-05-12 Daniel Jacobowitz <drow@mvista.com>
6265
6266 * Makefile.in: Update dependencies.
6267
14a5e767
AC
62682002-05-11 Andrew Cagney <ac131313@redhat.com>
6269
6270 * language.c (local_hex_string_custom): Simplify. Do not depend
6271 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6272
6273 * memattr.c (mem_info_command): Replace calls to
6274 longest_local_hex_string and longest_local_hex_string_custom.
6275 * buildsym.c (make_blockvector): Ditto.
6276 * solib.c (info_sharedlibrary_command): Ditto.
6277 * tracepoint.c (tracepoints_info): Ditto.
6278 * symtab.c (print_msymbol_info): Ditto.
6279
6280 * language.c (local_hex_string): Delete.
6281 (local_hex_string_custom): Delete.
6282 (longest_local_hex_string): Rename to local_hex_string.
6283 (longest_local_hex_string_custom): Rename to
6284 local_hex_string_custom.
6285 * language.h (local_hex_string): Change parameter type to LONGEST.
6286 (local_hex_string_custom): Ditto.
6287 (longest_local_hex_string): Delete declaration.
6288 (longest_local_hex_string_custom): Ditto.
6289
6290 * solib.c: Update copyright.
6291 * memattr.c: Update copyright.
6292
13d01224
AC
62932002-05-11 Andrew Cagney <ac131313@redhat.com>
6294
6295 * arch-utils.h (legacy_register_to_value): Declare.
6296 (legacy_value_to_register): Declare.
6297 (legacy_convert_register_p): Declare.
6298 * arch-utils.c (legacy_register_to_value): New function.
6299 (legacy_value_to_register): New function.
6300 (legacy_convert_register_p): New function.
6301
6302 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6303 (VALUE_TO_REGISTER): Define.
6304 (CONVERT_REGISTER_P): Define.
6305 * gdbarch.h, gdbarch.c: Regenerate.
6306
6307 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6308 VALUE_TO_REGISTER.
6309 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6310 CONVERT_REGISTER_P.
6311
4a1970e4
DJ
63122005-05-11 Daniel Jacobowitz <drow@mvista.com>
6313 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6314
6315 * Makefile.in: Update dependencies for valops.c.
6316 * valops.c: Include "gdb_assert.h".
6317 (typecmp): Skip THIS parameter to methods.
6318 (find_method_list): Remove static_memfuncp argument,
6319 update callers. Check for stub methods.
6320 (find_value_oload_method_list): Don't set *static_memfuncp.
6321 (find_overload_match): Don't check for stub methods. Assert
6322 that methods are not stubbed. Handle static methods.
6323 (value_find_oload_method_list): Remove static_memfuncp argument.
6324 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6325 to the argument list for static stub methods.
6326 * value.h (value_find_oload_method_list): Update prototype.
6327
b2e75d78
AC
63282002-05-11 Andrew Cagney <ac131313@redhat.com>
6329
6330 * arch-utils.h (generic_register_size): Declare.
6331 (generic_register_raw_size, generic_register_virtual_size): Delete
6332 declarations.
6333 * arch-utils.c (generic_register_raw_size): Delete.
6334 (generic_register_size): New function.
6335 (generic_register_virtual_size): Delete.
6336
6337 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6338 default generic_register_size.
6339 * gdbarch.h, gdbarch.c: Re-generate.
6340
6341 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6342 register_virtual_size.
6343 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6344 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6345
451fbdda
AC
63462002-05-11 Andrew Cagney <ac131313@redhat.com>
6347
6348 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6349 * gdbarch.h, gdbarch.c: Regenerate.
6350 * gnu-v3-abi.c: Update copyright.
6351 (vtable_address_point_offset): Update.
6352 (gnuv3_rtti_type): Update.
6353 (gnuv3_baseclass_offset): Update.
6354 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6355 (init_fetch_link_map_offsets): Update.
6356 * remote.c (get_remote_state): Update.
6357
6d2f5cea
DJ
63582002-05-11 Daniel Jacobowitz <drow@mvista.com>
6359
6360 * TODO: Remove value_headof/value_from_vtable_info comment.
6361 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6362 * values.c (value_headof, value_from_vtable_info): Delete.
6363 * value.h (value_from_vtable_info): Delete prototype.
6364
d2324da4
AC
63652002-05-11 Andrew Cagney <ac131313@redhat.com>
6366
6367 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6368 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6369 $(gdb_regex_h).
6370 (gdb_assert_h): Define.
6371 (gdb_wait_h): Define.
6372 (gdb_regex_h): Define.
6373
5c717440
DJ
63742002-05-11 Daniel Jacobowitz <drow@mvista.com>
6375
6376 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6377 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6378
6c7861b3
JT
63792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6380
6381 * nbsd-tdep.c: Fix comment.
6382
ea5bc2a6
JT
63832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6384
6385 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6386 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6387 (nbsd-tdep.o): New dependency list.
6388 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6389 nbsd-tdep.h.
6390 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6391 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6392 * nbsd-tdep.c: New file.
6393 * nbsd-tdep.h: New file.
6394 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6395 nbsd-tdep.h.
6396 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6397 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6398 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6399 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6400
b28da865
JT
64012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6402
6403 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6404 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6405 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6406 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6407 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6408 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6409
4b8ff1fa
JT
64102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6411
6412 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6413 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6414 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6415 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6416 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6417 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6418 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6419
dfe6eb1f
JT
64202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6421
6422 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6423 fetch_elfcore_registers to...
6424 * i386nbsd-tdep.c: ...here.
6425 (i386nbsd_use_struct_convention): Rename to...
6426 (i386nbsd_aout_use_struct_convention): ...this.
6427 (i386nbsd_supply_reg): New function.
6428 (i386nbsd_fill_reg): New function.
6429 (fetch_core_registers): Use i386nbsd_supply_reg.
6430 (fetch_elfcore_registers): Likewise.
6431 (_initialize_i386nbsd_tdep): New function.
6432 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6433 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6434 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6435 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6436 (i386nbsd_aout_use_struct_convention): ...this.
6437
20cb8cda
JT
64382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6439
6440 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6441 (store_inferior_registers): Use shnbsd_fill_reg.
6442 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6443 sh_nbsd_supply_register): Collapse into...
6444 (shnbsd_supply_reg): ...this.
6445 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6446 (shnbsd_fill_reg): ...this.
6447 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6448 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6449 (fetch_core_registers): Use shnbsd_supply_reg.
6450 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6451 (sh_nbsd_core_fns): Rename to...
6452 (shnbsd_core_fns): ...this.
6453 (sh_nbsd_elfcore_fns): Rename to...
6454 (shnbsd_elfcore_fns): ...this.
6455 (sh_nbsd_init_abi): Rename to...
6456 (shnbsd_init_abi): ...this.
6457 (_initialize_sh_nbsd_tdep): Rename to...
6458 (_initialize_shnbsd_tdep): ...this.
6459 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6460 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6461 sh_nbsd_fill_register): Remove prototypes.
6462 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6463
e750d25e
JT
64642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6465
6466 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6467 (i387-nat.o): Delete dependency list.
6468 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6469 (x86-64-linux-nat.o): Likewise.
6470 * i387-nat.c: Delete file, moving contents to...
6471 * i387-tdep.c: ...here.
6472 * i387-nat.h: Rename...
6473 * i387-tdep.h: ...to this.
6474 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6475 * i386-linux-nat.c: Likewise.
6476 * i386bsd-nat.c: Likewise.
6477 * i386gnu-nat.c: Likewise.
6478 * i386nbsd-nat.c: Likewise.
6479 * i386v4-nat.c: Likewise.
6480 * x86-64-linux-nat.c: Likewise.
6481 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6482 * config/i386/go32.mh (NATDEPFILES): Likewise.
6483 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6484 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6485 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6486 * config/i386/linux.mh (NATDEPFILES): Likewise.
6487 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6488 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6489 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6490 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6491
1aee598a
JT
64922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6493
6494 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6495 (alphanbsd-nat.o): Remove dependency list.
6496 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6497 * alphanbsd-nat.c: Delete. Contents moved to...
6498 * alphanbsd-tdep.c: ...here.
6499 (_initialize_alphanbsd_tdep): Register core functions.
6500 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6501
12bcb0fe
JT
65022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6503
6504 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6505 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6506 (alphanbsd-nat.o): Likewise.
6507 (alphabsd-tdep.o): New dependency list.
6508 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6509 (fill_gregset): Use alphabsd_fill_reg.
6510 (supply_fpregset): Use alphabsd_supply_fpreg.
6511 (fill_fpregset): Use alphabsd_fill_fpreg.
6512 (fetch_inferior_registers): Use struct reg and struct fpreg
6513 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6514 and alphabsd_supply_fpreg.
6515 (store_inferior_registers): Use struct reg and struct fpreg
6516 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6517 and alphabsd_fill_fpreg.
6518 * alphabsd-tdep.c: New file.
6519 * alphabsd-tdep.h: New file.
6520 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6521 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6522 alphabsd_supply_fpreg.
6523 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6524 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6525
361d1df0
EC
65262002-05-11 Eric Christopher <echristo@redhat.com>
6527
6528 * mips-tdep.c (mips_double_register_type): Fix thinko.
6529 (mips_single_register_type): Ditto.
6530 * MAINTAINERS: Add self.
6531
92dd7cee
MK
65322002-05-11 Mark Kettenis <kettenis@gnu.org>
6533
6534 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6535 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6536 right thing on architectures with different endianness and/or
6537 integer sizes.
6538
e27da16d
JT
65392002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6540
6541 From Christian Limpach <chris@Pin.LU>
6542 * configure.in: Change sed expression which comments out
6543 NATDEPFILES to also comment out continuation lines.
6544 * configure: Regenerate.
6545
ddde02bd
EZ
65462002-05-10 Elena Zannoni <ezannoni@redhat.com>
6547
6548 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6549 big patch.
6550
1c922164
EZ
65512002-05-10 Elena Zannoni <ezannoni@redhat.com>
6552
6553 * sh-tdep.c: Include correct file.
6554
283150cd
EZ
65552002-05-10 Elena Zannoni <ezannoni@redhat.com>
6556
6557 New support for sh64-elf (sh5) target.
6558
6559 * configure.tgt: For sh64-elf target, default to sh-elf.
6560
6561 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6562 (struct gdbarch_tdep): Add new fields for new registers and ABI
6563 info.
361d1df0 6564
283150cd
EZ
6565 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6566 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6567 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6568 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6569 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6570 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6571 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6572 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6573 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6574 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6575 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6576 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6577 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6578 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6579 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6580 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6581 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6582 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6583 sign_extend, sh64_nofp_frame_init_saved_regs,
6584 sh64_init_extra_frame_info, sh64_get_saved_register,
6585 sh64_extract_struct_value_address, sh64_pop_frame,
6586 sh64_push_arguments, sh64_extract_return_value,
6587 sh64_store_return_value, sh64_show_media_regs,
6588 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6589 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6590 sh_sh64_register_virtual_type,
6591 sh_sh64_register_convert_to_virtual,
6592 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6593 sh64_register_read, sh64_pseudo_register_write,
6594 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6595 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6596 sh64_do_pseudo_register, sh_compact_do_registers_info,
6597 sh64_do_registers_info, sh_gdbarch_init): New functions.
6598
3117ed25
EZ
65992002-05-10 Elena Zannoni <ezannoni@redhat.com>
6600
6601 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6602
2654e6d4
DJ
66032002-05-10 Daniel Jacobowitz <drow@mvista.com>
6604
6605 * linespec.c (decode_line_1): Check for a double quote after
6606 a filename correctly.
6607
9ab3e532
JB
66082002-05-10 Jim Blandy <jimb@redhat.com>
6609
6610 Properly track the size of the current objfile's .debug_line section.
6611 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6612 (DWARF_LINE_SIZE): New macro.
6613 (dwarf2_build_psymtabs_hard): Record the line section's size in
6614 the partial symbol table.
6615 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6616 symbol table.
6617
126fa72d
PS
66182002-05-10 Petr Sorfa <petrs@caldera.com>
6619
6620 * ia64-tdep.c: Handle breakpoints on L instruction type
6621 in MLX instruction bundle by moving the breakpoint to
6622 the third slot (X instruction type) as L holds only data.
6623
1f077a3e
KB
66242002-05-10 Kevin Buettner <kevinb@redhat.com>
6625
6626 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6627 (process_one_symbol): Complain about discarding local symbols
6628 due to a misplaced N_LBRAC entry.
6629
8120c9d5 66302002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6631
6632 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6633 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6634 decrease the depth we are at, in the case of templates.
361d1df0 6635
67b2c998
DJ
66362002-05-09 Daniel Jacobowitz <drow@mvista.com>
6637
6638 * mips-tdep.c (mips_float_register_type): New function.
6639 (mips_double_register_type): New function.
6640 (mips_print_register): Use them.
6641 (do_fp_register_row): Likewise.
6642
fd326606
DJ
66432002-05-09 Daniel Jacobowitz <drow@mvista.com>
6644
6609d9af 6645 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6646 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6647 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6648
bef35864
MS
66492002-05-09 Michael Snyder <msnyder@redhat.com>
6650
6651 * remote-rdp.c (remote_rdp_can_run): Remove.
6652
c55a3f73
TT
66532002-05-09 Tom Tromey <tromey@redhat.com>
6654
6655 * jv-valprint.c (java_val_print): Handle `char' as a special case
6656 of TYPE_CODE_INT.
6657
b8d5e71d
MS
66582002-05-09 Michael Snyder <msnyder@redhat.com>
6659
6660 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6661 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6662 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6663 str r(0123),[sp,#nn].
361d1df0 6664 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6665 order-independent by placing it in a loop.
6666
e2cd42dd
MS
66672002-05-06 Michael Snyder <msnyder@redhat.com>
6668
6669 * stabsread.c (read_type): Add recognition for new attribute:
6670 "@V;" means that an array type is actually a vector.
6671 This is analogous to the vector flag that's been added to dwarf2.
6672
3ce1502b
MK
66732002-05-09 Mark Kettenis <kettenis@gnu.org>
6674
6675 * i386-tdep.h (i386_abi): New enum.
6676 (struct gdbarch_tdep): Replace os_ident member with abi.
6677 (i386_gdbarch_register_os_abi): New prototype.
6678 * i386-tdep.c (i386_abi_names): New array.
6679 (process_note_abi_tag_sections): Removed.
6680 (process_note_sections): New function.
6681 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6682 (struct i386_abi_handler): New struct.
6683 (i386_abi_handler_list): New variable.
6684 (i386_gdbarch_register_os_abi): New function.
6685 (i386_gdbarch_init): Adapt for the changes given above.
6686
084c156a
DJ
66872002-05-08 Daniel Jacobowitz <drow@mvista.com>
6688
6689 * gregset.h: Say "GNU/Linux".
6690
6599f021
EZ
66912002-05-08 Elena Zannoni <ezannoni@redhat.com>
6692
6693 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6694 (build_gdbtypes): Build builtin_type_v2_float.
6695 (_initialize_gdbtypes): Register new builtin type.
6696
40af4b0c
AC
66972002-05-08 Andrew Cagney <ac131313@redhat.com>
6698
6699 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6700 (clear_gdbarch_swap): New function.
6701 (initialize_non_multiarch): Call.
6702 (gdbarch_update_p): Before calling init(), swap out and clear the
6703 existing architecture.
6704 * gdbarch.c: Regenerate.
6705
4fe84f46
JT
67062002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6707
6708 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6709 alphanbsd-tdep.c.
6710
4015edd1
JT
67112002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * sh-nbsd-nat.c: Rename to...
6714 * shnbsd-nat.c: ...this.
6715 * sh-nbsd-tdep.c: Rename to...
6716 * shnbsd-tdep.c: ...this.
6717 * sh-nbsd-tdep.h: Rename to...
6718 * shnbsd-tdep.h: ...this.
6719 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6720 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6721
0e2bd219
RE
67222002-05-08 Richard Earnshaw <rearnsha@arm.com>
6723
6724 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6725 concatenation for command help messages.
6726
13a38d45
JT
67272002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6728
6729 * NEWS: Note new sh*-*-netbsdelf* configuration.
6730 * configure.host: Set gdb_host_cpu to sh for all sh*.
6731 (sh*-*-netbsdelf*): New host.
6732 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6733 (sh*-*-netbsdelf*): New target.
6734 * sh-nbsd-nat.c: New file.
6735 * sh-nbsd-tdep.c: New file.
6736 * sh-nbsd-tdep.h: New file.
6737 * config/sh/nbsd.mh: New file.
6738 * config/sh/nbsd.mt: New file.
6739 * config/sh/nm-nbsd.h: New file.
6740 * config/sh/tm-nbsd.h: New file.
6741
d658f924
JT
67422002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6743
6744 * sh-tdep.c (sh_osabi_names): Declare.
6745 (process_note_abi_tag_sections): New function.
6746 (get_elfosabi): Ditto.
6747 (sh_gdbarch_register_os_abi): Ditto.
6748 (sh_dump_tdep): Ditto.
6749 _initialize_sh_tdep): Use gdbarch_register to register
6750 sh_gdbarch_init and sh_dump_tdep.
6751 * config/sh/tm-sh.h (sh_osabi): Declare.
6752 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6753
848cfffb
AC
67542002-05-07 Andrew Cagney <ac131313@redhat.com>
6755
6756 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6757 (thumb_scan_prologue): Ditto.
6758 (arm_find_callers_reg): Ditto.
6759 (arm_frame_chain): Ditto.
6760 (arm_init_extra_frame_info): Ditto.
6761 (arm_frame_saved_pc): Ditto.
6762 (arm_pop_frame): Ditto.
6763 (arm_push_return_address): New function.
6764 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6765 call_dummy_location, call_dummy_breakpoint_offset_p,
6766 call_dummy_breakpoint_offset, call_dummy_p,
6767 call_dummy_stack_adjust_p, call_dummy_words,
6768 sizeof_call_dummy_words, call_dummy_start_offset,
6769 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6770 call_dummy_address, push_return_address and push_dummy_frame for
6771 generic dummy frames.
6772
e7d717c0
JT
67732002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6774
6775 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6776 size computation for alloca.
6777 (sh_fp_frame_init_saved_regs): Likewise.
6778
7bbcf283
RE
67792002-05-07 Richard Earnshaw <rearnsha@arm.com>
6780
6781 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6782 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6783 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6784 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6785 * remote-rdp.c (remote_rdp_fetch_register): Use
6786 ARM_MAX_REGISTER_RAW_SIZE.
6787 (remote_rdp_store_register): Likewise.
6788
4657573b
ML
67892002-05-07 Michal Ludvig <mludvig@suse.cz>
6790
361d1df0 6791 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6792 added default labels to switch {} statements.
6793 * x86-64-tdep.c: Ditto.
6794 * x86-64-linux-nat.c: Ditto.
6795
010f3b2f
JT
67962002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6797
6798 * solib.h: Protect against multiple inclusion.
6799
debd256d
JB
68002002-05-06 Jim Blandy <jimb@redhat.com>
6801
9ab3e532
JB
6802 Add first preprocessor macro-expansion files.
6803 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6804 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6805 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6806 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6807 (COMMON_OBS): Add macrotab.o, macroexp.o.
6808 (macroexp.o, macrotab.o): New rules.
6809
debd256d
JB
6810 Separate the job of reading the line number info statement program
6811 header (...expialidocious) out into its own function.
6812 * dwarf2read.c (struct line_head, struct filenames, struct
6813 directories): Replace with...
6814 (struct line_header): New structure, containing the full
6815 contents of the statement program header, including the
6816 include directory and file name tables.
6817 (read_file_scope): If we have line number info, instead of just
6818 calling dwarf_decode_lines to do all the work, call
6819 dwarf_decode_line_header first to get a `struct line_header'
6820 containing the data in the statement program header, and then
6821 pass that to dwarf_decode_lines, which will pick up where that
6822 left off. Be sure to clean up the `struct line_header' object.
6823 (dwarf_decode_line_header, free_line_header, add_include_dir,
6824 add_file_name): New functions.
6825 (dwarf_decode_lines): Move all the code to read the statement
6826 program header into dwarf_decode_line_header. Take the line
6827 header it built as the first argument, instead of the offset to
6828 the compilation unit's line number info. Use the new `struct
6829 line_header' type instead of the old structures. No need to do
6830 cleanups here now, since we don't allocate anything.
6831 (dwarf2_statement_list_fits_in_line_number_section,
6832 dwarf2_line_header_too_long): New complaints.
6833
ac3aafc7
EZ
68342002-05-06 Elena Zannoni <ezannoni@redhat.com>
6835
6836 * gdbtypes.c (init_vector_type): New function.
6837 (build_builtin_type_vec128): Simplify the representation of SIMD
6838 registers.
6839 (build_gdbtypes): Initialize new builtin vector types.
6840 (_initialize_gdbtypes): Register new vector types with gdbarch.
6841 (builtin_type_v4_float, builtin_type_v4_int32,
6842 builtin_type_v8_int16, builtin_type_v16_int8,
6843 builtin_type_v2_int32, builtin_type_v4_int16,
6844 builtin_type_v8_int8): New (renamed) SIMD types.
6845
13e49980
MK
68462002-05-06 Mark Kettenis <kettenis@gnu.org>
6847
6848 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6849 (i387_fill_fxsave): Likewise.
6850
997b20b8
AO
68512002-05-05 Alexandre Oliva <aoliva@redhat.com>
6852
6853 * alpha-tdep.c (alpha_extract_return_value): Don't use
6854 non-constant array size in prototype.
6855
535c96ce
AC
68562002-05-04 Andrew Cagney <ac131313@redhat.com>
6857
6858 From Brian Taylor <briant at model dot com>:
6859 * ui-out.c (ui_out_field_core_addr): Use the function
6860 longest_local_hex_string_custom'to format addresses > 32 bits
6861 wide.
6862
6863 * ui-out.c (ui_out_field_core_addr): Update comment.
6864
bedfa57b
AC
68652002-05-04 Andrew Cagney <ac131313@redhat.com>
6866
6867 * stack.c (select_and_print_frame): Make static. Delete the
6868 parameter `level'.
6869 (func_command): Update call.
6870 (select_frame_command): Delete code computing the frame level.
6871 * frame.h (select_and_print_frame): Delete declaration.
6872
f621c63e
AC
68732002-05-04 Andrew Cagney <ac131313@redhat.com>
6874
6875 * sparc-tdep.c (sparc_get_saved_register): Comment why
6876 get_prev_frame call is safe.
6877
0f7d239c
AC
68782002-05-04 Andrew Cagney <ac131313@redhat.com>
6879
6880 * frame.h (select_frame): Delete level parameter.
6881 * stack.c (select_frame): Update. Use frame_relative_level to
6882 obtain the frame's level.
6883 (select_and_print_frame): Update call.
6884 (select_frame_command): Ditto.
6885 (up_silently_base): Ditto.
6886 (down_silently_base): Ditto.
6887 * ocd.c (ocd_start_remote): Ditto.
6888 * remote-rdp.c (remote_rdp_open): Ditto.
6889 * remote-mips.c (mips_initialize): Ditto.
6890 (common_open): Ditto.
6891 * remote-e7000.c (e7000_start_remote): Ditto.
6892 * m3-nat.c (select_thread): Ditto.
6893 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6894 (child_get_current_exception_event): Ditto.
6895 * varobj.c (varobj_create): Ditto.
6896 (varobj_update): Ditto.
6897 (c_value_of_root): Ditto.
6898 * tracepoint.c (finish_tfind_command): Ditto.
6899 * corelow.c (core_open): Ditto.
6900 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6901 * thread.c (info_threads_command): Ditto.
6902 (switch_to_thread): Ditto.
6903 * infrun.c (normal_stop): Ditto.
6904 (restore_selected_frame): Ditto.
6905 (restore_inferior_status): Ditto.
6906 * breakpoint.c (insert_breakpoints): Ditto.
6907 (watchpoint_check): Ditto.
6908 (bpstat_stop_status): Ditto.
6909 (do_enable_breakpoint): Ditto.
6910 * blockframe.c (flush_cached_frames): Ditto.
6911 (reinit_frame_cache): Ditto.
6912
71d6c7b1
AC
69132002-05-04 Andrew Cagney <ac131313@redhat.com>
6914
6915 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6916 maintainer.
6917
cda6c68a
JB
69182002-05-04 Jim Blandy <jimb@redhat.com>
6919
6920 * gdbtypes.c (replace_type): Doc fix.
6921
5c1c87f0
AC
69222002-05-04 Andrew Cagney <ac131313@redhat.com>
6923
6924 * valprint.c (strcat_longest): Delete commented out function.
6925 Update copyright.
6926
cd9bfe15
AC
69272002-05-04 Andrew Cagney <ac131313@redhat.com>
6928
6929 * MAINTAINERS: Mark a29k as deleted.
6930 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6931 Move new configurations to the top.
6932 * configure.tgt: Remove a29k.
6933 * config/a29k/tm-vx29k.h: Delete.
6934 * config/a29k/vx29k.mt: Delete.
6935 * config/a29k/tm-a29k.h: Delete.
6936 * config/a29k/a29k-udi.mt: Delete.
6937 * config/a29k/a29k.mt: Delete.
6938 * a29k-tdep.c: Delete.
6939 * remote-udi.c: Delete.
6940 * remote-mm.c: Delete.
6941 * remote-eb.c: Delete.
6942 * remote-adapt.c: Delete.
6943 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6944 * config/s390/s390x.mt: Ditto.
6945 * config/s390/s390.mt: Ditto.
6946 * config/sparc/sparclynx.mh: Ditto.
6947 * config/sparc/linux.mh: Ditto.
6948 * config/pa/hppaosf.mh: Ditto.
6949 * config/pa/hppabsd.mh: Ditto.
6950 * config/ns32k/nbsd.mt: Ditto.
6951 * config/mips/vr5000.mt: Ditto.
6952 * config/m68k/sun3os4.mh: Ditto.
6953 * config/m68k/nbsd.mt: Ditto.
6954 * config/m68k/m68klynx.mh: Ditto.
6955 * config/m32r/m32r.mt: Ditto.
6956 * config/i386/x86-64linux.mt: Ditto.
6957 * config/i386/nbsdelf.mt: Ditto.
6958 * config/i386/nbsd.mt: Ditto.
6959 * config/i386/i386lynx.mh: Ditto.
6960
bf0c5130
AC
69612002-05-04 Andrew Cagney <ac131313@redhat.com>
6962
6963 * target.c (debug_print_register): New function. Handle oversize
6964 registers.
6965 (debug_to_fetch_registers): Call.
6966 (debug_to_store_registers): Call.
6967
2ae1c2d2
JB
69682002-05-03 Jim Blandy <jimb@redhat.com>
6969
13a393b0
JB
6970 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6971 (read_type): Doc fix.
6972 * gdbtypes.c (replace_type): Doc fix.
6973
2ae1c2d2
JB
6974 * stabsread.c (multiply_defined_struct): New complaint.
6975 (read_struct_type): If the type we were passed isn't empty, or
6976 incomplete, don't read the new struct type into it; complain,
6977 and return the original type unchanged. Take a new `type_code'
6978 argument, which is the type code for the new type.
6979 (read_type): Rather than storing the type's type code here, pass
6980 it as an argument to read_struct_type, and let that take care of
6981 storing it. That way, we don't overwrite the original type code,
6982 so read_struct_type can use it to decide whether we're overwriting
6983 something we shouldn't.
6984 (complain_about_struct_wipeout): New function.
6985
8de9bdc4
AC
69862002-05-03 Andrew Cagney <ac131313@redhat.com>
6987
6988 * gdbarch.sh: Assert that gdbarch is non-NULL.
6989 * gdbarch.c: Regenerate.
6990
f773fdbb
JM
69912002-05-03 Jason Merrill <jason@redhat.com>
6992
6993 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6994 and return NULL.
6995
0e04a514
ML
69962002-05-03 Michal Ludvig <mludvig@suse.cz>
6997
6998 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6999 (x86_64_dwarf2gdb_regno_map_length),
7000 (x86_64_dwarf2_reg_to_regnum): Added.
7001 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7002 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7003 (_initialize_x86_64_tdep): Synced with the change above.
7004 (x86_64_skip_prologue): Reformulated message.
7005
065432a8
PM
70062002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7007
7008 * f-exp.y: Also use new prev_lexptr variable
7009 to improve error reporting. Based on Michael Snyder
7010 2002-04-24 dated patch to c-exp.y.
7011 * jv-exp.y: Likewise.
7012 * m2-exp.y: Likewise.
7013
a3162708
EZ
70142002-05-02 Elena Zannoni <ezannoni@redhat.com>
7015
7016 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7017 we are dealing with vectors.
7018
03620c38
PM
70192002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7020
7021 * config/m68k/tm-nbsd.h: Obvious fix,
7022 correct machine name.
7023
6604db2e
PM
70242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7025
7026 * p-typeprint.c (pascal_type_print_base): Add support
7027 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7028
0906b739
PM
70292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7030
7031 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7032 for fondamental pascal 'char' type.
7033
e2625b33
PM
70342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7035
7036 * p-lang.h (is_pascal_string_type): Declaration changed,
7037 new sixth argument of type char ** added.
361d1df0 7038 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
7039 changed. Args length_pos, length_size, string_pos, char_size
7040 can now be NULL. New argument arrayname set to the field
7041 name of the char array. Return value set to char array
7042 field index plus one.
361d1df0 7043 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
7044 is_pascal_string_type function.
7045
cf17c188
AC
70462002-05-02 Andrew Cagney <cagney@redhat.com>
7047
7048 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7049 <cagney@redhat.com> change.
7050 * gdbarch.c: Regenerate.
7051
52bca491
AC
70522002-05-02 Andrew Cagney <cagney@redhat.com>
7053
7054 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7055 before probing for a new one. Detect errorenous gdbarch_init
7056 functions.
7057 * gdbarch.c: Regenerate.
7058
d5e72505
AC
70592002-05-01 Andrew Cagney <cagney@redhat.com>
7060
7061 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7062 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7063 * config/v850/tm-v850.h: Ditto. Update copyright.
7064
af566d9f
AC
70652002-04-30 Andrew Cagney <ac131313@redhat.com>
7066
7067 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7068 current_gdbarch.
7069
880d85fa
MS
70702002-04-30 Michael Snyder <msnyder@redhat.com>
7071
94c30b78
MS
7072 * arm-tdep.c: Whitespace clean-ups.
7073 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
7074 should have been removed as part of 4/24 change.
7075
6f5987a6
KB
70762002-04-30 Kevin Buettner <kevinb@redhat.com>
7077
7078 * rs6000-tdep.c: Added comment describing how fpscr register
7079 numbers were chosen.
7080
1a113c93
MS
70812002-04-30 Michael Snyder <msnyder@redhat.com>
7082
7083 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7084
9a6f53fe
EZ
70852002-04-29 Elena Zannoni <ezannoni@redhat.com>
7086
7087 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7088 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7089 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7090
11ed25ac
KB
70912002-04-29 Kevin Buettner <kevinb@redhat.com>
7092
7093 From Louis Hamilton <hamilton@redhat.com>:
7094 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7095 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7096 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7097 not bfd-private xcoff data, to determine wordsize.
7098 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7099
ae232405
AC
71002002-04-29 Andrew Cagney <ac131313@redhat.com>
7101
7102 GDB 5.2 released from 5.2 branch.
7103
91fd20f7
ML
71042002-04-29 Michal Ludvig <mludvig@suse.cz>
7105
7106 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7107 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7108 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 7109
2dc5091b
EZ
71102002-04-29 Elena Zannoni <ezannoni@redhat.com>
7111
7112 * rs6000-tdep.c (rs6000_extract_return_value,
7113 rs6000_store_return_value): Handle returning vectors.
7114 (rs6000_gdbarch_init): Use
7115 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7116 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7117 New function.
7118 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7119 vectors.
7120 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7121 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 7122
2b9848d8
PM
71232002-04-24 Pierre Muller <ics.u-strasbg.fr>
7124
7125 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 7126 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
7127 with fprintf_unfiltered (gdb_stderr,...).
7128
f8d17dc5
PM
71292002-04-24 Pierre Muller <ics.u-strasbg.fr>
7130
7131 * remote-array.c (printf_monitor, write_monitor,
361d1df0 7132 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
7133 Replace fprintf (stderr,...
7134 with fprintf_unfiltered (gdb_stderr,....
7135 * remote-es.c: Likewise.
7136 * remote-os9k.c: Likewise.
7137 * remote-st.c: Likewise.
7138
2f2f1ad1
AS
71392002-04-28 Andreas Schwab <schwab@suse.de>
7140
7141 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7142 linux-proc.o and gcore.o.
7143
b6779aa2
AC
71442002-04-26 Michal Ludvig <mludvig@suse.cz>
7145
7146 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7147 code without frame pointers.
7148
7e57f5f4
AC
71492002-04-26 Andrew Cagney <ac131313@redhat.com>
7150
7151 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7152 ON_STACK is needed.
7153
2ceb85d0
BE
71542002-04-26 Ben Elliston <bje@redhat.com>
7155
7156 * target.c (do_xfer_memory): Correct reference to the new option
7157 "trust-readonly-sections".
7158
f5f8a009
EZ
71592002-04-26 Elena Zannoni <ezannoni@redhat.com>
7160
7161 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7162 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7163 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7164 vectors.
7165 (read_array_type): Record the fact that this array type is really a
7166 vector (i.e. are passed in by value).
7167
5868c862
JT
71682002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7169
7170 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7171 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7172 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7173 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7174 * alpha-linux-tdep.c: Include frame.h.
7175 (alpha_linux_sigcontext_addr): New function.
7176 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7177 alpha_linux_sigcontext_addr.
7178 * alpha-osf1-tdep.c: Include gdbcore.h.
7179 (alpha_osf1_sigcontext_addr): New function.
7180 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7181 alpha_osf1_sigcontext_addr.
7182 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7183 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7184
bfb01f37
AC
71852002-04-26 Andrew Cagney <ac131313@redhat.com>
7186
361d1df0 7187 * stack.c (selected_frame_level):
bfb01f37
AC
7188 (select_frame): Do not set selected_frame_level.
7189 * frame.h (selected_frame_level): Delete declaration.
7190
15813d3f
AC
71912002-04-26 Andrew Cagney <ac131313@redhat.com>
7192
7193 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7194 convert_from_func_ptr-addr when AIX / PowerOpen.
7195
6096c27a
AC
71962002-04-25 Andrew Cagney <ac131313@redhat.com>
7197
7198 * valops.c (hand_function_call): Call
7199 generic_save_call_dummy_addr.
7200 * frame.h (generic_save_call_dummy_addr): Declare.
7201 * blockframe.c (struct dummy_frame): Add fields call_lo and
7202 call_hi.
7203 (generic_find_dummy_frame): Check for PC in range call_lo to
7204 call_hi instead of entry_point_address.
7205 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7206 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7207 (generic_save_call_dummy_addr): New function.
7208
f510d44e
DM
72092002-04-24 David S. Miller <davem@redhat.com>
7210
7211 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7212 sparc_skip_prologue.
7213 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7214 information to find prologue when possible.
7215 (sparc_prologue_frameless_p): Call examine_prologue directly.
7216 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7217 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7218 second argument.
7219 (SKIP_PROLOGUE): Likewise.
7220
15d72a92
JT
72212002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7222
7223 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7224 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7225 indicate that the condition it was testing is always true.
7226 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7227 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7228 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7229
accc6d1f
JT
72302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7231
7232 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7233 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7234 tdep->jb_pc and tdep->jb_elt_size.
7235 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7236 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7237 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7238 * alpha-nat.c (get_longjmp_target): Remove.
7239 (JB_ELEMENT_SIZE): Ditto.
7240 (JB_PC): Ditto.
7241 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7242 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7243 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7244 to alpha_get_longjmp_target.
7245 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7246 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7247 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7248
1bfdc549
AC
72492002-04-25 Andrew Cagney <ac131313@redhat.com>
7250
7251 * README: Update to GDB 5.2.
7252
1bd316f0
AC
72532002-04-25 Andrew Cagney <ac131313@redhat.com>
7254
7255 * gdbarch.sh (LC_ALL): Set to `c'.
7256
2e5ff58c
TR
72572002-04-25 Theodore A. Roth <troth@verinet.com>
7258
7259 * avr-tdep.c: Ran through gdb_indent.sh.
7260
e33ce519
TR
72612002-04-25 Theodore A. Roth <troth@verinet.com>
7262
7263 * MAINTAINERS: Add myself as AVR maintainer.
7264 * NEWS: Note new target avr.
7265
8818c391
TR
72662002-04-25 Theodore A. Roth <troth@verinet.com>
7267
7268 * Makefile.in: Add support for AVR target.
7269 * configure.tgt: Add support for AVR target.
7270 * avr-tdep.c: New file
7271 * config/avr/avr.mt: New file.
7272
79509c2d
TR
72732002-04-25 Theodore A. Roth <troth@verinet.com>
7274
7275 * MAINTAINERS: Add myself to write-after-approval.
7276
dac8068e
PM
72772002-04-24 Pierre Muller <ics.u-strasbg.fr>
7278
7279 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7280 with fprintf_unfiltered (gdb_stderr,....
7281
25bf3106
PM
72822002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7283
7284 Fix PR gdb/508.
7285 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7286
24467a86
PM
72872002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7288
7289 * p-exp.y: Also use new prev_lexptr variable
7290 to improve error reporting. Based on Michael Snyder
7291 2002-04-24 dated patch to c-exp.y.
7292
95b80706
JT
72932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7294
7295 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7296 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7297 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7298 to 0.
7299 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7300 and struct value.
7301 (FUNCTION_START_OFFSET): Remove.
7302 (BREAKPOINT): Ditto.
7303
e90cc612
JT
73042002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7305
7306 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7307 * NEWS: Ditto.
7308
6c72f9f9
JT
73092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7310
7311 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7312 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7313 alpha_linux_pc_in_sigtramp.
7314 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7315 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7316 alpha_osf1_pc_in_sigtramp.
7317 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7318 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7319 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7320 alphafbsd_pc_in_sigtramp.
7321 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7322 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7323 alphanbsd_pc_in_sigtramp.
7324 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7325 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7326
5e4f3379
JT
73272002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7328
7329 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7330
da8ca43d
JT
73312002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7332
7333 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7334 alphanbsd-tdep.c.
7335 (alphanbsd-nat.o): New dependency list.
7336 (alphanbsd-tdep.o): Ditto.
7337 * NEWS: Note new native NetBSD/alpha configuration.
7338 * alphanbsd-nat.c: New file.
7339 * alphanbsd-tdep.c: Ditto.
7340 * configure.host (alpha*-*-netbsd*): New host.
7341 * configure.tgt (alpha*-*-netbsd*): New target.
7342 * config/alpha/nbsd.mh: New file.
7343 * config/alpha/nbsd.mt: Ditto.
7344 * config/alpha/nm-nbsd.h: Ditto.
7345 * config/alpha/tm-nbsd.h: Ditto.
7346
36a6271d
JT
73472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7348
7349 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7350 (alpha-osf1-tdep.o): New dependency list.
7351 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7352 and skip_sigtramp_frame members.
7353 * alpha-linux-tdep.c: Include gdbcore.h.
7354 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7355 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7356 * alpha-osf1-tdep.c: New file.
7357 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7358 alpha-osf1-dep.c.
7359 (alpha_frame_past_sigtramp_frame): New function.
7360 (alpha_dynamic_sigtramp_offset): Ditto.
7361 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7362 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7363 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7364 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7365 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7366 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7367 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7368 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7369 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7370 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7371 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7372 to find_solib_trampoline_target.
7373 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7374 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7375 (SKIP_TRAMPOLINE_CODE): Remove.
7376 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7377 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7378 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7379 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7380 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7381 (PROC_SIGTRAMP_MAGIC): Ditto.
7382 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7383 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7384 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7385 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7386 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7387
2f4bc57b
JT
73882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7389
7390 * NEWS: Note that Alpha targets are now multi-arch.
7391
665132f9
MS
73922002-04-24 Michael Snyder <msnyder@redhat.com>
7393
7394 * parser-defs.h (prev_lexptr): New external variable.
7395 * parse.c (parse_exp_1): Set prev_lexptr to null before
7396 calling the language-specific parser.
7397 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7398 (yyerror): Use prev_lexptr in error reporting.
7399
32872fa7
DJ
74002002-04-24 Daniel Jacobowitz <drow@mvista.com>
7401
7402 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7403 * gregset.h: If FILL_FPXREGSET is defined, provide
7404 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7405 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7406 is defined, call fill_fpxregset.
7407
57e76fac
MS
74082002-04-24 Roland McGrath <roland@frob.com>
7409
7410 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7411 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7412 (supply_gregset, supply_fpregset): New functions.
7413
7414 * gnu-nat.c (gnu_find_memory_regions): New function.
7415 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7416 (gnu_xfer_memory): Add a cast.
7417
f43845b3
MS
74182002-04-24 Michael Snyder <msnyder@redhat.com>
7419
361d1df0 7420 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7421 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7422 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7423 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7424 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7425 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7426
a0abec03
AC
7427Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7428
7429 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7430 NUM_PSEUDO_REGS can be used.
7431
d7bd68ca
AC
74322002-04-24 Andrew Cagney <ac131313@redhat.com>
7433
7434 * arch-utils.h: Update copyright.
7435
7436 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7437 * gdbarch.h, gdbarch.c: Re-generate.
7438
7439 * inferior.h (IN_SIGTRAMP): Delete definition.
7440 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7441 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7442
7443 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7444 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7445 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7446 (find_proc_framesize): Ditto.
7447 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7448 (alpha_init_extra_frame_info): Ditto.
7449 * infrun.c (handle_inferior_event): Ditto.
7450 (handle_inferior_event): Ditto.
7451 (check_sigtramp2): Ditto.
7452 * blockframe.c (create_new_frame): Ditto.
7453 (get_prev_frame): Ditto.
7454 * ppc-linux-tdep.c: Update comments.
7455 * i386-linux-tdep.c: Update comments.
7456 * breakpoint.c (bpstat_what): Update comment.
7457
4867e41e
DM
74582002-04-24 David S. Miller <davem@redhat.com>
7459
21d83aa5
DM
7460 * i960-tdep.c (register_in_window_p): New function.
7461 (i960_find_saved_register): Use it instead of
7462 REGISTER_IN_WINDOW_P.
7463 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7464
4867e41e
DM
7465 * symtab.h (find_stab_function_addr): Kill extern.
7466 * minsyms.c (find_stab_function_addr): Remove from here...
7467 * dbxread.c: ... to here, and mark it static.
7468
69cdf6a2
DM
74692002-04-20 David S. Miller <davem@redhat.com>
7470
7471 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7472 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7473
5a595886
DM
74742002-04-21 David S. Miller <davem@redhat.com>
7475
7476 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7477 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7478 (vx_write_register): Likewise.
7479
1da1a192
JB
74802002-04-23 J. Brobecker <brobecker@gnat.com>
7481
7482 * source.c (is_regular_file): New function.
7483 (openp): Check wether file to open is a regular file
7484 to avoid opening directories.
7485
baa6f10b
JT
74862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7487
7488 * findvar.c (extract_signed_integer): Cast printf argument
7489 to suppress format warning.
7490 (extract_unsigned_integer): Likewise.
7491 * infcmd.c (registers_info): Likewise.
7492 * top.c (get_prompt_1): Likewise.
7493 * valops.c (value_assign): Likewise.
7494 * valprint.c (print_decimal): Likewise.
7495
b2c4da81
L
74962002-04-22 H.J. Lu (hjl@gnu.org)
7497
7498 * c-exp.y (typebase): Support
361d1df0 7499
b2c4da81
L
7500 [long|long long|short] [signed|unsigned] [int|]
7501
7502 and
7503
7504 signed [long|long long|short] int
7505
f267bd6a
JT
75062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7507
7508 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7509 and vax-tdep.h.
7510 * vax-tdep.h: New file.
7511 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7512 Make several routines static.
7513 (vax_get_saved_register): New function.
7514 (vax_gdbarch_init): New function.
7515 (_initialize_vax_tdep): Register vax_gdbarch_init.
7516 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7517 Remove macros now under the control of gdbarch.
7518
da3c6d4a
MS
75192002-04-22 Michael Snyder <msnyder@redhat.com>
7520
11d3b27d
MS
7521 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7522 Some whitespace and coding standards tweaks.
da3c6d4a 7523
a33f7558
JT
75242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7525
7526 * vax-tdep.c: Include regcache.h.
7527 (vax_call_dummy_words): New.
7528 (sizeof_vax_call_dummy_words): New.
7529 (vax_fix_call_dummy): New function.
7530 (vax_saved_pc_after_call): Ditto.
7531 * config/vax/tm-vax.h: Don't include regcache.h.
7532 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7533 (CALL_DUMMY): Remove.
7534 (CALL_DUMMY_WORDS): Define.
7535 (SIZEOF_CALL_DUMMY_WORDS): Define.
7536 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7537
47a73475
MS
75382002-04-18 Michael Snyder <msnyder@redhat.com>
7539
7540 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7541
52efde73
JT
75422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * vax-tdep.c (vax_frame_chain): New function.
7545 (vax_push_dummy_frame): Ditto.
7546 (vax_pop_frame): Ditto.
7547 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7548 (FRAMELESS_FUNCTION_INVOCATION): Use
7549 generic_frameless_function_invocation_not.
7550 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7551 (POP_FRAME): Use vax_pop_frame.
7552
ea74468c
JT
75532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7554
7555 * vax-tdep.c (vax_store_struct_return): New function.
7556 (vax_extract_return_value): Ditto.
7557 (vax_store_return_value): Ditto.
7558 (vax_extract_struct_value_address): Ditto.
7559 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7560 vax_store_struct_return.
7561 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7562 (STORE_RETURN_VALUE): Use vax_store_return_value.
7563 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7564
5516aa92
JT
75652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * vax-tdep.c (vax_frame_saved_pc): New function.
7568 (vax_frame_args_address_correct): Ditto.
7569 (vax_frame_args_address): Ditto.
7570 (vax_frame_locals_address): Ditto.
7571 (vax_frame_num_args): Move code to be in proximity to
7572 other frame-related functions.
7573 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7574 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7575 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7576 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7577 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7578
36af0b35
L
75792002-04-22 H.J. Lu (hjl@gnu.org)
7580
7581 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7582 includedir.
7583
ab62c900
JT
75842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7585
7586 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7587 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7588 (FRAME_INIT_SAVED_REGS): New macro.
7589
7232b100
JT
75902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7591
7592 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7593
b70d2aee
JT
75942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7595
7596 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7597 where needed.
7598 (fetch_osf_core_registers): Likewise.
7599 (supply_gregset): Likewise.
7600
a0e8a2d1 76012002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7602
a0e8a2d1
JB
7603 * symfile.h (get_section_index): Define.
7604 * symfile.c (get_section_index): New function.
7605 * mdebugread.c (SC_IS_SBSS): New macro.
7606 (SC_IS_BSS): Return true for the scBss storage class only, as
7607 the scSBss storage class refers to the .sbss section.
7608 (parse_partial_symbols): Discard the symbols which associated
7609 section does not exist.
7610 Make sure to use the .sbss section index for symbols which
7611 storage class is scBss, rather than using the .bss section index.
7612
51eb8b08
JT
76132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7614
7615 * vax-tdep.c: Update copyright years.
7616 (vax_register_name): New function.
7617 (vax_register_byte): Ditto.
7618 (vax_register_raw_size): Ditto.
7619 (vax_register_virtual_size): Ditto.
7620 (vax_register_virtual_type): Ditto.
7621 * config/vax/tm-vax.h: Update copyright years.
7622 (REGISTER_NAMES): Remove.
7623 (REGISTER_NAME): Define.
7624 (REGISTER_BYTE): Use vax_register_byte.
7625 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7626 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7627 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7628
6cc1c0a8
AC
76292002-04-21 Andrew Cagney <ac131313@redhat.com>
7630
7631 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7632 declaration
7633 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7634
9319a2fe
DM
76352002-04-21 David S. Miller <davem@redhat.com>
7636
7637 * arch-utils.c (generic_prologue_frameless_p): Kill
7638 SKIP_PROLOGUE_FRAMELESS_P code.
7639 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7640 references.
7641 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7642 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7643 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7644 references.
7645 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7646 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7647 (sparc_gdbarch_init): Pass it to
7648 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7649
e9ed6d01
JT
76502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7653 (alphabsd-nat.o): New dependency list.
7654
36012033
JT
76552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7658 alphafbsd-tdep.c.
7659 (alpha-linux-tdep.o): New dependency list.
7660 (alphafbsd-tdep.o): Likewise.
7661
3379287a
JT
76622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7663
7664 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7665 to here...
7666 * alpha-tdep.c: ...from here.
7667 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7668
4bcbd6cb
JT
76692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7670
7671 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7672 prototype from here...
7673 * alpha-tdep.h: ...to here.
7674
b31da25e
AC
76752002-04-21 Andrew Cagney <ac131313@redhat.com>
7676
7677 * frame.h (selected_frame_level): Document as deprecated.
7678 (frame_relative_level): Declare.
7679 * stack.c (frame_relative_level): New function.
7680 (selected_frame_level): Document as deprecated.
7681 (select_frame): Do not set the selected_frame_level.
7682
7683 * stack.c (frame_info, record_selected_frame): Update.
7684 (frame_command, current_frame_command): Update.
7685 (up_silently_base, up_command, down_silently_base): Update.
7686 (down_command): Update.
7687 * inflow.c (kill_command): Update.
7688 * tracepoint.c (finish_tfind_command): Update.
7689 * corelow.c (core_open): Update.
7690 * thread.c (info_threads_command): Update.
7691 (do_captured_thread_select): Update.
7692 * infcmd.c (finish_command): Update.
7693 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7694
9c1d6fe5
JT
76952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7696
7697 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7698
ab89facf
AC
76992002-04-21 Andrew Cagney <ac131313@redhat.com>
7700
7701 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7702 type const.
7703
82a4efa1
JT
77042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7705
7706 * alphafbsd-tdep.c: Update copyright years. Include
7707 alpha-tdep.h.
7708 (alphafbsd_use_struct_convention): Make static.
7709 (alphafbsd_init_abi): New function.
7710 (_initialize_alphafbsd_tdep): New function.
7711 * config/alpha/tm-fbsd.h: Update copyright years.
7712 (USE_STRUCT_CONVENTION): Remove.
7713
44dffaac
JT
77142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7715
7716 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7717 an Alpha ABI variant.
7718 (alpha_abi_handler_list): Declare.
7719 (alpha_gdbarch_register_os_abi): New function.
7720 (alpha_gdbarch_init): Give registered ABI variant handlers a
7721 chance to tweak the gdbarch once we have set up defaults.
7722 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7723
65585be4
JT
77242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7725
7726 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7727 to standard_coerce_float_to_double.
7728 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7729
d9b023cc
JT
77302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7731
7732 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7733 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7734 from gdbarch_tdep rather than a constant.
7735 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7736 the default text address for all Alpha Unix ABIs.
7737 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7738 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7739
dc129d82
JT
77402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7741
7742 * alpha-tdep.h: New file. Includes several Alpha target constants
7743 taken from...
7744 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7745 let gdbarch deal with.
7746 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7747 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7748 to dependency list.
7749 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7750 Alpha target register names.
7751 * alphabsd-nat.c: Likewise.
7752 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7753 Alpha target register names. Make serveral routines static.
7754 (alpha_get_saved_register): New function.
7755 (alpha_abi_names): New.
7756 (process_note_abi_tag_sections): New function.
7757 (get_elfosabi): New function.
7758 (alpha_gdbarch_init): New function.
7759 (alpha_dump_tdep): New function.
7760 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7761
d49d1e0a
AC
77622002-04-21 Andrew Cagney <ac131313@redhat.com>
7763
7764 * frame.c (find_saved_register): Delete #ifdef
7765 HAVE_REGISTER_WINDOWS code.
7766 * config/sparc/tm-sparc.h: Update comments.
7767 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7768
92e8c9ed
AC
77692002-04-21 Andrew Cagney <ac131313@redhat.com>
7770
7771 * i960-tdep.c (i960_find_saved_register): New function.
7772 (i960_get_saved_register): New function.
7773 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7774 (i960_get_saved_register): Declare.
7775 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7776
e1925118
DM
77772002-04-20 David S. Miller <davem@redhat.com>
7778
7779 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7780
29673b29
AC
77812002-04-20 Andrew Cagney <ac131313@redhat.com>
7782
7783 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7784 instead of NUM_PSEUDO_REGS.
7785
6c86dcd5
DM
77862002-04-20 David S. Miller <davem@redhat.com>
7787
7788 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7789 GDB_MULTI_ARCH_PARTIAL
7790 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7791 define, let tm-sp64.h do it.
7792
aa40ec90
JT
77932002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7794
7795 * frame.c (find_saved_register): Avoid a NULL pointer
7796 dereference and actually walk the frame list.
7797
0f79675b
AC
77982002-04-20 Andrew Cagney <ac131313@redhat.com>
7799
7800 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7801 sorted in most most-recent-used order. Document.
7802 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7803
f91305dd 78042002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7805
7806 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7807 instead of ->prev.
7808 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7809 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7810 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7811 instead of ->prev.
7812
73d322b1
EZ
78132002-04-19 Elena Zannoni <ezannoni@redhat.com>
7814
7815 Fix PR gdb/471.
7816 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7817 (build_builtin_type_vec128): Ditto.
7818 (append_composite_type_field): Fix calculation of type length in
7819 union case.
7820
ccd9a834
EZ
78212002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7822
7823 * config/djgpp/README: Update.
7824
7825 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7826 compiler warnings.
7827
a57f9e49
JT
78282002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7829
7830 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7831 (alpha_setup_arbitrary_frame): ...to this.
7832 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7833 for alpha_setup_arbitrary_frame.
7834
f4f9705a
AC
78352002-04-18 Andrew Cagney <cagney@redhat.com>
7836
7837 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7838 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7839
f4f9705a
AC
7840 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7841 * target.h (memory_breakpoint_from_pc): Update declaration.
7842 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7843
7844 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7845 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7846 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7847 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7848 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7849 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7850 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7851 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7852 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7853 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7854 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7855 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7856
7857 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7858 const pointer.
7859 * monitor.c (monitor_insert_breakpoint): Ditto.
7860 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7861
7862 * config/mcore/tm-mcore.h: Update copyright.
7863 * mem-break.c: Ditto.
7864 * xstormy16-tdep.c: Ditto.
7865
29f319b8
PM
78662002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7867
7868 * p-exp.y: Add precedence rule for '^' token.
7869 This removes the shift/reduce conflicts.
7870 Remove the comment concerning these shift/reduce conflicts.
7871
ebeac11a
EZ
78722002-04-18 Elena Zannoni <ezannoni@redhat.com>
7873
7874 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7875 (registers_powerpc_nofp): New register set for processors
7876 without floating point unit.
7877
27c31547
DM
78782002-04-18 David S. Miller <davem@redhat.com>
7879
7880 * MAINTAINERS: Add myself to write-after-approval.
7881
47a73475
MS
78822002-04-17 Michael Snyder <msnyder@redhat.com>
7883
7884 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7885
953836b2
AC
78862002-04-17 Andrew Cagney <ac131313@redhat.com>
7887
7888 * rs6000-tdep.c (frame_initial_stack_address): Use
7889 frame_register_read to read the alloca_reg.
7890
8b0d4340
AC
78912002-04-17 Andrew Cagney <ac131313@redhat.com>
7892
7893 * frame.c (find_saved_register): Find saved registers in the next
7894 not prev frame.
7895 Fix PR gdb/365.
7896
d8864532
AC
78972002-04-17 Andrew Cagney <ac131313@redhat.com>
7898
7899 * gdbarch.sh (LANG): Set to ``c''.
7900
36cc83a3 79012002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7902
36cc83a3 7903 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7904
2f4150cc 79052002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7906
7907 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7908 Update copyright.
7909
628703c6 7910 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7911 Also fix PR gdb/391.
361d1df0 7912
56157b4a
AC
79132002-04-14 Andrew Cagney <ac131313@redhat.com>
7914
7915 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7916 * aclocal.m4, configure: Re-generate.
7917 Fix PR gdb/391.
361d1df0 7918
6d1e3329
EZ
79192002-04-14 Elena Zannoni <ezannoni@redhat.com>
7920
7921 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7922 instead of tm_print_insn.
7923
cb06fa07
EZ
79242002-04-14 Elena Zannoni <ezannoni@redhat.com>
7925
7926 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7927
f208ba17
AC
79282002-04-14 Andrew Cagney <ac131313@redhat.com>
7929
7930 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7931 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7932 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7933
20f01a46
DH
79342002-04-12 Don Howard <dhoward@redhat.com>
7935
7936 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7937 max_user_call_depth.
7938 (init_cmd_lists): Initialize the new value;
7939 * cli/cli-script.c (execute_user_command): Limit the call depth of
7940 user defined commands. This avoids a core-dump when user commands
7941 are infinitly recursive.
7942
a88376a3
KB
79432002-04-12 Kevin Buettner <kevinb@redhat.com>
7944
7945 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7946 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7947 from tdep struct instead of DEFAULT_LR_SAVE.
7948 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7949 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7950 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7951
f2172603
MS
79522002-04-12 Michael Snyder <msnyder@redhat.com>
7953
694f61fb 7954 * Remote.c: Spelling fix.
20fe79c8
MS
7955 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7956 If no symbol found for "sbrk", try "_sbrk".
7957 (make_output_phdrs): Use bfd_section_name.
7958 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7959 * eval.c: Indentation fix-ups.
169a7369
MS
7960 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7961 in case it gets applied to an address that is already
7962 in the instruction space.
de74f71f
MS
7963 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7964 * symfile.c: Fix indentation, long lines.
f2172603
MS
7965 * source.c: White space fix-up.
7966
cda5a58a
AC
79672002-04-12 Andrew Cagney <cagney@redhat.com>
7968
7969 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7970 * frame.c (frame_register_read): New function. Return non-zero on
7971 success.
7972 (read_relative_register_raw_bytes_for_frame): Delete.
7973 (read_relative_register_raw_bytes): Delete.
7974 * frame.h (frame_register_read): Declare.
7975 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7976 * sh-tdep.c: Ditto.
7977 * infcmd.c (do_registers_info): Ditto.
7978 * hppa-tdep.c: Ditto.
7979 * rs6000-tdep.c: Ditto.
7980 * h8500-tdep.c: Ditto.
7981 * mips-tdep.c: Ditto.
7982 * h8300-tdep.c: Ditto.
7983 * z8k-tdep.c: Ditto.
7984
2ea5f656
KB
79852002-04-12 Kevin Buettner <kevinb@redhat.com>
7986
7987 From Jimi X <jimix@watson.ibm.com>:
7988 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7989 64-bit SysV ABI.
7990
27b15785
KB
79912002-04-12 Kevin Buettner <kevinb@redhat.com>
7992
7993 From Jimi X <jimix@watson.ibm.com>:
7994 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7995 bfd info.
7996
5d57ee30
KB
79972002-04-12 Kevin Buettner <kevinb@redhat.com>
7998
7999 From Jimi X <jimix@watson.ibm.com>:
8000 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8001 register sets for these processor variants.
8002
bc1e36ca
DJ
80032002-04-11 Daniel Jacobowitz <drow@mvista.com>
8004
bc1e36ca
DJ
8005 * regformats/reg-ppc.dat: Support FPSCR.
8006
e3f36dbd
KB
80072002-04-11 Kevin Buettner <kevinb@redhat.com>
8008
8009 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8010 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8011 Add fpscr as an invalid/unfetchable register.
8012 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8013 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8014 (fill_fpregset): Add support for register fpscr.
8015 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8016 (fill_gregset): Account for the fact that register ``mq'' might
8017 not exist.
8018 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8019 (registers_power): Add fpscr to register set at slot 71.
8020 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8021 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8022
943c9c25
MS
80232002-04-11 Michael Snyder <msnyder@redhat.com>
8024
8025 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8026 * configure: Regenerate.
8027 * config.in: Regenerate.
8028 * acconfig.h: Add define for _SYSCALL32.
8029 * core-sol2.c: Remove #define _SYSCALL32.
8030 * solib-legacy.c: Remove #define _SYSCALL32.
8031
d8c0a2e7
AC
80322002-04-10 Andrew Cagney <ac131313@redhat.com>
8033
8034 * stack.c (select_frame): Cleanup internal error message, do not
8035 use %p.
8036
7cc19214
AC
80372002-04-10 Andrew Cagney <ac131313@redhat.com>
8038
8039 * stack.c (select_frame): Check that selected_frame and the
8040 specified level are as expected.
8041 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8042 Update copyright.
8043 * frame.h (struct frame_info): Add field `level'. Update
8044 copyright.
8045 Work-in-progress PR gdb/464.
8046
67a2b77e
AC
80472002-04-10 Andrew Cagney <ac131313@redhat.com>
8048
8049 * maint.c (maint_print_section_info): Rename print_section_info.
8050 (print_bfd_section_info, print_objfile_section_info): Update.
8051 * inferior.h (struct gdbarch): Add opaque declaration.
8052 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8053 * gdbarch.h: Regenerate.
8054
8cfda98c
ML
80552002-04-10 Michal Ludvig <mludvig@suse.cz>
8056
8057 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8058 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8059 (kernel_u_size): Added.
8060 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8061 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8062
ca439ad2 80632002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 8064
ca439ad2
JI
8065 * valarith.c (find_size_for_pointer_math): New function, either returns
8066 the size for a pointer's target, returns 1 for void *, or errors for
8067 incomplete types.
8068 (value_add, value_sub): use find_size_for_pointer_math.
8069
2f2893d9
DJ
80702002-04-09 Daniel Jacobowitz <drow@mvista.com>
8071
8072 * linux-low.c (linux_look_up_symbols): New hook.
8073 (linux_target_ops): Add linux_look_up_symbols.
8074 * remote-utils.c (decode_address): New function.
8075 (look_up_one_symbol): New function.
8076 * server.c (handle_query): Call target look_up_symbols hook.
8077 * server.h (look_up_one_symbol): Add prototype.
8078 * target.h (struct target_ops): Add look_up_symbols hook.
8079
96cb11df
AC
80802002-04-09 Andrew Cagney <ac131313@redhat.com>
8081
8082 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8083 override FP_REGNUM with frame->fp. Update copyright.
8084 * parse.c (num_std_regs, std_regs): Delete.
8085 (target_map_name_to_register): Do not search std_regs. Update
8086 function description.
8087 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8088 declarations. Update copyright.
8089 Fix PR gdb/251.
361d1df0 8090
97658e92
DJ
80912002-04-09 Daniel Jacobowitz <drow@mvista.com>
8092
8093 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8094 after the last symbol in a block.
8095
6044e3eb
PM
80962002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8097
8098 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8099 is non zero as a found symbol.
8100
0406ec40
AC
81012002-04-08 Andrew Cagney <ac131313@redhat.com>
8102
8103 * findvar.c: Include "builtin-regs.h".
8104 (value_of_register): Call value_of_builtin_reg when applicable.
8105 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8106 (target_map_name_to_register): Call
8107 builtin_reg_map_name_to_regnum.
8108 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8109 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8110 (builtin_regs_h): Define.
8111 (builtin-regs.o): New target.
8112 (findvar.o): Add $(builtin_regs_h).
8113 * builtin-regs.c, builtin-regs.h: New files.
8114 * std-regs.c: New file.
8115 Partial fix for PR gdb/251.
8116
56a6dfb9
KB
81172002-04-08 Kevin Buettner <kevinb@redhat.com>
8118
8119 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8120 it's no longer required.
8121
3a808432
AC
81222002-04-08 Andrew Cagney <ac131313@redhat.com>
8123
8124 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8125
7c40d541
KB
81262002-04-08 Kevin Buettner <kevinb@redhat.com>
8127
8128 From Jimi X <jimix@watson.ibm.com>:
8129 * rs6000-tdep.c (rs6000_software_single_step): Use
8130 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8131 and size. Use target_insert_breakpoint() and
8132 target_remove_breakpoint() to insert and remove breakpoints
8133 instead of explicit memory reads and writes.
8134
cc9836a8
KB
81352002-04-08 Kevin Buettner <kevinb@redhat.com>
8136
8137 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8138 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8139 ELF_OBJECT_FORMAT ifdef.
8140
7495d1dc
KB
81412002-04-08 Kevin Buettner <kevinb@redhat.com>
8142
8143 From Jimi X <jimix@watson.ibm.com>:
8144 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8145
4288e836
KB
81462002-04-08 Kevin Buettner <kevinb@redhat.com>
8147
8148 From Jimi X <jimix@watson.ibm.com>:
8149 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8150 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8151
a4e4e501
MK
81522002-04-07 Mark Kettenis <kettenis@gnu.org>
8153
8154 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8155 s/asprintf/xasprintf/.
8156 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8157
006defba
AC
81582002-04-07 Andrew Cagney <ac131313@redhat.com>
8159
8160 I believe Jeff Law denies responsability for this one:
8161 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8162 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8163 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8164 Work-around for PR gdb/366.
8165
7aa83cac
EZ
81662002-04-07 Elena Zannoni <ezannoni@redhat.com>
8167
8168 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8169 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8170 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8171
cf1fcca1
EZ
81722002-04-07 Elena Zannoni <ezannoni@redhat.com>
8173
8174 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8175 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8176 information.
8177
3f289e6f
AC
81782002-04-07 Andrew Cagney <ac131313@redhat.com>
8179
8180 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8181 maintainer.
8182
129188f6
AC
81832002-04-07 Andrew Cagney <ac131313@redhat.com>
8184
8185 * README (Reporting Bugs in GDB): Document the bug web page as the
8186 prefered way of submitting bugs.
8187 Fix PR gdb/402.
8188
1200cd6e
AC
81892002-04-06 Andrew Cagney <ac131313@redhat.com>
8190
8191 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8192 -1. Update comment.
8193 * gdbarch.h, gdbarch.c: Re-generate.
8194
2853c33c
AS
81952002-04-07 Andreas Schwab <schwab@suse.de>
8196
8197 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8198 buffer to regcache_collect.
8199
c2169756
AC
82002002-04-06 Andrew Cagney <ac131313@redhat.com>
8201
8202 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8203 * gdbarch.c, gdbarch.h: Re-generate.
8204
25f1b008
AC
82052002-04-06 Andrew Cagney <ac131313@redhat.com>
8206
8207 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8208 declaration. Fix -Werror.
8209
59263426
DJ
82102002-04-05 Daniel Jacobowitz <drow@mvista.com>
8211
8212 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8213 * gdbarch.c: Regenerate.
8214
f5db4da3
MS
82152002-04-05 Michael Snyder <msnyder@redhat.com>
8216
80f8a6eb
MS
8217 * breakpoint.c (clear_command): Rewrite middle section to
8218 combine two loops with identical control conditions.
8219 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8220 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8221
ad3dcc5c
L
82222002-04-05 H.J. Lu (hjl@gnu.org)
8223
8224 * solib-svr4.c (bkpt_names): Add "__start".
8225
f32e7a74
AC
82262002-04-04 Andrew Cagney <ac131313@redhat.com>
8227
8228 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8229 as test for 64 bit target.
8230
8227c0ff
AC
82312002-04-05 Andrew Cagney <ac131313@redhat.com>
8232
8233 * h8500-tdep.c (h8500_write_fp): Delete function.
8234 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8235 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8236 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8238 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8239 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8240 (s390_write_fp):
8241 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8242 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8243 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8244 (d10v_write_fp): Delete function.
8245 * inferior.h (write_fp, generic_target_write_fp): Delete
8246 declarations.
8247 * regcache.c (generic_target_write_fp): Delete function.
8248 (write_fp): Delete function.
8249 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8250 * gdbarch.h, gdbarch.c: Regenerate.
8251 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8252 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8253 (sparc64_write_fp): Delete declaration.
8254 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8255 (h8500_write_fp): Delete declaration.
8256
2757dd86
AC
82572002-04-04 Andrew Cagney <ac131313@redhat.com>
8258
8259 * sparc-tdep.c (sparc64_write_fp): Delete.
8260 (sparc_push_dummy_frame): Replace write_fp call with code to store
8261 the FP directly.
8262 (sparc_gdbarch_init): Do not initialize write_fp.
8263
c69255e1
KB
82642002-04-05 Kevin Buettner <kevinb@redhat.com>
8265
8266 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8267 clause.
8268
ae767bfb
JB
82692002-03-29 Jim Blandy <jimb@redhat.com>
8270
8271 * stack.c (get_selected_block): Add new argument `addr_in_block',
8272 used to return the exact code address we used to select the block,
8273 not just the block.
8274 * blockframe.c (get_frame_block, get_current_block): Same.
8275 * frame.h (get_frame_block, get_current_block,
8276 get_selected_block): Update declarations.
8277 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8278 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8279
84d2ac95
MS
82802002-04-05 Michael Snyder <msnyder@redhat.com>
8281
8282 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8283 warning message.
8284
596aa3bf
JB
82852002-04-05 J. Brobecker <brobecker@gnat.com>
8286
8287 * utils.c (xfullpath): New function.
8288 * defs.h (xfullpath): Add declaration.
8289 * source.c (openp): Use xfullpath in place of gdb_realpath to
8290 avoid resolving the basename part of filenames when the
8291 associated file is a symbolic link. This fixes a potential
8292 inconsistency between the filenames known to GDB and the
8293 filenames it prints in the annotations.
8294 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8295 to be able to match a filename with either the real filename, or
8296 the name of any symbolic link to this file.
8297 (lookup_partial_symtab): Ditto.
8298
c02f5703
MS
82992002-04-04 Michael Snyder <msnyder@redhat.com>
8300
8301 * breakpoint.c: Add support for hardware breakpoints in overlays.
8302 (overlay_events_enabled): New state variable.
8303 (insert_breakpoints): Use overlay_events_enabled to decide
8304 whether to attempt to set a breakpoint at the overlay load addr.
8305 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8306 (remove_breakpoint): Use overlay_events_enabled to decide
8307 whether breakpoints need to be removed from overlay load addr.
8308 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8309 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8310 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8311 disable_overlay_breakpoints): Update overlay_events_enabled.
8312
5fb290d7
DJ
83132002-04-04 Daniel Jacobowitz <drow@mvista.com>
8314
8315 * dwarf2read.c (struct function_range): New.
8316 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8317 (check_cu_functions): New.
8318 (read_file_scope): Initialize global function lists.
8319 Call dwarf_decode_line after processing children.
8320 (read_func_scope): Add to global function list.
8321 (dwarf_decode_lines): Call check_cu_functions everywhere
8322 record_line is called. Call record_line with a linenumber
8323 of 0 to mark sequence ends.
8324
7b3fabf0
ML
83252002-04-04 Michal Ludvig <mludvig@suse.cz>
8326
361d1df0 8327 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8328 change sync with glibc.
8329
bce58c09
JB
83302002-04-03 Jim Blandy <jimb@redhat.com>
8331
8332 * configure.in: Call AC_C_INLINE.
8333 * configure: Regenerated.
361d1df0 8334
2fccf04a
DJ
83352002-04-01 Daniel Jacobowitz <drow@mvista.com>
8336
8337 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8338 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8339
2d1bfe2e
MK
83402002-03-31 Mark Kettenis <kettenis@gnu.org>
8341
a5941fbf
MK
8342 * NEWS: Mention gcore support on FreeBSD/i386.
8343
a90cd31d
MK
8344 * fbsd-proc.c: New file.
8345 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8346 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8347
2d1bfe2e
MK
8348 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8349 while statement.
8350
9eb6e5a1
JB
83512002-03-29 Jim Blandy <jimb@redhat.com>
8352
8353 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8354 unescaped newlines in string literals, but newer ones don't. So
8355 escape them.
8356
f02df580
MS
83572002-03-26 Michael Snyder <msnyder@redhat.com>
8358 Andrew Cagney <cagney@redhat.com>
8359
361d1df0 8360 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8361 restore file to memory.
8362 * cli/cli-dump.h: New file.
8363 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8364 * NEWS: Mention new commands.
f02df580 8365
109f874e
MS
83662002-03-28 Michael Snyder <msnyder@redhat.com>
8367
8368 * symfile.c (symbol_file_add): Move test for null symbols to later.
8369
520f6ade
AC
83702002-03-27 Andrew Cagney <ac131313@redhat.com>
8371
8372 From veksler at il.ibm.com:
8373 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8374 the xstrduped original path.
8375 Fix PR gdb/417.
8376
d4654627
MS
83772002-03-27 Michael Snyder <msnyder@redhat.com>
8378
8379 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8380 * infcmd.c (_initialize_infcmd): Ditto.
8381 * language.c (_initialize_language): Ditto.
8382 * symfile.c (_initialize_symfile): Ditto.
8383 * top.c (_init_main): Ditto.
8384 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8385
6be8bc0c
EZ
83862002-03-27 Elena Zannoni <ezannoni@redhat.com>
8387
8388 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8389 vector registers handling.
8390 (skip_prologue): Handle new AltiVec instructions. Fill in new
8391 fields of frame data.
8392 (frame_get_saved_regs): Fill in information for AltiVec registers.
8393
12af6855
JB
83942002-03-27 Jim Blandy <jimb@redhat.com>
8395
8396 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8397 a function; leave this macro here to invoke that function.
8398 (symbol_init_mangled_name): Declaration for that function.
8399 * symtab.c (symbol_init_mangled_name): New function.
8400
dc672865
AC
84012002-03-27 Andrew Cagney <ac131313@redhat.com>
8402
8403 * valarith.c: Replace strerror with safe_strerror.
8404 * tracepoint.c: Ditto.
8405 * lin-lwp.c: Ditto.
8406 * go32-nat.c: Ditto.
8407 * inflow.c: Ditto.
8408 * gnu-nat.c: Ditto.
8409
d96429cd
AS
84102002-03-27 Andreas Schwab <schwab@suse.de>
8411
8412 * event-top.c (command_line_handler): Remove useless if.
8413
7e336ba1
AJ
84142002-03-27 Andreas Jaeger <aj@suse.de>
8415
8416 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8417 comment.
8418
de220d0f
ML
84192002-03-27 Michal Ludvig <mludvig@suse.cz>
8420
8421 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8422 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8423 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8424 (x86_64_linux_dr_get_status, supply_gregset),
8425 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8426 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8427 (x86_64_register_info_table): Add.
8428 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8429 (x86_64_register_raw_size, x86_64_register_virtual_type),
8430 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8431 general x86_64_register_info_table.
8432 (i386_gdbarch_init): gdbarch_register_bytes is now set
8433 dynamicaly during initialization.
8434 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8435 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8436
0e98d0a7
DJ
84372002-03-27 Daniel Jacobowitz <drow@mvista.com>
8438
8439 * gdbserver/server.c (main): Call target_signal_to_host_p
8440 and target_signal_to_host on signals received from the remote.
8441 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8442 target_signal_from_host on signals sent to the remote.
8443 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8444 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8445
3130066b
DJ
84462002-03-27 Daniel Jacobowitz <drow@mvista.com>
8447
8448 * signals/signals.c: Include "server.h" in gdbserver build.
8449 (target_signal_from_name): Don't use STREQ.
8450 (_initialize_signals): Likewise. Don't include function in
8451 gdbserver build.
8452
9aedf4f4
DJ
84532002-03-27 Daniel Jacobowitz <drow@mvista.com>
8454
8455 * signals.c: Moved to...
8456 * signals/signals.c: Here.
7e336ba1 8457 * Makefile (signals.o): Update.
9aedf4f4 8458
3fa41cdb
JL
84592002-03-26 Jeff Law (law@redhat.com)
8460
8461 * somread.c (som_symtab_read): Remove some commented out code and
8462 updated related comments. Do not set the minimal symbol table to
8463 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8464 in a dynamic executable.
8465 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8466 where we are unable to find the minimal symbol for the given
8467 PC value.
8468
ee677e8d
MS
84692002-03-25 Jeff Law (law@redhat.com)
8470
8471 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8472
e76e1718
ML
84732002-03-25 Michal Ludvig <mludvig@suse.cz>
8474
8475 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8476
18a642a1
AC
84772002-03-23 Andrew Cagney <ac131313@redhat.com>
8478
8479 * command.h: Update copyright.
8480 (struct cmd_list_element): Replace definition with opaque
8481 declaration.
8482 (enum cmd_types): Document that it will eventually be moved to
8483 cli/cli-decode.h
8484 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8485 (MALLOCED_REPLACEMENT): Delete macro.
8486 * Makefile.in (cli_decode_h): Add $(command_h).
8487 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8488 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8489 * completer.c: Include "cli/cli-decode.h".
8490 * maint.c: Include "cli/cli-decode.h".
8491 * cli/cli-decode.h: Include "command.h".
8492 (enum command_class): Delete.
8493 (enum cmd_types): Comment out.
8494 (enum cmd_auto_boolean): Delete.
8495 (enum var_types): Delete.
8496
b2875cc0
AC
84972002-03-23 Andrew Cagney <ac131313@redhat.com>
8498
8499 * cli/cli-decode.c: Include "gdb_assert.h".
8500 (add_set_or_show_cmd): New static function.
8501 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8502 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8503 all fields, such as func, from the set command.
8504
3b45974e
AC
85052002-03-23 Andrew Cagney <ac131313@redhat.com>
8506
8507 * MAINTAINERS (sh-elf): Change warning flag to -w.
8508
823ca731
AC
85092002-03-23 Andrew Cagney <cagney@redhat.com>
8510
8511 * defs.h (error): Add printf format attribute.
8512 * thread-db.c (thread_from_lwp): Fix error format string.
8513 * stack.c (parse_frame_specification): Ditto.
8514 * cli/cli-decode.c (undef_cmd_error): Ditto.
8515 * scm-lang.c (scm_lookup_name): Ditto.
8516 * tracepoint.c (trace_error): Ditto.
8517 * remote-utils.c (usage): Ditto.
8518 * remote.c (compare_sections_command): Ditto.
8519 Fix PR gdb/328.
8520
0e101458
AC
85212002-03-22 Andrew Cagney <ac131313@redhat.com>
8522
8523 * gdbtypes.c (append_composite_type_field): New function.
8524 (init_composite_type): New function.
8525 * gdbtypes.h (append_composite_type_field): Declare.
8526 (init_composite_type): Ditto.
8527
8e0662df
EZ
85282002-03-22 Elena Zannoni <ezannoni@redhat.com>
8529
8530 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8531 function.
8e0662df
EZ
8532 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8533 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8534 structure returning convention for SYSV ABI case, but not
8535 for GNU/Linux, FreeBSD, or NetBSD.
8536
3121eff0
DJ
85372002-03-22 Daniel Jacobowitz <drow@mvista.com>
8538
8539 * symtab.h (lookup_block_symbol): Add mangled_name argument
8540 to prototype.
8541
8542 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8543 with new mangled_name argument.
8544 * linespec.c (decode_line_1): Likewise.
8545 * valops (value_of_this): Likewise.
8546 * symtab.c (lookup_transparent_type): Likewise.
8547 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8548 (lookup_symbol): If we are given a mangled name, pass it down
8549 to lookup_symbol_aux.
8550 (lookup_block_symbol): If we are given a mangled name to check
8551 against, only return symbols which match it.
8552
349b409f
CF
85532002-03-22 Christopher Faylor <cgf@redhat.com>
8554
8555 * win32-nat.c (child_create_inferior): Check for proper shell to use
8556 here, in case the user changes it on the fly.
8557 (_initialize_inftarg): Remove shell path considerations.
8558
2a873819
EZ
85592002-03-21 Elena Zannoni <ezannoni@redhat.com>
8560
8561 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8562 for gdbarch_max_register_raw_size and max_register_virtual_size.
8563 Adjust copyright year.
8564
a1b9830c
DJ
85652002-03-21 Daniel Jacobowitz <drow@mvista.com>
8566
8567 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8568 in a function to cover the entire beginning of the function
8569 as well if it does not already.
8570
8b5790f2
TR
85712002-03-21 Tom Rix <trix@redhat.com>
8572
8573 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8574 (rs6000_ptrace64): Renamed from ptrace64.
8575
bdbe5747
MH
85762002-03-20 Martin M. Hunt <hunt@redhat.com>
8577
8578 * gdbserver/remote-utils.c (remote_open): Don't call
8579 getprotobyname, we're all using TCP here so just use
8580 IPPROTO_TCP.
7e336ba1 8581 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8582
85832002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8584
bdbe5747
MH
8585 * regcache.c (_initialize_regcache): No need to call
8586 build_regcache() at this time; it gets called whenever
8587 the gdbarch changes.
8588
7781cd62
DB
85892002-03-20 David O'Brien <obrien@FreeBSD.org>
8590
8591 * sparc-nat.c: Include sys/param.h where possible.
8592
f65ca430
DJ
85932002-03-20 Daniel Jacobowitz <drow@mvista.com>
8594
8595 Fix PR gdb/422.
8596 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8597 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8598 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8599 complex types.
8600 * stabsread.c (rs6000_builtin_type): Likewise.
8601 (read_sun_floating_type): Likewise.
8602
0c867556
PS
86032002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8604
8605 * stabsread.c (read_member_functions): Remove skip code for duplicate
8606 constructor/destructor methods. Use standard parsing for these
8607 methods and just do not chain them to the list of methods after
8608 parsing.
8609
12b9c64f
AO
86102002-03-19 Alexandre Oliva <aoliva@redhat.com>
8611
8612 * coffread.c: Remove redundant static declarations. Replace
8613 occurrences of `PTR' with `void *'.
8614 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8615 * top.h (quit_cover): Likewise.
8616 * defs.h (catch_errors): Likewise.
8617
349c5d5f
AC
86182002-03-18 Andrew Cagney <ac131313@redhat.com>
8619
8620 * defs.h (XMALLOC): Define.
8621 * gdb-events.sh (XMALLOC): Delete macro.
8622 * gdb-events.c, gdb-events.h: Regenerate.
8623 * gdbarch.sh (XMALLOC): Delete macro.
8624 * gdbarch.c: Regenerate.
8625 * serial.c (XMALLOC): Delete macro.
8626 * ui-file.c (XMALLOC): Ditto.
8627 * ser-unix.h (XMALLOC): Ditto.
8628 * sh-tdep.c (XMALLOC): Ditto.
8629 * ui-out.c (XMALLOC): Ditto.
8630 * utils.c (XMALLOC): Ditto.
8631 * i386-tdep.c (XMALLOC): Ditto.
8632 * gdb-events.c (XMALLOC): Ditto.
8633 * d10v-tdep.c (XMALLOC): Ditto.
8634 * cli-out.c (XMALLOC): Ditto.
8635
8636 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8637 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8638 * ui-file.c, ui-out.c: Ditto.
8639
7d0766f3
AC
86402002-03-18 Andrew Cagney <ac131313@redhat.com>
8641
8642 * command.h (struct cmd_list_element): Add field context.
8643 (set_cmd_context, get_cmd_context): Declare.
8644 * cli/cli-decode.h: Ditto.
8645 * cli/cli-decode.c (get_cmd_context): New function.
8646 (set_cmd_context): New function.
8647 (add_cmd): Initialize context.
8648 Part of fixing PR gdb/145 and PR gdb/146.
8649
5913bcb0
AC
86502002-03-17 Andrew Cagney <ac131313@redhat.com>
8651
1868c04e
AC
8652 * cli/cli-decode.c (cmd_type): New function.
8653 * command.h (cmd_type): Declare.
8654 * infrun.c (set_schedlock_func): Call function cmd_type.
8655 * kod.c (kod_set_os): Call cmd_type.
8656 * cris-tdep.c (cris_version_update): Use function cmd_type.
8657 (cris_mode_update, cris_abi_update): Ditto.
8658
5913bcb0
AC
8659 * command.h: (execute_cmd_post_hook): Declare.
8660 (execute_cmd_pre_hook): Declare.
8661 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8662 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8663 functions. Execute pre/post hook while ensuring that afterwords
8664 hook_in is cleared.
8665 * top.c (execute_command): Use execute_cmd_post_hook, and
8666 execute_cmd_pre_hook to execute pre/post commands.
8667 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8668 hook_stop_stub.
8669 (hook_stop_stub): Call execute_cmd_pre_hook.
8670
b51450c9
AC
86712002-03-17 Andrew Cagney <ac131313@redhat.com>
8672
8673 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8674 set'' and this leads to a core dump. Move xstrdup of
8675 operating_system to after check that it is not NULL.
8676
f66c9f11
AC
86772002-03-17 Andrew Cagney <ac131313@redhat.com>
8678
8e694ecf
AC
8679 * kod.c (kod_set_os): Remove unnecessary check that
8680 ``command->type'' is set_cmd.
8681
f66c9f11
AC
8682 * valprint.c (set_input_radix): Use input_radix.
8683 (set_output_radix): Use output_radix.
8684 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8685 isn't reverted.
8686
9d01611c
AC
86872002-03-16 Andrew Cagney <ac131313@redhat.com>
8688
8689 * value.h (struct value): Delete field ``substring_addr''. Change
8690 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8691 force_core_addr_align and force_pointer_aligh.
8692
8693 * value.h (struct value): Fix typo in above change.
9d01611c 8694
4156bb53
PS
86952002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8696
8697 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8698 to fix internal_error from ``maintenance print architecture''.
8699
0e5e3ea6
PS
87002002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8701
8702 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8703 for gcc versions after gcc-2.8.1.
8704
9b013045
PS
87052002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8706
8707 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8708 for method resolution. Restore adjustment of ``this'' pointer after
8709 calling value_struct_elt, which was accidentally removed during the
8710 HP merge.
8711
376c9600
AC
87122002-03-15 Andrew Cagney <ac131313@redhat.com>
8713
8714 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8715 value_of_register.
8716 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8717 get_saved_register.
8718 * value.h (value_of_register): Update.
8719
a4db0f07
RH
87202002-03-14 Richard Henderson <rth@redhat.com>
8721
8722 * configure.in: Detect declaration for canonicalize_file_name.
8723 * utils.c (canonicalize_file_name): Declare, if needed.
8724 (gdb_realpath): Prefer realpath if available and usable.
8725 * config.in, configure: Rebuild.
8726
96383835
RH
87272002-03-14 Richard Henderson <rth@redhat.com>
8728
8729 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8730 a constant array bound.
8731
8732 * MAINTAINERS: Add myself to write-after-approval.
8733
75245b24
MS
87342002-03-14 Michael Snyder <msnyder@redhat.com>
8735
8736 * symfile.c (syms_from_objfile): Return immediately if no syms.
8737 (symbol_file_add): Return immediately if no syms.
8738 (find_sym_fns): Return immediately if no syms.
8739
e641a1ca
ML
87402002-03-13 Michal Ludvig <mludvig@suse.cz>
8741
8742 * gdbserver/remote-util.c (remote_open): Print remote-side's
8743 IP address when remote debugging over the network.
7e336ba1 8744
df08bfec
DB
87452002-03-12 David O'Brien <obrien@FreeBSD.org>
8746
8747 * config/sparc/fbsd.mh: Fix copyright.
8748 * config/sparc/fbsd.mt: Likewise.
8749
9a57864f
RE
87502002-03-11 Richard Earnshaw <rearnsha@arm.com>
8751
8752 * MAINTAINERS: Fix typo in name of gdb warnings option.
8753 (x86-64): Fix formating so that this can be parsed by awk.
8754
dd7bf85e
DJ
87552002-03-10 Daniel Jacobowitz <drow@mvista.com>
8756
8757 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8758 * defs.h: Include "gdb/signals.h".
8759 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8760
33a0a2ac
ML
87612002-03-10 Michal Ludvig <mludvig@suse.cz>
8762
8763 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8764 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8765 from x86-64-tdep.h
8766
dd824b04
DJ
87672002-03-10 Daniel Jacobowitz <drow@mvista.com>
8768 Don Howard <dhoward@redhat.com>
8769
8770 * mips-tdep.c (ST0_FR): Define.
8771 (mips2_fp_compat): New function, temporarily disabled.
8772 (mips_read_fp_register_single): New function.
8773 (mips_read_fp_register_double): New function.
8774 (mips_print_register): Use them.
8775 (do_fp_register_row): Likewise.
8776
6a41ff59
AC
87772002-03-09 Andrew Cagney <ac131313@redhat.com>
8778
8779 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8780 approval''.
8781
4ea09c10
PS
87822002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8783
8784 * stabsread.c (read_member_functions): Fix is_stub test for
8785 static member functions, improve comment.
8786
6ccc741d
RE
87872002-03-07 Richard Earnshaw <rearnsha@arm.com>
8788
8789 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8790 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8791 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8792 commands that set boolean values.
8793 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8794 (arm_rdi_resume): Always initialize PC.
8795 (arm_rdi_open): Don't use rslt as a boolean.
8796 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8797 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8798 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8799 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8800
438013df
AO
88012002-03-06 Alexandre Oliva <aoliva@redhat.com>
8802
8803 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8804 * configure: Rebuilt.
8805
70ed8774
SC
88062002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8807
8808 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8809 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8810
5ba2abeb
AC
88112002-03-06 Andrew Cagney <ac131313@redhat.com>
8812
8813 * cli/cli-decode.c (set_cmd_completer): New function.
8814 * command.h (set_cmd_completer): Declare.
8815 * cli/cli-decode.h (set_cmd_completer): Ditto.
8816
8817 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8818 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8819 * win32-nat.c (_initialize_inftarg): Ditto.
8820 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8821 * proc-api.c (_initialize_proc_api): Ditto.
8822 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8823 * source.c (_initialize_source): Ditto.
8824 * exec.c (_initialize_exec): Ditto.
8825 * solib.c (_initialize_solib): Ditto.
8826 * top.c (init_main): Ditto.
8827 * tracepoint.c (_initialize_tracepoint): Ditto.
8828 * symfile.c (_initialize_symfile): Ditto.
8829 * printcmd.c (_initialize_printcmd): Ditto.
8830 * infcmd.c (_initialize_infcmd): Ditto.
8831 * corefile.c (_initialize_core): Ditto.
8832
f779ca99
AC
88332002-03-05 Andrew Cagney <ac131313@redhat.com>
8834
8835 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8836
01a3934b
AC
88372002-03-05 Andrew Cagney <ac131313@redhat.com>
8838
8839 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8840
37057839
AC
88412002-03-05 Andrew Cagney <ac131313@redhat.com>
8842
8843 * NEWS: Update headings, 5.2 has branched.
8844
c6ecbae5
DJ
88452002-03-04 Daniel Jacobowitz <drow@mvista.com>
8846
8847 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8848 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8849 (register_addr, REGISTER_RAW_SIZE): Likewise.
8850 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8851 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8852
e9f30c21
ML
88532002-03-03 Michal Ludvig <mludvig@suse.cz>
8854
8855 * MAINTAINERS (x86-64): Add myself.
8856 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8857 changed value_ptr -> struct value *
8858
54394ac3
DB
88592002-03-01 David O'Brien <obrien@FreeBSD.org>
8860
8861 * configure.host (sparc64-*-freebsd): Add.
8862 * configure.tgt: Likewise.
8863 * config/sparc/fbsd.mh: New file.
8864 * config/sparc/fbsd.mt: Likewise.
8865 * config/sparc/nm-fbsd.h: Likewise.
8866 * config/sparc/tm-fbsd.h: Likewise.
8867
bfe95955
DJ
88682002-03-01 Daniel Jacobowitz <drow@mvista.com>
8869
8870 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8871 regformats/reg-s390x.dat.
8872
f33c6cbf
AC
88732002-03-01 Andrew Cagney <ac131313@redhat.com>
8874
8875 * utils.c: Add FIXME explaining true/false problem.
8876
5ecaa7dd
AC
88772002-02-28 Andrew Cagney <ac131313@redhat.com>
8878
8879 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8880
2a251cc2
MC
88812002-02-28 Michael Chastain <mec@shout.net>
8882
8883 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8884
6a8031a3 88852002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8886
8887 * gdbserver/linux-s390-low.c: New file.
8888 * regformats/reg-s390.dat: New file.
8889 * regformats/reg-s390x.dat: New file.
8890 * gdbserver/configure.srv: Add S/390.
8891 * gdbserver/Makefile.in: Add S/390.
8892 * configure.tgt: Enable gdbserver for S/390.
8893
ac469903
EZ
88942002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8895
8896 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8897 first line of the doc string for "info dos", except at the end of
8898 the sentence, since the short help stops at the first period.
8899
985cb1a3
JM
89002002-02-28 Jason Merrill <jason@redhat.com>
8901
8902 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8903
c570663e
FF
89042002-02-27 Fred Fish <fnf@redhat.com>
8905
8906 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8907 comment (dumy -> dummy).
8908
43630227
PS
89092002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8910
8911 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8912
b84911e8
RB
89132002-02-27 Rodney Brown <rbrown64@csc.com.au>
8914
8915 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8916
58caa3dc
DJ
89172002-02-27 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * gdbserver/acconfig.h: New file.
8920 * gdbserver/i387-fp.c: New file.
8921 * gdbserver/i387-fp.h: New file.
8922 * gdbserver/linux-x86-64.c: New file.
8923 * regformats/reg-x86-64.dat: New file.
8924 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8925 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8926 * gdbserver/configure.in: Add support for regsets.
8927 * gdbserver/config.in: Regenerate.
8928 * gdbserver/configure: Regenerate.
8929 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8930 * gdbserver/linux-low.h: New file.
8931 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8932 for regsets.
8933 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8934 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8935 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8936 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8937 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8938 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8939 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8940 "i387-fp.h". Add PTRACE_GETREGS and friends.
8941 * gdbserver/regcache.c (supply_register): New function.
8942 (supply_register_by_name): New function.
8943 (collect_register): New function.
8944 (collect_register_by_name): New function.
8945
93652174
DJ
89462002-02-27 Daniel Jacobowitz <drow@mvista.com>
8947
8948 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8949 (config.status): Add configure.srv dependency.
8950 (server_h): Add config.h dependency.
8951
a02e4a61
DJ
89522002-02-27 Daniel Jacobowitz <drow@mvista.com>
8953
8954 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8955 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8956 * gdbserver/configure.srv: Change i386-*-linux* to use
8957 reg-i386-linux.o.
8958
ce0eebec
AC
89592002-02-26 Andrew Cagney <ac131313@redhat.com>
8960
8961 * x86-64-tdep.c: Re-indent. Update copyright date.
8962
82dbc5f7
AC
89632002-02-26 Andrew Cagney <ac131313@redhat.com>
8964
8965 From Michal Ludvig <mludvig@suse.cz>:
8966 * x86-64-tdep.c (value.h): Delete.
8967 (gdb_assert.h): Include.
8968 (x86_64_register_convert_to_virtual,
8969 x86_64_register_convert_to_raw ): Add check which lets only
8970 floating-point values to be converted.
8971 (value_push): Delete.
8972 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8973 (i386_gdbarch_init): Number of register_bytes fixed.
8974
e4621584
AC
89752002-02-26 Andrew Cagney <ac131313@redhat.com>
8976
8977 * MAINTAINERS: Add x86-64 target.
8978
81a9a963
AC
89792002-02-26 Andrew Cagney <ac131313@redhat.com>
8980
8981 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8982 * osfsolib.c (solib_map_sections): Ditto.
8983 * irix5-nat.c (solib_map_sections): Ditto.
8984 * corelow.c (gdb_check_format): Ditto.
8985 * symfile.c (symfile_bfd_open): Ditto.
8986 * solib.c (solib_map_sections): Ditto.
8987 Fix PR gdb/354.
7e336ba1 8988
0f017ab9
AC
89892002-02-26 Andrew Cagney <ac131313@redhat.com>
8990
8991 * remote.c (_initialize_remote): By default, disable ``e'' and
8992 ``E'' step out-of-range packets.
8993
75738c29
AS
89942002-02-26 Andreas Schwab <schwab@suse.de>
8995
8996 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8997 m68k_linux_frame_saved_pc.
8998 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8999 in_sigtramp.
9000 (SIGCONTEXT_PC_OFFSET): Remove.
9001 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9002 m68k_linux_sigtramp_saved_pc): New functions.
9003 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9004 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9005 (UCONTEXT_PC_OFFSET): Define.
9006 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9007 non-RT and RT signal trampolines.
9008
7e8ed687
RE
90092002-02-26 Richard Earnshaw <rearnsha@arm.com>
9010
9011 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9012 (TARGET_NBPG, STACK_END_ADDR): Delete
9013 (VARIABLES_INSIDE_BLOCK): Delete.
9014
6972bc8b
AC
90152002-02-25 Andrew Cagney <ac131313@redhat.com>
9016
9017 * utils.c (perror_with_name): Make string parameter constant.
9018 (print_sys_errmsg): Ditto.
9019 (query): Ditto.
9020 * defs.h (perror_with_name): Update.
9021 (print_sys_errmsg): Update.
9022 (query): Update.
9023
aa32f823
DJ
90242002-02-25 Daniel Jacobowitz <drow@mvista.com>
9025
9026 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9027 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9028
19caaa45
PS
90292002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9030
9031 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9032 if it already matches the current architecture from the exec file.
9033 Include arch-utils.h for gdbarch_info_init prototype.
9034 * Makefile.in (rs6000-nat.o): Update dependencies.
9035
d951901f
EZ
90362002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9037
9038 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9039 list of exported variables.
9040
7ea81414
DJ
90412002-02-24 Daniel Jacobowitz <drow@mvista.com>
9042
9043 * gdbserver/configure.srv: New file.
9044 * gdbserver/configure.in: Use configure.srv instead
9045 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9046 from it.
9047 * gdbserver/configure: Regenerated.
9048 * gdbserver/terminal.h: New file.
9049 * gdbserver/Makefile.in: Update for configure changes. Remove
9050 more unneeded include paths.
9051
080fe24b
AC
90522002-02-24 Andrew Cagney <ac131313@redhat.com>
9053
9054 From wiz at danbala:
9055 * config/sparc/tm-sp64.h: Fix grammar and typos.
9056 Fix PR gdb/287.
9057
8605d56e
AC
90582002-02-24 Andrew Cagney <ac131313@redhat.com>
9059
9060 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
9061 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9062 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9063 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
9064 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9065 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9066 * s390-tdep.c: Ditto.
92362027
AC
9067 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9068 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9069 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9070 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9071 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9072 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9073 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9074 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9075 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9076 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 9077 Fix PR gdb/378.
7e336ba1 9078
8ed32cc0
AC
90792002-02-23 Andrew Cagney <ac131313@redhat.com>
9080
a3007b6f
AC
9081 * lin-thread.c: Delete file.
9082 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9083 to gdb_proc_service.h.
9084 * configure: Re-generate.
9085
50a9e2f1
AC
9086 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9087 * serial.c (serial_open): Delete check for "ocd".
9088 Fix PR gdb/349.
9089
8b6e7932
AC
9090 * Makefile.in (linux-thread.o): Delete target.
9091 * linux-thread.c: Delete file.
9092
d155c46b
AC
9093 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9094 renamed SH files to be consistent.
9095
8ed32cc0
AC
9096 * symtab.c (sort_search_symbols): Use xfree.
9097
0e18d038
RE
90982002-02-23 Richard Earnshaw <rearnsha@arm.com>
9099
9100 * arm-linux-tdep.c (arm_linux_init_abi): Register
9101 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9102 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9103 definition with undef, since we don't want the sysvr4 definition.
9104 (SKIP_TRAMPOLINE_CODE): Likewise.
9105
27aac7ff
AC
91062002-02-23 Andrew Cagney <ac131313@redhat.com>
9107
9108 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9109
9110 * configure.in: (AC_CHECK_FUNCS) Added test for
9111 canonicalize_file_name Regenerated.
9112 * config.in, configure: Regenerated.
9113 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9114 defined use canonicalize_file_name.
7e336ba1 9115
65a6e0ee
MC
91162002-02-23 Michael Chastain <mec@shout.net>
9117
9118 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9119
47b95330
AC
91202002-02-23 Andrew Cagney <ac131313@redhat.com>
9121
9122 * README: Remove references to cygnus.com.
9123 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9124 dot com'' form. Remove references to cygnus.com and sourceware.
9125
696f451b
AC
91262002-02-23 Andrew Cagney <ac131313@redhat.com>
9127
9128 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9129 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9130 1003.1-2001 no longer allows "head -1".
9131 * gdb/Makefile.in (version.c): Likewise.
9132 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9133 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9134 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9135
bbaca940
AC
91362002-02-23 Andrew Cagney <ac131313@redhat.com>
9137
9138 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9139 * command.h (cmd_cfunc_eq): Declare.
9140 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9141
9142 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9143 ``struct cmd_list_element *''.
9144 * cli/cli-cmds.c (is_complete_command): Update. Use
9145 cmd_cfunc_eq.
9146 * top.c (execute_command): Pass the command to
9147 is_complete_command.
9148 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9149
b8b8b047
AC
91502002-02-23 Andrew Cagney <ac131313@redhat.com>
9151
9152 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9153 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9154 architecture defines.
9155 * s390-tdep.c (s390_gdbarch_init): Likewise.
9156
19d3fc80
RE
91572002-02-23 Richard Earnshaw <rearnsha@arm.com>
9158
9159 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9160 (arm_linux_push_arguments): Likewise.
9161 (arm_linux_init_abi): Register them. Also register linux-specific
9162 call_dummy_words.
9163 (find_minsym_and_objfile): Use strcmp, not STREQ.
9164 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9165 (arm_linux_call_dummy_words): Delete declaration.
9166 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9167 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9168 declarations.
9169 (LOWEST_PC): Delete.
9170
3ab13650
PS
91712002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9172
9173 * maint.c (print_section_info): Do not prepend `0x' to filepos
9174 output, it will be handled by local_hex_string_custom.
9175
19d3fc80 91762002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
9177
9178 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9179 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9180 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9181
d85a5daf
JB
91822002-02-22 Jim Blandy <jimb@redhat.com>
9183
9184 Indicate that the bcache functions don't change the strings
9185 they're passed.
9186 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9187 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9188
eeb25b8a
PM
91892002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9190
9191 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9192
6badb179
CF
91932002-02-21 Christopher Faylor <cgf@redhat.com>
9194
9195 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9196 find the complete path to a loaded DLL.
9197
e8717518
FF
91982002-02-21 Fred Fish <fnf@redhat.com>
9199
9200 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9201 that marks the end of the range of a function, enter a line number
9202 entry that has a line number of zero and a PC offset that matches
9203 the end of the function. This starts a range of PC's for which no
9204 line number information is known.
9205 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9206 PC's for which no line number info is found (line number is zero)
9207 then we didn't find any valid line information.
9208 * symtab.h: Document use of zero line number entry.
9209
9abe5450
EZ
92102002-02-21 Elena Zannoni <ezannoni@redhat.com>
9211
9212 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9213 (have_ptrace_getvrregs): Define for run time checks.
9214 (gdb_vrregset_t): New type for Altivec register handling.
9215 (fetch_register, store_register): Fetch/store altivec register
9216 when needed.
9217 (fetch_altivec_register, store_altivec_register): New functions.
9218 (supply_vrregset, fill_vrregset): New functions.
9219 (fetch_altivec_registers, store_altivec_registers): New functions.
9220 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9221 registers as well.
9222
aaa38bb5
AJ
92232002-02-21 Jiri Smid <smid@suse.cz>
9224
9225 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9226
b34db576
RE
92272002-02-21 Richard Earnshaw <rearnsha@arm.com>
9228
9229 * Makefile.in (armnbsd-nat.o): Update dependencies.
9230 * armnbsd-nat.c (supply_gregset): New function. Common code to
9231 supply the integer register set.
9232 (supply_fparegset): New function. Similar for FPA registers.
9233 (fetch_regs, fetch_fp_regs): Use them.
9234 (fetch_core_registers): Likewise.
9235 (fetch_elfcore_registers): New function.
9236 (arm_netbsd_elfcore_fns): New core-file type specification.
9237 (_initialize_arm_netbsd_nat): Register it.
9238
3e56fc4b
RE
92392002-02-21 Richard Earnshaw <rearnsha@arm.com>
9240
9241 * armnbsd-nat.c: Include gdbcore.h.
9242 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9243 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9244 'void' to declaration, to shut up ARI.
9245 (fetch_core_registers): Make static. Rewrite using supply_register.
9246 (arm_netbsd_core_fns): New core-file type specification.
9247 (_initialize_arm_netbsd_nat): New function.
9248
097f6b0b
CF
92492002-02-21 Christopher Faylor <cgf@redhat.com>
9250
9251 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9252 value.
9253
c914e0cc
CF
92542002-02-20 Christopher Faylor <cgf@redhat.com>
9255
9256 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9257 fails.
9258
385fa495
DJ
92592002-02-20 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * jv-exp.y (parse_number): Change type of implicit longs
9262 to builtin_type_uint64.
9263
e5f1222d
DJ
92642002-02-20 Daniel Jacobowitz <drow@mvista.com>
9265
9266 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9267 to be an integer instead of a `union wait'.
9268
75c9abc6
DJ
92692002-02-20 Daniel Jacobowitz <drow@mvista.com>
9270
9271 * mips-linux-nat.c: Call the operating system GNU/Linux.
9272 * mips-linux-tdep.c: Likewise.
9273 * mips-tdep.c: Likewise.
9274
551792a5
DJ
92752002-02-20 Daniel Jacobowitz <drow@mvista.com>
9276
9277 Fix PR gdb/265.
9278 * jv-exp.y (parse_number): Handle 64-bit integers.
9279
ee6e2b82
DJ
92802002-02-20 Daniel Jacobowitz <drow@mvista.com>
9281
9282 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9283 AC_STDC_HEADERS to AC_HEADER_STDC.
9284 * gdbserver/configure: Regenerated.
9285
a48442a0
RE
92862002-02-20 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9289 is defined.
9290 * sparc-tdep.c (get_longjmp_target): Likewise.
9291
fe419ffc
RE
92922002-02-20 Richard Earnshaw <rearnsha@arm.com>
9293
9294 * News: Add news about ARM and Multi-arch. Mention the new target
9295 arm*-*-netbsd*.
9296
5832ed7e
JB
92972002-02-19 Jim Blandy <jimb@redhat.com>
9298
9299 * stabsread.c (error_type_complaint): Improve error message.
9300
84563040
DJ
93012002-02-19 Daniel Jacobowitz <drow@mvista.com>
9302
9303 * gdbserver/README: Update documentation.
9304 * gdbserver/configure.in: Update configury to match documentation.
9305 * gdbserver/Makefile.in: Likewise.
9306 * gdbserver/configure: Regenerated.
9307 * gdbserver/aclocal.m4: New file, generated by aclocal.
9308 * gdbserver/config.in: New file, generated by autoheader.
9309
375fd65b
RE
93102002-02-19 Richard Earnshaw <rearnsha@arm.com>
9311
9312 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9313 armnbsd-nat.c.
9314
08216dd7
RE
93152002-02-19 Richard Earnshaw <rearnsha@arm.com>
9316
9317 * arm-tdep.h (enum arm_float_model): New enum.
9318 (struct gdbarch_tdep): Add fp_model.
9319 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9320 up floating-point conversions until we know the floating-point model
9321 in use by the inferior. Don't complain about being unable to
9322 determine the ABI of the inferior when we don't have one.
9323 (arm_extract_return_value): Support different floating-point models.
9324 (arm_store_return_value): Likewise.
aaa38bb5 9325 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9326 ARM_FLOAT_SOFT.
9327 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9328
65d6d66a
PS
93292002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9330
9331 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9332 of ``current_gdbarch''.
9333
47221191
RE
93342002-02-19 Richard Earnshaw <rearnsha@arm.com>
9335
9336 * armnbsd-nat.c : ANSIfy all function declarations.
9337 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9338 (fetch_inferior_registers): Re-implement in terms of above.
9339 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9340 (store_inferior_registers): Re-implement in terms of above.
9341
fdf39c9a
RE
93422002-02-19 Richard Earnshaw <rearnsha@arm.com>
9343
aaa38bb5 9344 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9345 kernel.
9346 * arm-linux-tdep.c: Likewise.
9347 * config/arm/tm-linux.h: Likewise.
9348
93247f88
RE
93492002-02-19 Richard Earnshaw <rearnsha@arm.com>
9350
9351 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9352 * config/arm/nbsd.mt (TM_FILE): Delete.
9353 * config/arm/tm-nbsd.h: Delete.
9354
d7b486e7
RE
93552002-02-19 Richard Earnshaw <rearnsha@arm.com>
9356
9357 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9358 Initialize CALL_DUMMY_LENGTH.
9359
41d39a95
RE
93602002-02-19 Richard Earnshaw <rearnsha@arm.com>
9361
9362 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9363 function.
9364 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9365 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9366 defines one thing and that is incorrect for this port.
9367 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9368
e1195560
PM
93692002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9370
9371 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9372
c1748f97
PM
93732002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9374
9375 * win32-nat.c (display_selector): New function. Displays information
9376 about the information returned by GetThreadSelectorEntry API function.
9377 (display_selectors): New function. Displays the infomation of
9378 the selector given as argument, or of CS, DS ans FS selectors
9379 if no argument is given.
9380 ( _initialize_inftarg): Add "w32" as info prefix command.
9381 Add "info w32 selector" as command calling display_selectors.
9382
e41e6bbf
PM
93832002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9384
9385 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9386 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9387 if not defined.
9388
0d3a9f48
RE
93892002-02-18 Richard Earnshaw <rearnsha@arm.com>
9390
9391 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9392
3fb4b924
RE
93932002-02-18 Richard Earnshaw <rearnsha@arm.com>
9394
9395 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9396 (arm_fix_call_dummy): Call it.
9397 (arm_call_dummy_breakpoint_offset): Delete.
9398 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9399 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9400
7f55af32
AC
94012002-02-18 Andrew Cagney <ac131313@redhat.com>
9402
9403 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9404 Default to func_frame_chain_valid.
9405 * gdbarch.h, gdbarch.c: Re-generate.
9406 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9407
05f13b9c
EZ
94082002-02-18 Elena Zannoni <ezannoni@redhat.com>
9409
9410 * ppc-linux-nat.c: Update copyright.
9411 (fetch_register, store_register): Add tid parameter, don't compute
9412 tid here.
9413 (fetch_ppc_registers, store_ppc_registers): Add tid
9414 parameter. Pass it along to callees.
9415 (fetch_inferior_registers, store_inferior_registers): Compute tid
9416 here, and pass it to calleed functions.
9417 (fill_gregset, supply_fpregset): Clean up formatting.
9418
d7afb4c9
RE
94192002-02-18 Richard Earnshaw <rearnsha@arm.com>
9420
9421 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9422 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9423
9df628e0
RE
94242002-02-18 Richard Earnshaw <rearnsha@arm.com>
9425
9426 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9427 * gdbarch.c gdbarch.h: Regenerate.
9428 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9429 function.
9430 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9431 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9432 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9433
9434 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9435 * arm-tdep.c (arm_get_longjmp_target): New function.
9436 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9437 this to a positive value register arm_get_longjmp_target as the
9438 longjmp handler.
9439 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9440 (arm_linux_init_abi): Set up longjmp description in tdep.
9441 * armnbsd-nat.c (get_longjmp_target): Delete.
9442 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9443 description in tdep.
9444 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9445 (get_longjmp_target): Delete declaration.
9446 (GET_LONGJMP_TARGET): Delete.
9447 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9448 (GET_LONGJMP_TARGET): Delete.
9449
57bc8964
KB
94502002-02-17 Kevin Buettner <kevinb@redhat.com>
9451
9452 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9453 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9454 of ``current_gdbarch''.
9455
83d31a92
TT
94562002-02-17 Tom Tromey <tromey@redhat.com>
9457
9458 * cli/cli-cmds.c (compare_strings): New function.
9459 (complete_command): Only print each unique item once.
9460 * completer.h (complete_line): Declare.
9461 * completer.c (complete_line): New function.
9462 (line_completion_function): Use it.
9463
17ef5d92
AC
94642002-02-16 Andrew Cagney <ac131313@redhat.com>
9465
9466 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9467 * gdbarch.h, gdbarch.c: Re-generate.
9468
491b8946
DJ
94692002-02-16 Daniel Jacobowitz <drow@mvista.com>
9470
9471 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9472
94732002-02-16 Daniel Jacobowitz <drow@mvista.com>
9474
9475 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9476 * valops.c (value_arg_coerce): Don't take the address of a reference
9477 to convert an argument to a reference.
9478
dfe7f3ac
CF
94792002-02-15 Christopher Faylor <cgf@redhat.com>
9480
9481 * win32-nat.c (get_image_name): New function.
9482 (handle_load_dll): Use get_image_name function.
9483 (get_child_debug_event): Avoid registering debug events until possibly
9484 execed process is started.
9485 (child_create_inferior): Allow invocation via shell so that command
9486 line redirection, etc. works ok.
9487 (_initialize_inftarg): Add new command: "set shell" to control whether
9488 a shell is used to start a process.
9489
1d33e73a
DJ
94902002-02-15 Daniel Jacobowitz <drow@mvista.com>
9491
9492 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9493 instead of find_register_by_number.
9494 (cannot_store_register): Likewise.
9495
48cd0caa
PM
94962002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9497
aaa38bb5 9498 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9499 fprintf_unfiltered (gdb_stderr, ...).
9500
8656e7d8
DJ
95012002-02-15 Daniel Jacobowitz <drow@mvista.com>
9502
9503 * gdbserver/gdbserver.1: Document --attach.
9504
66e810cd
RE
95052002-02-15 Richard Earnshaw <rearnsha@arm.com>
9506
9507 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9508 descriptions.
9509 * arm-tdep.c (arm_default_arm_le_breakpoint)
9510 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9511 (arm_default_thumb_be_breakpoint): New. Initialize them from
9512 traditional breakpoint defines.
9513 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9514 (arm_gdbarch_init): Initialize new breakpoint variables.
9515 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9516 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9517 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9518 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9519 code out to ...
9520 (arm_netbsd_init_abi_common): ... here; new function.
9521 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9522 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9523 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9524 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9525
97e03143
RE
95262002-02-15 Richard Earnshaw <rearnsha@arm.com>
9527
9528 * arm-tdep.h (enum arm_abi): New enum.
9529 (struct gdbarch_tdep): New structure.
9530 (LOWEST_PC): Provide a default.
9531 (arm_gdbarch_register_os_abi): Declare new function.
9532 * arm-tdep.c (arm_abi_names): New array.
9533 (process_note_abi_tag_sections): New function.
9534 (get_elfosabi): New function.
9535 (arm_gdbarch_register_os_abi): New function.
9536 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9537 support for that ABI has been built in, then call the appropriate
9538 configuration routine. Use gdbarch_num_regs() to get the number
9539 of registers.
9540 (arm_dump_tdep): New function.
9541 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9542 place-holder functions.
9543 (_initialize_arm_tdep): Register them.
9544 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9545
9546 * armnbsd-tdep.c: New file.
9547 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9548 * config/arm/nbsd.mt (TDEPFILES): Add it.
9549 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9550
9551 * armnbsd-nat.c: Include regcache.h.
9552 * Makefile.in (armnbsd-nat.o): Update dependency list.
9553
9554 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9555
ad68be46
DJ
95562002-02-14 Daniel Jacobowitz <drow@mvista.com>
9557
9558 * gdbserver/Makefile.in: Fix typos in target rules.
9559
003d6d1d
DJ
95602002-02-14 Daniel Jacobowitz <drow@mvista.com>
9561
aaa38bb5 9562 Fix part of PR gdb/267.
003d6d1d
DJ
9563 * linespec.c (find_methods): Handle constructors specially for now.
9564
6b230f1b
CV
95652002-02-14 Corinna Vinschen <vinschen@redhat.com>
9566
9567 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9568 handling.
9569 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9570 standard_coerce_float_to_double().
9571
1ea98d12
CF
95722002-02-14 Christopher Faylor <cgf@redhat.com>
9573
9574 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9575 GDBINIT_FILENAME.
9576
dd47e6fd
EZ
95772002-02-14 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9580 find_variant_by_name, because it confuses the multiarch
9581 framework. Return NULL if there isn't an architecture with the
9582 user supplied name, instead of forcing a different one without
9583 recording the change with the multiarch machinery.
9584 (find_variant_by_name): Delete.
9585
d7e39b9e
PS
95862002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9587
9588 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9589 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9590
76e42a4f
MH
95912002-02-13 Martin M. Hunt <hunt@redhat.com>
9592
aaa38bb5 9593 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9594 print_frame_info_listing_hook, set current_source_symtab.
9595
0a30fbc4
DJ
95962002-02-14 Daniel Jacobowitz <drow@mvista.com>
9597
9598 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9599 and remove unused $(INCLUDE_DIR).
9600 Add regcache.c to OBS.
9601 Add generated register protocol files to clean target.
9602 Update dependencies for new objects, obsolete old target code.
9603
9604 * gdbserver/linux-low.c: Remove all platform-specific code to
9605 new files. Remove various dead code. Update to use regcache
9606 functionality.
9607 * gdbserver/remote-utils.c (fromhex): Add return statement
9608 to quiet warning.
9609 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9610 constant.
9611 (input_interrupt): Add integer parameter to match prototype
9612 of a signal handler.
9613 (outreg): Use register_data ().
9614 (prepare_resume_reply): Use gdbserver_expedite_regs.
9615 * gdbserver/server.c (main): Dynamically allocate own_buf because
9616 PBUFSIZ is no longer constant. Use registers_to_string () and
9617 registers_from_string ().
9618 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9619 for error (), fatal (), and warning (). Update definition of
9620 PBUFSIZ to use regcache functionality. Add include guard.
9621 * gdbserver/utils.c (fatal): Add missing ``const''.
9622 (warning): New function.
9623
9624 * regformats/regdat.sh: Include "regcache.h" in generated files.
9625 Provide init_registers () function.
9626 * regformats/regdef.h: Add prototype for set_register_cache ().
9627 Add include guard.
9628
9629 * gdbserver/linux-arm-low.c: New file.
9630 * gdbserver/linux-i386-low.c: New file.
9631 * gdbserver/linux-ia64-low.c: New file.
9632 * gdbserver/linux-m68k-low.c: New file.
9633 * gdbserver/linux-mips-low.c: New file.
9634 * gdbserver/linux-ppc-low.c: New file.
9635 * gdbserver/linux-sh-low.c: New file.
9636
9637 * gdbserver/regcache.c: New file.
9638 * gdbserver/regcache.h: New file.
9639
9640 * gdbserver/low-linux.c: Removed obsolete file.
9641
4cc841d0
DJ
96422002-02-14 Daniel Jacobowitz <drow@mvista.com>
9643
9644 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9645 * config/i386/linux.mt: Likewise.
9646 * config/ia64/linux.mt: Likewise.
9647 * config/m68k/linux.mh: Likewise.
9648 * config/powerpc/linux.mh: Likewise.
9649 * config/mips/linux.mt: Likewise.
9650
9651 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9652
9653 * config/i386/i386lynx.mh: Mark gdbserver variables
9654 as (currently) obsolete for this target.
9655 * config/i386/nbsd.mt: Likewise.
9656 * config/i386/nbsdelf.mt: Likewise.
9657 * config/m32r/m32r.mt: Likewise.
9658 * config/m68k/m68klynx.mh: Likewise.
9659 * config/m68k/nbsd.mt: Likewise.
9660 * config/m68k/sun3os4.mh: Likewise.
9661 * config/mips/vr5000.mt: Likewise.
9662 * config/ns32k/nbsd.mt: Likewise.
9663 * config/pa/hppabsd.mh: Likewise.
9664 * config/pa/hppaosf.mh: Likewise.
9665 * config/powerpc/nbsd.mt: Likewise.
9666 * config/rs6000/rs6000lynx.mh: Likewise.
9667 * config/s390/s390.mt: Likewise.
9668 * config/s390/s390x.mt: Likewise.
9669 * config/sparc/sparclynx.mh: Likewise.
9670 * config/sparc/sun4os4.mh: Likewise.
9671 * config/i386/x86-64linux.mt: Likewise.
9672 * config/sparc/linux.mh: Likewise.
9673
a85f51e7
DJ
96742002-02-14 Daniel Jacobowitz <drow@mvista.com>
9675
9676 * configure.tgt: Configure gdbserver only for known working
9677 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9678 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9679 SUBDIRS if it is configured. Update comment for ${nativefile}.
9680 * configure: Regenerated.
9681
65554fef
MS
96822002-02-13 Michael Snyder <msnyder@redhat.com>
9683
670a52db
MS
9684 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9685
6dbdc4a3
MS
9686 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9687 (default_gcore_mach): Just return 0, work around a problem in bfd.
9688 (default_gcore_target): OK to return NULL if exec_bfd is null.
9689 (make_mem_sec): Use a cast, avoid a warning.
9690
9691 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9692 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9693 sizeof (host pointer) != sizeof (target pointer)).
9694 (procfs_make_note_section): Avoid overflow in psargs string.
9695
aaa38bb5 9696 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9697 implementation return an error.
9698
96992002-02-13 Rodney Brown <rbrown64@csc.com.au>
9700
9701 * procfs.c (procfs_make_note_section): Provide a default definition
9702 (for alpha-dec-osf4.0f). Fix typos.
9703
1e4d76e7
EZ
97042002-02-13 Elena Zannoni <ezannoni@redhat.com>
9705
9706 * linux-proc.c: Add include of regcache.h.
9707 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9708
b6d1a1d5
AC
97092002-02-13 Andrew Cagney <ac131313@redhat.com>
9710
9711 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9712 * memattr.c (create_mem_region): Disallow useless empty region.
9713 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9714 non-overlapping.
b6d1a1d5 9715
6c6ea35e
MC
97162002-02-13 Michael Chastain <mec@shout.net>
9717
9718 * defs.h: Kill CONST_PTR.
9719 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9720 * c-lang.c (c_builtin_types): Likewise.
9721 * ch-lang.c (ch_builtin_types): Likewise.
9722 * f-lang.c (f_builtin_types): Likewise.
9723 * language.c (unknown_builtin_types): Likewise.
9724 * m2-lang.c (m2_builtin_types): Likewise.
9725 * p-lang.c (pascal_builtin_types): Likewise.
9726 * scm-lang.c (c_builtin_types): Likewise.
9727
3e0b0f48
KS
97282002-02-13 Keith Seitz <keiths@redhat.com>
9729
9730 * arm-tdep.h (arm_get_next_pc): Add declaration.
9731
67255d04
RE
97322002-02-13 Richard Earnshaw <rearnsha@arm.com>
9733
9734 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9735 with other related struct-returning functions.
9736 (arm_extract_struct_value_address): New function.
9737 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9738 initialize float_format, double_format and long_double_format as
9739 appropriate to the endianness of the target.
9740 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9741 (arm_use_struct_convention): Delete declaration.
9742 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9743
079777f6
KS
97442002-02-13 Keith Seitz <keiths@redhat.com>
9745
9746 * defs.h (core_addr_to_string_nz): New function.
9747
34588f23
MK
97482002-02-13 Mark Kettenis <kettenis@gnu.org>
9749
9750 Apply missing bits of 2002-01-15 patch.
9751 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9752 (fill_fpregset): Use i387_fill_fsave.
9753
49b563f9
KS
97542002-02-12 Keith Seitz <keiths@redhat.com>
9755
49b563f9
KS
9756 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9757 (core_addr_to_string_nz): New function.
9758
aeb98c60
RE
97592002-02-11 Richard Earnshaw <rearnsha@arm.com>
9760
9761 * arm-linux-nat.c: Really include arm-tdep.h.
9762 * config/arm/tm-linux.h (struct type, struct value): Declare.
9763
65554fef
MS
97642002-02-11 Michael Snyder <msnyder@redhat.com>
9765
9766 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9767 (gcore section): Ifdef for Solaris and Unixware only.
9768 (procfs_do_thread_registers): Unixware needs one lwpstatus
9769 per thread (not one prstatus or pstatus).
9770 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9771 not over all gdb threads. For unixware, call elfcore_write_pstatus
9772 once before iterating over threads.
9773
34e8f22d
RE
97742002-02-11 Richard Earnshaw <rearnsha@arm.com>
9775
9776 * arm-tdep.h: New file.
9777 * arm-tdep.c: Include arm-tdep.h.
9778 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9779 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9780 (arm_print_float_info, arm_register_type, convert_to_extended)
9781 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9782 (arm_extract_return_value, arm_register_name): Make static.
9783 (arm_software_single_step): Similarly. Fix types in declaration.
9784 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9785 (arm_store_return_value, arm_store_struct_return): New functions.
9786 (arm_gdbarch_init): Register the above functions. Also register
9787 call_dummy_start_offset, sizeof_call_dummy_words,
9788 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9789 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9790 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9791 prologue_cache.saved_regs here, rather than ...
9792 (_initialize_arm_tdep): ... here.
9793 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9794 declarations.
9795 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9796 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9797 (arm_print_float_info, arm_register_type, convert_to_extended)
9798 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9799 (arm_extract_return_value, arm_register_name): Delete declarations.
9800 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9801 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9802 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9803 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9804 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9805 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9806 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9807 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9808 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9809 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9810 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9811 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9812 interface.
9813 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9814 * remote-rdi.c remote-rdp.c: Likewise.
9815 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9816 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9817 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9818 definition.
9819
9820 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9821 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9822 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9823 from non-ARM_ prefixed definitions.
9824 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9825 all uses of above.
9826 * remote-rdi.c remote-rdp.c: Likewise.
9827 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9828
148754e5
RE
98292002-02-11 Richard Earnshaw <rearnsha@arm.com>
9830
9831 * arm-tdep.c (arm_frameless_function_invocation)
9832 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9833 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9834 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9835 (arm_pop_frame, arm_get_next_pc): Make static.
9836 (arm_gdbarch_init): Register above in gdbarch structure.
9837 (arm_read_fp): Renamed from arm_target_read_fp.
9838 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9839 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9840 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9841 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9842 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9843 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9844 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9845 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9846 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9847 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9848 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9849
434d2d4f
DJ
98502002-02-10 Daniel Jacobowitz <drow@mvista.com>
9851
9852 * symtab.c (compare_search_syms): New function.
9853 (sort_search_symbols): New function.
9854 (search_symbols): Sort symbols after searching rather than
9855 before.
9856
55241689
AC
98572002-02-10 Andrew Cagney <ac131313@redhat.com>
9858
9859 * NEWS: Linux -> GNU/Linux.
9860
028c194b
AC
98612002-02-10 Andrew Cagney <ac131313@redhat.com>
9862
9863 * gdbarch.sh: For for level one methods, disallow a definition
9864 when partially multi-arched. Add comments explaining rationale.
9865 * gdbarch.h: Re-generate.
9866
6acf50cd
AC
98672002-02-10 Andrew Cagney <ac131313@redhat.com>
9868
9869 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9870 multi-arch partial.
aaa38bb5 9871
50248794
AC
98722002-02-10 Andrew Cagney <ac131313@redhat.com>
9873
9874 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9875 field. Use diff -u.
9876 * gdbarch.c: Re-generate.
9877
c30e0066
AC
98782002-02-10 Andrew Cagney <ac131313@redhat.com>
9879
9b56c5f3 9880 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9881 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9882 partial.
9883
6e6d6484
AC
98842002-02-10 Andrew Cagney <ac131313@redhat.com>
9885
9886 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9887 multi-arch partial.
9888 (PUSH_ARGUMENTS): Switch to using predefault.
9889 * gdbarch.c: Regenerate.
9890
c203844d
AC
98912002-02-10 Andrew Cagney <ac131313@redhat.com>
9892
9893 * valops.c (PUSH_ARGUMENTS): Delete definition.
9894 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9895 partial. Default to default_push_arguments.
9896 * gdbarch.h, gdbarch.c: Regenerate.
9897
b5a2688f
AC
98982002-02-09 Andrew Cagney <ac131313@redhat.com>
9899
9900 * defs.h (throw_exception): Rename return_to_top_level. Update
9901 comments.
9902 * utils.c (error_stream, internal_verror, quit): Ditto.
9903 * top.c (throw_exception, catcher): Ditto.
9904 * sparclet-rom.c (sparclet_load): Ditto.
9905 * remote.c (interrupt_query, minitelnet): Ditto.
9906 * remote-sds.c (interrupt_query): Ditto.
9907 * remote-mips.c (mips_error, mips_kill): Ditto.
9908 * ocd.c (interrupt_query): Ditto.
9909 * monitor.c (monitor_interrupt_query): Ditto.
9910 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9911 * target.h: Update comment.
aaa38bb5 9912
b5a2688f 9913 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9914
2fa5c1e0
AC
99152002-02-09 Andrew Cagney <ac131313@redhat.com>
9916
9917 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9918 default_double_format.
9919 * gdbarch.h, gdbarch.c: Re-generate.
9920 * findvar.c (floatformat_unknown): Delete variable definition.
9921 * doublest.h (floatformat_unknown): Delete variable declaration.
9922
da966255
JB
99232002-02-09 Jim Blandy <jimb@redhat.com>
9924
9925 * stabsread.c (read_type): Add code to parse Sun's syntax for
9926 prototyped function types.
9927
123a4891
AC
99282002-02-09 Andrew Cagney <ac131313@redhat.com>
9929
9930 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9931 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9932
fb39c8f3
PS
99332002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9934
9935 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9936 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9937 now _initialize_xcoffsolib gets called again and overrides the
9938 commands from solib.c in a native configuration.
9939
0b87a11d
MK
99402002-02-09 Mark Kettenis <kettenis@gnu.org>
9941
9942 * doublest.c (store_typed_floating): Don't try to return a value.
9943 Fixes PR gdb/290.
9944
bdc2fc72
JB
99452002-02-08 Jim Blandy <jimb@redhat.com>
9946
9947 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9948 is prototyped and has no arguments, print its argument list as
9949 `(void)'.
9950
da69bbcf
CD
99512002-02-08 Chris Demetriou <cgd@broadcom.com>
9952
9953 * MAINTAINERS (write-after-approval): Add myself.
9954 (paper-trail): I've escaped!
aaa38bb5 9955
b69571f5
CF
99562002-02-08 Christopher Faylor <cgf@redhat.com>
9957
9958 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9959 changes.
9960 (_initialize_check_for_gdb_ini): Ditto.
9961
f6871398
MH
99622002-02-08 Martin M. Hunt <hunt@redhat.com>
9963
9964 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9965 xaprintf -> xasprintf.
9966
4e52d31c
PM
99672002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9968
9969 * win32-nat.c: Remove use of printf and sprintf functions.
9970
39bbf761
RE
99712002-02-08 Richard Earnshaw <rearnsha@arm.com>
9972
9973 * arm-tdep.c (arm_frame_chain_valid): Make static.
9974 (arm_push_arguments): Likewise.
9975 (arm_gdbarch_init): New function.
9976 (_initialize_arm_tdep): Call it.
9977 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9978 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9979 (FRAME_CHAIN_VALID): Delete.
9980 (arm_frame_chain_valid): Delete declaration.
9981 (PUSH_ARGUMENTS): Delete.
9982 (arm_push_arguments): Delete declaration.
9983 (CALL_DUMMY_P): Delete.
9984
9c9532c9
CV
99852002-02-08 Andrew Cagney <ac131313@redhat.com>
9986 Corinna Vinschen <vinschen@redhat.com>
9987
9988 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9989 on builtin float types.
9990
4e8f7a8b
DJ
99912002-02-08 Daniel Jacobowitz <drow@mvista.com>
9992
9993 * utils.c: Include <curses.h> before "bfd.h".
9994 * tui/tui-hooks.c: Likewise.
9995 * tui/tui.c: Likewise.
9996 * tui/tuiCommand.c: Likewise.
9997 * tui/tuiData.c: Likewise.
9998 * tui/tuiDataWin.c: Likewise.
9999 * tui/tuiDisassem.c: Likewise.
10000 * tui/tuiGeneralWin.c: Likewise.
10001 * tui/tuiIO.c: Likewise.
10002 * tui/tuiLayout.c: Likewise.
10003 * tui/tuiRegs.c: Likewise.
10004 * tui/tuiSource.c: Likewise.
10005 * tui/tuiSourceWin.c: Likewise.
10006 * tui/tuiStack.c: Likewise.
10007 * tui/tuiWin.c: Likewise.
10008
cd4bffcf
EZ
100092002-02-07 Elena Zannoni <ezannoni@redhat.com>
10010
10011 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10012 to include space for pseudoregs as well. Update loops accordingly.
10013 (sh_fp_frame_init_saved_regs): Ditto.
10014 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10015
26806ce2
AC
100162002-02-07 Andrew Cagney <ac131313@redhat.com>
10017
10018 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10019 Add Richard Earnshaw to Arm maintainers.
10020
97fdab62
AC
100212002-02-07 Andrew Cagney <ac131313@redhat.com>
10022
a6b98203
AC
10023 * defs.h (warning_begin): Delete declaration.
10024
97fdab62
AC
10025 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10026 Delete macro.
10027
78b29b40
MS
100282002-02-07 Michael Snyder <msnyder@redhat.com>
10029
aaa38bb5 10030 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
10031 Logic bug, remove misplaced else.
10032
d8849953
KD
100332002-02-07 Klee Dienes <klee@apple.com>
10034
10035 * fork-inferior.c (fork_inferior): Add '!' to the list of
10036 characters that need to be quoted when building a string for the
10037 shell. Quote '!' specifically with a backslash, since CSH chokes
10038 when trying to evaluate "str!str".
aaa38bb5 10039
095778a0
NC
100402002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10041
10042 * rdi-share/host.h: Only provide a typedef for bool if it is not
10043 defined.
10044
1900040c
MS
100452002-02-04 Michael Snyder <msnyder@redhat.com>
10046
10047 * breakpoint.h (enum bptype): Add new overlay event bp type.
10048 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 10049
1900040c
MS
10050 * breakpoint.c (create_internal_breakpoint): New function.
10051 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10052 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10053 (create_thread_event_breakpoint): Ditto.
10054 (create_solib_event_breakpoint): Ditto.
10055 (create_overlay_event_breakpoint): New function.
10056 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10057 (update_breakpoints_after_exec): Delete and re-initialize
10058 overlay event breakpoints after an exec. Add FIXME comment
10059 about longjmp breakpoint.
10060 (print_it_typical): Ignore overlay event breakpoints.
10061 (print_one_breakpoint): Ditto.
10062 (mention): Ditto.
10063 (bpstat_what): Do not stop for overlay event breakpoints.
10064 (delete_breakpoint): Don't delete overlay event breakpoints.
10065 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10066 (breakpoint_re_set): Re-create overlay event breakpoint.
10067
10068 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10069 (overlay_manual_command): Disable overlay breakpoints.
10070 (overlay_off_command): Disable overlay breakpoints.
10071
082fc60d
RE
100722002-02-06 Richard Earnshaw <rearnsha@arm.com>
10073
10074 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10075 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10076 to here from config/tm-arm.h.
10077 (coff_sym_is_thumb): Make static.
10078 (arm_elf_make_msymbol_special): New function.
10079 (arm_coff_make_msymbol_special): New function.
10080 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10081 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10082 (coff_sym_is_thumb): Delete declaration.
10083 (arm_elf_make_msymbol_special): Declare.
10084 (arm_coff_make_msymbol_special): Declare.
10085 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10086 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10087
039c5766
RE
100882002-02-06 Richard Earnshaw <rearnsha@arm.com>
10089
10090 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10091
100922002-02-06 Richard Earnshaw <rearnsha@arm.com>
10093
10094 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10095 * gdbarch.c gdbarch.h: Regenerate.
10096 * arch-utils.c (default_print_float_info): New function.
10097 * arch-utils.h (default_print_float_info): Prototype it.
10098 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10099 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10100 (PRINT_FLOAT_INFO): Document it.
10101
10102 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10103 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10104 (PRINT_FLOAT_INFO): Define.
10105
58fa08f0
PM
101062002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10107
aaa38bb5 10108 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
10109 Add typecast to sprintf argument to suppress a warning.
10110
7393af7c
PM
101112002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10112
58fa08f0 10113 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
10114 to allow easier handling of pass state.
10115 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10116 that gives exception name and address.
10117 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 10118 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 10119 exceptions added.
aaa38bb5
AJ
10120 (child_continue): Correctly report continue_status.
10121 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 10122 TARGET_SIGNAL_0 (new default value).
aaa38bb5 10123 (child_resume): consider sig argument passed to decide if
7393af7c
PM
10124 the exception should be passed to debuggee or not.
10125
6af4589c
MS
101262002-02-05 Michael Snyder <msnyder@redhat.com>
10127
10128 * regcache.c (fetch_register): Call target_fetch_register
10129 only if we don't call FETCH_PSEUDO_REGISTER.
10130 (store_register): Call target_store_register only if we
10131 don't call STORE_PSEUDO_REGISTER.
10132
a2cf933a
EZ
101332002-02-05 Elena Zannoni <ezannoni@redhat.com>
10134
10135 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10136 ELF_MAKE_MSYMBOL_SPECIAL.
10137 * gdbarch.c, gdbarch.h: Regenerate.
10138 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 10139 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
10140 * elfread.c (elf_symtab_read): Compile use of
10141 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10142 multiarched.
10143 * coffread.c (coff_symtab_read): Ditto, for
10144 COFF_MAKE_MSYMBOL_SPECIAL.
10145
6bb7be43
JB
101462002-02-05 Jim Blandy <jimb@redhat.com>
10147
10148 * solib-svr4.c (svr4_truncate_ptr): New function.
10149 (svr4_relocate_section_addresses): Do the address arithmetic with
10150 the appropriate truncation for target addresses, even when
10151 CORE_ADDR is larger than a target address.
10152
e18651ec
DJ
101532002-02-05 Daniel Jacobowitz <drow@mvista.com>
10154
10155 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10156 to (int *).
10157
6b2725be
DJ
101582002-02-05 Daniel Jacobowitz <drow@mvista.com>
10159
10160 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10161 code.
10162
fca9e603
DJ
101632002-02-05 Daniel Jacobowitz <drow@mvista.com>
10164
10165 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10166
6c537a52
DJ
101672002-02-05 Daniel Jacobowitz <drow@mvista.com>
10168
10169 * gdbserver/linux-low.c: Remove unused include files.
10170
d844cde6
DJ
101712002-02-05 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10174 (read_inferior_memory): Use it.
10175 (write_inferior_memory): Likewise.
10176
d07c63e7
DJ
101772002-02-05 Daniel Jacobowitz <drow@mvista.com>
10178
10179 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10180 grubbing through sys_errlist.
10181
da6d8c04
DJ
101822002-02-05 Daniel Jacobowitz <drow@mvista.com>
10183
10184 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10185
5b421780
PM
101862002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10187 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10188
9f60d481
AC
101892002-02-04 Andrew Cagney <ac131313@redhat.com>
10190
10191 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10192 (do_sfunc, set_cmd_sfunc): New functions.
10193
10194 * command.h (struct cmd_list_element): Add field func.
10195 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10196 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10197 * cli/cli-decode.h: Ditto.
10198
10199 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10200 (help_all, help_cmd_list): Ditto.
10201 (find_cmd, complete_on_cmdlist): Ditto.
10202 * top.c (execute_command): Ditto.
10203
10204 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10205 function.sfunc.
10206
10207 * infcmd.c (notice_args_read): Fix function signature.
10208
10209 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10210 * cli/cli-decode.c (add_set_cmd): Ditto.
10211 * utils.c (initialize_utils): Ditto.
10212 * maint.c (_initialize_maint_cmds): Ditto.
10213 * infrun.c (_initialize_infrun): Ditto.
10214 * demangle.c (_initialize_demangler): Ditto.
10215 * remote.c (add_packet_config_cmd): Ditto.
10216 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10217 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10218 * proc-api.c (_initialize_proc_api): Ditto.
10219 * kod.c (_initialize_kod): Ditto.
10220 * valprint.c (_initialize_valprint): Ditto.
10221 * top.c (init_main): Ditto.
10222 * infcmd.c (_initialize_infcmd): Ditto.
10223 * corefile.c (_initialize_core): Ditto.
10224 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10225 * arch-utils.c (initialize_current_architecture): Ditto.
10226 (_initialize_gdbarch_utils): Ditto.
10227 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10228
10229 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10230 * wince.c (_initialize_inftarg): Ditto.
10231 * symfile.c (_initialize_symfile): Ditto.
10232 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10233 * language.c (_initialize_language): Ditto.
10234 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10235
f9ba0717
MS
102362002-02-04 Michael Snyder <msnyder@redhat.com>
10237
10238 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10239
0c74b2a7
DJ
102402002-02-04 Daniel Jacobowitz <drow@mvista.com>
10241
10242 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10243 Add rules for building the register data files.
10244
c638789f
DJ
102452002-02-04 Daniel Jacobowitz <drow@mvista.com>
10246
10247 * regformats/regdat.sh: Add braces to the definition of
10248 expedite_regs_${arch}.
10249
db253027
DJ
102502002-02-04 Daniel Jacobowitz <drow@mvista.com>
10251
10252 * regformats/regdef.h (struct reg): Add comment describing the
10253 requirements for offset and size fields.
10254
206be19c
AS
102552002-02-04 Andreas Schwab <schwab@suse.de>
10256
10257 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10258 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10259
181c1381
RE
102602002-02-04 Richard Earnshaw <rearnsha@arm.com>
10261
10262 * gdbarch.sh (copyright): Update years in generated header.
10263 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10264 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10265 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10266 * dbxread.c: Likewise.
10267 * dwarfread.c: Likewise.
10268 * elfread.c: Likewise.
10269 * somread.c: Likewise.
10270
10271 * arm-tdep.c (arm_smash_text_address): New function.
10272 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10273
fa4ba8da
PM
102742002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10275
10276 Add support for hardware watchpoints on win32 native.
aaa38bb5 10277 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10278 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10279 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10280 of debug registers.
10281 (debug_registers_changed): New variable. Reflects when debug registers
10282 are changed and need to be written to inferior.
aaa38bb5 10283 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10284 was set, used when new threads are created.
10285 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10286 i386-nat code.
10287 (thread_rec): Set dr array if id is the thread of current_event .
10288 (child_continue, child_resume): Change the debug registers for all
10289 threads if debug_registers_changed.
10290 (child_add_thread): Change the debug registers if debug_registers_used.
10291 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10292 Link nm.h to new nm-cygwin.h file.
10293 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10294 of hardware registers.
10295
a73c86fb
AC
102962002-02-03 Andrew Cagney <ac131313@redhat.com>
10297
10298 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10299 Restore behavour broken by 2002-01-20 Andrew Cagney
10300 <ac131313@redhat.com> IEEE_FLOAT removal.
10301
acf5ed49
DJ
103022002-02-03 Daniel Jacobowitz <drow@mvista.com>
10303
10304 * c-valprint.c (c_val_print): Pass a proper valaddr to
10305 cp_print_class_method.
10306 * valops.c (search_struct_method): If there is only one method
10307 and args is NULL, return that method.
10308
493d28d5
DJ
103092002-02-03 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10312 accessing tag_name directly.
10313
7495dfdb
DJ
103142002-02-03 Daniel Jacobowitz <drow@mvista.com>
10315
10316 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10317 of accessing tag_name directly.
10318
dd6bda65
DJ
103192002-02-03 Daniel Jacobowitz <drow@mvista.com>
10320
10321 PR gdb/280
10322 * gdbtypes.c (replace_type): New function.
10323 * gdbtypes.h (replace_type): Add prototype.
10324 * stabsread.c (read_type): Use replace_type.
10325
88fe217c
RE
103262002-02-03 Richard Earnshaw <rearnsha@arm.com>
10327
10328 * Makefile.in (memattr.o): Add missing dependencies rule.
10329
e5d66720
PS
103302002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10331
10332 * breakpoint.c (break_at_finish_command): Really export.
10333 (break_at_finish_at_depth_command): Ditto.
10334 (tbreak_at_finish_command): Ditto.
10335 * hppa-tdep.c: Include completer.h.
10336 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10337 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10338
fffee0be
AC
103392002-02-01 Andrew Cagney <ac131313@redhat.com>
10340
10341 * utils.c (do_write): New function.
10342 (error_stream): Rewrite combining the code from error_begin and
10343 verror.
10344 (verror): Rewrite using error_stream.
10345 (error_begin): Delete function.
10346
255e7dbf
AC
103472002-02-01 Andrew Cagney <ac131313@redhat.com>
10348
10349 * utils.c (error_begin): Make static.
10350 * defs.h (error_begin): Delete declaration.
10351
10352 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10353 (decode_line_1): Use cplusplus_error instead of error_begin,
10354 cplusplus_hint and return_to_top_level.
10355 * coffread.c (coff_symfile_read): Use error instead of error_begin
10356 and return_to_top_level.
10357 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10358
ddfe3c15
AC
103592002-02-01 Andrew Cagney <ac131313@redhat.com>
10360
10361 * language.h (type_error, range_error): Make string parameter
10362 constant.
10363 * language.c (warning_pre_print): Delete extern declaration.
10364 * dwarfread.c (warning_pre_print): Ditto.
10365 * language.c (type_error, range_error): Rewrite to use verror and
10366 vwarning instead of warning_begin.
10367
03ac34d5
MS
103682002-02-01 Michael Snyder <msnyder@redhat.com>
10369
261c4ca2
MS
10370 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10371 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10372
e00d1dc8
AC
103732002-02-01 Andrew Cagney <ac131313@redhat.com>
10374
10375 * command.h (NO_FUNCTION): Delete macro.
10376 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10377 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10378 * tracepoint.c (_initialize_tracepoint): Ditto.
10379 * cli/cli-decode.c (add_set_cmd): Ditto.
10380 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10381
76b79d6e
DJ
103822002-02-01 Daniel Jacobowitz <drow@mvista.com>
10383
10384 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10385 Update ``this'' pointer when calling virtual functions.
10386
799f9e91
MS
103872002-02-01 Michael Snyder <msnyder@redhat.com>
10388
c7bd442c 10389 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10390 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10391
3cf384d4
DJ
103922002-02-01 Daniel Jacobowitz <drow@mvista.com>
10393
10394 * regformats/reg-arm.dat: New file.
10395 * regformats/reg-i386.dat: New file.
10396 * regformats/reg-ia64.dat: New file.
10397 * regformats/reg-m68k.dat: New file.
10398 * regformats/reg-mips.dat: New file.
10399 * regformats/reg-ppc.dat: New file.
10400 * regformats/reg-sh.dat: New file.
10401 * regformats/regdef.h: New file.
10402 * regformats/regdat.sh: New file.
10403
0defa245
RE
104042002-02-01 Richard Earnshaw <reanrsha@arm.com>
10405
10406 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10407 (arm_frame_args_address, arm_frame_locals_address): New functions.
10408 (arm_frame_num_args): New function.
10409 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10410 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10411 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10412
405f26e6
MS
104132002-01-31 Michael Snyder <msnyder@redhat.com>
10414
502fd408
MS
10415 * breakpoint.c (break_at_finish_command): Export.
10416 (break_at_finish_at_depth_command): Export.
10417 (tbreak_at_finish_command): Export.
d6020d45 10418 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 10419 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 10420 "txbreak" commands, which are HPPA specific.
502fd408 10421
7d35e135
MS
10422 * printcmd.c (disassemble_command): Remove an ancient
10423 artifact of an old merge.
10424
aaa38bb5 10425 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10426 Define enum constant values for overlay mode.
10427 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10428 (overlay_is_mapped, overlay_auto_command,
10429 overlay_manual_command): Ditto.
d874f1e2 10430
aaa38bb5
AJ
10431 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10432 breakpoint_here_p, breakpoint_inserted_here_p,
10433 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10434 describe_other_breakpoints, check_duplicates, clear_command):
10435 Coding standard fixes.
10436
8add0441 10437 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10438 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10439 code: check bfd SEC_READONLY flag for section.
10440
e351066e
AC
104412002-01-31 Andrew Cagney <ac131313@redhat.com>
10442
7d35e135 10443 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10444
8a48e967
DJ
104452002-01-30 Daniel Jacobowitz <drow@mvista.com>
10446
10447 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10448 data symbols, since we search based on textlow and texthigh.
10449 (find_pc_sect_symtab): Likewise.
10450
f5a96129
AC
104512002-01-30 Andrew Cagney <ac131313@redhat.com>
10452
10453 * defs.h (vwarning): Declare.
f5a96129
AC
10454 * utils.c (vwarning): New function.
10455 (warning): Call vwarning.
10456 (warning_begin): Delete function.
10457
10458 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10459 the warning message.
10460 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10461 warning_begin.
10462
cefd4ef5
MS
104632002-01-30 Michael Snyder <msnyder@redhat.com>
10464
1a703748
MS
10465 * NEWS: Mention "set trust-readonly-sections" command.
10466 Mention generate-core-file command.
cefd4ef5 10467
3a11626d
MS
104682002-01-15 Michael Snyder <msnyder@redhat.com>
10469
10470 * target.c: New command, "set trust-readonly-sections on".
10471 (do_xfer_memory): Honor the suggestion to trust readonly sections
10472 by reading them from the object file instead of from the target.
10473 (initialize_targets): Register command "set trust-readonly-sections".
10474
d1c7e53b
AC
104752002-01-29 Andrew Cagney <ac131313@redhat.com>
10476
10477 * parse.c (target_map_name_to_register): Simplify, search regs and
10478 pseudo-regs using a single loop.
10479
e2c9a72c
AC
104802002-01-30 Andrew Cagney <ac131313@redhat.com>
10481
10482 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10483
69824b4e
MK
104842002-01-15 Rodney Brown <rbrown64@csc.com.au>
10485
10486 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10487 * config/i386/i386v42mp.mh: Add i387-nat.o .
10488 * i386v4-nat.c: Include i387-nat.h.
10489 (supply_fpregset): Use i387_supply_fsave.
10490 (fill_fpregset): Use i387_fill_fsave.
10491
6eb69eab
RE
104922002-01-30 Richard Earnshaw <rearnsha@arm.com>
10493
10494 * arm-tdep.c (arm_call_dummy_words): Define.
10495 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10496 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10497 (CALL_DUMMY_WORDS): Define.
10498 (arm_call_dummy_words): Declare.
10499 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10500 (arm_linux_call_dummy_words): Declare.
10501
9852326a
AS
105022002-01-30 Andreas Schwab <schwab@suse.de>
10503
10504 * m68klinux-nat.c: Fix last change to use regcache_collect
10505 instead of referencing registers[] directly.
10506
977a3030
AC
105072002-01-29 Andrew Cagney <ac131313@redhat.com>
10508
10509 * parse.c (target_map_name_to_register): Delete code wrapped in
10510 #ifdef REGISTER_NAME_ALIAS_HOOK.
10511
2076c72b
MS
105122002-01-28 Michael Snyder <msnyder@redhat.com>
10513
10514 * regcache.c (legacy_read_register_gen): Need to be able to
10515 read pseudo-register as well as real register.
10516 (legacy_write_register_gen): Ditto.
10517
8fcc723b
AC
105182002-01-28 Andrew Cagney <ac131313@redhat.com>
10519
10520 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10521 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10522 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10523 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10524 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10525 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10526 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10527 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10528 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10529 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10530 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10531 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10532 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10533 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10534 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10535 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10536 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10537 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10538 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10539 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10540
afe64c1a
AC
105412002-01-28 Andrew Cagney <ac131313@redhat.com>
10542
10543 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10544 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10545 (initialize_current_architecture): Update target_byte_order using
10546 information from BFD.
aaa38bb5 10547 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10548 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10549
75bc7ddf
AC
105502002-01-28 Andrew Cagney <ac131313@redhat.com>
10551
10552 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10553 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10554
10555 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10556 #ifdef INVALID_FLOAT.
10557 * infcmd.c (do_registers_info): Ditto.
10558 * values.c (unpack_double): Ditto. Add comment.
10559
10560 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10561 already commented out.
10562
0280a90a
AS
105632002-01-26 Andreas Schwab <schwab@suse.de>
10564
10565 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10566 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10567 registers and add support for PTRACE_GETREGS.
10568
7072a954
AC
105692002-01-24 Andrew Cagney <ac131313@redhat.com>
10570
10571 GDB 5.1.1 released from 5.1 branch.
10572 * NEWS: Add 5.1.1 news.
10573 * README: Sync with 5.1 branch.
10574
86f902e0
FF
105752002-01-23 Fred Fish <fnf@redhat.com>
10576
10577 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10578 stabstring on initial malloc. Reallocing will copy it for us,
10579 if necessary.
10580
8af51c36
EZ
105812002-01-23 Elena Zannoni <ezannoni@redhat.com>
10582
aaa38bb5 10583 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10584 (HFILES_NO_SRCDIR): Remove hpread.h.
10585 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10586 (hpread.o): Update dependencies.
10587 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10588
10589 * hp-psymtab-read.c: Remove file.
10590 * hp-symtab-read.c: Remove file.
10591 * hpread.h: Remove file.
10592
10593 * hpread.c: Merge all contents of hp-psymtab-read.c,
10594 hp-symtab-read.c and hpread.h into this file, as it was prior to
10595 January 1999.
10596
10597 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10598 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10599 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10600 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10601
dc5cfeb6
EZ
106022002-01-23 Elena Zannoni <ezannoni@redhat.com>
10603
10604 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10605 fill_gregset): Call gdbarch_tdep() just once, assign result to
10606 variable and use that, instead of calling the function several
10607 times.
10608
ea87b71b
AO
106092002-01-24 Alexandre Oliva <aoliva@redhat.com>
10610
10611 * configure.host: Accept sparcv9 as alias for sparc64.
10612 * configure.tgt: Likewise.
10613
13fc0c2f
KB
106142002-01-22 Kevin Buettner <kevinb@redhat.com>
10615
10616 * solib-aix5.c (build_so_list_from_mapfile)
10617 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10618 arguments is not reversed.
10619 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10620 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10621
7bd872fe
EZ
106222002-01-22 Elena Zannoni <ezannoni@redhat.com>
10623
10624 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10625 modified version of obsolete sh_fetch_pseudo_register.
10626 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10627 (sh4_register_read): New function.
10628 (sh_pseudo_register_write): New function. Renamed and modified
10629 version of obsolete sh_store_pseudo_register.
10630 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10631 (sh4_register_write): New function.
10632 (sh_gdbarch_init): Remove setting of gdbarch function
10633 fetch_pseudo_register and store_pseudo_register. Remove setting of
10634 register_convert_to_raw, register_convert_to_virtual,
10635 register_convertible.
10636 (sh_sh4_register_convertible): Delete. No longer needed. All is
10637 taken care by architecture specific functions
10638 register_read/register_write.
10639 (sh_sh4_register_convert_to_virtual): Make static.
10640 (sh_sh4_register_convert_to_raw): Ditto.
10641
069e84fd
AC
106422002-01-22 Andrew Cagney <ac131313@redhat.com>
10643
10644 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10645 (floatformat_is_nan, floatformat_mantissa): Ditto.
10646
10647 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10648 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10649 builtin_type_ieee_double_little,
10650 builtin_type_ieee_double_littlebyte_bigword,
10651 builtin_type_m68881_ext, builtin_type_i960_ext,
10652 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10653 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10654 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10655 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10656
211a4f69
CV
106572002-01-22 Corinna Vinschen <vinschen@redhat.com>
10658
10659 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10660 parameter. Set frameless flag if it exists and depended of
10661 whether the scanned function is frameless or not.
10662 (xstormy16_skip_prologue): If function is frameless, return
10663 result of xstormy16_scan_prologue().
10664 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10665 call.
10666
f81353e4
EZ
106672002-01-21 Elena Zannoni <ezannoni@redhat.com>
10668
10669 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10670 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10671 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10672 sh_sh4_register_byte, sh_sh4_register_raw_size,
10673 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10674 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10675 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10676 sh_store_pseudo_register, sh_do_pseudo_register): Call
10677 gdbarch_tdep() just once, assign result to variable and use that,
10678 instead of calling the function several times.
10679
63c73a17
MK
106802002-01-20 Mark Kettenis <kettenis@gnu.org>
10681
10682 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10683 macros instead of LAST_FPU_CTRL_REGNUM.
10684 (store_register): Likewise.
10685
39ad761d
JB
106862002-01-21 Jim Blandy <jimb@redhat.com>
10687
10688 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10689 is up-to-date before running the program, not just when a program
10690 exits.
10691
3d74b771
FF
106922002-01-21 Fred Fish <fnf@redhat.com>
10693
10694 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10695 when we have found all instructions we are looking for.
10696
966fbf70
RE
106972002-01-21 Richard Earnshaw <rearnsha@arm.com>
10698
10699 * arm-tdep.c (arm_register_name): New function.
10700 (arm_registers_names): Make static.
10701 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10702 (arm_register_name): Declare.
10703 (REGISTER_NAME): Use it.
10704
c3b4394c
RE
107052002-01-21 Richard Earnshaw <rearnsha@arm.com>
10706 Kevin Buettner <kevinb@redhat.com>
10707
10708 Convert arm targets to new FRAME interface.
10709 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10710 (arm_frame_find_save_regs): Delete.
10711 (arm_frame_init_saved_regs): New.
10712 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10713 Allocate extra_info as required. Convert all uses of fsr.regs
10714 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10715 to use extra_info.
10716 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10717 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10718 (check_prologue_cache, save_prologue_cache): Likewise.
10719 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10720 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10721 (FRAME_FIND_SAVED_REGS): Delete.
10722 (arm_frame_find_saved_regs): Delete prototype.
10723 (arm_frame_init_saved_regs): New prototype.
10724 (FRAME_INIT_SAVED_REGS): Define.
10725
61d99182
AC
107262002-01-20 Andrew Cagney <ac131313@redhat.com>
10727
10728 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10729
6aaea291
AC
107302002-01-20 Andrew Cagney <ac131313@redhat.com>
10731
10732 From Jeff Law <law@redhat.com>:
10733 * infttrace.c: Include <sys/pstat.h>.
10734 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10735 exec file if the ttrace equivalent fails.
10736
15f698d2
AC
107372002-01-20 Andrew Cagney <ac131313@redhat.com>
10738
10739 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10740 (closeLogFile): Ditto.
10741
f86ddd7c
MC
107422002-01-20 Michael Chastain <mec@shout.net>
10743
10744 * top.c (print_gdb_version): Bump copyright year to 2002.
10745
904507ce
AC
107462002-01-20 Andrew Cagney <ac131313@redhat.com>
10747
10748 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10749 Zannoni and Eli Zaretskii.
10750
d7f0b9ce
DJ
107512002-01-20 Daniel Jacobowitz <drow@mvista.com>
10752
10753 * buildsym.c: Update copyright years.
10754 * c-typeprint.c: Likewise.
10755 * dwarf2read.c: Likewise.
10756 * f-typeprint.c: Likewise.
10757 * gdbtypes.c: Likewise.
10758 * gdbtypes.h: Likewise.
10759 * hp-symtab-read.c: Likewise.
10760 * hpread.c: Likewise.
10761 * mdebugread.c: Likewise.
10762 * p-typeprint.c: Likewise.
10763
3fd3d7d2
AC
107642002-01-20 Andrew Cagney <ac131313@redhat.com>
10765
10766 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10767 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10768 byte-order selectable.
10769 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10770 * arch-utils.c: Ditto.
10771 (set_endian): Ditto.
10772 (set_endian_from_file): Ditto.
10773 * gdbserver/low-sim.c (create_inferior): Ditto.
10774 * gdbarch.sh: Ditto.
10775 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10776 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10777 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10778 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10779 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10780 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10781 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10782 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10783 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10784 macro definition.
10785 * config/mips/tm-wince.h: Remove #undef of macro
10786 TARGET_BYTE_ORDER_SELECTABLE.
10787 * config/sh/tm-wince.h: Ditto.
10788
b02dede2
DJ
107892002-01-20 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10792 member function fields. Add accessor macro
10793 TYPE_FN_FIELD_ARTIFICIAL.
10794 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10795 * c-typeprint.c (c_type_print_base): Skip artificial member
10796 functions.
10797
c3643761
DJ
107982002-01-20 Daniel Jacobowitz <drow@mvista.com>
10799
10800 * f-typeprint.c: Delete unused function f_type_print_args.
10801 * p-typeprint.c: Delete unused function pascal_type_print_args.
10802
8176bb6d
DJ
108032002-01-20 Daniel Jacobowitz <drow@mvista.com>
10804
10805 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10806 comment. Add ``artificial'' to ``union field_location''.
10807
10808 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10809
10810 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10811 * mdebugread.c (parse_symbol): Likewise.
10812 * stabsread.c (define_symbol): Likewise.
10813 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10814 initializing TYPE_FIELD_BITPOS to n (obsolete).
10815 (hpread_doc_function_type): Likewise.
10816 * hpread.c (hpread_function_type): Likewise.
10817
7fd60527
AC
108182002-01-20 Andrew Cagney <ac131313@redhat.com>
10819
10820 * configure.in (host_makefile_frag): Only require a host makefile
10821 fragment when a native build.
10822 * configure: Re-generate.
10823
c2f05ac9
AC
108242002-01-20 Andrew Cagney <ac131313@redhat.com>
10825
10826 * doublest.h (floatformat_from_type): Declare.
10827 * doublest.c (floatformat_from_type): New function.
10828 (convert_typed_floating): Use.
10829
10830 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10831 call to function floatformat_from_type.
10832
10833 * gdbarch.sh (IEEE_FLOAT): Delete.
10834 * gdbarch.h, gdbarch.c: Re-generate.
10835 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10836 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10837 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10838 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10839 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10840 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10841 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10842 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10843 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10844 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10845 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10846 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10847
10848 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10849 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10850 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10851 * sh-tdep.c (sh_gdbarch_init): Ditto.
10852 * mips-tdep.c (mips_gdbarch_init): Ditto.
10853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10854 * cris-tdep.c (cris_gdbarch_init): Ditto.
10855
abf22e64
AJ
108562002-01-20 Jiri Smid <smid@suse.cz>
10857
10858 * configure.host, configure.tgt: Support x86-64.
10859 * NEWS: Note new target x86-64.
10860
b7c4cbf8
AJ
10861 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10862 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10863 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10864 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10865 x86-64-linux-nat.o): Fix dependencies.
10866
82600034
AC
108672002-01-19 Andrew Cagney <ac131313@redhat.com>
10868
10869 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10870 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10871 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10872 * config/sparc/xm-sun4os4.h: Delete file.
10873 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10874
bbe5c628
AC
108752002-01-19 Andrew Cagney <ac131313@redhat.com>
10876
10877 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10878 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10879 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10880 * config/i386/i386lynx.mh (XM_FILE): Delete.
10881 * config/rs6000/xm-rs6000ly.h: Delete file.
10882 * config/sparc/xm-sparclynx.h: Delete file.
10883 * config/m68k/xm-m68klynx.h: Delete file.
10884 * config/i386/xm-i386lynx.h: Delete file.
10885 * config/xm-lynx.h: Delete file.
10886 * config/djgpp/fnchange.lst: Update.
10887
f8453e34
JT
108882002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10889
10890 * alpha-tdep.c (alpha_register_byte): New function.
10891 (alpha_register_raw_size): Ditto.
10892 (alpha_register_virtual_size): Ditto.
10893 (alpha_skip_prologue_internal): Renamed from
10894 alpha_skip_prologue.
10895 (alpha_skip_prologue): New version that calls
10896 alpha_skip_prologue_internal.
10897 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10898 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10899 second argument from alpha_skip_prologue.
10900 (REGISTER_BYTE): Use alpha_register_byte.
10901 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10902 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10903 (FRAMELESS_FUNCTION_INVOCATION): Use
10904 generic_frameless_function_invocation_not.
10905 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10906 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10907
52d9e613
AC
109082002-01-19 Andrew Cagney <ac131313@redhat.com>
10909
10910 * config/mips/xm-news-mips.h: Delete file.
10911 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10912
10913 * config/m88k/xm-m88k.h: Delete file.
10914 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10915 * config/m88k/xm-delta88v4.h: Ditto.
10916 * config/m88k/xm-delta88.h: Ditto.
10917
10918 * config/alpha/xm-fbsd.h: Delete file.
10919 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10920
10921 * config/sparc/xm-sparc.h: Delete file.
10922 * Makefile.in (xm-sun4os4.h): Delete dependency.
10923 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10924 * config/sparc/xm-sun4os4.h: Ditto.
10925 * config/sparc/xm-linux.h: Ditto.
10926
10927 * config/i386/xm-windows.h: Delete file.
10928
2d1b2124
AC
109292002-01-19 Andrew Cagney <ac131313@redhat.com>
10930
10931 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10932 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10933
ee1f65f0
JT
109342002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10935
10936 * alpha-tdep.c (alpha_call_dummy_words): New.
10937 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10938 (CALL_DUMMY_P): Define.
10939 (CALL_DUMMY_WORDS): Define.
10940 (SIZEOF_CALL_DUMMY_WORDS): Define.
10941
98081e55
PB
109422002-01-19 Per Bothner <per@bothner.com>
10943
10944 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10945 isn't NULL, which can happen with some gcj-3.x-produced code.
10946
0d056799
JT
109472002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10948
10949 * alpha-tdep.c (alpha_register_virtual_type): New function.
10950 (alpha_init_frame_pc_first): Ditto.
10951 (alpha_fix_call_dummy): Ditto.
10952 (alpha_store_struct_return): Ditto.
10953 (alpha_extract_struct_value_address): Ditto.
10954 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10955 alpha_register_virtual_type.
10956 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10957 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10958 alpha_extract_struct_value_address.
10959 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10960 (INIT_FRAME_PC): Use init_frame_pc_noop.
10961 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10962
4604bcad
MK
109632002-01-19 Mark Kettenis <kettenis@gnu.org>
10964
10965 * i386gnu-nat.c: Include "i386-tdep.h".
10966 (fetch_fpregs): Simplify code dealing with uninitialized floating
10967 point states such that it doesn't require FP7_REGNUM.
10968
140f9984
JT
109692002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10970
abf22e64
AJ
10971 * alpha-tdep.c (frame_extra_info): New.
10972 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10973 frame->extra_info.
10974 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10975 (alpha_frame_saved_pc): Use frame->extra_info.
10976 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10977 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10978 (init_extra_frame_info): Rename to...
10979 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10980 (alpha_print_extra_frame_info): New function.
140f9984
JT
10981 (alpha_frame_locals_address): Ditto.
10982 (alpha_frame_args_address): Ditto.
abf22e64 10983 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10984 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10985 alpha_frame_args_address.
abf22e64 10986 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10987 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10988 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10989 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10990 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10991 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10992
d734c450
JT
109932002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10994
10995 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10996 (alpha_cannot_fetch_register): Ditto.
10997 (alpha_cannot_store_register): Ditto.
10998 (alpha_register_convertible): Ditto.
10999 (alpha_use_struct_convention): Ditto.
11000 * config/alpha/tm-alpha.h: Update copyright years.
11001 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11002 (INNER_THAN): Use core_addr_lessthan.
11003 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11004 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11005 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11006 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11007 (FRAME_CHAIN): Remove unnecessary cast.
11008
b4ceaee6
AC
110092002-01-18 Andrew Cagney <ac131313@redhat.com>
11010
11011 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11012 obsolete.
11013
0a65a603
AC
110142002-01-18 Andrew Cagney <ac131313@redhat.com>
11015
11016 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11017 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11018 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11019 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11020 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11021 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11022 * x86-64-linux-nat.c: Ditto.
11023
636a6dfc
JT
110242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11025
abf22e64 11026 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
11027 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11028 (REGISTER_NAME): Define.
11029
acceddb6
JT
110302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11031
11032 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11033
ec32e4be
JT
110342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11035
11036 * alpha-tdep.c: Update copyright years.
11037 (alpha_next_pc): New function.
11038 (alpha_software_single_step): Ditto.
11039 * config/alpha/tm-alpha.h: Add prototype for
11040 alpha_software_single_step.
11041
e771a871
JT
110422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11043
11044 * alphabsd-nat.c: Update copyright years.
11045 (fill_gregset): Use regcache_collect.
11046 (fill_fpregset): Likewise.
11047 (fetch_inferior_registers): Only fetch integer registers
11048 if requested to do so.
11049 (store_inferior_registers): Only store integer registers
11050 if requested to do so.
11051
7708fa01
AC
110522002-01-17 Andrew Cagney <ac131313@redhat.com>
11053
11054 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11055 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11056 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11057 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11058 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11059 * config/arm/linux.mh (XDEPFILES): Delete.
11060 * config/arm/nbsd.mh (XDEPFILES): Delete.
11061 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11062 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11063 * config/i386/i386m3.mh (XDEPFILES): Delete.
11064 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11065 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11066 * config/i386/fbsd.mh (XDEPFILES): Delete.
11067 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11068 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11069 * config/i386/i386v4.mh (XDEPFILES): Delete.
11070 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11071 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11072 * config/i386/i386aix.mh (XDEPFILES): Delete.
11073 * config/i386/go32.mh (XDEPFILES): Delete.
11074 * config/i386/cygwin.mh (XDEPFILES): Delete.
11075 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11076 * config/i386/i386mach.mh (XDEPFILES): Delete.
11077 * config/i386/i386v32.mh (XDEPFILES): Delete.
11078 * config/i386/linux.mh (XDEPFILES): Delete.
11079 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11080 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11081 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11082 * config/i386/i386sco.mh (XDEPFILES): Delete.
11083 * config/i386/i386v.mh (XDEPFILES): Delete.
11084 * config/i386/nbsd.mh (XDEPFILES): Delete.
11085 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11086 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11087 * config/i386/symmetry.mh (XDEPFILES): Delete.
11088 * config/i386/obsd.mh (XDEPFILES): Delete.
11089 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11090 * config/ia64/linux.mh (XDEPFILES): Delete.
11091 * config/ia64/aix.mh (XDEPFILES): Delete.
11092 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11093 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11094 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11095 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11096 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11097 * config/m68k/linux.mh (XDEPFILES): Delete.
11098 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11099 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11100 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11101 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11102 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11103 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11104 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11105 * config/m88k/delta88.mh (XDEPFILES): Delete.
11106 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11107 * config/m88k/m88k.mh (XDEPFILES): Delete.
11108 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11109 * config/mips/linux.mh (XDEPFILES): Delete.
11110 * config/mips/irix6.mh (XDEPFILES): Delete.
11111 * config/mips/irix5.mh (XDEPFILES): Delete.
11112 * config/mips/irix4.mh (XDEPFILES): Delete.
11113 * config/mips/irix3.mh (XDEPFILES): Delete.
11114 * config/mips/decstation.mh (XDEPFILES): Delete.
11115 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11116 (NATDEPFILES): Move core-aout.o to here.
11117 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11118 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11119 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11120 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11121 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11122 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11123 * config/pa/hpux11.mh (XDEPFILES): Delete.
11124 * config/powerpc/aix.mh (XDEPFILES): Delete.
11125 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11126 * config/powerpc/linux.mh (XDEPFILES): Delete.
11127 * config/romp/rtbsd.mh: Rename XDEPFILES.
11128 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11129 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11130 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11131 * config/s390/s390.mh (XDEPFILES): Delete.
11132 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11133 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11134 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11135 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11136 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11137 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11138 * config/sparc/linux.mh (XDEPFILES): Delete.
11139 * config/vax/vaxult.mh (XDEPFILES): Delete.
11140 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11141 * Makefile.in (DEPFILES): Remove XDEPFILES.
11142
375fc983
AC
111432002-01-17 Andrew Cagney <ac131313@redhat.com>
11144
11145 * utils.c (internal_verror): Fix comments, default is yes not no.
11146 Update queries to match. Default to quit and dump core.
11147
8926118c
AC
111482002-01-17 Andrew Cagney <ac131313@redhat.com>
11149
11150 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11151 copyright.
11152 * defs.h, event-top.c, gdbcmd.h: Ditto.
11153 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11154 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11155 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11156 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11157 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11158 * mi/mi-main.c:Ditto.
11159
11160 * stack.c, symfile.c: Update copyright.
11161
45b7b345
DJ
111622002-01-17 Daniel Jacobowitz <drow@mvista.com>
11163
db728ff7
DJ
11164 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11165 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11166 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11167 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 11168
db728ff7
DJ
111692002-01-17 Daniel Jacobowitz <drow@mvista.com>
11170
11171 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11172 * gdbserver/low-lynx.c (myattach): Likewise.
11173 * gdbserver/low-nbsd.c (myattach): Likewise.
11174 * gdbserver/low-sim.c (myattach): Likewise.
11175 * gdbserver/low-sparc.c (myattach): Likewise.
11176 * gdbserver/low-sun3.c (myattach): Likewise.
11177
11178 * gdbserver/low-linux.c (myattach): New function.
45b7b345 11179
db728ff7 11180 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
11181 (main): Handle "--attach".
11182
8de3c354
AC
111832002-01-16 Andrew Cagney <ac131313@redhat.com>
11184
11185 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11186 maintainer.
11187
b0129042
DJ
111882002-01-15 Daniel Jacobowitz <drow@mvista.com>
11189
11190 * c-typeprint.c (is_type_conversion_operator): Add additional
11191 check for non-conversion operators.
11192
ba8679fb 111932002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
11194
11195 * linux-proc.c: Add "info proc" command, a la procfs.c.
11196 (read_mapping): New function, abstract and re-use code.
11197 (linux_find_memory_regions): Use new func read_mapping.
11198 (linux_info_proc_cmd): New function, implement "info proc".
11199 (_initialize_linux_proc): Add new command "info proc".
11200
e4f9b4d5
MS
112012002-01-15 Michael Snyder <msnyder@redhat.com>
11202
11203 * symfile.c (generic_load): Use bfd_map_over_sections method
11204 instead of manipulating bfd structure members directly.
11205 (add_section_size_callback): New function, bfd sections callback
11206 used by generic_load.
11207 (load_sections_callback): New function, bfd sections callback
11208 used by generic_load.
11209
08cf96df
EZ
112102002-01-15 Elena Zannoni <ezannoni@redhat.com>
11211
abf22e64 11212 [Based on work by Jim Blandy]
08cf96df
EZ
11213 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11214 (builtin_type_vec128): Export.
11215 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11216 types.
11217 (builtin_type_vec128): New builtin type for 128 bit vector
11218 registers.
11219 (build_gdbtypes): Initialize builtin_type_v16qi and
11220 builtin_type_v8hi. Create the vec128 register builtin type
11221 structure.
11222 (build_builtin_type_vec128): New function.
abf22e64 11223 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11224 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11225 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11226 AltiVec register to new builtin type.
11227
d7242108
DJ
112282001-01-15 Daniel Jacobowitz <drow@mvista.com>
11229
11230 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11231 to make_cv_type.
11232
4ee3352d
AC
112332002-01-14 Andrew Cagney <ac131313@redhat.com>
11234
11235 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11236 CLEAN_UP_REGISTER_VALUE.
11237 * regcache.c (supply_register): Update only call.
11238
f015b2e7
AC
112392002-01-14 Andrew Cagney <ac131313@redhat.com>
11240
11241 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11242 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11243 a29k-*-vxworks* targets as obsolete.
11244
356ae49d
MS
112452002-01-14 Michael Snyder <msnyder@redhat.com>
11246
11247 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11248 until we can resolve portability issues.
11249 * gregset.h: Remove references to fpxregs.
11250 * gcore.c (gcore_command): Initialize note_sec to NULL.
11251
ade8f45e
AC
112522002-01-13 Andrew Cagney <ac131313@redhat.com>
11253
11254 * signals.c (target_signal_to_name): Rewrite. Only use
11255 signals[].name when in bounds and non-NULL.
abf22e64 11256
89c49e7a
AC
112572002-01-13 Andrew Cagney <ac131313@redhat.com>
11258
11259 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11260 * signals.c (target_signal_to_name): Verify that SIG is within the
11261 bounds of the signals array.
11262
4daa9f9f
AC
112632002-01-13 Andrew Cagney <ac131313@redhat.com>
11264
11265 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11266
ba4bbdcb
KS
112672002-01-13 Keith Seitz <keiths@redhat.com>
11268
11269 * stack.c (print_frame_info_base): Print the frame's pc
11270 only if when print_frame_info_listing_hook is not defined.
11271
575bbeb6
KS
112722002-01-13 Keith Seitz <keiths@redhat.com>
11273
11274 * varobj.c (varobj_set_value): Make sure that there were no
11275 errors evaluating the object before attempting to set its
11276 value.
11277 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11278 so this offset adjustment is no longer necessary.
11279 (create_child): Don't set the error flag if the child is
11280 a CPLUS_FAKE_CHILD.
11281 (value_of_child): If value_fetch_lazy fails, return NULL
11282 so that callers will be notified that an error occurred.
11283 (c_value_of_variable): Delay check of variable's validity
11284 until later. We actually want all structs and unions to have
11285 the value "{...}".
11286 Do not return "???" for variables which could not be evaluated.
11287 This error condition must be returned to the caller so that it
11288 can get the error condition from gdb.
11289 (cplus_name_of_child): Adjust index for vptr before figuring
11290 out the name of the child.
11291 (cplus_value_of_child): If a child's (real) parent is not valid,
11292 don't even bother trying to give a value for it. Just return
11293 an error. Change all instances in this function.
11294 (cplus_type_of_child): If our parent is one of the "fake"
11295 parents, we need to get at the type of the real parent, and
11296 derive the child's true type using this information.
11297
b76898ab
AC
112982002-01-13 Andrew Cagney <ac131313@redhat.com>
11299
11300 From 2002-01-09 John Marshall <johnm@falch.net>:
11301 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11302 sources.redhat.com, and tweak some related URLs which had
11303 suffered from linkrot.
11304
b6649e88
AC
113052002-01-13 Andrew Cagney <ac131313@redhat.com>
11306
11307 From Jeff law:
11308 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11309 structures passed in registers.
11310
82cc5033
EZ
113112002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11312
11313 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11314 white space which prevented compilation. Reported by DSK
11315 <dsk@student.unsw.edu.au>.
11316
ba5f2f8a
MS
113172002-01-11 Michael Snyder <msnyder@redhat.com>
11318
fbd35540
MS
11319 * symfile.c (build_section_addr_info_from_section_tab):
11320 Use bfd access method instead of manipulating bfd directly.
11321 (syms_from_objfile): Ditto.
11322 (simple_overlay_update_1): Ditto.
11323 (simple_overlay_update): Ditto.
11324 (generic_load): Ditto.
11325 (overlay_unmapped_address): FIXME comment, bfd access methods.
11326 (sections_overlap): FIXME comment, bfd access methods.
11327 (pc_in_mapped_range): FIXME comment, bfd access methods.
11328 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11329 (section_is_mapped): FIXME comment, bfd access methods.
11330 (section_is_overlay): FIXME comment, bfd access methods.
11331
ba5f2f8a
MS
11332 * symfile.c (generic_load): Whitespace and long line cleanups.
11333 Remove duplicate variable, change several local variables to
11334 more appropriate data types.
11335 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11336
17df2af6
AC
113372002-01-12 Andrew Cagney <ac131313@redhat.com>
11338
11339 From Peter Schauer:
11340 * language.c (longest_local_hex_string_custom): Use phex_nz to
11341 convert NUM to a hex string.
11342
ec920329
EZ
113432002-01-12 Elena Zannoni <ezannoni@redhat.com>
11344
11345 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11346 the function.
538a76d6 11347 Update Copyright year.
ec920329 11348
3abd2e01
AC
113492002-01-12 Andrew Cagney <ac131313@redhat.com>
11350
11351 * language.c (longest_raw_hex_string): Delete unused function.
11352
b21b22e0
PS
113532002-01-11 Petr Sorfa <petrs@caldera.com>
11354
11355 * MAINTAINERS (write-after-approval): Add myself.
11356 * dwarf2read.c (read_tag_string_type): Handling of
11357 DW_AT_byte_size.
11358 (read_tag_string_type): FORTRAN fix to prevent propagation of
11359 first string size.
11360 (set_cu_language): Handling of DW_LANG_Fortran95
11361
747fe712
RE
113622002-01-11 Richard Earnshaw <rearnsha@arm.com>
11363
11364 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11365 GETPID(inferior_ptid).
11366 (store_inferior_registers): Likewise.
11367
f1bea926
JM
113682002-01-10 Jason Merrill <jason@redhat.com>
11369
11370 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11371 Fix DW_OP_minus.
11372
ae940673
AC
113732002-01-10 Andrew Cagney <ac131313@redhat.com>
11374
11375 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11376 and bfd/elf32-sh-nbsd.c.
11377
00546b04
MS
113782002-01-10 Michael Snyder <msnyder@redhat.com>
11379
352ed7b4
MS
11380 * NEWS: Mention --pid and corefile/proc-id behavior change.
11381
c18be923
MS
11382 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11383 * gcore.c: Include cli/cli-decode.h instead of command.h.
11384
00546b04
MS
11385 * main.c (captured_main): Add new command line option "--pid".
11386 If the second command line argument (following the symbol-file)
11387 begins with a digit, try to attach to it before trying to open
11388 it as a corefile.
11389 (print_gdb_help): Document the "--pid" argument.
11390
db60ec62
EZ
113912002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11392
11393 * completer.c (command_completer): New function.
11394
11395 * completer.h <command_completer>: Add prototype.
11396
11397 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11398 completer for the "help" command.
11399
39c22d1a
JM
114002002-01-09 Jason Merrill <jason@redhat.com>
11401
11402 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11403
c564377f
MS
114042002-01-09 Michael Snyder <msnyder@redhat.com>
11405
975aec09
MS
11406 * i386-linux-nat.c (fill_fpxregset): Make global.
11407 (store_fpxregset): Ditto.
11408
db4a10fa
MS
11409 * gregset.h (gdb_fpxregset_t): Define.
11410 (supply_fpxregset): Prototype.
11411 (fill_fpxregset): Prototype.
11412
c564377f
MS
11413 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11414
c3d45d70
RE
114152002-01-09 Richard Earnshaw <rearnsha@arm.com>
11416
11417 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11418 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11419 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11420
fcc87af1
AC
114212002-01-09 Andrew Cagney <ac131313@redhat.com>
11422
11423 * MAINTAINERS: Update target maintainer rules so that any
11424 Maintainer can approve a tested patch for a maintenance-only
11425 target.
11426
dd96c05b
RE
114272002-01-09 Richard Earnshaw <rearnsha@arm.com>
11428
d4297db9 11429 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11430
d4297db9 11431 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11432 IN_SIGTRAMP.
11433
145fdc6e
MS
114342002-01-08 Michael Snyder <msnyder@redhat.com>
11435
11436 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11437 real name of the executable, rather than the /proc name.
11438
be4d1333
MS
114392002-01-03 Michael Snyder <msnyder@redhat.com>
11440
11441 Implement a "generate-core-file" command in gdb, save target state.
11442 * gcore.c: New file. Implement new command 'generate-core-file'.
11443 Save a corefile image of the current state of the inferior.
11444 * linux-proc.c: Add linux-specific code for saving corefiles.
11445 * target.h (struct target_ops): Add new target vectors for saving
11446 corefiles; to_find_memory_regions and to_make_corefile_notes.
11447 (target_find_memory_regions): New macro.
11448 (target_make_corefile_notes): New macro.
11449 * target.c (update_current_target): Inherit new target methods.
11450 (dummy_find_memory_regions): New place-holder method.
11451 (dummy_make_corefile_notes): New place-holder method.
11452 (init_dummy_target): Initialize new dummy target vectors.
11453 * exec.c (exec_set_find_memory_regions): New function.
11454 Allow the exec_ops vector for memory regions to be taken over.
11455 (exec_make_note_section): New function, target vector method.
11456 * defs.h (exec_set_find_memory_regions): Export prototype.
11457 * procfs.c (proc_find_memory_regions): New function, corefile method.
11458 (procfs_make_note_section): New function, corefile method.
11459 (init_procfs_ops): Set new target vector pointers.
11460 (find_memory_regions_callback): New function.
11461 (procfs_do_thread_registers): New function.
11462 (procfs_corefile_thread_callback): New function.
11463 * sol-thread.c (sol_find_memory_regions): New function.
11464 (sol_make_note_section): New function.
11465 (init_sol_thread_ops): Initialize new target vectors.
11466 * inftarg.c (inftarg_set_find_memory_regions): New function.
11467 Allow to_find_memory_regions vector to be taken over.
11468 (inftarg_set_make_corefile_notes): New function.
11469 Allow to_make_corefile_notes vector to be taken over.
11470 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11471 interface layer if not target_has_execution (may be a corefile).
11472 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11473 * config/sparc/sun4sol2.mh: Ditto.
11474 * config/alpha/alpha-linux.mh: Ditto.
11475 * config/arm/linux.mh: Ditto.
11476 * config/i386/x86-64linux.mh: Ditto.
11477 * config/ia64/linux.mh: Ditto.
11478 * config/m68k/linux.mh: Ditto.
11479 * config/mips/linux.mh: Ditto.
11480 * config/powerpc/linux.mh: Ditto.
11481 * config/sparc/linux.mh: Ditto.
11482
c6b92abd
MS
114832002-01-07 Michael Snyder <msnyder@redhat.com>
11484
11485 * arm-linux-nat.c: Remove references to regcache.c internal data
11486 (registers[] and register_valid[]).
11487
4b09dc8c
MS
114882002-01-07 Michael Snyder <msnyder@redhat.com>
11489
abf22e64
AJ
11490 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11491 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11492 symbol file and shlibs.
11493 * Makefile.in: Add rule for linux-proc.o.
11494 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11495 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11496 * config/arm/linux.mh: Ditto.
11497 * config/i386/linux.mh: Ditto.
11498 * config/i386/x86-64linux.mh: Ditto.
11499 * config/ia64/linux.mh: Ditto.
11500 * config/m68k/linux.mh: Ditto.
11501 * config/mips/linux.mh: Ditto.
11502 * config/powerpc/linux.mh: Ditto.
11503 * config/sparc/linux.mh: Ditto.
11504
c25b74ac
PM
115052002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11506
11507 * win32-nat.c: Add i386-tdep.h dependency.
11508
94cd915f
MS
115092002-01-07 Michael Snyder <msnyder@redhat.com>
11510
c7cccb76
MS
11511 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11512 instead of bfd_get_arch_size. Don't bail out just because
11513 there's no exec_bfd.
abf22e64 11514
34c0bd93
MS
11515 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11516 * p-valprint.c (pascal_object_print_value): Ditto.
11517 * somread.c (som_symtab_read): Ditto.
11518 * symfile.c (simple_free_overlay_region_table): Ditto.
11519 * valops.c (value_assign): Ditto.
11520
21c1c920
MS
11521 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11522 use tilde_expand and strerror for opening save-tracepoints file.
11523
5bbd998e
MS
11524 * thread-db.c (thread_db_new_objfile): Indendation fix.
11525
94cd915f
MS
11526 * infptrace.c (GDB_MAX_ALLOCA): New define.
11527 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11528 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11529 can be overridden with whatever value is appropriate to the host).
11530 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11531 alloca to allocate potentially large buffer.
11532 * rs6000-nat.c (child_xfer_memory): Ditto.
11533 * symm-nat.c (child_xfer_memory): Ditto.
11534 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11535
494e8a93
JSC
115362002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11537
11538 From Nick Clifton <nickc@redhat.com>
11539 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11540
d0e1d48e
MS
115412002-01-07 Michael Snyder <msnyder@redhat.com>
11542
abf22e64 11543 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11544 Don't use exec_bfd if it's NULL.
11545
290b2c7a
MK
115462002-01-06 Mark Kettenis <kettenis@gnu.org>
11547
abf22e64 11548 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11549
aef21287
AC
115502002-01-06 Andrew Cagney <ac131313@redhat.com>
11551
11552 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11553 * gnu-nat.c: Ditto.
11554
30efa627
AC
115552002-01-06 Andrew Cagney <ac131313@redhat.com>
11556
11557 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11558 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11559 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11560 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11561 z8k-coff have not been multi-arched. Update z8k-coff build
11562 status.
11563
9b4ff276
AC
115642002-01-06 Andrew Cagney <ac131313@redhat.com>
11565
11566 * MAINTAINERS: Mark a29k target as obsolete.
11567 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11568 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11569 comments.
11570 * NEWS: Note that a29k targets are obsolete.
11571 * a29k-tdep.c: Mark as obsolete.
11572 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11573 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11574 a29k-*-vxworks* targets as obsolete.
11575 * remote-adapt.c: Obsolete.
11576 * remote-eb.c: Obsolete.
11577 * remote-mm.c: Obsolete.
11578 * remote-udi.c: Obsolete.
11579 * config/a29k/a29k-udi.mt: Obsolete.
11580 * config/a29k/a29k.mt: Obsolete.
11581 * config/a29k/tm-a29k.h: Obsolete.
11582 * config/a29k/tm-vx29k.h: Obsolete.
11583 * config/a29k/vx29k.mt: Obsolete.
11584
a9011d31
AC
115852002-01-05 Andrew Cagney <ac131313@redhat.com>
11586
11587 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11588 with BFD_ENDIAN_BIG.
11589
9299404e
AC
115902002-01-05 Andrew Cagney <ac131313@redhat.com>
11591
11592 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11593 * configure, config.in: Re-generate.
11594 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11595 * defs.h: Do not include <endian.h>.
11596
7e89e357
JT
115972002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11598
11599 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11600 * config.in: Regenerate.
11601 * configure.in: Update copyright years.
11602 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11603 * configure: Regenerate.
11604 * i386bsd-nat.c: Update copyright years.
11605 (fill_gregset): Use regcache_collect.
11606 (fetch_inferior_registers): Only fetch integer registers
11607 if requested to do so. Add support for XMM registers
11608 using PT_GETXMMREGS.
11609 (store_inferior_registers): Only store integer registers
11610 if requested to do so. Add support for XMM registers
11611 using PT_SETXMMREGS.
11612 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11613 (store_inferior_registers): Remove.
11614 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11615 (fetch_elfcore_registers): New function.
11616 (i386nbsd_elfcore_fns): New.
11617 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11618 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11619 i386bsd-nat.o.
11620 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11621 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11622 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11623 * config/i386/tm-nbsd.h: Update copyright years.
11624 (HAVE_SSE_REGS): Define.
11625 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11626 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11627 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11628 (SIGCONTEXT_PC_OFFSET): Remove.
11629 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11630
a752853e
AC
116312002-01-05 Andrew Cagney <ac131313@redhat.com>
11632
11633 * configure.tgt: Remove powerpc-*-macos* target.
11634 * config/m68k/xm-mpw.h: Delete file.
11635 * config/xm-mpw.h: Delete file.
11636 * ser-mac.c: Delete file.
11637 * mpw-make.sed: Delete file.
11638 * mpw-config.in: Delete file.
11639 * mac-xdep.c: Delete file.
11640 * mac-gdb.r: Delete file.
11641 * mac-defs.h: Delete file.
11642 * mac-nat.c: Delete file.
11643 * config/powerpc/macos.mh: Delete file.
11644 * config/powerpc/macos.mt: Delete file.
11645 * config/powerpc/nm-macos.h: Delete file.
11646 * config/powerpc/tm-macos.h: Delete file.
11647 * source.c (openp, open_source_file): Remove obsolete code.
11648 * top.c (gdb_readline): Ditto.
11649 * utils.c (query): Ditto.
11650 * event-top.c (display_gdb_prompt): Ditto.
11651 * Makefile.in (ser-mac.o): Delete obsolete target.
11652 * NEWS: Update.
11653
d7449b42
AC
116542002-01-04 Andrew Cagney <ac131313@redhat.com>
11655
11656 * defs.h (BIG_ENDIAN): Delete macro definition.
11657 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11658 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11659 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11660 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11661 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11662 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11663 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11664 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11665 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11666 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11667 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11668 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11669 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11670 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11671 * gdbarch.c: Re-generate.
11672
356374e8
DJ
116732002-01-04 Daniel Jacobowitz <drow@mvista.com>
11674
11675 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11676 for core files.
11677
a2b8f8f8
JT
116782002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11679
11680 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11681
12466af9
AC
116822002-01-04 Andrew Cagney <ac131313@redhat.com>
11683
11684 * value.h (value_ptr): Delete typedef.
11685
3549ab40
JT
116862002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11687
11688 * i386nbsd-nat.c: Update copyright years.
11689 Include i386-tdep.h.
11690
fedbd091
EZ
116912002-01-04 Elena Zannoni <ezannoni@redhat.com>
11692
11693 * stabsread.c: Update copyright years.
11694
11695 From Debashis Mahata <debashis.mahata@wipro.com>:
11696 (read_struct_fields): Deal with Sun C compiler erroneous stab
11697 output for structs and unions.
fec8b34f 11698 Fix PR gdb/269.
fedbd091 11699
eb43544b
DJ
117002002-01-04 Daniel Jacobowitz <drow@mvista.com>
11701
11702 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11703 prototype.
11704
1514d34e
DJ
117052002-01-04 Daniel Jacobowitz <drow@mvista.com>
11706
11707 * cp-abi.c: Fix whitespace.
11708 (baseclass_offset): New wrapper function.
11709 * cp-abi.h (baseclass_offset): Add prototype.
11710 (struct cp_abi_ops): Add baseclass_offset pointer.
11711
11712 * valops.c (vb_match): Move to...
11713 * gnu-v2-abi.c (vb_match): here.
11714 * valops.c (baseclass_offset): Move to...
11715 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11716
11717 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11718
11719 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11720 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11721 * hpacc-abi.c (init_hpacc_ops): Likewise.
11722
7f8c9282
DJ
117232002-01-04 Daniel Jacobowitz <drow@mvista.com>
11724
11725 * valops.c (find_overload_match): Accept obj as a
11726 reference parameter. Update it before returning.
11727 * value.h (find_overload_match): Update prototype.
11728 * eval.c (evaluate_subexp_standard): Pass object to
11729 find_overload_match by reference.
11730
f23631e4
AC
117312002-01-03 Andrew Cagney <ac131313@redhat.com>
11732
11733 * valarith.c: Replace value_ptr with struct value pointer. Remove
11734 register attribute from value declarations.
11735 * valops.c: Ditto.
11736 * value.h: Ditto.
11737 * scm-lang.c (scm_lookup_name): Ditto.
11738
79e10fab 117392002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11740
79e10fab
AC
11741 Abstract the functionality of iterating over mapped memory
11742 regions into a general purpose iterator function.
abf22e64 11743 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11744 iterator for memory sections.
11745 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11746 (solib_mappings_callback): New function, callback for above.
11747 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11748 (info_mappings_callback): New function, callback for above.
11749
11750 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11751
c5ad026a
MK
117522002-01-01 Mark Kettenis <kettenis@gnu.org>
11753
d2a7c97a
MK
11754 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11755 * i386-tdep.c: Include "elf-bfd.h".
11756 (process_note_abi_tag_sections): New function.
11757 (i386_gdbarch_init): Add code to recognize various OS/ABI
11758 combinations.
11759
c5ad026a
MK
11760 * maint.c (_initialize_maint_cmds): Add missing \ in
11761 string-literal.
11762
a1a5b71e 11763For older changes see ChangeLog-2001
c906108c
SS
11764\f
11765Local Variables:
11766mode: change-log
11767left-margin: 8
11768fill-column: 74
11769version-control: never
11770End:
This page took 1.061304 seconds and 4 git commands to generate.