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