1 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4 of accessing tag_name directly.
6 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9 * gdbtypes.c (replace_type): New function.
10 * gdbtypes.h (replace_type): Add prototype.
11 * stabsread.c (read_type): Use replace_type.
13 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
15 * Makefile.in (memattr.o): Add missing dependencies rule.
17 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
19 * breakpoint.c (break_at_finish_command): Really export.
20 (break_at_finish_at_depth_command): Ditto.
21 (tbreak_at_finish_command): Ditto.
22 * hppa-tdep.c: Include completer.h.
23 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
24 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
26 2002-02-01 Andrew Cagney <ac131313@redhat.com>
28 * utils.c (do_write): New function.
29 (error_stream): Rewrite combining the code from error_begin and
31 (verror): Rewrite using error_stream.
32 (error_begin): Delete function.
34 2002-02-01 Andrew Cagney <ac131313@redhat.com>
36 * utils.c (error_begin): Make static.
37 * defs.h (error_begin): Delete declaration.
39 * linespec.c (cplusplus_error): Replace cplusplus_hint.
40 (decode_line_1): Use cplusplus_error instead of error_begin,
41 cplusplus_hint and return_to_top_level.
42 * coffread.c (coff_symfile_read): Use error instead of error_begin
43 and return_to_top_level.
44 * infrun.c (default_skip_permanent_breakpoint): Ditto.
46 2002-02-01 Andrew Cagney <ac131313@redhat.com>
48 * language.h (type_error, range_error): Make string parameter
50 * language.c (warning_pre_print): Delete extern declaration.
51 * dwarfread.c (warning_pre_print): Ditto.
52 * language.c (type_error, range_error): Rewrite to use verror and
53 vwarning instead of warning_begin.
55 2002-02-01 Michael Snyder <msnyder@redhat.com>
57 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
58 (set_ignore_count): Move misplaced comment back where it belongs.
60 2002-02-01 Andrew Cagney <ac131313@redhat.com>
62 * command.h (NO_FUNCTION): Delete macro.
63 * cli/cli-decode.h (NO_FUNCTION): Ditto.
64 * top.c (execute_command): Replace NO_FUNCTION with NULL.
65 * tracepoint.c (_initialize_tracepoint): Ditto.
66 * cli/cli-decode.c (add_set_cmd): Ditto.
67 * cli/cli-cmds.c (init_cli_cmds): Ditto.
69 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
71 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
72 Update ``this'' pointer when calling virtual functions.
74 2002-02-01 Michael Snyder <msnyder@redhat.com>
76 * breakpoint.c (create_temp_exception_breakpoint): Delete.
77 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
79 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
81 * regformats/reg-arm.dat: New file.
82 * regformats/reg-i386.dat: New file.
83 * regformats/reg-ia64.dat: New file.
84 * regformats/reg-m68k.dat: New file.
85 * regformats/reg-mips.dat: New file.
86 * regformats/reg-ppc.dat: New file.
87 * regformats/reg-sh.dat: New file.
88 * regformats/regdef.h: New file.
89 * regformats/regdat.sh: New file.
91 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
93 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
94 (arm_frame_args_address, arm_frame_locals_address): New functions.
95 (arm_frame_num_args): New function.
96 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
97 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
98 (FRMA_NUM_ARGS): Call arm_frame_num_args.
100 2002-01-31 Michael Snyder <msnyder@redhat.com>
102 * breakpoint.c (break_at_finish_command): Export.
103 (break_at_finish_at_depth_command): Export.
104 (tbreak_at_finish_command): Export.
105 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
106 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
107 "tbreak" commands, which are HPPA specific.
109 * printcmd.c (disassemble_command): Remove an ancient
110 artifact of an old merge.
112 * symfile.h (enum overlay_debugging_state):
113 Define enum constant values for overlay mode.
114 * symfile.c (overlay_debugging): Use enums instead of literals.
115 (overlay_is_mapped, overlay_auto_command,
116 overlay_manual_command): Ditto.
118 * breakpoint.c (insert_breakpoints, remove_breakpoint,
119 breakpoint_here_p, breakpoint_inserted_here_p,
120 breakpoint_thread_match, bpstat_stop_status,
121 describe_other_breakpoints, check_duplicates, clear_command):
122 Coding standard fixes.
124 * target.c (target_xfer_memory): Add spaces, coding standard.
125 (do_xfer_memory): Add missing line to trust-readonly
126 code: check bfd SEC_READONLY flag for section.
128 2002-01-31 Andrew Cagney <ac131313@redhat.com>
130 * PROBLEMS: Fix typo, 5.1->5.1.1.
132 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
134 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
135 data symbols, since we search based on textlow and texthigh.
136 (find_pc_sect_symtab): Likewise.
138 2002-01-30 Andrew Cagney <ac131313@redhat.com>
140 * defs.h (vwarning): Declare.
141 (warning_begin): Delete declaration.
142 * utils.c (vwarning): New function.
143 (warning): Call vwarning.
144 (warning_begin): Delete function.
146 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
148 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
151 2002-01-30 Michael Snyder <msnyder@redhat.com>
153 * NEWS: Mention "set trust-readonly-sections" command.
154 Mention generate-core-file command.
156 2002-01-15 Michael Snyder <msnyder@redhat.com>
158 * target.c: New command, "set trust-readonly-sections on".
159 (do_xfer_memory): Honor the suggestion to trust readonly sections
160 by reading them from the object file instead of from the target.
161 (initialize_targets): Register command "set trust-readonly-sections".
163 2002-01-29 Andrew Cagney <ac131313@redhat.com>
165 * parse.c (target_map_name_to_register): Simplify, search regs and
166 pseudo-regs using a single loop.
168 2002-01-30 Andrew Cagney <ac131313@redhat.com>
170 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
172 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
174 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
175 * config/i386/i386v42mp.mh: Add i387-nat.o .
176 * i386v4-nat.c: Include i387-nat.h.
177 (supply_fpregset): Use i387_supply_fsave.
178 (fill_fpregset): Use i387_fill_fsave.
180 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
182 * arm-tdep.c (arm_call_dummy_words): Define.
183 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
184 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
185 (CALL_DUMMY_WORDS): Define.
186 (arm_call_dummy_words): Declare.
187 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
188 (arm_linux_call_dummy_words): Declare.
190 2002-01-30 Andreas Schwab <schwab@suse.de>
192 * m68klinux-nat.c: Fix last change to use regcache_collect
193 instead of referencing registers[] directly.
195 2002-01-29 Andrew Cagney <ac131313@redhat.com>
197 * parse.c (target_map_name_to_register): Delete code wrapped in
198 #ifdef REGISTER_NAME_ALIAS_HOOK.
200 2002-01-28 Michael Snyder <msnyder@redhat.com>
202 * regcache.c (legacy_read_register_gen): Need to be able to
203 read pseudo-register as well as real register.
204 (legacy_write_register_gen): Ditto.
206 2002-01-28 Andrew Cagney <ac131313@redhat.com>
208 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
209 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
210 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
211 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
212 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
213 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
214 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
215 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
216 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
217 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
218 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
219 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
220 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
221 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
222 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
223 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
224 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
225 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
226 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
227 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
229 2002-01-28 Andrew Cagney <ac131313@redhat.com>
231 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
232 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
233 (initialize_current_architecture): Update target_byte_order using
234 information from BFD.
235 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
236 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
237 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
239 2002-01-28 Andrew Cagney <ac131313@redhat.com>
241 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
242 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
244 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
245 #ifdef INVALID_FLOAT.
246 * infcmd.c (do_registers_info): Ditto.
247 * values.c (unpack_double): Ditto. Add comment.
249 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
250 already commented out.
252 2002-01-26 Andreas Schwab <schwab@suse.de>
254 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
255 * m68klinux-nat.c: Update ptrace interface for fetching/storing
256 registers and add support for PTRACE_GETREGS.
258 2002-01-24 Andrew Cagney <ac131313@redhat.com>
260 GDB 5.1.1 released from 5.1 branch.
261 * NEWS: Add 5.1.1 news.
262 * README: Sync with 5.1 branch.
264 2002-01-23 Fred Fish <fnf@redhat.com>
266 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
267 stabstring on initial malloc. Reallocing will copy it for us,
270 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
272 * Makefile.in (hpread_h): Delete.
273 (HFILES_NO_SRCDIR): Remove hpread.h.
274 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
275 (hpread.o): Update dependencies.
276 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
278 * hp-psymtab-read.c: Remove file.
279 * hp-symtab-read.c: Remove file.
280 * hpread.h: Remove file.
282 * hpread.c: Merge all contents of hp-psymtab-read.c,
283 hp-symtab-read.c and hpread.h into this file, as it was prior to
286 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
287 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
288 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
289 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
291 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
293 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
294 fill_gregset): Call gdbarch_tdep() just once, assign result to
295 variable and use that, instead of calling the function several
298 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
300 * configure.host: Accept sparcv9 as alias for sparc64.
301 * configure.tgt: Likewise.
303 2002-01-22 Kevin Buettner <kevinb@redhat.com>
305 * solib-aix5.c (build_so_list_from_mapfile)
306 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
307 arguments is not reversed.
308 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
309 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
311 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
313 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
314 modified version of obsolete sh_fetch_pseudo_register.
315 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
316 (sh4_register_read): New function.
317 (sh_pseudo_register_write): New function. Renamed and modified
318 version of obsolete sh_store_pseudo_register.
319 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
320 (sh4_register_write): New function.
321 (sh_gdbarch_init): Remove setting of gdbarch function
322 fetch_pseudo_register and store_pseudo_register. Remove setting of
323 register_convert_to_raw, register_convert_to_virtual,
324 register_convertible.
325 (sh_sh4_register_convertible): Delete. No longer needed. All is
326 taken care by architecture specific functions
327 register_read/register_write.
328 (sh_sh4_register_convert_to_virtual): Make static.
329 (sh_sh4_register_convert_to_raw): Ditto.
331 2002-01-22 Andrew Cagney <ac131313@redhat.com>
333 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
334 (floatformat_is_nan, floatformat_mantissa): Ditto.
336 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
337 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
338 builtin_type_ieee_double_little,
339 builtin_type_ieee_double_littlebyte_bigword,
340 builtin_type_m68881_ext, builtin_type_i960_ext,
341 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
342 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
343 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
344 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
346 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
348 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
349 parameter. Set frameless flag if it exists and depended of
350 whether the scanned function is frameless or not.
351 (xstormy16_skip_prologue): If function is frameless, return
352 result of xstormy16_scan_prologue().
353 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
356 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
358 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
359 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
360 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
361 sh_sh4_register_byte, sh_sh4_register_raw_size,
362 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
363 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
364 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
365 sh_store_pseudo_register, sh_do_pseudo_register): Call
366 gdbarch_tdep() just once, assign result to variable and use that,
367 instead of calling the function several times.
369 2002-01-20 Mark Kettenis <kettenis@gnu.org>
371 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
372 macros instead of LAST_FPU_CTRL_REGNUM.
373 (store_register): Likewise.
375 2002-01-21 Jim Blandy <jimb@redhat.com>
377 * infcmd.c (run_command): Check that the `exec' target layer's BFD
378 is up-to-date before running the program, not just when a program
381 2002-01-21 Fred Fish <fnf@redhat.com>
383 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
384 when we have found all instructions we are looking for.
386 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
388 * arm-tdep.c (arm_register_name): New function.
389 (arm_registers_names): Make static.
390 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
391 (arm_register_name): Declare.
392 (REGISTER_NAME): Use it.
394 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
395 Kevin Buettner <kevinb@redhat.com>
397 Convert arm targets to new FRAME interface.
398 * arm-tdep.c (struct frame_extra_info): Remove fsr.
399 (arm_frame_find_save_regs): Delete.
400 (arm_frame_init_saved_regs): New.
401 (arm_init_extra_frame_info): Alloacte saved_regs as required.
402 Allocate extra_info as required. Convert all uses of fsr.regs
403 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
405 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
406 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
407 (check_prologue_cache, save_prologue_cache): Likewise.
408 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
409 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
410 (FRAME_FIND_SAVED_REGS): Delete.
411 (arm_frame_find_saved_regs): Delete prototype.
412 (arm_frame_init_saved_regs): New prototype.
413 (FRAME_INIT_SAVED_REGS): Define.
415 2002-01-20 Andrew Cagney <ac131313@redhat.com>
417 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
419 2002-01-20 Andrew Cagney <ac131313@redhat.com>
421 From Jeff Law <law@redhat.com>:
422 * infttrace.c: Include <sys/pstat.h>.
423 (child_pid_to_exec_file): Revamp. Use pstat call to get the
424 exec file if the ttrace equivalent fails.
426 2002-01-20 Andrew Cagney <ac131313@redhat.com>
428 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
429 (closeLogFile): Ditto.
431 2002-01-20 Michael Chastain <mec@shout.net>
433 * top.c (print_gdb_version): Bump copyright year to 2002.
435 2002-01-20 Andrew Cagney <ac131313@redhat.com>
437 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
438 Zannoni and Eli Zaretskii.
440 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
442 * buildsym.c: Update copyright years.
443 * c-typeprint.c: Likewise.
444 * dwarf2read.c: Likewise.
445 * f-typeprint.c: Likewise.
446 * gdbtypes.c: Likewise.
447 * gdbtypes.h: Likewise.
448 * hp-symtab-read.c: Likewise.
449 * hpread.c: Likewise.
450 * mdebugread.c: Likewise.
451 * p-typeprint.c: Likewise.
453 2002-01-20 Andrew Cagney <ac131313@redhat.com>
455 * remote-sim.c (gdbsim_open): Simplify code testing the macro
456 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
457 byte-order selectable.
458 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
459 * arch-utils.c: Ditto.
461 (set_endian_from_file): Ditto.
462 * gdbserver/low-sim.c (create_inferior): Ditto.
464 * gdbarch.h: Re-generate.
465 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
466 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
467 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
468 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
469 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
470 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
471 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
472 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
474 * config/mips/tm-wince.h: Remove #undef of macro
475 TARGET_BYTE_ORDER_SELECTABLE.
476 * config/sh/tm-wince.h: Ditto.
478 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
480 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
481 member function fields. Add accessor macro
482 TYPE_FN_FIELD_ARTIFICIAL.
483 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
484 * c-typeprint.c (c_type_print_base): Skip artificial member
487 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
489 * f-typeprint.c: Delete unused function f_type_print_args.
490 * p-typeprint.c: Delete unused function pascal_type_print_args.
492 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
494 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
495 comment. Add ``artificial'' to ``union field_location''.
497 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
499 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
500 * mdebugread.c (parse_symbol): Likewise.
501 * stabsread.c (define_symbol): Likewise.
502 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
503 initializing TYPE_FIELD_BITPOS to n (obsolete).
504 (hpread_doc_function_type): Likewise.
505 * hpread.c (hpread_function_type): Likewise.
507 2002-01-20 Andrew Cagney <ac131313@redhat.com>
509 * configure.in (host_makefile_frag): Only require a host makefile
510 fragment when a native build.
511 * configure: Re-generate.
513 2002-01-20 Andrew Cagney <ac131313@redhat.com>
515 * doublest.h (floatformat_from_type): Declare.
516 * doublest.c (floatformat_from_type): New function.
517 (convert_typed_floating): Use.
519 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
520 call to function floatformat_from_type.
522 * gdbarch.sh (IEEE_FLOAT): Delete.
523 * gdbarch.h, gdbarch.c: Re-generate.
524 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
525 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
526 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
527 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
528 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
529 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
530 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
531 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
532 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
533 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
534 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
535 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
537 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
538 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
539 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
540 * sh-tdep.c (sh_gdbarch_init): Ditto.
541 * mips-tdep.c (mips_gdbarch_init): Ditto.
542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
543 * cris-tdep.c (cris_gdbarch_init): Ditto.
545 2002-01-20 Jiri Smid <smid@suse.cz>
547 * configure.host, configure.tgt: Support x86-64.
548 * NEWS: Note new target x86-64.
550 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
551 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
552 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
553 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
554 x86-64-linux-nat.o): Fix dependencies.
556 2002-01-19 Andrew Cagney <ac131313@redhat.com>
558 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
559 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
560 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
561 * config/sparc/xm-sun4os4.h: Delete file.
562 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
564 2002-01-19 Andrew Cagney <ac131313@redhat.com>
566 * config/sparc/sparclynx.mh (XM_FILE): Delete.
567 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
568 * config/m68k/m68klynx.mh (XM_FILE): Delete.
569 * config/i386/i386lynx.mh (XM_FILE): Delete.
570 * config/rs6000/xm-rs6000ly.h: Delete file.
571 * config/sparc/xm-sparclynx.h: Delete file.
572 * config/m68k/xm-m68klynx.h: Delete file.
573 * config/i386/xm-i386lynx.h: Delete file.
574 * config/xm-lynx.h: Delete file.
575 * config/djgpp/fnchange.lst: Update.
577 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
579 * alpha-tdep.c (alpha_register_byte): New function.
580 (alpha_register_raw_size): Ditto.
581 (alpha_register_virtual_size): Ditto.
582 (alpha_skip_prologue_internal): Renamed from
584 (alpha_skip_prologue): New version that calls
585 alpha_skip_prologue_internal.
586 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
587 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
588 second argument from alpha_skip_prologue.
589 (REGISTER_BYTE): Use alpha_register_byte.
590 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
591 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
592 (FRAMELESS_FUNCTION_INVOCATION): Use
593 generic_frameless_function_invocation_not.
594 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
595 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
597 2002-01-19 Andrew Cagney <ac131313@redhat.com>
599 * config/mips/xm-news-mips.h: Delete file.
600 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
602 * config/m88k/xm-m88k.h: Delete file.
603 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
604 * config/m88k/xm-delta88v4.h: Ditto.
605 * config/m88k/xm-delta88.h: Ditto.
607 * config/alpha/xm-fbsd.h: Delete file.
608 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
610 * config/sparc/xm-sparc.h: Delete file.
611 * Makefile.in (xm-sun4os4.h): Delete dependency.
612 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
613 * config/sparc/xm-sun4os4.h: Ditto.
614 * config/sparc/xm-linux.h: Ditto.
616 * config/i386/xm-windows.h: Delete file.
618 2002-01-19 Andrew Cagney <ac131313@redhat.com>
620 * utils.c: Include <sys/param.h> for MAXPATHLEN.
621 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
623 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
625 * alpha-tdep.c (alpha_call_dummy_words): New.
626 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
627 (CALL_DUMMY_P): Define.
628 (CALL_DUMMY_WORDS): Define.
629 (SIZEOF_CALL_DUMMY_WORDS): Define.
631 2002-01-19 Per Bothner <per@bothner.com>
633 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
634 isn't NULL, which can happen with some gcj-3.x-produced code.
636 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
638 * alpha-tdep.c (alpha_register_virtual_type): New function.
639 (alpha_init_frame_pc_first): Ditto.
640 (alpha_fix_call_dummy): Ditto.
641 (alpha_store_struct_return): Ditto.
642 (alpha_extract_struct_value_address): Ditto.
643 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
644 alpha_register_virtual_type.
645 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
646 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
647 alpha_extract_struct_value_address.
648 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
649 (INIT_FRAME_PC): Use init_frame_pc_noop.
650 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
652 2002-01-19 Mark Kettenis <kettenis@gnu.org>
654 * i386gnu-nat.c: Include "i386-tdep.h".
655 (fetch_fpregs): Simplify code dealing with uninitialized floating
656 point states such that it doesn't require FP7_REGNUM.
658 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
660 * alpha-tdep.c (frame_extra_info): New.
661 (alpha_find_saved_regs): Make static. Use
663 (alpha_frame_init_saved_regs): New function.
664 (alpha_frame_saved_pc): Use frame->extra_info.
665 (temp_saved_regs): Don't declare as struct frame_saved_regs.
666 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
667 (init_extra_frame_info): Rename to...
668 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
669 (alpha_print_extra_frame_info): New function.
670 (alpha_frame_locals_address): Ditto.
671 (alpha_frame_args_address): Ditto.
672 (alpha_pop_frame): Use frame->extra_info.
673 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
674 alpha_frame_args_address.
675 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
676 (alpha_find_saved_regs): Remove prototype.
677 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
678 (EXTRA_FRAME_INFO): Remove.
679 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
680 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
682 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
684 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
685 (alpha_cannot_fetch_register): Ditto.
686 (alpha_cannot_store_register): Ditto.
687 (alpha_register_convertible): Ditto.
688 (alpha_use_struct_convention): Ditto.
689 * config/alpha/tm-alpha.h: Update copyright years.
690 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
691 (INNER_THAN): Use core_addr_lessthan.
692 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
693 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
694 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
695 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
696 (FRAME_CHAIN): Remove unnecessary cast.
698 2002-01-18 Andrew Cagney <ac131313@redhat.com>
700 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
703 2002-01-18 Andrew Cagney <ac131313@redhat.com>
705 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
706 * monitor.c, remote-array.c, remote-bug.c: Ditto.
707 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
708 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
709 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
710 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
711 * x86-64-linux-nat.c: Ditto.
713 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
715 * alpha-tdep.c (alpha_register_name): New function.
716 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
717 (REGISTER_NAME): Define.
719 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
721 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
723 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
725 * alpha-tdep.c: Update copyright years.
726 (alpha_next_pc): New function.
727 (alpha_software_single_step): Ditto.
728 * config/alpha/tm-alpha.h: Add prototype for
729 alpha_software_single_step.
731 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
733 * alphabsd-nat.c: Update copyright years.
734 (fill_gregset): Use regcache_collect.
735 (fill_fpregset): Likewise.
736 (fetch_inferior_registers): Only fetch integer registers
737 if requested to do so.
738 (store_inferior_registers): Only store integer registers
739 if requested to do so.
741 2002-01-17 Andrew Cagney <ac131313@redhat.com>
743 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
744 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
745 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
746 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
747 * config/alpha/fbsd.mh (XDEPFILES): Delete.
748 * config/arm/linux.mh (XDEPFILES): Delete.
749 * config/arm/nbsd.mh (XDEPFILES): Delete.
750 * config/i386/i386dgux.mh (XDEPFILES): Delete.
751 * config/i386/i386sol2.mh (XDEPFILES): Delete.
752 * config/i386/i386m3.mh (XDEPFILES): Delete.
753 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
754 * config/i386/i386gnu.mh (XDEPFILES): Delete.
755 * config/i386/fbsd.mh (XDEPFILES): Delete.
756 * config/i386/i386bsd.mh (XDEPFILES): Delete.
757 * config/i386/i386sco5.mh (XDEPFILES): Delete.
758 * config/i386/i386v4.mh (XDEPFILES): Delete.
759 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
760 * config/i386/i386sco4.mh (XDEPFILES): Delete.
761 * config/i386/i386aix.mh (XDEPFILES): Delete.
762 * config/i386/go32.mh (XDEPFILES): Delete.
763 * config/i386/cygwin.mh (XDEPFILES): Delete.
764 * config/i386/i386lynx.mh (XDEPFILES): Delete.
765 * config/i386/i386mach.mh (XDEPFILES): Delete.
766 * config/i386/i386v32.mh (XDEPFILES): Delete.
767 * config/i386/linux.mh (XDEPFILES): Delete.
768 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
769 * config/i386/ncr3000.mh (XDEPFILES): Delete.
770 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
771 * config/i386/i386sco.mh (XDEPFILES): Delete.
772 * config/i386/i386v.mh (XDEPFILES): Delete.
773 * config/i386/nbsd.mh (XDEPFILES): Delete.
774 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
775 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
776 * config/i386/symmetry.mh (XDEPFILES): Delete.
777 * config/i386/obsd.mh (XDEPFILES): Delete.
778 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
779 * config/ia64/linux.mh (XDEPFILES): Delete.
780 * config/ia64/aix.mh (XDEPFILES): Delete.
781 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
782 * config/m68k/dpx2.mh (XDEPFILES): Delete.
783 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
784 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
785 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
786 * config/m68k/linux.mh (XDEPFILES): Delete.
787 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
788 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
789 * config/m68k/nbsd.mh (XDEPFILES): Delete.
790 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
791 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
792 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
793 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
794 * config/m88k/delta88.mh (XDEPFILES): Delete.
795 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
796 * config/m88k/m88k.mh (XDEPFILES): Delete.
797 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
798 * config/mips/linux.mh (XDEPFILES): Delete.
799 * config/mips/irix6.mh (XDEPFILES): Delete.
800 * config/mips/irix5.mh (XDEPFILES): Delete.
801 * config/mips/irix4.mh (XDEPFILES): Delete.
802 * config/mips/irix3.mh (XDEPFILES): Delete.
803 * config/mips/decstation.mh (XDEPFILES): Delete.
804 * config/mips/mipsm3.mh (XDEPFILES): Delete.
805 (NATDEPFILES): Move core-aout.o to here.
806 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
807 * config/pa/hpux1020.mh (XDEPFILES): Delete.
808 * config/pa/hppabsd.mh (XDEPFILES): Delete.
809 * config/pa/hppahpux.mh (XDEPFILES): Delete.
810 * config/pa/hpux11w.mh (XDEPFILES): Delete.
811 * config/pa/hppaosf.mh (XDEPFILES): Delete.
812 * config/pa/hpux11.mh (XDEPFILES): Delete.
813 * config/powerpc/aix.mh (XDEPFILES): Delete.
814 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
815 * config/powerpc/linux.mh (XDEPFILES): Delete.
816 * config/romp/rtbsd.mh: Rename XDEPFILES.
817 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
818 * config/rs6000/aix4.mh (XDEPFILES): Delete.
819 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
820 * config/s390/s390.mh (XDEPFILES): Delete.
821 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
822 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
823 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
824 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
825 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
826 * config/sparc/nbsd.mh (XDEPFILES): Delete.
827 * config/sparc/linux.mh (XDEPFILES): Delete.
828 * config/vax/vaxult.mh (XDEPFILES): Delete.
829 * config/vax/vaxult2.mh (XDEPFILES): Delete.
830 * Makefile.in (DEPFILES): Remove XDEPFILES.
832 2002-01-17 Andrew Cagney <ac131313@redhat.com>
834 * utils.c (internal_verror): Fix comments, default is yes not no.
835 Update queries to match. Default to quit and dump core.
837 2002-01-17 Andrew Cagney <ac131313@redhat.com>
839 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
841 * defs.h, event-top.c, gdbcmd.h: Ditto.
842 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
843 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
844 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
845 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
846 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
847 * mi/mi-main.c:Ditto.
849 * stack.c, symfile.c: Update copyright.
851 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
853 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
854 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
855 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
856 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
858 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
860 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
861 * gdbserver/low-lynx.c (myattach): Likewise.
862 * gdbserver/low-nbsd.c (myattach): Likewise.
863 * gdbserver/low-sim.c (myattach): Likewise.
864 * gdbserver/low-sparc.c (myattach): Likewise.
865 * gdbserver/low-sun3.c (myattach): Likewise.
867 * gdbserver/low-linux.c (myattach): New function.
869 * gdbserver/server.c (attach_inferior): New function.
870 (main): Handle "--attach".
872 2002-01-16 Andrew Cagney <ac131313@redhat.com>
874 * MAINTAINERS (language support): Daniel Jacobwitz is C++
877 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
879 * c-typeprint.c (is_type_conversion_operator): Add additional
880 check for non-conversion operators.
882 2002-01-15 Michael Snyder <msnyder@redhat.com>
884 * linux-proc.c: Add "info proc" command, a la procfs.c.
885 (read_mapping): New function, abstract and re-use code.
886 (linux_find_memory_regions): Use new func read_mapping.
887 (linux_info_proc_cmd): New function, implement "info proc".
888 (_initialize_linux_proc): Add new command "info proc".
890 2002-01-15 Michael Snyder <msnyder@redhat.com>
892 * symfile.c (generic_load): Use bfd_map_over_sections method
893 instead of manipulating bfd structure members directly.
894 (add_section_size_callback): New function, bfd sections callback
895 used by generic_load.
896 (load_sections_callback): New function, bfd sections callback
897 used by generic_load.
899 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
901 [Based on work by Jim Blandy]
902 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
903 (builtin_type_vec128): Export.
904 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
906 (builtin_type_vec128): New builtin type for 128 bit vector
908 (build_gdbtypes): Initialize builtin_type_v16qi and
909 builtin_type_v8hi. Create the vec128 register builtin type
911 (build_builtin_type_vec128): New function.
912 (_initialize_gdbtypes): Register builtin_type_v16qi and
913 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
914 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
915 AltiVec register to new builtin type.
917 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
919 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
922 2002-01-14 Andrew Cagney <ac131313@redhat.com>
924 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
925 CLEAN_UP_REGISTER_VALUE.
926 * regcache.c (supply_register): Update only call.
928 2002-01-14 Andrew Cagney <ac131313@redhat.com>
930 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
931 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
932 a29k-*-vxworks* targets as obsolete.
934 2002-01-14 Michael Snyder <msnyder@redhat.com>
936 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
937 until we can resolve portability issues.
938 * gregset.h: Remove references to fpxregs.
939 * gcore.c (gcore_command): Initialize note_sec to NULL.
941 2002-01-13 Andrew Cagney <ac131313@redhat.com>
943 * signals.c (target_signal_to_name): Rewrite. Only use
944 signals[].name when in bounds and non-NULL.
946 2002-01-13 Andrew Cagney <ac131313@redhat.com>
948 From Petr Ledvina <ledvinap@kae.zcu.cz>:
949 * signals.c (target_signal_to_name): Verify that SIG is within the
950 bounds of the signals array.
952 2002-01-13 Andrew Cagney <ac131313@redhat.com>
954 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
956 2002-01-13 Keith Seitz <keiths@redhat.com>
958 * stack.c (print_frame_info_base): Print the frame's pc
959 only if when print_frame_info_listing_hook is not defined.
961 2002-01-13 Keith Seitz <keiths@redhat.com>
963 * varobj.c (varobj_set_value): Make sure that there were no
964 errors evaluating the object before attempting to set its
966 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
967 so this offset adjustment is no longer necessary.
968 (create_child): Don't set the error flag if the child is
970 (value_of_child): If value_fetch_lazy fails, return NULL
971 so that callers will be notified that an error occurred.
972 (c_value_of_variable): Delay check of variable's validity
973 until later. We actually want all structs and unions to have
975 Do not return "???" for variables which could not be evaluated.
976 This error condition must be returned to the caller so that it
977 can get the error condition from gdb.
978 (cplus_name_of_child): Adjust index for vptr before figuring
979 out the name of the child.
980 (cplus_value_of_child): If a child's (real) parent is not valid,
981 don't even bother trying to give a value for it. Just return
982 an error. Change all instances in this function.
983 (cplus_type_of_child): If our parent is one of the "fake"
984 parents, we need to get at the type of the real parent, and
985 derive the child's true type using this information.
987 2002-01-13 Andrew Cagney <ac131313@redhat.com>
989 From 2002-01-09 John Marshall <johnm@falch.net>:
990 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
991 sources.redhat.com, and tweak some related URLs which had
992 suffered from linkrot.
994 2002-01-13 Andrew Cagney <ac131313@redhat.com>
997 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
998 structures passed in registers.
1000 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
1002 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
1003 white space which prevented compilation. Reported by DSK
1004 <dsk@student.unsw.edu.au>.
1006 2002-01-11 Michael Snyder <msnyder@redhat.com>
1008 * symfile.c (build_section_addr_info_from_section_tab):
1009 Use bfd access method instead of manipulating bfd directly.
1010 (syms_from_objfile): Ditto.
1011 (simple_overlay_update_1): Ditto.
1012 (simple_overlay_update): Ditto.
1013 (generic_load): Ditto.
1014 (overlay_unmapped_address): FIXME comment, bfd access methods.
1015 (sections_overlap): FIXME comment, bfd access methods.
1016 (pc_in_mapped_range): FIXME comment, bfd access methods.
1017 (pc_in_unmapped_range): FIXME comment, bfd access methods.
1018 (section_is_mapped): FIXME comment, bfd access methods.
1019 (section_is_overlay): FIXME comment, bfd access methods.
1021 * symfile.c (generic_load): Whitespace and long line cleanups.
1022 Remove duplicate variable, change several local variables to
1023 more appropriate data types.
1024 (print_transfer_performance): Use %lu instead of %ld for ulongs.
1026 2002-01-12 Andrew Cagney <ac131313@redhat.com>
1029 * language.c (longest_local_hex_string_custom): Use phex_nz to
1030 convert NUM to a hex string.
1032 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
1034 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
1036 Update Copyright year.
1038 2002-01-12 Andrew Cagney <ac131313@redhat.com>
1040 * language.c (longest_raw_hex_string): Delete unused function.
1042 2002-01-11 Petr Sorfa <petrs@caldera.com>
1044 * MAINTAINERS (write-after-approval): Add myself.
1045 * dwarf2read.c (read_tag_string_type): Handling of
1047 (read_tag_string_type): FORTRAN fix to prevent propagation of
1049 (set_cu_language): Handling of DW_LANG_Fortran95
1051 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
1053 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
1054 GETPID(inferior_ptid).
1055 (store_inferior_registers): Likewise.
1057 2002-01-10 Jason Merrill <jason@redhat.com>
1059 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
1062 2002-01-10 Andrew Cagney <ac131313@redhat.com>
1064 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
1065 and bfd/elf32-sh-nbsd.c.
1067 2002-01-10 Michael Snyder <msnyder@redhat.com>
1069 * NEWS: Mention --pid and corefile/proc-id behavior change.
1071 * Makefile.in: Add rules for gcore.o and linux-proc.o.
1072 * gcore.c: Include cli/cli-decode.h instead of command.h.
1074 * main.c (captured_main): Add new command line option "--pid".
1075 If the second command line argument (following the symbol-file)
1076 begins with a digit, try to attach to it before trying to open
1078 (print_gdb_help): Document the "--pid" argument.
1080 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
1082 * completer.c (command_completer): New function.
1084 * completer.h <command_completer>: Add prototype.
1086 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
1087 completer for the "help" command.
1089 2002-01-09 Jason Merrill <jason@redhat.com>
1091 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
1093 2002-01-09 Michael Snyder <msnyder@redhat.com>
1095 * i386-linux-nat.c (fill_fpxregset): Make global.
1096 (store_fpxregset): Ditto.
1098 * gregset.h (gdb_fpxregset_t): Define.
1099 (supply_fpxregset): Prototype.
1100 (fill_fpxregset): Prototype.
1102 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
1104 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
1106 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
1107 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
1108 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
1110 2002-01-09 Andrew Cagney <ac131313@redhat.com>
1112 * MAINTAINERS: Update target maintainer rules so that any
1113 Maintainer can approve a tested patch for a maintenance-only
1116 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
1118 * MAINTAINERS (write-after-approval): Add myself.
1120 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
1123 2002-01-08 Michael Snyder <msnyder@redhat.com>
1125 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
1126 real name of the executable, rather than the /proc name.
1128 2002-01-03 Michael Snyder <msnyder@redhat.com>
1130 Implement a "generate-core-file" command in gdb, save target state.
1131 * gcore.c: New file. Implement new command 'generate-core-file'.
1132 Save a corefile image of the current state of the inferior.
1133 * linux-proc.c: Add linux-specific code for saving corefiles.
1134 * target.h (struct target_ops): Add new target vectors for saving
1135 corefiles; to_find_memory_regions and to_make_corefile_notes.
1136 (target_find_memory_regions): New macro.
1137 (target_make_corefile_notes): New macro.
1138 * target.c (update_current_target): Inherit new target methods.
1139 (dummy_find_memory_regions): New place-holder method.
1140 (dummy_make_corefile_notes): New place-holder method.
1141 (init_dummy_target): Initialize new dummy target vectors.
1142 * exec.c (exec_set_find_memory_regions): New function.
1143 Allow the exec_ops vector for memory regions to be taken over.
1144 (exec_make_note_section): New function, target vector method.
1145 * defs.h (exec_set_find_memory_regions): Export prototype.
1146 * procfs.c (proc_find_memory_regions): New function, corefile method.
1147 (procfs_make_note_section): New function, corefile method.
1148 (init_procfs_ops): Set new target vector pointers.
1149 (find_memory_regions_callback): New function.
1150 (procfs_do_thread_registers): New function.
1151 (procfs_corefile_thread_callback): New function.
1152 * sol-thread.c (sol_find_memory_regions): New function.
1153 (sol_make_note_section): New function.
1154 (init_sol_thread_ops): Initialize new target vectors.
1155 * inftarg.c (inftarg_set_find_memory_regions): New function.
1156 Allow to_find_memory_regions vector to be taken over.
1157 (inftarg_set_make_corefile_notes): New function.
1158 Allow to_make_corefile_notes vector to be taken over.
1159 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
1160 interface layer if not target_has_execution (may be a corefile).
1161 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
1162 * config/sparc/sun4sol2.mh: Ditto.
1163 * config/alpha/alpha-linux.mh: Ditto.
1164 * config/arm/linux.mh: Ditto.
1165 * config/i386/x86-64linux.mh: Ditto.
1166 * config/ia64/linux.mh: Ditto.
1167 * config/m68k/linux.mh: Ditto.
1168 * config/mips/linux.mh: Ditto.
1169 * config/powerpc/linux.mh: Ditto.
1170 * config/sparc/linux.mh: Ditto.
1172 2002-01-07 Michael Snyder <msnyder@redhat.com>
1174 * arm-linux-nat.c: Remove references to regcache.c internal data
1175 (registers[] and register_valid[]).
1177 2002-01-07 Michael Snyder <msnyder@redhat.com>
1179 * linux-proc.c: New file. Implement child_pid_to_exec_file,
1180 so that attaching to a pid will automatically read the process's
1181 symbol file and shlibs.
1182 * Makefile.in: Add rule for linux-proc.o.
1183 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
1184 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
1185 * config/arm/linux.mh: Ditto.
1186 * config/i386/linux.mh: Ditto.
1187 * config/i386/x86-64linux.mh: Ditto.
1188 * config/ia64/linux.mh: Ditto.
1189 * config/m68k/linux.mh: Ditto.
1190 * config/mips/linux.mh: Ditto.
1191 * config/powerpc/linux.mh: Ditto.
1192 * config/sparc/linux.mh: Ditto.
1194 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
1196 * win32-nat.c: Add i386-tdep.h dependency.
1198 2002-01-07 Michael Snyder <msnyder@redhat.com>
1200 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
1201 instead of bfd_get_arch_size. Don't bail out just because
1202 there's no exec_bfd.
1204 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
1205 * p-valprint.c (pascal_object_print_value): Ditto.
1206 * somread.c (som_symtab_read): Ditto.
1207 * symfile.c (simple_free_overlay_region_table): Ditto.
1208 * valops.c (value_assign): Ditto.
1210 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
1211 use tilde_expand and strerror for opening save-tracepoints file.
1213 * thread-db.c (thread_db_new_objfile): Indendation fix.
1215 * infptrace.c (GDB_MAX_ALLOCA): New define.
1216 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
1217 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
1218 can be overridden with whatever value is appropriate to the host).
1219 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
1220 alloca to allocate potentially large buffer.
1221 * rs6000-nat.c (child_xfer_memory): Ditto.
1222 * symm-nat.c (child_xfer_memory): Ditto.
1223 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
1225 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
1227 From Nick Clifton <nickc@redhat.com>
1228 * d10v-tdep.c: Set STACK_START to 0x200bffe.
1230 2002-01-07 Michael Snyder <msnyder@redhat.com>
1232 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1233 Don't use exec_bfd if it's NULL.
1235 2002-01-06 Mark Kettenis <kettenis@gnu.org>
1237 * valops.c (value_arg_coerce): Fix formatting.
1239 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1241 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
1244 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1246 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
1247 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
1248 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
1249 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
1250 z8k-coff have not been multi-arched. Update z8k-coff build
1253 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1255 * MAINTAINERS: Mark a29k target as obsolete.
1256 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
1257 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
1259 * NEWS: Note that a29k targets are obsolete.
1260 * a29k-tdep.c: Mark as obsolete.
1261 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
1262 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
1263 a29k-*-vxworks* targets as obsolete.
1264 * remote-adapt.c: Obsolete.
1265 * remote-eb.c: Obsolete.
1266 * remote-mm.c: Obsolete.
1267 * remote-udi.c: Obsolete.
1268 * config/a29k/a29k-udi.mt: Obsolete.
1269 * config/a29k/a29k.mt: Obsolete.
1270 * config/a29k/tm-a29k.h: Obsolete.
1271 * config/a29k/tm-vx29k.h: Obsolete.
1272 * config/a29k/vx29k.mt: Obsolete.
1274 2002-01-05 Andrew Cagney <ac131313@redhat.com>
1276 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
1277 with BFD_ENDIAN_BIG.
1279 2002-01-05 Andrew Cagney <ac131313@redhat.com>
1281 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
1282 * configure, config.in: Re-generate.
1283 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
1284 * defs.h: Do not include <endian.h>.
1286 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
1288 * acconfig.h (HAVE_PT_GETXMMREGS): New.
1289 * config.in: Regenerate.
1290 * configure.in: Update copyright years.
1291 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
1292 * configure: Regenerate.
1293 * i386bsd-nat.c: Update copyright years.
1294 (fill_gregset): Use regcache_collect.
1295 (fetch_inferior_registers): Only fetch integer registers
1296 if requested to do so. Add support for XMM registers
1297 using PT_GETXMMREGS.
1298 (store_inferior_registers): Only store integer registers
1299 if requested to do so. Add support for XMM registers
1300 using PT_SETXMMREGS.
1301 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
1302 (store_inferior_registers): Remove.
1303 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
1304 (fetch_elfcore_registers): New function.
1305 (i386nbsd_elfcore_fns): New.
1306 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
1307 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
1309 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1310 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
1311 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1312 * config/i386/tm-nbsd.h: Update copyright years.
1313 (HAVE_SSE_REGS): Define.
1314 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
1315 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
1316 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
1317 (SIGCONTEXT_PC_OFFSET): Remove.
1318 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
1320 2002-01-05 Andrew Cagney <ac131313@redhat.com>
1322 * configure.tgt: Remove powerpc-*-macos* target.
1323 * config/m68k/xm-mpw.h: Delete file.
1324 * config/xm-mpw.h: Delete file.
1325 * ser-mac.c: Delete file.
1326 * mpw-make.sed: Delete file.
1327 * mpw-config.in: Delete file.
1328 * mac-xdep.c: Delete file.
1329 * mac-gdb.r: Delete file.
1330 * mac-defs.h: Delete file.
1331 * mac-nat.c: Delete file.
1332 * config/powerpc/macos.mh: Delete file.
1333 * config/powerpc/macos.mt: Delete file.
1334 * config/powerpc/nm-macos.h: Delete file.
1335 * config/powerpc/tm-macos.h: Delete file.
1336 * source.c (openp, open_source_file): Remove obsolete code.
1337 * top.c (gdb_readline): Ditto.
1338 * utils.c (query): Ditto.
1339 * event-top.c (display_gdb_prompt): Ditto.
1340 * Makefile.in (ser-mac.o): Delete obsolete target.
1343 2002-01-04 Andrew Cagney <ac131313@redhat.com>
1345 * defs.h (BIG_ENDIAN): Delete macro definition.
1346 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
1347 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
1348 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
1349 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
1350 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
1351 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
1352 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
1353 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
1354 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
1355 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
1356 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
1357 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
1358 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
1359 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
1360 * gdbarch.c: Re-generate.
1362 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1364 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
1367 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1369 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
1371 2002-01-04 Andrew Cagney <ac131313@redhat.com>
1373 * value.h (value_ptr): Delete typedef.
1375 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1377 * i386nbsd-nat.c: Update copyright years.
1378 Include i386-tdep.h.
1380 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
1382 * stabsread.c: Update copyright years.
1384 From Debashis Mahata <debashis.mahata@wipro.com>:
1385 (read_struct_fields): Deal with Sun C compiler erroneous stab
1386 output for structs and unions.
1389 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1391 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
1394 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1396 * cp-abi.c: Fix whitespace.
1397 (baseclass_offset): New wrapper function.
1398 * cp-abi.h (baseclass_offset): Add prototype.
1399 (struct cp_abi_ops): Add baseclass_offset pointer.
1401 * valops.c (vb_match): Move to...
1402 * gnu-v2-abi.c (vb_match): here.
1403 * valops.c (baseclass_offset): Move to...
1404 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
1406 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
1408 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
1409 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
1410 * hpacc-abi.c (init_hpacc_ops): Likewise.
1412 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1414 * valops.c (find_overload_match): Accept obj as a
1415 reference parameter. Update it before returning.
1416 * value.h (find_overload_match): Update prototype.
1417 * eval.c (evaluate_subexp_standard): Pass object to
1418 find_overload_match by reference.
1420 2002-01-03 Andrew Cagney <ac131313@redhat.com>
1422 * valarith.c: Replace value_ptr with struct value pointer. Remove
1423 register attribute from value declarations.
1426 * scm-lang.c (scm_lookup_name): Ditto.
1428 2002-01-03 Michael Snyder <msnyder@redhat.com>
1430 Abstract the functionality of iterating over mapped memory
1431 regions into a general purpose iterator function.
1432 * procfs.c (iterate_over_mappings): New function, general purpose
1433 iterator for memory sections.
1434 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
1435 (solib_mappings_callback): New function, callback for above.
1436 (info_proc_mappings): Reimpliment using iterate_over_mappings.
1437 (info_mappings_callback): New function, callback for above.
1439 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
1441 2002-01-01 Mark Kettenis <kettenis@gnu.org>
1443 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
1444 * i386-tdep.c: Include "elf-bfd.h".
1445 (process_note_abi_tag_sections): New function.
1446 (i386_gdbarch_init): Add code to recognize various OS/ABI
1449 * maint.c (_initialize_maint_cmds): Add missing \ in
1452 For older changes see ChangeLog-2001
1458 version-control: never