1 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4 member function fields. Add accessor macro
5 TYPE_FN_FIELD_ARTIFICIAL.
6 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7 * c-typeprint.c (c_type_print_base): Skip artificial member
10 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12 * f-typeprint.c: Delete unused function f_type_print_args.
13 * p-typeprint.c: Delete unused function pascal_type_print_args.
15 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
17 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
18 comment. Add ``artificial'' to ``union field_location''.
20 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
22 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
23 * mdebugread.c (parse_symbol): Likewise.
24 * stabsread.c (define_symbol): Likewise.
25 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
26 initializing TYPE_FIELD_BITPOS to n (obsolete).
27 (hpread_doc_function_type): Likewise.
28 * hpread.c (hpread_function_type): Likewise.
30 2002-01-20 Andrew Cagney <ac131313@redhat.com>
32 * configure.in (host_makefile_frag): Only require a host makefile
33 fragment when a native build.
34 * configure: Re-generate.
36 2002-01-20 Andrew Cagney <ac131313@redhat.com>
38 * doublest.h (floatformat_from_type): Declare.
39 * doublest.c (floatformat_from_type): New function.
40 (convert_typed_floating): Use.
42 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
43 call to function floatformat_from_type.
45 * gdbarch.sh (IEEE_FLOAT): Delete.
46 * gdbarch.h, gdbarch.c: Re-generate.
47 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
48 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
49 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
50 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
51 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
52 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
53 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
54 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
55 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
56 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
57 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
58 * config/arc/tm-arc.h (IEEE_FLOAT): Ditto.
59 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
61 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
62 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
63 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
64 * sh-tdep.c (sh_gdbarch_init): Ditto.
65 * mips-tdep.c (mips_gdbarch_init): Ditto.
66 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
67 * cris-tdep.c (cris_gdbarch_init): Ditto.
69 2002-01-20 Jiri Smid <smid@suse.cz>
71 * configure.host, configure.tgt: Support x86-64.
72 * NEWS: Note new target x86-64.
74 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
75 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
76 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
77 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
78 x86-64-linux-nat.o): Fix dependencies.
80 2002-01-19 Andrew Cagney <ac131313@redhat.com>
82 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
83 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
84 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
85 * config/sparc/xm-sun4os4.h: Delete file.
86 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
88 2002-01-19 Andrew Cagney <ac131313@redhat.com>
90 * config/sparc/sparclynx.mh (XM_FILE): Delete.
91 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
92 * config/m68k/m68klynx.mh (XM_FILE): Delete.
93 * config/i386/i386lynx.mh (XM_FILE): Delete.
94 * config/rs6000/xm-rs6000ly.h: Delete file.
95 * config/sparc/xm-sparclynx.h: Delete file.
96 * config/m68k/xm-m68klynx.h: Delete file.
97 * config/i386/xm-i386lynx.h: Delete file.
98 * config/xm-lynx.h: Delete file.
99 * config/djgpp/fnchange.lst: Update.
101 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
103 * alpha-tdep.c (alpha_register_byte): New function.
104 (alpha_register_raw_size): Ditto.
105 (alpha_register_virtual_size): Ditto.
106 (alpha_skip_prologue_internal): Renamed from
108 (alpha_skip_prologue): New version that calls
109 alpha_skip_prologue_internal.
110 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
111 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
112 second argument from alpha_skip_prologue.
113 (REGISTER_BYTE): Use alpha_register_byte.
114 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
115 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
116 (FRAMELESS_FUNCTION_INVOCATION): Use
117 generic_frameless_function_invocation_not.
118 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
119 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
121 2002-01-19 Andrew Cagney <ac131313@redhat.com>
123 * config/mips/xm-news-mips.h: Delete file.
124 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
126 * config/m88k/xm-m88k.h: Delete file.
127 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
128 * config/m88k/xm-delta88v4.h: Ditto.
129 * config/m88k/xm-delta88.h: Ditto.
131 * config/alpha/xm-fbsd.h: Delete file.
132 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
134 * config/sparc/xm-sparc.h: Delete file.
135 * Makefile.in (xm-sun4os4.h): Delete dependency.
136 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
137 * config/sparc/xm-sun4os4.h: Ditto.
138 * config/sparc/xm-linux.h: Ditto.
140 * config/i386/xm-windows.h: Delete file.
142 2002-01-19 Andrew Cagney <ac131313@redhat.com>
144 * utils.c: Include <sys/param.h> for MAXPATHLEN.
145 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
147 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
149 * alpha-tdep.c (alpha_call_dummy_words): New.
150 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
151 (CALL_DUMMY_P): Define.
152 (CALL_DUMMY_WORDS): Define.
153 (SIZEOF_CALL_DUMMY_WORDS): Define.
155 2002-01-19 Per Bothner <per@bothner.com>
157 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
158 isn't NULL, which can happen with some gcj-3.x-produced code.
160 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
162 * alpha-tdep.c (alpha_register_virtual_type): New function.
163 (alpha_init_frame_pc_first): Ditto.
164 (alpha_fix_call_dummy): Ditto.
165 (alpha_store_struct_return): Ditto.
166 (alpha_extract_struct_value_address): Ditto.
167 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
168 alpha_register_virtual_type.
169 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
170 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
171 alpha_extract_struct_value_address.
172 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
173 (INIT_FRAME_PC): Use init_frame_pc_noop.
174 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
176 2002-01-19 Mark Kettenis <kettenis@gnu.org>
178 * i386gnu-nat.c: Include "i386-tdep.h".
179 (fetch_fpregs): Simplify code dealing with uninitialized floating
180 point states such that it doesn't require FP7_REGNUM.
182 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
184 * alpha-tdep.c (frame_extra_info): New.
185 (alpha_find_saved_regs): Make static. Use
187 (alpha_frame_init_saved_regs): New function.
188 (alpha_frame_saved_pc): Use frame->extra_info.
189 (temp_saved_regs): Don't declare as struct frame_saved_regs.
190 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
191 (init_extra_frame_info): Rename to...
192 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
193 (alpha_print_extra_frame_info): New function.
194 (alpha_frame_locals_address): Ditto.
195 (alpha_frame_args_address): Ditto.
196 (alpha_pop_frame): Use frame->extra_info.
197 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
198 alpha_frame_args_address.
199 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
200 (alpha_find_saved_regs): Remove prototype.
201 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
202 (EXTRA_FRAME_INFO): Remove.
203 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
204 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
206 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
208 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
209 (alpha_cannot_fetch_register): Ditto.
210 (alpha_cannot_store_register): Ditto.
211 (alpha_register_convertible): Ditto.
212 (alpha_use_struct_convention): Ditto.
213 * config/alpha/tm-alpha.h: Update copyright years.
214 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
215 (INNER_THAN): Use core_addr_lessthan.
216 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
217 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
218 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
219 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
220 (FRAME_CHAIN): Remove unnecessary cast.
222 2002-01-18 Andrew Cagney <ac131313@redhat.com>
224 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
227 2002-01-18 Andrew Cagney <ac131313@redhat.com>
229 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
230 * monitor.c, remote-array.c, remote-bug.c: Ditto.
231 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
232 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
233 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
234 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
235 * x86-64-linux-nat.c: Ditto.
237 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
239 * alpha-tdep.c (alpha_register_name): New function.
240 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
241 (REGISTER_NAME): Define.
243 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
245 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
247 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
249 * alpha-tdep.c: Update copyright years.
250 (alpha_next_pc): New function.
251 (alpha_software_single_step): Ditto.
252 * config/alpha/tm-alpha.h: Add prototype for
253 alpha_software_single_step.
255 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
257 * alphabsd-nat.c: Update copyright years.
258 (fill_gregset): Use regcache_collect.
259 (fill_fpregset): Likewise.
260 (fetch_inferior_registers): Only fetch integer registers
261 if requested to do so.
262 (store_inferior_registers): Only store integer registers
263 if requested to do so.
265 2002-01-17 Andrew Cagney <ac131313@redhat.com>
267 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
268 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
269 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
270 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
271 * config/alpha/fbsd.mh (XDEPFILES): Delete.
272 * config/arm/linux.mh (XDEPFILES): Delete.
273 * config/arm/nbsd.mh (XDEPFILES): Delete.
274 * config/i386/i386dgux.mh (XDEPFILES): Delete.
275 * config/i386/i386sol2.mh (XDEPFILES): Delete.
276 * config/i386/i386m3.mh (XDEPFILES): Delete.
277 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
278 * config/i386/i386gnu.mh (XDEPFILES): Delete.
279 * config/i386/fbsd.mh (XDEPFILES): Delete.
280 * config/i386/i386bsd.mh (XDEPFILES): Delete.
281 * config/i386/i386sco5.mh (XDEPFILES): Delete.
282 * config/i386/i386v4.mh (XDEPFILES): Delete.
283 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
284 * config/i386/i386sco4.mh (XDEPFILES): Delete.
285 * config/i386/i386aix.mh (XDEPFILES): Delete.
286 * config/i386/go32.mh (XDEPFILES): Delete.
287 * config/i386/cygwin.mh (XDEPFILES): Delete.
288 * config/i386/i386lynx.mh (XDEPFILES): Delete.
289 * config/i386/i386mach.mh (XDEPFILES): Delete.
290 * config/i386/i386v32.mh (XDEPFILES): Delete.
291 * config/i386/linux.mh (XDEPFILES): Delete.
292 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
293 * config/i386/ncr3000.mh (XDEPFILES): Delete.
294 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
295 * config/i386/i386sco.mh (XDEPFILES): Delete.
296 * config/i386/i386v.mh (XDEPFILES): Delete.
297 * config/i386/nbsd.mh (XDEPFILES): Delete.
298 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
299 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
300 * config/i386/symmetry.mh (XDEPFILES): Delete.
301 * config/i386/obsd.mh (XDEPFILES): Delete.
302 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
303 * config/ia64/linux.mh (XDEPFILES): Delete.
304 * config/ia64/aix.mh (XDEPFILES): Delete.
305 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
306 * config/m68k/dpx2.mh (XDEPFILES): Delete.
307 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
308 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
309 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
310 * config/m68k/linux.mh (XDEPFILES): Delete.
311 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
312 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
313 * config/m68k/nbsd.mh (XDEPFILES): Delete.
314 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
315 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
316 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
317 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
318 * config/m88k/delta88.mh (XDEPFILES): Delete.
319 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
320 * config/m88k/m88k.mh (XDEPFILES): Delete.
321 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
322 * config/mips/linux.mh (XDEPFILES): Delete.
323 * config/mips/irix6.mh (XDEPFILES): Delete.
324 * config/mips/irix5.mh (XDEPFILES): Delete.
325 * config/mips/irix4.mh (XDEPFILES): Delete.
326 * config/mips/irix3.mh (XDEPFILES): Delete.
327 * config/mips/decstation.mh (XDEPFILES): Delete.
328 * config/mips/mipsm3.mh (XDEPFILES): Delete.
329 (NATDEPFILES): Move core-aout.o to here.
330 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
331 * config/pa/hpux1020.mh (XDEPFILES): Delete.
332 * config/pa/hppabsd.mh (XDEPFILES): Delete.
333 * config/pa/hppahpux.mh (XDEPFILES): Delete.
334 * config/pa/hpux11w.mh (XDEPFILES): Delete.
335 * config/pa/hppaosf.mh (XDEPFILES): Delete.
336 * config/pa/hpux11.mh (XDEPFILES): Delete.
337 * config/powerpc/aix.mh (XDEPFILES): Delete.
338 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
339 * config/powerpc/linux.mh (XDEPFILES): Delete.
340 * config/romp/rtbsd.mh: Rename XDEPFILES.
341 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
342 * config/rs6000/aix4.mh (XDEPFILES): Delete.
343 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
344 * config/s390/s390.mh (XDEPFILES): Delete.
345 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
346 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
347 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
348 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
349 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
350 * config/sparc/nbsd.mh (XDEPFILES): Delete.
351 * config/sparc/linux.mh (XDEPFILES): Delete.
352 * config/vax/vaxult.mh (XDEPFILES): Delete.
353 * config/vax/vaxult2.mh (XDEPFILES): Delete.
354 * Makefile.in (DEPFILES): Remove XDEPFILES.
356 2002-01-17 Andrew Cagney <ac131313@redhat.com>
358 * utils.c (internal_verror): Fix comments, default is yes not no.
359 Update queries to match. Default to quit and dump core.
361 2002-01-17 Andrew Cagney <ac131313@redhat.com>
363 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
365 * defs.h, event-top.c, gdbcmd.h: Ditto.
366 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
367 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
368 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
369 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
370 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
371 * mi/mi-main.c:Ditto.
373 * stack.c, symfile.c: Update copyright.
375 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
377 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
378 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
379 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
380 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
382 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
384 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
385 * gdbserver/low-lynx.c (myattach): Likewise.
386 * gdbserver/low-nbsd.c (myattach): Likewise.
387 * gdbserver/low-sim.c (myattach): Likewise.
388 * gdbserver/low-sparc.c (myattach): Likewise.
389 * gdbserver/low-sun3.c (myattach): Likewise.
391 * gdbserver/low-linux.c (myattach): New function.
393 * gdbserver/server.c (attach_inferior): New function.
394 (main): Handle "--attach".
396 2002-01-16 Andrew Cagney <ac131313@redhat.com>
398 * MAINTAINERS (language support): Daniel Jacobwitz is C++
401 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
403 * c-typeprint.c (is_type_conversion_operator): Add additional
404 check for non-conversion operators.
406 2002-01-15 Michael Snyder <msnyder@redhat.com>
408 * linux-proc.c: Add "info proc" command, a la procfs.c.
409 (read_mapping): New function, abstract and re-use code.
410 (linux_find_memory_regions): Use new func read_mapping.
411 (linux_info_proc_cmd): New function, implement "info proc".
412 (_initialize_linux_proc): Add new command "info proc".
414 2002-01-15 Michael Snyder <msnyder@redhat.com>
416 * symfile.c (generic_load): Use bfd_map_over_sections method
417 instead of manipulating bfd structure members directly.
418 (add_section_size_callback): New function, bfd sections callback
419 used by generic_load.
420 (load_sections_callback): New function, bfd sections callback
421 used by generic_load.
423 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
425 [Based on work by Jim Blandy]
426 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
427 (builtin_type_vec128): Export.
428 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
430 (builtin_type_vec128): New builtin type for 128 bit vector
432 (build_gdbtypes): Initialize builtin_type_v16qi and
433 builtin_type_v8hi. Create the vec128 register builtin type
435 (build_builtin_type_vec128): New function.
436 (_initialize_gdbtypes): Register builtin_type_v16qi and
437 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
438 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
439 AltiVec register to new builtin type.
441 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
443 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
446 2002-01-14 Andrew Cagney <ac131313@redhat.com>
448 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
449 CLEAN_UP_REGISTER_VALUE.
450 * regcache.c (supply_register): Update only call.
452 2002-01-14 Andrew Cagney <ac131313@redhat.com>
454 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
455 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
456 a29k-*-vxworks* targets as obsolete.
458 2002-01-14 Michael Snyder <msnyder@redhat.com>
460 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
461 until we can resolve portability issues.
462 * gregset.h: Remove references to fpxregs.
463 * gcore.c (gcore_command): Initialize note_sec to NULL.
465 2002-01-13 Andrew Cagney <ac131313@redhat.com>
467 * signals.c (target_signal_to_name): Rewrite. Only use
468 signals[].name when in bounds and non-NULL.
470 2002-01-13 Andrew Cagney <ac131313@redhat.com>
472 From Petr Ledvina <ledvinap@kae.zcu.cz>:
473 * signals.c (target_signal_to_name): Verify that SIG is within the
474 bounds of the signals array.
476 2002-01-13 Andrew Cagney <ac131313@redhat.com>
478 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
480 2002-01-13 Keith Seitz <keiths@redhat.com>
482 * stack.c (print_frame_info_base): Print the frame's pc
483 only if when print_frame_info_listing_hook is not defined.
485 2002-01-13 Keith Seitz <keiths@redhat.com>
487 * varobj.c (varobj_set_value): Make sure that there were no
488 errors evaluating the object before attempting to set its
490 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
491 so this offset adjustment is no longer necessary.
492 (create_child): Don't set the error flag if the child is
494 (value_of_child): If value_fetch_lazy fails, return NULL
495 so that callers will be notified that an error occurred.
496 (c_value_of_variable): Delay check of variable's validity
497 until later. We actually want all structs and unions to have
499 Do not return "???" for variables which could not be evaluated.
500 This error condition must be returned to the caller so that it
501 can get the error condition from gdb.
502 (cplus_name_of_child): Adjust index for vptr before figuring
503 out the name of the child.
504 (cplus_value_of_child): If a child's (real) parent is not valid,
505 don't even bother trying to give a value for it. Just return
506 an error. Change all instances in this function.
507 (cplus_type_of_child): If our parent is one of the "fake"
508 parents, we need to get at the type of the real parent, and
509 derive the child's true type using this information.
511 2002-01-13 Andrew Cagney <ac131313@redhat.com>
513 From 2002-01-09 John Marshall <johnm@falch.net>:
514 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
515 sources.redhat.com, and tweak some related URLs which had
516 suffered from linkrot.
518 2002-01-13 Andrew Cagney <ac131313@redhat.com>
521 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
522 structures passed in registers.
524 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
526 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
527 white space which prevented compilation. Reported by DSK
528 <dsk@student.unsw.edu.au>.
530 2002-01-11 Michael Snyder <msnyder@redhat.com>
532 * symfile.c (build_section_addr_info_from_section_tab):
533 Use bfd access method instead of manipulating bfd directly.
534 (syms_from_objfile): Ditto.
535 (simple_overlay_update_1): Ditto.
536 (simple_overlay_update): Ditto.
537 (generic_load): Ditto.
538 (overlay_unmapped_address): FIXME comment, bfd access methods.
539 (sections_overlap): FIXME comment, bfd access methods.
540 (pc_in_mapped_range): FIXME comment, bfd access methods.
541 (pc_in_unmapped_range): FIXME comment, bfd access methods.
542 (section_is_mapped): FIXME comment, bfd access methods.
543 (section_is_overlay): FIXME comment, bfd access methods.
545 * symfile.c (generic_load): Whitespace and long line cleanups.
546 Remove duplicate variable, change several local variables to
547 more appropriate data types.
548 (print_transfer_performance): Use %lu instead of %ld for ulongs.
550 2002-01-12 Andrew Cagney <ac131313@redhat.com>
553 * language.c (longest_local_hex_string_custom): Use phex_nz to
554 convert NUM to a hex string.
556 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
558 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
560 Update Copyright year.
562 2002-01-12 Andrew Cagney <ac131313@redhat.com>
564 * language.c (longest_raw_hex_string): Delete unused function.
566 2002-01-11 Petr Sorfa <petrs@caldera.com>
568 * MAINTAINERS (write-after-approval): Add myself.
569 * dwarf2read.c (read_tag_string_type): Handling of
571 (read_tag_string_type): FORTRAN fix to prevent propagation of
573 (set_cu_language): Handling of DW_LANG_Fortran95
575 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
577 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
578 GETPID(inferior_ptid).
579 (store_inferior_registers): Likewise.
581 2002-01-10 Jason Merrill <jason@redhat.com>
583 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
586 2002-01-10 Andrew Cagney <ac131313@redhat.com>
588 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
589 and bfd/elf32-sh-nbsd.c.
591 2002-01-10 Michael Snyder <msnyder@redhat.com>
593 * NEWS: Mention --pid and corefile/proc-id behavior change.
595 * Makefile.in: Add rules for gcore.o and linux-proc.o.
596 * gcore.c: Include cli/cli-decode.h instead of command.h.
598 * main.c (captured_main): Add new command line option "--pid".
599 If the second command line argument (following the symbol-file)
600 begins with a digit, try to attach to it before trying to open
602 (print_gdb_help): Document the "--pid" argument.
604 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
606 * completer.c (command_completer): New function.
608 * completer.h <command_completer>: Add prototype.
610 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
611 completer for the "help" command.
613 2002-01-09 Jason Merrill <jason@redhat.com>
615 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
617 2002-01-09 Michael Snyder <msnyder@redhat.com>
619 * i386-linux-nat.c (fill_fpxregset): Make global.
620 (store_fpxregset): Ditto.
622 * gregset.h (gdb_fpxregset_t): Define.
623 (supply_fpxregset): Prototype.
624 (fill_fpxregset): Prototype.
626 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
628 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
630 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
631 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
632 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
634 2002-01-09 Andrew Cagney <ac131313@redhat.com>
636 * MAINTAINERS: Update target maintainer rules so that any
637 Maintainer can approve a tested patch for a maintenance-only
640 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
642 * MAINTAINERS (write-after-approval): Add myself.
644 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
647 2002-01-08 Michael Snyder <msnyder@redhat.com>
649 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
650 real name of the executable, rather than the /proc name.
652 2002-01-03 Michael Snyder <msnyder@redhat.com>
654 Implement a "generate-core-file" command in gdb, save target state.
655 * gcore.c: New file. Implement new command 'generate-core-file'.
656 Save a corefile image of the current state of the inferior.
657 * linux-proc.c: Add linux-specific code for saving corefiles.
658 * target.h (struct target_ops): Add new target vectors for saving
659 corefiles; to_find_memory_regions and to_make_corefile_notes.
660 (target_find_memory_regions): New macro.
661 (target_make_corefile_notes): New macro.
662 * target.c (update_current_target): Inherit new target methods.
663 (dummy_find_memory_regions): New place-holder method.
664 (dummy_make_corefile_notes): New place-holder method.
665 (init_dummy_target): Initialize new dummy target vectors.
666 * exec.c (exec_set_find_memory_regions): New function.
667 Allow the exec_ops vector for memory regions to be taken over.
668 (exec_make_note_section): New function, target vector method.
669 * defs.h (exec_set_find_memory_regions): Export prototype.
670 * procfs.c (proc_find_memory_regions): New function, corefile method.
671 (procfs_make_note_section): New function, corefile method.
672 (init_procfs_ops): Set new target vector pointers.
673 (find_memory_regions_callback): New function.
674 (procfs_do_thread_registers): New function.
675 (procfs_corefile_thread_callback): New function.
676 * sol-thread.c (sol_find_memory_regions): New function.
677 (sol_make_note_section): New function.
678 (init_sol_thread_ops): Initialize new target vectors.
679 * inftarg.c (inftarg_set_find_memory_regions): New function.
680 Allow to_find_memory_regions vector to be taken over.
681 (inftarg_set_make_corefile_notes): New function.
682 Allow to_make_corefile_notes vector to be taken over.
683 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
684 interface layer if not target_has_execution (may be a corefile).
685 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
686 * config/sparc/sun4sol2.mh: Ditto.
687 * config/alpha/alpha-linux.mh: Ditto.
688 * config/arm/linux.mh: Ditto.
689 * config/i386/x86-64linux.mh: Ditto.
690 * config/ia64/linux.mh: Ditto.
691 * config/m68k/linux.mh: Ditto.
692 * config/mips/linux.mh: Ditto.
693 * config/powerpc/linux.mh: Ditto.
694 * config/sparc/linux.mh: Ditto.
696 2002-01-07 Michael Snyder <msnyder@redhat.com>
698 * arm-linux-nat.c: Remove references to regcache.c internal data
699 (registers[] and register_valid[]).
701 2002-01-07 Michael Snyder <msnyder@redhat.com>
703 * linux-proc.c: New file. Implement child_pid_to_exec_file,
704 so that attaching to a pid will automatically read the process's
705 symbol file and shlibs.
706 * Makefile.in: Add rule for linux-proc.o.
707 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
708 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
709 * config/arm/linux.mh: Ditto.
710 * config/i386/linux.mh: Ditto.
711 * config/i386/x86-64linux.mh: Ditto.
712 * config/ia64/linux.mh: Ditto.
713 * config/m68k/linux.mh: Ditto.
714 * config/mips/linux.mh: Ditto.
715 * config/powerpc/linux.mh: Ditto.
716 * config/sparc/linux.mh: Ditto.
718 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
720 * win32-nat.c: Add i386-tdep.h dependency.
722 2002-01-07 Michael Snyder <msnyder@redhat.com>
724 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
725 instead of bfd_get_arch_size. Don't bail out just because
728 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
729 * p-valprint.c (pascal_object_print_value): Ditto.
730 * somread.c (som_symtab_read): Ditto.
731 * symfile.c (simple_free_overlay_region_table): Ditto.
732 * valops.c (value_assign): Ditto.
734 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
735 use tilde_expand and strerror for opening save-tracepoints file.
737 * thread-db.c (thread_db_new_objfile): Indendation fix.
739 * infptrace.c (GDB_MAX_ALLOCA): New define.
740 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
741 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
742 can be overridden with whatever value is appropriate to the host).
743 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
744 alloca to allocate potentially large buffer.
745 * rs6000-nat.c (child_xfer_memory): Ditto.
746 * symm-nat.c (child_xfer_memory): Ditto.
747 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
749 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
751 From Nick Clifton <nickc@redhat.com>
752 * d10v-tdep.c: Set STACK_START to 0x200bffe.
754 2002-01-07 Michael Snyder <msnyder@redhat.com>
756 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
757 Don't use exec_bfd if it's NULL.
759 2002-01-06 Mark Kettenis <kettenis@gnu.org>
761 * valops.c (value_arg_coerce): Fix formatting.
763 2002-01-06 Andrew Cagney <ac131313@redhat.com>
765 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
768 2002-01-06 Andrew Cagney <ac131313@redhat.com>
770 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
771 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
772 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
773 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
774 z8k-coff have not been multi-arched. Update z8k-coff build
777 2002-01-06 Andrew Cagney <ac131313@redhat.com>
779 * MAINTAINERS: Mark a29k target as obsolete.
780 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
781 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
783 * NEWS: Note that a29k targets are obsolete.
784 * a29k-tdep.c: Mark as obsolete.
785 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
786 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
787 a29k-*-vxworks* targets as obsolete.
788 * remote-adapt.c: Obsolete.
789 * remote-eb.c: Obsolete.
790 * remote-mm.c: Obsolete.
791 * remote-udi.c: Obsolete.
792 * config/a29k/a29k-udi.mt: Obsolete.
793 * config/a29k/a29k.mt: Obsolete.
794 * config/a29k/tm-a29k.h: Obsolete.
795 * config/a29k/tm-vx29k.h: Obsolete.
796 * config/a29k/vx29k.mt: Obsolete.
798 2002-01-05 Andrew Cagney <ac131313@redhat.com>
800 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
803 2002-01-05 Andrew Cagney <ac131313@redhat.com>
805 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
806 * configure, config.in: Re-generate.
807 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
808 * defs.h: Do not include <endian.h>.
810 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
812 * acconfig.h (HAVE_PT_GETXMMREGS): New.
813 * config.in: Regenerate.
814 * configure.in: Update copyright years.
815 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
816 * configure: Regenerate.
817 * i386bsd-nat.c: Update copyright years.
818 (fill_gregset): Use regcache_collect.
819 (fetch_inferior_registers): Only fetch integer registers
820 if requested to do so. Add support for XMM registers
822 (store_inferior_registers): Only store integer registers
823 if requested to do so. Add support for XMM registers
825 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
826 (store_inferior_registers): Remove.
827 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
828 (fetch_elfcore_registers): New function.
829 (i386nbsd_elfcore_fns): New.
830 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
831 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
833 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
834 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
835 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
836 * config/i386/tm-nbsd.h: Update copyright years.
837 (HAVE_SSE_REGS): Define.
838 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
839 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
840 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
841 (SIGCONTEXT_PC_OFFSET): Remove.
842 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
844 2002-01-05 Andrew Cagney <ac131313@redhat.com>
846 * configure.tgt: Remove powerpc-*-macos* target.
847 * config/m68k/xm-mpw.h: Delete file.
848 * config/xm-mpw.h: Delete file.
849 * ser-mac.c: Delete file.
850 * mpw-make.sed: Delete file.
851 * mpw-config.in: Delete file.
852 * mac-xdep.c: Delete file.
853 * mac-gdb.r: Delete file.
854 * mac-defs.h: Delete file.
855 * mac-nat.c: Delete file.
856 * config/powerpc/macos.mh: Delete file.
857 * config/powerpc/macos.mt: Delete file.
858 * config/powerpc/nm-macos.h: Delete file.
859 * config/powerpc/tm-macos.h: Delete file.
860 * source.c (openp, open_source_file): Remove obsolete code.
861 * top.c (gdb_readline): Ditto.
862 * utils.c (query): Ditto.
863 * event-top.c (display_gdb_prompt): Ditto.
864 * Makefile.in (ser-mac.o): Delete obsolete target.
867 2002-01-04 Andrew Cagney <ac131313@redhat.com>
869 * defs.h (BIG_ENDIAN): Delete macro definition.
870 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
871 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
872 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
873 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
874 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
875 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
876 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
877 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
878 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
879 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
880 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
881 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
882 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
883 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
884 * gdbarch.c: Re-generate.
886 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
888 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
891 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
893 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
895 2002-01-04 Andrew Cagney <ac131313@redhat.com>
897 * value.h (value_ptr): Delete typedef.
899 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
901 * i386nbsd-nat.c: Update copyright years.
904 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
906 * stabsread.c: Update copyright years.
908 From Debashis Mahata <debashis.mahata@wipro.com>:
909 (read_struct_fields): Deal with Sun C compiler erroneous stab
910 output for structs and unions.
913 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
915 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
918 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
920 * cp-abi.c: Fix whitespace.
921 (baseclass_offset): New wrapper function.
922 * cp-abi.h (baseclass_offset): Add prototype.
923 (struct cp_abi_ops): Add baseclass_offset pointer.
925 * valops.c (vb_match): Move to...
926 * gnu-v2-abi.c (vb_match): here.
927 * valops.c (baseclass_offset): Move to...
928 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
930 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
932 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
933 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
934 * hpacc-abi.c (init_hpacc_ops): Likewise.
936 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
938 * valops.c (find_overload_match): Accept obj as a
939 reference parameter. Update it before returning.
940 * value.h (find_overload_match): Update prototype.
941 * eval.c (evaluate_subexp_standard): Pass object to
942 find_overload_match by reference.
944 2002-01-03 Andrew Cagney <ac131313@redhat.com>
946 * valarith.c: Replace value_ptr with struct value pointer. Remove
947 register attribute from value declarations.
950 * scm-lang.c (scm_lookup_name): Ditto.
952 2002-01-03 Michael Snyder <msnyder@redhat.com>
954 Abstract the functionality of iterating over mapped memory
955 regions into a general purpose iterator function.
956 * procfs.c (iterate_over_mappings): New function, general purpose
957 iterator for memory sections.
958 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
959 (solib_mappings_callback): New function, callback for above.
960 (info_proc_mappings): Reimpliment using iterate_over_mappings.
961 (info_mappings_callback): New function, callback for above.
963 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
965 2002-01-01 Mark Kettenis <kettenis@gnu.org>
967 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
968 * i386-tdep.c: Include "elf-bfd.h".
969 (process_note_abi_tag_sections): New function.
970 (i386_gdbarch_init): Add code to recognize various OS/ABI
973 * maint.c (_initialize_maint_cmds): Add missing \ in
976 For older changes see ChangeLog-2001
982 version-control: never