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