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