1 2002-01-20 Jiri Smid <smid@suse.cz>
3 * configure.host, configure.tgt: Support x86-64.
4 * NEWS: Note new target x86-64.
6 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
8 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10 x86-64-linux-nat.o): Fix dependencies.
12 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
15 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
16 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
17 * config/sparc/xm-sun4os4.h: Delete file.
18 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
20 2002-01-19 Andrew Cagney <ac131313@redhat.com>
22 * config/sparc/sparclynx.mh (XM_FILE): Delete.
23 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
24 * config/m68k/m68klynx.mh (XM_FILE): Delete.
25 * config/i386/i386lynx.mh (XM_FILE): Delete.
26 * config/rs6000/xm-rs6000ly.h: Delete file.
27 * config/sparc/xm-sparclynx.h: Delete file.
28 * config/m68k/xm-m68klynx.h: Delete file.
29 * config/i386/xm-i386lynx.h: Delete file.
30 * config/xm-lynx.h: Delete file.
31 * config/djgpp/fnchange.lst: Update.
33 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
35 * alpha-tdep.c (alpha_register_byte): New function.
36 (alpha_register_raw_size): Ditto.
37 (alpha_register_virtual_size): Ditto.
38 (alpha_skip_prologue_internal): Renamed from
40 (alpha_skip_prologue): New version that calls
41 alpha_skip_prologue_internal.
42 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
43 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
44 second argument from alpha_skip_prologue.
45 (REGISTER_BYTE): Use alpha_register_byte.
46 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
47 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
48 (FRAMELESS_FUNCTION_INVOCATION): Use
49 generic_frameless_function_invocation_not.
50 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
51 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
53 2002-01-19 Andrew Cagney <ac131313@redhat.com>
55 * config/mips/xm-news-mips.h: Delete file.
56 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
58 * config/m88k/xm-m88k.h: Delete file.
59 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
60 * config/m88k/xm-delta88v4.h: Ditto.
61 * config/m88k/xm-delta88.h: Ditto.
63 * config/alpha/xm-fbsd.h: Delete file.
64 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
66 * config/sparc/xm-sparc.h: Delete file.
67 * Makefile.in (xm-sun4os4.h): Delete dependency.
68 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
69 * config/sparc/xm-sun4os4.h: Ditto.
70 * config/sparc/xm-linux.h: Ditto.
72 * config/i386/xm-windows.h: Delete file.
74 2002-01-19 Andrew Cagney <ac131313@redhat.com>
76 * utils.c: Include <sys/param.h> for MAXPATHLEN.
77 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
79 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
81 * alpha-tdep.c (alpha_call_dummy_words): New.
82 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
83 (CALL_DUMMY_P): Define.
84 (CALL_DUMMY_WORDS): Define.
85 (SIZEOF_CALL_DUMMY_WORDS): Define.
87 2002-01-19 Per Bothner <per@bothner.com>
89 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
90 isn't NULL, which can happen with some gcj-3.x-produced code.
92 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
94 * alpha-tdep.c (alpha_register_virtual_type): New function.
95 (alpha_init_frame_pc_first): Ditto.
96 (alpha_fix_call_dummy): Ditto.
97 (alpha_store_struct_return): Ditto.
98 (alpha_extract_struct_value_address): Ditto.
99 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
100 alpha_register_virtual_type.
101 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
102 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
103 alpha_extract_struct_value_address.
104 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
105 (INIT_FRAME_PC): Use init_frame_pc_noop.
106 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
108 2002-01-19 Mark Kettenis <kettenis@gnu.org>
110 * i386gnu-nat.c: Include "i386-tdep.h".
111 (fetch_fpregs): Simplify code dealing with uninitialized floating
112 point states such that it doesn't require FP7_REGNUM.
114 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
116 * alpha-tdep.c (frame_extra_info): New.
117 (alpha_find_saved_regs): Make static. Use
119 (alpha_frame_init_saved_regs): New function.
120 (alpha_frame_saved_pc): Use frame->extra_info.
121 (temp_saved_regs): Don't declare as struct frame_saved_regs.
122 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
123 (init_extra_frame_info): Rename to...
124 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
125 (alpha_print_extra_frame_info): New function.
126 (alpha_frame_locals_address): Ditto.
127 (alpha_frame_args_address): Ditto.
128 (alpha_pop_frame): Use frame->extra_info.
129 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
130 alpha_frame_args_address.
131 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
132 (alpha_find_saved_regs): Remove prototype.
133 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
134 (EXTRA_FRAME_INFO): Remove.
135 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
136 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
138 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
140 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
141 (alpha_cannot_fetch_register): Ditto.
142 (alpha_cannot_store_register): Ditto.
143 (alpha_register_convertible): Ditto.
144 (alpha_use_struct_convention): Ditto.
145 * config/alpha/tm-alpha.h: Update copyright years.
146 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
147 (INNER_THAN): Use core_addr_lessthan.
148 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
149 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
150 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
151 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
152 (FRAME_CHAIN): Remove unnecessary cast.
154 2002-01-18 Andrew Cagney <ac131313@redhat.com>
156 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
159 2002-01-18 Andrew Cagney <ac131313@redhat.com>
161 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
162 * monitor.c, remote-array.c, remote-bug.c: Ditto.
163 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
164 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
165 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
166 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
167 * x86-64-linux-nat.c: Ditto.
169 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
171 * alpha-tdep.c (alpha_register_name): New function.
172 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
173 (REGISTER_NAME): Define.
175 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
177 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
179 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
181 * alpha-tdep.c: Update copyright years.
182 (alpha_next_pc): New function.
183 (alpha_software_single_step): Ditto.
184 * config/alpha/tm-alpha.h: Add prototype for
185 alpha_software_single_step.
187 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
189 * alphabsd-nat.c: Update copyright years.
190 (fill_gregset): Use regcache_collect.
191 (fill_fpregset): Likewise.
192 (fetch_inferior_registers): Only fetch integer registers
193 if requested to do so.
194 (store_inferior_registers): Only store integer registers
195 if requested to do so.
197 2002-01-17 Andrew Cagney <ac131313@redhat.com>
199 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
200 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
201 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
202 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
203 * config/alpha/fbsd.mh (XDEPFILES): Delete.
204 * config/arm/linux.mh (XDEPFILES): Delete.
205 * config/arm/nbsd.mh (XDEPFILES): Delete.
206 * config/i386/i386dgux.mh (XDEPFILES): Delete.
207 * config/i386/i386sol2.mh (XDEPFILES): Delete.
208 * config/i386/i386m3.mh (XDEPFILES): Delete.
209 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
210 * config/i386/i386gnu.mh (XDEPFILES): Delete.
211 * config/i386/fbsd.mh (XDEPFILES): Delete.
212 * config/i386/i386bsd.mh (XDEPFILES): Delete.
213 * config/i386/i386sco5.mh (XDEPFILES): Delete.
214 * config/i386/i386v4.mh (XDEPFILES): Delete.
215 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
216 * config/i386/i386sco4.mh (XDEPFILES): Delete.
217 * config/i386/i386aix.mh (XDEPFILES): Delete.
218 * config/i386/go32.mh (XDEPFILES): Delete.
219 * config/i386/cygwin.mh (XDEPFILES): Delete.
220 * config/i386/i386lynx.mh (XDEPFILES): Delete.
221 * config/i386/i386mach.mh (XDEPFILES): Delete.
222 * config/i386/i386v32.mh (XDEPFILES): Delete.
223 * config/i386/linux.mh (XDEPFILES): Delete.
224 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
225 * config/i386/ncr3000.mh (XDEPFILES): Delete.
226 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
227 * config/i386/i386sco.mh (XDEPFILES): Delete.
228 * config/i386/i386v.mh (XDEPFILES): Delete.
229 * config/i386/nbsd.mh (XDEPFILES): Delete.
230 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
231 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
232 * config/i386/symmetry.mh (XDEPFILES): Delete.
233 * config/i386/obsd.mh (XDEPFILES): Delete.
234 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
235 * config/ia64/linux.mh (XDEPFILES): Delete.
236 * config/ia64/aix.mh (XDEPFILES): Delete.
237 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
238 * config/m68k/dpx2.mh (XDEPFILES): Delete.
239 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
240 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
241 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
242 * config/m68k/linux.mh (XDEPFILES): Delete.
243 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
244 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
245 * config/m68k/nbsd.mh (XDEPFILES): Delete.
246 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
247 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
248 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
249 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
250 * config/m88k/delta88.mh (XDEPFILES): Delete.
251 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
252 * config/m88k/m88k.mh (XDEPFILES): Delete.
253 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
254 * config/mips/linux.mh (XDEPFILES): Delete.
255 * config/mips/irix6.mh (XDEPFILES): Delete.
256 * config/mips/irix5.mh (XDEPFILES): Delete.
257 * config/mips/irix4.mh (XDEPFILES): Delete.
258 * config/mips/irix3.mh (XDEPFILES): Delete.
259 * config/mips/decstation.mh (XDEPFILES): Delete.
260 * config/mips/mipsm3.mh (XDEPFILES): Delete.
261 (NATDEPFILES): Move core-aout.o to here.
262 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
263 * config/pa/hpux1020.mh (XDEPFILES): Delete.
264 * config/pa/hppabsd.mh (XDEPFILES): Delete.
265 * config/pa/hppahpux.mh (XDEPFILES): Delete.
266 * config/pa/hpux11w.mh (XDEPFILES): Delete.
267 * config/pa/hppaosf.mh (XDEPFILES): Delete.
268 * config/pa/hpux11.mh (XDEPFILES): Delete.
269 * config/powerpc/aix.mh (XDEPFILES): Delete.
270 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
271 * config/powerpc/linux.mh (XDEPFILES): Delete.
272 * config/romp/rtbsd.mh: Rename XDEPFILES.
273 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
274 * config/rs6000/aix4.mh (XDEPFILES): Delete.
275 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
276 * config/s390/s390.mh (XDEPFILES): Delete.
277 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
278 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
279 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
280 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
281 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
282 * config/sparc/nbsd.mh (XDEPFILES): Delete.
283 * config/sparc/linux.mh (XDEPFILES): Delete.
284 * config/vax/vaxult.mh (XDEPFILES): Delete.
285 * config/vax/vaxult2.mh (XDEPFILES): Delete.
286 * Makefile.in (DEPFILES): Remove XDEPFILES.
288 2002-01-17 Andrew Cagney <ac131313@redhat.com>
290 * utils.c (internal_verror): Fix comments, default is yes not no.
291 Update queries to match. Default to quit and dump core.
293 2002-01-17 Andrew Cagney <ac131313@redhat.com>
295 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
297 * defs.h, event-top.c, gdbcmd.h: Ditto.
298 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
299 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
300 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
301 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
302 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
303 * mi/mi-main.c:Ditto.
305 * stack.c, symfile.c: Update copyright.
307 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
309 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
310 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
311 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
312 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
314 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
316 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
317 * gdbserver/low-lynx.c (myattach): Likewise.
318 * gdbserver/low-nbsd.c (myattach): Likewise.
319 * gdbserver/low-sim.c (myattach): Likewise.
320 * gdbserver/low-sparc.c (myattach): Likewise.
321 * gdbserver/low-sun3.c (myattach): Likewise.
323 * gdbserver/low-linux.c (myattach): New function.
325 * gdbserver/server.c (attach_inferior): New function.
326 (main): Handle "--attach".
328 2002-01-16 Andrew Cagney <ac131313@redhat.com>
330 * MAINTAINERS (language support): Daniel Jacobwitz is C++
333 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
335 * c-typeprint.c (is_type_conversion_operator): Add additional
336 check for non-conversion operators.
338 2002-01-15 Michael Snyder <msnyder@redhat.com>
340 * linux-proc.c: Add "info proc" command, a la procfs.c.
341 (read_mapping): New function, abstract and re-use code.
342 (linux_find_memory_regions): Use new func read_mapping.
343 (linux_info_proc_cmd): New function, implement "info proc".
344 (_initialize_linux_proc): Add new command "info proc".
346 2002-01-15 Michael Snyder <msnyder@redhat.com>
348 * symfile.c (generic_load): Use bfd_map_over_sections method
349 instead of manipulating bfd structure members directly.
350 (add_section_size_callback): New function, bfd sections callback
351 used by generic_load.
352 (load_sections_callback): New function, bfd sections callback
353 used by generic_load.
355 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
357 [Based on work by Jim Blandy]
358 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
359 (builtin_type_vec128): Export.
360 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
362 (builtin_type_vec128): New builtin type for 128 bit vector
364 (build_gdbtypes): Initialize builtin_type_v16qi and
365 builtin_type_v8hi. Create the vec128 register builtin type
367 (build_builtin_type_vec128): New function.
368 (_initialize_gdbtypes): Register builtin_type_v16qi and
369 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
370 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
371 AltiVec register to new builtin type.
373 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
375 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
378 2002-01-14 Andrew Cagney <ac131313@redhat.com>
380 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
381 CLEAN_UP_REGISTER_VALUE.
382 * regcache.c (supply_register): Update only call.
384 2002-01-14 Andrew Cagney <ac131313@redhat.com>
386 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
387 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
388 a29k-*-vxworks* targets as obsolete.
390 2002-01-14 Michael Snyder <msnyder@redhat.com>
392 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
393 until we can resolve portability issues.
394 * gregset.h: Remove references to fpxregs.
395 * gcore.c (gcore_command): Initialize note_sec to NULL.
397 2002-01-13 Andrew Cagney <ac131313@redhat.com>
399 * signals.c (target_signal_to_name): Rewrite. Only use
400 signals[].name when in bounds and non-NULL.
402 2002-01-13 Andrew Cagney <ac131313@redhat.com>
404 From Petr Ledvina <ledvinap@kae.zcu.cz>:
405 * signals.c (target_signal_to_name): Verify that SIG is within the
406 bounds of the signals array.
408 2002-01-13 Andrew Cagney <ac131313@redhat.com>
410 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
412 2002-01-13 Keith Seitz <keiths@redhat.com>
414 * stack.c (print_frame_info_base): Print the frame's pc
415 only if when print_frame_info_listing_hook is not defined.
417 2002-01-13 Keith Seitz <keiths@redhat.com>
419 * varobj.c (varobj_set_value): Make sure that there were no
420 errors evaluating the object before attempting to set its
422 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
423 so this offset adjustment is no longer necessary.
424 (create_child): Don't set the error flag if the child is
426 (value_of_child): If value_fetch_lazy fails, return NULL
427 so that callers will be notified that an error occurred.
428 (c_value_of_variable): Delay check of variable's validity
429 until later. We actually want all structs and unions to have
431 Do not return "???" for variables which could not be evaluated.
432 This error condition must be returned to the caller so that it
433 can get the error condition from gdb.
434 (cplus_name_of_child): Adjust index for vptr before figuring
435 out the name of the child.
436 (cplus_value_of_child): If a child's (real) parent is not valid,
437 don't even bother trying to give a value for it. Just return
438 an error. Change all instances in this function.
439 (cplus_type_of_child): If our parent is one of the "fake"
440 parents, we need to get at the type of the real parent, and
441 derive the child's true type using this information.
443 2002-01-13 Andrew Cagney <ac131313@redhat.com>
445 From 2002-01-09 John Marshall <johnm@falch.net>:
446 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
447 sources.redhat.com, and tweak some related URLs which had
448 suffered from linkrot.
450 2002-01-13 Andrew Cagney <ac131313@redhat.com>
453 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
454 structures passed in registers.
456 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
458 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
459 white space which prevented compilation. Reported by DSK
460 <dsk@student.unsw.edu.au>.
462 2002-01-11 Michael Snyder <msnyder@redhat.com>
464 * symfile.c (build_section_addr_info_from_section_tab):
465 Use bfd access method instead of manipulating bfd directly.
466 (syms_from_objfile): Ditto.
467 (simple_overlay_update_1): Ditto.
468 (simple_overlay_update): Ditto.
469 (generic_load): Ditto.
470 (overlay_unmapped_address): FIXME comment, bfd access methods.
471 (sections_overlap): FIXME comment, bfd access methods.
472 (pc_in_mapped_range): FIXME comment, bfd access methods.
473 (pc_in_unmapped_range): FIXME comment, bfd access methods.
474 (section_is_mapped): FIXME comment, bfd access methods.
475 (section_is_overlay): FIXME comment, bfd access methods.
477 * symfile.c (generic_load): Whitespace and long line cleanups.
478 Remove duplicate variable, change several local variables to
479 more appropriate data types.
480 (print_transfer_performance): Use %lu instead of %ld for ulongs.
482 2002-01-12 Andrew Cagney <ac131313@redhat.com>
485 * language.c (longest_local_hex_string_custom): Use phex_nz to
486 convert NUM to a hex string.
488 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
490 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
492 Update Copyright year.
494 2002-01-12 Andrew Cagney <ac131313@redhat.com>
496 * language.c (longest_raw_hex_string): Delete unused function.
498 2002-01-11 Petr Sorfa <petrs@caldera.com>
500 * MAINTAINERS (write-after-approval): Add myself.
501 * dwarf2read.c (read_tag_string_type): Handling of
503 (read_tag_string_type): FORTRAN fix to prevent propagation of
505 (set_cu_language): Handling of DW_LANG_Fortran95
507 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
509 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
510 GETPID(inferior_ptid).
511 (store_inferior_registers): Likewise.
513 2002-01-10 Jason Merrill <jason@redhat.com>
515 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
518 2002-01-10 Andrew Cagney <ac131313@redhat.com>
520 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
521 and bfd/elf32-sh-nbsd.c.
523 2002-01-10 Michael Snyder <msnyder@redhat.com>
525 * NEWS: Mention --pid and corefile/proc-id behavior change.
527 * Makefile.in: Add rules for gcore.o and linux-proc.o.
528 * gcore.c: Include cli/cli-decode.h instead of command.h.
530 * main.c (captured_main): Add new command line option "--pid".
531 If the second command line argument (following the symbol-file)
532 begins with a digit, try to attach to it before trying to open
534 (print_gdb_help): Document the "--pid" argument.
536 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
538 * completer.c (command_completer): New function.
540 * completer.h <command_completer>: Add prototype.
542 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
543 completer for the "help" command.
545 2002-01-09 Jason Merrill <jason@redhat.com>
547 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
549 2002-01-09 Michael Snyder <msnyder@redhat.com>
551 * i386-linux-nat.c (fill_fpxregset): Make global.
552 (store_fpxregset): Ditto.
554 * gregset.h (gdb_fpxregset_t): Define.
555 (supply_fpxregset): Prototype.
556 (fill_fpxregset): Prototype.
558 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
560 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
562 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
563 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
564 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
566 2002-01-09 Andrew Cagney <ac131313@redhat.com>
568 * MAINTAINERS: Update target maintainer rules so that any
569 Maintainer can approve a tested patch for a maintenance-only
572 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
574 * MAINTAINERS (write-after-approval): Add myself.
576 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
579 2002-01-08 Michael Snyder <msnyder@redhat.com>
581 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
582 real name of the executable, rather than the /proc name.
584 2002-01-03 Michael Snyder <msnyder@redhat.com>
586 Implement a "generate-core-file" command in gdb, save target state.
587 * gcore.c: New file. Implement new command 'generate-core-file'.
588 Save a corefile image of the current state of the inferior.
589 * linux-proc.c: Add linux-specific code for saving corefiles.
590 * target.h (struct target_ops): Add new target vectors for saving
591 corefiles; to_find_memory_regions and to_make_corefile_notes.
592 (target_find_memory_regions): New macro.
593 (target_make_corefile_notes): New macro.
594 * target.c (update_current_target): Inherit new target methods.
595 (dummy_find_memory_regions): New place-holder method.
596 (dummy_make_corefile_notes): New place-holder method.
597 (init_dummy_target): Initialize new dummy target vectors.
598 * exec.c (exec_set_find_memory_regions): New function.
599 Allow the exec_ops vector for memory regions to be taken over.
600 (exec_make_note_section): New function, target vector method.
601 * defs.h (exec_set_find_memory_regions): Export prototype.
602 * procfs.c (proc_find_memory_regions): New function, corefile method.
603 (procfs_make_note_section): New function, corefile method.
604 (init_procfs_ops): Set new target vector pointers.
605 (find_memory_regions_callback): New function.
606 (procfs_do_thread_registers): New function.
607 (procfs_corefile_thread_callback): New function.
608 * sol-thread.c (sol_find_memory_regions): New function.
609 (sol_make_note_section): New function.
610 (init_sol_thread_ops): Initialize new target vectors.
611 * inftarg.c (inftarg_set_find_memory_regions): New function.
612 Allow to_find_memory_regions vector to be taken over.
613 (inftarg_set_make_corefile_notes): New function.
614 Allow to_make_corefile_notes vector to be taken over.
615 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
616 interface layer if not target_has_execution (may be a corefile).
617 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
618 * config/sparc/sun4sol2.mh: Ditto.
619 * config/alpha/alpha-linux.mh: Ditto.
620 * config/arm/linux.mh: Ditto.
621 * config/i386/x86-64linux.mh: Ditto.
622 * config/ia64/linux.mh: Ditto.
623 * config/m68k/linux.mh: Ditto.
624 * config/mips/linux.mh: Ditto.
625 * config/powerpc/linux.mh: Ditto.
626 * config/sparc/linux.mh: Ditto.
628 2002-01-07 Michael Snyder <msnyder@redhat.com>
630 * arm-linux-nat.c: Remove references to regcache.c internal data
631 (registers[] and register_valid[]).
633 2002-01-07 Michael Snyder <msnyder@redhat.com>
635 * linux-proc.c: New file. Implement child_pid_to_exec_file,
636 so that attaching to a pid will automatically read the process's
637 symbol file and shlibs.
638 * Makefile.in: Add rule for linux-proc.o.
639 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
640 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
641 * config/arm/linux.mh: Ditto.
642 * config/i386/linux.mh: Ditto.
643 * config/i386/x86-64linux.mh: Ditto.
644 * config/ia64/linux.mh: Ditto.
645 * config/m68k/linux.mh: Ditto.
646 * config/mips/linux.mh: Ditto.
647 * config/powerpc/linux.mh: Ditto.
648 * config/sparc/linux.mh: Ditto.
650 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
652 * win32-nat.c: Add i386-tdep.h dependency.
654 2002-01-07 Michael Snyder <msnyder@redhat.com>
656 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
657 instead of bfd_get_arch_size. Don't bail out just because
660 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
661 * p-valprint.c (pascal_object_print_value): Ditto.
662 * somread.c (som_symtab_read): Ditto.
663 * symfile.c (simple_free_overlay_region_table): Ditto.
664 * valops.c (value_assign): Ditto.
666 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
667 use tilde_expand and strerror for opening save-tracepoints file.
669 * thread-db.c (thread_db_new_objfile): Indendation fix.
671 * infptrace.c (GDB_MAX_ALLOCA): New define.
672 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
673 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
674 can be overridden with whatever value is appropriate to the host).
675 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
676 alloca to allocate potentially large buffer.
677 * rs6000-nat.c (child_xfer_memory): Ditto.
678 * symm-nat.c (child_xfer_memory): Ditto.
679 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
681 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
683 From Nick Clifton <nickc@redhat.com>
684 * d10v-tdep.c: Set STACK_START to 0x200bffe.
686 2002-01-07 Michael Snyder <msnyder@redhat.com>
688 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
689 Don't use exec_bfd if it's NULL.
691 2002-01-06 Mark Kettenis <kettenis@gnu.org>
693 * valops.c (value_arg_coerce): Fix formatting.
695 2002-01-06 Andrew Cagney <ac131313@redhat.com>
697 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
700 2002-01-06 Andrew Cagney <ac131313@redhat.com>
702 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
703 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
704 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
705 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
706 z8k-coff have not been multi-arched. Update z8k-coff build
709 2002-01-06 Andrew Cagney <ac131313@redhat.com>
711 * MAINTAINERS: Mark a29k target as obsolete.
712 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
713 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
715 * NEWS: Note that a29k targets are obsolete.
716 * a29k-tdep.c: Mark as obsolete.
717 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
718 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
719 a29k-*-vxworks* targets as obsolete.
720 * remote-adapt.c: Obsolete.
721 * remote-eb.c: Obsolete.
722 * remote-mm.c: Obsolete.
723 * remote-udi.c: Obsolete.
724 * config/a29k/a29k-udi.mt: Obsolete.
725 * config/a29k/a29k.mt: Obsolete.
726 * config/a29k/tm-a29k.h: Obsolete.
727 * config/a29k/tm-vx29k.h: Obsolete.
728 * config/a29k/vx29k.mt: Obsolete.
730 2002-01-05 Andrew Cagney <ac131313@redhat.com>
732 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
735 2002-01-05 Andrew Cagney <ac131313@redhat.com>
737 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
738 * configure, config.in: Re-generate.
739 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
740 * defs.h: Do not include <endian.h>.
742 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
744 * acconfig.h (HAVE_PT_GETXMMREGS): New.
745 * config.in: Regenerate.
746 * configure.in: Update copyright years.
747 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
748 * configure: Regenerate.
749 * i386bsd-nat.c: Update copyright years.
750 (fill_gregset): Use regcache_collect.
751 (fetch_inferior_registers): Only fetch integer registers
752 if requested to do so. Add support for XMM registers
754 (store_inferior_registers): Only store integer registers
755 if requested to do so. Add support for XMM registers
757 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
758 (store_inferior_registers): Remove.
759 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
760 (fetch_elfcore_registers): New function.
761 (i386nbsd_elfcore_fns): New.
762 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
763 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
765 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
766 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
767 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
768 * config/i386/tm-nbsd.h: Update copyright years.
769 (HAVE_SSE_REGS): Define.
770 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
771 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
772 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
773 (SIGCONTEXT_PC_OFFSET): Remove.
774 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
776 2002-01-05 Andrew Cagney <ac131313@redhat.com>
778 * configure.tgt: Remove powerpc-*-macos* target.
779 * config/m68k/xm-mpw.h: Delete file.
780 * config/xm-mpw.h: Delete file.
781 * ser-mac.c: Delete file.
782 * mpw-make.sed: Delete file.
783 * mpw-config.in: Delete file.
784 * mac-xdep.c: Delete file.
785 * mac-gdb.r: Delete file.
786 * mac-defs.h: Delete file.
787 * mac-nat.c: Delete file.
788 * config/powerpc/macos.mh: Delete file.
789 * config/powerpc/macos.mt: Delete file.
790 * config/powerpc/nm-macos.h: Delete file.
791 * config/powerpc/tm-macos.h: Delete file.
792 * source.c (openp, open_source_file): Remove obsolete code.
793 * top.c (gdb_readline): Ditto.
794 * utils.c (query): Ditto.
795 * event-top.c (display_gdb_prompt): Ditto.
796 * Makefile.in (ser-mac.o): Delete obsolete target.
799 2002-01-04 Andrew Cagney <ac131313@redhat.com>
801 * defs.h (BIG_ENDIAN): Delete macro definition.
802 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
803 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
804 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
805 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
806 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
807 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
808 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
809 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
810 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
811 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
812 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
813 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
814 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
815 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
816 * gdbarch.c: Re-generate.
818 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
820 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
823 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
825 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
827 2002-01-04 Andrew Cagney <ac131313@redhat.com>
829 * value.h (value_ptr): Delete typedef.
831 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
833 * i386nbsd-nat.c: Update copyright years.
836 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
838 * stabsread.c: Update copyright years.
840 From Debashis Mahata <debashis.mahata@wipro.com>:
841 (read_struct_fields): Deal with Sun C compiler erroneous stab
842 output for structs and unions.
845 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
847 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
850 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
852 * cp-abi.c: Fix whitespace.
853 (baseclass_offset): New wrapper function.
854 * cp-abi.h (baseclass_offset): Add prototype.
855 (struct cp_abi_ops): Add baseclass_offset pointer.
857 * valops.c (vb_match): Move to...
858 * gnu-v2-abi.c (vb_match): here.
859 * valops.c (baseclass_offset): Move to...
860 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
862 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
864 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
865 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
866 * hpacc-abi.c (init_hpacc_ops): Likewise.
868 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
870 * valops.c (find_overload_match): Accept obj as a
871 reference parameter. Update it before returning.
872 * value.h (find_overload_match): Update prototype.
873 * eval.c (evaluate_subexp_standard): Pass object to
874 find_overload_match by reference.
876 2002-01-03 Andrew Cagney <ac131313@redhat.com>
878 * valarith.c: Replace value_ptr with struct value pointer. Remove
879 register attribute from value declarations.
882 * scm-lang.c (scm_lookup_name): Ditto.
884 2002-01-03 Michael Snyder <msnyder@redhat.com>
886 Abstract the functionality of iterating over mapped memory
887 regions into a general purpose iterator function.
888 * procfs.c (iterate_over_mappings): New function, general purpose
889 iterator for memory sections.
890 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
891 (solib_mappings_callback): New function, callback for above.
892 (info_proc_mappings): Reimpliment using iterate_over_mappings.
893 (info_mappings_callback): New function, callback for above.
895 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
897 2002-01-01 Mark Kettenis <kettenis@gnu.org>
899 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
900 * i386-tdep.c: Include "elf-bfd.h".
901 (process_note_abi_tag_sections): New function.
902 (i386_gdbarch_init): Add code to recognize various OS/ABI
905 * maint.c (_initialize_maint_cmds): Add missing \ in
908 For older changes see ChangeLog-2001
914 version-control: never