* gdb_indent.sh: Allow the script to be run in the sim directory.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-05-18 Andrew Cagney <ac131313@redhat.com>
2
3 * gdb_indent.sh: Allow the script to be run in the sim directory.
4
5 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6
7 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9
10 * corelow.c (core_open): Only call set_gdbarch_from_file if
11 exec_bfd is NULL.
12
13 2002-05-17 Andrey Volkov <avolkov@transas.com>
14
15 * h8300-tdep.c: Add support of EXR register
16 * config/h8300/tm-h8300.h: Ditto.
17
18 2002-05-17 Andrey Volkov <avolkov@transas.com>
19
20 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
21
22 2002-05-17 Andrey Volkov <avolkov@transas.com>
23
24 * h8300-tdep.c: Change literal regnums to REGNO.
25
26 2002-05-17 Jim Blandy <jimb@redhat.com>
27
28 * NEWS: Note addition of macro support.
29
30 Expand preprocessor macros in C expressions.
31 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
32 (scan_macro_expansion, scanning_macro_expansion,
33 finished_macro_expansion): New function declarations.
34 (expression_macro_lookup_func, expression_macro_lookup_baton): New
35 variable declarations.
36 * parser-defs.h (expression_context_pc): New declaration.
37 * parse.c (expression_context_pc): New variable.
38 (parse_exp_1): Set expression_context_pc, as well as
39 expression_context_block.
40 * c-exp.y (yylex): If we're not already reading the result of a
41 macro expansion, try to macro-expand the next token. When we're
42 done scanning a macro expansion, switch back to the mainline text.
43 Commas and `if's in a macro's expansion don't terminate the input.
44 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
45 (macro_original_text, macro_expanded_text,
46 expression_macro_lookup_func, expression_macro_lookup_baton): New
47 variables.
48 (scan_macro_expansion, scanning_macro_expansion,
49 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
50 c_preprocess_and_parse): New functions.
51 (c_language_defn, cplus_language_defn, asm_language_defn): Call
52 c_preprocess_and_parse, instead of c_parse.
53 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
54 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
55
56 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
57
58 * sh-tdep.c (gdb_print_insn_sh64): Delete.
59 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
60 (sh_gdbarch_init): Always use gdb_print_insn_sh.
61
62 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
63
64 * NEWS: Add section for multi-arched targets. Add v850 to that section.
65
66 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
67
68 * Makefile.in (sh_tdep_h): Define and use.
69 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
70 register enum): Move to...
71 * * sh-tdep.h: ...here.
72 * sh-tdep.c: Include sh-tdep.h.
73 * sh3-rom.c: Likewise.
74 * shnbsd-tdep.c: Likewise.
75
76 2002-05-16 Michael Snyder <msnyder@redhat.com>
77
78 * arm-tdep.c: Spelling fix in comment.
79
80 2002-05-16 Jim Blandy <jimb@redhat.com>
81
82 Add commands for manually expanding macros and showing their
83 definitions.
84 * macrocmd.c, macroscope.c, macroscope.h: New files.
85 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
86 (macroscope_h): New variable.
87 (HFILES_NO_SRCDIR): Add macroscope.h.
88 (COMMON_OBS): Add macrocmd.o, macroscope.o.
89 (macroscope.o, macrocmd.o): New rules.
90
91 Teach the Dwarf 2 reader to read macro information.
92 * dwarf2read.c: #include "macrotab.h".
93 (dwarf_macinfo_buffer): New variable.
94 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
95 dwarf_macinfo_size.
96 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
97 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
98 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
99 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
100 dwarf2_macro_spaces_in_definition): New complaints.
101 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
102 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
103 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
104 the partial symbol table.
105 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
106 from what's recorded in the partial symbol table.
107 (read_file_scope): If the compilation unit has a
108 `DW_AT_macro_info' attribute, read its macro information.
109 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
110
111 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
112
113 Fix PR gdb/546
114 * ser-tcp.c: Don't include <netinet/udp.h>.
115
116 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
117
118 * MAINTAINERS: Update my email address.
119
120 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
121
122 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
123 include file of the same name.
124
125 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
126
127 * configure.tgt: Mark v850 as multi-arched.
128 * config/v850/tm-v850.h: Remove file.
129 * config/v850/v850.mt: Eliminate TM_FILE.
130
131 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
132
133 * v850-tdep.c: Full multi-arch.
134 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
135 Define GDB_MULTI_ARCH to 2.
136
137 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
138
139 * p-exp.y (current_type): New static variable.
140 Carries the type of the expression at the position that is parsed.
141 (push_current_type, pop_current_type): Two new functions. Used
142 to store/restore current_type in expression on specific tokens.
143 (search_field): New static variable. Set to one after parsing a point
144 as at that point only a FIELDNAME token should be searched.
145 (FIELDNAME): New token. After a point only a token belonging to
146 current_type type definition is allowed.
147 (all over token rules): reset and change current_type according
148 to rules.
149 (exp '[' rule): insert implicit array index field if
150 exp is a pascal string type.
151
152 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
153
154 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
155 frame info. Use frame_info's saved_regs instead of matching member
156 in extra_frame_info throughout.
157 (v850_frame_init_saved_regs): New function.
158 (v850_init_extra_frame_info): Move most functionality into
159 v850_frame_init_saved_regs().
160 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
161 (v850_frame_find_saved_regs): Remove declaration.
162 (FRAME_FIND_SAVED_REGS): Remove definition.
163 (v850_frame_init_saved_regs): Add declaration.
164 (FRAME_INIT_SAVED_REGS): Add definition.
165
166 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
167
168 * v850-tdep.c: Begin multi-arch'ing v850.
169 (v850_target_architecture_hook): Remove function.
170 (v850_gdbarch_init): New function. Add code previously in
171 v850_target_architecture_hook().
172 (_initialize_v850_tdep): Don't set target_architecture_hook.
173 Call register_gdbarch_init() instead.
174
175 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
176
177 * gdbtypes.h (struct cplus_struct_type): Remove args field.
178 * hpread.c (hpread_read_struct_type): Remove assignments to args.
179 (fixup_class_method_type): Likewise.
180
181 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
182
183 From Martin Pool <mbp@samba.org>:
184 * gdbserver/server.c (gdbserver_usage): New function.
185 (main): Call it.
186
187 2002-05-15 Jim Blandy <jimb@redhat.com>
188
189 Add macro structures to GDB's symbol tables. Nobody puts anything
190 in them yet.
191 * symtab.h (struct symtab): New member: `macro_table'.
192 * buildsym.h (pending_macros): New global variable.
193 * buildsym.c: #include "macrotab.h".
194 (buildsym_init): Initialize `pending_macros'.
195 (end_symtab): If we found macro information while reading a CU's
196 debugging info, do build a symtab structure for it. Make the
197 symtab point to the macro information, and clear the
198 `pending_macros' pointer which held it while we were reading the
199 debug info.
200 (really_free_pendings): Free any pending macro table.
201 * objfiles.h (struct objfile): New member: `macro_cache'.
202 * objfiles.c (allocate_objfile): Set allocate and free functions
203 for the macro cache's objstack.
204 (free_objfile): Empty the macro cache's obstack.
205 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
206 set new allocate and free functions for it.
207 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
208 free functions for the macro cache's objstack. (Why is this
209 function building its own objfile?)
210 * symmisc.c (print_objfile_statistics): Print statistics on the
211 macro bcache.
212 * Makefile.in: Note that buildsym.o depends on macrotab.h.
213
214 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
215
216 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
217 (REGISTER_U_ADDR): Delete definition.
218 (arm_register_u_addr): Delete declaration.
219
220 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
221
222 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
223 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
224
225 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
226
227 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
228 stop_at -> stop_pc.
229
230 2002-05-14 Andrew Cagney <ac131313@redhat.com>
231
232 * regcache.c (register_valid): Revise comments refering to "Not
233 available" and "unavailable".
234 * frame.c (frame_register_read): Ditto.
235 * findvar.c (value_of_register): Ditto.
236
237 2002-05-15 Andrew Cagney <cagney@redhat.com>
238
239 * Makefile.in (remote_sim_h): Replace remote-sim_h.
240 (remote-sim.o): Update dependencies.
241 (d10v-tdep.o): Specify dependencies.
242 (sim_d10v_h): Define.
243
244 2002-05-14 Jim Blandy <jimb@redhat.com>
245
246 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
247 * macrotab.c (macro_lookup_inclusion, find_definition,
248 new_macro_table): Same.
249
250 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
251 not `! strcmp ()'. This is a dubious improvement.
252 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
253
254 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
255 although it's not necessary, to avoid a warning.
256
257 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
258
259 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
260 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
261 TYPE_INSTANCE_FLAGS.
262 (struct main_type): New.
263 (struct type): Move most members to struct main_type. Change
264 cv_type and as_type to new type_chain member. Add instance_flags.
265 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
266 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
267 (finish_cv_type): Remove prototype.
268 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
269 Set TYPE_CHAIN.
270 (alloc_type_instance): New function.
271 (smash_type): New function.
272 (make_pointer_type, make_reference_type, make_function_type)
273 (smash_to_member_type, smash_to_method_type): Call smash_type.
274 (make_qualified_type): New function.
275 (make_type_with_address_space): Call make_qualified_type.
276 (make_cv_type): Likewise.
277 (finish_cv_type): Remove unnecessary function.
278 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
279 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
280 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
281 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
282 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
283 * hpread.c (hpread_read_struct_type): Likewise.
284 * stabsread.c (read_struct_type): Likewise.
285
286 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
287
288 * configure.tgt: Add a catch all sh* target, for cases like
289 sh[2,3,4]-elf and sh-hms.
290
291 2002-05-14 Keith Seitz <keiths@redhat.com>
292
293 * event-loop.c (create_file_handler): Don't do anything but
294 update data when we are given a fd which we are already
295 monitoring.
296
297 2002-05-14 Michal Ludvig <mludvig@suse.cz>
298
299 * dwarf2cfi.c (context_cpy): Copy registers correctly.
300 (update_context): Use __func__ in warnings.
301
302 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
303
304 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
305 and tcp_close to net_open and net_close.
306 (net_open): Accept "udp:" and "tcp:" specifications. Connect
307 using UDP if requested. Don't try to disable Nagle on UDP
308 sockets.
309 * remote.c (remote_serial_open): New function. Warn about UDP.
310 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
311
312 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
313
314 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
315
316 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
317
318 * configure.tgt: Remove sh-hms target.
319 * MAINTAINERS: Don't list sh-hms as a separate target.
320
321 2002-05-13 Jim Blandy <jimb@redhat.com>
322
323 Add first preprocessor macro-expansion files.
324 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
325 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
326 (splay_tree_h, macroexp_h, macrotab_h): New variable.
327 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
328 (COMMON_OBS): Add macrotab.o, macroexp.o.
329 (macroexp.o, macrotab.o): New rules.
330
331 2002-05-13 Andrew Cagney <ac131313@redhat.com>
332
333 * config/m88k/tm-m88k.h: Update copyright.
334 (m88k_target_write_pc): Declare
335 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
336 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
337 (SHIFT_INST_REGS): Update definition.
338 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
339 using old definition of TARGET_WRITE_PC.
340 * regcache.c (generic_target_write_pc): Delete code handling
341 NNPC_REGNUM.
342 * gdbarch.sh (NNPC_REGNUM): Delete.
343 * gdbarch.h, gdbarch.c: Regenerate.
344
345 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
346
347 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
348 builtin reg number.
349
350 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
351
352 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
353 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
354 (gen_address_of, gen_struct_ref, gen_repeat): Use type
355 access macros.
356 * c-typeprint.c (cp_type_print_method_args): Likewise.
357 (c_type_print_args): Likewise.
358 * d10v-tdep.c (d10v_push_arguments): Likewise.
359 (d10v_extract_return_value): Likewise.
360 * expprint.c (print_subexp): Likewise.
361 * gdbtypes.c (lookup_primitive_typename): Likewise.
362 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
363 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
364 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
365 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
366 (TYPE_VECTOR): Likewise.
367 * hpread.c (hpread_read_struct_type)
368 (fix_static_member_physnames, fixup_class_method_type)
369 (hpread_type_lookup): Likewise.
370 * mdebugread.c (parse_symbol, parse_type): Likewise.
371 * p-lang.c (is_pascal_string_type): Likewise.
372 * valops.c (hand_function_call): Likewise.
373 * x86-64-tdep.c (classify_argument): Likewise.
374
375 * hpread.c (hpread_read_function_type)
376 (hpread_read_doc_function_type): Call replace_type.
377 * dstread.c (create_new_type): Delete.
378 (decode_dst_structure, process_dst_function): Call alloc_type.
379 Use type access macros.
380
381 2002-05-12 Mark Kettenis <kettenis@gnu.org>
382
383 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
384 the're not supported by the current architecture.
385 (i387_fill_fxsave): Likewise.
386
387 2002-05-12 Fred Fish <fnf@redhat.com>
388
389 * symfile.c (default_symfile_offsets): Arrange for uninitialized
390 sect_index_xxx members to index the first slot in section_offsets
391 if all of the section_offsets are zero.
392
393 2002-05-12 Mark Kettenis <kettenis@gnu.org>
394
395 * configure.tgt (sparc-*openbsd): Remove entry accidentially
396 checked in with last change.
397
398 2002-05-12 Mark Kettenis <kettenis@gnu.org>
399
400 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
401 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
402 config.sub.
403
404 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
405
406 * Makefile.in: Update dependencies.
407
408 2002-05-11 Andrew Cagney <ac131313@redhat.com>
409
410 * language.c (local_hex_string_custom): Simplify. Do not depend
411 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
412
413 * memattr.c (mem_info_command): Replace calls to
414 longest_local_hex_string and longest_local_hex_string_custom.
415 * buildsym.c (make_blockvector): Ditto.
416 * solib.c (info_sharedlibrary_command): Ditto.
417 * tracepoint.c (tracepoints_info): Ditto.
418 * symtab.c (print_msymbol_info): Ditto.
419
420 * language.c (local_hex_string): Delete.
421 (local_hex_string_custom): Delete.
422 (longest_local_hex_string): Rename to local_hex_string.
423 (longest_local_hex_string_custom): Rename to
424 local_hex_string_custom.
425 * language.h (local_hex_string): Change parameter type to LONGEST.
426 (local_hex_string_custom): Ditto.
427 (longest_local_hex_string): Delete declaration.
428 (longest_local_hex_string_custom): Ditto.
429
430 * solib.c: Update copyright.
431 * memattr.c: Update copyright.
432
433 2002-05-11 Andrew Cagney <ac131313@redhat.com>
434
435 * arch-utils.h (legacy_register_to_value): Declare.
436 (legacy_value_to_register): Declare.
437 (legacy_convert_register_p): Declare.
438 * arch-utils.c (legacy_register_to_value): New function.
439 (legacy_value_to_register): New function.
440 (legacy_convert_register_p): New function.
441
442 * gdbarch.sh (REGISTER_TO_VALUE): Define.
443 (VALUE_TO_REGISTER): Define.
444 (CONVERT_REGISTER_P): Define.
445 * gdbarch.h, gdbarch.c: Regenerate.
446
447 * valops.c (value_assign): Use CONVERT_REGISTER_P and
448 VALUE_TO_REGISTER.
449 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
450 CONVERT_REGISTER_P.
451
452 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
453 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
454
455 * Makefile.in: Update dependencies for valops.c.
456 * valops.c: Include "gdb_assert.h".
457 (typecmp): Skip THIS parameter to methods.
458 (find_method_list): Remove static_memfuncp argument,
459 update callers. Check for stub methods.
460 (find_value_oload_method_list): Don't set *static_memfuncp.
461 (find_overload_match): Don't check for stub methods. Assert
462 that methods are not stubbed. Handle static methods.
463 (value_find_oload_method_list): Remove static_memfuncp argument.
464 * gdbtypes.c (check_stub_method): Do not add THIS pointer
465 to the argument list for static stub methods.
466 * value.h (value_find_oload_method_list): Update prototype.
467
468 2002-05-11 Andrew Cagney <ac131313@redhat.com>
469
470 * arch-utils.h (generic_register_size): Declare.
471 (generic_register_raw_size, generic_register_virtual_size): Delete
472 declarations.
473 * arch-utils.c (generic_register_raw_size): Delete.
474 (generic_register_size): New function.
475 (generic_register_virtual_size): Delete.
476
477 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
478 default generic_register_size.
479 * gdbarch.h, gdbarch.c: Re-generate.
480
481 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
482 register_virtual_size.
483 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
484 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
485
486 2002-05-11 Andrew Cagney <ac131313@redhat.com>
487
488 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
489 * gdbarch.h, gdbarch.c: Regenerate.
490 * gnu-v3-abi.c: Update copyright.
491 (vtable_address_point_offset): Update.
492 (gnuv3_rtti_type): Update.
493 (gnuv3_baseclass_offset): Update.
494 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
495 (init_fetch_link_map_offsets): Update.
496 * remote.c (get_remote_state): Update.
497
498 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
499
500 * TODO: Remove value_headof/value_from_vtable_info comment.
501 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
502 * values.c (value_headof, value_from_vtable_info): Delete.
503 * value.h (value_from_vtable_info): Delete prototype.
504
505 2002-05-11 Andrew Cagney <ac131313@redhat.com>
506
507 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
508 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
509 $(gdb_regex_h).
510 (gdb_assert_h): Define.
511 (gdb_wait_h): Define.
512 (gdb_regex_h): Define.
513
514 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
515
516 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
517 * linespec.c (find_methods): Handle GCC 3.x template constructors.
518
519 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
520
521 * nbsd-tdep.c: Fix comment.
522
523 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
524
525 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
526 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
527 (nbsd-tdep.o): New dependency list.
528 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
529 nbsd-tdep.h.
530 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
531 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
532 * nbsd-tdep.c: New file.
533 * nbsd-tdep.h: New file.
534 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
535 nbsd-tdep.h.
536 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
537 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
538 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
539 * config/sh/nbsd.mt (TDEPFILES): Ditto.
540
541 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
542
543 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
544 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
545 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
546 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
547 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
548 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
549
550 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
551
552 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
553 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
554 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
555 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
556 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
557 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
558 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
559
560 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
561
562 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
563 fetch_elfcore_registers to...
564 * i386nbsd-tdep.c: ...here.
565 (i386nbsd_use_struct_convention): Rename to...
566 (i386nbsd_aout_use_struct_convention): ...this.
567 (i386nbsd_supply_reg): New function.
568 (i386nbsd_fill_reg): New function.
569 (fetch_core_registers): Use i386nbsd_supply_reg.
570 (fetch_elfcore_registers): Likewise.
571 (_initialize_i386nbsd_tdep): New function.
572 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
573 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
574 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
575 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
576 (i386nbsd_aout_use_struct_convention): ...this.
577
578 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
579
580 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
581 (store_inferior_registers): Use shnbsd_fill_reg.
582 * shnbsd-tdep.c (sh_nbsd_supply_registers,
583 sh_nbsd_supply_register): Collapse into...
584 (shnbsd_supply_reg): ...this.
585 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
586 (shnbsd_fill_reg): ...this.
587 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
588 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
589 (fetch_core_registers): Use shnbsd_supply_reg.
590 (fetch_elfcore_registers): Use shnbsd_supply_reg.
591 (sh_nbsd_core_fns): Rename to...
592 (shnbsd_core_fns): ...this.
593 (sh_nbsd_elfcore_fns): Rename to...
594 (shnbsd_elfcore_fns): ...this.
595 (sh_nbsd_init_abi): Rename to...
596 (shnbsd_init_abi): ...this.
597 (_initialize_sh_nbsd_tdep): Rename to...
598 (_initialize_shnbsd_tdep): ...this.
599 * shnbsd-tdep.h (sh_nbsd_supply_registers,
600 sh_nbsd_supply_register, sh_nbsd_fill_registers,
601 sh_nbsd_fill_register): Remove prototypes.
602 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
603
604 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
605
606 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
607 (i387-nat.o): Delete dependency list.
608 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
609 (x86-64-linux-nat.o): Likewise.
610 * i387-nat.c: Delete file, moving contents to...
611 * i387-tdep.c: ...here.
612 * i387-nat.h: Rename...
613 * i387-tdep.h: ...to this.
614 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
615 * i386-linux-nat.c: Likewise.
616 * i386bsd-nat.c: Likewise.
617 * i386gnu-nat.c: Likewise.
618 * i386nbsd-nat.c: Likewise.
619 * i386v4-nat.c: Likewise.
620 * x86-64-linux-nat.c: Likewise.
621 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
622 * config/i386/go32.mh (NATDEPFILES): Likewise.
623 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
624 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
625 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
626 * config/i386/linux.mh (NATDEPFILES): Likewise.
627 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
628 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
629 * config/i386/obsd.mh (NATDEPFILES): Likewise.
630 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
631
632 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
633
634 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
635 (alphanbsd-nat.o): Remove dependency list.
636 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
637 * alphanbsd-nat.c: Delete. Contents moved to...
638 * alphanbsd-tdep.c: ...here.
639 (_initialize_alphanbsd_tdep): Register core functions.
640 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
641
642 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
643
644 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
645 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
646 (alphanbsd-nat.o): Likewise.
647 (alphabsd-tdep.o): New dependency list.
648 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
649 (fill_gregset): Use alphabsd_fill_reg.
650 (supply_fpregset): Use alphabsd_supply_fpreg.
651 (fill_fpregset): Use alphabsd_fill_fpreg.
652 (fetch_inferior_registers): Use struct reg and struct fpreg
653 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
654 and alphabsd_supply_fpreg.
655 (store_inferior_registers): Use struct reg and struct fpreg
656 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
657 and alphabsd_fill_fpreg.
658 * alphabsd-tdep.c: New file.
659 * alphabsd-tdep.h: New file.
660 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
661 (fetch_elfcore_registers): Use alphabsd_supply_reg and
662 alphabsd_supply_fpreg.
663 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
664 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
665
666 2002-05-11 Eric Christopher <echristo@redhat.com>
667
668 * mips-tdep.c (mips_double_register_type): Fix thinko.
669 (mips_single_register_type): Ditto.
670 * MAINTAINERS: Add self.
671
672 2002-05-11 Mark Kettenis <kettenis@gnu.org>
673
674 * i387-nat.c (i387_supply_register, i387_fill_fsave,
675 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
676 right thing on architectures with different endianness and/or
677 integer sizes.
678
679 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
680
681 From Christian Limpach <chris@Pin.LU>
682 * configure.in: Change sed expression which comments out
683 NATDEPFILES to also comment out continuation lines.
684 * configure: Regenerate.
685
686 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
687
688 * sh-tdep.c: Clean up code erroneously reintroduced by previous
689 big patch.
690
691 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
692
693 * sh-tdep.c: Include correct file.
694
695 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
696
697 New support for sh64-elf (sh5) target.
698
699 * configure.tgt: For sh64-elf target, default to sh-elf.
700
701 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
702 (struct gdbarch_tdep): Add new fields for new registers and ABI
703 info.
704
705 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
706 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
707 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
708 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
709 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
710 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
711 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
712 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
713 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
714 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
715 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
716 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
717 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
718 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
719 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
720 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
721 sh64_get_gdb_regnum, sh64_media_reg_base_num,
722 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
723 sign_extend, sh64_nofp_frame_init_saved_regs,
724 sh64_init_extra_frame_info, sh64_get_saved_register,
725 sh64_extract_struct_value_address, sh64_pop_frame,
726 sh64_push_arguments, sh64_extract_return_value,
727 sh64_store_return_value, sh64_show_media_regs,
728 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
729 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
730 sh_sh64_register_virtual_type,
731 sh_sh64_register_convert_to_virtual,
732 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
733 sh64_register_read, sh64_pseudo_register_write,
734 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
735 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
736 sh64_do_pseudo_register, sh_compact_do_registers_info,
737 sh64_do_registers_info, sh_gdbarch_init): New functions.
738
739 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
740
741 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
742
743 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
744
745 * linespec.c (decode_line_1): Check for a double quote after
746 a filename correctly.
747
748 2002-05-10 Jim Blandy <jimb@redhat.com>
749
750 Properly track the size of the current objfile's .debug_line section.
751 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
752 (DWARF_LINE_SIZE): New macro.
753 (dwarf2_build_psymtabs_hard): Record the line section's size in
754 the partial symbol table.
755 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
756 symbol table.
757
758 2002-05-10 Petr Sorfa <petrs@caldera.com>
759
760 * ia64-tdep.c: Handle breakpoints on L instruction type
761 in MLX instruction bundle by moving the breakpoint to
762 the third slot (X instruction type) as L holds only data.
763
764 2002-05-10 Kevin Buettner <kevinb@redhat.com>
765
766 * dbxread.c (discarding_local_symbols_complaint): New complaint.
767 (process_one_symbol): Complain about discarding local symbols
768 due to a misplaced N_LBRAC entry.
769
770 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
771
772 From Daniel Berlin <dan@cgsoftware.com>
773 * linespec.c (find_toplevel_char): '<' and '>' also increase and
774 decrease the depth we are at, in the case of templates.
775
776 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
777
778 * mips-tdep.c (mips_float_register_type): New function.
779 (mips_double_register_type): New function.
780 (mips_print_register): Use them.
781 (do_fp_register_row): Likewise.
782
783 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
784
785 * signals/signals.c (signals): Remove conditional compilation around
786 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
787 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
788
789 2002-05-09 Michael Snyder <msnyder@redhat.com>
790
791 * remote-rdp.c (remote_rdp_can_run): Remove.
792
793 2002-05-09 Tom Tromey <tromey@redhat.com>
794
795 * jv-valprint.c (java_val_print): Handle `char' as a special case
796 of TYPE_CODE_INT.
797
798 2002-05-09 Michael Snyder <msnyder@redhat.com>
799
800 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
801 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
802 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
803 str r(0123),[sp,#nn].
804 (arm_skip_prologue): Ditto. Also make disassembly
805 order-independent by placing it in a loop.
806
807 2002-05-06 Michael Snyder <msnyder@redhat.com>
808
809 * stabsread.c (read_type): Add recognition for new attribute:
810 "@V;" means that an array type is actually a vector.
811 This is analogous to the vector flag that's been added to dwarf2.
812
813 2002-05-09 Mark Kettenis <kettenis@gnu.org>
814
815 * i386-tdep.h (i386_abi): New enum.
816 (struct gdbarch_tdep): Replace os_ident member with abi.
817 (i386_gdbarch_register_os_abi): New prototype.
818 * i386-tdep.c (i386_abi_names): New array.
819 (process_note_abi_tag_sections): Removed.
820 (process_note_sections): New function.
821 (i386_elf_abi_from_note, i386_elf_abi): New functions.
822 (struct i386_abi_handler): New struct.
823 (i386_abi_handler_list): New variable.
824 (i386_gdbarch_register_os_abi): New function.
825 (i386_gdbarch_init): Adapt for the changes given above.
826
827 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
828
829 * gregset.h: Say "GNU/Linux".
830
831 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
832
833 * gdbtypes.c : Add new builtin type for 64 bit vectors.
834 (build_gdbtypes): Build builtin_type_v2_float.
835 (_initialize_gdbtypes): Register new builtin type.
836
837 2002-05-08 Andrew Cagney <ac131313@redhat.com>
838
839 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
840 (clear_gdbarch_swap): New function.
841 (initialize_non_multiarch): Call.
842 (gdbarch_update_p): Before calling init(), swap out and clear the
843 existing architecture.
844 * gdbarch.c: Regenerate.
845
846 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
847
848 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
849 alphanbsd-tdep.c.
850
851 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
852
853 * sh-nbsd-nat.c: Rename to...
854 * shnbsd-nat.c: ...this.
855 * sh-nbsd-tdep.c: Rename to...
856 * shnbsd-tdep.c: ...this.
857 * sh-nbsd-tdep.h: Rename to...
858 * shnbsd-tdep.h: ...this.
859 * config/sh/nbsd.mh: Use shnbsd-nat.o.
860 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
861
862 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
863
864 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
865 concatenation for command help messages.
866
867 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
868
869 * NEWS: Note new sh*-*-netbsdelf* configuration.
870 * configure.host: Set gdb_host_cpu to sh for all sh*.
871 (sh*-*-netbsdelf*): New host.
872 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
873 (sh*-*-netbsdelf*): New target.
874 * sh-nbsd-nat.c: New file.
875 * sh-nbsd-tdep.c: New file.
876 * sh-nbsd-tdep.h: New file.
877 * config/sh/nbsd.mh: New file.
878 * config/sh/nbsd.mt: New file.
879 * config/sh/nm-nbsd.h: New file.
880 * config/sh/tm-nbsd.h: New file.
881
882 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
883
884 * sh-tdep.c (sh_osabi_names): Declare.
885 (process_note_abi_tag_sections): New function.
886 (get_elfosabi): Ditto.
887 (sh_gdbarch_register_os_abi): Ditto.
888 (sh_dump_tdep): Ditto.
889 _initialize_sh_tdep): Use gdbarch_register to register
890 sh_gdbarch_init and sh_dump_tdep.
891 * config/sh/tm-sh.h (sh_osabi): Declare.
892 (gdbarch_tdep): Add sh_osabi and osabi_name members.
893
894 2002-05-07 Andrew Cagney <ac131313@redhat.com>
895
896 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
897 (thumb_scan_prologue): Ditto.
898 (arm_find_callers_reg): Ditto.
899 (arm_frame_chain): Ditto.
900 (arm_init_extra_frame_info): Ditto.
901 (arm_frame_saved_pc): Ditto.
902 (arm_pop_frame): Ditto.
903 (arm_push_return_address): New function.
904 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
905 call_dummy_location, call_dummy_breakpoint_offset_p,
906 call_dummy_breakpoint_offset, call_dummy_p,
907 call_dummy_stack_adjust_p, call_dummy_words,
908 sizeof_call_dummy_words, call_dummy_start_offset,
909 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
910 call_dummy_address, push_return_address and push_dummy_frame for
911 generic dummy frames.
912
913 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
914
915 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
916 size computation for alloca.
917 (sh_fp_frame_init_saved_regs): Likewise.
918
919 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
920
921 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
922 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
923 * arm-tdep.c (arm_store_return_value): Use them.
924 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
925 * remote-rdp.c (remote_rdp_fetch_register): Use
926 ARM_MAX_REGISTER_RAW_SIZE.
927 (remote_rdp_store_register): Likewise.
928
929 2002-05-07 Michal Ludvig <mludvig@suse.cz>
930
931 * dwarf2cfi.c: Code cleanup, removed unused variables,
932 added default labels to switch {} statements.
933 * x86-64-tdep.c: Ditto.
934 * x86-64-linux-nat.c: Ditto.
935
936 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
937
938 * solib.h: Protect against multiple inclusion.
939
940 2002-05-06 Jim Blandy <jimb@redhat.com>
941
942 Add first preprocessor macro-expansion files.
943 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
944 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
945 (splay_tree_h, macroexp_h, macrotab_h): New variable.
946 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
947 (COMMON_OBS): Add macrotab.o, macroexp.o.
948 (macroexp.o, macrotab.o): New rules.
949
950 Separate the job of reading the line number info statement program
951 header (...expialidocious) out into its own function.
952 * dwarf2read.c (struct line_head, struct filenames, struct
953 directories): Replace with...
954 (struct line_header): New structure, containing the full
955 contents of the statement program header, including the
956 include directory and file name tables.
957 (read_file_scope): If we have line number info, instead of just
958 calling dwarf_decode_lines to do all the work, call
959 dwarf_decode_line_header first to get a `struct line_header'
960 containing the data in the statement program header, and then
961 pass that to dwarf_decode_lines, which will pick up where that
962 left off. Be sure to clean up the `struct line_header' object.
963 (dwarf_decode_line_header, free_line_header, add_include_dir,
964 add_file_name): New functions.
965 (dwarf_decode_lines): Move all the code to read the statement
966 program header into dwarf_decode_line_header. Take the line
967 header it built as the first argument, instead of the offset to
968 the compilation unit's line number info. Use the new `struct
969 line_header' type instead of the old structures. No need to do
970 cleanups here now, since we don't allocate anything.
971 (dwarf2_statement_list_fits_in_line_number_section,
972 dwarf2_line_header_too_long): New complaints.
973
974 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
975
976 * gdbtypes.c (init_vector_type): New function.
977 (build_builtin_type_vec128): Simplify the representation of SIMD
978 registers.
979 (build_gdbtypes): Initialize new builtin vector types.
980 (_initialize_gdbtypes): Register new vector types with gdbarch.
981 (builtin_type_v4_float, builtin_type_v4_int32,
982 builtin_type_v8_int16, builtin_type_v16_int8,
983 builtin_type_v2_int32, builtin_type_v4_int16,
984 builtin_type_v8_int8): New (renamed) SIMD types.
985
986 2002-05-06 Mark Kettenis <kettenis@gnu.org>
987
988 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
989 (i387_fill_fxsave): Likewise.
990
991 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
992
993 * alpha-tdep.c (alpha_extract_return_value): Don't use
994 non-constant array size in prototype.
995
996 2002-05-04 Andrew Cagney <ac131313@redhat.com>
997
998 From Brian Taylor <briant at model dot com>:
999 * ui-out.c (ui_out_field_core_addr): Use the function
1000 longest_local_hex_string_custom'to format addresses > 32 bits
1001 wide.
1002
1003 * ui-out.c (ui_out_field_core_addr): Update comment.
1004
1005 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1006
1007 * stack.c (select_and_print_frame): Make static. Delete the
1008 parameter `level'.
1009 (func_command): Update call.
1010 (select_frame_command): Delete code computing the frame level.
1011 * frame.h (select_and_print_frame): Delete declaration.
1012
1013 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1014
1015 * sparc-tdep.c (sparc_get_saved_register): Comment why
1016 get_prev_frame call is safe.
1017
1018 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1019
1020 * frame.h (select_frame): Delete level parameter.
1021 * stack.c (select_frame): Update. Use frame_relative_level to
1022 obtain the frame's level.
1023 (select_and_print_frame): Update call.
1024 (select_frame_command): Ditto.
1025 (up_silently_base): Ditto.
1026 (down_silently_base): Ditto.
1027 * ocd.c (ocd_start_remote): Ditto.
1028 * remote-rdp.c (remote_rdp_open): Ditto.
1029 * remote-mips.c (mips_initialize): Ditto.
1030 (common_open): Ditto.
1031 * remote-e7000.c (e7000_start_remote): Ditto.
1032 * m3-nat.c (select_thread): Ditto.
1033 * hppa-tdep.c (child_get_current_exception_event): Ditto.
1034 (child_get_current_exception_event): Ditto.
1035 * varobj.c (varobj_create): Ditto.
1036 (varobj_update): Ditto.
1037 (c_value_of_root): Ditto.
1038 * tracepoint.c (finish_tfind_command): Ditto.
1039 * corelow.c (core_open): Ditto.
1040 * arch-utils.c (generic_prepare_to_proceed): Ditto.
1041 * thread.c (info_threads_command): Ditto.
1042 (switch_to_thread): Ditto.
1043 * infrun.c (normal_stop): Ditto.
1044 (restore_selected_frame): Ditto.
1045 (restore_inferior_status): Ditto.
1046 * breakpoint.c (insert_breakpoints): Ditto.
1047 (watchpoint_check): Ditto.
1048 (bpstat_stop_status): Ditto.
1049 (do_enable_breakpoint): Ditto.
1050 * blockframe.c (flush_cached_frames): Ditto.
1051 (reinit_frame_cache): Ditto.
1052
1053 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1054
1055 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
1056 maintainer.
1057
1058 2002-05-04 Jim Blandy <jimb@redhat.com>
1059
1060 * gdbtypes.c (replace_type): Doc fix.
1061
1062 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1063
1064 * valprint.c (strcat_longest): Delete commented out function.
1065 Update copyright.
1066
1067 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1068
1069 * MAINTAINERS: Mark a29k as deleted.
1070 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
1071 Move new configurations to the top.
1072 * configure.tgt: Remove a29k.
1073 * config/a29k/tm-vx29k.h: Delete.
1074 * config/a29k/vx29k.mt: Delete.
1075 * config/a29k/tm-a29k.h: Delete.
1076 * config/a29k/a29k-udi.mt: Delete.
1077 * config/a29k/a29k.mt: Delete.
1078 * a29k-tdep.c: Delete.
1079 * remote-udi.c: Delete.
1080 * remote-mm.c: Delete.
1081 * remote-eb.c: Delete.
1082 * remote-adapt.c: Delete.
1083 * Makefile.in: Remove obsolete code.
1084 * gdbserver/Makefile.in: Ditto.
1085 * config/s390/s390x.mt: Ditto.
1086 * config/s390/s390.mt: Ditto.
1087 * config/sparc/sparclynx.mh: Ditto.
1088 * config/sparc/linux.mh: Ditto.
1089 * config/pa/hppaosf.mh: Ditto.
1090 * config/pa/hppabsd.mh: Ditto.
1091 * config/ns32k/nbsd.mt: Ditto.
1092 * config/mips/vr5000.mt: Ditto.
1093 * config/m68k/sun3os4.mh: Ditto.
1094 * config/m68k/nbsd.mt: Ditto.
1095 * config/m68k/m68klynx.mh: Ditto.
1096 * config/m32r/m32r.mt: Ditto.
1097 * config/i386/x86-64linux.mt: Ditto.
1098 * config/i386/nbsdelf.mt: Ditto.
1099 * config/i386/nbsd.mt: Ditto.
1100 * config/i386/i386lynx.mh: Ditto.
1101
1102 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1103
1104 * target.c (debug_print_register): New function. Handle oversize
1105 registers.
1106 (debug_to_fetch_registers): Call.
1107 (debug_to_store_registers): Call.
1108
1109 2002-05-03 Jim Blandy <jimb@redhat.com>
1110
1111 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
1112 (read_type): Doc fix.
1113 * gdbtypes.c (replace_type): Doc fix.
1114
1115 * stabsread.c (multiply_defined_struct): New complaint.
1116 (read_struct_type): If the type we were passed isn't empty, or
1117 incomplete, don't read the new struct type into it; complain,
1118 and return the original type unchanged. Take a new `type_code'
1119 argument, which is the type code for the new type.
1120 (read_type): Rather than storing the type's type code here, pass
1121 it as an argument to read_struct_type, and let that take care of
1122 storing it. That way, we don't overwrite the original type code,
1123 so read_struct_type can use it to decide whether we're overwriting
1124 something we shouldn't.
1125 (complain_about_struct_wipeout): New function.
1126
1127 2002-05-03 Andrew Cagney <ac131313@redhat.com>
1128
1129 * gdbarch.sh: Assert that gdbarch is non-NULL.
1130 * gdbarch.c: Regenerate.
1131
1132 2002-05-03 Jason Merrill <jason@redhat.com>
1133
1134 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
1135 and return NULL.
1136
1137 2002-05-03 Michal Ludvig <mludvig@suse.cz>
1138
1139 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
1140 (x86_64_dwarf2gdb_regno_map_length),
1141 (x86_64_dwarf2_reg_to_regnum): Added.
1142 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
1143 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
1144 (_initialize_x86_64_tdep): Synced with the change above.
1145 (x86_64_skip_prologue): Reformulated message.
1146
1147 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1148
1149 * f-exp.y: Also use new prev_lexptr variable
1150 to improve error reporting. Based on Michael Snyder
1151 2002-04-24 dated patch to c-exp.y.
1152 * jv-exp.y: Likewise.
1153 * m2-exp.y: Likewise.
1154
1155 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
1156
1157 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
1158 we are dealing with vectors.
1159
1160 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1161
1162 * config/m68k/tm-nbsd.h: Obvious fix,
1163 correct machine name.
1164
1165 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1166
1167 * p-typeprint.c (pascal_type_print_base): Add support
1168 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
1169
1170 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1171
1172 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
1173 for fondamental pascal 'char' type.
1174
1175 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1176
1177 * p-lang.h (is_pascal_string_type): Declaration changed,
1178 new sixth argument of type char ** added.
1179 * p-lang.c (is_pascal_string_type): Implementation
1180 changed. Args length_pos, length_size, string_pos, char_size
1181 can now be NULL. New argument arrayname set to the field
1182 name of the char array. Return value set to char array
1183 field index plus one.
1184 * p-valprint.c (pascal_val_print): Adapt to new declaration of
1185 is_pascal_string_type function.
1186
1187 2002-05-02 Andrew Cagney <cagney@redhat.com>
1188
1189 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
1190 <cagney@redhat.com> change.
1191 * gdbarch.c: Regenerate.
1192
1193 2002-05-02 Andrew Cagney <cagney@redhat.com>
1194
1195 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
1196 before probing for a new one. Detect errorenous gdbarch_init
1197 functions.
1198 * gdbarch.c: Regenerate.
1199
1200 2002-05-01 Andrew Cagney <cagney@redhat.com>
1201
1202 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
1203 * config/mcore/tm-mcore.h: Ditto. Update copyright.
1204 * config/v850/tm-v850.h: Ditto. Update copyright.
1205
1206 2002-04-30 Andrew Cagney <ac131313@redhat.com>
1207
1208 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
1209 current_gdbarch.
1210
1211 2002-04-30 Michael Snyder <msnyder@redhat.com>
1212
1213 * arm-tdep.c: Whitespace clean-ups.
1214 (arm_skip_prologue): Fix thinko; two lines
1215 should have been removed as part of 4/24 change.
1216
1217 2002-04-30 Kevin Buettner <kevinb@redhat.com>
1218
1219 * rs6000-tdep.c: Added comment describing how fpscr register
1220 numbers were chosen.
1221
1222 2002-04-30 Michael Snyder <msnyder@redhat.com>
1223
1224 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
1225
1226 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1227
1228 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
1229 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
1230 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
1231
1232 2002-04-29 Kevin Buettner <kevinb@redhat.com>
1233
1234 From Louis Hamilton <hamilton@redhat.com>:
1235 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
1236 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
1237 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
1238 not bfd-private xcoff data, to determine wordsize.
1239 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
1240
1241 2002-04-29 Andrew Cagney <ac131313@redhat.com>
1242
1243 GDB 5.2 released from 5.2 branch.
1244
1245 2002-04-29 Michal Ludvig <mludvig@suse.cz>
1246
1247 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
1248 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1249 (x86_64_register_info_table): Added comments with register numbers.
1250
1251 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1252
1253 * rs6000-tdep.c (rs6000_extract_return_value,
1254 rs6000_store_return_value): Handle returning vectors.
1255 (rs6000_gdbarch_init): Use
1256 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
1257 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1258 New function.
1259 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
1260 vectors.
1261 (ppc_sysv_abi_push_arguments): Handle vector parameters.
1262 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
1263
1264 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1265
1266 * hpread.c (hpread_psymtab_to_symtab_1,
1267 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
1268 with fprintf_unfiltered (gdb_stderr,...).
1269
1270 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1271
1272 * remote-array.c (printf_monitor, write_monitor,
1273 array_insert_breakpoint, array_remove_breakpoint ):
1274 Replace fprintf (stderr,...
1275 with fprintf_unfiltered (gdb_stderr,....
1276 * remote-es.c: Likewise.
1277 * remote-os9k.c: Likewise.
1278 * remote-st.c: Likewise.
1279
1280 2002-04-28 Andreas Schwab <schwab@suse.de>
1281
1282 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
1283 linux-proc.o and gcore.o.
1284
1285 2002-04-26 Michal Ludvig <mludvig@suse.cz>
1286
1287 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
1288 code without frame pointers.
1289
1290 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1291
1292 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
1293 ON_STACK is needed.
1294
1295 2002-04-26 Ben Elliston <bje@redhat.com>
1296
1297 * target.c (do_xfer_memory): Correct reference to the new option
1298 "trust-readonly-sections".
1299
1300 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
1301
1302 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
1303 * gdbtypes.c (recursive_dump_type): Output the vector flag.
1304 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
1305 vectors.
1306 (read_array_type): Record the fact that this array type is really a
1307 vector (i.e. are passed in by value).
1308
1309 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
1310
1311 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
1312 * alpha-tdep.c (alpha_sigcontext_addr): New function.
1313 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
1314 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1315 * alpha-linux-tdep.c: Include frame.h.
1316 (alpha_linux_sigcontext_addr): New function.
1317 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1318 alpha_linux_sigcontext_addr.
1319 * alpha-osf1-tdep.c: Include gdbcore.h.
1320 (alpha_osf1_sigcontext_addr): New function.
1321 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1322 alpha_osf1_sigcontext_addr.
1323 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1324 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1325
1326 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1327
1328 * stack.c (selected_frame_level):
1329 (select_frame): Do not set selected_frame_level.
1330 * frame.h (selected_frame_level): Delete declaration.
1331
1332 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1333
1334 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1335 convert_from_func_ptr-addr when AIX / PowerOpen.
1336
1337 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1338
1339 * valops.c (hand_function_call): Call
1340 generic_save_call_dummy_addr.
1341 * frame.h (generic_save_call_dummy_addr): Declare.
1342 * blockframe.c (struct dummy_frame): Add fields call_lo and
1343 call_hi.
1344 (generic_find_dummy_frame): Check for PC in range call_lo to
1345 call_hi instead of entry_point_address.
1346 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1347 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1348 (generic_save_call_dummy_addr): New function.
1349
1350 2002-04-24 David S. Miller <davem@redhat.com>
1351
1352 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
1353 sparc_skip_prologue.
1354 (sparc_skip_prologue): Kill frameless_p arg, and use line number
1355 information to find prologue when possible.
1356 (sparc_prologue_frameless_p): Call examine_prologue directly.
1357 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
1358 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
1359 second argument.
1360 (SKIP_PROLOGUE): Likewise.
1361
1362 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1363
1364 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
1365 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
1366 indicate that the condition it was testing is always true.
1367 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
1368 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1369 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1370
1371 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1372
1373 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
1374 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
1375 tdep->jb_pc and tdep->jb_elt_size.
1376 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
1377 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
1378 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1379 * alpha-nat.c (get_longjmp_target): Remove.
1380 (JB_ELEMENT_SIZE): Ditto.
1381 (JB_PC): Ditto.
1382 * alpha-tdep.c (alpha_get_longjmp_target): New function.
1383 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
1384 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
1385 to alpha_get_longjmp_target.
1386 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
1387 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
1388 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
1389
1390 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1391
1392 * README: Update to GDB 5.2.
1393
1394 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1395
1396 * gdbarch.sh (LC_ALL): Set to `c'.
1397
1398 2002-04-25 Theodore A. Roth <troth@verinet.com>
1399
1400 * avr-tdep.c: Ran through gdb_indent.sh.
1401
1402 2002-04-25 Theodore A. Roth <troth@verinet.com>
1403
1404 * MAINTAINERS: Add myself as AVR maintainer.
1405 * NEWS: Note new target avr.
1406
1407 2002-04-25 Theodore A. Roth <troth@verinet.com>
1408
1409 * Makefile.in: Add support for AVR target.
1410 * configure.tgt: Add support for AVR target.
1411 * avr-tdep.c: New file
1412 * config/avr/avr.mt: New file.
1413
1414 2002-04-25 Theodore A. Roth <troth@verinet.com>
1415
1416 * MAINTAINERS: Add myself to write-after-approval.
1417
1418 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1419
1420 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
1421 with fprintf_unfiltered (gdb_stderr,....
1422
1423 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1424
1425 Fix PR gdb/508.
1426 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
1427
1428 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1429
1430 * p-exp.y: Also use new prev_lexptr variable
1431 to improve error reporting. Based on Michael Snyder
1432 2002-04-24 dated patch to c-exp.y.
1433
1434 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1435
1436 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
1437 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
1438 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
1439 to 0.
1440 * config/alpha/tm-alpha.h: Remove forward decls of struct type
1441 and struct value.
1442 (FUNCTION_START_OFFSET): Remove.
1443 (BREAKPOINT): Ditto.
1444
1445 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1446
1447 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
1448 * NEWS: Ditto.
1449
1450 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1451
1452 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
1453 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
1454 alpha_linux_pc_in_sigtramp.
1455 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
1456 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
1457 alpha_osf1_pc_in_sigtramp.
1458 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
1459 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
1460 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1461 alphafbsd_pc_in_sigtramp.
1462 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
1463 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1464 alphanbsd_pc_in_sigtramp.
1465 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
1466 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
1467
1468 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1469
1470 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1471
1472 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1473
1474 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
1475 alphanbsd-tdep.c.
1476 (alphanbsd-nat.o): New dependency list.
1477 (alphanbsd-tdep.o): Ditto.
1478 * NEWS: Note new native NetBSD/alpha configuration.
1479 * alphanbsd-nat.c: New file.
1480 * alphanbsd-tdep.c: Ditto.
1481 * configure.host (alpha*-*-netbsd*): New host.
1482 * configure.tgt (alpha*-*-netbsd*): New target.
1483 * config/alpha/nbsd.mh: New file.
1484 * config/alpha/nbsd.mt: Ditto.
1485 * config/alpha/nm-nbsd.h: Ditto.
1486 * config/alpha/tm-nbsd.h: Ditto.
1487
1488 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1489
1490 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
1491 (alpha-osf1-tdep.o): New dependency list.
1492 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
1493 and skip_sigtramp_frame members.
1494 * alpha-linux-tdep.c: Include gdbcore.h.
1495 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
1496 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
1497 * alpha-osf1-tdep.c: New file.
1498 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
1499 alpha-osf1-dep.c.
1500 (alpha_frame_past_sigtramp_frame): New function.
1501 (alpha_dynamic_sigtramp_offset): Ditto.
1502 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
1503 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
1504 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
1505 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
1506 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
1507 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
1508 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
1509 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
1510 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
1511 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
1512 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
1513 to find_solib_trampoline_target.
1514 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
1515 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
1516 (SKIP_TRAMPOLINE_CODE): Remove.
1517 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1518 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1519 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1520 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1521 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
1522 (PROC_SIGTRAMP_MAGIC): Ditto.
1523 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1524 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1525 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1526 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1527 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1528
1529 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1530
1531 * NEWS: Note that Alpha targets are now multi-arch.
1532
1533 2002-04-24 Michael Snyder <msnyder@redhat.com>
1534
1535 * parser-defs.h (prev_lexptr): New external variable.
1536 * parse.c (parse_exp_1): Set prev_lexptr to null before
1537 calling the language-specific parser.
1538 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1539 (yyerror): Use prev_lexptr in error reporting.
1540
1541 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
1542
1543 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1544 * gregset.h: If FILL_FPXREGSET is defined, provide
1545 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1546 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1547 is defined, call fill_fpxregset.
1548
1549 2002-04-24 Roland McGrath <roland@frob.com>
1550
1551 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1552 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1553 (supply_gregset, supply_fpregset): New functions.
1554
1555 * gnu-nat.c (gnu_find_memory_regions): New function.
1556 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1557 (gnu_xfer_memory): Add a cast.
1558
1559 2002-04-24 Michael Snyder <msnyder@redhat.com>
1560
1561 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
1562 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1563 of argument regs ("str r(0123), [r11, #-nn"]).
1564 (arm_skip_prologue): Better handling for frameless functions.
1565 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1566 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1567
1568 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1569
1570 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
1571 NUM_PSEUDO_REGS can be used.
1572
1573 2002-04-24 Andrew Cagney <ac131313@redhat.com>
1574
1575 * arch-utils.h: Update copyright.
1576
1577 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
1578 * gdbarch.h, gdbarch.c: Re-generate.
1579
1580 * inferior.h (IN_SIGTRAMP): Delete definition.
1581 * arch-utils.c (legacy_pc_in_sigtramp): New function.
1582 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
1583
1584 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
1585 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
1586 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
1587 (find_proc_framesize): Ditto.
1588 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
1589 (alpha_init_extra_frame_info): Ditto.
1590 * infrun.c (handle_inferior_event): Ditto.
1591 (handle_inferior_event): Ditto.
1592 (check_sigtramp2): Ditto.
1593 * blockframe.c (create_new_frame): Ditto.
1594 (get_prev_frame): Ditto.
1595 * ppc-linux-tdep.c: Update comments.
1596 * i386-linux-tdep.c: Update comments.
1597 * breakpoint.c (bpstat_what): Update comment.
1598
1599 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1600
1601 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
1602 (regsets_store_inferior_registers): Removed cast to int from
1603 ptrace() calls.
1604 * gdbserver/regcache.h: Added declaration of struct inferior_info.
1605
1606 2002-04-24 David S. Miller <davem@redhat.com>
1607
1608 * i960-tdep.c (register_in_window_p): New function.
1609 (i960_find_saved_register): Use it instead of
1610 REGISTER_IN_WINDOW_P.
1611 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
1612
1613 * symtab.h (find_stab_function_addr): Kill extern.
1614 * minsyms.c (find_stab_function_addr): Remove from here...
1615 * dbxread.c: ... to here, and mark it static.
1616
1617 2002-04-20 David S. Miller <davem@redhat.com>
1618
1619 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
1620 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
1621
1622 2002-04-21 David S. Miller <davem@redhat.com>
1623
1624 * remote-vxsparc.c (vx_read_register): Fix typo, we want
1625 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
1626 (vx_write_register): Likewise.
1627
1628 2002-04-23 J. Brobecker <brobecker@gnat.com>
1629
1630 * source.c (is_regular_file): New function.
1631 (openp): Check wether file to open is a regular file
1632 to avoid opening directories.
1633
1634 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1635
1636 * findvar.c (extract_signed_integer): Cast printf argument
1637 to suppress format warning.
1638 (extract_unsigned_integer): Likewise.
1639 * infcmd.c (registers_info): Likewise.
1640 * top.c (get_prompt_1): Likewise.
1641 * valops.c (value_assign): Likewise.
1642 * valprint.c (print_decimal): Likewise.
1643
1644 2002-04-22 H.J. Lu (hjl@gnu.org)
1645
1646 * c-exp.y (typebase): Support
1647
1648 [long|long long|short] [signed|unsigned] [int|]
1649
1650 and
1651
1652 signed [long|long long|short] int
1653
1654 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1655
1656 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1657 and vax-tdep.h.
1658 * vax-tdep.h: New file.
1659 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1660 Make several routines static.
1661 (vax_get_saved_register): New function.
1662 (vax_gdbarch_init): New function.
1663 (_initialize_vax_tdep): Register vax_gdbarch_init.
1664 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1665 Remove macros now under the control of gdbarch.
1666
1667 2002-04-22 Michael Snyder <msnyder@redhat.com>
1668
1669 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1670 Some whitespace and coding standards tweaks.
1671
1672 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1673
1674 * vax-tdep.c: Include regcache.h.
1675 (vax_call_dummy_words): New.
1676 (sizeof_vax_call_dummy_words): New.
1677 (vax_fix_call_dummy): New function.
1678 (vax_saved_pc_after_call): Ditto.
1679 * config/vax/tm-vax.h: Don't include regcache.h.
1680 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1681 (CALL_DUMMY): Remove.
1682 (CALL_DUMMY_WORDS): Define.
1683 (SIZEOF_CALL_DUMMY_WORDS): Define.
1684 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1685
1686 2002-04-18 Michael Snyder <msnyder@redhat.com>
1687
1688 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1689
1690 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1691
1692 * vax-tdep.c (vax_frame_chain): New function.
1693 (vax_push_dummy_frame): Ditto.
1694 (vax_pop_frame): Ditto.
1695 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1696 (FRAMELESS_FUNCTION_INVOCATION): Use
1697 generic_frameless_function_invocation_not.
1698 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1699 (POP_FRAME): Use vax_pop_frame.
1700
1701 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1702
1703 * vax-tdep.c (vax_store_struct_return): New function.
1704 (vax_extract_return_value): Ditto.
1705 (vax_store_return_value): Ditto.
1706 (vax_extract_struct_value_address): Ditto.
1707 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1708 vax_store_struct_return.
1709 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1710 (STORE_RETURN_VALUE): Use vax_store_return_value.
1711 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1712
1713 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1714
1715 * vax-tdep.c (vax_frame_saved_pc): New function.
1716 (vax_frame_args_address_correct): Ditto.
1717 (vax_frame_args_address): Ditto.
1718 (vax_frame_locals_address): Ditto.
1719 (vax_frame_num_args): Move code to be in proximity to
1720 other frame-related functions.
1721 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1722 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1723 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1724 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1725 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1726
1727 2002-04-22 H.J. Lu (hjl@gnu.org)
1728
1729 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1730 includedir.
1731
1732 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1733
1734 * vax-tdep.c (vax_frame_init_saved_regs): New function.
1735 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
1736 (FRAME_INIT_SAVED_REGS): New macro.
1737
1738 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1739
1740 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
1741
1742 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1743
1744 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
1745 where needed.
1746 (fetch_osf_core_registers): Likewise.
1747 (supply_gregset): Likewise.
1748
1749 2002-04-22 J. Brobecker <brobecker@gnat.com>
1750
1751 * symfile.h (get_section_index): Define.
1752 * symfile.c (get_section_index): New function.
1753 * mdebugread.c (SC_IS_SBSS): New macro.
1754 (SC_IS_BSS): Return true for the scBss storage class only, as
1755 the scSBss storage class refers to the .sbss section.
1756 (parse_partial_symbols): Discard the symbols which associated
1757 section does not exist.
1758 Make sure to use the .sbss section index for symbols which
1759 storage class is scBss, rather than using the .bss section index.
1760
1761 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1762
1763 * vax-tdep.c: Update copyright years.
1764 (vax_register_name): New function.
1765 (vax_register_byte): Ditto.
1766 (vax_register_raw_size): Ditto.
1767 (vax_register_virtual_size): Ditto.
1768 (vax_register_virtual_type): Ditto.
1769 * config/vax/tm-vax.h: Update copyright years.
1770 (REGISTER_NAMES): Remove.
1771 (REGISTER_NAME): Define.
1772 (REGISTER_BYTE): Use vax_register_byte.
1773 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1774 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1775 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1776
1777 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1778
1779 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1780 declaration
1781 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1782
1783 2002-04-21 David S. Miller <davem@redhat.com>
1784
1785 * arch-utils.c (generic_prologue_frameless_p): Kill
1786 SKIP_PROLOGUE_FRAMELESS_P code.
1787 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1788 references.
1789 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1790 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1791 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1792 references.
1793 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1794 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1795 (sparc_gdbarch_init): Pass it to
1796 set_gdbarch_prologue_frameless_p.
1797
1798 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1799
1800 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1801 (alphabsd-nat.o): New dependency list.
1802
1803 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1804
1805 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1806 alphafbsd-tdep.c.
1807 (alpha-linux-tdep.o): New dependency list.
1808 (alphafbsd-tdep.o): Likewise.
1809
1810 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1811
1812 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1813 to here...
1814 * alpha-tdep.c: ...from here.
1815 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1816
1817 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1818
1819 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1820 prototype from here...
1821 * alpha-tdep.h: ...to here.
1822
1823 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1824
1825 * frame.h (selected_frame_level): Document as deprecated.
1826 (frame_relative_level): Declare.
1827 * stack.c (frame_relative_level): New function.
1828 (selected_frame_level): Document as deprecated.
1829 (select_frame): Do not set the selected_frame_level.
1830
1831 * stack.c (frame_info, record_selected_frame): Update.
1832 (frame_command, current_frame_command): Update.
1833 (up_silently_base, up_command, down_silently_base): Update.
1834 (down_command): Update.
1835 * inflow.c (kill_command): Update.
1836 * tracepoint.c (finish_tfind_command): Update.
1837 * corelow.c (core_open): Update.
1838 * thread.c (info_threads_command): Update.
1839 (do_captured_thread_select): Update.
1840 * infcmd.c (finish_command): Update.
1841 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1842
1843 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1844
1845 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1846
1847 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1848
1849 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1850 type const.
1851
1852 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1853
1854 * alphafbsd-tdep.c: Update copyright years. Include
1855 alpha-tdep.h.
1856 (alphafbsd_use_struct_convention): Make static.
1857 (alphafbsd_init_abi): New function.
1858 (_initialize_alphafbsd_tdep): New function.
1859 * config/alpha/tm-fbsd.h: Update copyright years.
1860 (USE_STRUCT_CONVENTION): Remove.
1861
1862 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1863
1864 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1865 an Alpha ABI variant.
1866 (alpha_abi_handler_list): Declare.
1867 (alpha_gdbarch_register_os_abi): New function.
1868 (alpha_gdbarch_init): Give registered ABI variant handlers a
1869 chance to tweak the gdbarch once we have set up defaults.
1870 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1871
1872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1873
1874 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1875 to standard_coerce_float_to_double.
1876 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1877
1878 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1879
1880 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1881 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1882 from gdbarch_tdep rather than a constant.
1883 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1884 the default text address for all Alpha Unix ABIs.
1885 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1886 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1887
1888 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1889
1890 * alpha-tdep.h: New file. Includes several Alpha target constants
1891 taken from...
1892 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1893 let gdbarch deal with.
1894 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1895 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1896 to dependency list.
1897 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1898 Alpha target register names.
1899 * alphabsd-nat.c: Likewise.
1900 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1901 Alpha target register names. Make serveral routines static.
1902 (alpha_get_saved_register): New function.
1903 (alpha_abi_names): New.
1904 (process_note_abi_tag_sections): New function.
1905 (get_elfosabi): New function.
1906 (alpha_gdbarch_init): New function.
1907 (alpha_dump_tdep): New function.
1908 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1909
1910 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1911
1912 * frame.c (find_saved_register): Delete #ifdef
1913 HAVE_REGISTER_WINDOWS code.
1914 * config/sparc/tm-sparc.h: Update comments.
1915 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1916
1917 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1918
1919 * i960-tdep.c (i960_find_saved_register): New function.
1920 (i960_get_saved_register): New function.
1921 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1922 (i960_get_saved_register): Declare.
1923 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1924
1925 2002-04-20 David S. Miller <davem@redhat.com>
1926
1927 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1928
1929 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1930
1931 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1932 instead of NUM_PSEUDO_REGS.
1933
1934 2002-04-20 David S. Miller <davem@redhat.com>
1935
1936 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1937 GDB_MULTI_ARCH_PARTIAL
1938 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1939 define, let tm-sp64.h do it.
1940
1941 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1942
1943 * frame.c (find_saved_register): Avoid a NULL pointer
1944 dereference and actually walk the frame list.
1945
1946 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1947
1948 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1949 sorted in most most-recent-used order. Document.
1950 * gdbarch.h, gdbarch.c: Regenerate.
1951
1952 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1953
1954 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1955 (add_inferior): Call create_register_cache.
1956 (clear_inferiors): Call free_register_cache.
1957 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1958 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1959 (registers): Remove.
1960 (get_regcache): New function.
1961 (create_register_cache, free_register_cache): New functions.
1962 (set_register_cache): Don't initialize the register cache here.
1963 (registers_to_string, registers_from_string, register_data): Call
1964 get_regcache.
1965 * gdbserver/regcache.h: Add prototypes.
1966 * gdbserver/server.h: Likewise.
1967
1968 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1969
1970 * gdbserver/mem-break.c: New file.
1971 * gdbserver/mem-break.h: New file.
1972 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1973 dependencies.
1974 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1975 member.
1976 (clear_inferiors): Free target_data member if set.
1977 (inferior_target_data, set_inferior_target_data): New functions.
1978 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1979 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1980 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1981 (struct inferior_linux_data): New.
1982 (linux_create_inferior): Use set_inferior_target_data.
1983 (linux_attach): Likewise. Call add_inferior.
1984 (linux_wait_for_one_inferior): New function.
1985 (linux_wait): Call it.
1986 (linux_write_memory): Add const.
1987 (initialize_low): Call set_breakpoint_data.
1988 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1989 handling members.
1990 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1991 call.
1992 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1993 prototypes.
1994 * gdbserver/target.c (read_inferior_memory)
1995 (write_inferior_memory): New functions.
1996 * gdbserver/target.h (read_inferior_memory)
1997 (write_inferior_memory): Change macros to prototypes.
1998 (struct target_ops): Update comments. Add const to write_memory
1999 definition.
2000
2001 2002-04-19 Andrew Cagney <ac131313@redhat.com>
2002
2003 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
2004 instead of ->prev.
2005 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
2006 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
2007 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
2008 instead of ->prev.
2009
2010 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
2011
2012 Fix PR gdb/471.
2013 * gdbtypes.c (init_simd_type): Rewrite using new functions.
2014 (build_builtin_type_vec128): Ditto.
2015 (append_composite_type_field): Fix calculation of type length in
2016 union case.
2017
2018 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
2019
2020 * config/djgpp/README: Update.
2021
2022 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
2023 compiler warnings.
2024
2025 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
2026
2027 * alpha-tdep.c (setup_arbitrary_frame): Rename...
2028 (alpha_setup_arbitrary_frame): ...to this.
2029 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
2030 for alpha_setup_arbitrary_frame.
2031
2032 2002-04-18 Andrew Cagney <cagney@redhat.com>
2033
2034 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
2035 * gdbarch.h, gdbarch.c: Regenerate.
2036
2037 * defs.h (breakpoint_from_pc_fn): Delete type definition.
2038 * target.h (memory_breakpoint_from_pc): Update declaration.
2039 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
2040
2041 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
2042 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
2043 * mem-break.c (memory_breakpoint_from_pc): Ditto.
2044 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
2045 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
2046 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
2047 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
2048 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
2049 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
2050 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
2051 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
2052 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
2053
2054 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
2055 const pointer.
2056 * monitor.c (monitor_insert_breakpoint): Ditto.
2057 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
2058
2059 * config/mcore/tm-mcore.h: Update copyright.
2060 * mem-break.c: Ditto.
2061 * xstormy16-tdep.c: Ditto.
2062
2063 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
2064
2065 * p-exp.y: Add precedence rule for '^' token.
2066 This removes the shift/reduce conflicts.
2067 Remove the comment concerning these shift/reduce conflicts.
2068
2069 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
2070
2071 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
2072 (registers_powerpc_nofp): New register set for processors
2073 without floating point unit.
2074
2075 2002-04-18 David S. Miller <davem@redhat.com>
2076
2077 * MAINTAINERS: Add myself to write-after-approval.
2078
2079 2002-04-17 Michael Snyder <msnyder@redhat.com>
2080
2081 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
2082
2083 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2084
2085 * rs6000-tdep.c (frame_initial_stack_address): Use
2086 frame_register_read to read the alloca_reg.
2087
2088 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2089
2090 * frame.c (find_saved_register): Find saved registers in the next
2091 not prev frame.
2092 Fix PR gdb/365.
2093
2094 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2095
2096 * gdbarch.sh (LANG): Set to ``c''.
2097
2098 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2099
2100 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
2101
2102 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2103
2104 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
2105 Update copyright.
2106
2107 * hpread.c (hpread_get_lntt): Add declaration.
2108 Also fix PR gdb/391.
2109
2110 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2111
2112 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
2113 * aclocal.m4, configure: Re-generate.
2114 Fix PR gdb/391.
2115
2116 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2117
2118 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
2119 instead of tm_print_insn.
2120
2121 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2122
2123 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2124
2125 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2126
2127 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
2128 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
2129 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
2130
2131 2002-04-12 Don Howard <dhoward@redhat.com>
2132
2133 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
2134 max_user_call_depth.
2135 (init_cmd_lists): Initialize the new value;
2136 * cli/cli-script.c (execute_user_command): Limit the call depth of
2137 user defined commands. This avoids a core-dump when user commands
2138 are infinitly recursive.
2139
2140 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2141
2142 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
2143 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
2144 from tdep struct instead of DEFAULT_LR_SAVE.
2145 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
2146 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
2147 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
2148
2149 2002-04-12 Michael Snyder <msnyder@redhat.com>
2150
2151 * Remote.c: Spelling fix.
2152 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
2153 If no symbol found for "sbrk", try "_sbrk".
2154 (make_output_phdrs): Use bfd_section_name.
2155 (gcore_copy_callback): Use bfd_section_name.
2156 * eval.c: Indentation fix-ups.
2157 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
2158 in case it gets applied to an address that is already
2159 in the instruction space.
2160 * cli/cli-decode.c (help_list): Allow long lines to wrap.
2161 * symfile.c: Fix indentation, long lines.
2162 * source.c: White space fix-up.
2163
2164 2002-04-12 Andrew Cagney <cagney@redhat.com>
2165
2166 * defs.h (read_relative_register_raw_bytes): Delete declaration.
2167 * frame.c (frame_register_read): New function. Return non-zero on
2168 success.
2169 (read_relative_register_raw_bytes_for_frame): Delete.
2170 (read_relative_register_raw_bytes): Delete.
2171 * frame.h (frame_register_read): Declare.
2172 * d30v-tdep.c: Update Copyright. Use frame_register_read.
2173 * sh-tdep.c: Ditto.
2174 * infcmd.c (do_registers_info): Ditto.
2175 * hppa-tdep.c: Ditto.
2176 * rs6000-tdep.c: Ditto.
2177 * h8500-tdep.c: Ditto.
2178 * mips-tdep.c: Ditto.
2179 * h8300-tdep.c: Ditto.
2180 * z8k-tdep.c: Ditto.
2181
2182 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2183
2184 From Jimi X <jimix@watson.ibm.com>:
2185 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
2186 64-bit SysV ABI.
2187
2188 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2189
2190 From Jimi X <jimix@watson.ibm.com>:
2191 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
2192 bfd info.
2193
2194 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2195
2196 From Jimi X <jimix@watson.ibm.com>:
2197 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
2198 register sets for these processor variants.
2199
2200 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
2201
2202 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
2203 registers which are allowed to fail to store.
2204 * gdbserver/linux-low.h (linux_target_ops): Likewise.
2205 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
2206 (ppc_cannot_store_register): FPSCR may not be storable.
2207 * regformats/reg-ppc.dat: Support FPSCR.
2208
2209 2002-04-11 Kevin Buettner <kevinb@redhat.com>
2210
2211 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
2212 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2213 Add fpscr as an invalid/unfetchable register.
2214 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
2215 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
2216 (fill_fpregset): Add support for register fpscr.
2217 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
2218 (fill_gregset): Account for the fact that register ``mq'' might
2219 not exist.
2220 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
2221 (registers_power): Add fpscr to register set at slot 71.
2222 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
2223 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
2224
2225 2002-04-11 Michael Snyder <msnyder@redhat.com>
2226
2227 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
2228 * configure: Regenerate.
2229 * config.in: Regenerate.
2230 * acconfig.h: Add define for _SYSCALL32.
2231 * core-sol2.c: Remove #define _SYSCALL32.
2232 * solib-legacy.c: Remove #define _SYSCALL32.
2233
2234 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2235
2236 * stack.c (select_frame): Cleanup internal error message, do not
2237 use %p.
2238
2239 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2240
2241 * stack.c (select_frame): Check that selected_frame and the
2242 specified level are as expected.
2243 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
2244 Update copyright.
2245 * frame.h (struct frame_info): Add field `level'. Update
2246 copyright.
2247 Work-in-progress PR gdb/464.
2248
2249 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2250
2251 * maint.c (maint_print_section_info): Rename print_section_info.
2252 (print_bfd_section_info, print_objfile_section_info): Update.
2253 * inferior.h (struct gdbarch): Add opaque declaration.
2254 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
2255 * gdbarch.h: Regenerate.
2256
2257 2002-04-10 Michal Ludvig <mludvig@suse.cz>
2258
2259 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
2260 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
2261 (kernel_u_size): Added.
2262 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
2263 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2264
2265 2002-04-04 Jim Ingham <jingham@apple.com>
2266
2267 * valarith.c (find_size_for_pointer_math): New function, either returns
2268 the size for a pointer's target, returns 1 for void *, or errors for
2269 incomplete types.
2270 (value_add, value_sub): use find_size_for_pointer_math.
2271
2272 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2273
2274 * linux-low.c (linux_look_up_symbols): New hook.
2275 (linux_target_ops): Add linux_look_up_symbols.
2276 * remote-utils.c (decode_address): New function.
2277 (look_up_one_symbol): New function.
2278 * server.c (handle_query): Call target look_up_symbols hook.
2279 * server.h (look_up_one_symbol): Add prototype.
2280 * target.h (struct target_ops): Add look_up_symbols hook.
2281
2282 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2283
2284 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
2285 * ChangeLog: Correct paths in last ChangeLog entry.
2286
2287 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2288
2289 * gdbserver/linux-low.h: Remove obsolete prototypes.
2290 (struct linux_target_ops): New.
2291 (extern the_low_target): New.
2292 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2293 (register_addr): Use the_low_target explicitly.
2294 (fetch_register): Likewise.
2295 (usr_fetch_inferior_registers): Likewise.
2296 (usr_store_inferior_registers): Likewise.
2297 * gdbserver/linux-arm-low.c (num_regs): Remove.
2298 (arm_num_regs): Define.
2299 (arm_regmap): Renamed from regmap, made static.
2300 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2301 made static.
2302 (arm_cannot_store_register): Renamed from cannot_store_register,
2303 made static.
2304 (the_low_target): New.
2305 * gdbserver/linux-i386-low.c (num_regs): Remove.
2306 (i386_num_regs): Define.
2307 (i386_regmap): Renamed from regmap, made static.
2308 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2309 made static.
2310 (i386_cannot_store_register): Renamed from cannot_store_register,
2311 made static.
2312 (the_low_target): New.
2313 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2314 (ia64_num_regs): Define.
2315 (ia64_regmap): Renamed from regmap, made static.
2316 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2317 made static.
2318 (ia64_cannot_store_register): Renamed from cannot_store_register,
2319 made static.
2320 (the_low_target): New.
2321 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2322 (m68k_num_regs): Define.
2323 (m68k_regmap): Renamed from regmap, made static.
2324 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2325 made static.
2326 (m68k_cannot_store_register): Renamed from cannot_store_register,
2327 made static.
2328 (the_low_target): New.
2329 * gdbserver/linux-mips-low.c (num_regs): Remove.
2330 (mips_num_regs): Define.
2331 (mips_regmap): Renamed from regmap, made static.
2332 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2333 made static.
2334 (mips_cannot_store_register): Renamed from cannot_store_register,
2335 made static.
2336 (the_low_target): New.
2337 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2338 (ppc_num_regs): Define.
2339 (ppc_regmap): Renamed from regmap, made static.
2340 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2341 made static.
2342 (ppc_cannot_store_register): Renamed from cannot_store_register,
2343 made static.
2344 (the_low_target): New.
2345 * gdbserver/linux-s390-low.c (num_regs): Remove.
2346 (s390_num_regs): Define.
2347 (s390_regmap): Renamed from regmap, made static.
2348 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2349 made static.
2350 (s390_cannot_store_register): Renamed from cannot_store_register,
2351 made static.
2352 (the_low_target): New.
2353 * gdbserver/linux-sh-low.c (num_regs): Remove.
2354 (sh_num_regs): Define.
2355 (sh_regmap): Renamed from regmap, made static.
2356 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2357 made static.
2358 (sh_cannot_store_register): Renamed from cannot_store_register,
2359 made static.
2360 (the_low_target): New.
2361 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2362 (the_low_target): New.
2363
2364 2002-04-09 Andrew Cagney <ac131313@redhat.com>
2365
2366 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
2367 override FP_REGNUM with frame->fp. Update copyright.
2368 * parse.c (num_std_regs, std_regs): Delete.
2369 (target_map_name_to_register): Do not search std_regs. Update
2370 function description.
2371 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
2372 declarations. Update copyright.
2373 Fix PR gdb/251.
2374
2375 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2376
2377 * gdbserver/Makefile.in: Add stamp-h target.
2378 * gdbserver/configure.in: Create stamp-h.
2379 * gdbserver/configure: Regenerated.
2380
2381 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2382
2383 * gdbserver/inferiors.c: New file.
2384 * gdbserver/target.c: New file.
2385 * gdbserver/target.h: New file.
2386 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
2387 dependencies.
2388 * gdbserver/linux-low.c (inferior_pid): New static variable,
2389 moved from server.c.
2390 (linux_create_inferior): Renamed from create_inferior.
2391 Call add_inferior. Return 0 on success instead of a PID.
2392 (linux_attach): Renamed from myattach.
2393 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2394 (linux_thread_alive): Renamed from mythread_alive.
2395 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2396 child dies.
2397 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2398 (regsets_store_inferior_registers): Correct error message.
2399 Add missing ``return 0''.
2400 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2401 (linux_store_registers): Renamed from store_inferior_registers.
2402 (linux_read_memory): Renamed from read_inferior_memory.
2403 (linux_write_memory): Renamed from write_inferior_memory.
2404 (linux_target_ops): New structure.
2405 (initialize_low): Call set_target_ops ().
2406 * gdbserver/remote-utils.c (unhexify): New function.
2407 (hexify): New function.
2408 (input_interrupt): Send signals to ``signal_pid''.
2409 * gdbserver/server.c (inferior_pid): Remove.
2410 (start_inferior): Update create_inferior call.
2411 (attach_inferior): Call add_inferior.
2412 (handle_query): New function.
2413 (main): Call handle_query for `q' packets.
2414 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
2415 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2416
2417 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2418
2419 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
2420 dependencies.
2421 * gdbserver/configure.in: Check for <string.h>
2422 * gdbserver/configure: Regenerate.
2423 * gdbserver/config.in: Regenerate.
2424 * gdbserver/gdbreplay.c: Include needed system headers.
2425 (remote_open): Remove strchr prototype.
2426 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2427 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
2428 (supply_register_by_name): Likewise.
2429 (collect_register): Change buf argument to void *.
2430 (collect_register_by_name): Likewise.
2431 * gdbserver/regcache.h: Add missing prototypes.
2432 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2433 * gdbserver/server.c (handle_query): New function.
2434 (attached): New static variable, moved out of main.
2435 (main): Quiet longjmp clobber warnings.
2436 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2437 * gdbserver/utils.c (error): Remove NORETURN.
2438 (fatal): Likewise.
2439
2440 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2441
2442 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
2443 after the last symbol in a block.
2444
2445 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
2446
2447 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
2448 is non zero as a found symbol.
2449
2450 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2451
2452 * findvar.c: Include "builtin-regs.h".
2453 (value_of_register): Call value_of_builtin_reg when applicable.
2454 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
2455 (target_map_name_to_register): Call
2456 builtin_reg_map_name_to_regnum.
2457 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
2458 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
2459 (builtin_regs_h): Define.
2460 (builtin-regs.o): New target.
2461 (findvar.o): Add $(builtin_regs_h).
2462 * builtin-regs.c, builtin-regs.h: New files.
2463 * std-regs.c: New file.
2464 Partial fix for PR gdb/251.
2465
2466 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2467
2468 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
2469 it's no longer required.
2470
2471 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2472
2473 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2474
2475 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2476
2477 From Jimi X <jimix@watson.ibm.com>:
2478 * rs6000-tdep.c (rs6000_software_single_step): Use
2479 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
2480 and size. Use target_insert_breakpoint() and
2481 target_remove_breakpoint() to insert and remove breakpoints
2482 instead of explicit memory reads and writes.
2483
2484 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2485
2486 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
2487 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
2488 ELF_OBJECT_FORMAT ifdef.
2489
2490 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2491
2492 From Jimi X <jimix@watson.ibm.com>:
2493 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2494
2495 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2496
2497 From Jimi X <jimix@watson.ibm.com>:
2498 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
2499 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2500
2501 2002-04-07 Mark Kettenis <kettenis@gnu.org>
2502
2503 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
2504 s/asprintf/xasprintf/.
2505 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2506
2507 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2508
2509 I believe Jeff Law denies responsability for this one:
2510 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
2511 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
2512 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
2513 Work-around for PR gdb/366.
2514
2515 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2516
2517 * remote-e7000.c (write_small, e7000_read_inferior_memory,
2518 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
2519 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2520
2521 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2522
2523 * sh-tdep.c (sh_fp_frame_init_saved_regs,
2524 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
2525 information.
2526
2527 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2528
2529 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2530 maintainer.
2531
2532 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2533
2534 * README (Reporting Bugs in GDB): Document the bug web page as the
2535 prefered way of submitting bugs.
2536 Fix PR gdb/402.
2537
2538 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2539
2540 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2541 -1. Update comment.
2542 * gdbarch.h, gdbarch.c: Re-generate.
2543
2544 2002-04-07 Andreas Schwab <schwab@suse.de>
2545
2546 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2547 buffer to regcache_collect.
2548
2549 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2550
2551 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2552 * gdbarch.c, gdbarch.h: Re-generate.
2553
2554 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2555
2556 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2557 declaration. Fix -Werror.
2558
2559 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
2560
2561 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2562 * gdbarch.c: Regenerate.
2563
2564 2002-04-05 Michael Snyder <msnyder@redhat.com>
2565
2566 * breakpoint.c (clear_command): Rewrite middle section to
2567 combine two loops with identical control conditions.
2568 Add a cleanup to eliminate a memory leak.
2569 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2570
2571 2002-04-05 H.J. Lu (hjl@gnu.org)
2572
2573 * solib-svr4.c (bkpt_names): Add "__start".
2574
2575 2002-04-04 Andrew Cagney <ac131313@redhat.com>
2576
2577 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
2578 as test for 64 bit target.
2579
2580 2002-04-05 Andrew Cagney <ac131313@redhat.com>
2581
2582 * h8500-tdep.c (h8500_write_fp): Delete function.
2583 * dwarf2cfi.c (cfi_write_fp): Document as not used.
2584 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
2585 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
2586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
2587 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
2588 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
2589 (s390_write_fp):
2590 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
2591 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
2592 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
2593 (d10v_write_fp): Delete function.
2594 * inferior.h (write_fp, generic_target_write_fp): Delete
2595 declarations.
2596 * regcache.c (generic_target_write_fp): Delete function.
2597 (write_fp): Delete function.
2598 * gdbarch.sh (TARGET_WRITE_FP): Delete.
2599 * gdbarch.h, gdbarch.c: Regenerate.
2600 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
2601 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
2602 (sparc64_write_fp): Delete declaration.
2603 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
2604 (h8500_write_fp): Delete declaration.
2605
2606 2002-04-04 Andrew Cagney <ac131313@redhat.com>
2607
2608 * sparc-tdep.c (sparc64_write_fp): Delete.
2609 (sparc_push_dummy_frame): Replace write_fp call with code to store
2610 the FP directly.
2611 (sparc_gdbarch_init): Do not initialize write_fp.
2612
2613 2002-04-05 Kevin Buettner <kevinb@redhat.com>
2614
2615 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
2616 clause.
2617
2618 2002-03-29 Jim Blandy <jimb@redhat.com>
2619
2620 * stack.c (get_selected_block): Add new argument `addr_in_block',
2621 used to return the exact code address we used to select the block,
2622 not just the block.
2623 * blockframe.c (get_frame_block, get_current_block): Same.
2624 * frame.h (get_frame_block, get_current_block,
2625 get_selected_block): Update declarations.
2626 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
2627 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
2628
2629 2002-04-05 Michael Snyder <msnyder@redhat.com>
2630
2631 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
2632 warning message.
2633
2634 2002-04-05 J. Brobecker <brobecker@gnat.com>
2635
2636 * utils.c (xfullpath): New function.
2637 * defs.h (xfullpath): Add declaration.
2638 * source.c (openp): Use xfullpath in place of gdb_realpath to
2639 avoid resolving the basename part of filenames when the
2640 associated file is a symbolic link. This fixes a potential
2641 inconsistency between the filenames known to GDB and the
2642 filenames it prints in the annotations.
2643 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2644 to be able to match a filename with either the real filename, or
2645 the name of any symbolic link to this file.
2646 (lookup_partial_symtab): Ditto.
2647
2648 2002-04-04 Michael Snyder <msnyder@redhat.com>
2649
2650 * breakpoint.c: Add support for hardware breakpoints in overlays.
2651 (overlay_events_enabled): New state variable.
2652 (insert_breakpoints): Use overlay_events_enabled to decide
2653 whether to attempt to set a breakpoint at the overlay load addr.
2654 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2655 (remove_breakpoint): Use overlay_events_enabled to decide
2656 whether breakpoints need to be removed from overlay load addr.
2657 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2658 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
2659 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
2660 disable_overlay_breakpoints): Update overlay_events_enabled.
2661
2662 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
2663
2664 * dwarf2read.c (struct function_range): New.
2665 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2666 (check_cu_functions): New.
2667 (read_file_scope): Initialize global function lists.
2668 Call dwarf_decode_line after processing children.
2669 (read_func_scope): Add to global function list.
2670 (dwarf_decode_lines): Call check_cu_functions everywhere
2671 record_line is called. Call record_line with a linenumber
2672 of 0 to mark sequence ends.
2673
2674 2002-04-04 Michal Ludvig <mludvig@suse.cz>
2675
2676 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
2677 change sync with glibc.
2678
2679 2002-04-03 Jim Blandy <jimb@redhat.com>
2680
2681 * configure.in: Call AC_C_INLINE.
2682 * configure: Regenerated.
2683
2684 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
2685
2686 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2687 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2688
2689 2002-03-31 Mark Kettenis <kettenis@gnu.org>
2690
2691 * NEWS: Mention gcore support on FreeBSD/i386.
2692
2693 * fbsd-proc.c: New file.
2694 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2695 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2696
2697 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2698 while statement.
2699
2700 2002-03-29 Jim Blandy <jimb@redhat.com>
2701
2702 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2703 unescaped newlines in string literals, but newer ones don't. So
2704 escape them.
2705
2706 2002-03-26 Michael Snyder <msnyder@redhat.com>
2707 Andrew Cagney <cagney@redhat.com>
2708
2709 * cli/cli-dump.c: New file. Dump memory to file,
2710 restore file to memory.
2711 * cli/cli-dump.h: New file.
2712 * Makefile.in: Add rules, dependencies for cli-dump.o.
2713 * NEWS: Mention new commands.
2714
2715 2002-03-28 Michael Snyder <msnyder@redhat.com>
2716
2717 * symfile.c (symbol_file_add): Move test for null symbols to later.
2718
2719 2002-03-27 Andrew Cagney <ac131313@redhat.com>
2720
2721 From veksler at il.ibm.com:
2722 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2723 the xstrduped original path.
2724 Fix PR gdb/417.
2725
2726 2002-03-27 Michael Snyder <msnyder@redhat.com>
2727
2728 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2729 * infcmd.c (_initialize_infcmd): Ditto.
2730 * language.c (_initialize_language): Ditto.
2731 * symfile.c (_initialize_symfile): Ditto.
2732 * top.c (_init_main): Ditto.
2733 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2734
2735 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
2736
2737 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
2738 vector registers handling.
2739 (skip_prologue): Handle new AltiVec instructions. Fill in new
2740 fields of frame data.
2741 (frame_get_saved_regs): Fill in information for AltiVec registers.
2742
2743 2002-03-27 Jim Blandy <jimb@redhat.com>
2744
2745 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
2746 a function; leave this macro here to invoke that function.
2747 (symbol_init_mangled_name): Declaration for that function.
2748 * symtab.c (symbol_init_mangled_name): New function.
2749
2750 2002-03-27 Andrew Cagney <ac131313@redhat.com>
2751
2752 * valarith.c: Replace strerror with safe_strerror.
2753 * tracepoint.c: Ditto.
2754 * lin-lwp.c: Ditto.
2755 * go32-nat.c: Ditto.
2756 * inflow.c: Ditto.
2757 * gnu-nat.c: Ditto.
2758
2759 2002-03-27 Andreas Schwab <schwab@suse.de>
2760
2761 * event-top.c (command_line_handler): Remove useless if.
2762
2763 2002-03-27 Andreas Jaeger <aj@suse.de>
2764
2765 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2766 comment.
2767
2768 2002-03-27 Michal Ludvig <mludvig@suse.cz>
2769
2770 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2771 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2772 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2773 (x86_64_linux_dr_get_status, supply_gregset),
2774 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2775 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2776 (x86_64_register_info_table): Add.
2777 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2778 (x86_64_register_raw_size, x86_64_register_virtual_type),
2779 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2780 general x86_64_register_info_table.
2781 (i386_gdbarch_init): gdbarch_register_bytes is now set
2782 dynamicaly during initialization.
2783 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2784 * gdbserver/linux-x86-64-low.c: Ditto.
2785
2786 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2787
2788 * gdbserver/server.c (main): Call target_signal_to_host_p
2789 and target_signal_to_host on signals received from the remote.
2790 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2791 target_signal_from_host on signals sent to the remote.
2792 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2793 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2794
2795 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2796
2797 * signals/signals.c: Include "server.h" in gdbserver build.
2798 (target_signal_from_name): Don't use STREQ.
2799 (_initialize_signals): Likewise. Don't include function in
2800 gdbserver build.
2801
2802 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2803
2804 * signals.c: Moved to...
2805 * signals/signals.c: Here.
2806 * Makefile (signals.o): Update.
2807
2808 2002-03-26 Jeff Law (law@redhat.com)
2809
2810 * somread.c (som_symtab_read): Remove some commented out code and
2811 updated related comments. Do not set the minimal symbol table to
2812 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2813 in a dynamic executable.
2814 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2815 where we are unable to find the minimal symbol for the given
2816 PC value.
2817
2818 2002-03-25 Jeff Law (law@redhat.com)
2819
2820 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2821
2822 2002-03-25 Michal Ludvig <mludvig@suse.cz>
2823
2824 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2825
2826 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2827
2828 * command.h: Update copyright.
2829 (struct cmd_list_element): Replace definition with opaque
2830 declaration.
2831 (enum cmd_types): Document that it will eventually be moved to
2832 cli/cli-decode.h
2833 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2834 (MALLOCED_REPLACEMENT): Delete macro.
2835 * Makefile.in (cli_decode_h): Add $(command_h).
2836 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2837 * top.c: Include "cli/cli-decode.h".
2838 * completer.c: Include "cli/cli-decode.h".
2839 * maint.c: Include "cli/cli-decode.h".
2840 * cli/cli-decode.h: Include "command.h".
2841 (enum command_class): Delete.
2842 (enum cmd_types): Comment out.
2843 (enum cmd_auto_boolean): Delete.
2844 (enum var_types): Delete.
2845
2846 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2847
2848 * cli/cli-decode.c: Include "gdb_assert.h".
2849 (add_set_or_show_cmd): New static function.
2850 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2851 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2852 all fields, such as func, from the set command.
2853
2854 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2855
2856 * MAINTAINERS (sh-elf): Change warning flag to -w.
2857
2858 2002-03-23 Andrew Cagney <cagney@redhat.com>
2859
2860 * defs.h (error): Add printf format attribute.
2861 * thread-db.c (thread_from_lwp): Fix error format string.
2862 * stack.c (parse_frame_specification): Ditto.
2863 * cli/cli-decode.c (undef_cmd_error): Ditto.
2864 * scm-lang.c (scm_lookup_name): Ditto.
2865 * tracepoint.c (trace_error): Ditto.
2866 * remote-utils.c (usage): Ditto.
2867 * remote.c (compare_sections_command): Ditto.
2868 Fix PR gdb/328.
2869
2870 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2871
2872 * gdbtypes.c (append_composite_type_field): New function.
2873 (init_composite_type): New function.
2874 * gdbtypes.h (append_composite_type_field): Declare.
2875 (init_composite_type): Ditto.
2876
2877 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2878
2879 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2880 function.
2881 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2882 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2883 structure returning convention for SYSV ABI case, but not
2884 for GNU/Linux, FreeBSD, or NetBSD.
2885
2886 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2887
2888 * symtab.h (lookup_block_symbol): Add mangled_name argument
2889 to prototype.
2890
2891 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2892 with new mangled_name argument.
2893 * linespec.c (decode_line_1): Likewise.
2894 * valops (value_of_this): Likewise.
2895 * symtab.c (lookup_transparent_type): Likewise.
2896 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2897 (lookup_symbol): If we are given a mangled name, pass it down
2898 to lookup_symbol_aux.
2899 (lookup_block_symbol): If we are given a mangled name to check
2900 against, only return symbols which match it.
2901
2902 2002-03-22 Christopher Faylor <cgf@redhat.com>
2903
2904 * win32-nat.c (child_create_inferior): Check for proper shell to use
2905 here, in case the user changes it on the fly.
2906 (_initialize_inftarg): Remove shell path considerations.
2907
2908 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2909
2910 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2911 for gdbarch_max_register_raw_size and max_register_virtual_size.
2912 Adjust copyright year.
2913
2914 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2915
2916 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2917 in a function to cover the entire beginning of the function
2918 as well if it does not already.
2919
2920 2002-03-21 Tom Rix <trix@redhat.com>
2921
2922 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2923 (rs6000_ptrace64): Renamed from ptrace64.
2924
2925 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2926
2927 * gdbserver/remote-utils.c (remote_open): Don't call
2928 getprotobyname, we're all using TCP here so just use
2929 IPPROTO_TCP.
2930 * gdbserver/gdbreplay.c (remote_open): Ditto.
2931
2932 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2933
2934 * regcache.c (_initialize_regcache): No need to call
2935 build_regcache() at this time; it gets called whenever
2936 the gdbarch changes.
2937
2938 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2939
2940 * sparc-nat.c: Include sys/param.h where possible.
2941
2942 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2943
2944 Fix PR gdb/422.
2945 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2946 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2947 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2948 complex types.
2949 * stabsread.c (rs6000_builtin_type): Likewise.
2950 (read_sun_floating_type): Likewise.
2951
2952 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2953
2954 * stabsread.c (read_member_functions): Remove skip code for duplicate
2955 constructor/destructor methods. Use standard parsing for these
2956 methods and just do not chain them to the list of methods after
2957 parsing.
2958
2959 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2960
2961 * coffread.c: Remove redundant static declarations. Replace
2962 occurrences of `PTR' with `void *'.
2963 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2964 * top.h (quit_cover): Likewise.
2965 * defs.h (catch_errors): Likewise.
2966
2967 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2968
2969 * defs.h (XMALLOC): Define.
2970 * gdb-events.sh (XMALLOC): Delete macro.
2971 * gdb-events.c, gdb-events.h: Regenerate.
2972 * gdbarch.sh (XMALLOC): Delete macro.
2973 * gdbarch.c: Regenerate.
2974 * serial.c (XMALLOC): Delete macro.
2975 * ui-file.c (XMALLOC): Ditto.
2976 * ser-unix.h (XMALLOC): Ditto.
2977 * sh-tdep.c (XMALLOC): Ditto.
2978 * ui-out.c (XMALLOC): Ditto.
2979 * utils.c (XMALLOC): Ditto.
2980 * i386-tdep.c (XMALLOC): Ditto.
2981 * gdb-events.c (XMALLOC): Ditto.
2982 * d10v-tdep.c (XMALLOC): Ditto.
2983 * cli-out.c (XMALLOC): Ditto.
2984
2985 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2986 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2987 * ui-file.c, ui-out.c: Ditto.
2988
2989 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2990
2991 * command.h (struct cmd_list_element): Add field context.
2992 (set_cmd_context, get_cmd_context): Declare.
2993 * cli/cli-decode.h: Ditto.
2994 * cli/cli-decode.c (get_cmd_context): New function.
2995 (set_cmd_context): New function.
2996 (add_cmd): Initialize context.
2997 Part of fixing PR gdb/145 and PR gdb/146.
2998
2999 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3000
3001 * cli/cli-decode.c (cmd_type): New function.
3002 * command.h (cmd_type): Declare.
3003 * infrun.c (set_schedlock_func): Call function cmd_type.
3004 * kod.c (kod_set_os): Call cmd_type.
3005 * cris-tdep.c (cris_version_update): Use function cmd_type.
3006 (cris_mode_update, cris_abi_update): Ditto.
3007
3008 * command.h: (execute_cmd_post_hook): Declare.
3009 (execute_cmd_pre_hook): Declare.
3010 * cli/cli-script.c (clear_hook_in_cleanup): New function.
3011 (execute_cmd_post_hook, execute_cmd_pre_hook): New
3012 functions. Execute pre/post hook while ensuring that afterwords
3013 hook_in is cleared.
3014 * top.c (execute_command): Use execute_cmd_post_hook, and
3015 execute_cmd_pre_hook to execute pre/post commands.
3016 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
3017 hook_stop_stub.
3018 (hook_stop_stub): Call execute_cmd_pre_hook.
3019
3020 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3021
3022 * kod.c (kod_set_os): Revert previous change. Is called by ``info
3023 set'' and this leads to a core dump. Move xstrdup of
3024 operating_system to after check that it is not NULL.
3025
3026 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3027
3028 * kod.c (kod_set_os): Remove unnecessary check that
3029 ``command->type'' is set_cmd.
3030
3031 * valprint.c (set_input_radix): Use input_radix.
3032 (set_output_radix): Use output_radix.
3033 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
3034 isn't reverted.
3035
3036 2002-03-16 Andrew Cagney <ac131313@redhat.com>
3037
3038 * value.h (struct value): Delete field ``substring_addr''. Change
3039 aligner fields to force_doublest_align, force_longest_align,
3040 force_core_addr_align and force_pointer_aligh.
3041
3042 * value.h (struct value): Fix typo in above change.
3043
3044 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3045
3046 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
3047 to fix internal_error from ``maintenance print architecture''.
3048
3049 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3050
3051 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
3052 for gcc versions after gcc-2.8.1.
3053
3054 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3055
3056 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
3057 for method resolution. Restore adjustment of ``this'' pointer after
3058 calling value_struct_elt, which was accidentally removed during the
3059 HP merge.
3060
3061 2002-03-15 Andrew Cagney <ac131313@redhat.com>
3062
3063 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
3064 value_of_register.
3065 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
3066 get_saved_register.
3067 * value.h (value_of_register): Update.
3068
3069 2002-03-14 Richard Henderson <rth@redhat.com>
3070
3071 * configure.in: Detect declaration for canonicalize_file_name.
3072 * utils.c (canonicalize_file_name): Declare, if needed.
3073 (gdb_realpath): Prefer realpath if available and usable.
3074 * config.in, configure: Rebuild.
3075
3076 2002-03-14 Richard Henderson <rth@redhat.com>
3077
3078 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
3079 a constant array bound.
3080
3081 * MAINTAINERS: Add myself to write-after-approval.
3082
3083 2002-03-14 Michael Snyder <msnyder@redhat.com>
3084
3085 * symfile.c (syms_from_objfile): Return immediately if no syms.
3086 (symbol_file_add): Return immediately if no syms.
3087 (find_sym_fns): Return immediately if no syms.
3088
3089 2002-03-13 Michal Ludvig <mludvig@suse.cz>
3090
3091 * gdbserver/remote-util.c (remote_open): Print remote-side's
3092 IP address when remote debugging over the network.
3093
3094 2002-03-12 David O'Brien <obrien@FreeBSD.org>
3095
3096 * config/sparc/fbsd.mh: Fix copyright.
3097 * config/sparc/fbsd.mt: Likewise.
3098
3099 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
3100
3101 * MAINTAINERS: Fix typo in name of gdb warnings option.
3102 (x86-64): Fix formating so that this can be parsed by awk.
3103
3104 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3105
3106 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
3107 * defs.h: Include "gdb/signals.h".
3108 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
3109
3110 2002-03-10 Michal Ludvig <mludvig@suse.cz>
3111
3112 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
3113 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
3114 from x86-64-tdep.h
3115
3116 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3117 Don Howard <dhoward@redhat.com>
3118
3119 * mips-tdep.c (ST0_FR): Define.
3120 (mips2_fp_compat): New function, temporarily disabled.
3121 (mips_read_fp_register_single): New function.
3122 (mips_read_fp_register_double): New function.
3123 (mips_print_register): Use them.
3124 (do_fp_register_row): Likewise.
3125
3126 2002-03-09 Andrew Cagney <ac131313@redhat.com>
3127
3128 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
3129 approval''.
3130
3131 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3132
3133 * stabsread.c (read_member_functions): Fix is_stub test for
3134 static member functions, improve comment.
3135
3136 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3137
3138 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
3139 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
3140 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
3141 commands that set boolean values.
3142 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
3143 (arm_rdi_resume): Always initialize PC.
3144 (arm_rdi_open): Don't use rslt as a boolean.
3145 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
3146 (arm_rdi_fetch_registers, arm_rdi_store_registers)
3147 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
3148 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
3149
3150 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
3151
3152 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
3153 * configure: Rebuilt.
3154
3155 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3156
3157 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
3158 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
3159
3160 2002-03-06 Andrew Cagney <ac131313@redhat.com>
3161
3162 * cli/cli-decode.c (set_cmd_completer): New function.
3163 * command.h (set_cmd_completer): Declare.
3164 * cli/cli-decode.h (set_cmd_completer): Ditto.
3165
3166 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
3167 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3168 * win32-nat.c (_initialize_inftarg): Ditto.
3169 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3170 * proc-api.c (_initialize_proc_api): Ditto.
3171 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
3172 * source.c (_initialize_source): Ditto.
3173 * exec.c (_initialize_exec): Ditto.
3174 * solib.c (_initialize_solib): Ditto.
3175 * top.c (init_main): Ditto.
3176 * tracepoint.c (_initialize_tracepoint): Ditto.
3177 * symfile.c (_initialize_symfile): Ditto.
3178 * printcmd.c (_initialize_printcmd): Ditto.
3179 * infcmd.c (_initialize_infcmd): Ditto.
3180 * corefile.c (_initialize_core): Ditto.
3181
3182 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3183
3184 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
3185
3186 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3187
3188 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
3189
3190 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3191
3192 * NEWS: Update headings, 5.2 has branched.
3193
3194 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
3195
3196 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
3197 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
3198 (register_addr, REGISTER_RAW_SIZE): Likewise.
3199 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
3200 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
3201
3202 2002-03-03 Michal Ludvig <mludvig@suse.cz>
3203
3204 * MAINTAINERS (x86-64): Add myself.
3205 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
3206 changed value_ptr -> struct value *
3207
3208 2002-03-01 David O'Brien <obrien@FreeBSD.org>
3209
3210 * configure.host (sparc64-*-freebsd): Add.
3211 * configure.tgt: Likewise.
3212 * config/sparc/fbsd.mh: New file.
3213 * config/sparc/fbsd.mt: Likewise.
3214 * config/sparc/nm-fbsd.h: Likewise.
3215 * config/sparc/tm-fbsd.h: Likewise.
3216
3217 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
3218
3219 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
3220 regformats/reg-s390x.dat.
3221
3222 2002-03-01 Andrew Cagney <ac131313@redhat.com>
3223
3224 * utils.c: Add FIXME explaining true/false problem.
3225
3226 2002-02-28 Andrew Cagney <ac131313@redhat.com>
3227
3228 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
3229
3230 2002-02-28 Michael Chastain <mec@shout.net>
3231
3232 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
3233
3234 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
3235
3236 * gdbserver/linux-s390-low.c: New file.
3237 * regformats/reg-s390.dat: New file.
3238 * regformats/reg-s390x.dat: New file.
3239 * gdbserver/configure.srv: Add S/390.
3240 * gdbserver/Makefile.in: Add S/390.
3241 * configure.tgt: Enable gdbserver for S/390.
3242
3243 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
3244
3245 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
3246 first line of the doc string for "info dos", except at the end of
3247 the sentence, since the short help stops at the first period.
3248
3249 2002-02-28 Jason Merrill <jason@redhat.com>
3250
3251 * dwarf2read.c (dwarf_cfi_name): Add new codes.
3252
3253 2002-02-27 Fred Fish <fnf@redhat.com>
3254
3255 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
3256 comment (dumy -> dummy).
3257
3258 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3259
3260 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
3261
3262 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
3263
3264 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
3265
3266 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3267
3268 * gdbserver/acconfig.h: New file.
3269 * gdbserver/i387-fp.c: New file.
3270 * gdbserver/i387-fp.h: New file.
3271 * gdbserver/linux-x86-64.c: New file.
3272 * regformats/reg-x86-64.dat: New file.
3273 * configure.tgt: Add x86_64-*-linux* gdbserver support.
3274 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
3275 * gdbserver/configure.in: Add support for regsets.
3276 * gdbserver/config.in: Regenerate.
3277 * gdbserver/configure: Regenerate.
3278 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
3279 * gdbserver/linux-low.h: New file.
3280 * gdbserver/linux-low.c: Include "linux-low.h". Add support
3281 for regsets.
3282 * gdbserver/linux-arm-low.c: Include "linux-low.h".
3283 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
3284 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
3285 * gdbserver/linux-mips-low.c: Include "linux-low.h".
3286 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
3287 * gdbserver/linux-sh-low.c: Include "linux-low.h".
3288 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
3289 "i387-fp.h". Add PTRACE_GETREGS and friends.
3290 * gdbserver/regcache.c (supply_register): New function.
3291 (supply_register_by_name): New function.
3292 (collect_register): New function.
3293 (collect_register_by_name): New function.
3294
3295 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3296
3297 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
3298 (config.status): Add configure.srv dependency.
3299 (server_h): Add config.h dependency.
3300
3301 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3302
3303 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
3304 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
3305 * gdbserver/configure.srv: Change i386-*-linux* to use
3306 reg-i386-linux.o.
3307
3308 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3309
3310 * x86-64-tdep.c: Re-indent. Update copyright date.
3311
3312 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3313
3314 From Michal Ludvig <mludvig@suse.cz>:
3315 * x86-64-tdep.c (value.h): Delete.
3316 (gdb_assert.h): Include.
3317 (x86_64_register_convert_to_virtual,
3318 x86_64_register_convert_to_raw ): Add check which lets only
3319 floating-point values to be converted.
3320 (value_push): Delete.
3321 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3322 (i386_gdbarch_init): Number of register_bytes fixed.
3323
3324 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3325
3326 * MAINTAINERS: Add x86-64 target.
3327
3328 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3329
3330 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3331 * osfsolib.c (solib_map_sections): Ditto.
3332 * irix5-nat.c (solib_map_sections): Ditto.
3333 * corelow.c (gdb_check_format): Ditto.
3334 * symfile.c (symfile_bfd_open): Ditto.
3335 * solib.c (solib_map_sections): Ditto.
3336 Fix PR gdb/354.
3337
3338 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3339
3340 * remote.c (_initialize_remote): By default, disable ``e'' and
3341 ``E'' step out-of-range packets.
3342
3343 2002-02-26 Andreas Schwab <schwab@suse.de>
3344
3345 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3346 m68k_linux_frame_saved_pc.
3347 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3348 in_sigtramp.
3349 (SIGCONTEXT_PC_OFFSET): Remove.
3350 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
3351 m68k_linux_sigtramp_saved_pc): New functions.
3352 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
3353 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
3354 (UCONTEXT_PC_OFFSET): Define.
3355 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
3356 non-RT and RT signal trampolines.
3357
3358 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
3359
3360 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
3361 (TARGET_NBPG, STACK_END_ADDR): Delete
3362 (VARIABLES_INSIDE_BLOCK): Delete.
3363
3364 2002-02-25 Andrew Cagney <ac131313@redhat.com>
3365
3366 * utils.c (perror_with_name): Make string parameter constant.
3367 (print_sys_errmsg): Ditto.
3368 (query): Ditto.
3369 * defs.h (perror_with_name): Update.
3370 (print_sys_errmsg): Update.
3371 (query): Update.
3372
3373 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
3374
3375 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
3376 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
3377
3378 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3379
3380 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
3381 if it already matches the current architecture from the exec file.
3382 Include arch-utils.h for gdbarch_info_init prototype.
3383 * Makefile.in (rs6000-nat.o): Update dependencies.
3384
3385 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
3386
3387 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
3388 list of exported variables.
3389
3390 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * gdbserver/configure.srv: New file.
3393 * gdbserver/configure.in: Use configure.srv instead
3394 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
3395 from it.
3396 * gdbserver/configure: Regenerated.
3397 * gdbserver/terminal.h: New file.
3398 * gdbserver/Makefile.in: Update for configure changes. Remove
3399 more unneeded include paths.
3400
3401 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3402
3403 From wiz at danbala:
3404 * config/sparc/tm-sp64.h: Fix grammar and typos.
3405 Fix PR gdb/287.
3406
3407 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3408
3409 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
3410 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
3411 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
3412 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
3413 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
3414 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
3415 * s390-tdep.c: Ditto.
3416 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
3417 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
3418 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
3419 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
3420 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
3421 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
3422 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
3423 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
3424 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
3425 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
3426 Fix PR gdb/378.
3427
3428 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3429
3430 * lin-thread.c: Delete file.
3431 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
3432 to gdb_proc_service.h.
3433 * configure: Re-generate.
3434
3435 * ocd.c (ocd_open): Do not try to open the "ocd" device.
3436 * serial.c (serial_open): Delete check for "ocd".
3437 Fix PR gdb/349.
3438
3439 * Makefile.in (linux-thread.o): Delete target.
3440 * linux-thread.c: Delete file.
3441
3442 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
3443 renamed SH files to be consistent.
3444
3445 * symtab.c (sort_search_symbols): Use xfree.
3446
3447 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3448
3449 * arm-linux-tdep.c (arm_linux_init_abi): Register
3450 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
3451 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
3452 definition with undef, since we don't want the sysvr4 definition.
3453 (SKIP_TRAMPOLINE_CODE): Likewise.
3454
3455 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3456
3457 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
3458
3459 * configure.in: (AC_CHECK_FUNCS) Added test for
3460 canonicalize_file_name Regenerated.
3461 * config.in, configure: Regenerated.
3462 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
3463 defined use canonicalize_file_name.
3464
3465 2002-02-23 Michael Chastain <mec@shout.net>
3466
3467 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
3468
3469 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3470
3471 * README: Remove references to cygnus.com.
3472 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
3473 dot com'' form. Remove references to cygnus.com and sourceware.
3474
3475 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3476
3477 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
3478 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
3479 1003.1-2001 no longer allows "head -1".
3480 * gdb/Makefile.in (version.c): Likewise.
3481 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
3482 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
3483 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
3484
3485 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3486
3487 * cli/cli-decode.c (cmd_cfunc_eq): New function.
3488 * command.h (cmd_cfunc_eq): Declare.
3489 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
3490
3491 * cli/cli-cmds.h (is_complete_command): Change parameter to a
3492 ``struct cmd_list_element *''.
3493 * cli/cli-cmds.c (is_complete_command): Update. Use
3494 cmd_cfunc_eq.
3495 * top.c (execute_command): Pass the command to
3496 is_complete_command.
3497 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
3498
3499 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3500
3501 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
3502 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
3503 architecture defines.
3504 * s390-tdep.c (s390_gdbarch_init): Likewise.
3505
3506 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3507
3508 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
3509 (arm_linux_push_arguments): Likewise.
3510 (arm_linux_init_abi): Register them. Also register linux-specific
3511 call_dummy_words.
3512 (find_minsym_and_objfile): Use strcmp, not STREQ.
3513 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
3514 (arm_linux_call_dummy_words): Delete declaration.
3515 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
3516 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
3517 declarations.
3518 (LOWEST_PC): Delete.
3519
3520 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3521
3522 * maint.c (print_section_info): Do not prepend `0x' to filepos
3523 output, it will be handled by local_hex_string_custom.
3524
3525 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3526
3527 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3528 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3529 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3530
3531 2002-02-22 Jim Blandy <jimb@redhat.com>
3532
3533 Indicate that the bcache functions don't change the strings
3534 they're passed.
3535 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3536 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3537
3538 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3539
3540 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3541
3542 2002-02-21 Christopher Faylor <cgf@redhat.com>
3543
3544 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3545 find the complete path to a loaded DLL.
3546
3547 2002-02-21 Fred Fish <fnf@redhat.com>
3548
3549 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3550 that marks the end of the range of a function, enter a line number
3551 entry that has a line number of zero and a PC offset that matches
3552 the end of the function. This starts a range of PC's for which no
3553 line number information is known.
3554 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3555 PC's for which no line number info is found (line number is zero)
3556 then we didn't find any valid line information.
3557 * symtab.h: Document use of zero line number entry.
3558
3559 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
3560
3561 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3562 (have_ptrace_getvrregs): Define for run time checks.
3563 (gdb_vrregset_t): New type for Altivec register handling.
3564 (fetch_register, store_register): Fetch/store altivec register
3565 when needed.
3566 (fetch_altivec_register, store_altivec_register): New functions.
3567 (supply_vrregset, fill_vrregset): New functions.
3568 (fetch_altivec_registers, store_altivec_registers): New functions.
3569 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
3570 registers as well.
3571
3572 2002-02-21 Jiri Smid <smid@suse.cz>
3573
3574 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
3575
3576 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3577
3578 * Makefile.in (armnbsd-nat.o): Update dependencies.
3579 * armnbsd-nat.c (supply_gregset): New function. Common code to
3580 supply the integer register set.
3581 (supply_fparegset): New function. Similar for FPA registers.
3582 (fetch_regs, fetch_fp_regs): Use them.
3583 (fetch_core_registers): Likewise.
3584 (fetch_elfcore_registers): New function.
3585 (arm_netbsd_elfcore_fns): New core-file type specification.
3586 (_initialize_arm_netbsd_nat): Register it.
3587
3588 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3589
3590 * armnbsd-nat.c: Include gdbcore.h.
3591 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
3592 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
3593 'void' to declaration, to shut up ARI.
3594 (fetch_core_registers): Make static. Rewrite using supply_register.
3595 (arm_netbsd_core_fns): New core-file type specification.
3596 (_initialize_arm_netbsd_nat): New function.
3597
3598 2002-02-21 Christopher Faylor <cgf@redhat.com>
3599
3600 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
3601 value.
3602
3603 2002-02-20 Christopher Faylor <cgf@redhat.com>
3604
3605 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
3606 fails.
3607
3608 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3609
3610 * jv-exp.y (parse_number): Change type of implicit longs
3611 to builtin_type_uint64.
3612
3613 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3614
3615 * gdbserver/linux-low.c (mywait): Change argument to waitpid
3616 to be an integer instead of a `union wait'.
3617
3618 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3619
3620 * mips-linux-nat.c: Call the operating system GNU/Linux.
3621 * mips-linux-tdep.c: Likewise.
3622 * mips-tdep.c: Likewise.
3623
3624 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3625
3626 Fix PR gdb/265.
3627 * jv-exp.y (parse_number): Handle 64-bit integers.
3628
3629 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3630
3631 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
3632 AC_STDC_HEADERS to AC_HEADER_STDC.
3633 * gdbserver/configure: Regenerated.
3634
3635 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
3636
3637 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
3638 is defined.
3639 * sparc-tdep.c (get_longjmp_target): Likewise.
3640
3641 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
3642
3643 * News: Add news about ARM and Multi-arch. Mention the new target
3644 arm*-*-netbsd*.
3645
3646 2002-02-19 Jim Blandy <jimb@redhat.com>
3647
3648 * stabsread.c (error_type_complaint): Improve error message.
3649
3650 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
3651
3652 * gdbserver/README: Update documentation.
3653 * gdbserver/configure.in: Update configury to match documentation.
3654 * gdbserver/Makefile.in: Likewise.
3655 * gdbserver/configure: Regenerated.
3656 * gdbserver/aclocal.m4: New file, generated by aclocal.
3657 * gdbserver/config.in: New file, generated by autoheader.
3658
3659 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3660
3661 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3662 armnbsd-nat.c.
3663
3664 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3665
3666 * arm-tdep.h (enum arm_float_model): New enum.
3667 (struct gdbarch_tdep): Add fp_model.
3668 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3669 up floating-point conversions until we know the floating-point model
3670 in use by the inferior. Don't complain about being unable to
3671 determine the ABI of the inferior when we don't have one.
3672 (arm_extract_return_value): Support different floating-point models.
3673 (arm_store_return_value): Likewise.
3674 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
3675 ARM_FLOAT_SOFT.
3676 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3677
3678 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3679
3680 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3681 of ``current_gdbarch''.
3682
3683 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3684
3685 * armnbsd-nat.c : ANSIfy all function declarations.
3686 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3687 (fetch_inferior_registers): Re-implement in terms of above.
3688 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3689 (store_inferior_registers): Re-implement in terms of above.
3690
3691 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3692
3693 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
3694 kernel.
3695 * arm-linux-tdep.c: Likewise.
3696 * config/arm/tm-linux.h: Likewise.
3697
3698 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3699
3700 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3701 * config/arm/nbsd.mt (TM_FILE): Delete.
3702 * config/arm/tm-nbsd.h: Delete.
3703
3704 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3705
3706 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3707 Initialize CALL_DUMMY_LENGTH.
3708
3709 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3710
3711 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3712 function.
3713 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
3714 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
3715 defines one thing and that is incorrect for this port.
3716 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3717
3718 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3719
3720 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3721
3722 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3723
3724 * win32-nat.c (display_selector): New function. Displays information
3725 about the information returned by GetThreadSelectorEntry API function.
3726 (display_selectors): New function. Displays the infomation of
3727 the selector given as argument, or of CS, DS ans FS selectors
3728 if no argument is given.
3729 ( _initialize_inftarg): Add "w32" as info prefix command.
3730 Add "info w32 selector" as command calling display_selectors.
3731
3732 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
3733
3734 * i386-tdep.c (get_longjmp_target): Fix compilation failure
3735 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
3736 if not defined.
3737
3738 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3739
3740 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
3741
3742 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3743
3744 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
3745 (arm_fix_call_dummy): Call it.
3746 (arm_call_dummy_breakpoint_offset): Delete.
3747 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3748 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3749
3750 2002-02-18 Andrew Cagney <ac131313@redhat.com>
3751
3752 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3753 Default to func_frame_chain_valid.
3754 * gdbarch.h, gdbarch.c: Re-generate.
3755 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3756
3757 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
3758
3759 * ppc-linux-nat.c: Update copyright.
3760 (fetch_register, store_register): Add tid parameter, don't compute
3761 tid here.
3762 (fetch_ppc_registers, store_ppc_registers): Add tid
3763 parameter. Pass it along to callees.
3764 (fetch_inferior_registers, store_inferior_registers): Compute tid
3765 here, and pass it to calleed functions.
3766 (fill_gregset, supply_fpregset): Clean up formatting.
3767
3768 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3769
3770 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3771 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3772
3773 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
3774
3775 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3776 * gdbarch.c gdbarch.h: Regenerate.
3777 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3778 function.
3779 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3780 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3781 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3782
3783 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3784 * arm-tdep.c (arm_get_longjmp_target): New function.
3785 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3786 this to a positive value register arm_get_longjmp_target as the
3787 longjmp handler.
3788 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3789 (arm_linux_init_abi): Set up longjmp description in tdep.
3790 * armnbsd-nat.c (get_longjmp_target): Delete.
3791 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3792 description in tdep.
3793 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3794 (get_longjmp_target): Delete declaration.
3795 (GET_LONGJMP_TARGET): Delete.
3796 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3797 (GET_LONGJMP_TARGET): Delete.
3798
3799 2002-02-17 Kevin Buettner <kevinb@redhat.com>
3800
3801 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3802 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3803 of ``current_gdbarch''.
3804
3805 2002-02-17 Tom Tromey <tromey@redhat.com>
3806
3807 * cli/cli-cmds.c (compare_strings): New function.
3808 (complete_command): Only print each unique item once.
3809 * completer.h (complete_line): Declare.
3810 * completer.c (complete_line): New function.
3811 (line_completion_function): Use it.
3812
3813 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3814
3815 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3816 * gdbarch.h, gdbarch.c: Re-generate.
3817
3818 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3819
3820 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3821
3822 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3823
3824 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3825 * valops.c (value_arg_coerce): Don't take the address of a reference
3826 to convert an argument to a reference.
3827
3828 2002-02-15 Christopher Faylor <cgf@redhat.com>
3829
3830 * win32-nat.c (get_image_name): New function.
3831 (handle_load_dll): Use get_image_name function.
3832 (get_child_debug_event): Avoid registering debug events until possibly
3833 execed process is started.
3834 (child_create_inferior): Allow invocation via shell so that command
3835 line redirection, etc. works ok.
3836 (_initialize_inftarg): Add new command: "set shell" to control whether
3837 a shell is used to start a process.
3838
3839 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3840
3841 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3842 instead of find_register_by_number.
3843 (cannot_store_register): Likewise.
3844
3845 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3846
3847 * dwarf2read.c: Replace fprintf (stderr, ...) by
3848 fprintf_unfiltered (gdb_stderr, ...).
3849
3850 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3851
3852 * gdbserver/gdbserver.1: Document --attach.
3853
3854 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3855
3856 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3857 descriptions.
3858 * arm-tdep.c (arm_default_arm_le_breakpoint)
3859 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3860 (arm_default_thumb_be_breakpoint): New. Initialize them from
3861 traditional breakpoint defines.
3862 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3863 (arm_gdbarch_init): Initialize new breakpoint variables.
3864 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3865 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3866 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3867 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3868 code out to ...
3869 (arm_netbsd_init_abi_common): ... here; new function.
3870 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3871 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3872 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3873 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3874
3875 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3876
3877 * arm-tdep.h (enum arm_abi): New enum.
3878 (struct gdbarch_tdep): New structure.
3879 (LOWEST_PC): Provide a default.
3880 (arm_gdbarch_register_os_abi): Declare new function.
3881 * arm-tdep.c (arm_abi_names): New array.
3882 (process_note_abi_tag_sections): New function.
3883 (get_elfosabi): New function.
3884 (arm_gdbarch_register_os_abi): New function.
3885 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3886 support for that ABI has been built in, then call the appropriate
3887 configuration routine. Use gdbarch_num_regs() to get the number
3888 of registers.
3889 (arm_dump_tdep): New function.
3890 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3891 place-holder functions.
3892 (_initialize_arm_tdep): Register them.
3893 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3894
3895 * armnbsd-tdep.c: New file.
3896 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3897 * config/arm/nbsd.mt (TDEPFILES): Add it.
3898 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3899
3900 * armnbsd-nat.c: Include regcache.h.
3901 * Makefile.in (armnbsd-nat.o): Update dependency list.
3902
3903 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3904
3905 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3906
3907 * gdbserver/Makefile.in: Fix typos in target rules.
3908
3909 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3910
3911 Fix part of PR gdb/267.
3912 * linespec.c (find_methods): Handle constructors specially for now.
3913
3914 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3915
3916 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3917 handling.
3918 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3919 standard_coerce_float_to_double().
3920
3921 2002-02-14 Christopher Faylor <cgf@redhat.com>
3922
3923 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3924 GDBINIT_FILENAME.
3925
3926 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3927
3928 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3929 find_variant_by_name, because it confuses the multiarch
3930 framework. Return NULL if there isn't an architecture with the
3931 user supplied name, instead of forcing a different one without
3932 recording the change with the multiarch machinery.
3933 (find_variant_by_name): Delete.
3934
3935 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3936
3937 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3938 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3939
3940 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3941
3942 * stack.c (print_frame_info_base): When calling
3943 print_frame_info_listing_hook, set current_source_symtab.
3944
3945 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3946
3947 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3948 and remove unused $(INCLUDE_DIR).
3949 Add regcache.c to OBS.
3950 Add generated register protocol files to clean target.
3951 Update dependencies for new objects, obsolete old target code.
3952
3953 * gdbserver/linux-low.c: Remove all platform-specific code to
3954 new files. Remove various dead code. Update to use regcache
3955 functionality.
3956 * gdbserver/remote-utils.c (fromhex): Add return statement
3957 to quiet warning.
3958 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3959 constant.
3960 (input_interrupt): Add integer parameter to match prototype
3961 of a signal handler.
3962 (outreg): Use register_data ().
3963 (prepare_resume_reply): Use gdbserver_expedite_regs.
3964 * gdbserver/server.c (main): Dynamically allocate own_buf because
3965 PBUFSIZ is no longer constant. Use registers_to_string () and
3966 registers_from_string ().
3967 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3968 for error (), fatal (), and warning (). Update definition of
3969 PBUFSIZ to use regcache functionality. Add include guard.
3970 * gdbserver/utils.c (fatal): Add missing ``const''.
3971 (warning): New function.
3972
3973 * regformats/regdat.sh: Include "regcache.h" in generated files.
3974 Provide init_registers () function.
3975 * regformats/regdef.h: Add prototype for set_register_cache ().
3976 Add include guard.
3977
3978 * gdbserver/linux-arm-low.c: New file.
3979 * gdbserver/linux-i386-low.c: New file.
3980 * gdbserver/linux-ia64-low.c: New file.
3981 * gdbserver/linux-m68k-low.c: New file.
3982 * gdbserver/linux-mips-low.c: New file.
3983 * gdbserver/linux-ppc-low.c: New file.
3984 * gdbserver/linux-sh-low.c: New file.
3985
3986 * gdbserver/regcache.c: New file.
3987 * gdbserver/regcache.h: New file.
3988
3989 * gdbserver/low-linux.c: Removed obsolete file.
3990
3991 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3992
3993 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3994 * config/i386/linux.mt: Likewise.
3995 * config/ia64/linux.mt: Likewise.
3996 * config/m68k/linux.mh: Likewise.
3997 * config/powerpc/linux.mh: Likewise.
3998 * config/mips/linux.mt: Likewise.
3999
4000 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
4001
4002 * config/i386/i386lynx.mh: Mark gdbserver variables
4003 as (currently) obsolete for this target.
4004 * config/i386/nbsd.mt: Likewise.
4005 * config/i386/nbsdelf.mt: Likewise.
4006 * config/m32r/m32r.mt: Likewise.
4007 * config/m68k/m68klynx.mh: Likewise.
4008 * config/m68k/nbsd.mt: Likewise.
4009 * config/m68k/sun3os4.mh: Likewise.
4010 * config/mips/vr5000.mt: Likewise.
4011 * config/ns32k/nbsd.mt: Likewise.
4012 * config/pa/hppabsd.mh: Likewise.
4013 * config/pa/hppaosf.mh: Likewise.
4014 * config/powerpc/nbsd.mt: Likewise.
4015 * config/rs6000/rs6000lynx.mh: Likewise.
4016 * config/s390/s390.mt: Likewise.
4017 * config/s390/s390x.mt: Likewise.
4018 * config/sparc/sparclynx.mh: Likewise.
4019 * config/sparc/sun4os4.mh: Likewise.
4020 * config/i386/x86-64linux.mt: Likewise.
4021 * config/sparc/linux.mh: Likewise.
4022
4023 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4024
4025 * configure.tgt: Configure gdbserver only for known working
4026 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
4027 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
4028 SUBDIRS if it is configured. Update comment for ${nativefile}.
4029 * configure: Regenerated.
4030
4031 2002-02-13 Michael Snyder <msnyder@redhat.com>
4032
4033 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
4034
4035 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
4036 (default_gcore_mach): Just return 0, work around a problem in bfd.
4037 (default_gcore_target): OK to return NULL if exec_bfd is null.
4038 (make_mem_sec): Use a cast, avoid a warning.
4039
4040 * procfs.c (find_memory_regions_callback): Use a cast instead of
4041 calling host_pointer_to_address (which complains if
4042 sizeof (host pointer) != sizeof (target pointer)).
4043 (procfs_make_note_section): Avoid overflow in psargs string.
4044
4045 * procfs.c (procfs_make_note_section): Make the default
4046 implementation return an error.
4047
4048 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
4049
4050 * procfs.c (procfs_make_note_section): Provide a default definition
4051 (for alpha-dec-osf4.0f). Fix typos.
4052
4053 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
4054
4055 * linux-proc.c: Add include of regcache.h.
4056 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
4057
4058 2002-02-13 Andrew Cagney <ac131313@redhat.com>
4059
4060 From 2002-01-18 Greg McGary <greg@mcgary.org>:
4061 * memattr.c (create_mem_region): Disallow useless empty region.
4062 Regions are half-open intervals, so allow [A..B) [B..C) as
4063 non-overlapping.
4064
4065 2002-02-13 Michael Chastain <mec@shout.net>
4066
4067 * defs.h: Kill CONST_PTR.
4068 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
4069 * c-lang.c (c_builtin_types): Likewise.
4070 * ch-lang.c (ch_builtin_types): Likewise.
4071 * f-lang.c (f_builtin_types): Likewise.
4072 * language.c (unknown_builtin_types): Likewise.
4073 * m2-lang.c (m2_builtin_types): Likewise.
4074 * p-lang.c (pascal_builtin_types): Likewise.
4075 * scm-lang.c (c_builtin_types): Likewise.
4076
4077 2002-02-13 Keith Seitz <keiths@redhat.com>
4078
4079 * arm-tdep.h (arm_get_next_pc): Add declaration.
4080
4081 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
4082
4083 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
4084 with other related struct-returning functions.
4085 (arm_extract_struct_value_address): New function.
4086 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
4087 initialize float_format, double_format and long_double_format as
4088 appropriate to the endianness of the target.
4089 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
4090 (arm_use_struct_convention): Delete declaration.
4091 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4092
4093 2002-02-13 Keith Seitz <keiths@redhat.com>
4094
4095 * defs.h (core_addr_to_string_nz): New function.
4096
4097 2002-02-13 Mark Kettenis <kettenis@gnu.org>
4098
4099 Apply missing bits of 2002-01-15 patch.
4100 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
4101 (fill_fpregset): Use i387_fill_fsave.
4102
4103 2002-02-12 Keith Seitz <keiths@redhat.com>
4104
4105 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
4106 (core_addr_to_string_nz): New function.
4107
4108 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4109
4110 * arm-linux-nat.c: Really include arm-tdep.h.
4111 * config/arm/tm-linux.h (struct type, struct value): Declare.
4112
4113 2002-02-11 Michael Snyder <msnyder@redhat.com>
4114
4115 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
4116 (gcore section): Ifdef for Solaris and Unixware only.
4117 (procfs_do_thread_registers): Unixware needs one lwpstatus
4118 per thread (not one prstatus or pstatus).
4119 (procfs_make_note_section): Iterate only over kernel threads (lwps),
4120 not over all gdb threads. For unixware, call elfcore_write_pstatus
4121 once before iterating over threads.
4122
4123 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4124
4125 * arm-tdep.h: New file.
4126 * arm-tdep.c: Include arm-tdep.h.
4127 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4128 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4129 (arm_print_float_info, arm_register_type, convert_to_extended)
4130 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4131 (arm_extract_return_value, arm_register_name): Make static.
4132 (arm_software_single_step): Similarly. Fix types in declaration.
4133 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
4134 (arm_store_return_value, arm_store_struct_return): New functions.
4135 (arm_gdbarch_init): Register the above functions. Also register
4136 call_dummy_start_offset, sizeof_call_dummy_words,
4137 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
4138 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
4139 max_register_virtual_size, register_size. Set up
4140 prologue_cache.saved_regs here, rather than ...
4141 (_initialize_arm_tdep): ... here.
4142 * config/arm/tm-arm.h (struct type, struct value): Delete forward
4143 declarations.
4144 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4145 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4146 (arm_print_float_info, arm_register_type, convert_to_extended)
4147 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4148 (arm_extract_return_value, arm_register_name): Delete declarations.
4149 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
4150 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
4151 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
4152 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
4153 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4154 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
4155 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
4156 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
4157 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
4158 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
4159 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
4160 (arm_get_next_pc): No-longer static -- these are needed by the RDI
4161 interface.
4162 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
4163 * remote-rdi.c remote-rdp.c: Likewise.
4164 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
4165 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
4166 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
4167 definition.
4168
4169 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
4170 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
4171 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
4172 from non-ARM_ prefixed definitions.
4173 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
4174 all uses of above.
4175 * remote-rdi.c remote-rdp.c: Likewise.
4176 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
4177
4178 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4179
4180 * arm-tdep.c (arm_frameless_function_invocation)
4181 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4182 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4183 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4184 (arm_pop_frame, arm_get_next_pc): Make static.
4185 (arm_gdbarch_init): Register above in gdbarch structure.
4186 (arm_read_fp): Renamed from arm_target_read_fp.
4187 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
4188 * config/arm/tm-arm.h (arm_frameless_function_invocation)
4189 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4190 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4191 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4192 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
4193 (arm_pc_is_thumb_dummy): Delete declarations.
4194 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
4195 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
4196 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
4197 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
4198
4199 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
4200
4201 * symtab.c (compare_search_syms): New function.
4202 (sort_search_symbols): New function.
4203 (search_symbols): Sort symbols after searching rather than
4204 before.
4205
4206 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4207
4208 * NEWS: Linux -> GNU/Linux.
4209
4210 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4211
4212 * gdbarch.sh: For for level one methods, disallow a definition
4213 when partially multi-arched. Add comments explaining rationale.
4214 * gdbarch.h: Re-generate.
4215
4216 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4217
4218 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
4219 multi-arch partial.
4220
4221 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4222
4223 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
4224 field. Use diff -u.
4225 * gdbarch.c: Re-generate.
4226
4227 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4228
4229 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
4230 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
4231 partial.
4232
4233 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4234
4235 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
4236 multi-arch partial.
4237 (PUSH_ARGUMENTS): Switch to using predefault.
4238 * gdbarch.c: Regenerate.
4239
4240 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4241
4242 * valops.c (PUSH_ARGUMENTS): Delete definition.
4243 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
4244 partial. Default to default_push_arguments.
4245 * gdbarch.h, gdbarch.c: Regenerate.
4246
4247 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4248
4249 * defs.h (throw_exception): Rename return_to_top_level. Update
4250 comments.
4251 * utils.c (error_stream, internal_verror, quit): Ditto.
4252 * top.c (throw_exception, catcher): Ditto.
4253 * sparclet-rom.c (sparclet_load): Ditto.
4254 * remote.c (interrupt_query, minitelnet): Ditto.
4255 * remote-sds.c (interrupt_query): Ditto.
4256 * remote-mips.c (mips_error, mips_kill): Ditto.
4257 * ocd.c (interrupt_query): Ditto.
4258 * monitor.c (monitor_interrupt_query): Ditto.
4259 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
4260 * target.h: Update comment.
4261
4262 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
4263
4264 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4265
4266 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
4267 default_double_format.
4268 * gdbarch.h, gdbarch.c: Re-generate.
4269 * findvar.c (floatformat_unknown): Delete variable definition.
4270 * doublest.h (floatformat_unknown): Delete variable declaration.
4271
4272 2002-02-09 Jim Blandy <jimb@redhat.com>
4273
4274 * stabsread.c (read_type): Add code to parse Sun's syntax for
4275 prototyped function types.
4276
4277 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4278
4279 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
4280 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
4281
4282 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4283
4284 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
4285 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
4286 now _initialize_xcoffsolib gets called again and overrides the
4287 commands from solib.c in a native configuration.
4288
4289 2002-02-09 Mark Kettenis <kettenis@gnu.org>
4290
4291 * doublest.c (store_typed_floating): Don't try to return a value.
4292 Fixes PR gdb/290.
4293
4294 2002-02-08 Jim Blandy <jimb@redhat.com>
4295
4296 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
4297 is prototyped and has no arguments, print its argument list as
4298 `(void)'.
4299
4300 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4301
4302 * MAINTAINERS (write-after-approval): Add myself.
4303 (paper-trail): I've escaped!
4304
4305 2002-02-08 Christopher Faylor <cgf@redhat.com>
4306
4307 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
4308 changes.
4309 (_initialize_check_for_gdb_ini): Ditto.
4310
4311 2002-02-08 Martin M. Hunt <hunt@redhat.com>
4312
4313 * win32-nat.c (cygwin_pid_to_str): Fix typo.
4314 xaprintf -> xasprintf.
4315
4316 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4317
4318 * win32-nat.c: Remove use of printf and sprintf functions.
4319
4320 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
4321
4322 * arm-tdep.c (arm_frame_chain_valid): Make static.
4323 (arm_push_arguments): Likewise.
4324 (arm_gdbarch_init): New function.
4325 (_initialize_arm_tdep): Call it.
4326 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4327 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4328 (FRAME_CHAIN_VALID): Delete.
4329 (arm_frame_chain_valid): Delete declaration.
4330 (PUSH_ARGUMENTS): Delete.
4331 (arm_push_arguments): Delete declaration.
4332 (CALL_DUMMY_P): Delete.
4333
4334 2002-02-08 Andrew Cagney <ac131313@redhat.com>
4335 Corinna Vinschen <vinschen@redhat.com>
4336
4337 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4338 on builtin float types.
4339
4340 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
4341
4342 * utils.c: Include <curses.h> before "bfd.h".
4343 * tui/tui-hooks.c: Likewise.
4344 * tui/tui.c: Likewise.
4345 * tui/tuiCommand.c: Likewise.
4346 * tui/tuiData.c: Likewise.
4347 * tui/tuiDataWin.c: Likewise.
4348 * tui/tuiDisassem.c: Likewise.
4349 * tui/tuiGeneralWin.c: Likewise.
4350 * tui/tuiIO.c: Likewise.
4351 * tui/tuiLayout.c: Likewise.
4352 * tui/tuiRegs.c: Likewise.
4353 * tui/tuiSource.c: Likewise.
4354 * tui/tuiSourceWin.c: Likewise.
4355 * tui/tuiStack.c: Likewise.
4356 * tui/tuiWin.c: Likewise.
4357
4358 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
4359
4360 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
4361 to include space for pseudoregs as well. Update loops accordingly.
4362 (sh_fp_frame_init_saved_regs): Ditto.
4363 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
4364
4365 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4366
4367 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
4368 Add Richard Earnshaw to Arm maintainers.
4369
4370 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4371
4372 * defs.h (warning_begin): Delete declaration.
4373
4374 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
4375 Delete macro.
4376
4377 2002-02-07 Michael Snyder <msnyder@redhat.com>
4378
4379 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4380 Logic bug, remove misplaced else.
4381
4382 2002-02-07 Klee Dienes <klee@apple.com>
4383
4384 * fork-inferior.c (fork_inferior): Add '!' to the list of
4385 characters that need to be quoted when building a string for the
4386 shell. Quote '!' specifically with a backslash, since CSH chokes
4387 when trying to evaluate "str!str".
4388
4389 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4390
4391 * rdi-share/host.h: Only provide a typedef for bool if it is not
4392 defined.
4393
4394 2002-02-04 Michael Snyder <msnyder@redhat.com>
4395
4396 * breakpoint.h (enum bptype): Add new overlay event bp type.
4397 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
4398
4399 * breakpoint.c (create_internal_breakpoint): New function.
4400 (internal_breakpoint_number): Moved into create_internal_breakpoint.
4401 (create_longjmp_breakpoint): Use create_internal_breakpoint.
4402 (create_thread_event_breakpoint): Ditto.
4403 (create_solib_event_breakpoint): Ditto.
4404 (create_overlay_event_breakpoint): New function.
4405 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
4406 (update_breakpoints_after_exec): Delete and re-initialize
4407 overlay event breakpoints after an exec. Add FIXME comment
4408 about longjmp breakpoint.
4409 (print_it_typical): Ignore overlay event breakpoints.
4410 (print_one_breakpoint): Ditto.
4411 (mention): Ditto.
4412 (bpstat_what): Do not stop for overlay event breakpoints.
4413 (delete_breakpoint): Don't delete overlay event breakpoints.
4414 (breakpoint_re_set_one): Delete the overlay event breakpoint.
4415 (breakpoint_re_set): Re-create overlay event breakpoint.
4416
4417 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
4418 (overlay_manual_command): Disable overlay breakpoints.
4419 (overlay_off_command): Disable overlay breakpoints.
4420
4421 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4422
4423 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
4424 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
4425 to here from config/tm-arm.h.
4426 (coff_sym_is_thumb): Make static.
4427 (arm_elf_make_msymbol_special): New function.
4428 (arm_coff_make_msymbol_special): New function.
4429 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
4430 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
4431 (coff_sym_is_thumb): Delete declaration.
4432 (arm_elf_make_msymbol_special): Declare.
4433 (arm_coff_make_msymbol_special): Declare.
4434 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
4435 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
4436
4437 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4438
4439 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
4440
4441 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4442
4443 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
4444 * gdbarch.c gdbarch.h: Regenerate.
4445 * arch-utils.c (default_print_float_info): New function.
4446 * arch-utils.h (default_print_float_info): Prototype it.
4447 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
4448 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
4449 (PRINT_FLOAT_INFO): Document it.
4450
4451 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
4452 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
4453 (PRINT_FLOAT_INFO): Define.
4454
4455 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4456
4457 * win32-nat.c (_initialize_check_for_gdb_ini):
4458 Add typecast to sprintf argument to suppress a warning.
4459
4460 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
4461
4462 * win32-nat.c (last_sig): Changed type of variable to target_signal,
4463 to allow easier handling of pass state.
4464 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
4465 that gives exception name and address.
4466 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
4467 and set last_sig value to ourstatus->value.sig. Some missing
4468 exceptions added.
4469 (child_continue): Correctly report continue_status.
4470 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
4471 TARGET_SIGNAL_0 (new default value).
4472 (child_resume): consider sig argument passed to decide if
4473 the exception should be passed to debuggee or not.
4474
4475 2002-02-05 Michael Snyder <msnyder@redhat.com>
4476
4477 * regcache.c (fetch_register): Call target_fetch_register
4478 only if we don't call FETCH_PSEUDO_REGISTER.
4479 (store_register): Call target_store_register only if we
4480 don't call STORE_PSEUDO_REGISTER.
4481
4482 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
4483
4484 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
4485 ELF_MAKE_MSYMBOL_SPECIAL.
4486 * gdbarch.c, gdbarch.h: Regenerate.
4487 * arch-utils.c (default_make_msymbol_special): New function.
4488 * arch-utils.h (default_make_msymbol_special): Export.
4489 * elfread.c (elf_symtab_read): Compile use of
4490 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
4491 multiarched.
4492 * coffread.c (coff_symtab_read): Ditto, for
4493 COFF_MAKE_MSYMBOL_SPECIAL.
4494
4495 2002-02-05 Jim Blandy <jimb@redhat.com>
4496
4497 * solib-svr4.c (svr4_truncate_ptr): New function.
4498 (svr4_relocate_section_addresses): Do the address arithmetic with
4499 the appropriate truncation for target addresses, even when
4500 CORE_ADDR is larger than a target address.
4501
4502 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4503
4504 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
4505 to (int *).
4506
4507 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4508
4509 * gdbserver/linux-low.c (kill_inferior): Remove commented out
4510 code.
4511
4512 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4513
4514 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
4515
4516 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4517
4518 * gdbserver/linux-low.c: Remove unused include files.
4519
4520 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4521
4522 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
4523 (read_inferior_memory): Use it.
4524 (write_inferior_memory): Likewise.
4525
4526 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4527
4528 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4529 grubbing through sys_errlist.
4530
4531 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4532
4533 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4534
4535 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4536 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4537
4538 2002-02-04 Andrew Cagney <ac131313@redhat.com>
4539
4540 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4541 (do_sfunc, set_cmd_sfunc): New functions.
4542
4543 * command.h (struct cmd_list_element): Add field func.
4544 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4545 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4546 * cli/cli-decode.h: Ditto.
4547
4548 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4549 (help_all, help_cmd_list): Ditto.
4550 (find_cmd, complete_on_cmdlist): Ditto.
4551 * top.c (execute_command): Ditto.
4552
4553 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4554 function.sfunc.
4555
4556 * infcmd.c (notice_args_read): Fix function signature.
4557
4558 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4559 * cli/cli-decode.c (add_set_cmd): Ditto.
4560 * utils.c (initialize_utils): Ditto.
4561 * maint.c (_initialize_maint_cmds): Ditto.
4562 * infrun.c (_initialize_infrun): Ditto.
4563 * demangle.c (_initialize_demangler): Ditto.
4564 * remote.c (add_packet_config_cmd): Ditto.
4565 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4566 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4567 * proc-api.c (_initialize_proc_api): Ditto.
4568 * kod.c (_initialize_kod): Ditto.
4569 * valprint.c (_initialize_valprint): Ditto.
4570 * top.c (init_main): Ditto.
4571 * infcmd.c (_initialize_infcmd): Ditto.
4572 * corefile.c (_initialize_core): Ditto.
4573 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4574 * arch-utils.c (initialize_current_architecture): Ditto.
4575 (_initialize_gdbarch_utils): Ditto.
4576 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4577
4578 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
4579 * wince.c (_initialize_inftarg): Ditto.
4580 * symfile.c (_initialize_symfile): Ditto.
4581 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4582 * language.c (_initialize_language): Ditto.
4583 * arc-tdep.c (_initialize_arc_tdep): Ditto.
4584
4585 2002-02-04 Michael Snyder <msnyder@redhat.com>
4586
4587 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
4588
4589 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4590
4591 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
4592 Add rules for building the register data files.
4593
4594 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4595
4596 * regformats/regdat.sh: Add braces to the definition of
4597 expedite_regs_${arch}.
4598
4599 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4600
4601 * regformats/regdef.h (struct reg): Add comment describing the
4602 requirements for offset and size fields.
4603
4604 2002-02-04 Andreas Schwab <schwab@suse.de>
4605
4606 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
4607 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
4608
4609 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
4610
4611 * gdbarch.sh (copyright): Update years in generated header.
4612 (SMASH_TEXT_ADDRESS): Add rule.
4613 * gdbarch.h, gdbarch.c: Re-generate.
4614 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
4615 * dbxread.c: Likewise.
4616 * dwarfread.c: Likewise.
4617 * elfread.c: Likewise.
4618 * somread.c: Likewise.
4619
4620 * arm-tdep.c (arm_smash_text_address): New function.
4621 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
4622
4623 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4624
4625 Add support for hardware watchpoints on win32 native.
4626 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
4627 CONTEXT_DEBUG_REGISTERS.
4628 (dr variable): New variable. Static array containing a local copy
4629 of debug registers.
4630 (debug_registers_changed): New variable. Reflects when debug registers
4631 are changed and need to be written to inferior.
4632 (debug_registers_used): New variable. Reflects when any debug register
4633 was set, used when new threads are created.
4634 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
4635 i386-nat code.
4636 (thread_rec): Set dr array if id is the thread of current_event .
4637 (child_continue, child_resume): Change the debug registers for all
4638 threads if debug_registers_changed.
4639 (child_add_thread): Change the debug registers if debug_registers_used.
4640 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4641 Link nm.h to new nm-cygwin.h file.
4642 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4643 of hardware registers.
4644
4645 2002-02-03 Andrew Cagney <ac131313@redhat.com>
4646
4647 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4648 Restore behavour broken by 2002-01-20 Andrew Cagney
4649 <ac131313@redhat.com> IEEE_FLOAT removal.
4650
4651 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * c-valprint.c (c_val_print): Pass a proper valaddr to
4654 cp_print_class_method.
4655 * valops.c (search_struct_method): If there is only one method
4656 and args is NULL, return that method.
4657
4658 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4659
4660 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4661 accessing tag_name directly.
4662
4663 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4664
4665 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4666 of accessing tag_name directly.
4667
4668 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4669
4670 PR gdb/280
4671 * gdbtypes.c (replace_type): New function.
4672 * gdbtypes.h (replace_type): Add prototype.
4673 * stabsread.c (read_type): Use replace_type.
4674
4675 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
4676
4677 * Makefile.in (memattr.o): Add missing dependencies rule.
4678
4679 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4680
4681 * breakpoint.c (break_at_finish_command): Really export.
4682 (break_at_finish_at_depth_command): Ditto.
4683 (tbreak_at_finish_command): Ditto.
4684 * hppa-tdep.c: Include completer.h.
4685 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4686 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4687
4688 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4689
4690 * utils.c (do_write): New function.
4691 (error_stream): Rewrite combining the code from error_begin and
4692 verror.
4693 (verror): Rewrite using error_stream.
4694 (error_begin): Delete function.
4695
4696 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4697
4698 * utils.c (error_begin): Make static.
4699 * defs.h (error_begin): Delete declaration.
4700
4701 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4702 (decode_line_1): Use cplusplus_error instead of error_begin,
4703 cplusplus_hint and return_to_top_level.
4704 * coffread.c (coff_symfile_read): Use error instead of error_begin
4705 and return_to_top_level.
4706 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4707
4708 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4709
4710 * language.h (type_error, range_error): Make string parameter
4711 constant.
4712 * language.c (warning_pre_print): Delete extern declaration.
4713 * dwarfread.c (warning_pre_print): Ditto.
4714 * language.c (type_error, range_error): Rewrite to use verror and
4715 vwarning instead of warning_begin.
4716
4717 2002-02-01 Michael Snyder <msnyder@redhat.com>
4718
4719 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4720 (set_ignore_count): Move misplaced comment back where it belongs.
4721
4722 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4723
4724 * command.h (NO_FUNCTION): Delete macro.
4725 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4726 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4727 * tracepoint.c (_initialize_tracepoint): Ditto.
4728 * cli/cli-decode.c (add_set_cmd): Ditto.
4729 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4730
4731 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
4732
4733 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
4734 Update ``this'' pointer when calling virtual functions.
4735
4736 2002-02-01 Michael Snyder <msnyder@redhat.com>
4737
4738 * breakpoint.c (create_temp_exception_breakpoint): Delete.
4739 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
4740
4741 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
4742
4743 * regformats/reg-arm.dat: New file.
4744 * regformats/reg-i386.dat: New file.
4745 * regformats/reg-ia64.dat: New file.
4746 * regformats/reg-m68k.dat: New file.
4747 * regformats/reg-mips.dat: New file.
4748 * regformats/reg-ppc.dat: New file.
4749 * regformats/reg-sh.dat: New file.
4750 * regformats/regdef.h: New file.
4751 * regformats/regdat.sh: New file.
4752
4753 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
4754
4755 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4756 (arm_frame_args_address, arm_frame_locals_address): New functions.
4757 (arm_frame_num_args): New function.
4758 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4759 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4760 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4761
4762 2002-01-31 Michael Snyder <msnyder@redhat.com>
4763
4764 * breakpoint.c (break_at_finish_command): Export.
4765 (break_at_finish_at_depth_command): Export.
4766 (tbreak_at_finish_command): Export.
4767 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4768 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4769 "tbreak" commands, which are HPPA specific.
4770
4771 * printcmd.c (disassemble_command): Remove an ancient
4772 artifact of an old merge.
4773
4774 * symfile.h (enum overlay_debugging_state):
4775 Define enum constant values for overlay mode.
4776 * symfile.c (overlay_debugging): Use enums instead of literals.
4777 (overlay_is_mapped, overlay_auto_command,
4778 overlay_manual_command): Ditto.
4779
4780 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4781 breakpoint_here_p, breakpoint_inserted_here_p,
4782 breakpoint_thread_match, bpstat_stop_status,
4783 describe_other_breakpoints, check_duplicates, clear_command):
4784 Coding standard fixes.
4785
4786 * target.c (target_xfer_memory): Add spaces, coding standard.
4787 (do_xfer_memory): Add missing line to trust-readonly
4788 code: check bfd SEC_READONLY flag for section.
4789
4790 2002-01-31 Andrew Cagney <ac131313@redhat.com>
4791
4792 * PROBLEMS: Fix typo, 5.1->5.1.1.
4793
4794 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
4795
4796 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4797 data symbols, since we search based on textlow and texthigh.
4798 (find_pc_sect_symtab): Likewise.
4799
4800 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4801
4802 * defs.h (vwarning): Declare.
4803 * utils.c (vwarning): New function.
4804 (warning): Call vwarning.
4805 (warning_begin): Delete function.
4806
4807 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4808 the warning message.
4809 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4810 warning_begin.
4811
4812 2002-01-30 Michael Snyder <msnyder@redhat.com>
4813
4814 * NEWS: Mention "set trust-readonly-sections" command.
4815 Mention generate-core-file command.
4816
4817 2002-01-15 Michael Snyder <msnyder@redhat.com>
4818
4819 * target.c: New command, "set trust-readonly-sections on".
4820 (do_xfer_memory): Honor the suggestion to trust readonly sections
4821 by reading them from the object file instead of from the target.
4822 (initialize_targets): Register command "set trust-readonly-sections".
4823
4824 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4825
4826 * parse.c (target_map_name_to_register): Simplify, search regs and
4827 pseudo-regs using a single loop.
4828
4829 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4830
4831 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4832
4833 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
4834
4835 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4836 * config/i386/i386v42mp.mh: Add i387-nat.o .
4837 * i386v4-nat.c: Include i387-nat.h.
4838 (supply_fpregset): Use i387_supply_fsave.
4839 (fill_fpregset): Use i387_fill_fsave.
4840
4841 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
4842
4843 * arm-tdep.c (arm_call_dummy_words): Define.
4844 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4845 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4846 (CALL_DUMMY_WORDS): Define.
4847 (arm_call_dummy_words): Declare.
4848 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4849 (arm_linux_call_dummy_words): Declare.
4850
4851 2002-01-30 Andreas Schwab <schwab@suse.de>
4852
4853 * m68klinux-nat.c: Fix last change to use regcache_collect
4854 instead of referencing registers[] directly.
4855
4856 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4857
4858 * parse.c (target_map_name_to_register): Delete code wrapped in
4859 #ifdef REGISTER_NAME_ALIAS_HOOK.
4860
4861 2002-01-28 Michael Snyder <msnyder@redhat.com>
4862
4863 * regcache.c (legacy_read_register_gen): Need to be able to
4864 read pseudo-register as well as real register.
4865 (legacy_write_register_gen): Ditto.
4866
4867 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4868
4869 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4870 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4871 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4872 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4873 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4874 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4875 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4876 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4877 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4878 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4879 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4880 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4881 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4882 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4883 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4884 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4885 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4886 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4887 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4888 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4889
4890 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4891
4892 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4893 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4894 (initialize_current_architecture): Update target_byte_order using
4895 information from BFD.
4896 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4897 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4898
4899 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4900
4901 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4902 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4903
4904 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4905 #ifdef INVALID_FLOAT.
4906 * infcmd.c (do_registers_info): Ditto.
4907 * values.c (unpack_double): Ditto. Add comment.
4908
4909 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4910 already commented out.
4911
4912 2002-01-26 Andreas Schwab <schwab@suse.de>
4913
4914 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4915 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4916 registers and add support for PTRACE_GETREGS.
4917
4918 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4919
4920 GDB 5.1.1 released from 5.1 branch.
4921 * NEWS: Add 5.1.1 news.
4922 * README: Sync with 5.1 branch.
4923
4924 2002-01-23 Fred Fish <fnf@redhat.com>
4925
4926 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4927 stabstring on initial malloc. Reallocing will copy it for us,
4928 if necessary.
4929
4930 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4931
4932 * Makefile.in (hpread_h): Delete.
4933 (HFILES_NO_SRCDIR): Remove hpread.h.
4934 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4935 (hpread.o): Update dependencies.
4936 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4937
4938 * hp-psymtab-read.c: Remove file.
4939 * hp-symtab-read.c: Remove file.
4940 * hpread.h: Remove file.
4941
4942 * hpread.c: Merge all contents of hp-psymtab-read.c,
4943 hp-symtab-read.c and hpread.h into this file, as it was prior to
4944 January 1999.
4945
4946 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4947 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4948 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4949 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4950
4951 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4952
4953 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4954 fill_gregset): Call gdbarch_tdep() just once, assign result to
4955 variable and use that, instead of calling the function several
4956 times.
4957
4958 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4959
4960 * configure.host: Accept sparcv9 as alias for sparc64.
4961 * configure.tgt: Likewise.
4962
4963 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4964
4965 * solib-aix5.c (build_so_list_from_mapfile)
4966 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4967 arguments is not reversed.
4968 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4969 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4970
4971 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4972
4973 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4974 modified version of obsolete sh_fetch_pseudo_register.
4975 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4976 (sh4_register_read): New function.
4977 (sh_pseudo_register_write): New function. Renamed and modified
4978 version of obsolete sh_store_pseudo_register.
4979 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4980 (sh4_register_write): New function.
4981 (sh_gdbarch_init): Remove setting of gdbarch function
4982 fetch_pseudo_register and store_pseudo_register. Remove setting of
4983 register_convert_to_raw, register_convert_to_virtual,
4984 register_convertible.
4985 (sh_sh4_register_convertible): Delete. No longer needed. All is
4986 taken care by architecture specific functions
4987 register_read/register_write.
4988 (sh_sh4_register_convert_to_virtual): Make static.
4989 (sh_sh4_register_convert_to_raw): Ditto.
4990
4991 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4992
4993 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4994 (floatformat_is_nan, floatformat_mantissa): Ditto.
4995
4996 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4997 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4998 builtin_type_ieee_double_little,
4999 builtin_type_ieee_double_littlebyte_bigword,
5000 builtin_type_m68881_ext, builtin_type_i960_ext,
5001 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
5002 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
5003 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
5004 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
5005
5006 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
5007
5008 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
5009 parameter. Set frameless flag if it exists and depended of
5010 whether the scanned function is frameless or not.
5011 (xstormy16_skip_prologue): If function is frameless, return
5012 result of xstormy16_scan_prologue().
5013 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
5014 call.
5015
5016 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
5017
5018 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
5019 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
5020 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
5021 sh_sh4_register_byte, sh_sh4_register_raw_size,
5022 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
5023 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
5024 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
5025 sh_store_pseudo_register, sh_do_pseudo_register): Call
5026 gdbarch_tdep() just once, assign result to variable and use that,
5027 instead of calling the function several times.
5028
5029 2002-01-20 Mark Kettenis <kettenis@gnu.org>
5030
5031 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
5032 macros instead of LAST_FPU_CTRL_REGNUM.
5033 (store_register): Likewise.
5034
5035 2002-01-21 Jim Blandy <jimb@redhat.com>
5036
5037 * infcmd.c (run_command): Check that the `exec' target layer's BFD
5038 is up-to-date before running the program, not just when a program
5039 exits.
5040
5041 2002-01-21 Fred Fish <fnf@redhat.com>
5042
5043 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
5044 when we have found all instructions we are looking for.
5045
5046 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5047
5048 * arm-tdep.c (arm_register_name): New function.
5049 (arm_registers_names): Make static.
5050 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
5051 (arm_register_name): Declare.
5052 (REGISTER_NAME): Use it.
5053
5054 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5055 Kevin Buettner <kevinb@redhat.com>
5056
5057 Convert arm targets to new FRAME interface.
5058 * arm-tdep.c (struct frame_extra_info): Remove fsr.
5059 (arm_frame_find_save_regs): Delete.
5060 (arm_frame_init_saved_regs): New.
5061 (arm_init_extra_frame_info): Alloacte saved_regs as required.
5062 Allocate extra_info as required. Convert all uses of fsr.regs
5063 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
5064 to use extra_info.
5065 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
5066 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
5067 (check_prologue_cache, save_prologue_cache): Likewise.
5068 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
5069 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
5070 (FRAME_FIND_SAVED_REGS): Delete.
5071 (arm_frame_find_saved_regs): Delete prototype.
5072 (arm_frame_init_saved_regs): New prototype.
5073 (FRAME_INIT_SAVED_REGS): Define.
5074
5075 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5076
5077 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
5078
5079 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5080
5081 From Jeff Law <law@redhat.com>:
5082 * infttrace.c: Include <sys/pstat.h>.
5083 (child_pid_to_exec_file): Revamp. Use pstat call to get the
5084 exec file if the ttrace equivalent fails.
5085
5086 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5087
5088 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
5089 (closeLogFile): Ditto.
5090
5091 2002-01-20 Michael Chastain <mec@shout.net>
5092
5093 * top.c (print_gdb_version): Bump copyright year to 2002.
5094
5095 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5096
5097 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
5098 Zannoni and Eli Zaretskii.
5099
5100 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5101
5102 * buildsym.c: Update copyright years.
5103 * c-typeprint.c: Likewise.
5104 * dwarf2read.c: Likewise.
5105 * f-typeprint.c: Likewise.
5106 * gdbtypes.c: Likewise.
5107 * gdbtypes.h: Likewise.
5108 * hp-symtab-read.c: Likewise.
5109 * hpread.c: Likewise.
5110 * mdebugread.c: Likewise.
5111 * p-typeprint.c: Likewise.
5112
5113 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5114
5115 * remote-sim.c (gdbsim_open): Simplify code testing the macro
5116 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
5117 byte-order selectable.
5118 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
5119 * arch-utils.c: Ditto.
5120 (set_endian): Ditto.
5121 (set_endian_from_file): Ditto.
5122 * gdbserver/low-sim.c (create_inferior): Ditto.
5123 * gdbarch.sh: Ditto.
5124 * gdbarch.h: Re-generate.
5125 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5126 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
5127 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
5128 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5129 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5130 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5131 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
5132 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
5133 macro definition.
5134 * config/mips/tm-wince.h: Remove #undef of macro
5135 TARGET_BYTE_ORDER_SELECTABLE.
5136 * config/sh/tm-wince.h: Ditto.
5137
5138 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5139
5140 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
5141 member function fields. Add accessor macro
5142 TYPE_FN_FIELD_ARTIFICIAL.
5143 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
5144 * c-typeprint.c (c_type_print_base): Skip artificial member
5145 functions.
5146
5147 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5148
5149 * f-typeprint.c: Delete unused function f_type_print_args.
5150 * p-typeprint.c: Delete unused function pascal_type_print_args.
5151
5152 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5153
5154 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
5155 comment. Add ``artificial'' to ``union field_location''.
5156
5157 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
5158
5159 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
5160 * mdebugread.c (parse_symbol): Likewise.
5161 * stabsread.c (define_symbol): Likewise.
5162 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
5163 initializing TYPE_FIELD_BITPOS to n (obsolete).
5164 (hpread_doc_function_type): Likewise.
5165 * hpread.c (hpread_function_type): Likewise.
5166
5167 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5168
5169 * configure.in (host_makefile_frag): Only require a host makefile
5170 fragment when a native build.
5171 * configure: Re-generate.
5172
5173 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5174
5175 * doublest.h (floatformat_from_type): Declare.
5176 * doublest.c (floatformat_from_type): New function.
5177 (convert_typed_floating): Use.
5178
5179 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
5180 call to function floatformat_from_type.
5181
5182 * gdbarch.sh (IEEE_FLOAT): Delete.
5183 * gdbarch.h, gdbarch.c: Re-generate.
5184 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
5185 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
5186 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
5187 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
5188 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
5189 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
5190 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
5191 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
5192 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
5193 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
5194 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
5195 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
5196
5197 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
5198 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5199 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5200 * sh-tdep.c (sh_gdbarch_init): Ditto.
5201 * mips-tdep.c (mips_gdbarch_init): Ditto.
5202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5203 * cris-tdep.c (cris_gdbarch_init): Ditto.
5204
5205 2002-01-20 Jiri Smid <smid@suse.cz>
5206
5207 * configure.host, configure.tgt: Support x86-64.
5208 * NEWS: Note new target x86-64.
5209
5210 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
5211 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
5212 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
5213 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
5214 x86-64-linux-nat.o): Fix dependencies.
5215
5216 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5217
5218 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
5219 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
5220 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
5221 * config/sparc/xm-sun4os4.h: Delete file.
5222 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
5223
5224 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5225
5226 * config/sparc/sparclynx.mh (XM_FILE): Delete.
5227 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
5228 * config/m68k/m68klynx.mh (XM_FILE): Delete.
5229 * config/i386/i386lynx.mh (XM_FILE): Delete.
5230 * config/rs6000/xm-rs6000ly.h: Delete file.
5231 * config/sparc/xm-sparclynx.h: Delete file.
5232 * config/m68k/xm-m68klynx.h: Delete file.
5233 * config/i386/xm-i386lynx.h: Delete file.
5234 * config/xm-lynx.h: Delete file.
5235 * config/djgpp/fnchange.lst: Update.
5236
5237 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5238
5239 * alpha-tdep.c (alpha_register_byte): New function.
5240 (alpha_register_raw_size): Ditto.
5241 (alpha_register_virtual_size): Ditto.
5242 (alpha_skip_prologue_internal): Renamed from
5243 alpha_skip_prologue.
5244 (alpha_skip_prologue): New version that calls
5245 alpha_skip_prologue_internal.
5246 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
5247 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
5248 second argument from alpha_skip_prologue.
5249 (REGISTER_BYTE): Use alpha_register_byte.
5250 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
5251 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
5252 (FRAMELESS_FUNCTION_INVOCATION): Use
5253 generic_frameless_function_invocation_not.
5254 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
5255 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
5256
5257 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5258
5259 * config/mips/xm-news-mips.h: Delete file.
5260 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
5261
5262 * config/m88k/xm-m88k.h: Delete file.
5263 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
5264 * config/m88k/xm-delta88v4.h: Ditto.
5265 * config/m88k/xm-delta88.h: Ditto.
5266
5267 * config/alpha/xm-fbsd.h: Delete file.
5268 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
5269
5270 * config/sparc/xm-sparc.h: Delete file.
5271 * Makefile.in (xm-sun4os4.h): Delete dependency.
5272 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
5273 * config/sparc/xm-sun4os4.h: Ditto.
5274 * config/sparc/xm-linux.h: Ditto.
5275
5276 * config/i386/xm-windows.h: Delete file.
5277
5278 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5279
5280 * utils.c: Include <sys/param.h> for MAXPATHLEN.
5281 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
5282
5283 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5284
5285 * alpha-tdep.c (alpha_call_dummy_words): New.
5286 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
5287 (CALL_DUMMY_P): Define.
5288 (CALL_DUMMY_WORDS): Define.
5289 (SIZEOF_CALL_DUMMY_WORDS): Define.
5290
5291 2002-01-19 Per Bothner <per@bothner.com>
5292
5293 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
5294 isn't NULL, which can happen with some gcj-3.x-produced code.
5295
5296 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5297
5298 * alpha-tdep.c (alpha_register_virtual_type): New function.
5299 (alpha_init_frame_pc_first): Ditto.
5300 (alpha_fix_call_dummy): Ditto.
5301 (alpha_store_struct_return): Ditto.
5302 (alpha_extract_struct_value_address): Ditto.
5303 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
5304 alpha_register_virtual_type.
5305 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
5306 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
5307 alpha_extract_struct_value_address.
5308 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
5309 (INIT_FRAME_PC): Use init_frame_pc_noop.
5310 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
5311
5312 2002-01-19 Mark Kettenis <kettenis@gnu.org>
5313
5314 * i386gnu-nat.c: Include "i386-tdep.h".
5315 (fetch_fpregs): Simplify code dealing with uninitialized floating
5316 point states such that it doesn't require FP7_REGNUM.
5317
5318 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5319
5320 * alpha-tdep.c (frame_extra_info): New.
5321 (alpha_find_saved_regs): Make static. Use
5322 frame->extra_info.
5323 (alpha_frame_init_saved_regs): New function.
5324 (alpha_frame_saved_pc): Use frame->extra_info.
5325 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5326 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
5327 (init_extra_frame_info): Rename to...
5328 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
5329 (alpha_print_extra_frame_info): New function.
5330 (alpha_frame_locals_address): Ditto.
5331 (alpha_frame_args_address): Ditto.
5332 (alpha_pop_frame): Use frame->extra_info.
5333 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5334 alpha_frame_args_address.
5335 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
5336 (alpha_find_saved_regs): Remove prototype.
5337 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5338 (EXTRA_FRAME_INFO): Remove.
5339 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5340 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5341
5342 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5343
5344 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5345 (alpha_cannot_fetch_register): Ditto.
5346 (alpha_cannot_store_register): Ditto.
5347 (alpha_register_convertible): Ditto.
5348 (alpha_use_struct_convention): Ditto.
5349 * config/alpha/tm-alpha.h: Update copyright years.
5350 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
5351 (INNER_THAN): Use core_addr_lessthan.
5352 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
5353 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
5354 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
5355 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
5356 (FRAME_CHAIN): Remove unnecessary cast.
5357
5358 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5359
5360 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
5361 obsolete.
5362
5363 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5364
5365 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
5366 * monitor.c, remote-array.c, remote-bug.c: Ditto.
5367 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
5368 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
5369 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
5370 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
5371 * x86-64-linux-nat.c: Ditto.
5372
5373 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5374
5375 * alpha-tdep.c (alpha_register_name): New function.
5376 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
5377 (REGISTER_NAME): Define.
5378
5379 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5380
5381 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
5382
5383 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5384
5385 * alpha-tdep.c: Update copyright years.
5386 (alpha_next_pc): New function.
5387 (alpha_software_single_step): Ditto.
5388 * config/alpha/tm-alpha.h: Add prototype for
5389 alpha_software_single_step.
5390
5391 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5392
5393 * alphabsd-nat.c: Update copyright years.
5394 (fill_gregset): Use regcache_collect.
5395 (fill_fpregset): Likewise.
5396 (fetch_inferior_registers): Only fetch integer registers
5397 if requested to do so.
5398 (store_inferior_registers): Only store integer registers
5399 if requested to do so.
5400
5401 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5402
5403 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
5404 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
5405 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
5406 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
5407 * config/alpha/fbsd.mh (XDEPFILES): Delete.
5408 * config/arm/linux.mh (XDEPFILES): Delete.
5409 * config/arm/nbsd.mh (XDEPFILES): Delete.
5410 * config/i386/i386dgux.mh (XDEPFILES): Delete.
5411 * config/i386/i386sol2.mh (XDEPFILES): Delete.
5412 * config/i386/i386m3.mh (XDEPFILES): Delete.
5413 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
5414 * config/i386/i386gnu.mh (XDEPFILES): Delete.
5415 * config/i386/fbsd.mh (XDEPFILES): Delete.
5416 * config/i386/i386bsd.mh (XDEPFILES): Delete.
5417 * config/i386/i386sco5.mh (XDEPFILES): Delete.
5418 * config/i386/i386v4.mh (XDEPFILES): Delete.
5419 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
5420 * config/i386/i386sco4.mh (XDEPFILES): Delete.
5421 * config/i386/i386aix.mh (XDEPFILES): Delete.
5422 * config/i386/go32.mh (XDEPFILES): Delete.
5423 * config/i386/cygwin.mh (XDEPFILES): Delete.
5424 * config/i386/i386lynx.mh (XDEPFILES): Delete.
5425 * config/i386/i386mach.mh (XDEPFILES): Delete.
5426 * config/i386/i386v32.mh (XDEPFILES): Delete.
5427 * config/i386/linux.mh (XDEPFILES): Delete.
5428 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
5429 * config/i386/ncr3000.mh (XDEPFILES): Delete.
5430 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
5431 * config/i386/i386sco.mh (XDEPFILES): Delete.
5432 * config/i386/i386v.mh (XDEPFILES): Delete.
5433 * config/i386/nbsd.mh (XDEPFILES): Delete.
5434 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
5435 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
5436 * config/i386/symmetry.mh (XDEPFILES): Delete.
5437 * config/i386/obsd.mh (XDEPFILES): Delete.
5438 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
5439 * config/ia64/linux.mh (XDEPFILES): Delete.
5440 * config/ia64/aix.mh (XDEPFILES): Delete.
5441 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
5442 * config/m68k/dpx2.mh (XDEPFILES): Delete.
5443 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
5444 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
5445 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
5446 * config/m68k/linux.mh (XDEPFILES): Delete.
5447 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
5448 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
5449 * config/m68k/nbsd.mh (XDEPFILES): Delete.
5450 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
5451 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
5452 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
5453 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
5454 * config/m88k/delta88.mh (XDEPFILES): Delete.
5455 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
5456 * config/m88k/m88k.mh (XDEPFILES): Delete.
5457 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
5458 * config/mips/linux.mh (XDEPFILES): Delete.
5459 * config/mips/irix6.mh (XDEPFILES): Delete.
5460 * config/mips/irix5.mh (XDEPFILES): Delete.
5461 * config/mips/irix4.mh (XDEPFILES): Delete.
5462 * config/mips/irix3.mh (XDEPFILES): Delete.
5463 * config/mips/decstation.mh (XDEPFILES): Delete.
5464 * config/mips/mipsm3.mh (XDEPFILES): Delete.
5465 (NATDEPFILES): Move core-aout.o to here.
5466 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
5467 * config/pa/hpux1020.mh (XDEPFILES): Delete.
5468 * config/pa/hppabsd.mh (XDEPFILES): Delete.
5469 * config/pa/hppahpux.mh (XDEPFILES): Delete.
5470 * config/pa/hpux11w.mh (XDEPFILES): Delete.
5471 * config/pa/hppaosf.mh (XDEPFILES): Delete.
5472 * config/pa/hpux11.mh (XDEPFILES): Delete.
5473 * config/powerpc/aix.mh (XDEPFILES): Delete.
5474 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
5475 * config/powerpc/linux.mh (XDEPFILES): Delete.
5476 * config/romp/rtbsd.mh: Rename XDEPFILES.
5477 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
5478 * config/rs6000/aix4.mh (XDEPFILES): Delete.
5479 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
5480 * config/s390/s390.mh (XDEPFILES): Delete.
5481 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
5482 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
5483 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
5484 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
5485 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
5486 * config/sparc/nbsd.mh (XDEPFILES): Delete.
5487 * config/sparc/linux.mh (XDEPFILES): Delete.
5488 * config/vax/vaxult.mh (XDEPFILES): Delete.
5489 * config/vax/vaxult2.mh (XDEPFILES): Delete.
5490 * Makefile.in (DEPFILES): Remove XDEPFILES.
5491
5492 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5493
5494 * utils.c (internal_verror): Fix comments, default is yes not no.
5495 Update queries to match. Default to quit and dump core.
5496
5497 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5498
5499 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
5500 copyright.
5501 * defs.h, event-top.c, gdbcmd.h: Ditto.
5502 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
5503 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
5504 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
5505 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
5506 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
5507 * mi/mi-main.c:Ditto.
5508
5509 * stack.c, symfile.c: Update copyright.
5510
5511 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5512
5513 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
5514 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
5515 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
5516 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
5517
5518 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5519
5520 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
5521 * gdbserver/low-lynx.c (myattach): Likewise.
5522 * gdbserver/low-nbsd.c (myattach): Likewise.
5523 * gdbserver/low-sim.c (myattach): Likewise.
5524 * gdbserver/low-sparc.c (myattach): Likewise.
5525 * gdbserver/low-sun3.c (myattach): Likewise.
5526
5527 * gdbserver/low-linux.c (myattach): New function.
5528
5529 * gdbserver/server.c (attach_inferior): New function.
5530 (main): Handle "--attach".
5531
5532 2002-01-16 Andrew Cagney <ac131313@redhat.com>
5533
5534 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5535 maintainer.
5536
5537 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
5538
5539 * c-typeprint.c (is_type_conversion_operator): Add additional
5540 check for non-conversion operators.
5541
5542 2002-01-15 Michael Snyder <msnyder@redhat.com>
5543
5544 * linux-proc.c: Add "info proc" command, a la procfs.c.
5545 (read_mapping): New function, abstract and re-use code.
5546 (linux_find_memory_regions): Use new func read_mapping.
5547 (linux_info_proc_cmd): New function, implement "info proc".
5548 (_initialize_linux_proc): Add new command "info proc".
5549
5550 2002-01-15 Michael Snyder <msnyder@redhat.com>
5551
5552 * symfile.c (generic_load): Use bfd_map_over_sections method
5553 instead of manipulating bfd structure members directly.
5554 (add_section_size_callback): New function, bfd sections callback
5555 used by generic_load.
5556 (load_sections_callback): New function, bfd sections callback
5557 used by generic_load.
5558
5559 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
5560
5561 [Based on work by Jim Blandy]
5562 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5563 (builtin_type_vec128): Export.
5564 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5565 types.
5566 (builtin_type_vec128): New builtin type for 128 bit vector
5567 registers.
5568 (build_gdbtypes): Initialize builtin_type_v16qi and
5569 builtin_type_v8hi. Create the vec128 register builtin type
5570 structure.
5571 (build_builtin_type_vec128): New function.
5572 (_initialize_gdbtypes): Register builtin_type_v16qi and
5573 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
5574 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
5575 AltiVec register to new builtin type.
5576
5577 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
5578
5579 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
5580 to make_cv_type.
5581
5582 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5583
5584 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
5585 CLEAN_UP_REGISTER_VALUE.
5586 * regcache.c (supply_register): Update only call.
5587
5588 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5589
5590 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5591 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5592 a29k-*-vxworks* targets as obsolete.
5593
5594 2002-01-14 Michael Snyder <msnyder@redhat.com>
5595
5596 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
5597 until we can resolve portability issues.
5598 * gregset.h: Remove references to fpxregs.
5599 * gcore.c (gcore_command): Initialize note_sec to NULL.
5600
5601 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5602
5603 * signals.c (target_signal_to_name): Rewrite. Only use
5604 signals[].name when in bounds and non-NULL.
5605
5606 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5607
5608 From Petr Ledvina <ledvinap@kae.zcu.cz>:
5609 * signals.c (target_signal_to_name): Verify that SIG is within the
5610 bounds of the signals array.
5611
5612 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5613
5614 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
5615
5616 2002-01-13 Keith Seitz <keiths@redhat.com>
5617
5618 * stack.c (print_frame_info_base): Print the frame's pc
5619 only if when print_frame_info_listing_hook is not defined.
5620
5621 2002-01-13 Keith Seitz <keiths@redhat.com>
5622
5623 * varobj.c (varobj_set_value): Make sure that there were no
5624 errors evaluating the object before attempting to set its
5625 value.
5626 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
5627 so this offset adjustment is no longer necessary.
5628 (create_child): Don't set the error flag if the child is
5629 a CPLUS_FAKE_CHILD.
5630 (value_of_child): If value_fetch_lazy fails, return NULL
5631 so that callers will be notified that an error occurred.
5632 (c_value_of_variable): Delay check of variable's validity
5633 until later. We actually want all structs and unions to have
5634 the value "{...}".
5635 Do not return "???" for variables which could not be evaluated.
5636 This error condition must be returned to the caller so that it
5637 can get the error condition from gdb.
5638 (cplus_name_of_child): Adjust index for vptr before figuring
5639 out the name of the child.
5640 (cplus_value_of_child): If a child's (real) parent is not valid,
5641 don't even bother trying to give a value for it. Just return
5642 an error. Change all instances in this function.
5643 (cplus_type_of_child): If our parent is one of the "fake"
5644 parents, we need to get at the type of the real parent, and
5645 derive the child's true type using this information.
5646
5647 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5648
5649 From 2002-01-09 John Marshall <johnm@falch.net>:
5650 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5651 sources.redhat.com, and tweak some related URLs which had
5652 suffered from linkrot.
5653
5654 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5655
5656 From Jeff law:
5657 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5658 structures passed in registers.
5659
5660 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
5661
5662 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5663 white space which prevented compilation. Reported by DSK
5664 <dsk@student.unsw.edu.au>.
5665
5666 2002-01-11 Michael Snyder <msnyder@redhat.com>
5667
5668 * symfile.c (build_section_addr_info_from_section_tab):
5669 Use bfd access method instead of manipulating bfd directly.
5670 (syms_from_objfile): Ditto.
5671 (simple_overlay_update_1): Ditto.
5672 (simple_overlay_update): Ditto.
5673 (generic_load): Ditto.
5674 (overlay_unmapped_address): FIXME comment, bfd access methods.
5675 (sections_overlap): FIXME comment, bfd access methods.
5676 (pc_in_mapped_range): FIXME comment, bfd access methods.
5677 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5678 (section_is_mapped): FIXME comment, bfd access methods.
5679 (section_is_overlay): FIXME comment, bfd access methods.
5680
5681 * symfile.c (generic_load): Whitespace and long line cleanups.
5682 Remove duplicate variable, change several local variables to
5683 more appropriate data types.
5684 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5685
5686 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5687
5688 From Peter Schauer:
5689 * language.c (longest_local_hex_string_custom): Use phex_nz to
5690 convert NUM to a hex string.
5691
5692 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
5693
5694 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5695 the function.
5696 Update Copyright year.
5697
5698 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5699
5700 * language.c (longest_raw_hex_string): Delete unused function.
5701
5702 2002-01-11 Petr Sorfa <petrs@caldera.com>
5703
5704 * MAINTAINERS (write-after-approval): Add myself.
5705 * dwarf2read.c (read_tag_string_type): Handling of
5706 DW_AT_byte_size.
5707 (read_tag_string_type): FORTRAN fix to prevent propagation of
5708 first string size.
5709 (set_cu_language): Handling of DW_LANG_Fortran95
5710
5711 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5712
5713 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5714 GETPID(inferior_ptid).
5715 (store_inferior_registers): Likewise.
5716
5717 2002-01-10 Jason Merrill <jason@redhat.com>
5718
5719 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5720 Fix DW_OP_minus.
5721
5722 2002-01-10 Andrew Cagney <ac131313@redhat.com>
5723
5724 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5725 and bfd/elf32-sh-nbsd.c.
5726
5727 2002-01-10 Michael Snyder <msnyder@redhat.com>
5728
5729 * NEWS: Mention --pid and corefile/proc-id behavior change.
5730
5731 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5732 * gcore.c: Include cli/cli-decode.h instead of command.h.
5733
5734 * main.c (captured_main): Add new command line option "--pid".
5735 If the second command line argument (following the symbol-file)
5736 begins with a digit, try to attach to it before trying to open
5737 it as a corefile.
5738 (print_gdb_help): Document the "--pid" argument.
5739
5740 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
5741
5742 * completer.c (command_completer): New function.
5743
5744 * completer.h <command_completer>: Add prototype.
5745
5746 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5747 completer for the "help" command.
5748
5749 2002-01-09 Jason Merrill <jason@redhat.com>
5750
5751 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5752
5753 2002-01-09 Michael Snyder <msnyder@redhat.com>
5754
5755 * i386-linux-nat.c (fill_fpxregset): Make global.
5756 (store_fpxregset): Ditto.
5757
5758 * gregset.h (gdb_fpxregset_t): Define.
5759 (supply_fpxregset): Prototype.
5760 (fill_fpxregset): Prototype.
5761
5762 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5763
5764 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
5765
5766 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5767 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5768 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5769
5770 2002-01-09 Andrew Cagney <ac131313@redhat.com>
5771
5772 * MAINTAINERS: Update target maintainer rules so that any
5773 Maintainer can approve a tested patch for a maintenance-only
5774 target.
5775
5776 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
5777
5778 * MAINTAINERS (write-after-approval): Add myself.
5779
5780 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
5781 IN_SIGTRAMP.
5782
5783 2002-01-08 Michael Snyder <msnyder@redhat.com>
5784
5785 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5786 real name of the executable, rather than the /proc name.
5787
5788 2002-01-03 Michael Snyder <msnyder@redhat.com>
5789
5790 Implement a "generate-core-file" command in gdb, save target state.
5791 * gcore.c: New file. Implement new command 'generate-core-file'.
5792 Save a corefile image of the current state of the inferior.
5793 * linux-proc.c: Add linux-specific code for saving corefiles.
5794 * target.h (struct target_ops): Add new target vectors for saving
5795 corefiles; to_find_memory_regions and to_make_corefile_notes.
5796 (target_find_memory_regions): New macro.
5797 (target_make_corefile_notes): New macro.
5798 * target.c (update_current_target): Inherit new target methods.
5799 (dummy_find_memory_regions): New place-holder method.
5800 (dummy_make_corefile_notes): New place-holder method.
5801 (init_dummy_target): Initialize new dummy target vectors.
5802 * exec.c (exec_set_find_memory_regions): New function.
5803 Allow the exec_ops vector for memory regions to be taken over.
5804 (exec_make_note_section): New function, target vector method.
5805 * defs.h (exec_set_find_memory_regions): Export prototype.
5806 * procfs.c (proc_find_memory_regions): New function, corefile method.
5807 (procfs_make_note_section): New function, corefile method.
5808 (init_procfs_ops): Set new target vector pointers.
5809 (find_memory_regions_callback): New function.
5810 (procfs_do_thread_registers): New function.
5811 (procfs_corefile_thread_callback): New function.
5812 * sol-thread.c (sol_find_memory_regions): New function.
5813 (sol_make_note_section): New function.
5814 (init_sol_thread_ops): Initialize new target vectors.
5815 * inftarg.c (inftarg_set_find_memory_regions): New function.
5816 Allow to_find_memory_regions vector to be taken over.
5817 (inftarg_set_make_corefile_notes): New function.
5818 Allow to_make_corefile_notes vector to be taken over.
5819 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5820 interface layer if not target_has_execution (may be a corefile).
5821 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5822 * config/sparc/sun4sol2.mh: Ditto.
5823 * config/alpha/alpha-linux.mh: Ditto.
5824 * config/arm/linux.mh: Ditto.
5825 * config/i386/x86-64linux.mh: Ditto.
5826 * config/ia64/linux.mh: Ditto.
5827 * config/m68k/linux.mh: Ditto.
5828 * config/mips/linux.mh: Ditto.
5829 * config/powerpc/linux.mh: Ditto.
5830 * config/sparc/linux.mh: Ditto.
5831
5832 2002-01-07 Michael Snyder <msnyder@redhat.com>
5833
5834 * arm-linux-nat.c: Remove references to regcache.c internal data
5835 (registers[] and register_valid[]).
5836
5837 2002-01-07 Michael Snyder <msnyder@redhat.com>
5838
5839 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5840 so that attaching to a pid will automatically read the process's
5841 symbol file and shlibs.
5842 * Makefile.in: Add rule for linux-proc.o.
5843 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5844 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5845 * config/arm/linux.mh: Ditto.
5846 * config/i386/linux.mh: Ditto.
5847 * config/i386/x86-64linux.mh: Ditto.
5848 * config/ia64/linux.mh: Ditto.
5849 * config/m68k/linux.mh: Ditto.
5850 * config/mips/linux.mh: Ditto.
5851 * config/powerpc/linux.mh: Ditto.
5852 * config/sparc/linux.mh: Ditto.
5853
5854 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5855
5856 * win32-nat.c: Add i386-tdep.h dependency.
5857
5858 2002-01-07 Michael Snyder <msnyder@redhat.com>
5859
5860 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5861 instead of bfd_get_arch_size. Don't bail out just because
5862 there's no exec_bfd.
5863
5864 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5865 * p-valprint.c (pascal_object_print_value): Ditto.
5866 * somread.c (som_symtab_read): Ditto.
5867 * symfile.c (simple_free_overlay_region_table): Ditto.
5868 * valops.c (value_assign): Ditto.
5869
5870 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5871 use tilde_expand and strerror for opening save-tracepoints file.
5872
5873 * thread-db.c (thread_db_new_objfile): Indendation fix.
5874
5875 * infptrace.c (GDB_MAX_ALLOCA): New define.
5876 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5877 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5878 can be overridden with whatever value is appropriate to the host).
5879 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5880 alloca to allocate potentially large buffer.
5881 * rs6000-nat.c (child_xfer_memory): Ditto.
5882 * symm-nat.c (child_xfer_memory): Ditto.
5883 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5884
5885 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5886
5887 From Nick Clifton <nickc@redhat.com>
5888 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5889
5890 2002-01-07 Michael Snyder <msnyder@redhat.com>
5891
5892 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5893 Don't use exec_bfd if it's NULL.
5894
5895 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5896
5897 * valops.c (value_arg_coerce): Fix formatting.
5898
5899 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5900
5901 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5902 * gnu-nat.c: Ditto.
5903
5904 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5905
5906 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5907 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5908 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5909 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5910 z8k-coff have not been multi-arched. Update z8k-coff build
5911 status.
5912
5913 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5914
5915 * MAINTAINERS: Mark a29k target as obsolete.
5916 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5917 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5918 comments.
5919 * NEWS: Note that a29k targets are obsolete.
5920 * a29k-tdep.c: Mark as obsolete.
5921 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5922 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5923 a29k-*-vxworks* targets as obsolete.
5924 * remote-adapt.c: Obsolete.
5925 * remote-eb.c: Obsolete.
5926 * remote-mm.c: Obsolete.
5927 * remote-udi.c: Obsolete.
5928 * config/a29k/a29k-udi.mt: Obsolete.
5929 * config/a29k/a29k.mt: Obsolete.
5930 * config/a29k/tm-a29k.h: Obsolete.
5931 * config/a29k/tm-vx29k.h: Obsolete.
5932 * config/a29k/vx29k.mt: Obsolete.
5933
5934 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5935
5936 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5937 with BFD_ENDIAN_BIG.
5938
5939 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5940
5941 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5942 * configure, config.in: Re-generate.
5943 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5944 * defs.h: Do not include <endian.h>.
5945
5946 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5947
5948 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5949 * config.in: Regenerate.
5950 * configure.in: Update copyright years.
5951 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5952 * configure: Regenerate.
5953 * i386bsd-nat.c: Update copyright years.
5954 (fill_gregset): Use regcache_collect.
5955 (fetch_inferior_registers): Only fetch integer registers
5956 if requested to do so. Add support for XMM registers
5957 using PT_GETXMMREGS.
5958 (store_inferior_registers): Only store integer registers
5959 if requested to do so. Add support for XMM registers
5960 using PT_SETXMMREGS.
5961 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5962 (store_inferior_registers): Remove.
5963 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5964 (fetch_elfcore_registers): New function.
5965 (i386nbsd_elfcore_fns): New.
5966 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5967 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5968 i386bsd-nat.o.
5969 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5970 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5971 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5972 * config/i386/tm-nbsd.h: Update copyright years.
5973 (HAVE_SSE_REGS): Define.
5974 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5975 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5976 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5977 (SIGCONTEXT_PC_OFFSET): Remove.
5978 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5979
5980 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5981
5982 * configure.tgt: Remove powerpc-*-macos* target.
5983 * config/m68k/xm-mpw.h: Delete file.
5984 * config/xm-mpw.h: Delete file.
5985 * ser-mac.c: Delete file.
5986 * mpw-make.sed: Delete file.
5987 * mpw-config.in: Delete file.
5988 * mac-xdep.c: Delete file.
5989 * mac-gdb.r: Delete file.
5990 * mac-defs.h: Delete file.
5991 * mac-nat.c: Delete file.
5992 * config/powerpc/macos.mh: Delete file.
5993 * config/powerpc/macos.mt: Delete file.
5994 * config/powerpc/nm-macos.h: Delete file.
5995 * config/powerpc/tm-macos.h: Delete file.
5996 * source.c (openp, open_source_file): Remove obsolete code.
5997 * top.c (gdb_readline): Ditto.
5998 * utils.c (query): Ditto.
5999 * event-top.c (display_gdb_prompt): Ditto.
6000 * Makefile.in (ser-mac.o): Delete obsolete target.
6001 * NEWS: Update.
6002
6003 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6004
6005 * defs.h (BIG_ENDIAN): Delete macro definition.
6006 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
6007 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
6008 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
6009 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6010 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
6011 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
6012 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
6013 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
6014 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
6015 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
6016 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
6017 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
6018 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6019 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6020 * gdbarch.c: Re-generate.
6021
6022 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6023
6024 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
6025 for core files.
6026
6027 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6028
6029 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
6030
6031 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6032
6033 * value.h (value_ptr): Delete typedef.
6034
6035 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6036
6037 * i386nbsd-nat.c: Update copyright years.
6038 Include i386-tdep.h.
6039
6040 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
6041
6042 * stabsread.c: Update copyright years.
6043
6044 From Debashis Mahata <debashis.mahata@wipro.com>:
6045 (read_struct_fields): Deal with Sun C compiler erroneous stab
6046 output for structs and unions.
6047 Fix PR gdb/269.
6048
6049 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6050
6051 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
6052 prototype.
6053
6054 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6055
6056 * cp-abi.c: Fix whitespace.
6057 (baseclass_offset): New wrapper function.
6058 * cp-abi.h (baseclass_offset): Add prototype.
6059 (struct cp_abi_ops): Add baseclass_offset pointer.
6060
6061 * valops.c (vb_match): Move to...
6062 * gnu-v2-abi.c (vb_match): here.
6063 * valops.c (baseclass_offset): Move to...
6064 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
6065
6066 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
6067
6068 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
6069 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
6070 * hpacc-abi.c (init_hpacc_ops): Likewise.
6071
6072 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6073
6074 * valops.c (find_overload_match): Accept obj as a
6075 reference parameter. Update it before returning.
6076 * value.h (find_overload_match): Update prototype.
6077 * eval.c (evaluate_subexp_standard): Pass object to
6078 find_overload_match by reference.
6079
6080 2002-01-03 Andrew Cagney <ac131313@redhat.com>
6081
6082 * valarith.c: Replace value_ptr with struct value pointer. Remove
6083 register attribute from value declarations.
6084 * valops.c: Ditto.
6085 * value.h: Ditto.
6086 * scm-lang.c (scm_lookup_name): Ditto.
6087
6088 2002-01-03 Michael Snyder <msnyder@redhat.com>
6089
6090 Abstract the functionality of iterating over mapped memory
6091 regions into a general purpose iterator function.
6092 * procfs.c (iterate_over_mappings): New function, general purpose
6093 iterator for memory sections.
6094 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
6095 (solib_mappings_callback): New function, callback for above.
6096 (info_proc_mappings): Reimpliment using iterate_over_mappings.
6097 (info_mappings_callback): New function, callback for above.
6098
6099 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
6100
6101 2002-01-01 Mark Kettenis <kettenis@gnu.org>
6102
6103 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
6104 * i386-tdep.c: Include "elf-bfd.h".
6105 (process_note_abi_tag_sections): New function.
6106 (i386_gdbarch_init): Add code to recognize various OS/ABI
6107 combinations.
6108
6109 * maint.c (_initialize_maint_cmds): Add missing \ in
6110 string-literal.
6111
6112 For older changes see ChangeLog-2001
6113 \f
6114 Local Variables:
6115 mode: change-log
6116 left-margin: 8
6117 fill-column: 74
6118 version-control: never
6119 End:
This page took 0.155051 seconds and 4 git commands to generate.