1 2002-11-28 J. Brobecker <brobecker@gnat.com>
3 * configure.in: Check that the pthdebug library is recent enough
4 before enabling thread support on native AiX.
5 * configure: Regenerate.
7 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
8 from the list of object files as it is now appended by configure
9 if thread support is enabled.
10 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
11 if thread support is enabled.
13 2002-11-28 Andrew Cagney <cagney@redhat.com>
15 * stack.c (get_selected_block): In-line get_current_block.
16 * frame.h (get_current_block): Delete declaration.
17 * blockframe.c (get_current_block): Delete function.
19 2002-11-28 Andrew Cagney <ac131313@redhat.com>
21 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
22 USE_GENERIC_DUMMY_FRAMES.
23 * gdbarch.h, gdbarch.c: Regenerate.
24 * valops.c, frame.c: Update.
25 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
26 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
27 * config/pa/tm-hppa.h, blockframe.c: Update.
28 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
29 * m68k-tdep.c, alpha-tdep.c: Ditto.
31 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
34 2002-11-27 Andrew Cagney <ac131313@redhat.com>
36 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
37 (USE_GENERIC_DUMMY_FRAMES): Default to true.
38 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
39 * gdbarch.c, gdbarch.h: Re-generate.
40 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
41 (CALL_DUMMY_LOCATION): Delete macro definition.
42 (PC_IN_CALL_DUMMY): Delete macro definitions.
44 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
45 default is already generic_pc_in_call_dummy.
46 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
47 * v850-tdep.c (v850_gdbarch_init): Ditto.
48 * sh-tdep.c (sh_gdbarch_init): Ditto.
49 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
50 * mips-tdep.c (mips_gdbarch_init): Ditto.
51 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
52 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
53 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
54 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
55 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
56 * avr-tdep.c (avr_gdbarch_init): Ditto.
58 * arm-tdep.c (arm_gdbarch_init): Do not set
59 use_generic_dummy_frames, default is already 1.
60 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
61 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
62 * v850-tdep.c (v850_gdbarch_init): Ditto.
63 * sh-tdep.c (sh_gdbarch_init): Ditto.
64 * s390-tdep.c (s390_gdbarch_init): Ditto.
65 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
66 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
67 * mips-tdep.c (mips_gdbarch_init): Ditto.
68 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
69 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
70 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
71 * i386-tdep.c (i386_gdbarch_init): Ditto.
72 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
73 * frv-tdep.c (frv_gdbarch_init): Ditto.
74 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
75 * cris-tdep.c (cris_gdbarch_init): Ditto.
76 * avr-tdep.c (avr_gdbarch_init): Ditto.
78 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
79 call_dummy_location, default is already AT_ENTRY_POINT.
80 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
81 * v850-tdep.c (v850_gdbarch_init): Ditto.
82 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
83 * sh-tdep.c (sh_gdbarch_init): Ditto.
84 * s390-tdep.c (s390_gdbarch_init): Ditto.
85 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
86 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
87 * mips-tdep.c (mips_gdbarch_init): Ditto.
88 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
89 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
90 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
91 * i386-tdep.c (i386_gdbarch_init): Ditto.
92 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
93 * frv-tdep.c (frv_gdbarch_init): Ditto.
94 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
95 * cris-tdep.c (cris_gdbarch_init): Ditto.
96 * avr-tdep.c (avr_gdbarch_init): Ditto.
97 * arm-tdep.c (arm_gdbarch_init): Ditto.
98 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
100 2002-11-28 Andrew Cagney <cagney@redhat.com>
102 * frame.h: Update comments on set_current_frame, create_new_frame,
103 flush_cached_frames, reinit_frame_cache, select_frame and
106 2002-11-27 Andrew Cagney <cagney@redhat.com>
108 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
109 deprecated pc_in_call_dummy function.
110 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
111 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
112 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
113 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
114 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
116 2002-11-26 Martin M. Hunt <hunt@redhat.com>
118 * Makefile.in: Remove Tix dependencies.
119 * acinclude.m4: Ditto.
121 * configure.in: Ditto.
122 * configure: Regenerated.
124 2002-11-26 Andrew Cagney <ac131313@redhat.com>
126 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
127 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
128 * gdbarch.c: Re-generate.
130 2002-11-26 Andrew Cagney <ac131313@redhat.com>
132 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
133 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
134 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
135 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
136 pc_in_call_dummy_at_entry_point.
137 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
138 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
139 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
140 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
141 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
142 pc_in_call_dummy_on_stack.
143 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
144 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
145 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
146 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
147 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
149 2002-11-26 Andrew Cagney <ac131313@redhat.com>
151 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
152 pc_in_call_dummy_before_text_end
153 (deprecated_pc_in_call_dummy_after_text_end): Rename
154 pc_in_call_dummy_after_text_end.
155 (deprecated_pc_in_call_dummy_on_stack): Rename
156 pc_in_call_dummy_on_stack.
157 (deprecated_pc_in_call_dummy_at_entry_point): Rename
158 pc_in_call_dummy_at_entry_point.
159 * m68k-tdep.c (m68k_gdbarch_init): Update.
160 * s390-tdep.c (s390_gdbarch_init): Update.
161 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
162 * vax-tdep.c (vax_gdbarch_init): Update.
163 * sparc-tdep.c (sparc_gdbarch_init): Update.
164 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
165 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
166 * i386-tdep.c (i386_gdbarch_init): Update.
167 * frv-tdep.c (frv_gdbarch_init): Update.
168 * cris-tdep.c (cris_gdbarch_init): Update.
169 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
170 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
171 (deprecated_pc_in_call_dummy_after_text_end)
172 (deprecated_pc_in_call_dummy_on_stack)
173 (deprecated_pc_in_call_dummy_at_entry_point): Update.
174 * alpha-tdep.c (alpha_gdbarch_init): Update.
176 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
178 * acconfig.h (HAVE_PREAD64): Add.
179 * configure.in: Check for pread64.
180 * config.in: Regenerated.
181 * configure: Regenerated.
182 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
183 * linux-proc.c (linux_proc_xfer_memory): New function.
184 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
186 2002-11-25 David Carlton <carlton@math.stanford.edu>
188 * dwarf2read.c (scan_partial_symbols): Descend into namespace
191 2002-11-25 Andrew Cagney <ac131313@redhat.com>
193 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
194 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
196 2002-11-25 Jim Blandy <jimb@redhat.com>
198 * symfile.c (init_objfile_sect_indices): New function.
199 (default_symfile_offsets): Move the section-index-initializing
200 stuff into init_objfile_sect_indices, and call that.
202 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
203 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
205 * symfile.c (syms_from_objfile): Adjust indentation.
207 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
208 || info_verbose isn't true.
210 2002-11-24 Andrew Cagney <ac131313@redhat.com>
212 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
213 default to get_frame_base.
214 * gdbarch.h, gdbarch.c: Regenerate.
215 * arch-utils.c (default_frame_address): Delete function.
216 * arch-utils.h (default_frame_address): Delete declaration
218 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
220 * varobj.c (find_frame_addr_in_frame_chain):
221 Use get_frame_base instead of FRAME_FP,
224 2002-11-19 Andrew Cagney <ac131313@redhat.com>
226 * frame.h (FRAME_FP): Delete macro.
227 (get_frame_base): New function declaration.
228 * frame.c (get_frame_base): New function.
229 (get_frame_id): Use ->frame.
230 (frame_find_by_id): Rewrite to use get_frame_id.
231 * blockframe.c: Use get_frame_base instead of FRAME_FP.
232 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
233 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
234 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
235 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
236 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
237 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
239 2002-11-24 Andrew Cagney <ac131313@redhat.com>
241 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
243 2002-11-24 Andrew Cagney <ac131313@redhat.com>
245 * frame.c (set_unwind_by_pc): Revert change below, use
247 (get_prev_frame): Ditto.
249 2002-11-24 Andrew Cagney <ac131313@redhat.com>
251 * dummy-frame.c (pc_in_dummy_frame): New function.
252 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
253 (find_dummy_frame): Update comment.
254 (generic_pop_current_frame): Use get_frame_type.
255 * dummy-frame.h (pc_in_dummy_frame): Declare.
256 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
257 (create_new_frame): Use pc_in_dummy_frame.
258 (get_prev_frame): Use pc_in_dummy_frame.
259 (frame_saved_regs_register_unwind): Use get_prev_frame.
260 (deprecated_generic_get_saved_register): Use get_prev_frame.
262 2002-11-23 Andrew Cagney <ac131313@redhat.com>
264 * blockframe.c (find_frame_addr_in_frame_chain): Move function
266 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
267 (varobj_create): Note that frame ID should be used.
268 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
270 2002-11-23 Andrew Cagney <ac131313@redhat.com>
272 * breakpoint.c: Include "gdb_assert.h".
273 (deprecated_frame_in_dummy): Assert that generic dummy frames are
275 * Makefile.in (breakpoint.o): Update dependencies.
276 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
277 deprecated_frame_in_dummy.
278 * stack.c (print_frame_info_base): Ditto.
280 (print_frame_info_base): Ditto. Delete dead code.
282 2002-11-23 Andreas Schwab <schwab@suse.de>
284 * Makefile.in (m68k_tdep_h): Define.
285 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
286 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
287 * m68k-tdep.c: Move register number enum ...
288 * m68k-tdep.h: ... to this new file and rename the constants from
289 E_* to M68K_*. All uses changed.
290 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
291 * abug-rom.c: Include "m68k-tdep.h". Use
292 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
293 * cpu32bug-rom.c: Likewise.
294 * dbug-rom.c: Likewise.
295 * m68k-tdep.c: Likewise.
296 * m68klinux-nat.c: Likewise.
297 * remote-est.c: Likewise.
298 * rom68k-rom.c: Likewise.
299 * config/m68k/tm-linux.h: Likewise.
301 2002-11-23 Andrew Cagney <ac131313@redhat.com>
303 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
304 dummy frame initialization code.
305 * mips-tdep.c (mips_gdbarch_init): Ditto.
307 2002-11-22 Christopher Faylor <cgf@redhat.com>
309 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
312 2002-11-22 Andrew Cagney <ac131313@redhat.com>
314 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
315 to default_frame_address.
316 * gdbarch.h, gdbarch.c: Re-generate.
318 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
319 or frame_locals_address to default_frame_address.
320 * m68k-tdep.c (m68k_gdbarch_init): Update.
321 * i386-tdep.c (i386_gdbarch_init): Update.
322 * frv-tdep.c (frv_gdbarch_init): Update.
323 * sh-tdep.c (sh_gdbarch_init): Update.
324 * v850-tdep.c (v850_gdbarch_init): Update.
325 * sparc-tdep.c (sparc_gdbarch_init): Update.
326 * mips-tdep.c (mips_gdbarch_init): Update.
327 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
328 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
331 * cris-tdep.c (cris_frame_args_address): Delete function.
332 (cris_frame_locals_address): Delete function.
333 (cris_gdbarch_init): Do not set frame_args_address or
334 frame_locals_address.
336 2002-11-22 Michael Snyder <msnyder@redhat.com>
338 * thread-db.c (thread_db_load): Tell the user what's going on
339 if dlopen fails on libthread_db.
341 2002-11-23 Andreas Schwab <schwab@suse.de>
343 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
344 invariant return values.
346 2002-11-22 Andreas Schwab <schwab@suse.de>
348 * valops.c (value_slice): Move declaration of `offset' to avoid
351 2002-11-22 Christopher Faylor <cgf@redhat.com>
353 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
354 (struct so_stuff): Add end_addr field.
355 (register_loaded_dll): Calculate and store end address of loaded dll.
356 (solib_address): New function.
357 (child_solib_loaded_library_pathname): Pass carefully constructed
358 section info to safe_symbol_file_add rather than ignoring it.
359 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
361 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
362 (child_create_inferior): Fix a compiler warning.
363 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
364 (solib_address): Declare new function.
366 2002-11-22 Andreas Schwab <schwab@suse.de>
368 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
371 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
373 * maint.c (_initialize_maint_cmds): Fix typo. From
374 Francesco Potorti` <pot@gnu.org>.
376 2002-11-21 Andrew Cagney <cagney@redhat.com>
378 * mips-tdep.c (mips_dump_tdep): Delete references to
379 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
380 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
381 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
382 * printcmd.c (build_address_symbolic): Delete calls to
383 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
384 (address_info): Ditto.
387 2002-11-19 Klee Dienes <kdienes@apple.com>
388 Adam Fedor <fedor@gnu.org>
390 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
391 the ability to explicitly specify the quote characters and word
392 break characters; if NULL is specified for either, use the old
393 behavior of using the characters used by the completer.
394 (skip_chars): New function. Convenience wrapper around
395 skip_quoted_chars to provide the original skip_chars behavior.
396 * completer.h (skip_quoted_chars): Add prototype.
398 2002-11-19 Andrew Cagney <ac131313@redhat.com>
400 Problems reported by Paul Eggert.
401 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
403 2002-11-19 Andreas Schwab <schwab@suse.de>
405 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
406 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
407 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
408 (m68k_linux_frame_saved_pc): Move to ...
409 * m68klinux-tdep.c: ... here. New file.
410 * Makefile.in (m68klinux-tdep.o): Add dependencies.
411 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
413 2002-11-19 Adam Fedor <fedor@gnu.org>
415 * objc-exp.y: Revert to old skip_quoted usage.
417 2002-11-19 Adam Fedor <fedor@gnu.org>
419 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
420 (objc_lang_h): Define.
421 (YYFILES): Add objc-exp.tab.c.
422 (local-maintainer-clean): Remove objc-exp.tab.c.
423 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
425 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
427 * p-exp.y (typecast rule): Add automatic dereference of
428 pascal classes if needed.
429 (THIS): Set current_type.
430 Automatically dereference pascal classes.
431 (typebase rule): Add ^typebase recognition.
433 2002-11-18 Adam Fedor <fedor@gnu.org>
435 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
436 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
437 (op_name): Handle OP_OBJC_SELF.
438 * Makefile.in (expprint.o): Add additional depends.
440 2002-11-18 Adam Fedor <fedor@gnu.org>
442 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
443 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
444 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
445 * objc-exp.y: Likewise.
447 2002-11-18 Adam Fedor <fedor@gnu.org>
449 * gdb/parser-defs.h: (struct objc_class_str): New structure
450 for parsing ObjC classes.
452 2002-11-18 Andrew Cagney <ac131313@redhat.com>
454 * stack.c (frame_relative_level): Copy function from here ...
455 * frame.c (frame_relative_level): ...to here.
457 2002-11-18 Andrew Cagney <ac131313@redhat.com>
459 * frame.h (enum frame_type): Define.
460 (get_frame_type): Declare.
461 (struct frame_info): Add field `type'. Delete field
462 signal_handler_caller.
463 (deprecated_set_frame_signal_handler_caller): Declare.
464 * frame.c (get_frame_type): New function.
465 (deprecated_set_frame_type): New function.
466 (create_new_frame): Set the frame's type.
467 (get_prev_frame): Similar.
468 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
469 * s390-tdep.c: Ditto.
470 * m68klinux-nat.c: Ditto.
471 * ns32k-tdep.c: Ditto.
472 * x86-64-linux-tdep.c: Ditto.
474 * rs6000-tdep.c: Ditto.
475 * ppc-linux-tdep.c: Ditto.
476 * i386-interix-tdep.c: Ditto.
477 * mips-tdep.c: Ditto.
478 * m68k-tdep.c: Ditto.
479 * hppa-tdep.c: Ditto.
480 * ia64-tdep.c: Ditto.
481 * cris-tdep.c: Ditto.
483 * alpha-tdep.c: Ditto.
484 * i386-tdep.c: Ditto.
487 * blockframe.c: Update.
488 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
489 deprecated_set_frame_type instead of signal_handler_caller.
490 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
491 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
492 * breakpoint.h: Delete FIXME suggesting get_frame_type.
494 2002-11-18 Klee Dienes <kdienes@apple.com>
496 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
498 2002-11-18 Klee Dienes <kdienes@apple.com>
500 * buildsym.c (pop_context): Add comment.
502 2002-11-18 Klee Dienes <kdienes@apple.com>
504 * buildsym.h (pop_context): Convert to function, defined in
506 * buildsym.c: Include gdb_assert.h.
507 (pop_context): Implement as C function. Add check for stack
509 * dbxread.c (process_one_symbol): Complain and stop processing
510 that symbol if we are already at the top of the context stack for
511 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
512 when processing N_RBRAC.
514 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
516 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
518 (struct target_waitstatus): Add opaque definition.
519 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
520 * exec.c (init_exec_ops): Likewise.
521 * fork-child.c (clone_and_follow_inferior): Remove.
522 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
523 * inferior.h (clone_and_follow_inferior): Remove prototype.
524 * infrun.c (follow_fork_mode_both): Remove.
525 (follow_fork_mode_kind_names): Remove commented out "both".
526 (follow_inferior_fork): Remove follow_fork_mode_both support.
527 * inftarg.c (child_clone_and_follow_inferior): Remove.
528 (child_post_follow_inferior_by_clone): Remove.
529 (init_child_ops): Don't set to_clone_and_follow_inferior
530 or to_post_follow_inferior_by_clone.
531 * target.c (default_clone_and_follow_inferior): Remove.
532 (cleanup_target): Don't set to_clone_and_follow_inferior
533 or to_post_follow_inferior_by_clone.
534 (find_default_clone_and_follow_inferior): Remove.
535 (init_dummy_target): Don't set to_clone_and_follow_inferior.
536 (debug_to_clone_and_follow_inferior): Remove.
537 (debug_to_post_follow_inferior_by_clone): Remove.
538 (setup_target_debug): Don't set to_clone_and_follow_inferior
539 or to_post_follow_inferior_by_clone.
540 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
541 and to_post_follow_inferior_by_clone.
542 (child_clone_and_follow_inferior): Remove prototype.
543 (child_post_follow_inferior_by_clone): Remove prototype.
544 (target_clone_and_follow_inferior): Remove macro.
545 (target_post_follow_inferior_by_clone): Remove macro.
546 (find_default_clone_and_follow_inferior): Remove prototype.
548 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
550 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
551 inferior_has_vforked, and inferior_has_execd instead of
552 target_has_forked, target_has_vforked, and target_has_execd.
553 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
554 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
555 (CHILD_WAIT): Define.
556 (child_wait): Add prototype.
557 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
559 (hpux_has_vforked): Likewise, from child_has_vforked.
560 (hpux_has_execd): Likewise, from child_has_execd.
561 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
562 (not_same_real_pid, child_wait): New, copied from inftarg.c.
563 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
564 and hpux_has_syscall_event instead of the target hooks.
565 * infrun.c (inferior_has_forked, inferior_has_vforked)
566 (inferior_has_execd): New functions.
567 * inftarg.c (not_same_real_pid): Remove.
568 (child_wait): Remove references to not_same_real_pid,
569 target_has_forked, target_has_vforked, target_has_execd,
570 and target_has_syscall_event.
571 (child_has_forked, child_has_vforked, child_has_execd)
572 (child_has_syscall_event): Remove.
573 (init_child_ops): Remove references to child_has_forked,
574 child_has_vforked, child_has_execd, and child_has_syscall_event.
575 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
576 (hpux_has_vforked): Likewise, from child_has_vforked.
577 (hpux_has_execd): Likewise, from child_has_execd.
578 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
579 * target.c (cleanup_target): Remove references to
580 to_has_forked, to_has_vforked, to_has_execd, and
581 to_has_syscall_event.
582 (update_current_target): Likewise.
583 (setup_target_debug): Likewise.
584 (debug_to_has_forked): Remove.
585 (debug_to_has_vforked): Remove.
586 (debug_to_has_execd): Remove.
587 (debug_to_has_syscall_event): Remove.
588 * target.h (struct target_ops): Remove to_has_forked.
589 to_has_vforked, to_has_execd, and to_has_syscall_event.
590 (child_has_forked, child_has_vforked, child_has_execd)
591 (child_has_syscall_event): Remove prototypes.
592 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
594 (target_has_forked, target_has_vforked, target_has_execd)
595 (target_has_syscall_event): Remove macros.
597 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
599 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
600 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
601 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
602 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
603 * target.c (cleanup_target): Remove reference to
604 to_can_follow_vfork_prior_to_exec.
605 (update_current_target): Likewise.
606 (debug_to_can_follow_vfork_prior_to_exec): Remove.
607 (setup_target_debug): Remove reference to
608 to_can_follow_vfork_prior_to_exec.
609 * target.h (struct target_ops): Remove
610 to_can_follow_vfork_prior_to_exec.
611 (child_can_follow_vfork_prior_to_exec): Remove prototype.
612 (target_can_follow_vfork_prior_to_exec): Remove definition.
613 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
615 * infrun.c (follow_vfork_when_exec): Remove.
616 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
617 (follow_exec): Likewise.
618 (handle_inferior_event): Likewise.
619 (keep_going): Likewise.
621 2002-11-15 Andrew Cagney <cagney@redhat.com>
623 * frame.c (generic_unwind_get_saved_register): Make static.
624 * frame.h (generic_unwind_get_saved_register): Delete declaration.
625 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
626 defaults to generic_unwind_get_saved_register.
627 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
628 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
629 * frv-tdep.c (frv_gdbarch_init): Ditto.
630 * i386-tdep.c (i386_gdbarch_init): Ditto.
631 * s390-tdep.c (s390_gdbarch_init): Ditto.
632 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
633 * v850-tdep.c (v850_gdbarch_init): Ditto.
634 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
635 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
636 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
638 2002-11-15 Andrew Cagney <cagney@redhat.com>
640 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
643 2002-11-15 Andrew Cagney <cagney@redhat.com>
645 * frame.h (sigtramp_saved_pc): Delete declaration.
646 * blockframe.c (sigtramp_saved_pc): Delete function.
647 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
648 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
649 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
650 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
652 2002-11-15 Andrew Cagney <ac131313@redhat.com>
654 * frame.c (frame_pc_unwind): New function.
655 (frame_saved_regs_pc_unwind): New function.
656 (frame_register_unwind): Pass unwind_cache instead of
657 register_unwind_cache.
658 (set_unwind_by_pc): Add unwind_pc parameter, set.
659 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
660 (get_prev_frame): Ditto.
661 * frame.h (frame_pc_unwind_ftype): Declare.
662 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
663 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
664 (frame_pc_unwind): Declare.
665 * dummy-frame.c (dummy_frame_pc_unwind): New function.
666 (struct dummy_frame): Add comment mentioning that values are for
668 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
669 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
670 (generic_file_frame_chain_valid): Ditto.
671 * stack.c (frame_info): Ditto.
673 2002-11-15 David Carlton <carlton@math.stanford.edu>
675 * linespec.c (locate_first_half): New function.
676 (decode_line_1): Move code into locate_first_half.
678 2002-11-15 Andrew Cagney <ac131313@redhat.com>
680 * complaints.h: Add comment explaining how to eliminate a
681 deprecated_complain call.
682 * complaints.h: Fix spelling errors.
684 2002-11-15 David Carlton <carlton@math.stanford.edu>
686 * printcmd.c: Remove #include "disasm.h".
688 2002-11-14 Andrew Cagney <ac131313@redhat.com>
690 * frame.h: Move the most relevant interface functions to the start
693 2002-11-14 Andrew Cagney <ac131313@redhat.com>
695 * regcache.h (deprecated_registers): Rename registers.
696 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
697 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
698 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
699 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
700 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
701 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
702 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
703 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
704 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
705 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
706 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
709 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
711 * utils.c (gdb_realpath): Add comment mentioning realpath with a
714 2002-11-13 Andrew Cagney <cagney@redhat.com>
716 * regcache.h (deprecated_read_register_bytes): Rename
718 (deprecated_write_register_bytes): Rename write_register_bytes.
719 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
720 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
721 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
722 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
723 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
724 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
725 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
726 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
727 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
728 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
729 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
730 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
731 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
732 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
734 2002-11-13 Jim Blandy <jimb@redhat.com>
736 * findvar.c (read_var_value): Doc fix.
738 2002-11-13 Andrew Cagney <cagney@redhat.com>
740 * regcache.c (struct regcache): Replace passthough_p with
742 (regcache_xmalloc): Initialize readonly_p.
743 (build_regcache): Initialize readonly_p.
744 (regcache_save): New function.
745 (regcache_restore): New function.
746 (regcache_cpy): Re-implement using regcache_save and
748 (regcache_raw_read): Update.
749 (regcache_cooked_read): When a read-only cache, checked for cached
750 pseudo register values.
751 (regcache_raw_write): Assert that the cache is not read-only.
752 Remove code handling a non-passthrough cache.
753 * regcache.h (regcache_save): Declare.
754 (regcache_restore): Declare.
756 2002-11-13 Andrew Cagney <cagney@redhat.com>
758 * regcache.c (struct regcache_descr): Add fields
759 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
760 (init_legacy_regcache_descr): Compute the size of a cooked
761 register cache and then assign that to sizeof_raw_registers. Set
762 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
763 (init_legacy_regcache_descr): Ditto.
765 2002-11-13 Andrew Cagney <cagney@redhat.com>
767 * regcache.c (register_buffer): Move to near start of file, update
769 (regcache_raw_read): Use.
770 (regcache_raw_write): Use.
771 (struct regcache): Rename raw_registers to registers and
772 raw_register_valid_p to register_valid_p.
773 (regcache_xmalloc): Update.
774 (regcache_xfree): Update.
775 (register_buffer): Update.
776 (regcache_cpy): Update.
777 (regcache_cpy_no_passthrough): Update.
778 (regcache_valid_p): Update.
779 (deprecated_grub_regcache_for_registers): Update.
780 (deprecated_grub_regcache_for_register_valid): Update.
781 (set_register_cached): Update.
782 (regcache_raw_write): Update.
784 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
786 * p-exp.y (name_not_typename): Use copy_name to
787 set current_type variable for fields of THIS.
789 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
791 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
792 * monitor.c (init_base_monitor_ops): Likewise.
793 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
794 * remote-array.c (init_array_ops): Likewise.
795 * remote-e7000.c (init_e7000_ops): Likewise.
796 * remote-es.c (init_es1800_ops): Likewise.
797 (init_es1800_child_ops): Likewise.
798 * remote-rdp.c (init_remote_rdp_ops): Likewise.
799 * remote-sim.c (init_gdbsim_ops): Likewise.
800 * remote-st.c (init_st2000_ops): Likewise.
801 * sol-thread.c (init_sol_core_ops): Likewise.
802 (init_sol_thread_ops): Likewise.
803 * v850ice.c (init_850ice_ops): Likewise.
804 * win32-nat.c (init_child_ops): Likewise.
805 * wince.c (init_child_ops): Likewise.
807 2002-11-12 Andrew Cagney <ac131313@redhat.com>
809 * utils.c (gdb_realpath): Make rp a constant pointer.
811 2002-11-12 Andrew Cagney <ac131313@redhat.com>
813 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
814 a constant buffer; cannonicalize_file_name(); realpath() with a
815 pathconf() defined buffer, xstrdup().
817 2002-11-12 Andrew Cagney <ac131313@redhat.com>
819 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
820 to hang2.C; hang3.c to hang3.C.
822 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
824 * findvar.c (read_var_value): Reenable TLS code.
826 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
827 Jim Blandy <jimb@redhat.com>
829 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
830 * target.c (update_current_target): Add
831 to_get_thread_local_address.
832 * target.h (to_get_thread_local_address): Export.
833 (target_get_thread_local_address): Define.
834 (target_get_thread_local_address_p): Define.
835 * thread-db.c: Include solib-svr4.h.
836 (td_thr_tls_get_addr_p): Define.
837 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
838 (thread_db_get_thread_local_address): New function.
839 (init_thread_db_ops): Initialize to_get_thread_local_address.
840 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
841 * configure: Regenerate.
842 * config.in: Regenerate.
844 2002-11-11 David Carlton <carlton@math.stanford.edu>
846 * linespec.c (set_flags): New function.
847 (decode_line_1): Move code into set_flags.
849 2002-11-11 David Carlton <carlton@math.stanford.edu>
851 * linespec.c (decode_line_1): Move chunks of code to separate
853 (initialize_defaults): New function.
854 (decode_indirect): New function.
856 2002-11-11 Andrew Cagney <ac131313@redhat.com>
858 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
859 instead of void_code_ptr.
860 (sigtramp_saved_pc): Ditto.
862 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
865 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
867 * gdbtypes.h (struct main_type): Move artificial flag out of
868 loc. New member of ``struct field'' named static_kind. Reduce
869 overloaded meaning of bitsize.
870 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
871 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
872 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
874 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
876 (template_to_fixed_record_type, template_to_static_fixed_type)
877 (to_record_with_fixed_variant_part): Likewise.
878 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
879 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
880 * dwarfread.c (struct_type, enum_type): Likewise.
881 * hpread.c (hpread_read_enum_type)
882 (hpread_read_function_type, hpread_read_doc_function_type)
883 (hpread_read_struct_type): Likewise.
884 * mdebugread.c (parse_symbol): Likewise.
886 2002-11-10 Andrew Cagney <ac131313@redhat.com>
888 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
889 * stack.c (print_frame_info_base): Update.
890 (print_frame_info_base, frame_info): Update.
891 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
892 (sparc_frame_saved_pc): Update.
893 * ada-lang.c (find_printable_frame): Update.
894 * breakpoint.c (deprecated_frame_in_dummy): Update.
896 2002-11-09 Mark Kettenis <kettenis@gnu.org>
898 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
900 (regmap): Extend to cover all registers.
901 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
902 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
904 (fetch_register, sore_register): Simplify.
905 (old_fetch_inferior_registers, old_store_inferior_registers):
907 (cannot_fetch_register, cannot_store_register): Change
908 implementation to use regmap array to decide which registers
909 cannot be fetched/stored. This removes $orig_eax from the
910 registers that cannot be fetched/stored.
911 (fetch_inferior_registers): Call fetch_register directly instead
912 of calling old_fetch_inferior_registers.
913 (store_inferior_registers): Call store_register directly instead
914 of calling old_store_inferior_registers.
915 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
916 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
917 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
919 2002-11-09 Klee Dienes <kdienes@apple.com>
921 * i387-tdep.c (i387_supply_register): When called with NULL as a
922 buffer, mark the register as not provided (to mirror the behavior
924 (i387_supply_fxsave): Ditto.
925 (i387_supply_fsave): Ditto (inherits the behavior from
926 i387_supply_register).
928 2002-11-09 Klee Dienes <kdienes@apple.com>
930 * blockframe.c (sigtramp_saved_pc): Use
931 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
932 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
933 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
935 2002-11-09 Andrew Cagney <ac131313@redhat.com>
937 * frame.c (get_prev_frame): Test prev_p to identify a previously
938 unwound frame. Initialize prev_p.
939 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
942 2002-11-09 Andrew Cagney <ac131313@redhat.com>
944 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
945 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
946 more comments. Zap dead code.
948 2002-11-09 Mark Kettenis <kettenis@gnu.org>
950 * infcmd.c (print_vector_info, print_float_info): Move code that
951 checks whether the target has any registers and whether there is a
952 selected frame up, such that it is also used if a target provides
953 multi-arch definitions of these functions.
955 2002-11-08 Andrew Cagney <ac131313@redhat.com>
957 * Makefile.in (DESTDIR): Define.
958 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
961 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
962 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
964 2002-11-08 Andrew Cagney <ac131313@redhat.com>
966 * i386-linux-tdep.c: Include "reggroups.h".
967 (i386_linux_register_reggroup_p): New function.
968 (i386_linux_init_abi): Set register_reggroup_p to
969 i386_linux_register_reggroup_p.
970 * i386-tdep.h (i386_register_reggroup_p): Declare.
971 * i386-tdep.c: Include "reggroups.h".
972 (i386_init_reggroups): New function.
973 (i386_add_reggroups): New function.
974 (i386_register_reggroup_p): New function.
975 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
976 (_initialize_i386_tdep): Call i386_init_reggroups.
977 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
980 2002-11-09 Mark Kettenis <kettenis@gnu.org>
982 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
983 request that's available in *BSD.
985 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
987 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
990 2002-11-08 Andrew Cagney <ac131313@redhat.com>
992 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
993 * dummy-frame.c (find_dummy_frame): Rename
994 generic_find_dummy_frame, make static. Return the dummy frame
995 instead of the regcache.
996 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
997 (cached_find_dummy_frame): New function. Use find_dummy_frame.
998 (dummy_frame_register_unwind): Rename
999 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1000 * dummy-frame.h (dummy_frame_register_unwind): Rename
1001 generic_call_dummy_register_unwind.
1003 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1005 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1006 except the inclusion of "i386/tm-i386.h", to...
1007 * config/i386/nm-i386v42mp.h: ...here.
1008 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1010 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1012 * Makefile.in (frame.o): Update dependencies.
1013 * blockframe.c (current_frame, frame_obstack_alloc)
1014 (frame_saved_regs_zalloc, get_current_frame)
1015 (set_current_frame, create_new_frame)
1016 (set_unwind_by_pc, get_next_frame)
1017 (flush_cached_frames, reinit_frame_cache)
1018 (frame_saved_regs_register_unwind)
1019 (deprecated_generic_get_saved_register)
1020 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1021 (_initialize_blockframe): Move frame code from here...
1022 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1023 "annotate.h" and "dummy-frame.h".
1024 (_initialize_frame): New function.
1026 2002-11-08 Jim Blandy <jimb@redhat.com>
1028 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1029 when we finish a function a context.
1030 * buildsym.h (outermost_context_p): New macro.
1031 (Bug analyzed by David Edelsohn.)
1033 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1035 * blockframe.c: Include "dummy-frame.h".
1036 (struct dummy_frame, dummy_frame_stack)
1037 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1038 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1039 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1040 (generic_save_call_dummy_addr, generic_pop_current_frame)
1041 (generic_pop_dummy_frame, generic_fix_call_dummy)
1042 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1043 dummy frame code from here...
1044 * dummy-frame.c: ...to here. New file.
1045 * dummy-frame.h: New file.
1046 (generic_call_dummy_register_unwind): Declare.
1047 (generic_find_dummy_frame): Declare.
1048 * Makefile.in (SFILES): Add dummy-frame.c.
1049 (dummy-frame.o): Specify dependencies.
1050 (dummy_frame_h): Define.
1051 (COMMON_OBS): Add dummy-frame.o.
1052 (blockframe.o): Update dependencies.
1054 2002-11-08 Jim Blandy <jimb@redhat.com>
1056 * dwarf2read.c (read_func_scope): Restore local_symbols and
1057 param_symbols after we finish the function context. (Based on a
1058 patch from David Edelsohn.)
1060 2002-11-08 David Carlton <carlton@math.stanford.edu>
1062 * linespec.c (symbol_found): New function.
1063 (minsym_found): New function.
1064 (decode_line_1): Separate out some code into separate functions.
1066 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1068 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1069 the benefit of the interix target.
1070 * i386-tdep.h (i386_frameless_signal_p): Declare.
1072 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1074 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1075 declaration that snuck in from change below.
1077 2002-11-06 Andrew Cagney <cagney@redhat.com>
1079 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1081 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1082 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1083 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1084 (i386_mxcsr_regnum_p): new function. Use instead of
1086 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1087 (i386_sse_regnum_p): Declare.
1088 (i386_mxcsr_regnum_p): Declare.
1089 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1090 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1091 (IS_FP_REGNUM): Update definition.
1092 (IS_FPU_CTRL_REGNUM): Update definition..
1093 (IS_SSE_REGNUM): Update definition..
1094 * i386v-nat.c (register_u_addr): Update.
1095 * go32-nat.c (fetch_register): Update.
1096 (store_register): Update.
1098 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1100 Preparation work to convert the hppa targets to multiarch partial.
1102 * hppa-tdep.c: Add new functions replacing macro bodies from
1103 config/pa/tm-hppa.h. These function will be used to initialize
1104 the gdbarch structure. Import some comments from tm-hppa.h,
1105 and place them where appropriate, to avoid loosing them when
1106 we cleanup this file.
1107 (hppa_reg_struct_has_addr): New function.
1108 (hppa_inner_than): New function.
1109 (hppa_stack_align): New function.
1110 (hppa_pc_requires_run_before_use): New function.
1111 (hppa_instruction_nullified): New function.
1112 (hppa_register_byte): New function.
1113 (hppa_register_virtual_type): New function.
1114 (hppa_store_struct_return): New function.
1115 (hppa_cannot_store_register): New function.
1116 (hppa_frame_args_address): New function.
1117 (hppa_frame_locals_address): New function.
1118 (hppa_smash_text_address): New function.
1119 (hppa_coerce_float_to_double): New function. Requires the inclusion
1122 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1124 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1125 gdbarch-eligible macro to a call to the new associated function
1126 created in hppa-tdep.c.
1127 (INNER_THAN): Likewise.
1128 (STACK_ALIGN): Likewise.
1129 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1130 (INSTRUCTION_NULLIFIED): Likewise.
1131 (REGISTER_BYTE): Likewise.
1132 (REGISTER_VIRTUAL_TYPE): Likewise.
1133 (STORE_STRUCT_RETURN): Likewise.
1134 (CANNOT_STORE_REGISTER): Likewise.
1135 (FRAME_ARGS_ADDRESS): Likewise.
1136 (FRAME_LOCALS_ADDRESS): Likewise.
1137 (SMASH_TEXT_ADDRESS): Likewise.
1138 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1139 (ABOUT_TO_RETURN): Delete, as no longer used.
1141 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1143 * printcmd.c (disassemble_command): Remove obsolete function.
1144 (_initialize_printcmd): Do not create disassemble command here.
1145 * cli/cli-cmds.c (disassemble_command): New function. Implements
1146 disassemble command.
1147 (init_cli_cmds): Create disassemble command here instead.
1149 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1151 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1153 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1155 * regcache.h (regcache_cooked_read_using_offset_hack)
1156 (regcache_cooked_write_using_offset_hack): Delete declarations.
1157 (register_changed): Delete declaration.
1158 * regcache.c (regcache_cooked_read_using_offset_hack)
1159 (regcache_cooked_write_using_offset_hack): Delete functions.
1160 (cooked_xfer_using_offset_hack): Delete function.
1161 (register_changed): Delete function.
1163 2002-11-07 Jim Blandy <jimb@redhat.com>
1165 * macroscope.c: #include "complaints.h".
1166 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1167 but not in the macro table.
1168 * Makefile.in (macroscope.o): Record dependency.
1170 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1172 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1174 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1176 * regcache.c (deprecated_registers_fetched): Update.
1177 * regcache.h (deprecated_registers_fetched): Rename
1179 * remote-vxsparc.c (vx_read_register): Update.
1180 * remote-vxmips.c (vx_read_register): Update.
1181 * remote-vx68.c (vx_read_register): Update.
1182 * irix5-nat.c (fetch_core_registers): Update.
1183 * mipsm3-nat.c (fetch_inferior_registers): Update.
1184 * sun3-nat.c (fetch_inferior_registers): Update.
1185 * symm-nat.c (fetch_inferior_registers): Update.
1186 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1187 (fetch_core_registers): Update.
1188 (fetch_kcore_registers): Update.
1189 * mips-nat.c (fetch_inferior_registers): Update.
1190 * corelow.c (get_core_registers): Update.
1191 * a68v-nat.c (fetch_inferior_registers): Update.
1193 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1195 Put in place the framework necessary for multiarching the hppa targets.
1196 * hppa-tdep.c (hppa_gdbarch_init): New function.
1197 (hppa_dump_tdep): New function.
1198 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1199 tdep structure dumper.
1200 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1201 until the multi-arching conversion has partially been completed.
1203 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1205 * valops.c (value_assign): Merge lval_register case into
1206 lval_reg_frame_relative. Use frame_register and
1207 regcache_cooked_write instead of get_saved_register and
1208 write_register_bytes. After flushing the register cache, try to
1209 re-select the selected frame.
1211 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1213 * regcache.h (deprecated_register_valid): Rename register_valid.
1214 * regcache.c: Update.
1215 * ia64-aix-nat.c: Update.
1216 * i386gnu-nat.c: Update.
1217 * alpha-nat.c: Update.
1218 * sparc-nat.c: Update.
1219 * lynx-nat.c: Update.
1220 * remote-mips.c: Update.
1222 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1224 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1225 to end of file, to be more consistent with the pratice followed
1228 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1230 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1231 (print_float_info): Print registers in float_reggroup.
1232 (print_vector_info): Print registers in vector_reggroup.
1233 (default_print_registers_info): When all, print registers in
1234 all_reggroup. Otherwize, print registers in general_reggroup.
1235 (registers_info): Rewrite. Add support for register groups.
1238 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1240 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1242 (symtab_symbol_info): Remove eons old ifdeffed out code.
1243 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1246 2002-11-06 Theodore A. Roth <troth@openavr.org>
1248 * c-exp.y: Add missing semi-colons.
1249 * f-exp.y: Add missing semi-colons.
1250 * m2-exp.y: Add missing semi-colons.
1251 * p-exp.y: Add missing semi-colons.
1252 Add empty action to start rule to avoid a type clash error when
1253 building with bison >= 1.50.
1255 2002-11-06 Jim Blandy <jimb@redhat.com>
1257 * macrotab.h (struct macro_source_file): Doc fix.
1259 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1261 * varobj.c (child_exists, cplus_number_of_children): Change
1262 STREQ macro references to strcmp.
1263 (cplus_name_of_child): Change code to handle the fact that
1264 fields are not necessarily contiguous with regards to their
1265 access control. This is a fix for PR gdb/792.
1267 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1269 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1270 * gdbarch.h, gdbarch.c: Regnerate.
1271 * frame.h (frame_register): Declare.
1272 * frame.c (frame_register): New function.
1273 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1274 GET_SAVED_REGISTER, otherwize call
1275 generic_unwind_get_saved_register.
1276 (frame_register_read): Use frame_register instead of
1279 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1281 From Jim Ingham <jingham@apple.com>:
1282 * event-top.c (gdb_disable_readline): New function.
1283 (_initialize_event_loop): Move comment.
1285 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1287 * event-loop.c (start_event_loop): Add comment.
1290 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1292 * infcmd.c (default_print_registers_info): Do not call
1293 PRINT_REGISTER_HOOK.
1295 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1297 * sparc-tdep.c (sparc_print_register_hook): Make static.
1298 (sparc_print_registers_info): New function.
1299 (sparc_do_registers_info): New function.
1300 (sparclet_print_registers_info): New function.
1301 (sparclet_do_registers_info): New function.
1302 (do_sparc_print_registers_info): New function.
1303 (sparc_print_registers): New static function, clone of infcmd.c's
1304 default_print_registers_info.
1305 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1306 (sparclet_do_registers_info): Declare.
1307 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1308 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1310 (sparc_do_registers_info): Declare.
1311 (PRINT_REGISTER_HOOK): Delete macro.
1312 (sparc_print_register_hook): Delete declaration.
1314 2002-11-05 David Carlton <carlton@math.stanford.edu>
1316 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1318 (lookup_symbol_aux_local): New function.
1319 (lookup_symbol_aux_symtabs): New function.
1320 (lookup_symbol_aux_psymtabs): New function.
1322 2002-11-05 David Carlton <carlton@math.stanford.edu>
1324 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1325 previous values of 'objfile' and 'block'.
1327 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1329 * values.c (value_change_enclosing_type): Set
1330 enclosing_type field correctly also for the case where
1331 more memory needs to be allocated.
1333 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1335 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1338 * i387-tdep.c (i387_print_float_info): Replace calls to
1339 register_read and deprecated_read_register_gen with calls to
1340 frame_register_read, and make the necessary adjustments to the
1343 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1345 * gdbarch.sh (register_reggroup_p): Allow default value.
1346 * gdbarch.h, gdbarch.c: Regenerate.
1348 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1350 * regcache.h: Add coment indicating replacements for deprecated
1353 2002-11-02 Andrew Cagney <cagney@redhat.com>
1355 * reggroups.h, reggroups.c: New files.
1356 * regcache.c: Include "reggroups.h".
1357 (enum regcache_dump_what): Add `regcache_dump_groups'.
1358 (regcache_dump): Contract size of the "Type" column. When
1359 specified, dump the register's groups.
1360 (maintenance_print_register_groups): New function.
1361 (_initialize_regcache): Add command `maint print register-groups'.
1362 * Makefile.in (COMMON_OBS): Add reggroups.o
1363 (SFILES): Add reggroups.c.
1364 (reggroups_h): Define.
1365 (regcache.o, gdbarch.o): Update dependencies.
1366 (reggroups.o): Specify dependencies.
1367 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1368 Add opaque declaration for `struct reggroup' in generated .h file.
1369 Include "reggroups.h" in generated .c file.
1370 gdbarch.h, gdbarch.c: Re-generate.
1372 2002-11-02 Andrew Cagney <cagney@redhat.com>
1374 * regcache.h (deprecated_read_register_gen): Rename
1376 (deprecated_write_register_gen): Rename write_register_gen.
1377 * i387-tdep.c: Update.
1378 * x86-64-linux-nat.c: Update
1380 * thread-db.c: Update.
1381 * win32-nat.c: Update.
1382 * mips-tdep.c: Update.
1383 * d10v-tdep.c: Update.
1384 * cris-tdep.c: Update.
1385 * remote-sim.c: Update.
1386 * remote-rdi.c: Update.
1387 * remote-rdp.c: Update.
1390 * blockframe.c: Update.
1391 * x86-64-tdep.c: Update.
1392 * xstormy16-tdep.c: Update.
1393 * sh-tdep.c: Update.
1394 * s390-tdep.c: Update.
1395 * rs6000-tdep.c: Update.
1396 * sparc-tdep.c: Update.
1397 * i386-tdep.c: Update.
1398 * dwarf2cfi.c: Update.
1399 * regcache.c: Update.
1401 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1403 New interix-specific files:
1404 * config/i386/nm-interix.h: New file.
1405 * config/i386/interix.mh: New file.
1406 * config/i386/interix.mt: New file.
1407 * i386-interix-nat.c: New file.
1408 * i386-interix-tdep.c: New file.
1410 2002-11-01 Andrew Cagney <cagney@redhat.com>
1412 * frame.h (deprecated_generic_get_saved_register): Rename
1413 generic_get_saved_register.
1414 * blockframe.c (deprecated_generic_get_saved_register): Update.
1415 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1416 (xstormy16_frame_saved_register): Update.
1417 * sh-tdep.c (sh_gdbarch_init): Update.
1418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1419 * ia64-tdep.c (ia64_get_saved_register): Update.
1420 * cris-tdep.c (cris_gdbarch_init): Update.
1421 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1422 * arm-tdep.c (arm_gdbarch_init): Update.
1424 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1426 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1428 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1430 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1431 trampolines in sigaction.
1433 2002-10-31 Andrew Cagney <cagney@redhat.com>
1435 * h8300-tdep.c: Include "gdb_assert.h".
1436 (h8300_print_register): Add gdbarch, file and frame parameters.
1437 Use frame_read_unsigned_register to read the register's value.
1438 Use fprintf_filtered to display output.
1439 (h8300_print_registers_info): Replace h8300_do_registers_info.
1440 (h8300_gdbarch_init): Set print_registers_info.
1442 2002-10-31 Andrew Cagney <cagney@redhat.com>
1444 * frame.c (frame_read_unsigned_register): New function.
1445 (frame_read_signed_register): New function.
1446 * frame.h (frame_read_unsigned_register): Declare.
1447 (frame_read_signed_register): Declare.
1449 2002-10-31 Andrew Cagney <cagney@redhat.com>
1451 * h8500-tdep.c (h8500_print_registers_info): New static function,
1452 clone of infcmd.c's default_print_registers_info.
1453 (h8500_do_registers_info): New funtion.
1454 (h8500_print_register_hook): Rename print_register_hook, make
1457 * config/h8500/tm-h8500.h: Update copyright.
1458 (DEPRECATED_DO_REGISTERS_INFO): Define.
1459 (h8500_do_registers_info: Declare.
1460 (PRINT_REGISTER_HOOK): Delete macro.
1461 (print_register_hook): Delete function.
1463 2002-10-31 Andrew Cagney <cagney@redhat.com>
1465 * z8k-tdep.c (z8k_print_register_hook): Make static.
1466 (z8k_print_registers_info): New static function, clone of
1467 infcmd.c's default_print_registers_info.
1468 (z8k_do_registers_info): New function. Wrap
1469 z8k_print_registers_info.
1470 * config/z8k/tm-z8k.h: Update copyright.
1471 (PRINT_REGISTER_HOOK): Delete macro.
1472 (z8k_print_register_hook): Delete declaration.
1473 (DEPRECATED_DO_REGISTERS_INFO): Define.
1474 (z8k_do_registers_info): Declare.
1476 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1478 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1479 as this is already provided by value.h, and was actually causing
1480 a compilation error because of a conflict in parameter type
1481 declaration due to a missing const keyword.
1482 (low_text_segment_addres): Fix a compilation warning.
1484 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1486 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1487 registers without a name.
1488 (mips_linux_cannot_store_register): Don't store registers without
1491 2002-10-28 David Carlton <carlton@math.stanford.edu>
1493 * symtab.c (find_addr_symbol): Delete. (It was already commented
1495 * symtab.h: Delete prototype for find_addr_symbol.
1497 2002-10-26 Andrew Cagney <cagney@redhat.com>
1499 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1501 gdbarch.h, gdbarch.c: Re-generate.
1502 * infcmd.c (default_print_registers_info): Update reference.
1503 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1504 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1505 * sh-tdep.c (sh_gdbarch_init): Ditto.
1506 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1507 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1509 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1511 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1512 cfi_init_extra_frame_info.
1513 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1514 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1516 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1517 target where necessary. Add more comments and remove the ones
1518 that don't provide any useful information.
1520 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1521 deprecated_read_register_dummy with
1522 frame_unwind_unsigned_register.
1524 * i386-tdep.c (i386_extract_struct_value_address): Use
1525 regcache_raw_read_unsigned instead of
1526 regcache_cooked_read_unsigned since we know that the register
1527 we're reading isn't a pseudo register. Rename variable 'val' into
1528 the more descriptive 'addr'.
1530 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1531 (x86_64_push_return_address): Add comment.
1532 (x86_64_pop_frame): Make static.
1533 (examine_argument): Clarify comment.
1534 (x86_64_skip_prologue): Make prolog_expact variable static.
1536 * dwarf2cfi.c: Fix some formatting problems.
1537 (context_cpy, read_encoded_pointer): Clarify comments.
1539 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1540 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1541 i386 target back into x86_64_gdbarch_init. Add some comments and
1542 remove meaningless ones.
1544 2002-10-25 Andrew Cagney <cagney@redhat.com>
1546 * complaints.h (struct deprecated_complaint): Rename `struct
1548 * complaints.c (complain): Update.
1549 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1550 incorrect comment indicating that "symfile.h" was being included
1551 for the `struct complaint' definition.
1552 * remote-vx.c: Update.
1553 * objc-lang.c: Update.
1554 * xcoffread.c: Update.
1556 * mdebugread.c: Update.
1557 * stabsread.c: Update.
1558 * dwarf2read.c: Update.
1559 * dwarfread.c: Update.
1560 * elfread.c: Update.
1561 * coffread.c: Update.
1562 * stabsread.h: Update.
1563 * dbxread.c: Update.
1564 * buildsym.c: Update.
1565 * gdbtypes.c: Update.
1566 * macrotab.c: Update.
1568 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1570 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1571 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1572 (x86_64_init_abi): ...new function.
1574 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1575 * i386v-nat.c: Include "i386-tdep.h".
1577 2002-10-25 Andrew Cagney <cagney@redhat.com>
1579 * gdbtypes.c (address_space_name_to_int): Update.
1580 (address_space_int_to_name): Update.
1581 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1582 multi-arch predicate.
1583 (address_class_name_to_type_flags): Ditto.
1584 * gdbarch.h, gdbarch.c: Re-generate.
1586 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1588 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1590 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1592 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1594 * symtab.h (INIT_SAL): Delete macro.
1596 * symtab.c (init_sal): New function.
1598 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1599 to init_sal function call.
1600 (find_sal_from_funcs_and_line): Ditto.
1601 (all_sals_for_line): Ditto.
1602 * breakpoint.c (create_internal_breakpoint): Ditto.
1603 (create_fork_vfork_event_catchpoint): Ditto.
1604 (create_exec_event_catchpoint): Ditto.
1605 (parse_breakpoint_sals): Ditto.
1606 (watch_command_1): Ditto.
1607 (handle_gnu_4_16_catch_command): Ditto.
1608 (clear_command): Ditto.
1609 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1610 * infcmd.c (run_stack_dummy): Ditto.
1611 * infrun.c (process_event_stop_test): Ditto.
1612 (check_sigtramp2): Ditto.
1613 (step_over_function): Ditto.
1614 * linespec.c (decode_line_2): Ditto.
1615 (decode_line_1): Ditto.
1616 * source.c (line_info): Ditto.
1617 * symtab.c (find_pc_sect_line): Ditto.
1619 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1621 * dwarf2cfi.c (struct context)
1622 (struct context_reg): Moved to dwarf2cfi.h
1623 (context_alloc, frame_state_alloc, context_cpy):
1624 Made extern instead of static, removed prototypes.
1625 * dwarf2cfi.h (struct context)
1626 (struct context_reg): New, moved from dwarf2cfi.c
1627 (context_alloc, frame_state_alloc, context_cpy):
1629 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1630 Changed from static to extern.
1631 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1632 (LINUX_SIGCONTEXT_FP_OFFSET)
1633 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1634 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1635 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1636 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1637 set_gdbarch_*() calls now use x86-64 specific functions
1638 instead of DWARF2 CFI ones.
1639 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1640 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1641 (x86_64_init_extra_frame_info): New prototypes.
1643 2002-10-23 David Carlton <carlton@math.stanford.edu>
1645 * linespec.c: #include "parser-defs.h".
1646 Delete prototype for find_template_name_end.
1647 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1649 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1651 * NEWS: add recent mi fixes.
1652 * varobj.c (struct varobj): Add new "updated" flag.
1653 (new_variable): Default "updated" flag to 0.
1654 (varobj_set_value): Set "updated" flag to 1 if value
1656 (varobj_update): Check varobj "updated" flag before
1657 comparing old and refreshed values. Fix for
1660 2002-10-23 David Carlton <carlton@math.stanford.edu>
1662 * parse.c (parse_exp_1): Use BLOCK_START.
1663 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1665 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1667 2002-10-23 David Carlton <carlton@math.stanford.edu>
1669 * symtab.c: Delete cplusplus_hint.
1670 Delete prototype for find_template_name_end.
1672 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1674 * symtab.h: Update comment.
1676 2002-10-23 Michael Snyder <msnyder@redhat.com>
1678 * printcmd.c (address_info): Restore quotes in output.
1679 * valops.c (value_of_local): Restore quotes in error message.
1681 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1683 * symtab.c (symbol_demangled_name): New function.
1684 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1685 turning most of it into a function.
1686 (symbol_demangled_name): Export.
1688 2002-10-23 Michael Snyder <msnyder@redhat.com>
1690 * valops.c (value_of_local): Restore quotes in error message.
1692 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1694 * symtab.c (symbol_init_language_specific): New function.
1695 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1696 turning most of it into a function.
1697 (symbol_init_language_specific): Export.
1699 2002-10-23 David Carlton <carlton@math.stanford.edu>
1701 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1702 (dwarf_attr_name): Ditto.
1703 (dwarf_type_encoding_name): Ditto.
1704 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1705 (process_die): Handle DW_TAG_namespace,
1706 DW_TAG_imported_declaration, DW_TAG_imported_module.
1707 (read_namespace): New function.
1709 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1711 * configure.in: Define NEW_PROC_API on Interix too.
1712 * configure: Regenerate.
1714 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1716 * configure: Regenerate using the proper version of autoconf.
1718 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1720 * findvar.c (read_var_value): Temporarily disable TLS code, until
1721 complete TLS support is added.
1723 2002-10-21 Jim Blandy <jimb@redhat.com>
1724 Elena Zannoni <ezannoni@redhat.com>
1726 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1727 for thread local storage locations.
1728 (struct symbol): Add objfile field.
1729 (SYMBOL_OBJFILE): Define.
1730 * dwarf2read.c (is_thread_local): New static variable.
1731 (new_symbol): If variable is in thread local fill in address class
1732 and objfile appropriately.
1733 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1735 * printcmd.c (address_info): Print the information for thread
1736 local storage variable.
1737 * findvar.c (read_var_value): In case of thread local variable,
1738 defer to the target vector code to compute address.
1740 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1742 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1743 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1745 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1747 * symtab.h (address_class): Rename
1748 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1749 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1750 * printcmd.c (address_info): Ditto.
1751 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1753 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1755 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1756 DBREG_DRX macro to acces debug registers.
1758 * Makefile.in (i386obsd-tdep.o): New target.
1760 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1761 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1763 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1764 * config/i386/obsd.mt: New file.
1765 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1766 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1767 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1768 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1769 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1770 * i386obsd-tdep.c: New file.
1772 2002-10-19 Adam Fedor <fedor@gnu.org>
1774 * objc-exp.y (name_not_typename): Fix invalid comment.
1776 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1778 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1779 to allocate partial syms and macro byte caches.
1781 2002-10-18 David Carlton <carlton@math.stanford.edu>
1783 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1785 2002-10-18 Adam Fedor <fedor@gnu.org>
1787 * stabsread.c (find_name_end): New function.
1788 (define_symbol): Use it.
1790 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1792 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1793 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1794 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1795 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1797 2002-10-17 David Carlton <carlton@math.stanford.edu>
1799 * symfile.h: Add opaque declaration for struct obstack.
1800 Declare obsavestring to take a const char *.
1801 * symfile.c (obsavestring): Make first argument a const char *.
1803 2002-10-16 Adam Fedor <fedor@gnu.org>
1805 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1806 names when matching breakpoints in current file.
1808 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1810 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1811 (read_tag_pointer_type): Add address class support.
1812 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1813 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1815 * gdbarch.h, gdbarch.c: Regenerate.
1816 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1817 (make_type_with_address_space, recursive_type_dump): Add address
1819 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1820 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1821 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1823 2002-10-16 Klee Dienes <kdienes@apple.com>
1825 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1826 to get the last character of a char[] buffer, not
1827 name[sizeof(vptr_name)-1].
1829 2002-10-14 Adam Fedor <fedor@gnu.org>
1831 * symtab.h: New objc_specific struct.
1832 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1833 (SYMBOL_DEMANGLED_NAME): Likewise.
1835 2002-10-14 Adam Fedor <fedor@gnu.org>
1837 * symfile.c (init_filename_language_table): Add ObjC file extension.
1839 2002-10-14 Adam Fedor <fedor@gnu.org>
1841 * utils.c (puts_filtered_tabular): New function.
1842 (fprintf_symbol_filtered): Get ObjC demangled name.
1843 * defs.h (puts_filtered_tabular): Declared.
1845 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1847 * c-lang.h (c_type_print_varspec_prefix): Delete.
1848 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1849 ``need_post_space'' parameter. Adjust all callers.
1851 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1853 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1854 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1855 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1856 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1858 2002-10-13 Adam Fedor <fedor@gnu.org>
1860 * source.c (print_source_lines): Update comments.
1862 2002-10-13 Adam Fedor <fedor@gnu.org>
1864 * valops.c (value_of_local): New function.
1865 (value_of_this): Use it.
1866 * value.h (value_of_local): Declared.
1868 2002-10-13 Adam Fedor <fedor@gnu.org>
1870 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1871 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1873 2002-10-12 Adam Fedor <fedor@gnu.org>
1875 * language.c (binop_result_type): Add language_objc to case.
1876 (integral_type): Likewise.
1877 (character_type): Likewise.
1878 (string_type): Likewise.
1879 (boolean_type): Likewise.
1880 (structured_type): Likewise.
1881 (binop_type_check): Likewise.
1883 2002-10-11 Adam Fedor <fedor@gnu.org>
1885 * printcmd.c (address_info): Print 'self' for ObjC.
1887 2002-10-11 Adam Fedor <fedor@gnu.org>
1889 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1892 2002-10-11 Adam Fedor <fedor@gnu.org>
1894 * language.h (CAST_IS_CONVERSION): Add language_objc.
1896 2002-10-11 Adam Fedor <fedor@gnu.org>
1898 * defs.h (enum language): Add language_objc.
1900 2002-10-11 Klee Dienes <kdienes@apple.com>
1902 * corefile.c (read_memory_typed_address): New function.
1903 * gdbcore.h (read_memory_typed_address): Add prototype.
1904 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1905 to read a value destined for a CORE_ADDR, not read_memory_integer.
1906 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1907 (f77_get_dynamic_lowerbound): Ditto.
1909 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1911 * utils.c (string_to_core_addr): After turning string into
1912 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1913 which will do necessary sign-extension, etc.
1915 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1917 * c-exp.y (THIS): Delete token and grammar rule.
1918 (yylex): Don't return THIS.
1919 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1920 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1921 * demangle.c (cplus_markers): Update comment. Put '$'
1922 first. Remove CPLUS_MARKER.
1923 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1924 * jv-exp.y (THIS): Delete token and grammar rule.
1925 (yylex): Don't return THIS.
1926 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1927 * objc-exp.y (THIS): Delete token and grammar rule.
1928 (yylex): Don't return THIS.
1929 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1930 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1931 (read_member_functions): Likewise for opname.
1932 (read_tilde_fields): Use is_cplus_marker.
1934 * defs.h (CPLUS_MARKER): Don't define.
1935 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1936 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1937 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1938 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1939 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1941 * config/i386/tm-i386v4.h: Delete file.
1942 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1943 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1944 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1945 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1946 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1947 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1948 * config/i386/i386v4.mt (TM_FILE): Likewise.
1949 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1951 2002-10-10 Marko Mlinar <markom@opencores.org>
1953 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1954 accidentially not commited 2002-10-09
1955 * gdbarch.h, gdbarch.c: Re-generate.
1957 2002-10-09 Marko Mlinar <markom@opencores.org>
1959 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1960 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1961 * gdbarch.h, gdbarch.c: Re-generate.
1963 2002-10-08 Petr Sorfa <petrs@caldera.com>
1965 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1967 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1968 so we can work on more than one compilation unit at a time. This
1969 helps prepare GDB to handle inter-CU die references.
1970 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1971 the code to be defined before struct comp_unit_head.
1972 (comp_unit_head): Added new members - offset, cu_head,
1973 begin_die, next and dwarf2_abbrevs.
1974 (dwarf2_abbrevs): Removed single static var; now member of
1975 struct comp_unit_head.
1976 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1978 (psymtab_to_symtab_1): Changed to work with the new
1979 struct comp_unit_head.
1980 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1981 constructs the dwarf2_abbrevs[] inside the cu_header.
1982 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1983 dwarf2_abbrev table to clean up.
1984 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1985 handling of dwarf2_abbrevs inside the cu_header.
1986 (read_partial_die): Now supports the call to the new
1987 dwarf2_lookup_abbrev.
1988 (read_full_die): Now supports the call to the new
1989 dwarf2_lookup_abbrev.
1991 2002-10-06 Christopher Faylor <cgf@redhat.com>
1993 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1994 insure that shell variables, such as "transformed_name" are propagated
1995 to later shell statements in rule.
1997 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1999 * config/i386/nm-i386sco.h: Add protection against
2000 multiple-inclusion. Include "i386/nm-i386v.h".
2001 (REGISTER_U_ADDR): Remove define.
2002 (i386_register_u_addr): Remove prototype.
2004 2002-10-04 Michael Snyder <msnyder@redhat.com>
2006 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2007 before treating it as a single-step event.
2009 2002-10-03 Adam Fedor <fedor@gnu.org>
2011 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2012 (objc_demangle): Remove assignment in if statements, Replace
2014 (add_msglist): Likewise.
2015 (end_msglist): Likewise.
2016 (complare_selectors): Likewise.
2017 (selectors_info): Likewise.
2018 (compare_classes): Likewise.
2019 (classes_info): Likewise.
2020 (print_object_command): Likewise.
2021 (find_objc_msgcall_submethod): Replace PTR with void *.
2022 * objc-lang.h: Remove check for __STDC__.
2024 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2026 * ui-out.h (ui_out_field_fmt_int): New prototype.
2027 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2028 of field width and alignment.
2029 * stack.c (print_frame_info_base): When printing frame level, use
2030 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2033 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2035 * MAINTAINERS: Add self to Write After Approval list.
2037 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2039 * infcmd.c (interrupt_target_command_wrapper): Delete.
2040 (interrupt_target_command): Make non static.
2041 (nofp_registers_info): Make static.
2042 * stack.c (return_command_wrapper): Delete.
2043 (return_command): Make non static.
2045 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2047 * event-top.c (gdb_setup_readline): New function. Code moved from
2048 _initialize_event_loop().
2049 (_initialize_event_loop): Call gdb_setup_readline().
2051 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2053 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2054 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2055 * gdbarch.h, gdbarch.c: Re-generate.
2057 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2060 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2062 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2063 of fill_in_vptr_fieldno.
2065 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2067 * inferior.h (registers_info, stepi_command, nexti_command,
2068 continue_command, interrupt_target_command): Export from infcmd.c.
2069 * frame.h (args_info, selected_frame_level_changed_hook,
2070 return_command): Export from stack.c.
2071 * v850ice.c (stepi_command, nexti_command, continue_command): use
2072 prototypes from inferior.h.
2073 * tracepoint.c (registers_info, args_info, locals_info): Use
2074 prototypes from frame.h and inferior.h.
2075 * Makefile.in (mi-main.o): Add dependency on frame.h.
2077 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2079 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2080 value in register 3 adjusted by ppc_gp0_regnum.
2082 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2084 2002-10-02 Marko Mlinar <markom@opencores.org>
2086 * MAINTAINERS: Add myself to the Write After Approval list.
2088 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2090 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2091 of the section for the N64 ABI, fixed.
2093 * config/mips/tm-irix6.h: Include solib.h.
2095 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2097 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2100 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2102 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2103 and that "mi0" syntax has been removed.
2105 2002-09-30 David Carlton <carlton@math.stanford.edu>
2107 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2108 * ppc-sysv-tdep.c: #include "gdb_string.h".
2109 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2112 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2114 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2115 "vrsave"'s register number.
2117 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2119 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2120 use frame_unwind_signed_register to obtain the PC.
2121 (mips_frame_chain): Handle a generic dummy frame.
2122 (mips_init_extra_frame_info): When a generic dummy frame, don't
2123 re-compute the frame base.
2124 (mips_pop_frame): Handle generic dummy frames.
2125 (mips_gdbarch_init): When generic dummy frames, set
2126 use_generic_dummy_frames, push_dummy_frame to
2127 generic_push_dummy_frame, pc_in_call_dummy to
2128 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2129 generic_save_dummy_frame_tos.
2131 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2133 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2134 against TOP when TOP was explictly set.
2135 (generic_push_dummy_frame): Set TOP to zero.
2137 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2139 * event-loop.c (start_event_loop): Rename variable 'result' to
2140 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2142 2002-09-30 Keith Seitz <keiths@redhat.com>
2144 * gdb-events.sh (selected_thread_changed): New event.
2145 * gdb-events.c: Regenerated.
2146 * gdb-events.h: Regenerated.
2148 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2150 * MAINTAINERS: Add self to Write After Approval list.
2152 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2154 * disasm.c: New file.
2155 * disasm.h: New file.
2156 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2157 (compare_lines): Ditto.
2158 (dump_insns): Ditto.
2159 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2161 (do_assembly_only): Ditto.
2162 (do_disassembly): Renamed to gdb_disassembly and moved to
2163 disasm.c. Sdded uiout argument.
2164 * Makefile.in: Add new files. Reorder SFILES list. Update
2165 dependencies. Include libgdb.a later in the insight executable.
2167 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2169 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2170 bfd/elf64-alpha-fbsd.c.
2172 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2174 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2177 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2179 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2181 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2183 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2184 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2185 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2186 (S_msg_sig_post_reply): Ditto.
2188 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2190 * sh-tdep.c (sh_use_struct_convention): Use definition according
2192 (sh_push_arguments): Store in register with correct endianess.
2193 (sh_default_store_return_value): Ditto.
2194 (sh_gdbarch_init): Set sizeof long double to 8.
2196 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2198 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2199 Fix some whitespace problems.
2201 2002-09-27 David Carlton <carlton@math.stanford.edu>
2203 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2204 (mcore-tdep.o): Ditto.
2205 (ns32k-tdep.o): Ditto.
2206 (ns32knbsd-tdep.o): Ditto.
2208 (vax-tdep.o): Ditto.
2209 * cris-tdep.c: #include "gdb_string.h"
2210 * mcore-tdep.c: Ditto.
2211 * ns32k-tdep.c: Ditto.
2212 * ns32knbsd-tdep.c: Ditto.
2214 * vax-tdep.c: Ditto.
2216 2002-09-27 David Carlton <carlton@math.stanford.edu>
2218 * config/djgpp/fnchange.lst: Add entries for
2219 gdb/testsuite/gdb.c++/m-static files.
2221 2002-09-27 Jim Wilson <wilson@redhat.com>
2223 * MAINTAINERS: Add myself to the Write After Approval list.
2225 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2227 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2230 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2232 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2235 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2237 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2238 (rs6000_struct_return_address): Delete variable.
2239 (rs6000_store_struct_return): Update.
2240 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2241 deprecated_extract_struct_value_address.
2242 (rs6000_frame_align): New function.
2243 (rs6000_gdbarch_init): Set frame_align.
2245 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2247 From Grace Sainsbury <graces@redhat.com>:
2248 * Makefile.in (gdbtk-main.o): New target.
2249 (gdb.o): New target.
2251 (main.o): Update dependencies.
2252 (gdb$(EXEEXT)): Add gdb.o.
2253 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2254 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2255 (SUBDIR_GDBTK_CLEAN): Set.
2256 (install-gdbtk): Install the insight binary.
2257 (uninstall-gdbtk): New target.
2258 (all-gdbtk, clean-gdbtk): New rule.
2259 * top.c (use_windows): Default to zero.
2260 * main.c: Include "main.h".
2262 (struct captured_main_args): Delete.
2263 (gdb_main): New function.
2267 2002-09-25 Andrew Cagney <cagney@redhat.com>
2269 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2270 (frame_map_regnum_to_name): New function.
2271 (frame_map_name_to_regnum): New function.
2272 * frame.h (frame_map_name_to_regnum): Declare.
2273 (frame_map_regnum_to_name): Declare.
2274 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2275 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2276 * parse.c: Do not include "builtin-regs.h".
2277 (target_map_name_to_register): Delete function.
2278 (write_dollar_variable): Use frame_map_name_to_regnum.
2279 * parser-defs.h (target_map_name_to_register): Delete declaration.
2280 * expprint.c: Include "frame.h".
2281 (print_subexp): Use frame_map_regnum_to_name.
2282 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2283 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2285 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2287 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2288 wasn't saved, and the next innermost frame is a dummy, return the
2289 dummy frame's link register.
2291 2002-09-24 Jim Blandy <jimb@redhat.com>
2293 Fix from Paul Breed:
2294 * main.c (captured_main): Add a `break' after the case for 'b'.
2296 2002-09-24 Keith Seitz <keiths@redhat.com>
2298 * varobj.c (c_type_of_child): Use get_target_type instead
2299 of TYPE_TARGET_TYPE.
2301 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2303 * source.c (get_current_or_default_source_symtab_and_line): Remove
2305 (set_default_source_symtab_and_line): New function. Attempts to
2306 determine a source file to list lines from if one is not currently
2308 (get_current_source_symtab_and_line): Initialize sal.pc and
2310 (set_current_source_symtab_and_line): Mark argument as const.
2311 * source.h: Update declarations and comments.
2312 * linespec.c (decode_line_1): Replace call to removed routine above.
2313 * stack.c (print_frame_info_base): Ditto.
2314 * cli/cli-cmds.c (edit_command): Ditto.
2315 (list_command): Ditto.
2317 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2319 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2320 sal.pc and sal.end fields.
2321 (get_current_or_default_source_symtab_and_line): Ditto.
2322 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2323 so we do not cause a new source symtab to be searched for (reverting an
2324 unintentional change from the 2002-09-20 patch).
2325 * scm-lang.c (scm_unpac): Ditto.
2327 2002-09-21 Andrew Cagney <cagney@redhat.com>
2329 * complaints.c (symfile_explanations): Remove new-line from
2330 ``isolated_message''.
2331 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2332 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2334 2002-09-20 Nick Clifton <nickc@redhat.com>
2336 * NEWS: Announce that V850EA ISA is no longer supported.
2337 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2339 2002-09-20 David Carlton <carlton@math.stanford.edu>
2341 * Makefile.in (c-lang.o): Correct dependencies.
2342 (utils.o): Gather dependencies.
2344 * c-lang.c: #include "gdb_string.h"
2346 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2348 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2349 * cli/cli-cmds.c (list_command): New function. Implements the new
2351 (_init_cli_cmds): Add new command definition.
2352 * gdb.1: Document edit command.
2353 * doc/gdb.texinfo: Document edit command.
2355 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2357 * source.c: Make global variables current_source_symtab and
2358 current_source_line static.
2359 (list_command): Moved to cli/cli-cmds.c.
2360 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2361 (get_first_line_listed): New accessor function.
2362 (get_lines_to_list): New accessor function.
2363 (get_current_source_symtab_and_line): New function. Retrieves the
2364 position in the source code that we consider current.
2365 (get_current_or_default_source_symtab_and_line): New function.
2366 Like the above but attempts to determine a default position if one
2367 is not currently defined.
2368 (set_current_source_symtab_and_line): New function. Sets the source
2369 code position considered current and returns the previously set one.
2370 (clear_current_source_symtab_and_line): Reset stored information about
2371 a current source line.
2372 (_initialize_source): Remove registration for the "list" command and
2374 * source.h: Add declarations for the new functions above.
2375 * symtab.h: Remove declarations for the global variables mentioned
2377 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2378 obtain current source line.
2379 * linespec.c (decode_line_1): Ditto.
2380 * macroscope.c (default_macro_scope): Ditto.
2381 * scm-lang.c (scm_unpac): Ditto.
2382 * stack.c (print_frame_info_base): Ditto.
2383 * symfile.c (clear_symtab_users): Ditto.
2384 * symtab.c (decode_line_spec): Ditto.
2385 * cli/cli-cmds.c (list_command): Moved here from source.c.
2386 (ambiguous_line_spec): Moved here from source.c.
2387 (_init_cli_cmds): Add definition for "list" and its alias.
2388 * Makefile.in: Update dependencies.
2390 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2392 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2393 with what gcc thinks is correct.
2395 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2397 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2398 multiple register push instruction.
2400 2002-09-19 Jim Blandy <jimb@redhat.com>
2402 Add support for distinct host and target character sets.
2403 * charset.c, charset.h: New files.
2404 * c-exp.y: #include "charset.h".
2405 (yylex): Convert character and string literals to the target
2406 character set, before returning them as the semantic value of the
2408 * c-lang.c: #include "charset.h".
2409 (c_emit_char): Use charset-specific methods to recognize
2410 characters with backslash escape forms, to decide which characters
2411 to print literally and which to print using numeric escape
2412 sequences, and to convert target characters to host characters
2414 * utils.c: #include "charset.h".
2415 (no_control_char_error): New function.
2416 (parse_escape): Use charset-specific methods to recognize
2417 backslash escapes, parse `control character' notation, and convert
2418 characters from the host character set to the target character set.
2419 * configure.in: Set the default host character set.
2420 Check where to find iconv, and what its argument types might be.
2421 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2422 * Makefile.in (SFILES): List charset.c.
2423 (COMMON_OBS): List charset.o.
2424 (charset.o): New rule.
2425 (charset_h): New header dependency variable.
2426 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2427 (LIBICONV): New variable, set by configure.
2428 (CLIBS): Include $(LIBICONV) here.
2429 * aclocal.m4, config.in, configure: Regenerated.
2431 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2433 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2436 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2438 * gdb_mbuild.sh: New file.
2440 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2442 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2444 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2446 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2447 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2448 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2449 valops.c, value.h: Revert previous change.
2451 2002-09-18 Michael Snyder <msnyder@redhat.com>
2453 Preliminary support for Objective-C:
2454 * defs.h (language_objc): New enum value.
2455 (puts_filtered_tabular): Declaration only, exported from utils.c.
2456 (skip_quoted): Delete, declared in completer.h.
2457 * c-exp.y: Include completer.h.
2460 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2461 New operator enum values.
2462 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2463 * language.c (binop_result_type): Handle language_objc case.
2464 (integral_type, character_type, string_type, boolean_type,
2465 structured_type, binop_type_check): Ditto.
2466 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2467 (struct objc_specific): Add to general_symbol_info.
2468 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2469 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2470 * parser-defs.h (struct objc_class_str): New struct type.
2471 (start_msglist, end_msglist, add_msglist): Declaration only,
2472 exported from objc-lang.c.
2473 * value.h (value_of_local, value_nsstring,
2474 call_function_by_hand_expecting_type): Exported from valops.c.
2475 * valops.c (find_function_addr): Export.
2476 (call_function_by_hand_expecting_type): New function.
2477 (value_of_local): New function.
2478 * symfile.c (init_filename_language_table): Add ".m" extension
2480 * utils.c (puts_filtered_tabular): New function.
2481 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2482 (set/show demangle): Extend help-string to refer to ObjC.
2483 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2484 * stabsread.c (symbol_reference_defined): Objective-C symbols
2485 may contain colons: make allowances when scanning stabs strings
2487 (objc_find_colon): New function.
2488 * printcmd.c (address_info): If language == objc then print
2489 "self" instead of "this".
2490 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2491 OP_NSSTRING, and OP_SELF.
2492 (prefixify_subexp): Ditto.
2493 * source.c (print_source_lines): Mention objc in comment.
2494 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2497 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2499 * complaints.h: Update copyright.
2500 (struct complaints): Declare.
2501 (struct complaint): Make `message' constant.
2502 (internal_complaint): Declare.
2503 (complaint): Declare.
2504 (complaint_root): Delete declaration.
2505 (symfile_complaints): Delete declaration.
2506 (struct complaints): Add opaque declaration.
2507 (clear_complaints): Add a complaints parameter.
2508 * complaints.c: Update copyright.
2509 (enum complaint_series): Define.
2510 (complaint_root): Delete.
2511 (struct complaints): Define.
2512 (complaint_sentinel, symfile_complaint_book): New variables.
2513 (symfile_explanations, symfile_complaints): New variables.
2515 (get_complaints): New function.
2516 (vcomplaint): New function.
2517 (complaint): New function.
2518 (internal_complaint): New function.
2519 (complain): Call vcomplain with symfile_complaint.
2520 (clear_complaints): Rewrite.
2521 (_initialize_complaints): Use add_setshow_command.
2522 * Makefile.in (complaints.o): Update dependencies.
2523 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2524 to call to clear_complaints.
2525 (new_symfile_objfile, reread_symbols): Ditto.
2526 (oldsyms_complaint): Delete.
2527 (empty_symtab_complaint, unknown_option_complaint): Delete.
2528 (free_named_symtabs): Use complaint instead of complain.
2530 2002-09-18 Michael Snyder <msnyder@redhat.com>
2532 Contributed by Apple Computer, Inc. Merged with current sources
2533 by Adam Fedor <fedor@doc.com> [cagney].
2535 * objc-lang.c: First clean-up round: comments, indentation.
2536 * objc-lang.h: Ditto.
2537 * objc-lang.y: Ditto.
2539 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2541 * maint.c (maintenance_internal_error): Print the parameter as the
2543 (maintenance_internal_warning): New function.
2544 (_initialize_maint_cmds): Add command `maint internal-warning'.
2546 * defs.h (internal_warning, internal_vwarning): Declare.
2547 * utils.c (struct internal_problem): Define.
2548 (internal_vproblem): New function.
2549 (internal_warning): New function.
2550 (internal_vwarning): New function.
2551 (internal_warning_problem, internal_error_problem): New variables.
2552 (internal_verror): Just call internal_vproblem.
2554 2002-09-18 Michael Snyder <msnyder@redhat.com>
2556 * objc-lang.c: New file, support for Objective-C.
2557 Preliminary check-in, not yet integrated into gdb.
2558 * objc-lang.h: New file.
2559 * objc-exp.y: New file.
2561 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2563 * infrun.c (signal_stop_update): Convert definition to ISO C.
2564 (signal_print_update): Ditto.
2565 (signal_pass_update): Ditto.
2566 * inflow.c (terminal_save_ours): Ditto.
2568 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2571 * config/djgpp/fnchange.lst: Handle name clashes between
2572 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2575 * i386-linux-tdep.h: Fix tipo.
2577 2002-09-18 Adam Fedor <fedor@gnu.org>
2579 * MAINTAINERS: Add myself to the Write After Approval list.
2581 2002-09-18 Jim Blandy <jimb@redhat.com>
2583 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2584 texthigh and textlow to reader-specific structs caused
2585 objfile_relocate to miss them. This is fixable, but the work that
2586 the change was supposed to prepare GDB for never got done anyway.
2588 2002-09-18 David Carlton <carlton@math.stanford.edu>
2590 * MAINTAINERS: Alphabetize Write After Approval list.
2592 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2595 * values.c (value_static_field): Call read_var_value.
2597 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2599 * valops.c (hand_function_call): Align the initial stack pointer
2600 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2601 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2603 * mips-tdep.c (mips_frame_align): New function.
2604 (mips_gdbarch_init): Set frame_align.
2605 * gdbarch.sh (FRAME_ALIGN): New method.
2606 * gdbarch.h, gdbarch.c: Re-generate.
2608 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2610 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2613 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2615 * NEWS: Mention that MIPS $fp behavior changed.
2616 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2617 reference to FP_REGNUM.
2618 (mipsnbsd_cannot_store_register): Ditto.
2619 * mips-linux-nat.c: Update copyright.
2620 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2621 (mips_linux_cannot_store_register): Ditto.
2622 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2623 * config/mips/tm-mips.h: Update copyright.
2624 (FP_REGNUM): Delete macro.
2625 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2626 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2627 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2628 (mips_r3041_reg_names, mips_r3051_reg_names)
2629 (mips_r3081_reg_names): Replace "fp" with "".
2632 2002-09-17 Theodore A. Roth <troth@verinet.com>
2634 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2635 generic_read_register_dummy() (PR gdb/703).
2636 (avr_push_return_address): #if 0 out unused vars.
2637 (avr_gdbarch_init): Enable use of avr_push_return_address().
2639 2002-09-17 Michael Snyder <msnyder@redhat.com>
2641 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2642 RTE will take care of it.
2644 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2646 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2647 invalid, return SP_REGNUM.
2649 2002-09-17 Michael Snyder <msnyder@redhat.com>
2651 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2652 point registers without sign extension.
2654 2002-09-17 Andrew Cagney <cagney@redhat.com>
2656 * blockframe.c (deprecated_read_register_dummy): Rename
2657 generic_read_register_dummy.
2658 * frame.c (frame_unwind_signed_register): New function.
2659 (frame_unwind_unsigned_register): New function.
2660 * frame.h (frame_unwind_signed_register): Declare.
2661 (frame_unwind_unsigned_register): Declare.
2662 (deprecated_read_register_dummy): Rename
2663 generic_read_register_dummy.
2665 * h8300-tdep.c (h8300_frame_chain): Update.
2666 (h8300_frame_saved_pc): Update.
2667 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2668 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2669 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2670 (s390_frame_chain): Update.
2671 * v850-tdep.c (v850_find_callers_reg): Update.
2672 (v850_frame_saved_pc): Update.
2673 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2674 (m32r_find_callers_reg): Update.
2675 (m32r_frame_saved_pc): Update.
2676 * sh-tdep.c (sh_find_callers_reg): Update.
2677 (sh64_get_saved_pr): Update.
2678 (sh_init_extra_frame_info): Update.
2679 (sh_init_extra_frame_info): Update.
2680 (sh64_init_extra_frame_info): Update.
2681 (sh64_init_extra_frame_info): Update.
2682 * mcore-tdep.c (mcore_find_callers_reg): Update.
2683 (mcore_frame_saved_pc): Update.
2684 (mcore_init_extra_frame_info): Update.
2685 * i386-tdep.c (i386_frame_saved_pc): Update.
2686 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2687 (ia64_init_extra_frame_info): Update.
2688 (ia64_init_extra_frame_info): Update.
2689 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2690 * cris-tdep.c (cris_init_extra_frame_info): Update.
2691 * avr-tdep.c (avr_frame_chain): Update.
2692 (avr_init_extra_frame_info): Update.
2693 (avr_frame_saved_pc): Update.
2694 * arm-tdep.c (arm_find_callers_reg): Update.
2695 (arm_init_extra_frame_info): Update.
2696 (arm_frame_saved_pc): Update.
2698 2002-09-17 Tom Tromey <tromey@redhat.com>
2700 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2703 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2705 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2706 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2708 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2711 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2713 * osfsolib.c: Remove file, replaced by solib-osf.c.
2714 * Makefile.in: Remove compilation rules for osfsolib.c.
2716 2002-09-16 David Carlton <carlton@math.stanford.edu>
2718 * cp-valprint.c (cp_print_class_method): Correct args to
2719 check_stub_method_group.
2721 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2723 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2724 `set architecture'. Unify naming convention of functions.
2725 (h8300_skip_prologue): Improve prologue analysis.
2726 (h8300_push_arguments): Rewritten to more closely match GCC's
2727 bizarre argument-passing behavior, along with the comment describing
2729 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2730 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2731 sim, remote-e7000.c, remote-hms.c and remote.c
2733 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2735 * i386-tdep.c (gdb_print_insn_i386): Removed.
2736 (i386_print_insn): New function.
2737 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2738 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2741 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2743 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2746 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2748 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2749 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2750 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2752 2002-09-13 Christopher Faylor <cgf@redhat.com>
2754 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2756 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2758 * gdbtypes.c (check_stub_method): Make static.
2759 (check_stub_method_group): New function.
2760 * gdbtypes.h: Update prototypes.
2761 * cp-support.c: New file.
2762 * cp-support.h: New file.
2764 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2765 (update_method_name_from_physname): New function.
2766 (read_member_functions): Correct method names for operators
2767 and v3 constructors/destructors. Separate v2 constructors and
2769 * Makefile.in (stabsread.o): Update dependencies.
2770 (SFILES): Add cp-support.c.
2771 (COMMON_OBS): Add cp-support.o.
2772 (cp_support_h, cp-support.o): Add.
2774 * cp-valprint.c (cp_print_class_method): Call
2775 check_stub_method_group instead of check_stub_method. Remove
2777 * p-valprint.c (pascal_object_print_class_method): Likewise.
2778 * valops.c (search_struct_method): Likewise.
2779 (find_method_list, value_struct_elt_for_reference): Likewise.
2781 2002-09-13 Andrew Cagney <cagney@redhat.com>
2783 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2784 * gdbarch.h, gdbarch.c: Regenerate.
2786 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2788 * frame.c (find_saved_register): Delete function.
2789 * frame.h (find_saved_register): Delete declaration.
2792 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2794 * mips-tdep.c (read_next_frame_reg): Re-hack using
2795 frame_register_unwind.
2797 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2799 * mips-tdep.c (mips_get_saved_register): Re-hack using
2800 frame_register_unwind.
2802 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2804 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2805 vector. Will be useful for Interix.
2806 * gdbarch.h, gdbarch.c: Regenerate.
2808 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2809 name of the malloc function by NAME_OF_MALLOC.
2811 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2813 * value.h (find_function_in_inferior): Add const keyword to
2814 one of the parameters. Allows us to invoke this function with
2816 * valops.c (find_function_in_inferior): Likewise.
2818 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2820 * exec.c (xfer_memory): Fix compilation warning with old versions
2822 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2824 2002-09-12 David Carlton <carlton@math.stanford.edu>
2826 * symtab.h: Run through gdb_indent.h.
2827 Add 2002 to Copyright year list.
2829 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2831 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2833 * MAINTAINERS: Add myself to write after approval list.
2835 2002-09-11 J. Brobecker <brobecker@gnat.com>
2837 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2839 2002-09-11 J. Brobecker <brobecker@gnat.com>
2841 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2844 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2846 * procfs.c (do_detach): Clear current signal, not just fault.
2847 Corrects problem with breakpoint trap signal leaking to detached
2850 2002-09-10 Michael Snyder <msnyder@redhat.com>
2852 * buildsym.c (finish_block): Protect against null pointer.
2854 2002-09-10 Andrew Cagney <cagney@redhat.com>
2856 * infcmd.c (default_print_registers_info): Send all output to
2857 ``file'' instead of ``gdb_stdout''.
2859 2002-09-10 Michael Snyder <msnyder@redhat.com>
2861 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2862 LONGEST, and use signed register read (addresses are sign-
2865 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2867 * event-loop.c (gdb_do_one_event): Make public.
2868 * event-loop.h (gdb_do_one_event): Declare.
2870 2002-09-10 Jeff Law <law@redhat.com>
2872 * infttrace.c (child_resume): Simplify and rework to avoid
2875 2002-09-09 Fred Fish <fnf@intrinsity.com>
2877 * printcmd.c (print_scalar_formatted): "len" is the number of
2878 target bytes, NOT the number of target bits.
2880 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2882 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2883 * top.c (init_main): Set rl_terminal_name.
2885 2002-09-08 Aidan Skinner <aidan@velvet.net>
2887 * ada-lang.c (ada_array_bound, ada_type_match,
2888 _initialize_ada_language): Fix K&R definitions.
2889 * ada-tasks.c (get_current_task): Fix K&R definitions.
2890 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2892 2002-09-07 Christopher Faylor <cgf@redhat.com>
2894 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2897 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2899 * i386-tdep.c (i386_register_virtual_type,
2900 i386_register_convertible, i386_register_convert_to_virtual,
2901 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2902 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2903 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2904 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2905 Don't set push_arguments twice.
2907 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2908 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2909 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2910 sigtramp_end to NULL.
2911 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2913 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2915 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2918 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2919 * gdbarch.h, gdbarch.c: Re-generate.
2920 * blockframe.c (find_pc_sect_partial_function): Convert to use
2921 SIGTRAMP_START_P predicate.
2923 2002-09-05 Michael Snyder <msnyder@redhat.com>
2925 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2926 generic_dummy_frame method and old method. Also distinguish
2927 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2928 (arm_extract_return_value): Use new regcache method.
2930 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2931 adjustment that doesn't conform to the ABI.
2932 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2933 saved regcache, not from current regcache.
2935 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2937 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2940 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2942 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2943 if arm_apcs_32 is false.
2945 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2947 GDB 5.3 branch created.
2949 2002-09-03 Theodore A. Roth <troth@verinet.com>
2951 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2952 generic_unwind_get_saved_register.
2954 2002-09-03 David Carlton <carlton@math.stanford.edu>
2956 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2957 argument (PR gdb/653). Update call to smash_to_method_type.
2958 (read_structure_scope): Update call to dwarf2_add_member_fn.
2960 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2962 * x86-64-linux-tdep.c: Include gdb_string.h
2963 * x86-64-linux-nat.c: Ditto.
2965 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2967 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2968 when YYDEBUG is set to 1.
2969 * c-exp.y: Likewise.
2970 * f-exp.y: Likewise.
2971 * jv-exp.y: Likewise.
2972 * m2-exp.y: Likewise.
2973 * p-exp.y: Likewise.
2975 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2977 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2979 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2980 solib_svr4_fetch_link_map_offsets to
2981 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2982 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2983 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2984 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2985 solib-svr4.o, and solib-legacy.o.
2986 * config/i386/tm-nbsd.h: Include solib.h.
2988 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2990 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2991 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2992 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2993 comment noting that this needs its own target configuration.
2994 * config/i386/nbsd.mt: New file.
2995 * config/i386/nbsdaout.mt: Remove.
2996 * config/i386/nbsdelf.mt: Ditto.
2997 * config/i386/tm-nbsdaout.h: Ditto.
2999 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3001 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3002 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3003 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3005 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3006 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3007 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3009 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3011 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3012 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3013 * i386-tdep.h (i386bsd_init_abi): New prototype.
3014 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3015 function declaration.
3016 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3017 for NetBSD-a.out or NetBSD-ELF.
3018 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3019 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3020 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3021 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3023 (i386nbsd_pc_in_sigtramp): New function.
3024 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3025 i386nbsd_pc_in_sigtramp.
3026 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3027 and i386nbsdelf_init_abi OS ABI handlers.
3028 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3029 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3031 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3033 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3034 registers if the target really has them.
3036 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3038 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3041 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3043 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3045 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3046 (alphanbsd_skip_sigtramp_frame): New functions.
3047 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3048 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3049 to alphanbsd_sigcontext_addr.
3051 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3053 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3055 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3056 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3057 nbsd_pc_in_sigtramp.
3058 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3059 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3060 * nbsd-tdep.c: Include gdb_string.h.
3061 (nbsd_pc_in_sigtramp): New function.
3062 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3063 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3064 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3065 ppcnbsd_pc_in_sigtramp.
3066 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3067 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3068 shnbsd_pc_in_sigtramp.
3069 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3070 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3071 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3073 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3075 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3076 watchpoints to NULL.
3077 (insert_breakpoints): set val field of watchpoints if NULL.
3080 2002-08-29 Jim Blandy <jimb@redhat.com>
3082 * symtab.c (lookup_symbol_aux): In the cases where we find a
3083 minimal symbol of an appropriate name and use its address to
3084 select a symtab to read and search, use `name' (as passed to us)
3085 as the demangled name when searching the symtab's global and
3086 static blocks, not the minsym's name.
3088 2002-08-29 Keith Seitz <keiths@redhat.com>
3090 * stack.c (print_frame_info_base): Always set current_source_symtab
3091 and current_source_line.
3093 2002-08-29 Donn Terry <donnte@microsoft.com>
3095 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3097 2002-08-28 Keith Seitz <keiths@redhat.com>
3099 * stack.c (select_frame): Add FIXME concerning selected-frame
3101 (select_frame_command): Send selected-frame-level-changed
3102 event notification, but only if the level actually changed.
3103 (up_silently_base): Add selected-frame-level-changed event
3105 (down_silently_base): Likewise.
3107 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3109 * Makefile.in: Update dependencies for all gdb/*.c files.
3111 2002-08-27 Tom Tromey <tromey@redhat.com>
3113 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3114 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3115 Update dependencies.
3116 * i387-tdep.c: Include gdb_string.h.
3117 * osabi.c: Likewise.
3118 * i386-linux-nat.c: Likewise.
3119 * lin-lwp.c: Likewise.
3120 * ax-gdb.c: Likewise.
3121 * signals/signals.c: Likewise.
3122 * jv-valprint.c: Likewise.
3123 * p-lang.c: Likewise.
3124 * c-valprint.c: Likewise.
3125 * cp-abi.c: Likewise.
3127 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3129 * cli/cli-script.h (copy_command_lines): Export.
3130 * breakpoint.c: Include cli/cli-script.h.
3131 * Makefile.in (breakpoint.o): Update dependencies.
3133 2002-08-26 Michael Snyder <msnyder@redhat.com>
3135 * breakpoint.c (insert_breakpoints): Protect all references
3136 to 'process_warning'. Shorten long lines.
3138 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3140 * cli/cli-script.c (copy_command_lines): New function.
3141 * defs.h (copy_command_lines): Export.
3142 * testsuite/gdb.base/commands.exp: New tests for commands
3143 attached to a temporary breakpoint, and for commands that
3144 delete the breakpoint they are attached to.
3146 2002-08-26 Michael Snyder <msnyder@redhat.com>
3148 * breakpoint.c (bpstat_stop_status): Instead of copying the
3149 pointer to the breakpoint commands struct, make a new copy
3150 of the struct and point to that.
3151 (bpstat_clear): Free the commands struct.
3152 (bpstat_clear_actions): Free the commands struct.
3153 (bpstat_do_actions): Free the command actions. Also execute
3154 the local cleanups, instead of deleting them.
3155 (delete_breakpoint): Leave the commands field of the bpstat
3156 chain alone -- it will be freed later.
3158 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3160 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3161 deleted in 2002-08-20 commit. This function is still used by
3164 2002-08-26 Keith Seitz <keiths@redhat.com>
3166 * gdb-events.sh: Add selected-frame-level-changed event.
3167 * gdb-events.c: Regenerated.
3168 * gdb-events.h: Regenerated.
3170 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3173 * inflow.c (terminal_save_ours): New function to save terminal
3175 * inferior.h (terminal_save_ours): Declare.
3176 * target.c (debug_to_terminal_save_ours): New function.
3177 (cleanup_target): Defaults to_terminal_save_ours.
3178 (update_current_target): Inherit to_terminal_save_ours.
3179 (setup_target_debug): Set to_terminal_save_ours.
3180 * target.h (target_terminal_save_ours): New to save terminal settings.
3181 (target_ops): New member to_terminal_save_ours.
3182 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3183 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3184 * inftarg.c (init_child_ops): Likewise.
3185 * m3-nat.c (init_m3_ops): Likewise.
3186 * procfs.c (init_procfs_ops): Likewise.
3187 * wince.c (init_child_ops): Likewise.
3188 * win32-nat.c (init_child_ops): Likewise.
3189 * sol-thread.c (init_sol_thread_ops): Likewise.
3191 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3193 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3194 use regcache_* functions.
3195 (i386_gdbarch_init): Set store_return_value instead of
3196 deprecated_store_return_value.
3198 * regcache.c (regcache_raw_write_signed,
3199 regcache_raw_write_unsigned): New functions.
3200 * regcache.h (regcache_raw_write_signed,
3201 regcache_raw_write_unsigned): New prototypes.
3203 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3205 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3206 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3207 source file dependencies. Cleanup corresponding generator rules.
3209 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3211 * regcache.h (register_offset_hack): Declare.
3212 (regcache_cooked_read_using_offset_hack): Declare.
3213 (regcache_cooked_write_using_offset_hack): Declare.
3215 * regcache.c (register_offset_hack): New function.
3216 (regcache_cooked_read_using_offset_hack): New function.
3217 (regcache_cooked_write_using_offset_hack): New function.
3218 (regcache_dump): Check that the registers, according to their
3219 offset, are packed hard against each other.
3220 (cooked_xfer_using_offset_hack): New function.
3222 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3224 * regcache.c (struct regcache_descr): Add field register_type.
3225 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3227 (init_regcache_descr): Initialize register_type. Pass the descr
3228 to init_legacy_regcache_descr. Use register_type instead of
3229 REGISTER_VIRTUAL_TYPE.
3230 (register_type): New function.
3231 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3232 * regcache.h (register_type): Declare.
3234 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3236 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3237 instead of deprecated_store_return_value. Fix fallout from
3238 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3240 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3242 * regcache.c (max_register_size): New function.
3243 (init_legacy_regcache_descr): Ensure that max_register_size is
3244 large enough for REGISTER_VIRTUAL_SIZE.
3245 * regcache.h (max_register_size): Declare.
3247 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3249 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3251 (e500_extract_return_value): Change type of valbuf pointer to
3254 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3256 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3259 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3260 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3261 long long) to prevent compiler warning on 64-bit systems.
3263 2002-08-23 Andrew Cagney <cagney@redhat.com>
3265 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3266 (DEPRECATED_STORE_RETURN_VALUE): New method.
3267 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3268 * gdbarch.h, gdbarch.c: Re-generate.
3270 * values.c (set_return_value): Pass current_regcache to
3272 * arch-utils.h (legacy_store_return_value): Declare.
3273 * arch-utils.c (legacy_store_return_value): New function.
3274 (legacy_extract_return_value): Update parameters.
3276 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3278 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3279 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3280 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3281 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3282 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3283 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3284 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3285 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3286 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3287 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3290 * i386-tdep.c (i386_extract_return_value): Update.
3291 * arch-utils.c (legacy_extract_return_value): Update.
3292 * frv-tdep.c (frv_gdbarch_init): Update.
3293 * cris-tdep.c (cris_gdbarch_init): Update.
3294 * d10v-tdep.c (d10v_gdbarch_init): Update.
3295 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3296 * m68k-tdep.c (m68k_gdbarch_init): Update.
3297 * mcore-tdep.c (mcore_gdbarch_init): Update.
3298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3299 * s390-tdep.c (s390_gdbarch_init): Update.
3300 * sparc-tdep.c (sparc_gdbarch_init): Update.
3301 * sh-tdep.c (sh_gdbarch_init): Update.
3302 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3303 * v850-tdep.c (v850_gdbarch_init): Update.
3304 * avr-tdep.c (avr_gdbarch_init): Update.
3305 * ia64-tdep.c (ia64_gdbarch_init): Update.
3306 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3307 * vax-tdep.c (vax_gdbarch_init): Update.
3308 * alpha-tdep.c (alpha_gdbarch_init): Update.
3309 * arm-tdep.c (arm_gdbarch_init): Update.
3310 * mips-tdep.c (mips_gdbarch_init): Update.
3311 * i386-tdep.c (i386_gdbarch_init): Update.
3313 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3315 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3316 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3318 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3320 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3323 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3325 * infrun.c (handle_inferior_event): Move a comment outside of a
3326 function call, in order to avoid indent reformatting this part
3327 of the code in an unreadable way.
3329 2002-08-23 Grace Sainsbury <graces@redhat.com>
3331 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3332 when breakpoints fail. Move general breakpoint error messages to
3334 * breakpoint.c (insert_breakpoints): Change warnings when
3335 breakpoints are nto inserted to specify the type. Remove call to
3336 memory_error when hardware breakpoints can't be inserted. Remove
3337 multiple calls to warning so all messages are sent to the user at
3339 (delete_breakpoints): Make insert error messsages more explicit.
3341 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3343 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3344 gdbserver/ChangeLog.
3346 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3348 * i386-tdep.c: Include "objfiles.h".
3349 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3350 skip_trampoline_code.
3351 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3352 (CPLUS_MARKER): Define to '.'.
3354 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3356 (linux_corefile_thread_callback): Increase args->num_notes.
3357 (linux_make_note_section): Initialize thread_args.num_notes, and
3358 use it to determine whether notes for any threads were created.
3360 2002-08-23 Donn Terry <donnte@microsoft.com>
3362 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3363 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3365 (write_with_trace): Conditionalize out the switch branch handling
3366 PCSHOLD if the corresponding macro is not defined. Likewise for
3367 PRSABORT and PRSTOP.
3368 This change will be needed by the Interix port.
3370 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3372 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3373 write_register wherever possible instead of manipulating the
3374 register bytes directly.
3375 Assign VALUE_CONTENTS to a variable and use that.
3376 The GPR numbers are now dependent on the architecture.
3378 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3380 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3382 (skip_prologue): Add support for BookE/e500 instructions.
3383 (e500_extract_return_value): New function.
3384 (frame_get_saved_regs): Add support for saving ev registers and
3386 (e500_store_return_value): New function.
3387 (rs6000_gdbarch_init): Move up default intializations of
3388 deprecated_extract_return_value and store_return_value. Overwrite
3389 init of store_return_value with e500 specific version.
3390 Set extract_return_value for e500.
3392 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3394 * blockframe.c (generic_call_dummy_register_unwind): Use
3395 regcache_cooked_read to catch cases in which the variable is
3396 stored in a pseudo register.
3398 2002-08-22 Andrew Cagney <cagney@redhat.com>
3400 * NEWS: Mention that the i960 has been made obsolete.
3401 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3403 (remote-nrom.o): Obsolete target.
3404 (remote-nindy.o, i960-tdep.o): Ditto.
3405 * remote-nrom.c: Make file obsolete.
3406 * remote-nindy.c, remote-vx960.c: Ditto.
3407 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3408 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3409 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3410 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3411 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3412 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3413 i960-*-vxworks* obsolete.
3414 * MAINTAINERS: Note that the i960 is obsolete.
3416 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3418 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3419 detach to allow reinitialization.
3421 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3423 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3426 2002-08-22 Jim Blandy <jimb@redhat.com>
3428 * coffread.c (coff_symfile_read): Don't try to read the line
3429 number table from disk if the image file doesn't have a symbol
3430 table; we'll never actually look at the info anyway, and Windows
3431 ships DLL's with bogus file offsets for the line number data.
3433 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3435 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3438 2002-08-21 Michael Snyder <msnyder@redhat.com>
3440 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3441 (MSYMBOL_SIZE): Replace macro with function.
3442 (DEFAULT_MIPS_TYPE): Delete unused macro.
3443 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3444 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3446 2002-08-21 Jim Blandy <jimb@redhat.com>
3448 * valops.c (value_cast): Simplify and correct logic for doing a
3449 static cast from a pointer to a base class to a pointer to a
3452 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3454 * infcmd.c (default_print_registers_info): Replace
3456 (registers_info): Use gdbarch_print_registers_info instead of
3458 * inferior.h (default_print_registers_info): Replace
3460 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3461 (DO_REGISTERS_INFO): Change to a predicate function.
3462 * gdbarch.h, gdbarch.c: Regenerate.
3464 2002-08-21 Keith Seitz <keiths@redhat.com>
3466 * gdb-events.sh: Add target-changed event.
3467 * gdb-events.c: Regenerated.
3468 * gdb-events.c: Regenerated.
3469 * valops.c (value_assign): Add target-changed event notification
3470 to inlval_register, lval_memory, and lval_reg_frame_relative.
3472 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3474 * NEWS: Add an entry regarding the improvement of the next/step
3475 operation on Alpha Tru64 multi-processor machines.
3477 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3479 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3481 * Makefile.in: Update all _h macro definitions.
3482 * Makefile.in (install-gdbtk): Move to install section.
3483 (rdi-share/libangsd.a): Move to end of file.
3485 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3487 * frame.c (frame_register_unwind): When a register, set addrp to
3488 the register's byte.
3490 2002-08-20 Michael Snyder <msnyder@redhat.com>
3492 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3493 used locally, so move them from the target machine header to here.
3494 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3495 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3497 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3499 2002-08-20 Andrew Cagney <cagney@redhat.com>
3501 * NEWS: Mention that the Apollo line was made obsolete.
3502 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3503 m68*-hp-hpux* obsolete.
3504 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3505 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3506 * buildsym.c (make_blockvector): Make static.
3507 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3508 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3509 (ALLDEPFILES): Remove dstread.c.
3510 (dstread.o): Obsolete make rule.
3511 * dstread.c: Makefile obsolete.
3513 * config/m68k/hp300hpux.mt: Ditto.
3514 * config/m68k/hp300hpux.mh: Ditto.
3515 * config/m68k/hp300bsd.mt: Ditto.
3516 * config/m68k/hp300bsd.mh: Ditto.
3517 * config/m68k/apollo68b.mt: Ditto.
3518 * config/m68k/apollo68v.mh: Ditto.
3519 * config/m68k/apollo68b.mh: Ditto.
3521 2002-08-20 Michael Snyder <msnyder@redhat.com>
3523 * mips-tdep.c (mips_in_return_stub): Make static.
3524 (mips_gdbarch_init): Set in_solib_return_trampoline.
3525 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3527 2002-08-20 Michael Snyder <msnyder@redhat.com>
3529 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3530 * gdbarch.c, gdbarch.h: Regenerate.
3531 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3533 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3535 2002-08-20 Michael Snyder <msnyder@redhat.com>
3537 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3538 (mips_gdbarch_init): Set skip_trampoline_code,
3539 in_solib_call_trampoline.
3540 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3541 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3543 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3545 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3547 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3548 vector type for ev registers.
3549 (e500_pseudo_register_read): New function.
3550 (e500_pseudo_register_write): New function.
3551 (e500_dwarf2_reg_to_regnum): New function.
3552 (PPC_UISA_NOFP_SPRS): New macro.
3553 (PPC_EV_REGS): New macro.
3554 (PPC_GPRS_PSEUDO_REGS): New macro.
3555 (registers_e500): New register set for e500.
3556 (variants): Add e500 variant.
3557 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3558 before setting architectural dependent variations. Initialize ev
3559 registers numbers. Add case for e500 architecture. Set the
3560 number of pseudo registers.
3562 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3564 * rs6000-tdep.c: Clean up comments.
3566 2002-08-20 Andrew Cagney <cagney@redhat.com>
3568 * h8300-tdep.c: Re-indent file.
3570 2002-08-20 Jim Blandy <jimb@redhat.com>
3572 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3575 2002-08-20 Keith Seitz <keiths@redhat.com>
3577 * breakpoints.c (watch_command_1): Use internal breakpoint
3578 when setting a watchpoint_scope breakpoint.
3580 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3582 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3583 (build_builtin_type_vec64i): Ditto.
3584 (build_builtin_type_vec128): Ditto.
3585 (build_builtin_type_vec128i): Ditto.
3587 2002-08-19 Michael Snyder <msnyder@redhat.com>
3589 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3590 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3591 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3592 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3593 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3594 CALL_DUMMY_ADDRESS): Delete.
3595 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3596 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3597 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3598 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3599 push_return_address.
3600 (mips_register_raw_size, mips_eabi_use_struct_convention,
3601 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3602 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3603 mips_init_extra_frame_info, mips_eabi_push_arguments,
3604 mips_n32n64_push_arguments, mips_push_return_address,
3605 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3606 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3608 2002-08-19 Michael Snyder <msnyder@redhat.com>
3610 * mips-tdep.c (mips_frame_num_args): New function.
3611 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3612 frame_saved_pc, frame_args_address, frame_locals_address,
3613 frame_num_args, and frame_args_skip.
3614 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3615 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3616 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3617 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3619 2002-08-20 Michael Snyder <msnyder@redhat.com>
3621 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3622 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3623 * mips-tdep.c (mips_store_struct_return): New function.
3624 (mips_extract_struct_value_address): New function.
3625 (mips_gdbarch_init): Set store_struct_return and
3626 extract_struct_value_address.
3628 2002-08-20 David Carlton <carlton@math.stanford.edu>
3630 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3631 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3632 (read_file_scope): Check that line_header is nonzero before
3633 decoding macro information.
3635 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3637 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3638 flag the general-purpose registers as floating-point on targets
3639 that don't support the floating-point registers.
3641 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3643 * rs6000-tdep.c (altivec_register_p): Delete.
3644 (rs6000_do_altivec_registers): Delete.
3645 (rs6000_altivec_registers_info): Delete.
3646 (rs6000_do_registers_info): Delete.
3647 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3648 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3650 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3652 * infcmd.c (do_registers_info): Print vector registers in hex
3654 (print_vector_info): Check that printing registers
3656 (print_float_info): Ditto.
3658 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3660 * mips-tdep.c (mips_gdbarch_init): Update.
3661 (mips_o32_extract_return_value): Rewrite.
3662 (mips_o32_store_return_value): Rewrite.
3663 (mips_o32_xfer_return_value): New function.
3664 (mips_xfer_register): Tweak debug print message. Allow for
3665 buf_offset when dumping the value transfered.
3667 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3669 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3670 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3671 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3672 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3673 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3675 2002-08-14 Michael Snyder <msnyder@redhat.com>
3677 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3679 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3681 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3683 (P): New macro to define a register as a pseudo register.
3684 (R, R4, R8, R16, FR32, R64, R0): Updated.
3685 (struct variant): Add new fields for number of pseudo registers
3686 and number of total registers.
3687 (tot_num_registers): New macro replacing....
3688 (num_registers): ...deleted macro.
3689 (num_registers): New function.
3690 (num_pseudo_registers): New function.
3691 (variants): Update all variants to intialize new fields correctly.
3692 Postpone initialization of number of pseudo regs and real regs.
3693 (init_variants): New function.
3694 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3697 2002-08-19 David Carlton <carlton@math.stanford.edu>
3699 * valops.c (search_struct_field): Change error message to treat
3700 return value of 0 from value_static_field as meaning that field is
3702 (value_struct_elt_for_reference): Ditto.
3703 * values.c (value_static_field): Treat an unresolved location the
3704 same as a nonexistent symbol. Fix PR gdb/635.
3705 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3706 enclosed. Fix PR gdb/574.
3707 * MAINTAINERS: Add self to Write After Approval list.
3709 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3711 * mips-tdep.c (mips_xfer_register): New function.
3712 (mips_n32n64_extract_return_value): Rewrite.
3713 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3714 instead of deprecated_extract_return_value.
3716 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3718 * rs6000-tdep.c (TDEP): Delete macro.
3719 (branch_dest): Replace use of TDEP macro with its body.
3720 (rs6000_pop_frame): Ditto.
3721 (rs6000_push_arguments): Ditto.
3722 (rs6000_skip_trampoline_code): Ditto.
3723 (rs6000_frame_saved_pc): Ditto.
3724 (rs6000_frame_chain): Ditto.
3725 (rs6000_register_name): Ditto.
3726 (rs6000_register_byte): Ditto.
3727 (rs6000_register_raw_size): Ditto.
3728 (rs6000_register_virtual_type): Ditto.
3729 (rs6000_register_convertible): Ditto.
3730 (rs6000_convert_from_func_ptr_addr): Ditto.
3732 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3734 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3736 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3737 MIPS_LINUX_JB_ELEMENT_SIZE.
3738 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3739 for MAX_REGISTER_RAW_SIZE arrays.
3740 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3741 MIPS_LINUX_JB_ELEMENT_SIZE.
3743 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3745 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3747 2002-08-19 Aidan Skinner <aidan@velvet.net>
3749 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3750 ada-valprint.c ada-tasks.c.
3751 (YYFILES): Add ada-exp.y.
3752 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3753 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3754 (ada-exp.tab.o): New target.
3756 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3758 * regcache.c (regcache_xfer_part): New function.
3759 (regcache_raw_read_part): New function.
3760 (regcache_raw_write_part): New function.
3761 (regcache_cooked_read_part): New function.
3762 (regcache_cooked_write_part): New function.
3763 * regcache.h (regcache_raw_read_part): Declare.
3764 (regcache_raw_write_part): Declare.
3765 (regcache_cooked_read_part): Declare.
3766 (regcache_cooked_write_part): Declare.
3768 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3770 * remote.c (remote_open_1): Add async_p.
3771 (remote_async_open_1): Delete.
3772 (open_remote_target): Delete.
3773 (remote_open, extended_remote_open): Update calls to remote_open_1.
3774 (remote_async_open, extended_remote_async_open): Call
3775 remote_open_1 instead of remote_async_open_1.
3777 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3779 * blockframe.c: Fix a few coding standard violations.
3781 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3783 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3785 * config/i386/tm-i386sco5.h: ... here. File removed.
3786 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3788 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3789 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3790 (TM_FILE): Set to tm-i386.h.
3791 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3792 * config/i386/tm-i386v.h: Remove file.
3793 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3794 instead of "i386/tm-i386v.h".
3795 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3796 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3798 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3799 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3802 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3804 * config/i386/nm-i386v.h: Add protection against
3806 (i386_register_u_addr): Remove prototype.
3807 (register_u_addr): New prototype.
3808 (REGISTER_U_ADDR): Redefine accordingly.
3809 * i386v-nat.c: Improve several comments.
3810 (i386_register_u_addr): Change signature and rename to
3811 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3814 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3816 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3817 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3818 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3819 deprecated_extract_return_value.
3820 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3821 rename mips_o32o64_push_arguments.
3822 (mips_gdbarch_init): Update.
3823 (mips_extract_return_value): Delete.
3824 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3825 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3826 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3827 (mips_n32n64_extract_return_value): Clone
3828 mips_extract_return_value.
3829 (mips_store_return_value): Delete.
3830 (mips_o32_store_return_value): Clone mips_store_return_value.
3831 (mips_o64_store_return_value): Clone mips_store_return_value.
3832 (mips_eabi_store_return_value): Clone mips_store_return_value.
3833 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3835 2002-08-18 Aidan Skinner <aidan@velvet.net>
3837 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3838 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3840 2002-08-18 Aidan Skinner <aidan@velvet.net>
3842 * ada-lang.c: Run through gdb_indent.sh.
3843 * ada-lang.h: Run through gdb_indent.sh.
3844 * ada-tasks.c: Run through gdb_indent.sh.
3845 * ada-typeprint.c: Run through gdb_indent.sh.
3846 * ada-valprint.c: Run through gdb_indent.sh.
3848 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3850 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3853 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3855 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3857 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3858 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3860 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3861 write_register_gen instead of write_register_bytes.
3863 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3864 i[3456]-*-osf1mk* configurations have been made obsolete.
3865 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3866 i[3456]86-*-osf1mk* hosts obsolete.
3867 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3869 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3870 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3871 config/i386/i386m3.mt, config/i386/nm-m3.h,
3872 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3873 config/i386/i386mk.mh, config/i386/i386mk.mt,
3874 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3876 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3877 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3878 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3880 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3882 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3883 (hppa_value_returned_from_stack): Declare.
3884 (hppa_extract_return_value): Declare.
3885 * config/pa/hppa.mt: New file.
3886 * configure.tgt: Recognize hppa*-*-*.
3887 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3889 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3891 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3894 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3896 * top.c (gdb_rl_operate_and_get_next): Make sure
3897 operate-and-get-next functions correctly even when the history
3898 list is completely filled.
3900 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3902 * MAINTAINERS (Target Instruction Set Architectures): Rename
3903 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3904 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3905 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3906 already listed under Host/Native.
3908 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3909 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3912 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3914 * config/ia64/ia64.mt: New file.
3915 * config/alpha/alpha.mt: New file.
3916 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3917 ia64-linux-gnu. Mention that ia64-elf is broken.
3918 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3920 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3922 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3923 generic_func_frame_valid instead of func_frame_valid.
3925 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3927 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3928 procfs appears to be broken when debugging on multi-processor
3929 machines. So enable software single stepping in order to avoid
3930 using the procfs interface to do next/step operations, using
3931 internal breakpoints instead.
3933 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3934 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3935 make this pc address equal to the value it would have if the
3936 system stepping capability was used. Also set a new flag used
3937 to ensure that we don't readjust the PC one more time later.
3939 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3940 address by DECR_PC_AFTER_BREAK when software single step is
3941 in use for this architecture, as this has already been taken
3942 care of in handle_inferior_event().
3944 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3946 * infrun.c (handle_inferior_event): Minor reformatting, to make
3947 a rather long condition expression easier to read.
3949 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3951 * Makefile.in (gdbtk.o): Move to end of file.
3952 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3953 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3954 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3955 (gdbtk-wrapper.o, gdbres.o): Ditto.
3957 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3959 * Makefile.in (copying.o): Separate out compile rule.
3960 (hpux-thread.o, procfs.o, signals.o): Ditto.
3961 (v850ice.o, z8k-tdep.o): Ditto.
3962 (tui-file.o): Move to TUI section.
3963 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3964 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3966 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3968 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3969 skip_trampoline_code, for better namespace-proofing.
3971 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3973 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3975 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3977 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3979 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3980 signal, check whether we hit a breakpoint before checking for a
3981 single step breakpoint. Otherwise, GDB fails to notice that a
3982 breakpoint has been hit when stepping onto a breakpoint.
3984 2002-08-16 Keith Seitz <keiths@redhat.com>
3986 * gdb-events.sh (clear_gdb_event_hooks): New function.
3987 * gdb-events.c: Regenerate.
3988 * gdb-events.h: Regenerate.
3990 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3992 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3993 not_a_sw_breakpoint.
3994 * breakpoint.h (bpstat_stop_status): Add parameter names.
3996 2002-08-16 Grace Sainsbury <graces@redhat.com>
3998 * remote.c (remote_insert_hw_breakpoint)
3999 (remote_remove_hw_breakpoint): Fix calculation of length field
4002 2002-08-15 Michael Snyder <msnyder@redhat.com>
4004 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4005 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4006 (supply_fpregset): Ditto.
4008 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4009 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4010 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4011 (TARGET_READ_SP): Delete.
4012 (DO_REGISTERS_INFO): Delete.
4013 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4015 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4016 from macros to functions.
4018 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4019 (mips_register_convertible, mips_register_convert_to_virtual,
4020 mips_register_convert_to_raw): Make static.
4021 (mips_read_sp): New function.
4022 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4023 (mips_do_registers_info): Make static.
4024 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4025 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4026 (mips_register_convert_from_type, mips_register_convert_to_type):
4028 (mips_gdbarch_init): Set up function_start_offset,
4029 register_virtual_size, pc_in_sigtramp.
4031 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4033 * infcmd.c (vector_info): New function.
4034 (_initialize_infcmd): Add command "info vector".
4035 (print_vector_info): New function.
4037 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4038 * gdbarch.h, gdbarch.c: Regenerate.
4040 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4042 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4043 ``print_all''. Only print vector registers when ``print_all''.
4045 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4047 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4048 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4050 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4051 Add `args' parameter.
4052 * gdbarch.h, gdbarch.c: Regenerate.
4054 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4056 * infcmd.c (float_info): Call print_float_info.
4057 (print_float_info): New function. By default, print the
4058 floating-point registers.
4060 * arch-utils.h (default_print_float_info): Delete declaration.
4061 * arch-utils.c (default_print_float_info): Delete function.
4063 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4065 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4068 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4071 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4072 * configure.host: Make i[3456]86-*-aix host obsolete.
4073 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4074 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4075 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4076 config/i386/xm-i386aix.h: Make files obsolete.
4077 * i386aix-nat.c: Make file obsolete.
4078 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4079 (i386aix-nat.o): Make target obsolete.
4081 * config/i386/nm-gnu.h: Removed.
4082 * config/i386/nm-i386gnu.h: New file.
4083 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4084 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4086 * config/i386/tm-i386gnu.h: ... here. Removed.
4087 * config/i386/xm-i386gnu.h: Removed.
4088 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4089 (NAT_FILE): Set to nm-i386gnu.h.
4090 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4091 * i386-tdep.c: New file.
4092 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4093 (i386gnu-tdep.o): Specify dependencies.
4095 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4097 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4098 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4099 Adjust a few comments to reflect reality a bit closer.
4100 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4101 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4102 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4103 target_insert_watchpoint, target_remove_watchpoint):
4105 * config/i386/nm-i386sco5.h: ... here.
4106 (kernel_u_size): Add prototype. Improve a few comments and add
4107 protection against multiple inclusion.
4109 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4112 * uw-thread.c (SP_ARG0): Define if not already defined.
4113 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4115 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4117 * config/i386/tm-i386.h: Don't include "regcache.h".
4119 * i387-tdep.h (i387_print_float_info): New prototype.
4120 * i387-tdep.c (print_i387_value, print_i387_ext,
4121 print_i387_status_word, print_i387_control_word): Add `struct
4122 ui_file *' argument and use it for output.
4123 (i387_print_float_info): Renamed from i387_float_info. Add
4124 `struct gdbarch *' and `struct ui_file *' arguments and use the
4126 * i386-tdep.c: Include "i387-tdep.h".
4127 (i386_gdbarch_init): Set print_float_info.
4128 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4129 (FLOAT_INFO): Remove define.
4131 2002-08-13 Michael Snyder <msnyder@redhat.com>
4133 * mips-tdep.c (mips_push_arguments): Rename to
4134 mips_eabi_push_arguments, and tune for EABI.
4135 (MIPS_REGS_HAVE_HOME_P): Delete.
4136 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4137 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4138 Delete references to mips_regs_have_home_p.
4140 2002-08-14 Keith Seitz <keiths@redhat.com>
4142 * Makefile.in (install-gdbtk): Create insight plugin directory.
4143 Install plugins.tcl file.
4145 2002-08-14 Keith Seitz <keiths@redhat.com>
4147 * configure.in: Move SUBDIRS to near top of the file so that
4148 --enable options may add things to it.
4149 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4150 * configure: Regenerate.
4152 2002-08-13 Michael Snyder <msnyder@redhat.com>
4154 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4155 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4156 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4158 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4160 * vax-tdep.c (vax_get_saved_register): Delete function.
4161 (vax_gdbarch_init): Update.
4162 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4163 (ns32k_gdbarch_init): Update.
4164 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4165 (alpha_gdbarch_init): Update.
4167 2002-08-13 Andrew Cagney <cagney@redhat.com>
4169 * regcache.c (init_regcache_descr): Overallocate the
4170 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4171 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4173 (set_register_cached): Add range checking assertions. Use
4176 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4178 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4179 numbers for MMX registers.
4181 2002-08-13 Andrew Cagney <cagney@redhat.com>
4183 * i386-tdep.c (i386_gdbarch_init): Use
4184 generic_unwind_get_saved_register.
4186 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4188 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4189 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4191 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4192 Delete. Add comment regarding this now-deleted target method.
4194 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4196 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4197 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4198 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4199 real PC and the page number (if it's within the memory bank window).
4200 (m68hc11_pseudo_register_write): Likewise when saving.
4201 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4202 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4203 (m68hc11_register_raw_size): And use 32-bit for it.
4204 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4205 16K memory bank is used by the prog; also use the virtual pc.
4207 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4209 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4210 (m68hc11_gdbarch_init): Install it in gdbarch.
4211 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4212 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4213 (MSYMBOL_SIZE): New for documentation.
4214 (insn_return_kind): Enum to specify how a function returns.
4215 (frame_extra_info): Cleanup and record the return mode.
4216 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4217 register in address computation.
4218 (m68hc11_get_return_insn): New to obtain the return instruction used
4220 (m68hc11_frame_init_saved_regs): Take into account the return
4221 instruction used by the function for far and interrupt functions.
4222 (m68hc11_init_extra_frame_info): Take into account page register.
4223 (m68hc11_frame_args_address): Adjust according to the return mode.
4224 (show_regs): Print page register only when it's used.
4226 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4228 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4229 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4230 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4232 (m68hc11_register_raw_size): Likewise.
4234 2002-08-13 Andrew Cagney <cagney@redhat.com>
4236 * i386-tdep.c (i386_register_name): Handle mmx registers.
4237 (mmx_regnum_p): New function.
4238 (i386_mmx_names): New array.
4239 (mmx_num_regs): New variable.
4240 (i386_pseudo_register_read): New function.
4241 (i386_pseudo_register_write): New function.
4242 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4244 * regcache.c (regcache_raw_read_unsigned): New function.
4245 (regcache_raw_read_signed): New function.
4246 * regcache.h (regcache_raw_read_unsigned): Declare.
4247 (regcache_raw_read_signed): Declare.
4249 2002-08-13 Andrew Cagney <cagney@redhat.com>
4251 * regcache.c (regcache_raw_read_as_address): Delete function.
4252 (regcache_cooked_read_signed): New function.
4253 (regcache_cooked_read_unsigned): New function.
4254 * regcache.h (regcache_cooked_read_signed): Declare.
4255 (regcache_cooked_read_unsigned): Declare.
4256 (regcache_raw_read_as_address): Delete declaration.
4258 * blockframe.c (generic_read_register_dummy): Use
4259 regcache_cooked_read_unsigned.
4260 * i386-tdep.c (i386_extract_struct_value_address): Use
4261 regcache_cooked_read_unsigned.
4263 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4266 double sizes according to ELF ABI flags.
4267 (gdbarch_tdep): Record elf_flags.
4269 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4271 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4272 (m6812_prolog): They can appear in 68HC12 function prologue.
4273 (m68hc11_frame_chain): Cleanup.
4275 2002-08-12 Andrew Cagney <cagney@redhat.com>
4277 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4279 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4280 (i386_linux_register_raw_size): Delete function.
4281 (i386_linux_init_abi): Update.
4282 * i386-tdep.c (i386_register_raw_size): Delete function.
4283 (i386_register_byte): Delete function.
4284 (i386_gdbarch_init): Update.
4285 (i386_register_size): Delete array.
4286 (i386_register_offset): Delete array.
4288 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4289 (REGISTER_RAW_SIZE): Delete macro.
4290 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4291 (REGISTER_BYTE): Delete macro.
4293 2002-08-11 Aidan Skinner <aidan@velvet.net>
4295 * ada-lang.c (ada_lookup_partial_symbol)
4296 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4297 prototype names so that grep ^func works properly.
4299 * ada-lang.c (ada_array_element_type)
4300 (ada_lookup_partial_symbol): Fix typos in parameter list.
4302 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4303 Fix prototype names so that grep ^func works properly.
4305 2002-08-10 Andrew Cagney <cagney@redhat.com>
4306 Elena Zannoni <ezannoni@redhat.com>
4307 Martin M. Hunt <hunt@redhat.com>
4309 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4310 (build_builtin_type_vec128i): Set the vector bit.
4311 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4312 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4313 (build_builtin_type_vec64): New function.
4314 (build_builtin_type_vec64i): New function.
4315 (build_gdbtypes): Initialize builtin_type_vec64 and
4316 builtin_type_vec64i.
4318 2002-08-09 Andrew Cagney <cagney@redhat.com>
4320 * regcache.c (regcache_dump): Compare the register offset
4322 * arch-utils.c (generic_register_byte): New function.
4323 * arch-utils.h (generic_register_byte): Declare.
4324 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4325 * gdbarch.h, gdbarch.c: Regenerate.
4327 2002-08-09 Andrew Cagney <cagney@redhat.com>
4329 * regcache.c: Include "gdbcmd.h"
4330 (_initialize_regcache): Add commands "maintenance print
4331 registers", "maintenance print raw-registers" and "maintenance
4332 print cooked-registers".
4333 (enum regcache_dump_what): Define.
4334 (dump_endian_bytes): New function.
4335 (regcache_dump): New function.
4336 (regcache_print): New function.
4337 (maintenance_print_registers): New function.
4338 (maintenance_print_raw_registers): New function.
4339 (maintenance_print_cooked_registers): New function.
4340 * Makefile.in (regcache.o): Update dependencies.
4342 2002-08-09 Michael Snyder <msnyder@redhat.com>
4344 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4345 (mips_push_arguments): Correct some comments. Use paddr_nz
4346 for printing addresses in debug output. Replace static
4347 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4348 (mips_n32n64_push_arguments): New function, cloned from
4349 mips_push_arguments and tuned for the n32/n64 ABI.
4350 (mips_push_register): Buffer needs dynamic allocation.
4351 (mips_print_register): Ditto.
4352 (do_gp_register_row): Ditto.
4353 (mips_store_return_value): Ditto.
4354 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4356 2002-08-09 Don Howard <dhoward@redhat.com>
4358 * memattr.c (mem_info_command): Print special case of upper bound
4359 as max CORE_ADDR + 1.
4361 2002-08-08 Michael Snyder <msnyder@redhat.com>
4363 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4364 returns structs by ref if they're too big to fit in two registers.
4366 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4368 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4370 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4371 mips_find_saved_regs().
4372 (mips_pop_frame): Likewise.
4374 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4376 * blockframe.c (frame_saved_regs_register_unwind): Revise
4377 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4380 2002-08-09 Grace Sainsbury <graces@redhat.com>
4382 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4383 T-packets; the 'a' is not taken as a register number.
4384 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4385 (remote_stopped_data_address): New functions; add to target
4387 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4388 prototypes to match other implementations of this
4389 function. replace integer argument with pointer -- the length
4390 field in the Z-packet is the length of what is pointed to or 1 if
4391 pointer is null. Add to target vector.
4392 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4396 * remote.c (remote_wait): Add support to extract optional
4397 watchpoint information from T-packet. Ignore unrecognized
4398 optional info in T-packet.
4399 (remote_async_wait): Ditto.
4401 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4403 * cli/cli-dump.c: Change fopen modes to use binary open modes
4404 as defined in include/fopen-bin.h throughout.
4406 2002-08-08 Michael Snyder <msnyder@redhat.com>
4408 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4410 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4412 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4413 assertion failure by returning early after a warning.
4415 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4417 * mips-tdep.c (mips_find_saved_regs): Make static.
4418 (mips_frame_init_saved_regs): New function.
4419 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4420 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4421 (mips_find_saved_regs): Delete declaration.
4423 2002-08-08 Grace Sainsbury <graces@redhat.com>
4425 * remote.c (remote_wait, remote_async_wait): Change
4426 thread_num from int to ULONGEST.
4427 (unpack_varlen_hex): Change result parameter from
4428 int * to ULONGEST *.
4430 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4432 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4433 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4435 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4437 2002-08-08 Andrew Cagney <cagney@redhat.com>
4439 * gcore.c (override_derive_stack_segment): Delete variable.
4440 (preempt_derive_stack_segment): Delete function.
4441 (derive_stack_segment): Delete function.
4442 (default_derive_stack_segment): Renamed to derive_stack_segment.
4443 (override_derive_heap_segment): Delete variable.
4444 (preempt_derive_heap_segment): Delete function.
4445 (derive_heap_segment): Delete function.
4446 (default_derive_heap_segment): Rename to derive_heap_segment.
4448 2002-08-06 Michael Snyder <msnyder@redhat.com>
4450 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4451 * mips-tdep.c (mips_EABI_use_struct_convention,
4452 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4453 New functions. (mips_use_struct_convention): Delete.
4454 (mips_gdbarch_init): set use_gdbarch_convention.
4456 2002-08-06 Michael Snyder <msnyder@redhat.com>
4458 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4459 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4460 mips_o32_reg_struct_has_addr): New functions.
4461 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4463 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4465 * regcache.c (pseudo_register): Delete function.
4466 (fetch_register): Delete function.
4467 (store_register): Delete function.
4468 (regcache_raw_read, legacy_read_register_gen): Use
4469 target_fetch_registers instead of fetch_register.
4470 (legacy_write_register_gen, regcache_raw_write): Use
4471 target_store_register instead of store_register.
4472 (write_register_bytes): Ditto.
4474 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4475 (STORE_PSEUDO_REGISTER): Delete.
4476 * gdbarch.h, gdbarch.c: Regenerate.
4478 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4480 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4481 write dump file binary.
4483 2002-08-05 Michael Snyder <msnyder@redhat.com>
4485 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4486 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4487 (mips_gdbarch_init): Set N32 target to be mips64.
4489 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4491 * frame.c (find_saved_register): Break out of loop once saved
4492 register address is found. Don't mention sparc in loop comment
4495 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4497 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4498 mips_default_saved_regsize to 8.
4500 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4502 * gcore.c: Do not include <sys/procfs.h>.
4503 * Makefile.in (gcore.o): Update dependencies.
4505 2002-08-06 Andrew Cagney <cagney@redhat.com>
4507 * configure.tgt: Make arc-*-* obsolete.
4508 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4509 * MAINTAINERS: Make arc-elf obsolete.
4510 * arc-tdep.c: Make file obsolete.
4511 * config/arc/arc.mt: Ditto.
4512 * config/arc/tm-arc.h: Ditto.
4514 2002-08-05 Theodore A. Roth <troth@verinet.com>
4516 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4518 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4520 * mcore-tdep.c (mcore_gdbarch_init): Use
4521 generic_unwind_get_saved_register instead of
4522 generic_get_saved_register.
4523 * v850-tdep.c (v850_gdbarch_init): Ditto.
4524 * frv-tdep.c (frv_gdbarch_init): Ditto.
4525 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4526 * s390-tdep.c (s390_gdbarch_init): Ditto.
4527 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4528 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4529 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4531 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4533 * objfiles.h: Add missing #include "symfile.h"
4535 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4537 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4539 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4540 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4543 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4545 * NEWS: Cleanup and nitpick.
4547 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4549 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4551 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4553 * Makefile.in (gdbtk-bp.o): Update dependencies.
4554 (gdbtk-register.o): Ditto.
4555 (gdbtk-varobj.o): Ditto.
4557 2002-08-03 Andrew Cagney <cagney@redhat.com>
4559 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4560 m68hc11_fetch_pseudo_register.
4561 (m68hc11_pseudo_register_write): Replace
4562 m68hc11_store_pseudo_register.
4563 (m68hc11_gdbarch_init): Update.
4565 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4567 * gdbarch.sh: Include "gdb_string.h".
4568 * gdbarch.c: Regenerate.
4570 * regcache.c: Include "gdb_string.h".
4571 * ax-general.c: Ditto.
4573 * std-regs.c: Ditto.
4574 * fbsd-proc.c: Ditto.
4577 * Makefile.in (regcache.o): Update dependencies.
4578 (thread.o, gdbarch.o): Ditto.
4579 (ax-general.o, gdbarch.o): Ditto.
4580 (varobj.o, std-regs.o): Ditto.
4581 (fbsd-proc.o): Specify dependencies.
4583 2002-08-02 Andrew Cagney <cagney@redhat.com>
4585 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4587 (regcache_cooked_write): Ditto.
4589 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4591 * regcache.c (regcache_cooked_read): New function.
4592 (regcache_cooked_write): New function.
4593 (read_register_gen): Rewrite using regcache_cooked_read.
4594 (write_register_gen): Rewrite using regcache_cooked_write.
4596 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4599 2002-08-02 Andrew Cagney <cagney@redhat.com>
4601 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4602 Replace the architecture methods register_read and register_write.
4603 * gdbarch.h, gdbarch.c: Regenerate.
4604 * regcache.c (init_regcache_descr): Update.
4605 (read_register_gen): Update.
4606 (write_register_gen): Update.
4607 (supply_register): Update comment.
4609 * sh-tdep.c (sh_gdbarch_init): Update.
4610 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4611 `regcache' and `gdbarch' parameters. Make `buffer' a void
4612 pointer. Update code.
4613 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4614 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4615 void pointer. Update code.
4616 (sh64_register_write): Delete.
4617 (sh4_register_read): Delete.
4618 (sh64_register_read): Delete.
4619 (sh4_register_write): Delete.
4620 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4621 void pointer, `to' parameter a void pointer.
4622 (sh_sh64_register_convert_to_raw): Ditto.
4624 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4626 * mips-tdep.c (mips_register_virtual_type): Use architecture
4627 invariant return values.
4629 2002-08-01 Andrew Cagney <cagney@redhat.com>
4631 * linux-proc.c: Include "gdb_string.h".
4632 * Makefile.in (linux-proc.o): Update dependency list.
4634 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4636 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4639 2002-08-01 Grace Sainsbury <graces@redhat.com>
4641 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4642 to_insert_watchpoint, to_remove_watchpoint,
4643 to_stopped_by_watchpoint, to_stopped_data_address,
4644 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4645 target vecctor. Define their corresponding macros so they call
4648 * target.c: Add default and debug versions of for
4649 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4650 to_insert_watchpoint, to_remove_watchpoint,
4651 to_stopped_by_watchpoint, to_stopped_data_address,
4652 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4654 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4656 * mips-tdep.c (mips_register_virtual_type): New function.
4657 (mips_gdbarch_init): Register mips_register_virtual_type()
4658 with gdbarch machinery.
4659 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4660 this file instead of tm-bigmips.h.
4661 (MIPS_REGSIZE): Delete this macro.
4662 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4663 multiarch version in mips-tdep.c will be found.
4665 2002-08-01 Andrew Cagney <cagney@redhat.com>
4667 * NEWS: Menion that CHILL has been made obsolete.
4669 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4670 * stabsread.c (read_range_type): Ditto.
4671 * gdbtypes.h: Ditto.
4672 * language.c (binop_type_check): Ditto.
4673 (binop_result_type): Ditto.
4674 (integral_type): Ditto.
4675 (character_type): Ditto.
4676 (string_type): Ditto.
4677 (boolean_type): Ditto.
4678 (structured_type): Ditto.
4679 (lang_bool_type): Ditto.
4680 (binop_type_check): Ditto.
4681 * language.h (_LANG_chill): Ditto.
4682 * dwarfread.c (set_cu_language): Ditto.
4683 * dwarfread.c (CHILL_PRODUCER): Ditto.
4684 * dwarfread.c (handle_producer): Ditto.
4685 * expression.h (enum exp_opcode): Ditto.
4686 * eval.c: Ditto for comments.
4687 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4688 * expprint.c (print_subexp): Ditto.
4689 (print_subexp): Ditto.
4690 * valops.c (value_cast): Ditto.
4691 (search_struct_field): Ditto.
4692 * value.h (COERCE_VARYING_ARRAY): Ditto.
4693 * symfile.c (init_filename_language_table): Ditto.
4694 (add_psymbol_with_dem_name_to_list): Ditto.
4695 * valarith.c (value_binop): Ditto.
4697 * valops.c (value_slice): Ditto.
4698 * symtab.h (union language_specific): Ditto.
4699 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4700 (SYMBOL_DEMANGLED_NAME): Ditto.
4701 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4702 * defs.h (enum language): Ditto.
4703 * symtab.c (got_symtab): Ditto.
4704 * utils.c (fprintf_symbol_filtered): Ditto.
4706 * ch-typeprint.c: Make file obsolete.
4707 * ch-valprint.c: Make file obsolete.
4708 * ch-lang.h: Make file obsolete.
4709 * ch-exp.c: Make file obsolete.
4710 * ch-lang.c: Make file obsolete.
4712 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4714 (TARGET_FLAGS_TO_PASS): Ditto.
4715 (CHILLFLAGS): Obsolete.
4717 (CHILL_FOR_TARGET): Obsolete.
4718 (CHILL_LIB): Obsolete.
4719 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4721 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4722 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4724 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4727 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4729 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4730 This does not change anything at the moment, but will be helpful
4731 later when full Ada support is integrated.
4733 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4735 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4738 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4740 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4741 and save it in a local variable. Use variable in later test.
4743 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4745 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4746 test. (Thanks to Daniel Jacobowitz.)
4748 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4750 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4751 (mips_abi_strings): Add "n64".
4752 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4754 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4756 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4757 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4759 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4761 * utils.c (host_pointer_to_address, address_to_host_pointer):
4762 Use gdb_assert() instead of explicit call to internal_error().
4764 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4766 * Makefile.in (rs6000-nat.o): Update dependencies.
4768 From Nicholas Duffek:
4769 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4770 (aix-thread.o): New rule.
4771 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4772 * config/powerpc/aix432.mh: New file.
4774 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4776 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4777 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4778 (fetch_core_registers, ppc_linux_supply_gregset)
4779 (ppc_linux_supply_fpregset): New functions.
4780 (ppc_linux_regset_core_fns): New.
4781 (_initialize_ppc_linux_tdep): Call add_core_fns.
4782 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4783 and ppc_linux_supply_gregset.
4784 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4785 (supply_fpregset): Call ppc_linux_supply_fpregset.
4786 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4788 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4790 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4792 * symtab.c (lookup_symbol): Demangle before lowercasing.
4794 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4796 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4798 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4799 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4800 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4801 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4803 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4804 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4805 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4806 (avr-tdep.o, mon960-rom.o): Ditto.
4807 (aout_stabs_gnu_h): Define.
4808 (symtab_h): Remove $(gdb_obstack_h).
4810 2002-07-30 Jim Blandy <jimb@redhat.com>
4812 Patch from David Carlton <carlton@math.stanford.edu>:
4813 * gdbinit.in: Move the `dir' commands that add GDB's own source
4814 directory to the search path to the end, so that the `gdb' source
4815 directory will be searched first.
4817 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4819 * gdb_obstack.h: New file.
4820 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4821 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4822 * objfiles.h: Include "gdb_obstack.h".
4823 * Makefile.in (gdb_obstack_h): Define.
4824 (symtab_h): Add $(gdb_obstack_h).
4825 (objfiles_h): Add $(gdb_obstack_h).
4827 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4828 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4829 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4830 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4831 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4832 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4833 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4834 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4836 * Makefile.in (bcache.o): Update dependencies.
4837 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4838 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4839 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4840 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4841 (stabsread.o, symfile.o, symmisc.o): Ditto.
4842 (symtab.o, typeprint.o, macroexp.o): Ditto.
4843 (macrotab.o, mdebugread.o): Ditto.
4844 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4845 (coff_ecoff_h, aout_aout64_h): Define.
4846 (aout_stabs_gnu_h, libaout_h): Define.
4848 2002-07-29 Andrew Cagney <cagney@redhat.com>
4850 * regcache.c (struct regcache_descr): Rename nr_registers to
4851 nr_cooked_registers. Revise comments describing the structure
4853 (init_regcache_descr): Update.
4854 (init_legacy_regcache_descr): Update.
4855 (read_register_gen, write_register_gen): When a cooked register in
4856 the raw register range, directly access the value from the raw
4859 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4861 * z8k-tdep.c: Do not include "obstack.h".
4862 * h8300-tdep.c, h8500-tdep.c: Ditto.
4863 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4864 * valprint.c, v850-tdep.c: Ditto.
4865 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4866 * mn10200-tdep.c: Ditto.
4868 * Makefile.in (z8k-tdep.o): Update dependencies.
4869 (m68hc11-tdep.o, valprint.o): Ditto.
4870 (v850-tdep.o, d10v-tdep.o): Ditto.
4871 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4872 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4873 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4874 (sh_opc_h, gdb_sim_sh_h): Define.
4875 (elf_sh_h, elf_bfd_h): Define.
4876 (opcode_m68hc11_h): Define.
4877 (OPCODES_SRC, OPCODES_DIR): define.
4878 (OPCODES): Use $(OPCODES_DIR).
4879 (gdb_sim_d10v_h): Rename sim_d10v_h.
4880 (gdb_sim_arm_h): Rename sim_arm_h.
4882 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4884 * utils.c (host_pointer_to_address, address_to_host_pointer):
4885 Change internal_error() message to indicate function responsible
4888 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4890 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4891 calls to local_hex_string_custom().
4893 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4895 * irix5-nat.c: Move IRIX shared library support from here...
4896 * solib-irix.c: ...to here. Revised substantially to work with
4897 generic solib framework.
4899 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4900 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4901 * mips-irix-tdep.c: New file.
4903 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4904 (mips-irix-tdep.o, solib-irix.o): New rules.
4905 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4907 * config/mips/irix6.mt (TDEPFILES): Likewise.
4908 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4910 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4912 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4913 disabled (via ``#if 0'') includes.
4915 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4917 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4918 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4919 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4920 Add support for the fpscr register.
4921 * rs6000-nat.c (regmap, fetch_inferior_registers)
4922 (store_inferior_registers, fetch_core_registers): Likewise.
4924 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4926 * rs6000-nat.c (language.h): Include.
4927 (special_regs): Delete this array.
4928 (regmap): New function.
4929 (fetch_register, store_register): Use regmap() to map gdb
4930 register numbers to ptrace register numbers. Also, use
4931 outputs from regmap() to make decisions regarding type of
4932 ptrace() call to make. In particular, don't compare against
4933 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4934 (fetch_inferior_registers, store_inferior_registers): Where
4935 possible, obtain register numbers from tdep struct. Don't
4936 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4937 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4938 (LAST_UISA_SP_REGNUM): Delete.
4940 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4942 * rs6000-nat.c (ppc-tdep.h): Include.
4943 (fetch_registers, store_register, fetch_core_registers): Don't
4944 access registers[] directly. Instead, use supply_register() or
4945 regcache_collect() as appropriate.
4946 (find_toc_address): Format hex address with local_hex_string().
4948 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4950 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4953 2002-07-24 Tom Tromey <tromey@redhat.com>
4955 * jv-exp.y: Marked all strings with _().
4956 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4958 (MethodInvocation, CastExpression, parse_number, yyerror,
4959 java_type_from_name, push_expression_name, yylex): Typo fixes.
4961 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4963 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4964 (tee_file_flush, tee_file_write, tee_file_fputs)
4965 (tee_file_isatty): New.
4966 * ui-file.h (tee_file_new): Add prototype.
4968 2002-07-24 Aidan Skinner <aidan@velvet.net>
4970 * ada-lang.c: Change k&r style function definitions to prototyped
4972 * ada-typeprint.c: Change k&r style function definitions to prototyped
4974 * ada-valprint.c: Change k&r style function definitions to prototyped
4977 2002-07-24 Andrew Cagney <cagney@redhat.com>
4979 * README: Remove reference to remote-bug.
4980 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4982 (m88k-nat.o): Delete rule.
4983 (m88k-tdep.o): Delete rule.
4984 (remote-bug.o): Delete rule.
4985 * MAINTAINERS: Mark as obsolete.
4986 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4987 * m88k-tdep.c: Make file obsolete.
4988 * config/m88k/m88k.mh: Ditto.
4989 * config/m88k/delta88v4.mh: Ditto.
4990 * config/m88k/delta88v4.mt: Ditto.
4991 * config/m88k/delta88.mt: Ditto.
4992 * config/m88k/delta88.mh: Ditto.
4993 * remote-bug.c: Ditto.
4994 * config/m88k/tm-delta88.h: Ditto.
4995 * config/m88k/nm-delta88v4.h: Ditto.
4996 * config/m88k/xm-delta88.h: Ditto.
4997 * config/m88k/xm-dgux.h: Ditto.
4998 * config/m88k/tm-m88k.h: Ditto.
4999 * config/m88k/nm-m88k.h: Ditto.
5000 * config/m88k/tm-delta88v4.h: Ditto.
5001 * m88k-nat.c: Ditto.
5002 * cxux-nat.c: Ditto.
5003 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5004 and m88*-*-* obsolete.
5005 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5008 2002-07-24 Andrew Cagney <cagney@redhat.com>
5010 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5011 constant. Same for local pointer variables.
5012 (extract_signed_integer): Ditto.
5013 * defs.h (extract_unsigned_integer): Update.
5014 (extract_signed_integer): Update.
5016 2002-07-24 Andrew Cagney <cagney@redhat.com>
5018 * regcache.c (regcache_raw_write): Change buf parameter to a
5019 constant void pointer.
5020 (regcache_raw_read): Change buf parameter to a void pointer.
5021 (legacy_write_register_gen): Change myaddr parameter a constant
5023 (supply_register): Change val parameter to a const void pointer.
5024 * regcache.h (regcache_raw_write): Update declaration.
5025 (regcache_raw_read): Update declaration.
5026 (supply_register): Update declaration.
5028 2002-07-24 Tom Tromey <tromey@redhat.com>
5030 * defs.h (gdb_readline_wrapper): Declare.
5031 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5032 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5033 * top.c (gdb_readline_wrapper): New function.
5034 (command_line_input): Use it.
5036 2002-07-24 Andrew Cagney <cagney@redhat.com>
5038 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5039 regcache_read and regcache_write.
5040 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5041 * regcache.c: Update.
5042 * sh-tdep.c (sh64_push_arguments): Update comment.
5043 (sh_pseudo_register_read): Update.
5044 (sh_pseudo_register_write): Update.
5045 (sh4_register_read): Update.
5046 (sh4_register_write): Update.
5047 (sh64_pseudo_register_read): Update.
5048 (sh64_pseudo_register_write): Update.
5049 (sh64_register_read): Update.
5050 (sh64_register_write): Update.
5051 * i386-tdep.c (i386_extract_return_value): Update.
5052 (i386_extract_struct_value_address): Update.
5053 (i386_extract_return_value): Update.
5054 * blockframe.c (generic_read_register_dummy): Update.
5055 (generic_call_dummy_register_unwind): Update
5056 * infrun.c (write_inferior_status_register): Update.
5058 2002-07-23 Jim Blandy <jimb@redhat.com>
5060 * parser-defs.h (expression_context_pc): Make this extern.
5061 (Thanks to Michael Snyder.)
5063 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5065 GDB 5.2.1 released from 5.2 branch.
5066 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5067 * README: Update to mention 5.2.1.
5069 2002-07-23 Mark Salter <msalter@redhat.com>
5071 * remote.c (remote_read_bytes): Fix check for error.
5073 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5075 * aix-thread.c (language.h): Include.
5076 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5077 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5078 Print newlines at end of debug messages.
5079 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5080 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5082 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5084 * aix-thread.c (ppc-tdep.h): Include.
5085 (special_register_p): New function.
5086 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5087 (store_regs_user_thread): Use register number information from
5088 gdbarch_tdep struct instead of hardcoded offsets relative to
5089 FIRST_UISA_SP_REGNUM.
5090 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5091 special_register_p() instead of using FPLAST_REGNUM and
5092 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5093 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5094 will be MQ's register number.
5096 2002-07-22 Michael Snyder <msnyder@redhat.com>
5098 * aix-thread.c (ops): Rename to aix_thread_ops.
5099 (base_ops): Rename to base_target.
5100 (ops_attach): Rename to aix_thread_attach.
5101 (ops_detach): Rename to aix_thread_detach.
5102 (ops_resume): Rename to aix_thread_detach.
5103 (ops_wait): Rename to aix_thread_wait.
5104 (ops_kill): Rename to aix_thread_kill.
5105 (init_ops): Rename to init_aix_thread_ops.
5106 (ops_fetch_register): Rename to aix_thread_fetch_register.
5107 (ops_store_register): Rename to aix_thread_store_register.
5108 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5109 (ops_thread_alive): Rename to aix_thread_thread_alive.
5110 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5111 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5112 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5113 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5114 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5115 (store_regs_lib): Rename to store_regs_user_thread.
5116 (store_regs_kern): Rename to store_regs_kernel_thread.
5118 2002-07-22 Michael Snyder <msnyder@redhat.com>
5120 * aix-thread.c (ops_prepare_to_store): Eliminate.
5121 (init_ops): Don't initialize ops.prepare_to_store.
5122 (store_regs_kern): Pre-fetch register buffers from child,
5123 because some registers may not be in the cache. Copy
5124 regs from register cache only if they are cached.
5125 (store_regs_lib): Copy regs from register cache only
5127 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5128 fill_gprs64): Ditto.
5130 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5132 * aix-thread.c (gdb_assert.h): Include.
5133 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5134 register sizes (from register cache) match size of buffer holding
5136 (fill_sprs32): Change parameter types to match those in the ptrace()
5138 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5139 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5141 2002-07-22 Michael Snyder <msnyder@redhat.com>
5143 * aix-thread.c (supply_sprs64): Cosmetic change.
5144 (supply_sprs32): Cosmetic change.
5145 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5146 (fill_sprs64): Use regcache_collect instead of read_register.
5147 (store_regs_lib): Use regcache_collect instead of
5148 read_register. Use fill_sprs32 instead of fill_sprs64,
5149 if debugging a 32-bit architecture.
5150 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5151 out of the register cache, instead of passing a pointer into
5152 the register cache directly to ptrace. Use regcache_collect
5153 insteaad of read_register.
5154 (ops_prepare_to_store): Use target_read_registers instead
5155 of read_register_bytes.
5157 2002-07-20 Aidan Skinner <aidan@velvet.net>
5159 * MAINTAINERS: Add self under write after approval.
5161 2002-07-20 Aidan Skinner <aidan@velvet.net>
5163 * ada-tasks.c: Change k&r style function definitions to prototyped
5166 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5168 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5169 * x86-64-tdep.c: Include "objfiles.h".
5170 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5171 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5173 2002-07-17 Michal Ludvig <michal@suse.cz>
5175 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5176 (update_context): Initialise cfa variable.
5178 2002-07-17 Michael Snyder <msnyder@redhat.com>
5180 * aix-thread.c: Shorten some long lines.
5181 Bring comments into line with code spec.
5183 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5185 * infrun.c: Re-indent using gdb_indent.sh.
5187 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5189 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5190 Leave the indentation temporarily untouched, to minimize the diffs.
5192 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5194 * stabsread.c: Make os9k sections of the code obsolete,
5196 * stabsread.h: Make os9k sections of the code obsolete.
5198 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5200 * linux-low.c (regsets_store_inferior_registers): Add free()
5201 at the end of a loop to prevent memory leak.
5202 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5203 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5204 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5206 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5208 2002-07-17 Jim Blandy <jimb@redhat.com>
5210 * macrocmd.c (info_macro_command): Remove newline from error
5213 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5215 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5216 (sh_gdbarch_init): Use it for sh-dsp.
5218 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5220 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5221 64-bit DWARF2 format.
5223 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5225 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5226 <sys/proc.h> when not available.
5228 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5230 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5231 * stabsread.c: Make os9k sections of the code obsolete.
5232 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5233 * config/i386/i386os9k.mt: Make file obsolete.
5234 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5235 (COMMON_OBS): Remove os9kread.o
5236 (SFILES): Remove os9kread.c.
5237 (os9kread.o, remote-os9k.o): Make target obsolete.
5238 * remote-os9k.c: Make file obsolete.
5239 * os9kread.c: Make file obsolete.
5242 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5244 * NEWS: Mention that the FR30 has been made obsolete.
5245 * fr30-tdep.c: Make file obsolete.
5246 * config/fr30/tm-fr30.h: Ditto.
5247 * config/fr30/fr30.mt: Ditto.
5248 * configure.tgt: Make fr30-*-elf obsolete.
5249 * MAINTAINERS: Make fr30-elf obsolete.
5251 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5253 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5254 found is not inside a section.
5256 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5258 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5260 (pdc_realloc): Use xrealloc() instead of realloc().
5262 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5264 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5265 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5266 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5269 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5271 * aix-thread.c (ptrace_check): Eliminate goto.
5272 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5275 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5277 * aix-thread.c (gdbcmd.h): Include.
5278 (DEBUG, DBG, DBG2, dbg): Eliminate.
5279 (debug_aix_thread): New static global.
5280 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5281 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5282 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5283 invocations to DBG and DBG2 macros to test against
5284 ``debug_aix_thread'' and call fprintf_unfiltered().
5285 (_initialize_aix_thread): Add new command "set debug aix-thread".
5287 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5289 From Gerhard Tonn <TON@de.ibm.com>:
5290 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5291 instead of supply_register.
5293 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5295 * dwarf2cfi.c: Include "gdb_assert.h".
5296 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5298 (update_context): Do not use __func__. Add missing ``break''.
5299 (update_context): Do not use __func__.
5301 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5303 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5304 and its setting. Set gdbarch instruction printing functions
5305 directly. For non-rs6000 case use new function
5306 gdb_print_insn_powerpc.
5307 (gdb_print_insn_powerpc): New function.
5309 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5311 * NEWS: Mention that the d30v has been marked obsolete.
5312 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5313 * configure.tgt: Mark d30v-*-* as obsolete.
5314 * d30v-tdep.c: Mark file as obsolete.
5315 * config/d30v/d30v.mt: Ditto.
5316 * config/d30v/tm-d30v.h: Ditto.
5318 2002-07-13 Aidan Skinner <aidan@velvet.net>
5320 * ada-tasks.c (add_task_entry): replace calls to
5321 malloc() with xmalloc
5322 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5324 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5325 ada_finish_decode_line_1, all_sals_for_line
5326 ada_breakpoint_rewrite): replace calls to free() with xfree()
5328 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5330 From Nicholas Duffek (with minor changes by Martin Hunt,
5331 Louis Hamilton, and Kevin Buettner):
5332 * aix-thread.c: New file.
5334 2002-07-12 Petr Sorfa <petrs@caldera.com>
5336 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5337 complaint for invalid attribute class or form.
5338 (read_func_scope): DW_AT_frame_base
5339 better handling of DW_AT_block*.
5340 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5341 better handling of DW_AT_block*.
5342 (read_common_block): DW_AT_location
5343 better handling of DW_AT_block*.
5344 (read_partial_die): DW_AT_location better handling
5346 (new_symbol): DW_AT_external better handling of
5347 DW_AT_block*. Proper initialization of variable
5349 (attr_form_is_block): New function that returns true
5350 if the attribute's form is of DW_FORM_block*.
5352 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5354 * valops.c (find_method_list): Remove comment about
5355 removed STATIC_MEMFUNCP argument.
5356 (value_find_oload_method_list): Likewise.
5358 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5360 From Nicholas Duffek:
5361 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5362 target_new_objfile_hook.
5364 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5366 From Nicholas Duffek:
5367 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5370 2002-07-12 Andrew Cagney <cagney@redhat.com>
5372 * MAINTAINERS: Mention --enable-sim-build-warnings.
5373 (m68hc11-elf): Disable sim build warnings.
5374 (m32r-elf): Mark as broken obsolete candidate.
5375 (x86_64-linux-gnu): Mark as buildable with -Werror.
5376 (arm-elf): Change -w to ``,'' which enables warnings but not
5379 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5381 * bcache.h: Update copyright.
5382 (struct bstring, struct bcache): Move definition to "bcache.c".
5383 Replaced by opaque declaration.
5384 (bcache_xfree): Replace free_bcache.
5385 (bcache_xmalloc, bcache_memory_used): Declare.
5387 * bcache.c: Update copyright.
5388 (struct bstring, struct bcache): Moved to here from "bcache.h".
5390 (bcache_xmalloc, bcache_memory_used): New functions.
5391 (bcache_xfree): Replace function free_bcache.
5393 * Makefile.in (objfiles.o): Add $(bcache_h).
5394 (objfiles_h): Remove $(bcache_h).
5395 (symfile.o): Add $(bcache_h).
5397 * symmisc.c: Update copyright.
5398 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5399 (print_objfile_statistics): Use bcache_memory_used.
5401 * symfile.c: Include "bcache.h".
5402 (reread_symbols): Use bcache_xfree.
5403 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5404 (add_psymbol_to_list): Pass psymbol_cache by value.
5405 (add_psymbol_with_dem_name_to_list): Ditto.
5407 * objfiles.h: Update copyright.
5408 (struct bcache): Declare opaque. Do not include "bcache.h".
5409 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5411 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5413 * objfiles.c: Include "bcache.h". Update copyright.
5414 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5416 (free_objfile): Use bcache_xfree.
5418 2002-07-11 Grace Sainsbury <graces@redhat.com>
5420 * monitor.c (monitor_fetch_register): Make name a constant.
5421 (monitor_store_register): Same.
5423 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5425 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5426 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5427 (finish_block) For non-function blocks, hash the symbol table. For
5428 function blocks, mark the symbol table as unhashed.
5429 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5430 (msymbol_hash_iw): Likewise.
5431 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5433 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5434 (lookup_minimal_symbol): Likewise for both.
5435 * symtab.h (struct block): Add `hashtable' flag. Comment the
5437 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5438 (ALL_BLOCK_SYMBOLS): Update.
5439 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5440 (struct symbol): Add `hash_next' pointer.
5441 * symtab.c (lookup_block_symbol): Search using the hash table when
5443 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5444 (search_symbols, find_addr_symbol): Likewise.
5446 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5447 (read_dst_symtab): Likewise.
5448 * jv-lang.c (get_java_class_symtab): Likewise.
5449 * mdebugread.c: Include "gdb_assert.h".
5450 (shrink_block): Assert that the block being modified is not hashed.
5451 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5452 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5454 (dump_symtab): Recognize hashed blocks.
5455 * printcmd.c (print_frame_args): Assert that function blocks do not
5456 have hashed symbol tables.
5457 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5458 (fill_in_ada_prototype, debug_print_block): Likewise.
5459 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5461 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5463 * stack.c (print_frame): Use result of frame_address_in_block()
5464 instead of fi->pc when evaluating symbols.
5465 (backtrace_command_1): Ditto.
5467 2002-07-11 Andrew Cagney <cagney@redhat.com>
5469 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5472 * arm-tdep.c (arm_register_name): Make return type constant.
5474 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5476 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5478 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5479 * s390-tdep.c (s390_fp_regnum): Ditto.
5480 (s390_read_fp): Ditto.
5481 (s390_pop_frame): Ditto.
5482 (_initialize_s390_tdep): Ditto.
5483 * remote.c (get_remote_state): Ditto.
5484 * procfs.c (mappingflags): Ditto.
5485 * memattr.c (_initialize_mem): Ditto.
5486 * mcore-tdep.c (mcore_pop_frame): Ditto.
5487 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5488 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5489 * language.c (set_case_str): Ditto.
5490 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5491 * frv-tdep.c (new_variant): Ditto.
5492 (frv_stopped_data_address): Ditto.
5493 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5494 (context_alloc): Ditto.
5495 (frame_state_alloc): Ditto.
5496 (unwind_tmp_obstack_init): Ditto.
5497 (unwind_tmp_obstack_free): Ditto.
5498 (cfi_read_fp): Ditto.
5499 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5500 (cris_pop_frame): Ditto.
5501 * c-lang.c (scanning_macro_expansion): Ditto.
5502 (finished_macro_expansion): Ditto.
5503 (c_preprocess_and_parse): Ditto.
5504 * gdbarch.sh: Ditto.
5505 * gdbarch.h, gdbarch.c: Regenerate.
5506 * config/mn10200/tm-mn10200.h: Adjust indentation.
5507 * target.c: Adjust indentation.
5508 * symtab.h: Adjust indentation.
5509 * stabsread.h: Adjust indentation.
5510 * remote-es.c: Adjust indentation.
5511 * os9kread.c: Adjust indentation.
5513 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5515 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5516 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5518 2002-07-10 Grace Sainsbury <graces@redhat.com>
5520 * NEWS: Mention m68k, mcore multi-arching.
5521 * MAINTAINERS: Change status of m68k, mcore to reflect
5524 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5526 * valops.c (find_overload_match): Free oload_syms.
5528 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5530 Define HAVE_SYS_PROC_H if sys/proc.h exists
5531 * configure.in: Add check for sys/proc.h
5532 * config.in: Regenerate.
5533 * configure: Regenerate.
5535 2002-07-09 Grace Sainsbury <graces@redhat.com>
5537 * config/m68k/tm-m68k.h: Remove macros wrapped in
5538 #if !GDB_MULTI_ARCH.
5540 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5542 * config.in, configure: Regenerate.
5544 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5546 * dwarf2cfi.c: Include "gcore.h".
5547 (execute_stack_op): Fix implementation of the
5548 DW_OP_deref and DW_OP_deref_size operators by letting do their
5549 lookup in the target.
5551 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5553 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5554 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5557 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5559 Fix PR gdb/595, gdb/602
5560 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5561 Don't call value_cast, just read the vtable pointer; update comments
5564 2002-07-05 Grace Sainsbury <graces@redhat.com>
5566 * config/mcore/tm-mcore.h: Remove file.
5567 * config/mcore/mcore.mt: Remove definition of TM_FILE
5568 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5570 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5572 * i386bsd-tdep.c: Include "gdb_string.h".
5574 2002-07-04 Grace Sainsbury <graces@redhat.com>
5576 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5577 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5579 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5580 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5581 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5582 (RETVAL_REGNUM): Move macros from tm-mcore.h
5583 (mcore_reg_struct_has_addr): New function.
5584 (mcore_gdbarch_init): Added initializations for the macros removed
5587 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5589 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5590 traditonal string branding within the ELF header.
5592 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5594 * symtab.c (remove_params): New function.
5595 (make_symbol_overload_list): Use it instead of cplus_demangle.
5596 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5598 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5600 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5602 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5604 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5605 and tdep->sigtramp_end.
5606 * i386obsd-nat.c: New file.
5607 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5609 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5610 Don't call get_current_frame().
5612 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5614 * i386-nat.c (child_post_startup_inferior): New function
5615 calling i386_cleanup_dregs if
5616 I386_USE_GENERIC_WATCHPOINTS is defined.
5617 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5618 conditional to acknowledge that i386-nat.c has its
5619 own child_post_startup_inferior function.
5621 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5623 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5624 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5625 instead of MAX_REGISTER_RAW_SIZE.
5626 (i386_extract_return_value, i386_extract_struct_value_address):
5627 Convert to use regcache.
5628 (i386_gdbarch_init): Set max_register_raw_size and
5629 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5630 Set extract_return_value and extract_struct_value_address instead
5631 of their deprecated variants.
5633 Convert i386 target to generic dummy frames.
5634 * i386-tdep.c: Include "symfile.h".
5635 (i386_frameless_signal_p): Consider a function to be frameless if
5636 the pc points at the first instruction of the function.
5637 (i386_frame_chain): Handle (generic) call dummies.
5638 (i386_frame_saved_pc): Likewise.
5639 (i386_frame_init_saved_regs): Remove code dealing with call
5640 dummies on the stack.
5641 (i386_push_dummy_frame): Removed.
5642 (i386_call_dummy_words): Removed.
5643 (i386_fix_call_dummy): Removed.
5644 (i386_push_return_address): New function.
5645 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5646 parameter, and don't call get_current_frame.
5647 (i386_pop_frame): New function.
5648 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5649 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5650 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5651 call_dummy_length to 0, set call_dummy_words to NULL, set
5652 sizeof_call_dummy_words to 0, set fix_call_dummy to
5653 generic_fix_call_dummy, set pc_in_call_dummy to
5654 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5655 generic_push_dummy_frame, set push_return_address to
5656 i386_push_return_address and set frame_chain_valid to
5657 generic_file_frame_chain_valid.
5659 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5661 * gdbarch.sh (struct regcache): Add opaque declaration.
5662 (EXTRACT_RETURN_VALUE): New architecture method.
5663 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5664 * gdbarch.h, gdbarch.c: Regenerate.
5665 * arch-utils.c (legacy_extract_return_value): New function.
5666 * arch-utils.h (legacy_extract_return_value): Declare.
5667 * values.c (value_being_returned): Re-enable code handling
5668 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5669 deprecated_grub_regcache_for_registers call to block handling
5670 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5671 (EXTRACT_RETURN_VALUE): Do not define.
5673 2002-07-03 Grace Sainsbury <graces@redhat.com>
5675 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5676 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5677 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5678 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5679 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5680 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5681 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5682 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5683 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5684 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5685 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5686 argument so the function fits the prototype in the architecture
5688 (mcore_pop_frame): Remove argument so the function fits the
5689 prototype. Use get_current_frame instead of the argument.
5690 (mcore_push_arguments): Change type of struct_return so the
5691 function can be used in the architecture vector.
5692 (mcore_store_struct_return): Add.
5693 (mcore_frame_init_saved_regs): Add.
5694 (mcore_gdbarch_init): Add function calls to replace the macros
5695 removed from tm-mcore.h
5697 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5699 * infcmd.c (print_return_value): Remove compatibility code calling
5700 deprecated_grub_regcache_for_registers.
5702 * values.c: Include "regcache.h".
5703 (value_being_returned): Update. Use
5704 deprecated_grub_regcache_for_registers to extract the register
5706 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5707 ``struct regcache''.
5708 * Makefile.in (values.o): Add dependency on $(regcache_h).
5710 * inferior.h (run_stack_dummy): Change type of second parameter to
5711 a ``struct regcache''.
5712 * valops.c (hand_function_call): Change type of retbuf to ``struct
5713 regcache''. Allocate using regcache_xmalloc, clean using
5714 make_cleanup_regcache_xfree.
5715 * infcmd.c (run_stack_dummy): Update. Use
5716 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5718 * regcache.c (do_regcache_xfree): New function.
5719 (make_cleanup_regcache_xfree): New function.
5720 * regcache.h (make_cleanup_regcache_xfree): Declare.
5722 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5724 * event-top.c (command_line_handler): Don't read past
5725 beginning of buffer.
5727 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5729 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5731 (varobj_create): Store frame_id for root.
5732 (varobj_gen_name): Use xasprintf.
5733 (varobj_update): Save and restore frame using get_frame_id() and
5735 (create_child): Use xasprintf.
5736 (new_root_variable): Initialize frame_id.
5737 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5738 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5739 to prevent memory leak.
5741 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5743 * valops.c (hand_function_call): Move declaration of retbuf to
5744 start of function, allocate using malloc, add a cleanup but before
5745 the inf_status cleanup, cleanup the buffer. Rename local variable
5746 old_chain to inf_status_cleanup.
5748 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5750 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5752 * cli/cli-decode.c (cmd_func_p): New function.
5753 (cmd_func): New function.
5755 * command.h: Add cmd_func() and cmd_func_p().
5757 2002-07-03 Grace Sainsbury <graces@redhat.com>
5759 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5760 (REGISTER_SIZE): Remove.
5761 (MAX_REGISTER_RAW_SIZE): Remove.
5762 (REGISTER_VIRTUAL_TYPE): Remove.
5763 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5764 (REGISTER_NAME): Remove.
5765 (USE_GENERIC_DUMMY_FRAMES): Remove.
5766 (CALL_DUMMY): Remove.
5767 (CALL_DUMMY_START_OFFSET): Remove.
5768 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5769 (CALL_DUMMY_LOCATION): Remove.
5770 (FIX_CALL_DUMMY): Remove.
5771 (CALL_DUMMY_ADDRESS): Remove.
5772 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5773 (SAVE_DUMMY_FRAME_TOS): Remove.
5774 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5775 (mcore_register_virtual_type): New function.
5776 (mcore_register_byte): New function.
5777 (mcore_register_size): New function.
5778 (mcore_register_name): New function.
5779 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5780 macros removed from tm-mcore.h.
5781 (mcore_dump_tdep): Add.
5782 (_initialize_mcore_tdep): Add gdbarch_register call.
5784 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5786 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5787 frameless_look_for_prologue, such that we actually call this
5790 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5792 * frame.h (frame_address_in_block): New function.
5794 * blockframe.c (frame_address_in_block): New function extracted
5795 from get_frame_block().
5796 (get_frame_block): Use frame_address_in_block().
5797 (block_innermost_frame): Use frame_address_in_block() to match
5798 the frame pc address against the block boundaries rather than
5799 the frame pc directly. This prevents a failure when a frame pc
5800 is actually a return-address pointing immediately after the end
5803 2002-07-02 Grace Sainsbury <graces@redhat.com>
5805 * MAINTAINERS: Add self under write after approval.
5807 2002-07-02 Grace Sainsbury <graces@redhat.com>
5809 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5810 used in architecture vector. The default is
5811 m68k_local_breakpoint_from_pc.
5812 (m68k_local_breakpoint_from_pc): Add.
5813 (enum): Add register numbers from tm-m68k.h.
5814 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5816 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5817 GDB_MULTI_ARCH_PARTIAL.
5818 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5819 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5821 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5822 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5823 to enum in m68k-tdep.c
5825 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5827 * solib-osf.c (open_map): Compute the list of shared libraries
5828 loaded by the inferior, rather than the list of libraries loaded
5829 by GDB itself. Otherwise, GDB ends up reading the symbols from
5830 the wrong shared libraries...
5832 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5834 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5835 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5837 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5839 (FRAMELESS_SIGNAL): Remove function.
5840 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5841 i386_linux_saved_pc_after_call): Removed.
5842 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5843 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5844 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5846 * i386-tdep.c (i386_frameless_signal_p): New function.
5847 (i386_frame_chain): Deal with frameless signals.
5848 (i386_sigtramp_saved_sp): New function.
5849 (i386_frame_saved_pc): Deal with frameless signals.
5850 (i386_saved_pc_after_call): Make sure the correct value is
5851 returned just after entry into a sigtramp.
5852 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5853 i386fbsd4_sc_sp_offset): New variables.
5854 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5855 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5856 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5857 similiar to what we already did for sc_pc_offset.
5858 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5861 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5863 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5865 * config/i386/tm-x86-64linux.h: New.
5866 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5868 * config/i386/nm-x86-64.h: Rename to ...
5869 * config/i386/nm-x86-64linux.h: ... this one.
5870 * config/i386/x86-64linux.mh: Reflect the above change.
5872 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5874 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5875 with sigcontext_addr. Add sc_sp_offset.
5876 (i386bsd_sigtramp_saved_pc): Remove prototype.
5877 (i386bsd_sicontext_addr): Add prototype.
5878 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5879 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5880 (i386_svr4_sigtramp_saved_pc): Removed.
5881 (i386_svr4_sigcontext_addr): New function.
5882 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5883 Initialize tdep->sigcontext_addr instead. Initialize
5884 tdep->sc_pc_offset and tdep->sc_sp_offset.
5885 (i386_gdbarch_init): Likewise.
5886 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5888 (i386bsd_sigtramp_saved_pc): Remove function.
5889 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5890 Initialize tdep->sigcontext_addr instead. Initialize
5892 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5893 of tdep->sigtramp_saved_pc.
5894 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5895 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5898 * i386-tdep.c (i386_frameless_function_invocation,
5899 i386_frame_num_args, i386_frame_init_saved_regs,
5900 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5901 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5902 i386_extract_return_value, i386_store_return_value,
5903 i386_extract_struct_value_address, i386_register_virtual_type,
5904 i386_register_convertible, i386_register_convert_to_virtual,
5905 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5906 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5909 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5911 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5913 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5914 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5915 this macro. Include "value.h".
5917 2002-06-30 Aidan Skinner <aidan@velvet.net>
5919 * ada-exp.tab.c: remove as it's a generated file
5920 * ada-lex.c: remove as it's a generated file
5922 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5924 * config/i386/tm-i386.h (struct frame_info, struct
5925 frame_saved_regs, struct value, struct type): Remove forward
5928 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5929 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5930 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5931 (FILL_FPXREGSET): Define.
5933 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5935 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5936 i[3456]86-*-netbsd* case.
5937 * config/i386/tm-obsd.h: Removed.
5938 * config/i386/obsd.mt: Removed.
5939 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5941 (MH_CFLAGS): Add -DYYDEBUG=0.
5943 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5944 i386nbsd_sc_pc_offset on OpenBSD too.
5946 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5947 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5948 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5950 * i386bsd-tdep.c: Include "arch-utils.h".
5951 (i386bsd_aout_in_solib_call_trampoline): New function.
5952 (i386bsd_init_abi): Set in_solib_call_trampoline to
5953 i386bsd_aout_in_solib_call_trampoline.
5954 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5955 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5957 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5959 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5960 (struct obstack, struct bcache): Add opaque declarations.
5961 * Makefile.in (macrotab_h): Update
5963 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5965 * blockframe.c (generic_find_dummy_frame): Change return type to
5966 ``struct regcache''.
5967 (struct dummy_frame): Replace field ``registers'' with regcache, a
5968 struct regcache object.
5969 (generic_find_dummy_frame): Update.
5970 (generic_push_dummy_frame): Update. Use regcache_xfree,
5971 regcache_xmalloc and regcache_cpy.
5972 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5974 (deprecated_generic_find_dummy_frame): Update.
5975 (generic_read_register_dummy): Update. Use
5976 regcache_read_as_address.
5977 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5978 (generic_get_saved_register): Update. Use regcache_read.
5980 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5982 * Makefile.in (objfiles_h): Add $(bcache_h).
5983 * objfiles.h: Include "bcache.h".
5985 * Makefile.in (symtab_h): Remove $(bcache_h).
5986 * symtab.h: Do not include "bcache.h".
5988 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5990 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5991 generic_func_frame_chain_valid.
5993 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5995 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5996 * config/i386/tm-fbsd.h: Likewise.
5998 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6000 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6001 generic_unwind_get_saved_register.
6003 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6005 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6006 * regcache.c (supply_register): Add missing argument to
6007 register_buffer call.
6009 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6011 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6012 Solaris /bin/grep does not not like it. From Peter Schauer.
6014 2002-06-26 Tom Tromey <tromey@redhat.com>
6016 * command.h (add_setshow_cmd): Declare.
6017 (add_setshow_cmd_full): Declare.
6018 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6019 returns void. Use add_setshow_cmd_full.
6020 (add_setshow_cmd_full): New function.
6021 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6022 (add_setshow_boolean_cmd): Likewise.
6024 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6026 * config/vax/tm-vax.h: Protect from multiple inclusion.
6027 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6028 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6029 * config/vax/tm-vaxbsd.h: ...here. New file.
6030 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6032 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6034 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6035 (BELIEVE_PCC_PROMOTION): Remove.
6036 (AP_REGNUM): Move to...
6037 * config/vax/nm-vax.h: ...here.
6038 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6039 (vax_breakpoint_from_pc): New function.
6040 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6041 and gdbarch_believe_pcc_promotion.
6043 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6045 * Makefile.in (vax_tdep_h): Define.
6046 (vax-tdep.o): Use $(vax_tdep_h).
6047 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6048 (vax_dump_tdep): New function.
6049 (_initialize_vax_tdep): Register vax_dump_tdep.
6050 * vax-tdep.h: Include osabi.h.
6051 (struct gdbarch_tdep): New.
6053 2002-06-26 Andrew Cagney <cagney@redhat.com>
6055 * frame.h (deprecated_generic_find_dummy_frame): Rename
6056 generic_find_dummy_frame.
6057 * blockframe.c (generic_find_dummy_frame): Make static.
6058 (deprecated_generic_find_dummy_frame): New function.
6059 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6060 generic_find_dummy_frame with deprecated_find_dummy_frame.
6061 (sh64_nofp_frame_init_saved_regs): Ditto.
6062 (sh_fp_frame_init_saved_regs): Ditto.
6063 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6064 (s390_frame_chain): Ditto.
6065 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6067 2002-06-26 Grace Sainsbury <graces@redhat.com>
6069 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6070 gdbarch vector are at the top.
6072 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6073 (FRAME_ARGS_ADDRESS): Remove.
6074 (FRAME_LOCALS_ADDRESS): Remove.
6075 (FRAME_NUM_ARGS): Remove.
6076 (FRAME_ARGS_SKIP): Remove.
6077 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6078 (m68k_gdbarch_init): Add gdbarch initializations for macros
6079 undefined in tm-m68k.h
6081 2002-06-26 Grace Sainsbury <graces@redhat.com>
6083 * monitor.h: Add the function regname to monitor_ops
6084 structure. This way NUM_REGS does not have to be a constant.
6085 * monitor.c (monitor_fetch_register): Added support for regname
6086 function. The function is called if the array regnames is NULL.
6087 (monitor_store_register): Same.
6088 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6090 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6091 cpu32bug_cmds.regname to point to new function.
6092 * abug-rom.c (abug_regname): Same as above.
6093 (init_abug_cmds): Same.
6094 * dbug-rom.c (dbug_regname): Same as above.
6095 (init_dbug_cmds): Same.
6096 * remote-est.c (est_regname): Same.
6097 (init_est_cmds): Same.
6098 * rom68k-rom.c (rom68k_regname): Same.
6099 (init_rom68k_cmds): Same.
6101 2002-06-25 Tom Tromey <tromey@redhat.com>
6103 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6105 2002-06-25 Andrew Cagney <cagney@redhat.com>
6107 * infrun.c (stop_registers): Change variable's type to ``struct
6109 (xmalloc_inferior_status): Delete function.
6110 (free_inferior_status): Delete function.
6111 (normal_stop): Use regcache_cpy.
6112 (struct inferior_status): Change type of fields ``stop_registers''
6113 and ``registers'' to ``struct regcache''.
6114 (write_inferior_status_register): Use regcache_write.
6115 (save_inferior_status): Instead of calling
6116 xmalloc_inferior_status, allocate the inf_status buffer directly.
6117 Use regcache_dup_no_passthrough and regcache_dup to save the
6119 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6120 Replace the stop_registers regcache instead of overriding it. Use
6121 regcache_xfree. Instead of calling free_inferior_status, xfree
6122 the buffer directly.
6123 (discard_inferior_status): Use regcache_xfree. Instead of calling
6124 free_inferior_status, xfree the buffer directly.
6125 (build_infrun): Use regcache_xmalloc.
6126 (_initialize_infrun): Delete redundant call to build_infrun.
6128 * Makefile.in (infcmd.o): Add $(regcache_h).
6130 * infcmd.c: Include "regcache.h".
6131 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6132 obtain the address of `stop_registers' register buffer.
6133 (print_return_value): Ditto.
6135 * inferior.h (struct regcache): Add opaque declaration.
6136 (stop_registers): Change variable's declared type to ``struct
6139 2002-06-24 Tom Tromey <tromey@redhat.com>
6141 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6142 * target.c (initialize_targets): Fixed typo in
6143 trust-readonly-sections `show' documentation.
6145 * main.c: Marked all strings with _().
6147 2002-06-24 Don Howard <dhoward@redhat.com>
6149 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6150 that means max CORE_ADDR+1.
6151 (lookup_mem_region): Ditto.
6152 (mem_info_command): Ditto.
6154 2002-06-24 Grace Sainsbury <graces@redhat.com>
6156 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6157 (REGISTER_BYTES_OK): Remove.
6158 (REGISTER_BYTES): Remove.
6159 (STORE_STRUCT_RETURN): Remove.
6160 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6161 (STORE_RETURN_VALUE): Remove.
6162 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6163 (FRAME_CHAIN): Remove.
6164 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6165 (FRAME_SAVED_PC): Remove.
6166 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6167 (m68k_store_struct_return): Add.
6168 (m68k_deprecated_extract_return_value): Add.
6169 (m68k_deprecated_extract_struct_value_address): Add.
6170 (m68k_store_return_value): Add.
6171 (m68k_frame_chain): Add.
6172 (m68k_frameless_function_invocation): Add.
6173 (m68k_frame_saved_pc): Add.
6174 (m68k_gdbarch_init): added set_gdbarch calls for new
6175 functions and deleted macros.
6177 2002-06-23 Tom Tromey <tromey@redhat.com>
6179 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6180 (ALLDEPFILES): Likewise.
6181 (udiheaders): Removed.
6182 (udip2soc.o): Likewise.
6183 (udi2go32.o): Likewise.
6185 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6187 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6189 * infrun.c (_initialize_infrun): Delete unnecessary call to
6192 * regcache.h: Update comments describing the regcache_cpy family
6194 (regcache_save, regcache_restore): Delete declaration.
6195 (regcache_save_no_passthrough): Delete declaration.
6196 (regcache_restore_no_passthrough): Delete declaration.
6197 * regcache.c (regcache_save): Delete function.
6198 (regcache_save_no_passthrough): Delete function.
6199 (regcache_restore): Delete function.
6200 (regcache_restore_no_passthrough): Delete function.
6202 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6204 * config/m68k/tm-m68k.h: Fix typo.
6205 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6206 (m68k_frame_init_saved_regs): Declare.
6208 2002-06-21 Jim Blandy <jimb@redhat.com>
6210 Remove some vestiges of Harris 88k support.
6211 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6212 register numbering quirk.
6213 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6214 odd symbols occurring in Harris 88k ELF targets.
6216 2002-06-21 Tom Tromey <tromey@redhat.com>
6218 * gdb_locale.h: New file.
6219 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6220 (defs_h): Added gdb_locale.h.
6221 * configure, config.in: Rebuilt.
6222 * configure.in (PACKAGE): Define.
6223 * defs.h: Include gdb_locale.h.
6224 * main.c (captured_main): Call setlocale, bindtextdomain,
6227 2002-06-21 Dave Brolley <brolley@redhat.com>
6229 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6230 * config/frv/frv.mt: New file.
6231 * config/frv/tm-frv.h: New file.
6232 * configure.tgt: Support frv-*-*.
6233 * Makefile.in (frv-tdep.o): New target.
6234 * frv-tdep.c: New file.
6235 * NEWS: Mention frv.
6237 2002-06-21 Dave Brolley <brolley@redhat.com>
6239 * MAINTAINERS: Add self to "Write After Approval" list.
6241 2002-06-21 Grace Sainsbury <graces@redhat.com>
6243 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6244 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6245 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6246 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6247 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6249 * m68k-tdep.c: Include arch-utils.h
6250 (m68k_register_raw_size): Add.
6251 (m68k_register_virtual_size): Add.
6252 (m68k_register_virtual_type): Add.
6253 (m68k_register_name): Add.
6254 (m68k_stack_align): Add.
6255 (m68k_register_byte): Add.
6256 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6259 2002-06-21 Grace Sainsbury <graces@redhat.com>
6261 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6262 m68k_find_saved_regs.
6263 (m68k_pop_frame): Removed saved_regs structure, and replaced
6264 references to it with frame->saved_regs.
6265 (m68k_gdbarch_init): Added function calls to initialize the
6267 (m68k_fix_call_dummy): Add.
6268 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6269 (CALL_DUMMY): Remove.
6270 (CALL_DUMMY_LENGTH): Remove.
6271 (CALL_DUMMY_START_OFFSET): Remove.
6272 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6273 (FIX_CALL_DUMMY): Remove.
6274 (PUSH_DUMMY_FRAME): Remove.
6275 (POP_FRAME): Remove.
6277 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6279 * parse.c (parse_fprintf): New function used to avoid calls to
6280 fprintf in bison parser generated debug code.
6281 * parser-defs.h: Declaration of new parse_fprintf function.
6282 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6283 Set YYDEBUG to 1 by default.
6284 Set YYFPRINTF as parse_fprintf.
6286 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6288 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6290 (pointer_encoding, enum ptr_encoding): New.
6291 (execute_cfa_program): Take care about pointer encoding.
6292 (dwarf2_build_frame_info): Only call parse_frame_info for
6293 .debug_frame and .eh_frame.
6294 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6295 fixed augmentation handling, added relative addressing,
6296 ignore duplicate FDEs. Added comments.
6297 * dwarf2cfi.c: Reindented.
6299 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6301 * event-top.c (command_handler): Don't use space_at_cmd_start
6302 unless there is sbrk() on the host. Assign time and space data
6303 to union fields of the appropriate length.
6305 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6307 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6308 x86_64_register_name. Return type changed to 'const char *'.
6309 (x86_64_register_name2nr): Rename to x86_64_register_number.
6310 (x86_64_gdbarch_init): Update to reflect the change.
6311 * x86-64-tdep.h: Ditto.
6312 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6313 (supply_fpregset): Ditto.
6315 2002-06-19 Andrew Cagney <cagney@redhat.com>
6317 * regcache.h: Update copyright.
6318 (struct regcache, struct gdbarch): Add opaque declarations.
6319 (current_regcache): Declare global variable.
6320 (regcache_read, regcache_write): Add gdbarch parameter.
6321 (regcache_save, regcache_save_no_passthrough)
6322 (regcache_restore, regcache_restore_no_passthrough)
6323 (regcache_dup, regcache_dup_no_passthrough)
6324 (regcache_cpy, regcache_cpy_no_passthrough)
6325 (deprecated_grub_regcache_for_registers)
6326 (deprecated_grub_regcache_for_register_valid)
6327 (regcache_valid_p): Add function declarations.
6329 * regcache.c: Update copyright.
6330 (regcache_descr_handle): New global variable.
6331 (struct regcache_descr): Define.
6332 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6333 (regcache_descr, xfree_regcache_descr): New functions.
6334 (struct regcache): Define.
6335 (regcache_xmalloc, regcache_xfree): New functions.
6336 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6337 (regcache_dup, regcache_dup_no_passthrough): New functions.
6338 (regcache_valid_p, regcache_read_as_address): New functions.
6339 (deprecated_grub_regcache_for_registers): New function.
6340 (deprecated_grub_regcache_for_register_valid): New function.
6341 (current_regcache): New global variable.
6342 (register_buffer): Add regcache parameter. Update calls.
6343 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6344 (read_register_gen, write_register_gen): Update register_buffer
6345 call. Test for legacy_p instead of gdbarch_register_read_p or
6346 gdbarch_register_write_p.
6347 (regcache_collect): Update register_buffer call.
6348 (build_regcache): Rewrite. Use deprecated grub functions.
6349 (regcache_save, regcache_save_no_passthrough): New functions.
6350 (regcache_restore, regcache_restore_no_passthrough): New
6352 (_initialize_regcache): Create the regcache_data_handle. Swap
6353 current_regcache global variable.
6355 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6356 parameter to regcache_read and regcache_write calls.
6357 (sh4_register_read): Ditto.
6358 (sh64_pseudo_register_read): Ditto.
6359 (sh64_register_read): Ditto.
6360 (sh_pseudo_register_write): Ditto.
6361 (sh4_register_write): Ditto.
6362 (sh64_pseudo_register_write): Ditto.
6363 (sh64_register_write): Ditto.
6365 * defs.h (XCALLOC): Define.
6367 2002-06-19 Grace Sainsbury <graces@redhat.com>
6369 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6370 * m68k-tdep.c (m68k_gdbarch_init): Added.
6371 (m68k_dump_tdep): Added.
6373 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6375 * ada-lang.c (fill_in_ada_prototype): Update comment.
6377 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6379 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6381 (mips_abi_string, mips_abi_strings): New.
6382 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6383 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6384 tdep->mips_abi_string. Honor mips_abi_string. Default to
6385 O32 if no ABI is found.
6386 (mips_dump_tdep): Use mips_abi_strings.
6387 (mips_abi_update): New function.
6388 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6389 ``set mips abi'' and ``show mips abi''. Check the size of
6392 2002-06-19 Andrew Cagney <cagney@redhat.com>
6394 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6397 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6399 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6400 current frame using only the first stack size adjustment. All
6401 subsequent size adjustments are not considered to be part of
6402 the "static" part of the current frame.
6403 Compute the address of the saved registers relative to the
6404 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6405 in use in this frame.
6407 2002-06-18 Don Howard <dhoward@redhat.com>
6409 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6410 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6411 suggesting this solution.
6413 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6415 * config/romp/xm-rtbsd.h: Delete file.
6416 * config/romp/rtbsd.mh: Delete file.
6418 2002-06-18 Keith Seitz <keiths@redhat.com>
6420 * breakpoint.c (condition_command): Post breakpoint_modify
6421 when a condition is added to an existing breakpoint.
6422 (commands_command): Likewise for commands.
6423 (set_ignore_count): Likewise for ignore counts.
6424 If no tty, do not simply return, still need to send event
6426 (ignore_command): Only print a newline if the command came
6428 Don't call breakpoints_changed, since this is now properly
6429 handled by set_ignore_count.
6431 2002-06-18 Andrew Cagney <cagney@redhat.com>
6433 * MAINTAINERS: Note that cris-elf target can be compiled with
6435 * cris-tdep.c (cris_register_name): Make return type constant.
6436 (cris_breakpoint_from_pc): Ditto.
6438 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6440 * frame.h (struct frame_info): Change type of context to
6443 2002-06-17 Andrew Cagney <cagney@redhat.com>
6445 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6447 * gdbarch.h, gdbarch.c: Regenerate.
6448 * config/mips/tm-mips.h (mips_register_name): Update.
6449 * i386-tdep.h (i386_register_name): Update.
6450 * mips-tdep.c (mips_register_name): Update
6451 * alpha-tdep.c (alpha_register_name): Update.
6452 * arch-utils.c (legacy_register_name): Update.
6453 * arch-utils.h (legacy_register_name): Update.
6454 * avr-tdep.c (avr_register_name): Update.
6455 * ia64-tdep.c (ia64_register_name): Update.
6456 * i386-tdep.c (i386_register_name): Update.
6457 * sparc-tdep.c (sparc32_register_name): Update.
6458 (sparc64_register_name): Update.
6459 (sparclite_register_name): Update.
6460 (sparclet_register_name): Update.
6461 * sh-tdep.c (sh_generic_register_name): Update.
6462 (sh_sh_register_name): Update.
6463 (sh_sh3_register_name): Update.
6464 (sh_sh3e_register_name): Update.
6465 (sh_sh_dsp_register_name): Update.
6466 (sh_sh3_dsp_register_name): Update.
6467 (sh_sh4_register_name): Update.
6468 (sh_sh64_register_name): Update.
6469 * s390-tdep.c (s390_register_name): Update.
6470 * rs6000-tdep.c (rs6000_register_name): Update.
6471 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6472 (ns32k_register_name_32382): Update.
6473 * d10v-tdep.c (d10v_ts2_register_name): Update.
6474 (d10v_ts3_register_name): Update.
6475 * xstormy16-tdep.c (xstormy16_register_name): Update.
6476 * vax-tdep.c (vax_register_name): Update.
6477 * v850-tdep.c (v850_register_name): Update.
6478 * m68hc11-tdep.c (m68hc11_register_name): Update.
6479 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6480 (am33_register_name): Update.
6482 2002-06-17 Grace Sainsbury <graces@redhat.com>
6484 * m68k-tdep.c: Reindented.
6486 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6488 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6489 list of predefined types.
6491 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6493 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6494 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6495 REGISTER_CONVERT_TO_RAW): Remove defines.
6496 (i386_register_virtual_type, i386_register_convertible,
6497 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6499 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6500 macros mentioned above.
6502 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6503 (i386lynx_saved_pc_after_call): Remove prototype.
6504 * i386ly-tdep.c: Include "i386-tdep.h".
6505 (i386lynx_saved_pc_after_call): Make static. Use
6506 read_memory_nobpt instead of read_memory. Use
6507 read_memory_unsigned_integer instead of read_memory_integer.
6508 (i386lynx_init_abi): New function.
6509 (i386lynx_coff_osabi_sniffer): New function.
6510 (_initialize_i386bsd_tdep): New function.
6512 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6513 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6514 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6515 (i386_fix_call_dummy): Remove prototype.
6516 * i386-tdep.c (i386_call_dummy_words): New variable.
6517 (i386_gdbarch_init): Adjust for removal of the
6518 macros mentioned above.
6520 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6522 * command.h (add_setshow_auto_boolean_cmd): Replace
6523 add_set_auto_boolean_cmd.
6524 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6525 add_set_auto_boolean_cmd.
6526 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6527 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6528 mask-address'' command.
6529 (show_mask_address): Add cmd parameter.
6530 * remote.c (add_packet_config_cmd): Update. Change type of
6531 set_func and show_func to cmd_sfunc_ftype.
6532 (_initialize_remote): Update `set remote Z-packet'
6533 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6534 (show_remote_protocol_e_packet_cmd): Ditto.
6535 (show_remote_protocol_E_packet_cmd): Ditto.
6536 (show_remote_protocol_P_packet_cmd): Ditto.
6537 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6538 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6539 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6540 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6541 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6542 (show_remote_protocol_Z_packet_cmd): Ditto.
6543 (show_remote_protocol_binary_download_cmd): Ditto.
6544 (show_remote_cmd): Pass NULL to all of above.
6546 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6548 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6549 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6550 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6551 POP_FRAME): Remove defines.
6552 (i386_push_arguments, i386_store_struct_return,
6553 i386_extract_return_value, i386_store_return_value,
6554 i386_extract_struct_value_address, i386_push_dummy_frame,
6555 i386_pop_frame): Renove prototypes.
6556 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6557 macros mentioned above.
6559 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6561 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6562 add_set_boolean_cmd.
6563 (add_setshow_cmd): New function.
6564 * command.h (add_setshow_boolean_cmd): Replace
6565 add_set_boolean_cmd.
6566 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6567 and ``set rdiromatzero''.
6568 * maint.c (_initialize_maint_cmds): Update commented out code.
6569 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6570 * target.c (initialize_targets): Update `set
6571 trust-readonly-sections'.
6572 * remote.c (_initialize_remote): Update `set remotebreak'.
6574 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6576 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6577 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6578 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6579 fit into multi-arch framework.
6580 (i386_breakpoint_from_pc): New function.
6581 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6584 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6585 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6586 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6587 (i386_frameless_function_invocation, i386_frame_num_args,
6588 i386_frame_init_saved_regs): Remove prototypes.
6589 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6590 macros mentioned above.
6592 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6594 * cli/cli-decode.c (set_cmd_cfunc): Update.
6595 (set_cmd_sfunc): Update.
6596 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6597 (set_cmd_sfunc, set_cmd_cfunc): Update.
6598 * cli/cli-decode.h: Update.
6600 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6602 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6603 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6605 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6607 * defs.h (auto_boolean): Declare enum.
6608 * command.h (cmd_auto_boolean): Delete enum.
6609 * mips-tdep.c (mask_address_var): Update.
6610 (mips_mask_address_p): Update.
6611 (show_mask_address): Update.
6612 * remote.c (struct packet_config): Update.
6613 (update_packet_config): Update.
6614 (show_packet_config_cmd): Update.
6615 (packet_ok): Update.
6616 (add_packet_config_cmd): Update.
6617 (_initialize_remote):
6618 * command.h: Update.
6619 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6620 (do_setshow_command): Update.
6621 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6622 * cli/cli-decode.h: Update.
6624 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6626 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6627 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6628 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6629 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6630 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6631 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6633 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6634 list of DJGPP COFF targets.
6636 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6637 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6638 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6639 (FP0_REGNUM): Remove define.
6640 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6641 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6642 (i386_register_virtual_size): Remove protoype.
6643 * i386-tdep.c (i386_register_virtual_size): Removed.
6644 (i386_extract_return_value, i386_store_return_value): Use
6645 FP0_REGNUM instead of NUM_FREGS to determine whether the
6646 floating-point registers are available.
6647 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6648 Adjust for removal of macros mentioned above.
6650 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6652 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6654 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6656 (supply_gregset, fill_gregset): Remove use of register keyword and
6657 remove declaration for regmap. Use I386_NUM_GREGS instead of
6658 NUM_REGS and NUM_FREGS.
6659 (FPREGSET_FSAVE_OFFSET): Remove.
6660 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6661 NUM_FREGS to determine whether the floating-point registers are
6664 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6665 gnu_store_registers): Replace usage of NUM_GREGS with
6668 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6669 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6670 usage of NUM_GREGS with I386_NUM_GREGS.
6672 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6674 * i386bsd-nat.c: Include "i386-tdep.h".
6675 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6678 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6679 and associated comment. They no longer make any sense, since we
6680 don't use this file anymore on Linux.
6682 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6683 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6684 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6685 elements in these arrays.
6686 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6689 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6691 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6692 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6694 2002-06-14 Andrew Cagney <cagney@redhat.com>
6696 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6697 EXTRACT_RETURN_VALUE.
6698 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6699 EXTRACT_STRUCT_VALUE_ADDRESS.
6700 * gdbarch.h, gdbarch.c: Regenerate.
6702 * values.c (value_being_returned): Handle
6703 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6704 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6706 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6707 * arm-tdep.c (arm_gdbarch_init): Update.
6708 * avr-tdep.c (avr_gdbarch_init): Update.
6709 * cris-tdep.c (cris_gdbarch_init): Update.
6710 * d10v-tdep.c (d10v_gdbarch_init): Update.
6711 * ia64-tdep.c (ia64_gdbarch_init): Update.
6712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6714 * s390-tdep.c (s390_gdbarch_init): Update.
6715 * sh-tdep.c (sh_gdbarch_init): Update.
6716 * s390-tdep.c (s390_gdbarch_init): Update.
6717 * sparc-tdep.c (sparc_gdbarch_init): Update.
6718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6719 * v850-tdep.c (v850_gdbarch_init): Update.
6720 * vax-tdep.c (vax_gdbarch_init): Update.
6721 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6724 * config/arc/tm-arc.h: Update.
6725 * config/d30v/tm-d30v.h: Update.
6726 * config/fr30/tm-fr30.h: Update.
6727 * config/h8300/tm-h8300.h: Update.
6728 * config/h8500/tm-h8500.h: Update.
6729 * config/i386/tm-i386.h: Update.
6730 * config/i386/tm-ptx.h: Update.
6731 * config/i386/tm-symmetry.h: Update.
6732 * config/i960/tm-i960.h: Update.
6733 * config/m32r/tm-m32r.h: Update.
6734 * config/m68k/tm-delta68.h: Update.
6735 * config/m68k/tm-linux.h: Update.
6736 * config/m68k/tm-m68k.h: Update.
6737 * config/m88k/tm-m88k.h: Update.
6738 * config/mcore/tm-mcore.h: Update.
6739 * config/mips/tm-mips.h: Update.
6740 * config/mn10200/tm-mn10200.h: Update.
6741 * config/pa/tm-hppa.h: Update.
6742 * config/pa/tm-hppa64.h: Update.
6743 * config/sparc/tm-sp64.h: Update.
6744 * config/sparc/tm-sparc.h: Update.
6745 * config/sparc/tm-sparclet.h: Update.
6746 * config/z8k/tm-z8k.h: Update.
6748 2002-06-14 Andrew Cagney <cagney@redhat.com>
6750 * Makefile.in (i386_linux_tdep_h): Define.
6751 (i386_tdep_h, i387_tdep_h): Define.
6752 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6753 $(i386_tdep_h) and $(i387_tdep_h).
6754 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6756 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6758 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6759 Already covered by the default.
6761 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6762 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6763 (i386_gdbarch_init): Initialize long_double_format and long_double
6766 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6767 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6769 * config/i386/i386sol2.mh: ... here.
6770 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6771 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6772 (SIGCONTEXT_PC_OFFSET): Remove define.
6773 (IN_SIGTRAMP): Remove define.
6774 * i386-sol2-tdep.c: New file.
6776 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6777 * config/i386/tm-i386nw.h: Removed.
6779 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6780 USE_STRUCT_CONVENTION): Remove defines.
6781 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6782 (get_longjmp_target): Remove prototype.
6783 (IN_SIGTRAMP): Remove define.
6784 (i386bsd_in_sigtramp): Remove prototype.
6785 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6786 function. Update comment accordingly
6787 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6788 (FRAME_SAVED_PC): Remove define.
6789 (i386bsd_frame_saved_pc): Remove prototype.
6790 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6791 GET_LONGJMP_TARGET): Remove defines.
6792 (get_longjmp_target): Remove prototype.
6793 (IN_SIGTRAMP): Remove define.
6794 (i386bsd_in_sigtramp): Remove prototype.
6795 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6796 function. Update comment accordingly
6797 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6798 (FRAME_SAVED_PC): Remove define.
6799 (i386bsd_frame_saved_pc): Remove prototype.
6800 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6802 (USE_STRUCT_CONVENTION): Remove prototype.
6803 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6805 (_initialize_i386bsd_nat): Revise logic to determine some
6806 constants at compile time when compiling a native GDB. Warn if
6807 things don't match up with what we expect.
6808 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6810 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6811 to use date stored in `struct gdbarch_tdep'.
6812 (i386bsd_sigcontext_offset): Remove varaible.
6813 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6814 stored in `struct gdbarch_tdep'.
6815 (i386bsd_frame_saved_pc): Make static.
6816 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6817 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6818 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6819 i386fbsd4_sc_pc_offset): New variables.
6820 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6821 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6823 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6825 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6826 Modify the value of i386fbsd_sigtramp_start and
6827 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6828 i386fbsd_sigtramp_end.
6829 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6832 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6833 define to i386-linux-tdep.h.
6834 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6835 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6837 (i386_linux_register_name, i386_linux_register_byte,
6838 i386_linux_register_raw_size): Remove prototypes.
6839 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6840 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6841 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6842 TARGET_WRITE_PC): Remove defines.
6843 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6844 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6845 i386_linux_write_pc): Remove prototypes.
6846 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6847 (get_longjmp_target): Remove prototype.
6848 * i386-linux-tdep.h: New file.
6849 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6850 * i386-linux-tdep.c: Include "i386-tdep.h" and
6851 "i386-linux-tdep.h".
6852 (i386_linux_register_name, i386_linux_register_byte,
6853 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6854 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6856 (i386_linux_init_abi): New function.
6857 (_initialize_i386_linux_tdep): New function.
6859 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6860 (i386_saved_pc_after_call): Remove prototype.
6861 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6862 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6863 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6864 (i386_register_name, i386_stab_reg_to_regnum,
6865 i386_dwarf_reg_to_regnum): Remove prototypes.
6866 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6867 SIZEOF_SSE_REGS): Remove defines.
6868 (REGISTER_BYTES): Remove define.
6869 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6870 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6871 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6872 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6873 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6874 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6875 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6876 (get_longjmp_target): Remove prototype.
6877 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6878 (sigtramp_saved_pc): Remove define.
6879 (i386v4_sigtramp_saved_pc): Remove prototype.
6880 * config/i386/tm-go32.h (FRAME_CHAIN,
6881 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6882 (i386go32_frame_saved_pc): Remove prototype.
6883 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6884 (get_longjmp_target): Remove prototype.
6885 * i386-tdep.h: Include "osabi.h".
6886 (enum i386_abi): Removed.
6887 (enum struct_return): New enum.
6888 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6889 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6890 sc_pc_offset members.
6891 (i386_gdbarch_register_os_abi): Remove prototype.
6892 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6893 I386_SSE_NUM_REGS): New defines.
6894 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6895 I386_SSE_SIZEOF_REGS): New defines.
6896 (i386_register_name, i386_register_byte, i386_register_raw_size):
6898 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6899 (i386bsd_sigtramp_saved_pc): New prototype.
6900 * i386-tdep.c: Don't include "elf-bfd.h".
6901 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6902 i386_frame_chain, i386_saved_pc_after_call): Make static.
6903 (i386_frame_saved_pc): Rewrite to call architecture dependent
6904 function to deal with signal handlers. Make static.
6905 (i386go32_frame_saved_pc): Removed.
6906 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6908 (i386_get_longjmp_target): New function.
6909 (default_struct_convention, pcc_struct_convention,
6910 reg_struct_convention, valid_conventions, struct_convention): New
6912 (i386_use_struct_convention): New function.
6913 (i386v4_sigtramp_saved_pc): Renamed to
6914 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6915 (i386_pc_in_sigtramp): New function.
6916 (i386_abi_names): Removed.
6917 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6918 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6920 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6921 i386_gdbarch_register_os_abi): Removed.
6922 (struct i386_abi_handler): Removed.
6923 (i386_abi_handler_list): Removed.
6924 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6926 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6927 i386_nw_init_abi): New functions.
6928 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6929 Use set_gdbarch_xxx() calls instead of relying on macros for a
6931 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6932 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6933 Register the various architecture variants defined in this file.
6935 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6937 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6938 (struct main_type): Remove arg_types member. Update comments for
6940 (TYPE_ARG_TYPES): Remove.
6941 (TYPE_FN_FIELD_ARGS): Update.
6942 (smash_to_method_type): Update prototype.
6944 * c-typeprint.c (cp_type_print_method_args): Take method type
6945 instead of argument list. Use new argument layout. Simplify.
6946 (c_type_print_args): Use new argument layout. Simplify.
6947 (c_type_print_base): Update call to cp_type_print_method_args.
6948 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6949 argument; use die->type instead. Update call to
6950 smash_to_method_type.
6951 (read_structure_scope): Update call to dwarf2_add_member_fn.
6952 * gdbtypes.c (allocate_stub_method): Update comment.
6953 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6954 Use new argument layout.
6955 (check_stub_method): Use new argument layout. Don't count
6956 void as an argument.
6957 (print_arg_types): Update comments. Use new argument layout.
6958 (recursive_dump_type): Don't print arg_types member.
6959 * hpread.c (hpread_read_struct_type): Use new argument layout.
6960 (fixup_class_method_type): Likewise.
6961 (hpread_type_lookup): Likewise.
6962 * stabsread.c (read_type): Update calls to read_args and
6963 smash_to_method_type.
6964 (read_args): Use new argument layout. Simplify.
6965 * valops.c (typecmp): Use new argument layout. Update parameters
6966 and comments. Simplify.
6967 (hand_function_call): Use new argument layout.
6968 (search_struct_method): Update call to typecmp.
6969 (find_overload_match): Use new argument layout.
6971 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6973 * NEWS: Mention multithreaded debug support for gdbserver.
6975 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6977 * MAINTAINERS: Mention NEWS.
6979 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6981 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6982 (struct mips_objfile_private, compare_pdr_entries): New.
6983 (non_heuristic_proc_desc): Read the ".pdr" section if it
6986 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6988 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6989 (arm_debug): New static variable.
6990 (_initialize_arm_tdep): Add ``set debug arm'' command.
6992 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6994 * Makefile.in (sim_arm_h): Define.
6995 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6996 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6997 (arm_register_sim_regno): New function, map an internal REGNUM
6998 onto a simulator register number.
6999 (arm_gdbarch_init): Set register_sim_regno.
7001 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7003 * MAINTAINERS: Add self.
7005 2002-06-11 Jim Blandy <jimb@redhat.com>
7007 * source.c (source_info): Mention whether the symtab has
7008 information about preprocessor macros.
7010 Call the command `info macro', not `show macro'.
7011 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7013 (_initialize_macrocmd): Register `info_macro_command' in
7014 `infolist', not `showlist'.
7016 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7018 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7019 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7020 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7021 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7022 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7024 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7025 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7026 (_initialize_mips_tdep): Remove dead code.
7027 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7028 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7029 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7030 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7031 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7032 MIPS_LAST_FP_ARG_REGNUM): Remove.
7034 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7036 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7037 (unwind_tmp_obstack_free, parse_frame_info)
7038 (update_context, cfi_read_fp, cfi_write_fp)
7039 (cfi_frame_chain, cfi_init_extra_frame_info)
7040 (cfi_virtual_frame_pointer): Use the above function.
7041 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7043 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7045 * v850-tdep.c (v850_type_is_scalar): New function.
7046 (v850_use_struct_convention): Match current gcc implementation
7047 as close as possible.
7048 (v850_push_arguments): Fix stack_offset handling. Don't write
7049 struct_addr into register. This is done by v850_store_struct_return.
7050 (v850_extract_return_value): Care for structs.
7051 (v850_store_return_value): Ditto.
7052 (v850_store_struct_return): Actually write address.
7054 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7056 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7057 without debug information too.
7059 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7061 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7062 Make multi-arch pure.
7063 * gdbarch.h, gdbarch.c: Re-generate.
7064 * arm-tdep.c (arm_print_float_info): Update.
7065 * arch-utils.h (default_print_float_info): Update.
7066 * arch-utils.c (default_print_float_info): Update.
7067 * infcmd.c (float_info): Update call.
7069 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7071 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7072 the front of the initialize list.
7074 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7076 * infrun.c (struct inferior_status): Replace fields
7077 selected_frame_address and selected_level with field
7079 (save_inferior_status): Update. Use get_frame_id.
7080 (struct restore_selected_frame_args): Delete.
7081 (restore_selected_frame): Update. Use frame_find_by_id.
7082 (restore_inferior_status): Update.
7084 * breakpoint.h (struct breakpoint): Change type of
7085 watchpoint_frame to frame_id.
7086 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7087 call to get_current_frame.
7088 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7090 (watchpoint_check): Use frame_find_by_id.
7092 * frame.h (record_selected_frame): Delete declaration.
7093 * stack.c (record_selected_frame): Delete function.
7095 * frame.h (struct frame_id): Define.
7096 (get_frame_id): Declare.
7097 (frame_find_by_id): Declare.
7098 * frame.c (frame_find_by_id): New function.
7099 (get_frame_id): New function.
7101 2002-06-10 Andrey Volkov <avolkov@transas.com>
7103 * ser-e7kpc.c: Fix duplicated define and call of
7104 _initialize_ser_e7000pc
7106 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7108 * signals/signals.c (target_signal_from_host): Fix #ifdef
7110 (do_target_signal_to_host): Likewise.
7112 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7114 * mips-tdep.c (mips_find_abi_section): New function.
7115 (mips_gdbarch_init): Call it.
7117 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7119 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7120 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7121 after Andrew's 2002-06-08 gdbarch change.
7123 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7125 * i386-linux-nat.c (suppy_gregset): Don't supply
7126 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7128 (fill_gregset): Don't fetch it under the same circumstances.
7130 2002-06-09 Andrew Cagney <cagney@redhat.com>
7132 * Makefile.in (callback_h): Define.
7133 (remote_sim_h): Update path to remote-sim.h.
7134 (remote-rdp.o): Add $(callback_h).
7135 (remote-sim.o): Use $(callback_h).
7136 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7137 * remote-rdp.c: Include "gdb/callback.h".
7139 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7141 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7142 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7144 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7146 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7147 * rdi-share/serpardr.c: Ditto.
7148 * rdi-share/unixcomm.c: Ditto.
7149 * rdi-share/serdrv.c: Ditto.
7150 * rdi-share/hostchan.h: Ditto.
7151 * rdi-share/hostchan.c: Ditto.
7152 * rdi-share/host.h: Ditto.
7153 * rdi-share/devsw.c: Ditto.
7155 * objfiles.h: Change type of obj_private to void pointer.
7156 * pa64solib.c: Update copyright. Don't include "assert.h", use
7157 strcmp instead of STREQ, use LONGEST, do not use PTR
7158 * somsolib.c: Ditto.
7160 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7161 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7162 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7164 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7166 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7167 (default_get_saved_register): Delete function.
7168 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7169 generic_unwind_get_saved_register.
7170 * gdbarch.h, gdbarch.c: Re-generate.
7172 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7174 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7175 generic_func_frame_chain_valid.
7176 * gdbarch.h, gdbarch.c: Re-generate.
7177 * blockframe.c (generic_func_frame_chain_valid): Only check
7178 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7179 passing FP to PC_IN_CALL_DUMMY.
7182 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7184 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7185 (register_gdbarch_data): Initialize init_p.
7186 (gdbarch_data): Initialize data pointer using the init function.
7187 (init_gdbarch_data): Delete function.
7188 (gdbarch_update_p): Update.
7189 (initialize_non_multiarch): Update.
7190 (struct gdbarch): Add field initialized_p.
7191 * gdbarch.h, gdbarch.c: Re-generate.
7193 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7195 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7196 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7197 better do the things actually here.
7198 * x86-64-tdep.c (x86_64_register_name2nr): New.
7199 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7200 (x86_64_gdbarch_init): Respect the above change.
7201 * x86-64-tdep.h (x86_64_register_name2nr)
7202 (x86_64_register_nr2name): Add prototypes.
7203 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7205 2002-06-06 Michael Snyder <msnyder@redhat.com>
7207 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7208 Delete extra braces and re-indent.
7209 (d10v_store_return_value): Char return values
7210 must be shifted over by one byte in R0.
7211 (d10v_extract_return_value): Delete extra braces, re-indent.
7213 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7215 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7216 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7217 (d10v_integer_to_address): Rewrite.
7218 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7219 the d10v specific functions which take care of converting to the
7222 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7224 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7225 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7227 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7229 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7231 * config/tm-linux.h: Ditto.
7232 * config/alpha/tm-alphalinux.h: Ditto.
7233 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7234 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7235 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7236 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7237 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7238 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7239 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7240 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7241 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7242 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7243 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7244 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7245 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7246 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7247 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7248 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7249 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7250 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7251 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7252 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7253 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7254 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7255 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7256 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7257 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7258 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7259 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7260 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7261 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7262 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7263 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7264 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7265 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7266 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7267 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7268 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7269 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7271 2002-05-04 Aidan Skinner <aidan@velvet.net>
7273 * ada-exp.tab.c: New file
7274 * ada-exp.y: New file
7275 * ada-lang.c: New file
7276 * ada-lang.h: New file
7277 * ada-lex.c: New file
7278 * ada-lex.l: New file
7279 * ada-tasks.c: New file
7280 * ada-typeprint.c: New file
7281 * ada-valprint.c: New file
7283 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7285 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7286 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7288 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7290 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7291 insetead of ppc-linux-tdep.o.
7292 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7293 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7295 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7297 2002-05-07 Christian Groessler <chris@groessler.org>
7298 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7299 bit register contents for little endian hosts.
7301 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7303 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7306 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7308 * gdbarch.h: Regenerate.
7310 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7312 * MAINTAINERS: Add everyone to write-after-approval list.
7314 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7316 * stack.c (frame_info): Use frame_register_unwind instead of
7317 saved_regs. Mention when the SP is on the stack or in a register.
7319 * frame.h (frame_register_unwind_ftype): Define. Document.
7320 (struct frame_info): Add field register_unwind and
7321 register_unwind_cache.
7322 (frame_register_unwind): Declare.
7323 (generic_unwind_get_saved_register): Declare.
7325 * frame.c (frame_register_unwind): New function.
7326 (generic_unwind_get_saved_register): New function.
7328 * blockframe.c (generic_call_dummy_register_unwind): New function.
7329 (frame_saved_regs_register_unwind): New function.
7330 (set_unwind_by_pc): New function.
7331 (create_new_frame): New function.
7332 (get_prev_frame): New function.
7334 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7336 * a29k-share/: Delete directory.
7337 * remote-vx29k.c: Delete file.
7339 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7341 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7342 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7344 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7346 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7347 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7350 (sparcnbsd-tdep.o): New dependency lists.
7351 * NEWS: Note new UltraSPARC NetBSD native configuration.
7352 * configure.host (sparc64-*-netbsd*): New host.
7353 * configure.tgt (sparc-*-netbsdelf*)
7354 (sparc-*-netbsd*): Set gdb_target to nbsd.
7355 (sparc64-*-netbsd*): New target.
7356 * sparc64nbsd-nat.c: New file.
7357 * sparcnbsd-nat.c: New file.
7358 * sparcnbsd-tdep.c: New file.
7359 * sparcnbsd-tdep.h: New file.
7360 * config/sparc/nbsd.mt: New file.
7361 * config/sparc/nbsd64.mh: New file.
7362 * config/sparc/nbsd64.mt: New file.
7363 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7364 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7366 * config/sparc/nbsdaout.mt: Remove.
7367 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7368 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7370 * config/sparc/nbsdelf.mt: Remove.
7371 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7372 sparc-nat.c compatiblity defines.
7373 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7374 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7375 * config/sparc/tm-nbsd64.h: New file.
7376 * config/sparc/tm-nbsdaout.h: Remove.
7377 * config/sparc/xm-nbsd.h: Remove.
7379 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7381 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7382 * sparc-tdep.c: Include osabi.h.
7383 (gdbarch_tdep): Add osabi member.
7384 (_initialize_sparc_tdep): Use gdbarch_register.
7385 (sparc_gdbarch_init): Use generic OS ABI framework.
7386 (sparc_dump_tdep): New function.
7388 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7390 * corefile.c (do_captured_read_memory_integer): Return non-zero
7392 (safe_read_memory_integer): Copy result of memory read when
7393 status is non-zero. Also, add comments.
7395 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7397 * Makefile.in (ppc_tdep_h): Define.
7400 (rs6000-tdep.o): Use $(ppc_tdep_h).
7403 (ppcnbsd-tdep.o): New dependency lists.
7404 * ppc-tdep.h: Use generic OS ABI framework.
7405 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7406 (ppc_linux_init_abi): New functions.
7407 (ppc_sysv_abi_broken_use_struct_convention)
7408 (ppc_sysv_abi_use_struct_convention)
7409 (ppc_sysv_abi_push_arguments): Move to...
7410 * ppc-sysv-tdep.c: ...here.
7411 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7412 * rs6000-tdep.c (process_note_abi_tag_sections)
7413 (get_elfosabi): Remove.
7414 (rs6000_gdbarch_init): Use generic OS ABI framework.
7415 (rs6000_dump_tdep): New function.
7416 (_initialize_rs6000_tdep): Use gdbarch_register.
7417 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7418 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7419 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7420 of ppc-linux-tdep.o.
7421 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7422 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7423 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7424 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7425 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7426 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7428 2002-05-29 Jim Blandy <jimb@redhat.com>
7430 * macroscope.c (default_macro_scope): Put `void' in empty argument
7433 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7435 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7436 * arch-utils.c: Include "sim-regno.h".
7437 * gdbarch.sh: Don't include "sim-regno.h".
7438 * gdbarch.h, gdbarch.c: Regenerate.
7439 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7441 * arch-utils.h (legacy_register_sim_regno): To here.
7442 * remote-sim.c (legacy_register_sim_regno): Move function from
7444 * arch-utils.c (legacy_register_sim_regno): To here.
7446 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7448 * sim-regno.h: New file.
7449 * Makefile.in (sim_regno_h): Define.
7450 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7451 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7452 (legacy_register_sim_regno): New function.
7453 (one2one_register_sim_regno): New function.
7454 (gdbsim_fetch_register): Rewrite.
7455 (gdbsim_store_register): Only store a register when
7456 REGISTER_SIM_REGNO is valid.
7457 * d10v-tdep.c: Include "sim-regno.h".
7458 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7459 (d10v_ts3_register_sim_regno): Ditto.
7460 * gdbarch.sh: Include "sim-regno.h".
7461 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7462 * gdbarch.h, gdbarch.c: Regenerate.
7463 * arch-utils.h (default_register_sim_regno): Delete declaration.
7464 * arch-utils.c (default_register_sim_regno): Delete function.
7466 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7468 * ppcnbsd-nat.c: Rewrite.
7469 * ppcnbsd-tdep.c: New file.
7470 * ppcnbsd-tdep.h: New file.
7471 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7472 solib.o, and solib-svr4.o.
7473 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7474 nbsd-tdep.o, and corelow.o.
7476 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7478 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7479 `tr' and `sed'. Mention that `broken' targets are not expected to
7482 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7484 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7485 Let PC point right after the prologue before looking up symbols.
7487 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7489 * i386-tdep.c (i386_register_virtual_type): Return
7490 builtin_type_vec128i for SSE registers.
7492 * gdbtypes.h (builtin_type_vec128i): Declare.
7494 * gdbtypes.c (build_builtin_type_vec128i): New function.
7495 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7496 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7497 (build_gdbtypes): Initialize new builtin vector types.
7498 (_initialize_gdbtypes): Register new vector types with gdbarch.
7500 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7502 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7503 since it has been multi-arch'd.
7504 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7505 Move Alpha and VAX multi-arch news entries to same section
7506 as other multi-arch news.
7508 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7510 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7511 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7512 static. Rename some register numbers to put them in ns32k-tdep
7514 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7515 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7517 (_initialize_ns32k_tdep): Use gdbarch_register.
7518 * ns32k-tdep.h: New file.
7519 * ns32knbsd-tdep.c: New file.
7520 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7521 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7522 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7523 REGISTER_BYTES, REGISTER_BYTE): Remove.
7524 * config/ns32k/tm-ns32k.h: New file.
7525 * config/ns32k/tm-umax.h: Remove.
7527 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7529 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7530 ns32k_store_struct_return, ns32k_extract_return_value,
7531 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7533 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7534 ns32k_saved_pc_after_call.
7535 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7536 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7537 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7538 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7539 ns32k_extract_struct_value_address.
7541 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7543 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7544 ns32k_fix_call_dummy): New.
7545 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7546 ns32k_call_dummy_words.
7547 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7548 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7549 CALL_DUMMY_NARGS): Remove.
7550 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7552 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7554 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7555 ns32k_frame_saved_pc, ns32k_frame_args_address,
7556 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7557 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7558 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7559 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7560 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7561 (BREAKPOINT): Remove..
7562 (FRAME_CHAIN): Define as ns32k_frame_chain.
7563 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7564 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7565 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7566 (FRAME_FIND_SAVED_REGS): Remove.
7567 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7568 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7569 (POP_FRAME): Define as ns32k_pop_frame.
7571 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7573 * ns32k-tdep.c (ns32k_register_byte_32082,
7574 ns32k_register_byte_32382, ns32k_register_raw_size,
7575 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7577 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7578 ns32k_register_byte_32382.
7579 * config/ns32k/tm-umax.h: Update copyright years.
7580 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7581 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7582 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7583 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7584 (ns32k_get_enter_addr): Fix prototype.
7586 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7588 * ns32k-tdep.c: Update copyright years.
7589 (ns32k_register_name_32082): New function.
7590 (ns32k_register_name_32382): Ditto.
7591 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7592 (REGISTER_NAME): Define as ns32k_register_name_32382.
7593 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7594 (REGISTER_NAME): Define as ns32k_register_name_32082.
7596 2002-05-24 Jim Blandy <jimb@redhat.com>
7598 * dwarf2read.c (free_line_header): Use xfree, not free.
7600 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7602 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7603 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7605 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7607 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7609 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7611 From Ross Alexander at NEC Europe:
7612 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7614 2002-05-23 Michael Snyder <msnyder@redhat.com>
7616 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7617 for input, rather than parse_and_eval_address.
7619 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7621 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7622 * Makefile.in (sim_d10v_h): Update definition.
7624 2002-05-24 Andrew Cagney <cagney@redhat.com>
7626 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7627 change `2002-05-22 Michael Snyder' below.
7628 (d10v_push_arguments): Ditto.
7629 (d10v_extract_return_value): Ditto.
7631 2002-05-23 Jim Blandy <jimb@redhat.com>
7633 * macrotab.c (check_for_redefinition): Don't complain if the new
7634 definition is the same as the previous one. Take more arguments
7635 to allow the comparison.
7636 (macro_define_object, macro_define_function): Pass more arguments
7637 to check_for_redefinition.
7639 2002-05-22 Michael Snyder <msnyder@redhat.com>
7641 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7642 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7643 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7644 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7645 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7646 Add a temp variable to save a call (and a memory read).
7647 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7648 if possible (so that PC_IN_CALL_DUMMY will work).
7650 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7652 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7654 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7656 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7658 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7659 (dwarf2_build_frame_info): Add offset to fde->initial_location
7660 so that frames of shared libraries are mapped correctly.
7661 (execute_stack_op): Change type of 'result' from ULONGEST to
7664 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7666 * config/alpha/tm-nbsd.h: Include solib.h.
7668 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7670 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7671 assumptions about the host's byte order.
7673 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7675 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7677 * alphanbsd-tdep.c: Include solib-svr4.h.
7678 * shnbsd-tdep.c: Ditto.
7680 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7682 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7683 nbsd-tdep.h to dependency list.
7684 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7685 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7686 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7687 nbsdaout.mh and nbsdelf.mh consistently.
7688 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7689 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7690 nbsdaout.mt and nbsdelf.mh consistently.
7691 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7692 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7693 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7694 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7695 a.out shared library stuff from here...
7696 * config/nm-nbsdaout.h: ...to here.
7697 * config/tm-nbsd.h: Remove.
7698 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7699 * config/arm/nbsd.mh: Remove.
7700 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7702 * config/arm/nbsdaout.mh: New file.
7703 * config/arm/nbsdelf.mh: New file.
7704 * config/arm/nm-nbsdaout.h: New file.
7705 * config/i386/nbsd.mh: Remove.
7706 * config/i386/nbsd.mt: Remove.
7707 * config/i386/nbsdaout.mh: New file.
7708 * config/i386/nbsdaout.mt: New file.
7709 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7710 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7711 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7712 i386_register_u_addr): Remove.
7713 * config/i386/nm-nbsdaout.h: New file.
7714 * config/i386/nm-nbsdelf.h: Remove.
7715 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7716 (USE_STRUCT_CONVENTION): Remove.
7717 * config/i386/tm-nbsdaout.h: New file.
7718 * config/i386/tm-nbsdelf.h: Remove.
7719 * config/m68k/nbsd.mh: Remove.
7720 * config/m68k/nbsd.mt: Remove.
7721 * config/m68k/nbsdaout.mh: New file.
7722 * config/m68k/nbsdaout.mt: New file.
7723 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7724 * config/m68k/nm-nbsdaout.h: New file.
7725 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7726 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7727 * config/ns32k/nbsd.mh: Remove.
7728 * config/ns32k/nbsd.mt: Remove.
7729 * config/ns32k/nbsdaout.mh: New file.
7730 * config/ns32k/nbsdaout.mt: New file.
7731 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7732 * config/ns32k/nm-nbsdaout.h: New file.
7733 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7734 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7735 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7736 (SVR4_SHARED_LIBS): Remove.
7737 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7738 * config/sparc/nbsd.mh: Remove.
7739 * config/sparc/nbsd.mt: Remove.
7740 * config/sparc/nbsdaout.mh: New file.
7741 * config/sparc/nbsdaout.mt: New file.
7742 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7743 * config/sparc/nbsdelf.mt: New file.
7744 * config/sparc/nm-nbsdaout.h: New file.
7745 * config/sparc/nm-nbsdelf.h: Remove.
7746 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7747 * config/sparc/tm-nbsdaout.h: New file.
7749 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7751 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7753 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7755 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7757 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7759 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7761 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7763 * NEWS: Note new MIPS NetBSD native configuration.
7764 * configure.host (mips*-*-netbsd*): New host.
7765 * configure.tgt (mips*-*-netbsd*): New target.
7766 * mipsnbsd-nat.c: New file.
7767 * mipsnbsd-tdep.c: New file.
7768 * mipsnbsd-tdep.h: New file.
7769 * config/mips/nbsd.mh: New file.
7770 * config/mips/nbsd.mt: New file.
7771 * config/mips/nm-nbsd.h: New file.
7772 * config/mips/tm-nbsd.h: New file.
7774 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7776 * Makefile.in (SFILES): Add osabi.c.
7777 (COMMON_OBS): Add osabi.o.
7778 (osabi.o): New dependency list.
7779 * osabi.c: New file.
7780 * osabi.h: New file.
7781 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7783 * Makefile.in (alpha_tdep_h): Define and use instead of
7785 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7786 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7788 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7789 * alpha-tdep.h: Include osabi.h.
7790 (alpha_abi): Remove.
7791 (gdbarch_tdep): Use generic OS ABI framework.
7792 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7793 gdbarch_register_osabi.
7794 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7795 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7796 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7798 * Makefile.in (sh_tdep_h): Add osabi.h.
7799 * sh-tdep.h (sh_osabi): Remove.
7800 (gdbarch_tdep): Use generic OS ABI framework.
7801 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7802 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7803 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7804 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7806 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7807 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7808 gdbarch_register_osabi.
7809 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7810 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7811 (get_elfosabi): Rename to...
7812 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7813 ABI framework support routines.
7814 (arm_gdbarch_init): Use generic OS ABI framework.
7815 (arm_dump_tdep): Likewise.
7816 (_initialize_arm_tdep): Likewise.
7817 * arm-tdep.h: Include osabi.h.
7819 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7821 (arm_gdbarch_register_os_abi): Remove prototype.
7822 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7823 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7825 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7826 * mips-tdep.c: Include osabi.h.
7827 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7830 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7832 * h8300-tdep.c: Fix formatting.
7834 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7836 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7837 printing vector registers.
7839 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7841 From Fernando Nasser:
7842 * remote.c (remote_async_open_1): Re-throw the exception when the
7844 (remote_cisco_open): Ditto.
7845 (remote_open_1): Ditto.
7847 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7849 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7850 (remote_start_remote): Add uiout parameter. Pass through to
7851 remote_start_remote_dummy.
7852 (remote_open_1): Use catch_exception instead of catch_errors.
7853 (remote_async_open_1): Ditto.
7854 (remote_cisco_open): Ditto.
7856 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7858 * remote.c (remote_start_remote): Replace PTR with void pointer.
7859 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7862 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7864 * gdb_indent.sh: Allow the script to be run in the sim directory.
7866 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7868 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7869 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7871 * corelow.c (core_open): Only call set_gdbarch_from_file if
7874 2002-05-17 Andrey Volkov <avolkov@transas.com>
7876 * h8300-tdep.c: Add support of EXR register
7877 * config/h8300/tm-h8300.h: Ditto.
7879 2002-05-17 Andrey Volkov <avolkov@transas.com>
7881 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7883 2002-05-17 Andrey Volkov <avolkov@transas.com>
7885 * h8300-tdep.c: Change literal regnums to REGNO.
7887 2002-05-17 Jim Blandy <jimb@redhat.com>
7889 * NEWS: Note addition of macro support.
7891 Expand preprocessor macros in C expressions.
7892 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7893 (scan_macro_expansion, scanning_macro_expansion,
7894 finished_macro_expansion): New function declarations.
7895 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7896 variable declarations.
7897 * parser-defs.h (expression_context_pc): New declaration.
7898 * parse.c (expression_context_pc): New variable.
7899 (parse_exp_1): Set expression_context_pc, as well as
7900 expression_context_block.
7901 * c-exp.y (yylex): If we're not already reading the result of a
7902 macro expansion, try to macro-expand the next token. When we're
7903 done scanning a macro expansion, switch back to the mainline text.
7904 Commas and `if's in a macro's expansion don't terminate the input.
7905 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7906 (macro_original_text, macro_expanded_text,
7907 expression_macro_lookup_func, expression_macro_lookup_baton): New
7909 (scan_macro_expansion, scanning_macro_expansion,
7910 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7911 c_preprocess_and_parse): New functions.
7912 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7913 c_preprocess_and_parse, instead of c_parse.
7914 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7915 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7917 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7919 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7920 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7921 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7923 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7925 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7927 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7929 * Makefile.in (sh_tdep_h): Define and use.
7930 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7931 register enum): Move to...
7932 * * sh-tdep.h: ...here.
7933 * sh-tdep.c: Include sh-tdep.h.
7934 * sh3-rom.c: Likewise.
7935 * shnbsd-tdep.c: Likewise.
7937 2002-05-16 Michael Snyder <msnyder@redhat.com>
7939 * arm-tdep.c: Spelling fix in comment.
7941 2002-05-16 Jim Blandy <jimb@redhat.com>
7943 Add commands for manually expanding macros and showing their
7945 * macrocmd.c, macroscope.c, macroscope.h: New files.
7946 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7947 (macroscope_h): New variable.
7948 (HFILES_NO_SRCDIR): Add macroscope.h.
7949 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7950 (macroscope.o, macrocmd.o): New rules.
7952 Teach the Dwarf 2 reader to read macro information.
7953 * dwarf2read.c: #include "macrotab.h".
7954 (dwarf_macinfo_buffer): New variable.
7955 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7957 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7958 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7959 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7960 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7961 dwarf2_macro_spaces_in_definition): New complaints.
7962 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7963 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7964 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7965 the partial symbol table.
7966 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7967 from what's recorded in the partial symbol table.
7968 (read_file_scope): If the compilation unit has a
7969 `DW_AT_macro_info' attribute, read its macro information.
7970 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7972 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7975 * ser-tcp.c: Don't include <netinet/udp.h>.
7977 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7979 * MAINTAINERS: Update my email address.
7981 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7983 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7984 include file of the same name.
7986 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7988 * configure.tgt: Mark v850 as multi-arched.
7989 * config/v850/tm-v850.h: Remove file.
7990 * config/v850/v850.mt: Eliminate TM_FILE.
7992 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7994 * v850-tdep.c: Full multi-arch.
7995 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7996 Define GDB_MULTI_ARCH to 2.
7998 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8000 * p-exp.y (current_type): New static variable.
8001 Carries the type of the expression at the position that is parsed.
8002 (push_current_type, pop_current_type): Two new functions. Used
8003 to store/restore current_type in expression on specific tokens.
8004 (search_field): New static variable. Set to one after parsing a point
8005 as at that point only a FIELDNAME token should be searched.
8006 (FIELDNAME): New token. After a point only a token belonging to
8007 current_type type definition is allowed.
8008 (all over token rules): reset and change current_type according
8010 (exp '[' rule): insert implicit array index field if
8011 exp is a pascal string type.
8013 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8015 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8016 frame info. Use frame_info's saved_regs instead of matching member
8017 in extra_frame_info throughout.
8018 (v850_frame_init_saved_regs): New function.
8019 (v850_init_extra_frame_info): Move most functionality into
8020 v850_frame_init_saved_regs().
8021 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8022 (v850_frame_find_saved_regs): Remove declaration.
8023 (FRAME_FIND_SAVED_REGS): Remove definition.
8024 (v850_frame_init_saved_regs): Add declaration.
8025 (FRAME_INIT_SAVED_REGS): Add definition.
8027 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8029 * v850-tdep.c: Begin multi-arch'ing v850.
8030 (v850_target_architecture_hook): Remove function.
8031 (v850_gdbarch_init): New function. Add code previously in
8032 v850_target_architecture_hook().
8033 (_initialize_v850_tdep): Don't set target_architecture_hook.
8034 Call register_gdbarch_init() instead.
8036 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8038 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8039 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8040 (fixup_class_method_type): Likewise.
8042 2002-05-15 Jim Blandy <jimb@redhat.com>
8044 Add macro structures to GDB's symbol tables. Nobody puts anything
8046 * symtab.h (struct symtab): New member: `macro_table'.
8047 * buildsym.h (pending_macros): New global variable.
8048 * buildsym.c: #include "macrotab.h".
8049 (buildsym_init): Initialize `pending_macros'.
8050 (end_symtab): If we found macro information while reading a CU's
8051 debugging info, do build a symtab structure for it. Make the
8052 symtab point to the macro information, and clear the
8053 `pending_macros' pointer which held it while we were reading the
8055 (really_free_pendings): Free any pending macro table.
8056 * objfiles.h (struct objfile): New member: `macro_cache'.
8057 * objfiles.c (allocate_objfile): Set allocate and free functions
8058 for the macro cache's objstack.
8059 (free_objfile): Empty the macro cache's obstack.
8060 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8061 set new allocate and free functions for it.
8062 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8063 free functions for the macro cache's objstack. (Why is this
8064 function building its own objfile?)
8065 * symmisc.c (print_objfile_statistics): Print statistics on the
8067 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8069 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8071 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8072 (REGISTER_U_ADDR): Delete definition.
8073 (arm_register_u_addr): Delete declaration.
8075 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8077 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8078 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8080 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8082 * regcache.c (register_valid): Revise comments refering to "Not
8083 available" and "unavailable".
8084 * frame.c (frame_register_read): Ditto.
8085 * findvar.c (value_of_register): Ditto.
8087 2002-05-15 Andrew Cagney <cagney@redhat.com>
8089 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8090 (remote-sim.o): Update dependencies.
8091 (d10v-tdep.o): Specify dependencies.
8092 (sim_d10v_h): Define.
8094 2002-05-14 Jim Blandy <jimb@redhat.com>
8096 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8097 * macrotab.c (macro_lookup_inclusion, find_definition,
8098 new_macro_table): Same.
8100 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8101 not `! strcmp ()'. This is a dubious improvement.
8102 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8104 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8105 although it's not necessary, to avoid a warning.
8107 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8109 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8110 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8111 TYPE_INSTANCE_FLAGS.
8112 (struct main_type): New.
8113 (struct type): Move most members to struct main_type. Change
8114 cv_type and as_type to new type_chain member. Add instance_flags.
8115 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8116 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8117 (finish_cv_type): Remove prototype.
8118 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8120 (alloc_type_instance): New function.
8121 (smash_type): New function.
8122 (make_pointer_type, make_reference_type, make_function_type)
8123 (smash_to_member_type, smash_to_method_type): Call smash_type.
8124 (make_qualified_type): New function.
8125 (make_type_with_address_space): Call make_qualified_type.
8126 (make_cv_type): Likewise.
8127 (finish_cv_type): Remove unnecessary function.
8128 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8129 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8130 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8131 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8132 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8133 * hpread.c (hpread_read_struct_type): Likewise.
8134 * stabsread.c (read_struct_type): Likewise.
8136 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8138 * configure.tgt: Add a catch all sh* target, for cases like
8139 sh[2,3,4]-elf and sh-hms.
8141 2002-05-14 Keith Seitz <keiths@redhat.com>
8143 * event-loop.c (create_file_handler): Don't do anything but
8144 update data when we are given a fd which we are already
8147 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8149 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8150 (update_context): Use __func__ in warnings.
8152 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8154 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8155 and tcp_close to net_open and net_close.
8156 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8157 using UDP if requested. Don't try to disable Nagle on UDP
8159 * remote.c (remote_serial_open): New function. Warn about UDP.
8160 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8162 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8164 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8166 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8168 * configure.tgt: Remove sh-hms target.
8169 * MAINTAINERS: Don't list sh-hms as a separate target.
8171 2002-05-13 Jim Blandy <jimb@redhat.com>
8173 Add first preprocessor macro-expansion files.
8174 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8175 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8176 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8177 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8178 (COMMON_OBS): Add macrotab.o, macroexp.o.
8179 (macroexp.o, macrotab.o): New rules.
8181 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8183 * config/m88k/tm-m88k.h: Update copyright.
8184 (m88k_target_write_pc): Declare
8185 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8186 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8187 (SHIFT_INST_REGS): Update definition.
8188 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8189 using old definition of TARGET_WRITE_PC.
8190 * regcache.c (generic_target_write_pc): Delete code handling
8192 * gdbarch.sh (NNPC_REGNUM): Delete.
8193 * gdbarch.h, gdbarch.c: Regenerate.
8195 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8197 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8200 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8202 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8203 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8204 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8206 * c-typeprint.c (cp_type_print_method_args): Likewise.
8207 (c_type_print_args): Likewise.
8208 * d10v-tdep.c (d10v_push_arguments): Likewise.
8209 (d10v_extract_return_value): Likewise.
8210 * expprint.c (print_subexp): Likewise.
8211 * gdbtypes.c (lookup_primitive_typename): Likewise.
8212 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8213 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8214 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8215 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8216 (TYPE_VECTOR): Likewise.
8217 * hpread.c (hpread_read_struct_type)
8218 (fix_static_member_physnames, fixup_class_method_type)
8219 (hpread_type_lookup): Likewise.
8220 * mdebugread.c (parse_symbol, parse_type): Likewise.
8221 * p-lang.c (is_pascal_string_type): Likewise.
8222 * valops.c (hand_function_call): Likewise.
8223 * x86-64-tdep.c (classify_argument): Likewise.
8225 * hpread.c (hpread_read_function_type)
8226 (hpread_read_doc_function_type): Call replace_type.
8227 * dstread.c (create_new_type): Delete.
8228 (decode_dst_structure, process_dst_function): Call alloc_type.
8229 Use type access macros.
8231 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8233 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8234 the're not supported by the current architecture.
8235 (i387_fill_fxsave): Likewise.
8237 2002-05-12 Fred Fish <fnf@redhat.com>
8239 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8240 sect_index_xxx members to index the first slot in section_offsets
8241 if all of the section_offsets are zero.
8243 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8245 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8246 checked in with last change.
8248 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8250 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8251 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8254 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8256 * Makefile.in: Update dependencies.
8258 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8260 * language.c (local_hex_string_custom): Simplify. Do not depend
8261 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8263 * memattr.c (mem_info_command): Replace calls to
8264 longest_local_hex_string and longest_local_hex_string_custom.
8265 * buildsym.c (make_blockvector): Ditto.
8266 * solib.c (info_sharedlibrary_command): Ditto.
8267 * tracepoint.c (tracepoints_info): Ditto.
8268 * symtab.c (print_msymbol_info): Ditto.
8270 * language.c (local_hex_string): Delete.
8271 (local_hex_string_custom): Delete.
8272 (longest_local_hex_string): Rename to local_hex_string.
8273 (longest_local_hex_string_custom): Rename to
8274 local_hex_string_custom.
8275 * language.h (local_hex_string): Change parameter type to LONGEST.
8276 (local_hex_string_custom): Ditto.
8277 (longest_local_hex_string): Delete declaration.
8278 (longest_local_hex_string_custom): Ditto.
8280 * solib.c: Update copyright.
8281 * memattr.c: Update copyright.
8283 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8285 * arch-utils.h (legacy_register_to_value): Declare.
8286 (legacy_value_to_register): Declare.
8287 (legacy_convert_register_p): Declare.
8288 * arch-utils.c (legacy_register_to_value): New function.
8289 (legacy_value_to_register): New function.
8290 (legacy_convert_register_p): New function.
8292 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8293 (VALUE_TO_REGISTER): Define.
8294 (CONVERT_REGISTER_P): Define.
8295 * gdbarch.h, gdbarch.c: Regenerate.
8297 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8299 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8302 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8303 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8305 * Makefile.in: Update dependencies for valops.c.
8306 * valops.c: Include "gdb_assert.h".
8307 (typecmp): Skip THIS parameter to methods.
8308 (find_method_list): Remove static_memfuncp argument,
8309 update callers. Check for stub methods.
8310 (find_value_oload_method_list): Don't set *static_memfuncp.
8311 (find_overload_match): Don't check for stub methods. Assert
8312 that methods are not stubbed. Handle static methods.
8313 (value_find_oload_method_list): Remove static_memfuncp argument.
8314 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8315 to the argument list for static stub methods.
8316 * value.h (value_find_oload_method_list): Update prototype.
8318 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8320 * arch-utils.h (generic_register_size): Declare.
8321 (generic_register_raw_size, generic_register_virtual_size): Delete
8323 * arch-utils.c (generic_register_raw_size): Delete.
8324 (generic_register_size): New function.
8325 (generic_register_virtual_size): Delete.
8327 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8328 default generic_register_size.
8329 * gdbarch.h, gdbarch.c: Re-generate.
8331 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8332 register_virtual_size.
8333 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8334 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8336 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8338 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8339 * gdbarch.h, gdbarch.c: Regenerate.
8340 * gnu-v3-abi.c: Update copyright.
8341 (vtable_address_point_offset): Update.
8342 (gnuv3_rtti_type): Update.
8343 (gnuv3_baseclass_offset): Update.
8344 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8345 (init_fetch_link_map_offsets): Update.
8346 * remote.c (get_remote_state): Update.
8348 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8350 * TODO: Remove value_headof/value_from_vtable_info comment.
8351 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8352 * values.c (value_headof, value_from_vtable_info): Delete.
8353 * value.h (value_from_vtable_info): Delete prototype.
8355 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8357 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8358 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8360 (gdb_assert_h): Define.
8361 (gdb_wait_h): Define.
8362 (gdb_regex_h): Define.
8364 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8366 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8367 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8369 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8371 * nbsd-tdep.c: Fix comment.
8373 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8375 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8376 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8377 (nbsd-tdep.o): New dependency list.
8378 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8380 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8381 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8382 * nbsd-tdep.c: New file.
8383 * nbsd-tdep.h: New file.
8384 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8386 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8387 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8388 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8389 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8391 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8393 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8394 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8395 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8396 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8397 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8398 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8400 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8402 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8403 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8404 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8405 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8406 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8407 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8408 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8410 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8412 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8413 fetch_elfcore_registers to...
8414 * i386nbsd-tdep.c: ...here.
8415 (i386nbsd_use_struct_convention): Rename to...
8416 (i386nbsd_aout_use_struct_convention): ...this.
8417 (i386nbsd_supply_reg): New function.
8418 (i386nbsd_fill_reg): New function.
8419 (fetch_core_registers): Use i386nbsd_supply_reg.
8420 (fetch_elfcore_registers): Likewise.
8421 (_initialize_i386nbsd_tdep): New function.
8422 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8423 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8424 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8425 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8426 (i386nbsd_aout_use_struct_convention): ...this.
8428 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8430 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8431 (store_inferior_registers): Use shnbsd_fill_reg.
8432 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8433 sh_nbsd_supply_register): Collapse into...
8434 (shnbsd_supply_reg): ...this.
8435 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8436 (shnbsd_fill_reg): ...this.
8437 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8438 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8439 (fetch_core_registers): Use shnbsd_supply_reg.
8440 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8441 (sh_nbsd_core_fns): Rename to...
8442 (shnbsd_core_fns): ...this.
8443 (sh_nbsd_elfcore_fns): Rename to...
8444 (shnbsd_elfcore_fns): ...this.
8445 (sh_nbsd_init_abi): Rename to...
8446 (shnbsd_init_abi): ...this.
8447 (_initialize_sh_nbsd_tdep): Rename to...
8448 (_initialize_shnbsd_tdep): ...this.
8449 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8450 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8451 sh_nbsd_fill_register): Remove prototypes.
8452 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8454 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8456 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8457 (i387-nat.o): Delete dependency list.
8458 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8459 (x86-64-linux-nat.o): Likewise.
8460 * i387-nat.c: Delete file, moving contents to...
8461 * i387-tdep.c: ...here.
8462 * i387-nat.h: Rename...
8463 * i387-tdep.h: ...to this.
8464 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8465 * i386-linux-nat.c: Likewise.
8466 * i386bsd-nat.c: Likewise.
8467 * i386gnu-nat.c: Likewise.
8468 * i386nbsd-nat.c: Likewise.
8469 * i386v4-nat.c: Likewise.
8470 * x86-64-linux-nat.c: Likewise.
8471 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8472 * config/i386/go32.mh (NATDEPFILES): Likewise.
8473 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8474 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8475 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8476 * config/i386/linux.mh (NATDEPFILES): Likewise.
8477 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8478 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8479 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8480 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8482 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8484 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8485 (alphanbsd-nat.o): Remove dependency list.
8486 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8487 * alphanbsd-nat.c: Delete. Contents moved to...
8488 * alphanbsd-tdep.c: ...here.
8489 (_initialize_alphanbsd_tdep): Register core functions.
8490 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8492 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8494 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8495 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8496 (alphanbsd-nat.o): Likewise.
8497 (alphabsd-tdep.o): New dependency list.
8498 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8499 (fill_gregset): Use alphabsd_fill_reg.
8500 (supply_fpregset): Use alphabsd_supply_fpreg.
8501 (fill_fpregset): Use alphabsd_fill_fpreg.
8502 (fetch_inferior_registers): Use struct reg and struct fpreg
8503 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8504 and alphabsd_supply_fpreg.
8505 (store_inferior_registers): Use struct reg and struct fpreg
8506 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8507 and alphabsd_fill_fpreg.
8508 * alphabsd-tdep.c: New file.
8509 * alphabsd-tdep.h: New file.
8510 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8511 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8512 alphabsd_supply_fpreg.
8513 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8514 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8516 2002-05-11 Eric Christopher <echristo@redhat.com>
8518 * mips-tdep.c (mips_double_register_type): Fix thinko.
8519 (mips_single_register_type): Ditto.
8520 * MAINTAINERS: Add self.
8522 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8524 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8525 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8526 right thing on architectures with different endianness and/or
8529 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8531 From Christian Limpach <chris@Pin.LU>
8532 * configure.in: Change sed expression which comments out
8533 NATDEPFILES to also comment out continuation lines.
8534 * configure: Regenerate.
8536 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8538 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8541 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8543 * sh-tdep.c: Include correct file.
8545 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8547 New support for sh64-elf (sh5) target.
8549 * configure.tgt: For sh64-elf target, default to sh-elf.
8551 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8552 (struct gdbarch_tdep): Add new fields for new registers and ABI
8555 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8556 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8557 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8558 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8559 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8560 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8561 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8562 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8563 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8564 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8565 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8566 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8567 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8568 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8569 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8570 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8571 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8572 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8573 sign_extend, sh64_nofp_frame_init_saved_regs,
8574 sh64_init_extra_frame_info, sh64_get_saved_register,
8575 sh64_extract_struct_value_address, sh64_pop_frame,
8576 sh64_push_arguments, sh64_extract_return_value,
8577 sh64_store_return_value, sh64_show_media_regs,
8578 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8579 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8580 sh_sh64_register_virtual_type,
8581 sh_sh64_register_convert_to_virtual,
8582 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8583 sh64_register_read, sh64_pseudo_register_write,
8584 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8585 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8586 sh64_do_pseudo_register, sh_compact_do_registers_info,
8587 sh64_do_registers_info, sh_gdbarch_init): New functions.
8589 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8591 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8593 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8595 * linespec.c (decode_line_1): Check for a double quote after
8596 a filename correctly.
8598 2002-05-10 Jim Blandy <jimb@redhat.com>
8600 Properly track the size of the current objfile's .debug_line section.
8601 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8602 (DWARF_LINE_SIZE): New macro.
8603 (dwarf2_build_psymtabs_hard): Record the line section's size in
8604 the partial symbol table.
8605 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8608 2002-05-10 Petr Sorfa <petrs@caldera.com>
8610 * ia64-tdep.c: Handle breakpoints on L instruction type
8611 in MLX instruction bundle by moving the breakpoint to
8612 the third slot (X instruction type) as L holds only data.
8614 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8616 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8617 (process_one_symbol): Complain about discarding local symbols
8618 due to a misplaced N_LBRAC entry.
8620 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8622 From Daniel Berlin <dan@cgsoftware.com>
8623 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8624 decrease the depth we are at, in the case of templates.
8626 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8628 * mips-tdep.c (mips_float_register_type): New function.
8629 (mips_double_register_type): New function.
8630 (mips_print_register): Use them.
8631 (do_fp_register_row): Likewise.
8633 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8635 * signals/signals.c (signals): Remove conditional compilation around
8636 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8637 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8639 2002-05-09 Michael Snyder <msnyder@redhat.com>
8641 * remote-rdp.c (remote_rdp_can_run): Remove.
8643 2002-05-09 Tom Tromey <tromey@redhat.com>
8645 * jv-valprint.c (java_val_print): Handle `char' as a special case
8648 2002-05-09 Michael Snyder <msnyder@redhat.com>
8650 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8651 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8652 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8653 str r(0123),[sp,#nn].
8654 (arm_skip_prologue): Ditto. Also make disassembly
8655 order-independent by placing it in a loop.
8657 2002-05-06 Michael Snyder <msnyder@redhat.com>
8659 * stabsread.c (read_type): Add recognition for new attribute:
8660 "@V;" means that an array type is actually a vector.
8661 This is analogous to the vector flag that's been added to dwarf2.
8663 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8665 * i386-tdep.h (i386_abi): New enum.
8666 (struct gdbarch_tdep): Replace os_ident member with abi.
8667 (i386_gdbarch_register_os_abi): New prototype.
8668 * i386-tdep.c (i386_abi_names): New array.
8669 (process_note_abi_tag_sections): Removed.
8670 (process_note_sections): New function.
8671 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8672 (struct i386_abi_handler): New struct.
8673 (i386_abi_handler_list): New variable.
8674 (i386_gdbarch_register_os_abi): New function.
8675 (i386_gdbarch_init): Adapt for the changes given above.
8677 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8679 * gregset.h: Say "GNU/Linux".
8681 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8683 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8684 (build_gdbtypes): Build builtin_type_v2_float.
8685 (_initialize_gdbtypes): Register new builtin type.
8687 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8689 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8690 (clear_gdbarch_swap): New function.
8691 (initialize_non_multiarch): Call.
8692 (gdbarch_update_p): Before calling init(), swap out and clear the
8693 existing architecture.
8694 * gdbarch.c: Regenerate.
8696 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8698 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8701 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8703 * sh-nbsd-nat.c: Rename to...
8704 * shnbsd-nat.c: ...this.
8705 * sh-nbsd-tdep.c: Rename to...
8706 * shnbsd-tdep.c: ...this.
8707 * sh-nbsd-tdep.h: Rename to...
8708 * shnbsd-tdep.h: ...this.
8709 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8710 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8712 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8714 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8715 concatenation for command help messages.
8717 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8719 * NEWS: Note new sh*-*-netbsdelf* configuration.
8720 * configure.host: Set gdb_host_cpu to sh for all sh*.
8721 (sh*-*-netbsdelf*): New host.
8722 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8723 (sh*-*-netbsdelf*): New target.
8724 * sh-nbsd-nat.c: New file.
8725 * sh-nbsd-tdep.c: New file.
8726 * sh-nbsd-tdep.h: New file.
8727 * config/sh/nbsd.mh: New file.
8728 * config/sh/nbsd.mt: New file.
8729 * config/sh/nm-nbsd.h: New file.
8730 * config/sh/tm-nbsd.h: New file.
8732 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8734 * sh-tdep.c (sh_osabi_names): Declare.
8735 (process_note_abi_tag_sections): New function.
8736 (get_elfosabi): Ditto.
8737 (sh_gdbarch_register_os_abi): Ditto.
8738 (sh_dump_tdep): Ditto.
8739 _initialize_sh_tdep): Use gdbarch_register to register
8740 sh_gdbarch_init and sh_dump_tdep.
8741 * config/sh/tm-sh.h (sh_osabi): Declare.
8742 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8744 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8746 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8747 (thumb_scan_prologue): Ditto.
8748 (arm_find_callers_reg): Ditto.
8749 (arm_frame_chain): Ditto.
8750 (arm_init_extra_frame_info): Ditto.
8751 (arm_frame_saved_pc): Ditto.
8752 (arm_pop_frame): Ditto.
8753 (arm_push_return_address): New function.
8754 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8755 call_dummy_location, call_dummy_breakpoint_offset_p,
8756 call_dummy_breakpoint_offset, call_dummy_p,
8757 call_dummy_stack_adjust_p, call_dummy_words,
8758 sizeof_call_dummy_words, call_dummy_start_offset,
8759 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8760 call_dummy_address, push_return_address and push_dummy_frame for
8761 generic dummy frames.
8763 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8765 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8766 size computation for alloca.
8767 (sh_fp_frame_init_saved_regs): Likewise.
8769 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8771 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8772 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8773 * arm-tdep.c (arm_store_return_value): Use them.
8774 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8775 * remote-rdp.c (remote_rdp_fetch_register): Use
8776 ARM_MAX_REGISTER_RAW_SIZE.
8777 (remote_rdp_store_register): Likewise.
8779 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8781 * dwarf2cfi.c: Code cleanup, removed unused variables,
8782 added default labels to switch {} statements.
8783 * x86-64-tdep.c: Ditto.
8784 * x86-64-linux-nat.c: Ditto.
8786 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8788 * solib.h: Protect against multiple inclusion.
8790 2002-05-06 Jim Blandy <jimb@redhat.com>
8792 Add first preprocessor macro-expansion files.
8793 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8794 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8795 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8796 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8797 (COMMON_OBS): Add macrotab.o, macroexp.o.
8798 (macroexp.o, macrotab.o): New rules.
8800 Separate the job of reading the line number info statement program
8801 header (...expialidocious) out into its own function.
8802 * dwarf2read.c (struct line_head, struct filenames, struct
8803 directories): Replace with...
8804 (struct line_header): New structure, containing the full
8805 contents of the statement program header, including the
8806 include directory and file name tables.
8807 (read_file_scope): If we have line number info, instead of just
8808 calling dwarf_decode_lines to do all the work, call
8809 dwarf_decode_line_header first to get a `struct line_header'
8810 containing the data in the statement program header, and then
8811 pass that to dwarf_decode_lines, which will pick up where that
8812 left off. Be sure to clean up the `struct line_header' object.
8813 (dwarf_decode_line_header, free_line_header, add_include_dir,
8814 add_file_name): New functions.
8815 (dwarf_decode_lines): Move all the code to read the statement
8816 program header into dwarf_decode_line_header. Take the line
8817 header it built as the first argument, instead of the offset to
8818 the compilation unit's line number info. Use the new `struct
8819 line_header' type instead of the old structures. No need to do
8820 cleanups here now, since we don't allocate anything.
8821 (dwarf2_statement_list_fits_in_line_number_section,
8822 dwarf2_line_header_too_long): New complaints.
8824 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8826 * gdbtypes.c (init_vector_type): New function.
8827 (build_builtin_type_vec128): Simplify the representation of SIMD
8829 (build_gdbtypes): Initialize new builtin vector types.
8830 (_initialize_gdbtypes): Register new vector types with gdbarch.
8831 (builtin_type_v4_float, builtin_type_v4_int32,
8832 builtin_type_v8_int16, builtin_type_v16_int8,
8833 builtin_type_v2_int32, builtin_type_v4_int16,
8834 builtin_type_v8_int8): New (renamed) SIMD types.
8836 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8838 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8839 (i387_fill_fxsave): Likewise.
8841 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8843 * alpha-tdep.c (alpha_extract_return_value): Don't use
8844 non-constant array size in prototype.
8846 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8848 From Brian Taylor <briant at model dot com>:
8849 * ui-out.c (ui_out_field_core_addr): Use the function
8850 longest_local_hex_string_custom'to format addresses > 32 bits
8853 * ui-out.c (ui_out_field_core_addr): Update comment.
8855 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8857 * stack.c (select_and_print_frame): Make static. Delete the
8859 (func_command): Update call.
8860 (select_frame_command): Delete code computing the frame level.
8861 * frame.h (select_and_print_frame): Delete declaration.
8863 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8865 * sparc-tdep.c (sparc_get_saved_register): Comment why
8866 get_prev_frame call is safe.
8868 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8870 * frame.h (select_frame): Delete level parameter.
8871 * stack.c (select_frame): Update. Use frame_relative_level to
8872 obtain the frame's level.
8873 (select_and_print_frame): Update call.
8874 (select_frame_command): Ditto.
8875 (up_silently_base): Ditto.
8876 (down_silently_base): Ditto.
8877 * ocd.c (ocd_start_remote): Ditto.
8878 * remote-rdp.c (remote_rdp_open): Ditto.
8879 * remote-mips.c (mips_initialize): Ditto.
8880 (common_open): Ditto.
8881 * remote-e7000.c (e7000_start_remote): Ditto.
8882 * m3-nat.c (select_thread): Ditto.
8883 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8884 (child_get_current_exception_event): Ditto.
8885 * varobj.c (varobj_create): Ditto.
8886 (varobj_update): Ditto.
8887 (c_value_of_root): Ditto.
8888 * tracepoint.c (finish_tfind_command): Ditto.
8889 * corelow.c (core_open): Ditto.
8890 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8891 * thread.c (info_threads_command): Ditto.
8892 (switch_to_thread): Ditto.
8893 * infrun.c (normal_stop): Ditto.
8894 (restore_selected_frame): Ditto.
8895 (restore_inferior_status): Ditto.
8896 * breakpoint.c (insert_breakpoints): Ditto.
8897 (watchpoint_check): Ditto.
8898 (bpstat_stop_status): Ditto.
8899 (do_enable_breakpoint): Ditto.
8900 * blockframe.c (flush_cached_frames): Ditto.
8901 (reinit_frame_cache): Ditto.
8903 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8905 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8908 2002-05-04 Jim Blandy <jimb@redhat.com>
8910 * gdbtypes.c (replace_type): Doc fix.
8912 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8914 * valprint.c (strcat_longest): Delete commented out function.
8917 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8919 * MAINTAINERS: Mark a29k as deleted.
8920 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8921 Move new configurations to the top.
8922 * configure.tgt: Remove a29k.
8923 * config/a29k/tm-vx29k.h: Delete.
8924 * config/a29k/vx29k.mt: Delete.
8925 * config/a29k/tm-a29k.h: Delete.
8926 * config/a29k/a29k-udi.mt: Delete.
8927 * config/a29k/a29k.mt: Delete.
8928 * a29k-tdep.c: Delete.
8929 * remote-udi.c: Delete.
8930 * remote-mm.c: Delete.
8931 * remote-eb.c: Delete.
8932 * remote-adapt.c: Delete.
8933 * Makefile.in: Remove obsolete code.
8934 * config/s390/s390x.mt: Ditto.
8935 * config/s390/s390.mt: Ditto.
8936 * config/sparc/sparclynx.mh: Ditto.
8937 * config/sparc/linux.mh: Ditto.
8938 * config/pa/hppaosf.mh: Ditto.
8939 * config/pa/hppabsd.mh: Ditto.
8940 * config/ns32k/nbsd.mt: Ditto.
8941 * config/mips/vr5000.mt: Ditto.
8942 * config/m68k/sun3os4.mh: Ditto.
8943 * config/m68k/nbsd.mt: Ditto.
8944 * config/m68k/m68klynx.mh: Ditto.
8945 * config/m32r/m32r.mt: Ditto.
8946 * config/i386/x86-64linux.mt: Ditto.
8947 * config/i386/nbsdelf.mt: Ditto.
8948 * config/i386/nbsd.mt: Ditto.
8949 * config/i386/i386lynx.mh: Ditto.
8951 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8953 * target.c (debug_print_register): New function. Handle oversize
8955 (debug_to_fetch_registers): Call.
8956 (debug_to_store_registers): Call.
8958 2002-05-03 Jim Blandy <jimb@redhat.com>
8960 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8961 (read_type): Doc fix.
8962 * gdbtypes.c (replace_type): Doc fix.
8964 * stabsread.c (multiply_defined_struct): New complaint.
8965 (read_struct_type): If the type we were passed isn't empty, or
8966 incomplete, don't read the new struct type into it; complain,
8967 and return the original type unchanged. Take a new `type_code'
8968 argument, which is the type code for the new type.
8969 (read_type): Rather than storing the type's type code here, pass
8970 it as an argument to read_struct_type, and let that take care of
8971 storing it. That way, we don't overwrite the original type code,
8972 so read_struct_type can use it to decide whether we're overwriting
8973 something we shouldn't.
8974 (complain_about_struct_wipeout): New function.
8976 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8978 * gdbarch.sh: Assert that gdbarch is non-NULL.
8979 * gdbarch.c: Regenerate.
8981 2002-05-03 Jason Merrill <jason@redhat.com>
8983 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8986 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8988 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8989 (x86_64_dwarf2gdb_regno_map_length),
8990 (x86_64_dwarf2_reg_to_regnum): Added.
8991 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8992 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8993 (_initialize_x86_64_tdep): Synced with the change above.
8994 (x86_64_skip_prologue): Reformulated message.
8996 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8998 * f-exp.y: Also use new prev_lexptr variable
8999 to improve error reporting. Based on Michael Snyder
9000 2002-04-24 dated patch to c-exp.y.
9001 * jv-exp.y: Likewise.
9002 * m2-exp.y: Likewise.
9004 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9006 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9007 we are dealing with vectors.
9009 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9011 * config/m68k/tm-nbsd.h: Obvious fix,
9012 correct machine name.
9014 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9016 * p-typeprint.c (pascal_type_print_base): Add support
9017 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9019 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9021 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9022 for fondamental pascal 'char' type.
9024 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9026 * p-lang.h (is_pascal_string_type): Declaration changed,
9027 new sixth argument of type char ** added.
9028 * p-lang.c (is_pascal_string_type): Implementation
9029 changed. Args length_pos, length_size, string_pos, char_size
9030 can now be NULL. New argument arrayname set to the field
9031 name of the char array. Return value set to char array
9032 field index plus one.
9033 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9034 is_pascal_string_type function.
9036 2002-05-02 Andrew Cagney <cagney@redhat.com>
9038 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9039 <cagney@redhat.com> change.
9040 * gdbarch.c: Regenerate.
9042 2002-05-02 Andrew Cagney <cagney@redhat.com>
9044 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9045 before probing for a new one. Detect errorenous gdbarch_init
9047 * gdbarch.c: Regenerate.
9049 2002-05-01 Andrew Cagney <cagney@redhat.com>
9051 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9052 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9053 * config/v850/tm-v850.h: Ditto. Update copyright.
9055 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9057 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9060 2002-04-30 Michael Snyder <msnyder@redhat.com>
9062 * arm-tdep.c: Whitespace clean-ups.
9063 (arm_skip_prologue): Fix thinko; two lines
9064 should have been removed as part of 4/24 change.
9066 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9068 * rs6000-tdep.c: Added comment describing how fpscr register
9069 numbers were chosen.
9071 2002-04-30 Michael Snyder <msnyder@redhat.com>
9073 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9075 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9077 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9078 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9079 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9081 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9083 From Louis Hamilton <hamilton@redhat.com>:
9084 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9085 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9086 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9087 not bfd-private xcoff data, to determine wordsize.
9088 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9090 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9092 GDB 5.2 released from 5.2 branch.
9094 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9096 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9097 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9098 (x86_64_register_info_table): Added comments with register numbers.
9100 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9102 * rs6000-tdep.c (rs6000_extract_return_value,
9103 rs6000_store_return_value): Handle returning vectors.
9104 (rs6000_gdbarch_init): Use
9105 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9106 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9108 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9110 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9111 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9113 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9115 * hpread.c (hpread_psymtab_to_symtab_1,
9116 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9117 with fprintf_unfiltered (gdb_stderr,...).
9119 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9121 * remote-array.c (printf_monitor, write_monitor,
9122 array_insert_breakpoint, array_remove_breakpoint ):
9123 Replace fprintf (stderr,...
9124 with fprintf_unfiltered (gdb_stderr,....
9125 * remote-es.c: Likewise.
9126 * remote-os9k.c: Likewise.
9127 * remote-st.c: Likewise.
9129 2002-04-28 Andreas Schwab <schwab@suse.de>
9131 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9132 linux-proc.o and gcore.o.
9134 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9136 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9137 code without frame pointers.
9139 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9141 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9144 2002-04-26 Ben Elliston <bje@redhat.com>
9146 * target.c (do_xfer_memory): Correct reference to the new option
9147 "trust-readonly-sections".
9149 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9151 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9152 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9153 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9155 (read_array_type): Record the fact that this array type is really a
9156 vector (i.e. are passed in by value).
9158 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9160 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9161 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9162 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9163 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9164 * alpha-linux-tdep.c: Include frame.h.
9165 (alpha_linux_sigcontext_addr): New function.
9166 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9167 alpha_linux_sigcontext_addr.
9168 * alpha-osf1-tdep.c: Include gdbcore.h.
9169 (alpha_osf1_sigcontext_addr): New function.
9170 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9171 alpha_osf1_sigcontext_addr.
9172 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9173 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9175 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9177 * stack.c (selected_frame_level):
9178 (select_frame): Do not set selected_frame_level.
9179 * frame.h (selected_frame_level): Delete declaration.
9181 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9183 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9184 convert_from_func_ptr-addr when AIX / PowerOpen.
9186 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9188 * valops.c (hand_function_call): Call
9189 generic_save_call_dummy_addr.
9190 * frame.h (generic_save_call_dummy_addr): Declare.
9191 * blockframe.c (struct dummy_frame): Add fields call_lo and
9193 (generic_find_dummy_frame): Check for PC in range call_lo to
9194 call_hi instead of entry_point_address.
9195 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9196 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9197 (generic_save_call_dummy_addr): New function.
9199 2002-04-24 David S. Miller <davem@redhat.com>
9201 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9202 sparc_skip_prologue.
9203 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9204 information to find prologue when possible.
9205 (sparc_prologue_frameless_p): Call examine_prologue directly.
9206 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9207 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9209 (SKIP_PROLOGUE): Likewise.
9211 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9213 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9214 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9215 indicate that the condition it was testing is always true.
9216 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9217 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9218 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9220 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9222 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9223 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9224 tdep->jb_pc and tdep->jb_elt_size.
9225 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9226 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9227 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9228 * alpha-nat.c (get_longjmp_target): Remove.
9229 (JB_ELEMENT_SIZE): Ditto.
9231 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9232 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9233 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9234 to alpha_get_longjmp_target.
9235 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9236 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9237 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9239 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9241 * README: Update to GDB 5.2.
9243 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9245 * gdbarch.sh (LC_ALL): Set to `c'.
9247 2002-04-25 Theodore A. Roth <troth@verinet.com>
9249 * avr-tdep.c: Ran through gdb_indent.sh.
9251 2002-04-25 Theodore A. Roth <troth@verinet.com>
9253 * MAINTAINERS: Add myself as AVR maintainer.
9254 * NEWS: Note new target avr.
9256 2002-04-25 Theodore A. Roth <troth@verinet.com>
9258 * Makefile.in: Add support for AVR target.
9259 * configure.tgt: Add support for AVR target.
9260 * avr-tdep.c: New file
9261 * config/avr/avr.mt: New file.
9263 2002-04-25 Theodore A. Roth <troth@verinet.com>
9265 * MAINTAINERS: Add myself to write-after-approval.
9267 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9269 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9270 with fprintf_unfiltered (gdb_stderr,....
9272 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9275 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9277 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9279 * p-exp.y: Also use new prev_lexptr variable
9280 to improve error reporting. Based on Michael Snyder
9281 2002-04-24 dated patch to c-exp.y.
9283 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9285 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9286 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9287 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9289 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9291 (FUNCTION_START_OFFSET): Remove.
9292 (BREAKPOINT): Ditto.
9294 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9296 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9299 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9301 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9302 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9303 alpha_linux_pc_in_sigtramp.
9304 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9305 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9306 alpha_osf1_pc_in_sigtramp.
9307 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9308 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9309 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9310 alphafbsd_pc_in_sigtramp.
9311 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9312 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9313 alphanbsd_pc_in_sigtramp.
9314 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9315 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9317 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9319 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9321 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9323 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9325 (alphanbsd-nat.o): New dependency list.
9326 (alphanbsd-tdep.o): Ditto.
9327 * NEWS: Note new native NetBSD/alpha configuration.
9328 * alphanbsd-nat.c: New file.
9329 * alphanbsd-tdep.c: Ditto.
9330 * configure.host (alpha*-*-netbsd*): New host.
9331 * configure.tgt (alpha*-*-netbsd*): New target.
9332 * config/alpha/nbsd.mh: New file.
9333 * config/alpha/nbsd.mt: Ditto.
9334 * config/alpha/nm-nbsd.h: Ditto.
9335 * config/alpha/tm-nbsd.h: Ditto.
9337 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9339 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9340 (alpha-osf1-tdep.o): New dependency list.
9341 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9342 and skip_sigtramp_frame members.
9343 * alpha-linux-tdep.c: Include gdbcore.h.
9344 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9345 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9346 * alpha-osf1-tdep.c: New file.
9347 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9349 (alpha_frame_past_sigtramp_frame): New function.
9350 (alpha_dynamic_sigtramp_offset): Ditto.
9351 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9352 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9353 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9354 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9355 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9356 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9357 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9358 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9359 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9360 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9361 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9362 to find_solib_trampoline_target.
9363 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9364 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9365 (SKIP_TRAMPOLINE_CODE): Remove.
9366 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9367 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9368 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9369 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9370 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9371 (PROC_SIGTRAMP_MAGIC): Ditto.
9372 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9373 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9374 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9375 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9376 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9378 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9380 * NEWS: Note that Alpha targets are now multi-arch.
9382 2002-04-24 Michael Snyder <msnyder@redhat.com>
9384 * parser-defs.h (prev_lexptr): New external variable.
9385 * parse.c (parse_exp_1): Set prev_lexptr to null before
9386 calling the language-specific parser.
9387 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9388 (yyerror): Use prev_lexptr in error reporting.
9390 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9392 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9393 * gregset.h: If FILL_FPXREGSET is defined, provide
9394 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9395 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9396 is defined, call fill_fpxregset.
9398 2002-04-24 Roland McGrath <roland@frob.com>
9400 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9401 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9402 (supply_gregset, supply_fpregset): New functions.
9404 * gnu-nat.c (gnu_find_memory_regions): New function.
9405 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9406 (gnu_xfer_memory): Add a cast.
9408 2002-04-24 Michael Snyder <msnyder@redhat.com>
9410 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9411 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9412 of argument regs ("str r(0123), [r11, #-nn"]).
9413 (arm_skip_prologue): Better handling for frameless functions.
9414 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9415 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9417 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9419 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9420 NUM_PSEUDO_REGS can be used.
9422 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9424 * arch-utils.h: Update copyright.
9426 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9427 * gdbarch.h, gdbarch.c: Re-generate.
9429 * inferior.h (IN_SIGTRAMP): Delete definition.
9430 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9431 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9433 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9434 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9435 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9436 (find_proc_framesize): Ditto.
9437 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9438 (alpha_init_extra_frame_info): Ditto.
9439 * infrun.c (handle_inferior_event): Ditto.
9440 (handle_inferior_event): Ditto.
9441 (check_sigtramp2): Ditto.
9442 * blockframe.c (create_new_frame): Ditto.
9443 (get_prev_frame): Ditto.
9444 * ppc-linux-tdep.c: Update comments.
9445 * i386-linux-tdep.c: Update comments.
9446 * breakpoint.c (bpstat_what): Update comment.
9448 2002-04-24 David S. Miller <davem@redhat.com>
9450 * i960-tdep.c (register_in_window_p): New function.
9451 (i960_find_saved_register): Use it instead of
9452 REGISTER_IN_WINDOW_P.
9453 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9455 * symtab.h (find_stab_function_addr): Kill extern.
9456 * minsyms.c (find_stab_function_addr): Remove from here...
9457 * dbxread.c: ... to here, and mark it static.
9459 2002-04-20 David S. Miller <davem@redhat.com>
9461 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9462 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9464 2002-04-21 David S. Miller <davem@redhat.com>
9466 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9467 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9468 (vx_write_register): Likewise.
9470 2002-04-23 J. Brobecker <brobecker@gnat.com>
9472 * source.c (is_regular_file): New function.
9473 (openp): Check wether file to open is a regular file
9474 to avoid opening directories.
9476 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9478 * findvar.c (extract_signed_integer): Cast printf argument
9479 to suppress format warning.
9480 (extract_unsigned_integer): Likewise.
9481 * infcmd.c (registers_info): Likewise.
9482 * top.c (get_prompt_1): Likewise.
9483 * valops.c (value_assign): Likewise.
9484 * valprint.c (print_decimal): Likewise.
9486 2002-04-22 H.J. Lu (hjl@gnu.org)
9488 * c-exp.y (typebase): Support
9490 [long|long long|short] [signed|unsigned] [int|]
9494 signed [long|long long|short] int
9496 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9498 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9500 * vax-tdep.h: New file.
9501 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9502 Make several routines static.
9503 (vax_get_saved_register): New function.
9504 (vax_gdbarch_init): New function.
9505 (_initialize_vax_tdep): Register vax_gdbarch_init.
9506 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9507 Remove macros now under the control of gdbarch.
9509 2002-04-22 Michael Snyder <msnyder@redhat.com>
9511 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9512 Some whitespace and coding standards tweaks.
9514 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9516 * vax-tdep.c: Include regcache.h.
9517 (vax_call_dummy_words): New.
9518 (sizeof_vax_call_dummy_words): New.
9519 (vax_fix_call_dummy): New function.
9520 (vax_saved_pc_after_call): Ditto.
9521 * config/vax/tm-vax.h: Don't include regcache.h.
9522 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9523 (CALL_DUMMY): Remove.
9524 (CALL_DUMMY_WORDS): Define.
9525 (SIZEOF_CALL_DUMMY_WORDS): Define.
9526 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9528 2002-04-18 Michael Snyder <msnyder@redhat.com>
9530 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9532 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9534 * vax-tdep.c (vax_frame_chain): New function.
9535 (vax_push_dummy_frame): Ditto.
9536 (vax_pop_frame): Ditto.
9537 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9538 (FRAMELESS_FUNCTION_INVOCATION): Use
9539 generic_frameless_function_invocation_not.
9540 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9541 (POP_FRAME): Use vax_pop_frame.
9543 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9545 * vax-tdep.c (vax_store_struct_return): New function.
9546 (vax_extract_return_value): Ditto.
9547 (vax_store_return_value): Ditto.
9548 (vax_extract_struct_value_address): Ditto.
9549 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9550 vax_store_struct_return.
9551 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9552 (STORE_RETURN_VALUE): Use vax_store_return_value.
9553 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9555 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9557 * vax-tdep.c (vax_frame_saved_pc): New function.
9558 (vax_frame_args_address_correct): Ditto.
9559 (vax_frame_args_address): Ditto.
9560 (vax_frame_locals_address): Ditto.
9561 (vax_frame_num_args): Move code to be in proximity to
9562 other frame-related functions.
9563 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9564 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9565 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9566 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9567 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9569 2002-04-22 H.J. Lu (hjl@gnu.org)
9571 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9574 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9576 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9577 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9578 (FRAME_INIT_SAVED_REGS): New macro.
9580 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9582 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9584 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9586 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9588 (fetch_osf_core_registers): Likewise.
9589 (supply_gregset): Likewise.
9591 2002-04-22 J. Brobecker <brobecker@gnat.com>
9593 * symfile.h (get_section_index): Define.
9594 * symfile.c (get_section_index): New function.
9595 * mdebugread.c (SC_IS_SBSS): New macro.
9596 (SC_IS_BSS): Return true for the scBss storage class only, as
9597 the scSBss storage class refers to the .sbss section.
9598 (parse_partial_symbols): Discard the symbols which associated
9599 section does not exist.
9600 Make sure to use the .sbss section index for symbols which
9601 storage class is scBss, rather than using the .bss section index.
9603 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9605 * vax-tdep.c: Update copyright years.
9606 (vax_register_name): New function.
9607 (vax_register_byte): Ditto.
9608 (vax_register_raw_size): Ditto.
9609 (vax_register_virtual_size): Ditto.
9610 (vax_register_virtual_type): Ditto.
9611 * config/vax/tm-vax.h: Update copyright years.
9612 (REGISTER_NAMES): Remove.
9613 (REGISTER_NAME): Define.
9614 (REGISTER_BYTE): Use vax_register_byte.
9615 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9616 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9617 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9619 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9621 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9623 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9625 2002-04-21 David S. Miller <davem@redhat.com>
9627 * arch-utils.c (generic_prologue_frameless_p): Kill
9628 SKIP_PROLOGUE_FRAMELESS_P code.
9629 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9631 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9632 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9633 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9635 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9636 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9637 (sparc_gdbarch_init): Pass it to
9638 set_gdbarch_prologue_frameless_p.
9640 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9642 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9643 (alphabsd-nat.o): New dependency list.
9645 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9647 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9649 (alpha-linux-tdep.o): New dependency list.
9650 (alphafbsd-tdep.o): Likewise.
9652 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9654 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9656 * alpha-tdep.c: ...from here.
9657 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9659 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9661 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9662 prototype from here...
9663 * alpha-tdep.h: ...to here.
9665 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9667 * frame.h (selected_frame_level): Document as deprecated.
9668 (frame_relative_level): Declare.
9669 * stack.c (frame_relative_level): New function.
9670 (selected_frame_level): Document as deprecated.
9671 (select_frame): Do not set the selected_frame_level.
9673 * stack.c (frame_info, record_selected_frame): Update.
9674 (frame_command, current_frame_command): Update.
9675 (up_silently_base, up_command, down_silently_base): Update.
9676 (down_command): Update.
9677 * inflow.c (kill_command): Update.
9678 * tracepoint.c (finish_tfind_command): Update.
9679 * corelow.c (core_open): Update.
9680 * thread.c (info_threads_command): Update.
9681 (do_captured_thread_select): Update.
9682 * infcmd.c (finish_command): Update.
9683 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9685 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9687 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9689 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9691 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9694 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9696 * alphafbsd-tdep.c: Update copyright years. Include
9698 (alphafbsd_use_struct_convention): Make static.
9699 (alphafbsd_init_abi): New function.
9700 (_initialize_alphafbsd_tdep): New function.
9701 * config/alpha/tm-fbsd.h: Update copyright years.
9702 (USE_STRUCT_CONVENTION): Remove.
9704 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9706 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9707 an Alpha ABI variant.
9708 (alpha_abi_handler_list): Declare.
9709 (alpha_gdbarch_register_os_abi): New function.
9710 (alpha_gdbarch_init): Give registered ABI variant handlers a
9711 chance to tweak the gdbarch once we have set up defaults.
9712 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9714 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9716 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9717 to standard_coerce_float_to_double.
9718 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9720 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9722 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9723 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9724 from gdbarch_tdep rather than a constant.
9725 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9726 the default text address for all Alpha Unix ABIs.
9727 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9728 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9730 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9732 * alpha-tdep.h: New file. Includes several Alpha target constants
9734 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9735 let gdbarch deal with.
9736 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9737 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9739 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9740 Alpha target register names.
9741 * alphabsd-nat.c: Likewise.
9742 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9743 Alpha target register names. Make serveral routines static.
9744 (alpha_get_saved_register): New function.
9745 (alpha_abi_names): New.
9746 (process_note_abi_tag_sections): New function.
9747 (get_elfosabi): New function.
9748 (alpha_gdbarch_init): New function.
9749 (alpha_dump_tdep): New function.
9750 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9752 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9754 * frame.c (find_saved_register): Delete #ifdef
9755 HAVE_REGISTER_WINDOWS code.
9756 * config/sparc/tm-sparc.h: Update comments.
9757 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9759 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9761 * i960-tdep.c (i960_find_saved_register): New function.
9762 (i960_get_saved_register): New function.
9763 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9764 (i960_get_saved_register): Declare.
9765 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9767 2002-04-20 David S. Miller <davem@redhat.com>
9769 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9771 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9773 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9774 instead of NUM_PSEUDO_REGS.
9776 2002-04-20 David S. Miller <davem@redhat.com>
9778 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9779 GDB_MULTI_ARCH_PARTIAL
9780 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9781 define, let tm-sp64.h do it.
9783 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9785 * frame.c (find_saved_register): Avoid a NULL pointer
9786 dereference and actually walk the frame list.
9788 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9790 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9791 sorted in most most-recent-used order. Document.
9792 * gdbarch.h, gdbarch.c: Regenerate.
9794 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9796 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9798 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9799 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9800 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9803 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9806 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9807 (build_builtin_type_vec128): Ditto.
9808 (append_composite_type_field): Fix calculation of type length in
9811 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9813 * config/djgpp/README: Update.
9815 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9818 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9820 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9821 (alpha_setup_arbitrary_frame): ...to this.
9822 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9823 for alpha_setup_arbitrary_frame.
9825 2002-04-18 Andrew Cagney <cagney@redhat.com>
9827 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9828 * gdbarch.h, gdbarch.c: Regenerate.
9830 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9831 * target.h (memory_breakpoint_from_pc): Update declaration.
9832 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9834 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9835 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9836 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9837 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9838 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9839 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9840 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9841 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9842 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9843 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9844 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9845 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9847 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9849 * monitor.c (monitor_insert_breakpoint): Ditto.
9850 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9852 * config/mcore/tm-mcore.h: Update copyright.
9853 * mem-break.c: Ditto.
9854 * xstormy16-tdep.c: Ditto.
9856 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9858 * p-exp.y: Add precedence rule for '^' token.
9859 This removes the shift/reduce conflicts.
9860 Remove the comment concerning these shift/reduce conflicts.
9862 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9864 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9865 (registers_powerpc_nofp): New register set for processors
9866 without floating point unit.
9868 2002-04-18 David S. Miller <davem@redhat.com>
9870 * MAINTAINERS: Add myself to write-after-approval.
9872 2002-04-17 Michael Snyder <msnyder@redhat.com>
9874 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9876 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9878 * rs6000-tdep.c (frame_initial_stack_address): Use
9879 frame_register_read to read the alloca_reg.
9881 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9883 * frame.c (find_saved_register): Find saved registers in the next
9887 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9889 * gdbarch.sh (LANG): Set to ``c''.
9891 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9893 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9895 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9897 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9900 * hpread.c (hpread_get_lntt): Add declaration.
9901 Also fix PR gdb/391.
9903 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9905 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9906 * aclocal.m4, configure: Re-generate.
9909 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9911 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9912 instead of tm_print_insn.
9914 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9916 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9918 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9920 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9921 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9922 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9924 2002-04-12 Don Howard <dhoward@redhat.com>
9926 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9927 max_user_call_depth.
9928 (init_cmd_lists): Initialize the new value;
9929 * cli/cli-script.c (execute_user_command): Limit the call depth of
9930 user defined commands. This avoids a core-dump when user commands
9931 are infinitly recursive.
9933 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9935 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9936 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9937 from tdep struct instead of DEFAULT_LR_SAVE.
9938 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9939 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9940 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9942 2002-04-12 Michael Snyder <msnyder@redhat.com>
9944 * Remote.c: Spelling fix.
9945 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9946 If no symbol found for "sbrk", try "_sbrk".
9947 (make_output_phdrs): Use bfd_section_name.
9948 (gcore_copy_callback): Use bfd_section_name.
9949 * eval.c: Indentation fix-ups.
9950 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9951 in case it gets applied to an address that is already
9952 in the instruction space.
9953 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9954 * symfile.c: Fix indentation, long lines.
9955 * source.c: White space fix-up.
9957 2002-04-12 Andrew Cagney <cagney@redhat.com>
9959 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9960 * frame.c (frame_register_read): New function. Return non-zero on
9962 (read_relative_register_raw_bytes_for_frame): Delete.
9963 (read_relative_register_raw_bytes): Delete.
9964 * frame.h (frame_register_read): Declare.
9965 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9967 * infcmd.c (do_registers_info): Ditto.
9968 * hppa-tdep.c: Ditto.
9969 * rs6000-tdep.c: Ditto.
9970 * h8500-tdep.c: Ditto.
9971 * mips-tdep.c: Ditto.
9972 * h8300-tdep.c: Ditto.
9973 * z8k-tdep.c: Ditto.
9975 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9977 From Jimi X <jimix@watson.ibm.com>:
9978 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9981 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9983 From Jimi X <jimix@watson.ibm.com>:
9984 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9987 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9989 From Jimi X <jimix@watson.ibm.com>:
9990 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9991 register sets for these processor variants.
9993 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9995 * regformats/reg-ppc.dat: Support FPSCR.
9997 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9999 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10000 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10001 Add fpscr as an invalid/unfetchable register.
10002 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10003 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10004 (fill_fpregset): Add support for register fpscr.
10005 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10006 (fill_gregset): Account for the fact that register ``mq'' might
10008 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10009 (registers_power): Add fpscr to register set at slot 71.
10010 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10011 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10013 2002-04-11 Michael Snyder <msnyder@redhat.com>
10015 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10016 * configure: Regenerate.
10017 * config.in: Regenerate.
10018 * acconfig.h: Add define for _SYSCALL32.
10019 * core-sol2.c: Remove #define _SYSCALL32.
10020 * solib-legacy.c: Remove #define _SYSCALL32.
10022 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10024 * stack.c (select_frame): Cleanup internal error message, do not
10027 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10029 * stack.c (select_frame): Check that selected_frame and the
10030 specified level are as expected.
10031 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10033 * frame.h (struct frame_info): Add field `level'. Update
10035 Work-in-progress PR gdb/464.
10037 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10039 * maint.c (maint_print_section_info): Rename print_section_info.
10040 (print_bfd_section_info, print_objfile_section_info): Update.
10041 * inferior.h (struct gdbarch): Add opaque declaration.
10042 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10043 * gdbarch.h: Regenerate.
10045 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10047 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10048 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10049 (kernel_u_size): Added.
10050 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10051 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10053 2002-04-04 Jim Ingham <jingham@apple.com>
10055 * valarith.c (find_size_for_pointer_math): New function, either returns
10056 the size for a pointer's target, returns 1 for void *, or errors for
10058 (value_add, value_sub): use find_size_for_pointer_math.
10060 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10062 * linux-low.c (linux_look_up_symbols): New hook.
10063 (linux_target_ops): Add linux_look_up_symbols.
10064 * remote-utils.c (decode_address): New function.
10065 (look_up_one_symbol): New function.
10066 * server.c (handle_query): Call target look_up_symbols hook.
10067 * server.h (look_up_one_symbol): Add prototype.
10068 * target.h (struct target_ops): Add look_up_symbols hook.
10070 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10072 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10073 override FP_REGNUM with frame->fp. Update copyright.
10074 * parse.c (num_std_regs, std_regs): Delete.
10075 (target_map_name_to_register): Do not search std_regs. Update
10076 function description.
10077 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10078 declarations. Update copyright.
10081 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10083 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10084 after the last symbol in a block.
10086 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10088 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10089 is non zero as a found symbol.
10091 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10093 * findvar.c: Include "builtin-regs.h".
10094 (value_of_register): Call value_of_builtin_reg when applicable.
10095 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10096 (target_map_name_to_register): Call
10097 builtin_reg_map_name_to_regnum.
10098 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10099 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10100 (builtin_regs_h): Define.
10101 (builtin-regs.o): New target.
10102 (findvar.o): Add $(builtin_regs_h).
10103 * builtin-regs.c, builtin-regs.h: New files.
10104 * std-regs.c: New file.
10105 Partial fix for PR gdb/251.
10107 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10109 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10110 it's no longer required.
10112 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10114 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10116 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10118 From Jimi X <jimix@watson.ibm.com>:
10119 * rs6000-tdep.c (rs6000_software_single_step): Use
10120 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10121 and size. Use target_insert_breakpoint() and
10122 target_remove_breakpoint() to insert and remove breakpoints
10123 instead of explicit memory reads and writes.
10125 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10127 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10128 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10129 ELF_OBJECT_FORMAT ifdef.
10131 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10133 From Jimi X <jimix@watson.ibm.com>:
10134 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10136 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10138 From Jimi X <jimix@watson.ibm.com>:
10139 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10140 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10142 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10144 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10145 s/asprintf/xasprintf/.
10146 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10148 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10150 I believe Jeff Law denies responsability for this one:
10151 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10152 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10153 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10154 Work-around for PR gdb/366.
10156 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10158 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10159 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10160 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10162 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10164 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10165 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10168 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10170 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10173 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10175 * README (Reporting Bugs in GDB): Document the bug web page as the
10176 prefered way of submitting bugs.
10179 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10181 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10182 -1. Update comment.
10183 * gdbarch.h, gdbarch.c: Re-generate.
10185 2002-04-07 Andreas Schwab <schwab@suse.de>
10187 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10188 buffer to regcache_collect.
10190 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10192 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10193 * gdbarch.c, gdbarch.h: Re-generate.
10195 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10197 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10198 declaration. Fix -Werror.
10200 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10202 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10203 * gdbarch.c: Regenerate.
10205 2002-04-05 Michael Snyder <msnyder@redhat.com>
10207 * breakpoint.c (clear_command): Rewrite middle section to
10208 combine two loops with identical control conditions.
10209 Add a cleanup to eliminate a memory leak.
10210 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10212 2002-04-05 H.J. Lu (hjl@gnu.org)
10214 * solib-svr4.c (bkpt_names): Add "__start".
10216 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10218 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10219 as test for 64 bit target.
10221 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10223 * h8500-tdep.c (h8500_write_fp): Delete function.
10224 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10225 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10226 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10228 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10229 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10231 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10232 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10233 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10234 (d10v_write_fp): Delete function.
10235 * inferior.h (write_fp, generic_target_write_fp): Delete
10237 * regcache.c (generic_target_write_fp): Delete function.
10238 (write_fp): Delete function.
10239 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10240 * gdbarch.h, gdbarch.c: Regenerate.
10241 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10242 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10243 (sparc64_write_fp): Delete declaration.
10244 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10245 (h8500_write_fp): Delete declaration.
10247 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10249 * sparc-tdep.c (sparc64_write_fp): Delete.
10250 (sparc_push_dummy_frame): Replace write_fp call with code to store
10252 (sparc_gdbarch_init): Do not initialize write_fp.
10254 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10256 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10259 2002-03-29 Jim Blandy <jimb@redhat.com>
10261 * stack.c (get_selected_block): Add new argument `addr_in_block',
10262 used to return the exact code address we used to select the block,
10263 not just the block.
10264 * blockframe.c (get_frame_block, get_current_block): Same.
10265 * frame.h (get_frame_block, get_current_block,
10266 get_selected_block): Update declarations.
10267 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10268 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10270 2002-04-05 Michael Snyder <msnyder@redhat.com>
10272 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10275 2002-04-05 J. Brobecker <brobecker@gnat.com>
10277 * utils.c (xfullpath): New function.
10278 * defs.h (xfullpath): Add declaration.
10279 * source.c (openp): Use xfullpath in place of gdb_realpath to
10280 avoid resolving the basename part of filenames when the
10281 associated file is a symbolic link. This fixes a potential
10282 inconsistency between the filenames known to GDB and the
10283 filenames it prints in the annotations.
10284 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10285 to be able to match a filename with either the real filename, or
10286 the name of any symbolic link to this file.
10287 (lookup_partial_symtab): Ditto.
10289 2002-04-04 Michael Snyder <msnyder@redhat.com>
10291 * breakpoint.c: Add support for hardware breakpoints in overlays.
10292 (overlay_events_enabled): New state variable.
10293 (insert_breakpoints): Use overlay_events_enabled to decide
10294 whether to attempt to set a breakpoint at the overlay load addr.
10295 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10296 (remove_breakpoint): Use overlay_events_enabled to decide
10297 whether breakpoints need to be removed from overlay load addr.
10298 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10299 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10300 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10301 disable_overlay_breakpoints): Update overlay_events_enabled.
10303 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10305 * dwarf2read.c (struct function_range): New.
10306 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10307 (check_cu_functions): New.
10308 (read_file_scope): Initialize global function lists.
10309 Call dwarf_decode_line after processing children.
10310 (read_func_scope): Add to global function list.
10311 (dwarf_decode_lines): Call check_cu_functions everywhere
10312 record_line is called. Call record_line with a linenumber
10313 of 0 to mark sequence ends.
10315 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10317 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10318 change sync with glibc.
10320 2002-04-03 Jim Blandy <jimb@redhat.com>
10322 * configure.in: Call AC_C_INLINE.
10323 * configure: Regenerated.
10325 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10327 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10328 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10330 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10332 * NEWS: Mention gcore support on FreeBSD/i386.
10334 * fbsd-proc.c: New file.
10335 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10336 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10338 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10341 2002-03-29 Jim Blandy <jimb@redhat.com>
10343 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10344 unescaped newlines in string literals, but newer ones don't. So
10347 2002-03-26 Michael Snyder <msnyder@redhat.com>
10348 Andrew Cagney <cagney@redhat.com>
10350 * cli/cli-dump.c: New file. Dump memory to file,
10351 restore file to memory.
10352 * cli/cli-dump.h: New file.
10353 * Makefile.in: Add rules, dependencies for cli-dump.o.
10354 * NEWS: Mention new commands.
10356 2002-03-28 Michael Snyder <msnyder@redhat.com>
10358 * symfile.c (symbol_file_add): Move test for null symbols to later.
10360 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10362 From veksler at il.ibm.com:
10363 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10364 the xstrduped original path.
10367 2002-03-27 Michael Snyder <msnyder@redhat.com>
10369 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10370 * infcmd.c (_initialize_infcmd): Ditto.
10371 * language.c (_initialize_language): Ditto.
10372 * symfile.c (_initialize_symfile): Ditto.
10373 * top.c (_init_main): Ditto.
10374 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10376 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10378 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10379 vector registers handling.
10380 (skip_prologue): Handle new AltiVec instructions. Fill in new
10381 fields of frame data.
10382 (frame_get_saved_regs): Fill in information for AltiVec registers.
10384 2002-03-27 Jim Blandy <jimb@redhat.com>
10386 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10387 a function; leave this macro here to invoke that function.
10388 (symbol_init_mangled_name): Declaration for that function.
10389 * symtab.c (symbol_init_mangled_name): New function.
10391 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10393 * valarith.c: Replace strerror with safe_strerror.
10394 * tracepoint.c: Ditto.
10395 * lin-lwp.c: Ditto.
10396 * go32-nat.c: Ditto.
10398 * gnu-nat.c: Ditto.
10400 2002-03-27 Andreas Schwab <schwab@suse.de>
10402 * event-top.c (command_line_handler): Remove useless if.
10404 2002-03-27 Andreas Jaeger <aj@suse.de>
10406 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10409 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10411 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10412 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10413 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10414 (x86_64_linux_dr_get_status, supply_gregset),
10415 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10416 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10417 (x86_64_register_info_table): Add.
10418 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10419 (x86_64_register_raw_size, x86_64_register_virtual_type),
10420 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10421 general x86_64_register_info_table.
10422 (i386_gdbarch_init): gdbarch_register_bytes is now set
10423 dynamicaly during initialization.
10424 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10425 * gdbserver/linux-x86-64-low.c: Ditto.
10427 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10429 * gdbserver/server.c (main): Call target_signal_to_host_p
10430 and target_signal_to_host on signals received from the remote.
10431 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10432 target_signal_from_host on signals sent to the remote.
10433 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10434 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10436 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10438 * signals/signals.c: Include "server.h" in gdbserver build.
10439 (target_signal_from_name): Don't use STREQ.
10440 (_initialize_signals): Likewise. Don't include function in
10443 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10445 * signals.c: Moved to...
10446 * signals/signals.c: Here.
10447 * Makefile (signals.o): Update.
10449 2002-03-26 Jeff Law (law@redhat.com)
10451 * somread.c (som_symtab_read): Remove some commented out code and
10452 updated related comments. Do not set the minimal symbol table to
10453 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10454 in a dynamic executable.
10455 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10456 where we are unable to find the minimal symbol for the given
10459 2002-03-25 Jeff Law (law@redhat.com)
10461 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10463 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10465 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10467 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10469 * command.h: Update copyright.
10470 (struct cmd_list_element): Replace definition with opaque
10472 (enum cmd_types): Document that it will eventually be moved to
10474 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10475 (MALLOCED_REPLACEMENT): Delete macro.
10476 * Makefile.in (cli_decode_h): Add $(command_h).
10477 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10478 * top.c: Include "cli/cli-decode.h".
10479 * completer.c: Include "cli/cli-decode.h".
10480 * maint.c: Include "cli/cli-decode.h".
10481 * cli/cli-decode.h: Include "command.h".
10482 (enum command_class): Delete.
10483 (enum cmd_types): Comment out.
10484 (enum cmd_auto_boolean): Delete.
10485 (enum var_types): Delete.
10487 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10489 * cli/cli-decode.c: Include "gdb_assert.h".
10490 (add_set_or_show_cmd): New static function.
10491 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10492 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10493 all fields, such as func, from the set command.
10495 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10497 * MAINTAINERS (sh-elf): Change warning flag to -w.
10499 2002-03-23 Andrew Cagney <cagney@redhat.com>
10501 * defs.h (error): Add printf format attribute.
10502 * thread-db.c (thread_from_lwp): Fix error format string.
10503 * stack.c (parse_frame_specification): Ditto.
10504 * cli/cli-decode.c (undef_cmd_error): Ditto.
10505 * scm-lang.c (scm_lookup_name): Ditto.
10506 * tracepoint.c (trace_error): Ditto.
10507 * remote-utils.c (usage): Ditto.
10508 * remote.c (compare_sections_command): Ditto.
10511 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10513 * gdbtypes.c (append_composite_type_field): New function.
10514 (init_composite_type): New function.
10515 * gdbtypes.h (append_composite_type_field): Declare.
10516 (init_composite_type): Ditto.
10518 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10520 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10522 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10523 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10524 structure returning convention for SYSV ABI case, but not
10525 for GNU/Linux, FreeBSD, or NetBSD.
10527 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10529 * symtab.h (lookup_block_symbol): Add mangled_name argument
10532 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10533 with new mangled_name argument.
10534 * linespec.c (decode_line_1): Likewise.
10535 * valops (value_of_this): Likewise.
10536 * symtab.c (lookup_transparent_type): Likewise.
10537 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10538 (lookup_symbol): If we are given a mangled name, pass it down
10539 to lookup_symbol_aux.
10540 (lookup_block_symbol): If we are given a mangled name to check
10541 against, only return symbols which match it.
10543 2002-03-22 Christopher Faylor <cgf@redhat.com>
10545 * win32-nat.c (child_create_inferior): Check for proper shell to use
10546 here, in case the user changes it on the fly.
10547 (_initialize_inftarg): Remove shell path considerations.
10549 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10551 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10552 for gdbarch_max_register_raw_size and max_register_virtual_size.
10553 Adjust copyright year.
10555 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10557 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10558 in a function to cover the entire beginning of the function
10559 as well if it does not already.
10561 2002-03-21 Tom Rix <trix@redhat.com>
10563 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10564 (rs6000_ptrace64): Renamed from ptrace64.
10566 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10568 * gdbserver/remote-utils.c (remote_open): Don't call
10569 getprotobyname, we're all using TCP here so just use
10571 * gdbserver/gdbreplay.c (remote_open): Ditto.
10573 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10575 * regcache.c (_initialize_regcache): No need to call
10576 build_regcache() at this time; it gets called whenever
10577 the gdbarch changes.
10579 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10581 * sparc-nat.c: Include sys/param.h where possible.
10583 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10586 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10587 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10588 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10590 * stabsread.c (rs6000_builtin_type): Likewise.
10591 (read_sun_floating_type): Likewise.
10593 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10595 * stabsread.c (read_member_functions): Remove skip code for duplicate
10596 constructor/destructor methods. Use standard parsing for these
10597 methods and just do not chain them to the list of methods after
10600 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10602 * coffread.c: Remove redundant static declarations. Replace
10603 occurrences of `PTR' with `void *'.
10604 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10605 * top.h (quit_cover): Likewise.
10606 * defs.h (catch_errors): Likewise.
10608 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10610 * defs.h (XMALLOC): Define.
10611 * gdb-events.sh (XMALLOC): Delete macro.
10612 * gdb-events.c, gdb-events.h: Regenerate.
10613 * gdbarch.sh (XMALLOC): Delete macro.
10614 * gdbarch.c: Regenerate.
10615 * serial.c (XMALLOC): Delete macro.
10616 * ui-file.c (XMALLOC): Ditto.
10617 * ser-unix.h (XMALLOC): Ditto.
10618 * sh-tdep.c (XMALLOC): Ditto.
10619 * ui-out.c (XMALLOC): Ditto.
10620 * utils.c (XMALLOC): Ditto.
10621 * i386-tdep.c (XMALLOC): Ditto.
10622 * gdb-events.c (XMALLOC): Ditto.
10623 * d10v-tdep.c (XMALLOC): Ditto.
10624 * cli-out.c (XMALLOC): Ditto.
10626 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10627 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10628 * ui-file.c, ui-out.c: Ditto.
10630 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10632 * command.h (struct cmd_list_element): Add field context.
10633 (set_cmd_context, get_cmd_context): Declare.
10634 * cli/cli-decode.h: Ditto.
10635 * cli/cli-decode.c (get_cmd_context): New function.
10636 (set_cmd_context): New function.
10637 (add_cmd): Initialize context.
10638 Part of fixing PR gdb/145 and PR gdb/146.
10640 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10642 * cli/cli-decode.c (cmd_type): New function.
10643 * command.h (cmd_type): Declare.
10644 * infrun.c (set_schedlock_func): Call function cmd_type.
10645 * kod.c (kod_set_os): Call cmd_type.
10646 * cris-tdep.c (cris_version_update): Use function cmd_type.
10647 (cris_mode_update, cris_abi_update): Ditto.
10649 * command.h: (execute_cmd_post_hook): Declare.
10650 (execute_cmd_pre_hook): Declare.
10651 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10652 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10653 functions. Execute pre/post hook while ensuring that afterwords
10654 hook_in is cleared.
10655 * top.c (execute_command): Use execute_cmd_post_hook, and
10656 execute_cmd_pre_hook to execute pre/post commands.
10657 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10659 (hook_stop_stub): Call execute_cmd_pre_hook.
10661 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10663 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10664 set'' and this leads to a core dump. Move xstrdup of
10665 operating_system to after check that it is not NULL.
10667 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10669 * kod.c (kod_set_os): Remove unnecessary check that
10670 ``command->type'' is set_cmd.
10672 * valprint.c (set_input_radix): Use input_radix.
10673 (set_output_radix): Use output_radix.
10674 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10677 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10679 * value.h (struct value): Delete field ``substring_addr''. Change
10680 aligner fields to force_doublest_align, force_longest_align,
10681 force_core_addr_align and force_pointer_aligh.
10683 * value.h (struct value): Fix typo in above change.
10685 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10687 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10688 to fix internal_error from ``maintenance print architecture''.
10690 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10692 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10693 for gcc versions after gcc-2.8.1.
10695 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10697 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10698 for method resolution. Restore adjustment of ``this'' pointer after
10699 calling value_struct_elt, which was accidentally removed during the
10702 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10704 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10706 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10707 get_saved_register.
10708 * value.h (value_of_register): Update.
10710 2002-03-14 Richard Henderson <rth@redhat.com>
10712 * configure.in: Detect declaration for canonicalize_file_name.
10713 * utils.c (canonicalize_file_name): Declare, if needed.
10714 (gdb_realpath): Prefer realpath if available and usable.
10715 * config.in, configure: Rebuild.
10717 2002-03-14 Richard Henderson <rth@redhat.com>
10719 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10720 a constant array bound.
10722 * MAINTAINERS: Add myself to write-after-approval.
10724 2002-03-14 Michael Snyder <msnyder@redhat.com>
10726 * symfile.c (syms_from_objfile): Return immediately if no syms.
10727 (symbol_file_add): Return immediately if no syms.
10728 (find_sym_fns): Return immediately if no syms.
10730 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10732 * gdbserver/remote-util.c (remote_open): Print remote-side's
10733 IP address when remote debugging over the network.
10735 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10737 * config/sparc/fbsd.mh: Fix copyright.
10738 * config/sparc/fbsd.mt: Likewise.
10740 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10742 * MAINTAINERS: Fix typo in name of gdb warnings option.
10743 (x86-64): Fix formating so that this can be parsed by awk.
10745 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10747 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10748 * defs.h: Include "gdb/signals.h".
10749 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10751 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10753 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10754 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10757 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10758 Don Howard <dhoward@redhat.com>
10760 * mips-tdep.c (ST0_FR): Define.
10761 (mips2_fp_compat): New function, temporarily disabled.
10762 (mips_read_fp_register_single): New function.
10763 (mips_read_fp_register_double): New function.
10764 (mips_print_register): Use them.
10765 (do_fp_register_row): Likewise.
10767 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10769 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10772 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10774 * stabsread.c (read_member_functions): Fix is_stub test for
10775 static member functions, improve comment.
10777 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10779 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10780 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10781 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10782 commands that set boolean values.
10783 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10784 (arm_rdi_resume): Always initialize PC.
10785 (arm_rdi_open): Don't use rslt as a boolean.
10786 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10787 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10788 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10789 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10791 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10793 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10794 * configure: Rebuilt.
10796 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10798 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10799 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10801 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10803 * cli/cli-decode.c (set_cmd_completer): New function.
10804 * command.h (set_cmd_completer): Declare.
10805 * cli/cli-decode.h (set_cmd_completer): Ditto.
10807 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10808 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10809 * win32-nat.c (_initialize_inftarg): Ditto.
10810 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10811 * proc-api.c (_initialize_proc_api): Ditto.
10812 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10813 * source.c (_initialize_source): Ditto.
10814 * exec.c (_initialize_exec): Ditto.
10815 * solib.c (_initialize_solib): Ditto.
10816 * top.c (init_main): Ditto.
10817 * tracepoint.c (_initialize_tracepoint): Ditto.
10818 * symfile.c (_initialize_symfile): Ditto.
10819 * printcmd.c (_initialize_printcmd): Ditto.
10820 * infcmd.c (_initialize_infcmd): Ditto.
10821 * corefile.c (_initialize_core): Ditto.
10823 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10825 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10827 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10829 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10831 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10833 * NEWS: Update headings, 5.2 has branched.
10835 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10837 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10838 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10839 (register_addr, REGISTER_RAW_SIZE): Likewise.
10840 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10841 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10843 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10845 * MAINTAINERS (x86-64): Add myself.
10846 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10847 changed value_ptr -> struct value *
10849 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10851 * configure.host (sparc64-*-freebsd): Add.
10852 * configure.tgt: Likewise.
10853 * config/sparc/fbsd.mh: New file.
10854 * config/sparc/fbsd.mt: Likewise.
10855 * config/sparc/nm-fbsd.h: Likewise.
10856 * config/sparc/tm-fbsd.h: Likewise.
10858 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10860 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10861 regformats/reg-s390x.dat.
10863 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10865 * utils.c: Add FIXME explaining true/false problem.
10867 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10869 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10871 2002-02-28 Michael Chastain <mec@shout.net>
10873 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10875 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10877 * gdbserver/linux-s390-low.c: New file.
10878 * regformats/reg-s390.dat: New file.
10879 * regformats/reg-s390x.dat: New file.
10880 * gdbserver/configure.srv: Add S/390.
10881 * gdbserver/Makefile.in: Add S/390.
10882 * configure.tgt: Enable gdbserver for S/390.
10884 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10886 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10887 first line of the doc string for "info dos", except at the end of
10888 the sentence, since the short help stops at the first period.
10890 2002-02-28 Jason Merrill <jason@redhat.com>
10892 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10894 2002-02-27 Fred Fish <fnf@redhat.com>
10896 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10897 comment (dumy -> dummy).
10899 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10901 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10903 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10905 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10907 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10909 * gdbserver/acconfig.h: New file.
10910 * gdbserver/i387-fp.c: New file.
10911 * gdbserver/i387-fp.h: New file.
10912 * gdbserver/linux-x86-64.c: New file.
10913 * regformats/reg-x86-64.dat: New file.
10914 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10915 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10916 * gdbserver/configure.in: Add support for regsets.
10917 * gdbserver/config.in: Regenerate.
10918 * gdbserver/configure: Regenerate.
10919 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10920 * gdbserver/linux-low.h: New file.
10921 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10923 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10924 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10925 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10926 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10927 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10928 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10929 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10930 "i387-fp.h". Add PTRACE_GETREGS and friends.
10931 * gdbserver/regcache.c (supply_register): New function.
10932 (supply_register_by_name): New function.
10933 (collect_register): New function.
10934 (collect_register_by_name): New function.
10936 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10938 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10939 (config.status): Add configure.srv dependency.
10940 (server_h): Add config.h dependency.
10942 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10944 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10945 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10946 * gdbserver/configure.srv: Change i386-*-linux* to use
10949 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10951 * x86-64-tdep.c: Re-indent. Update copyright date.
10953 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10955 From Michal Ludvig <mludvig@suse.cz>:
10956 * x86-64-tdep.c (value.h): Delete.
10957 (gdb_assert.h): Include.
10958 (x86_64_register_convert_to_virtual,
10959 x86_64_register_convert_to_raw ): Add check which lets only
10960 floating-point values to be converted.
10961 (value_push): Delete.
10962 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10963 (i386_gdbarch_init): Number of register_bytes fixed.
10965 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10967 * MAINTAINERS: Add x86-64 target.
10969 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10971 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10972 * osfsolib.c (solib_map_sections): Ditto.
10973 * irix5-nat.c (solib_map_sections): Ditto.
10974 * corelow.c (gdb_check_format): Ditto.
10975 * symfile.c (symfile_bfd_open): Ditto.
10976 * solib.c (solib_map_sections): Ditto.
10979 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10981 * remote.c (_initialize_remote): By default, disable ``e'' and
10982 ``E'' step out-of-range packets.
10984 2002-02-26 Andreas Schwab <schwab@suse.de>
10986 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10987 m68k_linux_frame_saved_pc.
10988 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10990 (SIGCONTEXT_PC_OFFSET): Remove.
10991 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10992 m68k_linux_sigtramp_saved_pc): New functions.
10993 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10994 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10995 (UCONTEXT_PC_OFFSET): Define.
10996 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10997 non-RT and RT signal trampolines.
10999 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11001 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11002 (TARGET_NBPG, STACK_END_ADDR): Delete
11003 (VARIABLES_INSIDE_BLOCK): Delete.
11005 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11007 * utils.c (perror_with_name): Make string parameter constant.
11008 (print_sys_errmsg): Ditto.
11010 * defs.h (perror_with_name): Update.
11011 (print_sys_errmsg): Update.
11014 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11016 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11017 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11019 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11021 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11022 if it already matches the current architecture from the exec file.
11023 Include arch-utils.h for gdbarch_info_init prototype.
11024 * Makefile.in (rs6000-nat.o): Update dependencies.
11026 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11028 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11029 list of exported variables.
11031 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11033 * gdbserver/configure.srv: New file.
11034 * gdbserver/configure.in: Use configure.srv instead
11035 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11037 * gdbserver/configure: Regenerated.
11038 * gdbserver/terminal.h: New file.
11039 * gdbserver/Makefile.in: Update for configure changes. Remove
11040 more unneeded include paths.
11042 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11044 From wiz at danbala:
11045 * config/sparc/tm-sp64.h: Fix grammar and typos.
11048 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11050 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11051 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11052 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11053 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11054 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11055 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11056 * s390-tdep.c: Ditto.
11057 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11058 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11059 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11060 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11061 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11062 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11063 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11064 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11065 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11066 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11069 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11071 * lin-thread.c: Delete file.
11072 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11073 to gdb_proc_service.h.
11074 * configure: Re-generate.
11076 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11077 * serial.c (serial_open): Delete check for "ocd".
11080 * Makefile.in (linux-thread.o): Delete target.
11081 * linux-thread.c: Delete file.
11083 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11084 renamed SH files to be consistent.
11086 * symtab.c (sort_search_symbols): Use xfree.
11088 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11090 * arm-linux-tdep.c (arm_linux_init_abi): Register
11091 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11092 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11093 definition with undef, since we don't want the sysvr4 definition.
11094 (SKIP_TRAMPOLINE_CODE): Likewise.
11096 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11098 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11100 * configure.in: (AC_CHECK_FUNCS) Added test for
11101 canonicalize_file_name Regenerated.
11102 * config.in, configure: Regenerated.
11103 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11104 defined use canonicalize_file_name.
11106 2002-02-23 Michael Chastain <mec@shout.net>
11108 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11110 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11112 * README: Remove references to cygnus.com.
11113 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11114 dot com'' form. Remove references to cygnus.com and sourceware.
11116 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11118 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11119 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11120 1003.1-2001 no longer allows "head -1".
11121 * gdb/Makefile.in (version.c): Likewise.
11122 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11123 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11124 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11126 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11128 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11129 * command.h (cmd_cfunc_eq): Declare.
11130 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11132 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11133 ``struct cmd_list_element *''.
11134 * cli/cli-cmds.c (is_complete_command): Update. Use
11136 * top.c (execute_command): Pass the command to
11137 is_complete_command.
11138 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11140 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11142 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11143 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11144 architecture defines.
11145 * s390-tdep.c (s390_gdbarch_init): Likewise.
11147 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11149 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11150 (arm_linux_push_arguments): Likewise.
11151 (arm_linux_init_abi): Register them. Also register linux-specific
11153 (find_minsym_and_objfile): Use strcmp, not STREQ.
11154 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11155 (arm_linux_call_dummy_words): Delete declaration.
11156 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11157 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11159 (LOWEST_PC): Delete.
11161 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11163 * maint.c (print_section_info): Do not prepend `0x' to filepos
11164 output, it will be handled by local_hex_string_custom.
11166 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11168 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11169 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11170 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11172 2002-02-22 Jim Blandy <jimb@redhat.com>
11174 Indicate that the bcache functions don't change the strings
11176 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11177 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11179 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11181 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11183 2002-02-21 Christopher Faylor <cgf@redhat.com>
11185 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11186 find the complete path to a loaded DLL.
11188 2002-02-21 Fred Fish <fnf@redhat.com>
11190 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11191 that marks the end of the range of a function, enter a line number
11192 entry that has a line number of zero and a PC offset that matches
11193 the end of the function. This starts a range of PC's for which no
11194 line number information is known.
11195 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11196 PC's for which no line number info is found (line number is zero)
11197 then we didn't find any valid line information.
11198 * symtab.h: Document use of zero line number entry.
11200 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11202 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11203 (have_ptrace_getvrregs): Define for run time checks.
11204 (gdb_vrregset_t): New type for Altivec register handling.
11205 (fetch_register, store_register): Fetch/store altivec register
11207 (fetch_altivec_register, store_altivec_register): New functions.
11208 (supply_vrregset, fill_vrregset): New functions.
11209 (fetch_altivec_registers, store_altivec_registers): New functions.
11210 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11213 2002-02-21 Jiri Smid <smid@suse.cz>
11215 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11217 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11219 * Makefile.in (armnbsd-nat.o): Update dependencies.
11220 * armnbsd-nat.c (supply_gregset): New function. Common code to
11221 supply the integer register set.
11222 (supply_fparegset): New function. Similar for FPA registers.
11223 (fetch_regs, fetch_fp_regs): Use them.
11224 (fetch_core_registers): Likewise.
11225 (fetch_elfcore_registers): New function.
11226 (arm_netbsd_elfcore_fns): New core-file type specification.
11227 (_initialize_arm_netbsd_nat): Register it.
11229 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11231 * armnbsd-nat.c: Include gdbcore.h.
11232 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11233 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11234 'void' to declaration, to shut up ARI.
11235 (fetch_core_registers): Make static. Rewrite using supply_register.
11236 (arm_netbsd_core_fns): New core-file type specification.
11237 (_initialize_arm_netbsd_nat): New function.
11239 2002-02-21 Christopher Faylor <cgf@redhat.com>
11241 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11244 2002-02-20 Christopher Faylor <cgf@redhat.com>
11246 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11249 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11251 * jv-exp.y (parse_number): Change type of implicit longs
11252 to builtin_type_uint64.
11254 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11256 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11257 to be an integer instead of a `union wait'.
11259 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11261 * mips-linux-nat.c: Call the operating system GNU/Linux.
11262 * mips-linux-tdep.c: Likewise.
11263 * mips-tdep.c: Likewise.
11265 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11268 * jv-exp.y (parse_number): Handle 64-bit integers.
11270 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11272 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11273 AC_STDC_HEADERS to AC_HEADER_STDC.
11274 * gdbserver/configure: Regenerated.
11276 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11278 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11280 * sparc-tdep.c (get_longjmp_target): Likewise.
11282 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11284 * News: Add news about ARM and Multi-arch. Mention the new target
11287 2002-02-19 Jim Blandy <jimb@redhat.com>
11289 * stabsread.c (error_type_complaint): Improve error message.
11291 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11293 * gdbserver/README: Update documentation.
11294 * gdbserver/configure.in: Update configury to match documentation.
11295 * gdbserver/Makefile.in: Likewise.
11296 * gdbserver/configure: Regenerated.
11297 * gdbserver/aclocal.m4: New file, generated by aclocal.
11298 * gdbserver/config.in: New file, generated by autoheader.
11300 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11302 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11305 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11307 * arm-tdep.h (enum arm_float_model): New enum.
11308 (struct gdbarch_tdep): Add fp_model.
11309 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11310 up floating-point conversions until we know the floating-point model
11311 in use by the inferior. Don't complain about being unable to
11312 determine the ABI of the inferior when we don't have one.
11313 (arm_extract_return_value): Support different floating-point models.
11314 (arm_store_return_value): Likewise.
11315 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11317 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11319 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11321 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11322 of ``current_gdbarch''.
11324 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11326 * armnbsd-nat.c : ANSIfy all function declarations.
11327 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11328 (fetch_inferior_registers): Re-implement in terms of above.
11329 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11330 (store_inferior_registers): Re-implement in terms of above.
11332 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11334 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11336 * arm-linux-tdep.c: Likewise.
11337 * config/arm/tm-linux.h: Likewise.
11339 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11341 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11342 * config/arm/nbsd.mt (TM_FILE): Delete.
11343 * config/arm/tm-nbsd.h: Delete.
11345 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11347 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11348 Initialize CALL_DUMMY_LENGTH.
11350 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11352 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11354 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11355 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11356 defines one thing and that is incorrect for this port.
11357 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11359 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11361 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11363 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11365 * win32-nat.c (display_selector): New function. Displays information
11366 about the information returned by GetThreadSelectorEntry API function.
11367 (display_selectors): New function. Displays the infomation of
11368 the selector given as argument, or of CS, DS ans FS selectors
11369 if no argument is given.
11370 ( _initialize_inftarg): Add "w32" as info prefix command.
11371 Add "info w32 selector" as command calling display_selectors.
11373 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11375 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11376 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11379 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11381 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11383 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11385 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11386 (arm_fix_call_dummy): Call it.
11387 (arm_call_dummy_breakpoint_offset): Delete.
11388 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11389 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11391 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11393 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11394 Default to func_frame_chain_valid.
11395 * gdbarch.h, gdbarch.c: Re-generate.
11396 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11398 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11400 * ppc-linux-nat.c: Update copyright.
11401 (fetch_register, store_register): Add tid parameter, don't compute
11403 (fetch_ppc_registers, store_ppc_registers): Add tid
11404 parameter. Pass it along to callees.
11405 (fetch_inferior_registers, store_inferior_registers): Compute tid
11406 here, and pass it to calleed functions.
11407 (fill_gregset, supply_fpregset): Clean up formatting.
11409 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11411 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11412 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11414 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11416 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11417 * gdbarch.c gdbarch.h: Regenerate.
11418 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11420 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11421 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11422 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11424 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11425 * arm-tdep.c (arm_get_longjmp_target): New function.
11426 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11427 this to a positive value register arm_get_longjmp_target as the
11429 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11430 (arm_linux_init_abi): Set up longjmp description in tdep.
11431 * armnbsd-nat.c (get_longjmp_target): Delete.
11432 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11433 description in tdep.
11434 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11435 (get_longjmp_target): Delete declaration.
11436 (GET_LONGJMP_TARGET): Delete.
11437 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11438 (GET_LONGJMP_TARGET): Delete.
11440 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11442 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11443 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11444 of ``current_gdbarch''.
11446 2002-02-17 Tom Tromey <tromey@redhat.com>
11448 * cli/cli-cmds.c (compare_strings): New function.
11449 (complete_command): Only print each unique item once.
11450 * completer.h (complete_line): Declare.
11451 * completer.c (complete_line): New function.
11452 (line_completion_function): Use it.
11454 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11456 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11457 * gdbarch.h, gdbarch.c: Re-generate.
11459 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11461 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11463 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11465 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11466 * valops.c (value_arg_coerce): Don't take the address of a reference
11467 to convert an argument to a reference.
11469 2002-02-15 Christopher Faylor <cgf@redhat.com>
11471 * win32-nat.c (get_image_name): New function.
11472 (handle_load_dll): Use get_image_name function.
11473 (get_child_debug_event): Avoid registering debug events until possibly
11474 execed process is started.
11475 (child_create_inferior): Allow invocation via shell so that command
11476 line redirection, etc. works ok.
11477 (_initialize_inftarg): Add new command: "set shell" to control whether
11478 a shell is used to start a process.
11480 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11482 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11483 instead of find_register_by_number.
11484 (cannot_store_register): Likewise.
11486 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11488 * dwarf2read.c: Replace fprintf (stderr, ...) by
11489 fprintf_unfiltered (gdb_stderr, ...).
11491 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11493 * gdbserver/gdbserver.1: Document --attach.
11495 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11497 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11499 * arm-tdep.c (arm_default_arm_le_breakpoint)
11500 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11501 (arm_default_thumb_be_breakpoint): New. Initialize them from
11502 traditional breakpoint defines.
11503 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11504 (arm_gdbarch_init): Initialize new breakpoint variables.
11505 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11506 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11507 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11508 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11510 (arm_netbsd_init_abi_common): ... here; new function.
11511 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11512 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11513 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11514 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11516 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11518 * arm-tdep.h (enum arm_abi): New enum.
11519 (struct gdbarch_tdep): New structure.
11520 (LOWEST_PC): Provide a default.
11521 (arm_gdbarch_register_os_abi): Declare new function.
11522 * arm-tdep.c (arm_abi_names): New array.
11523 (process_note_abi_tag_sections): New function.
11524 (get_elfosabi): New function.
11525 (arm_gdbarch_register_os_abi): New function.
11526 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11527 support for that ABI has been built in, then call the appropriate
11528 configuration routine. Use gdbarch_num_regs() to get the number
11530 (arm_dump_tdep): New function.
11531 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11532 place-holder functions.
11533 (_initialize_arm_tdep): Register them.
11534 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11536 * armnbsd-tdep.c: New file.
11537 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11538 * config/arm/nbsd.mt (TDEPFILES): Add it.
11539 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11541 * armnbsd-nat.c: Include regcache.h.
11542 * Makefile.in (armnbsd-nat.o): Update dependency list.
11544 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11546 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11548 * gdbserver/Makefile.in: Fix typos in target rules.
11550 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11552 Fix part of PR gdb/267.
11553 * linespec.c (find_methods): Handle constructors specially for now.
11555 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11557 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11559 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11560 standard_coerce_float_to_double().
11562 2002-02-14 Christopher Faylor <cgf@redhat.com>
11564 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11567 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11569 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11570 find_variant_by_name, because it confuses the multiarch
11571 framework. Return NULL if there isn't an architecture with the
11572 user supplied name, instead of forcing a different one without
11573 recording the change with the multiarch machinery.
11574 (find_variant_by_name): Delete.
11576 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11578 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11579 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11581 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11583 * stack.c (print_frame_info_base): When calling
11584 print_frame_info_listing_hook, set current_source_symtab.
11586 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11588 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11589 and remove unused $(INCLUDE_DIR).
11590 Add regcache.c to OBS.
11591 Add generated register protocol files to clean target.
11592 Update dependencies for new objects, obsolete old target code.
11594 * gdbserver/linux-low.c: Remove all platform-specific code to
11595 new files. Remove various dead code. Update to use regcache
11597 * gdbserver/remote-utils.c (fromhex): Add return statement
11599 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11601 (input_interrupt): Add integer parameter to match prototype
11602 of a signal handler.
11603 (outreg): Use register_data ().
11604 (prepare_resume_reply): Use gdbserver_expedite_regs.
11605 * gdbserver/server.c (main): Dynamically allocate own_buf because
11606 PBUFSIZ is no longer constant. Use registers_to_string () and
11607 registers_from_string ().
11608 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11609 for error (), fatal (), and warning (). Update definition of
11610 PBUFSIZ to use regcache functionality. Add include guard.
11611 * gdbserver/utils.c (fatal): Add missing ``const''.
11612 (warning): New function.
11614 * regformats/regdat.sh: Include "regcache.h" in generated files.
11615 Provide init_registers () function.
11616 * regformats/regdef.h: Add prototype for set_register_cache ().
11619 * gdbserver/linux-arm-low.c: New file.
11620 * gdbserver/linux-i386-low.c: New file.
11621 * gdbserver/linux-ia64-low.c: New file.
11622 * gdbserver/linux-m68k-low.c: New file.
11623 * gdbserver/linux-mips-low.c: New file.
11624 * gdbserver/linux-ppc-low.c: New file.
11625 * gdbserver/linux-sh-low.c: New file.
11627 * gdbserver/regcache.c: New file.
11628 * gdbserver/regcache.h: New file.
11630 * gdbserver/low-linux.c: Removed obsolete file.
11632 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11634 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11635 * config/i386/linux.mt: Likewise.
11636 * config/ia64/linux.mt: Likewise.
11637 * config/m68k/linux.mh: Likewise.
11638 * config/powerpc/linux.mh: Likewise.
11639 * config/mips/linux.mt: Likewise.
11641 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11643 * config/i386/i386lynx.mh: Mark gdbserver variables
11644 as (currently) obsolete for this target.
11645 * config/i386/nbsd.mt: Likewise.
11646 * config/i386/nbsdelf.mt: Likewise.
11647 * config/m32r/m32r.mt: Likewise.
11648 * config/m68k/m68klynx.mh: Likewise.
11649 * config/m68k/nbsd.mt: Likewise.
11650 * config/m68k/sun3os4.mh: Likewise.
11651 * config/mips/vr5000.mt: Likewise.
11652 * config/ns32k/nbsd.mt: Likewise.
11653 * config/pa/hppabsd.mh: Likewise.
11654 * config/pa/hppaosf.mh: Likewise.
11655 * config/powerpc/nbsd.mt: Likewise.
11656 * config/rs6000/rs6000lynx.mh: Likewise.
11657 * config/s390/s390.mt: Likewise.
11658 * config/s390/s390x.mt: Likewise.
11659 * config/sparc/sparclynx.mh: Likewise.
11660 * config/sparc/sun4os4.mh: Likewise.
11661 * config/i386/x86-64linux.mt: Likewise.
11662 * config/sparc/linux.mh: Likewise.
11664 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11666 * configure.tgt: Configure gdbserver only for known working
11667 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11668 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11669 SUBDIRS if it is configured. Update comment for ${nativefile}.
11670 * configure: Regenerated.
11672 2002-02-13 Michael Snyder <msnyder@redhat.com>
11674 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11676 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11677 (default_gcore_mach): Just return 0, work around a problem in bfd.
11678 (default_gcore_target): OK to return NULL if exec_bfd is null.
11679 (make_mem_sec): Use a cast, avoid a warning.
11681 * procfs.c (find_memory_regions_callback): Use a cast instead of
11682 calling host_pointer_to_address (which complains if
11683 sizeof (host pointer) != sizeof (target pointer)).
11684 (procfs_make_note_section): Avoid overflow in psargs string.
11686 * procfs.c (procfs_make_note_section): Make the default
11687 implementation return an error.
11689 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11691 * procfs.c (procfs_make_note_section): Provide a default definition
11692 (for alpha-dec-osf4.0f). Fix typos.
11694 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11696 * linux-proc.c: Add include of regcache.h.
11697 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11699 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11701 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11702 * memattr.c (create_mem_region): Disallow useless empty region.
11703 Regions are half-open intervals, so allow [A..B) [B..C) as
11706 2002-02-13 Michael Chastain <mec@shout.net>
11708 * defs.h: Kill CONST_PTR.
11709 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11710 * c-lang.c (c_builtin_types): Likewise.
11711 * ch-lang.c (ch_builtin_types): Likewise.
11712 * f-lang.c (f_builtin_types): Likewise.
11713 * language.c (unknown_builtin_types): Likewise.
11714 * m2-lang.c (m2_builtin_types): Likewise.
11715 * p-lang.c (pascal_builtin_types): Likewise.
11716 * scm-lang.c (c_builtin_types): Likewise.
11718 2002-02-13 Keith Seitz <keiths@redhat.com>
11720 * arm-tdep.h (arm_get_next_pc): Add declaration.
11722 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11724 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11725 with other related struct-returning functions.
11726 (arm_extract_struct_value_address): New function.
11727 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11728 initialize float_format, double_format and long_double_format as
11729 appropriate to the endianness of the target.
11730 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11731 (arm_use_struct_convention): Delete declaration.
11732 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11734 2002-02-13 Keith Seitz <keiths@redhat.com>
11736 * defs.h (core_addr_to_string_nz): New function.
11738 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11740 Apply missing bits of 2002-01-15 patch.
11741 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11742 (fill_fpregset): Use i387_fill_fsave.
11744 2002-02-12 Keith Seitz <keiths@redhat.com>
11746 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11747 (core_addr_to_string_nz): New function.
11749 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11751 * arm-linux-nat.c: Really include arm-tdep.h.
11752 * config/arm/tm-linux.h (struct type, struct value): Declare.
11754 2002-02-11 Michael Snyder <msnyder@redhat.com>
11756 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11757 (gcore section): Ifdef for Solaris and Unixware only.
11758 (procfs_do_thread_registers): Unixware needs one lwpstatus
11759 per thread (not one prstatus or pstatus).
11760 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11761 not over all gdb threads. For unixware, call elfcore_write_pstatus
11762 once before iterating over threads.
11764 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11766 * arm-tdep.h: New file.
11767 * arm-tdep.c: Include arm-tdep.h.
11768 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11769 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11770 (arm_print_float_info, arm_register_type, convert_to_extended)
11771 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11772 (arm_extract_return_value, arm_register_name): Make static.
11773 (arm_software_single_step): Similarly. Fix types in declaration.
11774 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11775 (arm_store_return_value, arm_store_struct_return): New functions.
11776 (arm_gdbarch_init): Register the above functions. Also register
11777 call_dummy_start_offset, sizeof_call_dummy_words,
11778 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11779 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11780 max_register_virtual_size, register_size. Set up
11781 prologue_cache.saved_regs here, rather than ...
11782 (_initialize_arm_tdep): ... here.
11783 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11785 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11786 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11787 (arm_print_float_info, arm_register_type, convert_to_extended)
11788 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11789 (arm_extract_return_value, arm_register_name): Delete declarations.
11790 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11791 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11792 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11793 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11794 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11795 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11796 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11797 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11798 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11799 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11800 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11801 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11803 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11804 * remote-rdi.c remote-rdp.c: Likewise.
11805 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11806 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11807 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11810 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11811 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11812 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11813 from non-ARM_ prefixed definitions.
11814 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11816 * remote-rdi.c remote-rdp.c: Likewise.
11817 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11819 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11821 * arm-tdep.c (arm_frameless_function_invocation)
11822 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11823 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11824 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11825 (arm_pop_frame, arm_get_next_pc): Make static.
11826 (arm_gdbarch_init): Register above in gdbarch structure.
11827 (arm_read_fp): Renamed from arm_target_read_fp.
11828 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11829 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11830 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11831 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11832 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11833 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11834 (arm_pc_is_thumb_dummy): Delete declarations.
11835 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11836 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11837 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11838 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11840 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11842 * symtab.c (compare_search_syms): New function.
11843 (sort_search_symbols): New function.
11844 (search_symbols): Sort symbols after searching rather than
11847 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11849 * NEWS: Linux -> GNU/Linux.
11851 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11853 * gdbarch.sh: For for level one methods, disallow a definition
11854 when partially multi-arched. Add comments explaining rationale.
11855 * gdbarch.h: Re-generate.
11857 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11859 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11860 multi-arch partial.
11862 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11864 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11865 field. Use diff -u.
11866 * gdbarch.c: Re-generate.
11868 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11870 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11871 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11874 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11876 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11877 multi-arch partial.
11878 (PUSH_ARGUMENTS): Switch to using predefault.
11879 * gdbarch.c: Regenerate.
11881 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11883 * valops.c (PUSH_ARGUMENTS): Delete definition.
11884 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11885 partial. Default to default_push_arguments.
11886 * gdbarch.h, gdbarch.c: Regenerate.
11888 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11890 * defs.h (throw_exception): Rename return_to_top_level. Update
11892 * utils.c (error_stream, internal_verror, quit): Ditto.
11893 * top.c (throw_exception, catcher): Ditto.
11894 * sparclet-rom.c (sparclet_load): Ditto.
11895 * remote.c (interrupt_query, minitelnet): Ditto.
11896 * remote-sds.c (interrupt_query): Ditto.
11897 * remote-mips.c (mips_error, mips_kill): Ditto.
11898 * ocd.c (interrupt_query): Ditto.
11899 * monitor.c (monitor_interrupt_query): Ditto.
11900 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11901 * target.h: Update comment.
11903 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11905 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11907 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11908 default_double_format.
11909 * gdbarch.h, gdbarch.c: Re-generate.
11910 * findvar.c (floatformat_unknown): Delete variable definition.
11911 * doublest.h (floatformat_unknown): Delete variable declaration.
11913 2002-02-09 Jim Blandy <jimb@redhat.com>
11915 * stabsread.c (read_type): Add code to parse Sun's syntax for
11916 prototyped function types.
11918 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11920 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11921 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11923 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11925 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11926 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11927 now _initialize_xcoffsolib gets called again and overrides the
11928 commands from solib.c in a native configuration.
11930 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11932 * doublest.c (store_typed_floating): Don't try to return a value.
11935 2002-02-08 Jim Blandy <jimb@redhat.com>
11937 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11938 is prototyped and has no arguments, print its argument list as
11941 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11943 * MAINTAINERS (write-after-approval): Add myself.
11944 (paper-trail): I've escaped!
11946 2002-02-08 Christopher Faylor <cgf@redhat.com>
11948 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11950 (_initialize_check_for_gdb_ini): Ditto.
11952 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11954 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11955 xaprintf -> xasprintf.
11957 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11959 * win32-nat.c: Remove use of printf and sprintf functions.
11961 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11963 * arm-tdep.c (arm_frame_chain_valid): Make static.
11964 (arm_push_arguments): Likewise.
11965 (arm_gdbarch_init): New function.
11966 (_initialize_arm_tdep): Call it.
11967 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11968 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11969 (FRAME_CHAIN_VALID): Delete.
11970 (arm_frame_chain_valid): Delete declaration.
11971 (PUSH_ARGUMENTS): Delete.
11972 (arm_push_arguments): Delete declaration.
11973 (CALL_DUMMY_P): Delete.
11975 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11976 Corinna Vinschen <vinschen@redhat.com>
11978 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11979 on builtin float types.
11981 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11983 * utils.c: Include <curses.h> before "bfd.h".
11984 * tui/tui-hooks.c: Likewise.
11985 * tui/tui.c: Likewise.
11986 * tui/tuiCommand.c: Likewise.
11987 * tui/tuiData.c: Likewise.
11988 * tui/tuiDataWin.c: Likewise.
11989 * tui/tuiDisassem.c: Likewise.
11990 * tui/tuiGeneralWin.c: Likewise.
11991 * tui/tuiIO.c: Likewise.
11992 * tui/tuiLayout.c: Likewise.
11993 * tui/tuiRegs.c: Likewise.
11994 * tui/tuiSource.c: Likewise.
11995 * tui/tuiSourceWin.c: Likewise.
11996 * tui/tuiStack.c: Likewise.
11997 * tui/tuiWin.c: Likewise.
11999 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12001 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12002 to include space for pseudoregs as well. Update loops accordingly.
12003 (sh_fp_frame_init_saved_regs): Ditto.
12004 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12006 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12008 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12009 Add Richard Earnshaw to Arm maintainers.
12011 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12013 * defs.h (warning_begin): Delete declaration.
12015 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12018 2002-02-07 Michael Snyder <msnyder@redhat.com>
12020 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12021 Logic bug, remove misplaced else.
12023 2002-02-07 Klee Dienes <klee@apple.com>
12025 * fork-inferior.c (fork_inferior): Add '!' to the list of
12026 characters that need to be quoted when building a string for the
12027 shell. Quote '!' specifically with a backslash, since CSH chokes
12028 when trying to evaluate "str!str".
12030 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12032 * rdi-share/host.h: Only provide a typedef for bool if it is not
12035 2002-02-04 Michael Snyder <msnyder@redhat.com>
12037 * breakpoint.h (enum bptype): Add new overlay event bp type.
12038 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12040 * breakpoint.c (create_internal_breakpoint): New function.
12041 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12042 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12043 (create_thread_event_breakpoint): Ditto.
12044 (create_solib_event_breakpoint): Ditto.
12045 (create_overlay_event_breakpoint): New function.
12046 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12047 (update_breakpoints_after_exec): Delete and re-initialize
12048 overlay event breakpoints after an exec. Add FIXME comment
12049 about longjmp breakpoint.
12050 (print_it_typical): Ignore overlay event breakpoints.
12051 (print_one_breakpoint): Ditto.
12053 (bpstat_what): Do not stop for overlay event breakpoints.
12054 (delete_breakpoint): Don't delete overlay event breakpoints.
12055 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12056 (breakpoint_re_set): Re-create overlay event breakpoint.
12058 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12059 (overlay_manual_command): Disable overlay breakpoints.
12060 (overlay_off_command): Disable overlay breakpoints.
12062 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12064 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12065 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12066 to here from config/tm-arm.h.
12067 (coff_sym_is_thumb): Make static.
12068 (arm_elf_make_msymbol_special): New function.
12069 (arm_coff_make_msymbol_special): New function.
12070 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12071 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12072 (coff_sym_is_thumb): Delete declaration.
12073 (arm_elf_make_msymbol_special): Declare.
12074 (arm_coff_make_msymbol_special): Declare.
12075 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12076 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12078 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12080 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12082 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12084 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12085 * gdbarch.c gdbarch.h: Regenerate.
12086 * arch-utils.c (default_print_float_info): New function.
12087 * arch-utils.h (default_print_float_info): Prototype it.
12088 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12089 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12090 (PRINT_FLOAT_INFO): Document it.
12092 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12093 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12094 (PRINT_FLOAT_INFO): Define.
12096 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12098 * win32-nat.c (_initialize_check_for_gdb_ini):
12099 Add typecast to sprintf argument to suppress a warning.
12101 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12103 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12104 to allow easier handling of pass state.
12105 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12106 that gives exception name and address.
12107 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12108 and set last_sig value to ourstatus->value.sig. Some missing
12110 (child_continue): Correctly report continue_status.
12111 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12112 TARGET_SIGNAL_0 (new default value).
12113 (child_resume): consider sig argument passed to decide if
12114 the exception should be passed to debuggee or not.
12116 2002-02-05 Michael Snyder <msnyder@redhat.com>
12118 * regcache.c (fetch_register): Call target_fetch_register
12119 only if we don't call FETCH_PSEUDO_REGISTER.
12120 (store_register): Call target_store_register only if we
12121 don't call STORE_PSEUDO_REGISTER.
12123 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12125 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12126 ELF_MAKE_MSYMBOL_SPECIAL.
12127 * gdbarch.c, gdbarch.h: Regenerate.
12128 * arch-utils.c (default_make_msymbol_special): New function.
12129 * arch-utils.h (default_make_msymbol_special): Export.
12130 * elfread.c (elf_symtab_read): Compile use of
12131 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12133 * coffread.c (coff_symtab_read): Ditto, for
12134 COFF_MAKE_MSYMBOL_SPECIAL.
12136 2002-02-05 Jim Blandy <jimb@redhat.com>
12138 * solib-svr4.c (svr4_truncate_ptr): New function.
12139 (svr4_relocate_section_addresses): Do the address arithmetic with
12140 the appropriate truncation for target addresses, even when
12141 CORE_ADDR is larger than a target address.
12143 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12145 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12148 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12150 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12153 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12155 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12157 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12159 * gdbserver/linux-low.c: Remove unused include files.
12161 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12163 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12164 (read_inferior_memory): Use it.
12165 (write_inferior_memory): Likewise.
12167 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12169 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12170 grubbing through sys_errlist.
12172 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12174 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12176 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12177 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12179 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12181 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12182 (do_sfunc, set_cmd_sfunc): New functions.
12184 * command.h (struct cmd_list_element): Add field func.
12185 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12186 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12187 * cli/cli-decode.h: Ditto.
12189 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12190 (help_all, help_cmd_list): Ditto.
12191 (find_cmd, complete_on_cmdlist): Ditto.
12192 * top.c (execute_command): Ditto.
12194 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12197 * infcmd.c (notice_args_read): Fix function signature.
12199 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12200 * cli/cli-decode.c (add_set_cmd): Ditto.
12201 * utils.c (initialize_utils): Ditto.
12202 * maint.c (_initialize_maint_cmds): Ditto.
12203 * infrun.c (_initialize_infrun): Ditto.
12204 * demangle.c (_initialize_demangler): Ditto.
12205 * remote.c (add_packet_config_cmd): Ditto.
12206 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12207 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12208 * proc-api.c (_initialize_proc_api): Ditto.
12209 * kod.c (_initialize_kod): Ditto.
12210 * valprint.c (_initialize_valprint): Ditto.
12211 * top.c (init_main): Ditto.
12212 * infcmd.c (_initialize_infcmd): Ditto.
12213 * corefile.c (_initialize_core): Ditto.
12214 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12215 * arch-utils.c (initialize_current_architecture): Ditto.
12216 (_initialize_gdbarch_utils): Ditto.
12217 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12219 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12220 * wince.c (_initialize_inftarg): Ditto.
12221 * symfile.c (_initialize_symfile): Ditto.
12222 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12223 * language.c (_initialize_language): Ditto.
12224 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12226 2002-02-04 Michael Snyder <msnyder@redhat.com>
12228 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12230 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12232 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12233 Add rules for building the register data files.
12235 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12237 * regformats/regdat.sh: Add braces to the definition of
12238 expedite_regs_${arch}.
12240 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12242 * regformats/regdef.h (struct reg): Add comment describing the
12243 requirements for offset and size fields.
12245 2002-02-04 Andreas Schwab <schwab@suse.de>
12247 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12248 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12250 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12252 * gdbarch.sh (copyright): Update years in generated header.
12253 (SMASH_TEXT_ADDRESS): Add rule.
12254 * gdbarch.h, gdbarch.c: Re-generate.
12255 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12256 * dbxread.c: Likewise.
12257 * dwarfread.c: Likewise.
12258 * elfread.c: Likewise.
12259 * somread.c: Likewise.
12261 * arm-tdep.c (arm_smash_text_address): New function.
12262 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12264 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12266 Add support for hardware watchpoints on win32 native.
12267 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12268 CONTEXT_DEBUG_REGISTERS.
12269 (dr variable): New variable. Static array containing a local copy
12270 of debug registers.
12271 (debug_registers_changed): New variable. Reflects when debug registers
12272 are changed and need to be written to inferior.
12273 (debug_registers_used): New variable. Reflects when any debug register
12274 was set, used when new threads are created.
12275 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12277 (thread_rec): Set dr array if id is the thread of current_event .
12278 (child_continue, child_resume): Change the debug registers for all
12279 threads if debug_registers_changed.
12280 (child_add_thread): Change the debug registers if debug_registers_used.
12281 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12282 Link nm.h to new nm-cygwin.h file.
12283 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12284 of hardware registers.
12286 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12288 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12289 Restore behavour broken by 2002-01-20 Andrew Cagney
12290 <ac131313@redhat.com> IEEE_FLOAT removal.
12292 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12294 * c-valprint.c (c_val_print): Pass a proper valaddr to
12295 cp_print_class_method.
12296 * valops.c (search_struct_method): If there is only one method
12297 and args is NULL, return that method.
12299 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12301 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12302 accessing tag_name directly.
12304 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12306 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12307 of accessing tag_name directly.
12309 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12312 * gdbtypes.c (replace_type): New function.
12313 * gdbtypes.h (replace_type): Add prototype.
12314 * stabsread.c (read_type): Use replace_type.
12316 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12318 * Makefile.in (memattr.o): Add missing dependencies rule.
12320 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12322 * breakpoint.c (break_at_finish_command): Really export.
12323 (break_at_finish_at_depth_command): Ditto.
12324 (tbreak_at_finish_command): Ditto.
12325 * hppa-tdep.c: Include completer.h.
12326 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12327 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12329 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12331 * utils.c (do_write): New function.
12332 (error_stream): Rewrite combining the code from error_begin and
12334 (verror): Rewrite using error_stream.
12335 (error_begin): Delete function.
12337 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12339 * utils.c (error_begin): Make static.
12340 * defs.h (error_begin): Delete declaration.
12342 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12343 (decode_line_1): Use cplusplus_error instead of error_begin,
12344 cplusplus_hint and return_to_top_level.
12345 * coffread.c (coff_symfile_read): Use error instead of error_begin
12346 and return_to_top_level.
12347 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12349 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12351 * language.h (type_error, range_error): Make string parameter
12353 * language.c (warning_pre_print): Delete extern declaration.
12354 * dwarfread.c (warning_pre_print): Ditto.
12355 * language.c (type_error, range_error): Rewrite to use verror and
12356 vwarning instead of warning_begin.
12358 2002-02-01 Michael Snyder <msnyder@redhat.com>
12360 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12361 (set_ignore_count): Move misplaced comment back where it belongs.
12363 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12365 * command.h (NO_FUNCTION): Delete macro.
12366 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12367 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12368 * tracepoint.c (_initialize_tracepoint): Ditto.
12369 * cli/cli-decode.c (add_set_cmd): Ditto.
12370 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12372 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12374 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12375 Update ``this'' pointer when calling virtual functions.
12377 2002-02-01 Michael Snyder <msnyder@redhat.com>
12379 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12380 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12382 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12384 * regformats/reg-arm.dat: New file.
12385 * regformats/reg-i386.dat: New file.
12386 * regformats/reg-ia64.dat: New file.
12387 * regformats/reg-m68k.dat: New file.
12388 * regformats/reg-mips.dat: New file.
12389 * regformats/reg-ppc.dat: New file.
12390 * regformats/reg-sh.dat: New file.
12391 * regformats/regdef.h: New file.
12392 * regformats/regdat.sh: New file.
12394 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12396 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12397 (arm_frame_args_address, arm_frame_locals_address): New functions.
12398 (arm_frame_num_args): New function.
12399 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12400 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12401 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12403 2002-01-31 Michael Snyder <msnyder@redhat.com>
12405 * breakpoint.c (break_at_finish_command): Export.
12406 (break_at_finish_at_depth_command): Export.
12407 (tbreak_at_finish_command): Export.
12408 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12409 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12410 "txbreak" commands, which are HPPA specific.
12412 * printcmd.c (disassemble_command): Remove an ancient
12413 artifact of an old merge.
12415 * symfile.h (enum overlay_debugging_state):
12416 Define enum constant values for overlay mode.
12417 * symfile.c (overlay_debugging): Use enums instead of literals.
12418 (overlay_is_mapped, overlay_auto_command,
12419 overlay_manual_command): Ditto.
12421 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12422 breakpoint_here_p, breakpoint_inserted_here_p,
12423 breakpoint_thread_match, bpstat_stop_status,
12424 describe_other_breakpoints, check_duplicates, clear_command):
12425 Coding standard fixes.
12427 * target.c (target_xfer_memory): Add spaces, coding standard.
12428 (do_xfer_memory): Add missing line to trust-readonly
12429 code: check bfd SEC_READONLY flag for section.
12431 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12433 * PROBLEMS: Fix typo, 5.1->5.1.1.
12435 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12437 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12438 data symbols, since we search based on textlow and texthigh.
12439 (find_pc_sect_symtab): Likewise.
12441 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12443 * defs.h (vwarning): Declare.
12444 * utils.c (vwarning): New function.
12445 (warning): Call vwarning.
12446 (warning_begin): Delete function.
12448 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12449 the warning message.
12450 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12453 2002-01-30 Michael Snyder <msnyder@redhat.com>
12455 * NEWS: Mention "set trust-readonly-sections" command.
12456 Mention generate-core-file command.
12458 2002-01-15 Michael Snyder <msnyder@redhat.com>
12460 * target.c: New command, "set trust-readonly-sections on".
12461 (do_xfer_memory): Honor the suggestion to trust readonly sections
12462 by reading them from the object file instead of from the target.
12463 (initialize_targets): Register command "set trust-readonly-sections".
12465 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12467 * parse.c (target_map_name_to_register): Simplify, search regs and
12468 pseudo-regs using a single loop.
12470 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12472 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12474 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12476 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12477 * config/i386/i386v42mp.mh: Add i387-nat.o .
12478 * i386v4-nat.c: Include i387-nat.h.
12479 (supply_fpregset): Use i387_supply_fsave.
12480 (fill_fpregset): Use i387_fill_fsave.
12482 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12484 * arm-tdep.c (arm_call_dummy_words): Define.
12485 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12486 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12487 (CALL_DUMMY_WORDS): Define.
12488 (arm_call_dummy_words): Declare.
12489 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12490 (arm_linux_call_dummy_words): Declare.
12492 2002-01-30 Andreas Schwab <schwab@suse.de>
12494 * m68klinux-nat.c: Fix last change to use regcache_collect
12495 instead of referencing registers[] directly.
12497 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12499 * parse.c (target_map_name_to_register): Delete code wrapped in
12500 #ifdef REGISTER_NAME_ALIAS_HOOK.
12502 2002-01-28 Michael Snyder <msnyder@redhat.com>
12504 * regcache.c (legacy_read_register_gen): Need to be able to
12505 read pseudo-register as well as real register.
12506 (legacy_write_register_gen): Ditto.
12508 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12510 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12511 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12512 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12513 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12514 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12515 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12516 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12517 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12518 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12519 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12520 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12521 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12522 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12523 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12524 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12525 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12526 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12527 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12528 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12529 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12531 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12533 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12534 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12535 (initialize_current_architecture): Update target_byte_order using
12536 information from BFD.
12537 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12538 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12540 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12542 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12543 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12545 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12546 #ifdef INVALID_FLOAT.
12547 * infcmd.c (do_registers_info): Ditto.
12548 * values.c (unpack_double): Ditto. Add comment.
12550 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12551 already commented out.
12553 2002-01-26 Andreas Schwab <schwab@suse.de>
12555 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12556 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12557 registers and add support for PTRACE_GETREGS.
12559 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12561 GDB 5.1.1 released from 5.1 branch.
12562 * NEWS: Add 5.1.1 news.
12563 * README: Sync with 5.1 branch.
12565 2002-01-23 Fred Fish <fnf@redhat.com>
12567 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12568 stabstring on initial malloc. Reallocing will copy it for us,
12571 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12573 * Makefile.in (hpread_h): Delete.
12574 (HFILES_NO_SRCDIR): Remove hpread.h.
12575 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12576 (hpread.o): Update dependencies.
12577 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12579 * hp-psymtab-read.c: Remove file.
12580 * hp-symtab-read.c: Remove file.
12581 * hpread.h: Remove file.
12583 * hpread.c: Merge all contents of hp-psymtab-read.c,
12584 hp-symtab-read.c and hpread.h into this file, as it was prior to
12587 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12588 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12589 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12590 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12592 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12594 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12595 fill_gregset): Call gdbarch_tdep() just once, assign result to
12596 variable and use that, instead of calling the function several
12599 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12601 * configure.host: Accept sparcv9 as alias for sparc64.
12602 * configure.tgt: Likewise.
12604 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12606 * solib-aix5.c (build_so_list_from_mapfile)
12607 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12608 arguments is not reversed.
12609 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12610 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12612 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12614 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12615 modified version of obsolete sh_fetch_pseudo_register.
12616 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12617 (sh4_register_read): New function.
12618 (sh_pseudo_register_write): New function. Renamed and modified
12619 version of obsolete sh_store_pseudo_register.
12620 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12621 (sh4_register_write): New function.
12622 (sh_gdbarch_init): Remove setting of gdbarch function
12623 fetch_pseudo_register and store_pseudo_register. Remove setting of
12624 register_convert_to_raw, register_convert_to_virtual,
12625 register_convertible.
12626 (sh_sh4_register_convertible): Delete. No longer needed. All is
12627 taken care by architecture specific functions
12628 register_read/register_write.
12629 (sh_sh4_register_convert_to_virtual): Make static.
12630 (sh_sh4_register_convert_to_raw): Ditto.
12632 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12634 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12635 (floatformat_is_nan, floatformat_mantissa): Ditto.
12637 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12638 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12639 builtin_type_ieee_double_little,
12640 builtin_type_ieee_double_littlebyte_bigword,
12641 builtin_type_m68881_ext, builtin_type_i960_ext,
12642 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12643 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12644 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12645 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12647 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12649 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12650 parameter. Set frameless flag if it exists and depended of
12651 whether the scanned function is frameless or not.
12652 (xstormy16_skip_prologue): If function is frameless, return
12653 result of xstormy16_scan_prologue().
12654 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12657 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12659 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12660 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12661 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12662 sh_sh4_register_byte, sh_sh4_register_raw_size,
12663 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12664 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12665 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12666 sh_store_pseudo_register, sh_do_pseudo_register): Call
12667 gdbarch_tdep() just once, assign result to variable and use that,
12668 instead of calling the function several times.
12670 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12672 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12673 macros instead of LAST_FPU_CTRL_REGNUM.
12674 (store_register): Likewise.
12676 2002-01-21 Jim Blandy <jimb@redhat.com>
12678 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12679 is up-to-date before running the program, not just when a program
12682 2002-01-21 Fred Fish <fnf@redhat.com>
12684 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12685 when we have found all instructions we are looking for.
12687 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12689 * arm-tdep.c (arm_register_name): New function.
12690 (arm_registers_names): Make static.
12691 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12692 (arm_register_name): Declare.
12693 (REGISTER_NAME): Use it.
12695 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12696 Kevin Buettner <kevinb@redhat.com>
12698 Convert arm targets to new FRAME interface.
12699 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12700 (arm_frame_find_save_regs): Delete.
12701 (arm_frame_init_saved_regs): New.
12702 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12703 Allocate extra_info as required. Convert all uses of fsr.regs
12704 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12706 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12707 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12708 (check_prologue_cache, save_prologue_cache): Likewise.
12709 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12710 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12711 (FRAME_FIND_SAVED_REGS): Delete.
12712 (arm_frame_find_saved_regs): Delete prototype.
12713 (arm_frame_init_saved_regs): New prototype.
12714 (FRAME_INIT_SAVED_REGS): Define.
12716 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12718 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12720 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12722 From Jeff Law <law@redhat.com>:
12723 * infttrace.c: Include <sys/pstat.h>.
12724 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12725 exec file if the ttrace equivalent fails.
12727 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12729 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12730 (closeLogFile): Ditto.
12732 2002-01-20 Michael Chastain <mec@shout.net>
12734 * top.c (print_gdb_version): Bump copyright year to 2002.
12736 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12738 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12739 Zannoni and Eli Zaretskii.
12741 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12743 * buildsym.c: Update copyright years.
12744 * c-typeprint.c: Likewise.
12745 * dwarf2read.c: Likewise.
12746 * f-typeprint.c: Likewise.
12747 * gdbtypes.c: Likewise.
12748 * gdbtypes.h: Likewise.
12749 * hp-symtab-read.c: Likewise.
12750 * hpread.c: Likewise.
12751 * mdebugread.c: Likewise.
12752 * p-typeprint.c: Likewise.
12754 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12756 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12757 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12758 byte-order selectable.
12759 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12760 * arch-utils.c: Ditto.
12761 (set_endian): Ditto.
12762 (set_endian_from_file): Ditto.
12763 * gdbserver/low-sim.c (create_inferior): Ditto.
12764 * gdbarch.sh: Ditto.
12765 * gdbarch.h: Re-generate.
12766 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12767 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12768 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12769 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12770 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12771 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12772 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12773 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12775 * config/mips/tm-wince.h: Remove #undef of macro
12776 TARGET_BYTE_ORDER_SELECTABLE.
12777 * config/sh/tm-wince.h: Ditto.
12779 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12781 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12782 member function fields. Add accessor macro
12783 TYPE_FN_FIELD_ARTIFICIAL.
12784 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12785 * c-typeprint.c (c_type_print_base): Skip artificial member
12788 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12790 * f-typeprint.c: Delete unused function f_type_print_args.
12791 * p-typeprint.c: Delete unused function pascal_type_print_args.
12793 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12795 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12796 comment. Add ``artificial'' to ``union field_location''.
12798 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12800 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12801 * mdebugread.c (parse_symbol): Likewise.
12802 * stabsread.c (define_symbol): Likewise.
12803 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12804 initializing TYPE_FIELD_BITPOS to n (obsolete).
12805 (hpread_doc_function_type): Likewise.
12806 * hpread.c (hpread_function_type): Likewise.
12808 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12810 * configure.in (host_makefile_frag): Only require a host makefile
12811 fragment when a native build.
12812 * configure: Re-generate.
12814 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12816 * doublest.h (floatformat_from_type): Declare.
12817 * doublest.c (floatformat_from_type): New function.
12818 (convert_typed_floating): Use.
12820 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12821 call to function floatformat_from_type.
12823 * gdbarch.sh (IEEE_FLOAT): Delete.
12824 * gdbarch.h, gdbarch.c: Re-generate.
12825 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12826 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12827 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12828 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12829 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12830 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12831 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12832 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12833 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12834 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12835 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12836 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12838 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12839 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12840 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12841 * sh-tdep.c (sh_gdbarch_init): Ditto.
12842 * mips-tdep.c (mips_gdbarch_init): Ditto.
12843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12844 * cris-tdep.c (cris_gdbarch_init): Ditto.
12846 2002-01-20 Jiri Smid <smid@suse.cz>
12848 * configure.host, configure.tgt: Support x86-64.
12849 * NEWS: Note new target x86-64.
12851 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12852 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12853 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12854 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12855 x86-64-linux-nat.o): Fix dependencies.
12857 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12859 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12860 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12861 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12862 * config/sparc/xm-sun4os4.h: Delete file.
12863 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12865 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12867 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12868 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12869 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12870 * config/i386/i386lynx.mh (XM_FILE): Delete.
12871 * config/rs6000/xm-rs6000ly.h: Delete file.
12872 * config/sparc/xm-sparclynx.h: Delete file.
12873 * config/m68k/xm-m68klynx.h: Delete file.
12874 * config/i386/xm-i386lynx.h: Delete file.
12875 * config/xm-lynx.h: Delete file.
12876 * config/djgpp/fnchange.lst: Update.
12878 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12880 * alpha-tdep.c (alpha_register_byte): New function.
12881 (alpha_register_raw_size): Ditto.
12882 (alpha_register_virtual_size): Ditto.
12883 (alpha_skip_prologue_internal): Renamed from
12884 alpha_skip_prologue.
12885 (alpha_skip_prologue): New version that calls
12886 alpha_skip_prologue_internal.
12887 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12888 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12889 second argument from alpha_skip_prologue.
12890 (REGISTER_BYTE): Use alpha_register_byte.
12891 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12892 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12893 (FRAMELESS_FUNCTION_INVOCATION): Use
12894 generic_frameless_function_invocation_not.
12895 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12896 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12898 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12900 * config/mips/xm-news-mips.h: Delete file.
12901 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12903 * config/m88k/xm-m88k.h: Delete file.
12904 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12905 * config/m88k/xm-delta88v4.h: Ditto.
12906 * config/m88k/xm-delta88.h: Ditto.
12908 * config/alpha/xm-fbsd.h: Delete file.
12909 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12911 * config/sparc/xm-sparc.h: Delete file.
12912 * Makefile.in (xm-sun4os4.h): Delete dependency.
12913 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12914 * config/sparc/xm-sun4os4.h: Ditto.
12915 * config/sparc/xm-linux.h: Ditto.
12917 * config/i386/xm-windows.h: Delete file.
12919 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12921 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12922 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12924 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12926 * alpha-tdep.c (alpha_call_dummy_words): New.
12927 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12928 (CALL_DUMMY_P): Define.
12929 (CALL_DUMMY_WORDS): Define.
12930 (SIZEOF_CALL_DUMMY_WORDS): Define.
12932 2002-01-19 Per Bothner <per@bothner.com>
12934 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12935 isn't NULL, which can happen with some gcj-3.x-produced code.
12937 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12939 * alpha-tdep.c (alpha_register_virtual_type): New function.
12940 (alpha_init_frame_pc_first): Ditto.
12941 (alpha_fix_call_dummy): Ditto.
12942 (alpha_store_struct_return): Ditto.
12943 (alpha_extract_struct_value_address): Ditto.
12944 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12945 alpha_register_virtual_type.
12946 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12947 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12948 alpha_extract_struct_value_address.
12949 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12950 (INIT_FRAME_PC): Use init_frame_pc_noop.
12951 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12953 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12955 * i386gnu-nat.c: Include "i386-tdep.h".
12956 (fetch_fpregs): Simplify code dealing with uninitialized floating
12957 point states such that it doesn't require FP7_REGNUM.
12959 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12961 * alpha-tdep.c (frame_extra_info): New.
12962 (alpha_find_saved_regs): Make static. Use
12964 (alpha_frame_init_saved_regs): New function.
12965 (alpha_frame_saved_pc): Use frame->extra_info.
12966 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12967 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12968 (init_extra_frame_info): Rename to...
12969 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12970 (alpha_print_extra_frame_info): New function.
12971 (alpha_frame_locals_address): Ditto.
12972 (alpha_frame_args_address): Ditto.
12973 (alpha_pop_frame): Use frame->extra_info.
12974 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12975 alpha_frame_args_address.
12976 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12977 (alpha_find_saved_regs): Remove prototype.
12978 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12979 (EXTRA_FRAME_INFO): Remove.
12980 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12981 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12983 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12985 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12986 (alpha_cannot_fetch_register): Ditto.
12987 (alpha_cannot_store_register): Ditto.
12988 (alpha_register_convertible): Ditto.
12989 (alpha_use_struct_convention): Ditto.
12990 * config/alpha/tm-alpha.h: Update copyright years.
12991 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12992 (INNER_THAN): Use core_addr_lessthan.
12993 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12994 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12995 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12996 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12997 (FRAME_CHAIN): Remove unnecessary cast.
12999 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13001 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13004 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13006 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13007 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13008 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13009 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13010 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13011 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13012 * x86-64-linux-nat.c: Ditto.
13014 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13016 * alpha-tdep.c (alpha_register_name): New function.
13017 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13018 (REGISTER_NAME): Define.
13020 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13022 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13024 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13026 * alpha-tdep.c: Update copyright years.
13027 (alpha_next_pc): New function.
13028 (alpha_software_single_step): Ditto.
13029 * config/alpha/tm-alpha.h: Add prototype for
13030 alpha_software_single_step.
13032 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13034 * alphabsd-nat.c: Update copyright years.
13035 (fill_gregset): Use regcache_collect.
13036 (fill_fpregset): Likewise.
13037 (fetch_inferior_registers): Only fetch integer registers
13038 if requested to do so.
13039 (store_inferior_registers): Only store integer registers
13040 if requested to do so.
13042 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13044 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13045 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13046 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13047 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13048 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13049 * config/arm/linux.mh (XDEPFILES): Delete.
13050 * config/arm/nbsd.mh (XDEPFILES): Delete.
13051 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13052 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13053 * config/i386/i386m3.mh (XDEPFILES): Delete.
13054 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13055 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13056 * config/i386/fbsd.mh (XDEPFILES): Delete.
13057 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13058 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13059 * config/i386/i386v4.mh (XDEPFILES): Delete.
13060 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13061 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13062 * config/i386/i386aix.mh (XDEPFILES): Delete.
13063 * config/i386/go32.mh (XDEPFILES): Delete.
13064 * config/i386/cygwin.mh (XDEPFILES): Delete.
13065 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13066 * config/i386/i386mach.mh (XDEPFILES): Delete.
13067 * config/i386/i386v32.mh (XDEPFILES): Delete.
13068 * config/i386/linux.mh (XDEPFILES): Delete.
13069 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13070 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13071 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13072 * config/i386/i386sco.mh (XDEPFILES): Delete.
13073 * config/i386/i386v.mh (XDEPFILES): Delete.
13074 * config/i386/nbsd.mh (XDEPFILES): Delete.
13075 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13076 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13077 * config/i386/symmetry.mh (XDEPFILES): Delete.
13078 * config/i386/obsd.mh (XDEPFILES): Delete.
13079 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13080 * config/ia64/linux.mh (XDEPFILES): Delete.
13081 * config/ia64/aix.mh (XDEPFILES): Delete.
13082 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13083 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13084 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13085 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13086 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13087 * config/m68k/linux.mh (XDEPFILES): Delete.
13088 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13089 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13090 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13091 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13092 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13093 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13094 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13095 * config/m88k/delta88.mh (XDEPFILES): Delete.
13096 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13097 * config/m88k/m88k.mh (XDEPFILES): Delete.
13098 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13099 * config/mips/linux.mh (XDEPFILES): Delete.
13100 * config/mips/irix6.mh (XDEPFILES): Delete.
13101 * config/mips/irix5.mh (XDEPFILES): Delete.
13102 * config/mips/irix4.mh (XDEPFILES): Delete.
13103 * config/mips/irix3.mh (XDEPFILES): Delete.
13104 * config/mips/decstation.mh (XDEPFILES): Delete.
13105 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13106 (NATDEPFILES): Move core-aout.o to here.
13107 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13108 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13109 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13110 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13111 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13112 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13113 * config/pa/hpux11.mh (XDEPFILES): Delete.
13114 * config/powerpc/aix.mh (XDEPFILES): Delete.
13115 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13116 * config/powerpc/linux.mh (XDEPFILES): Delete.
13117 * config/romp/rtbsd.mh: Rename XDEPFILES.
13118 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13119 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13120 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13121 * config/s390/s390.mh (XDEPFILES): Delete.
13122 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13123 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13124 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13125 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13126 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13127 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13128 * config/sparc/linux.mh (XDEPFILES): Delete.
13129 * config/vax/vaxult.mh (XDEPFILES): Delete.
13130 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13131 * Makefile.in (DEPFILES): Remove XDEPFILES.
13133 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13135 * utils.c (internal_verror): Fix comments, default is yes not no.
13136 Update queries to match. Default to quit and dump core.
13138 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13140 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13142 * defs.h, event-top.c, gdbcmd.h: Ditto.
13143 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13144 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13145 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13146 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13147 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13148 * mi/mi-main.c:Ditto.
13150 * stack.c, symfile.c: Update copyright.
13152 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13154 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13155 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13156 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13157 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13159 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13161 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13162 * gdbserver/low-lynx.c (myattach): Likewise.
13163 * gdbserver/low-nbsd.c (myattach): Likewise.
13164 * gdbserver/low-sim.c (myattach): Likewise.
13165 * gdbserver/low-sparc.c (myattach): Likewise.
13166 * gdbserver/low-sun3.c (myattach): Likewise.
13168 * gdbserver/low-linux.c (myattach): New function.
13170 * gdbserver/server.c (attach_inferior): New function.
13171 (main): Handle "--attach".
13173 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13175 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13178 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13180 * c-typeprint.c (is_type_conversion_operator): Add additional
13181 check for non-conversion operators.
13183 2002-01-15 Michael Snyder <msnyder@redhat.com>
13185 * linux-proc.c: Add "info proc" command, a la procfs.c.
13186 (read_mapping): New function, abstract and re-use code.
13187 (linux_find_memory_regions): Use new func read_mapping.
13188 (linux_info_proc_cmd): New function, implement "info proc".
13189 (_initialize_linux_proc): Add new command "info proc".
13191 2002-01-15 Michael Snyder <msnyder@redhat.com>
13193 * symfile.c (generic_load): Use bfd_map_over_sections method
13194 instead of manipulating bfd structure members directly.
13195 (add_section_size_callback): New function, bfd sections callback
13196 used by generic_load.
13197 (load_sections_callback): New function, bfd sections callback
13198 used by generic_load.
13200 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13202 [Based on work by Jim Blandy]
13203 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13204 (builtin_type_vec128): Export.
13205 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13207 (builtin_type_vec128): New builtin type for 128 bit vector
13209 (build_gdbtypes): Initialize builtin_type_v16qi and
13210 builtin_type_v8hi. Create the vec128 register builtin type
13212 (build_builtin_type_vec128): New function.
13213 (_initialize_gdbtypes): Register builtin_type_v16qi and
13214 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13215 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13216 AltiVec register to new builtin type.
13218 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13220 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13223 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13225 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13226 CLEAN_UP_REGISTER_VALUE.
13227 * regcache.c (supply_register): Update only call.
13229 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13231 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13232 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13233 a29k-*-vxworks* targets as obsolete.
13235 2002-01-14 Michael Snyder <msnyder@redhat.com>
13237 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13238 until we can resolve portability issues.
13239 * gregset.h: Remove references to fpxregs.
13240 * gcore.c (gcore_command): Initialize note_sec to NULL.
13242 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13244 * signals.c (target_signal_to_name): Rewrite. Only use
13245 signals[].name when in bounds and non-NULL.
13247 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13249 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13250 * signals.c (target_signal_to_name): Verify that SIG is within the
13251 bounds of the signals array.
13253 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13255 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13257 2002-01-13 Keith Seitz <keiths@redhat.com>
13259 * stack.c (print_frame_info_base): Print the frame's pc
13260 only if when print_frame_info_listing_hook is not defined.
13262 2002-01-13 Keith Seitz <keiths@redhat.com>
13264 * varobj.c (varobj_set_value): Make sure that there were no
13265 errors evaluating the object before attempting to set its
13267 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13268 so this offset adjustment is no longer necessary.
13269 (create_child): Don't set the error flag if the child is
13270 a CPLUS_FAKE_CHILD.
13271 (value_of_child): If value_fetch_lazy fails, return NULL
13272 so that callers will be notified that an error occurred.
13273 (c_value_of_variable): Delay check of variable's validity
13274 until later. We actually want all structs and unions to have
13276 Do not return "???" for variables which could not be evaluated.
13277 This error condition must be returned to the caller so that it
13278 can get the error condition from gdb.
13279 (cplus_name_of_child): Adjust index for vptr before figuring
13280 out the name of the child.
13281 (cplus_value_of_child): If a child's (real) parent is not valid,
13282 don't even bother trying to give a value for it. Just return
13283 an error. Change all instances in this function.
13284 (cplus_type_of_child): If our parent is one of the "fake"
13285 parents, we need to get at the type of the real parent, and
13286 derive the child's true type using this information.
13288 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13290 From 2002-01-09 John Marshall <johnm@falch.net>:
13291 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13292 sources.redhat.com, and tweak some related URLs which had
13293 suffered from linkrot.
13295 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13298 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13299 structures passed in registers.
13301 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13303 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13304 white space which prevented compilation. Reported by DSK
13305 <dsk@student.unsw.edu.au>.
13307 2002-01-11 Michael Snyder <msnyder@redhat.com>
13309 * symfile.c (build_section_addr_info_from_section_tab):
13310 Use bfd access method instead of manipulating bfd directly.
13311 (syms_from_objfile): Ditto.
13312 (simple_overlay_update_1): Ditto.
13313 (simple_overlay_update): Ditto.
13314 (generic_load): Ditto.
13315 (overlay_unmapped_address): FIXME comment, bfd access methods.
13316 (sections_overlap): FIXME comment, bfd access methods.
13317 (pc_in_mapped_range): FIXME comment, bfd access methods.
13318 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13319 (section_is_mapped): FIXME comment, bfd access methods.
13320 (section_is_overlay): FIXME comment, bfd access methods.
13322 * symfile.c (generic_load): Whitespace and long line cleanups.
13323 Remove duplicate variable, change several local variables to
13324 more appropriate data types.
13325 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13327 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13329 From Peter Schauer:
13330 * language.c (longest_local_hex_string_custom): Use phex_nz to
13331 convert NUM to a hex string.
13333 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13335 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13337 Update Copyright year.
13339 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13341 * language.c (longest_raw_hex_string): Delete unused function.
13343 2002-01-11 Petr Sorfa <petrs@caldera.com>
13345 * MAINTAINERS (write-after-approval): Add myself.
13346 * dwarf2read.c (read_tag_string_type): Handling of
13348 (read_tag_string_type): FORTRAN fix to prevent propagation of
13350 (set_cu_language): Handling of DW_LANG_Fortran95
13352 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13354 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13355 GETPID(inferior_ptid).
13356 (store_inferior_registers): Likewise.
13358 2002-01-10 Jason Merrill <jason@redhat.com>
13360 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13363 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13365 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13366 and bfd/elf32-sh-nbsd.c.
13368 2002-01-10 Michael Snyder <msnyder@redhat.com>
13370 * NEWS: Mention --pid and corefile/proc-id behavior change.
13372 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13373 * gcore.c: Include cli/cli-decode.h instead of command.h.
13375 * main.c (captured_main): Add new command line option "--pid".
13376 If the second command line argument (following the symbol-file)
13377 begins with a digit, try to attach to it before trying to open
13379 (print_gdb_help): Document the "--pid" argument.
13381 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13383 * completer.c (command_completer): New function.
13385 * completer.h <command_completer>: Add prototype.
13387 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13388 completer for the "help" command.
13390 2002-01-09 Jason Merrill <jason@redhat.com>
13392 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13394 2002-01-09 Michael Snyder <msnyder@redhat.com>
13396 * i386-linux-nat.c (fill_fpxregset): Make global.
13397 (store_fpxregset): Ditto.
13399 * gregset.h (gdb_fpxregset_t): Define.
13400 (supply_fpxregset): Prototype.
13401 (fill_fpxregset): Prototype.
13403 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13405 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13407 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13408 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13409 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13411 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13413 * MAINTAINERS: Update target maintainer rules so that any
13414 Maintainer can approve a tested patch for a maintenance-only
13417 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13419 * MAINTAINERS (write-after-approval): Add myself.
13421 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13424 2002-01-08 Michael Snyder <msnyder@redhat.com>
13426 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13427 real name of the executable, rather than the /proc name.
13429 2002-01-03 Michael Snyder <msnyder@redhat.com>
13431 Implement a "generate-core-file" command in gdb, save target state.
13432 * gcore.c: New file. Implement new command 'generate-core-file'.
13433 Save a corefile image of the current state of the inferior.
13434 * linux-proc.c: Add linux-specific code for saving corefiles.
13435 * target.h (struct target_ops): Add new target vectors for saving
13436 corefiles; to_find_memory_regions and to_make_corefile_notes.
13437 (target_find_memory_regions): New macro.
13438 (target_make_corefile_notes): New macro.
13439 * target.c (update_current_target): Inherit new target methods.
13440 (dummy_find_memory_regions): New place-holder method.
13441 (dummy_make_corefile_notes): New place-holder method.
13442 (init_dummy_target): Initialize new dummy target vectors.
13443 * exec.c (exec_set_find_memory_regions): New function.
13444 Allow the exec_ops vector for memory regions to be taken over.
13445 (exec_make_note_section): New function, target vector method.
13446 * defs.h (exec_set_find_memory_regions): Export prototype.
13447 * procfs.c (proc_find_memory_regions): New function, corefile method.
13448 (procfs_make_note_section): New function, corefile method.
13449 (init_procfs_ops): Set new target vector pointers.
13450 (find_memory_regions_callback): New function.
13451 (procfs_do_thread_registers): New function.
13452 (procfs_corefile_thread_callback): New function.
13453 * sol-thread.c (sol_find_memory_regions): New function.
13454 (sol_make_note_section): New function.
13455 (init_sol_thread_ops): Initialize new target vectors.
13456 * inftarg.c (inftarg_set_find_memory_regions): New function.
13457 Allow to_find_memory_regions vector to be taken over.
13458 (inftarg_set_make_corefile_notes): New function.
13459 Allow to_make_corefile_notes vector to be taken over.
13460 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13461 interface layer if not target_has_execution (may be a corefile).
13462 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13463 * config/sparc/sun4sol2.mh: Ditto.
13464 * config/alpha/alpha-linux.mh: Ditto.
13465 * config/arm/linux.mh: Ditto.
13466 * config/i386/x86-64linux.mh: Ditto.
13467 * config/ia64/linux.mh: Ditto.
13468 * config/m68k/linux.mh: Ditto.
13469 * config/mips/linux.mh: Ditto.
13470 * config/powerpc/linux.mh: Ditto.
13471 * config/sparc/linux.mh: Ditto.
13473 2002-01-07 Michael Snyder <msnyder@redhat.com>
13475 * arm-linux-nat.c: Remove references to regcache.c internal data
13476 (registers[] and register_valid[]).
13478 2002-01-07 Michael Snyder <msnyder@redhat.com>
13480 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13481 so that attaching to a pid will automatically read the process's
13482 symbol file and shlibs.
13483 * Makefile.in: Add rule for linux-proc.o.
13484 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13485 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13486 * config/arm/linux.mh: Ditto.
13487 * config/i386/linux.mh: Ditto.
13488 * config/i386/x86-64linux.mh: Ditto.
13489 * config/ia64/linux.mh: Ditto.
13490 * config/m68k/linux.mh: Ditto.
13491 * config/mips/linux.mh: Ditto.
13492 * config/powerpc/linux.mh: Ditto.
13493 * config/sparc/linux.mh: Ditto.
13495 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13497 * win32-nat.c: Add i386-tdep.h dependency.
13499 2002-01-07 Michael Snyder <msnyder@redhat.com>
13501 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13502 instead of bfd_get_arch_size. Don't bail out just because
13503 there's no exec_bfd.
13505 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13506 * p-valprint.c (pascal_object_print_value): Ditto.
13507 * somread.c (som_symtab_read): Ditto.
13508 * symfile.c (simple_free_overlay_region_table): Ditto.
13509 * valops.c (value_assign): Ditto.
13511 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13512 use tilde_expand and strerror for opening save-tracepoints file.
13514 * thread-db.c (thread_db_new_objfile): Indendation fix.
13516 * infptrace.c (GDB_MAX_ALLOCA): New define.
13517 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13518 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13519 can be overridden with whatever value is appropriate to the host).
13520 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13521 alloca to allocate potentially large buffer.
13522 * rs6000-nat.c (child_xfer_memory): Ditto.
13523 * symm-nat.c (child_xfer_memory): Ditto.
13524 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13526 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13528 From Nick Clifton <nickc@redhat.com>
13529 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13531 2002-01-07 Michael Snyder <msnyder@redhat.com>
13533 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13534 Don't use exec_bfd if it's NULL.
13536 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13538 * valops.c (value_arg_coerce): Fix formatting.
13540 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13542 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13543 * gnu-nat.c: Ditto.
13545 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13547 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13548 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13549 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13550 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13551 z8k-coff have not been multi-arched. Update z8k-coff build
13554 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13556 * MAINTAINERS: Mark a29k target as obsolete.
13557 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13558 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13560 * NEWS: Note that a29k targets are obsolete.
13561 * a29k-tdep.c: Mark as obsolete.
13562 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13563 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13564 a29k-*-vxworks* targets as obsolete.
13565 * remote-adapt.c: Obsolete.
13566 * remote-eb.c: Obsolete.
13567 * remote-mm.c: Obsolete.
13568 * remote-udi.c: Obsolete.
13569 * config/a29k/a29k-udi.mt: Obsolete.
13570 * config/a29k/a29k.mt: Obsolete.
13571 * config/a29k/tm-a29k.h: Obsolete.
13572 * config/a29k/tm-vx29k.h: Obsolete.
13573 * config/a29k/vx29k.mt: Obsolete.
13575 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13577 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13578 with BFD_ENDIAN_BIG.
13580 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13582 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13583 * configure, config.in: Re-generate.
13584 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13585 * defs.h: Do not include <endian.h>.
13587 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13589 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13590 * config.in: Regenerate.
13591 * configure.in: Update copyright years.
13592 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13593 * configure: Regenerate.
13594 * i386bsd-nat.c: Update copyright years.
13595 (fill_gregset): Use regcache_collect.
13596 (fetch_inferior_registers): Only fetch integer registers
13597 if requested to do so. Add support for XMM registers
13598 using PT_GETXMMREGS.
13599 (store_inferior_registers): Only store integer registers
13600 if requested to do so. Add support for XMM registers
13601 using PT_SETXMMREGS.
13602 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13603 (store_inferior_registers): Remove.
13604 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13605 (fetch_elfcore_registers): New function.
13606 (i386nbsd_elfcore_fns): New.
13607 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13608 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13610 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13611 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13612 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13613 * config/i386/tm-nbsd.h: Update copyright years.
13614 (HAVE_SSE_REGS): Define.
13615 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13616 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13617 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13618 (SIGCONTEXT_PC_OFFSET): Remove.
13619 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13621 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13623 * configure.tgt: Remove powerpc-*-macos* target.
13624 * config/m68k/xm-mpw.h: Delete file.
13625 * config/xm-mpw.h: Delete file.
13626 * ser-mac.c: Delete file.
13627 * mpw-make.sed: Delete file.
13628 * mpw-config.in: Delete file.
13629 * mac-xdep.c: Delete file.
13630 * mac-gdb.r: Delete file.
13631 * mac-defs.h: Delete file.
13632 * mac-nat.c: Delete file.
13633 * config/powerpc/macos.mh: Delete file.
13634 * config/powerpc/macos.mt: Delete file.
13635 * config/powerpc/nm-macos.h: Delete file.
13636 * config/powerpc/tm-macos.h: Delete file.
13637 * source.c (openp, open_source_file): Remove obsolete code.
13638 * top.c (gdb_readline): Ditto.
13639 * utils.c (query): Ditto.
13640 * event-top.c (display_gdb_prompt): Ditto.
13641 * Makefile.in (ser-mac.o): Delete obsolete target.
13644 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13646 * defs.h (BIG_ENDIAN): Delete macro definition.
13647 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13648 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13649 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13650 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13651 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13652 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13653 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13654 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13655 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13656 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13657 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13658 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13659 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13660 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13661 * gdbarch.c: Re-generate.
13663 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13665 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13668 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13670 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13672 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13674 * value.h (value_ptr): Delete typedef.
13676 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13678 * i386nbsd-nat.c: Update copyright years.
13679 Include i386-tdep.h.
13681 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13683 * stabsread.c: Update copyright years.
13685 From Debashis Mahata <debashis.mahata@wipro.com>:
13686 (read_struct_fields): Deal with Sun C compiler erroneous stab
13687 output for structs and unions.
13690 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13692 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13695 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13697 * cp-abi.c: Fix whitespace.
13698 (baseclass_offset): New wrapper function.
13699 * cp-abi.h (baseclass_offset): Add prototype.
13700 (struct cp_abi_ops): Add baseclass_offset pointer.
13702 * valops.c (vb_match): Move to...
13703 * gnu-v2-abi.c (vb_match): here.
13704 * valops.c (baseclass_offset): Move to...
13705 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13707 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13709 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13710 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13711 * hpacc-abi.c (init_hpacc_ops): Likewise.
13713 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13715 * valops.c (find_overload_match): Accept obj as a
13716 reference parameter. Update it before returning.
13717 * value.h (find_overload_match): Update prototype.
13718 * eval.c (evaluate_subexp_standard): Pass object to
13719 find_overload_match by reference.
13721 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13723 * valarith.c: Replace value_ptr with struct value pointer. Remove
13724 register attribute from value declarations.
13727 * scm-lang.c (scm_lookup_name): Ditto.
13729 2002-01-03 Michael Snyder <msnyder@redhat.com>
13731 Abstract the functionality of iterating over mapped memory
13732 regions into a general purpose iterator function.
13733 * procfs.c (iterate_over_mappings): New function, general purpose
13734 iterator for memory sections.
13735 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13736 (solib_mappings_callback): New function, callback for above.
13737 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13738 (info_mappings_callback): New function, callback for above.
13740 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13742 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13744 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13745 * i386-tdep.c: Include "elf-bfd.h".
13746 (process_note_abi_tag_sections): New function.
13747 (i386_gdbarch_init): Add code to recognize various OS/ABI
13750 * maint.c (_initialize_maint_cmds): Add missing \ in
13753 For older changes see ChangeLog-2001
13759 version-control: never