OSDN Git Service

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