1 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
3 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
4 (m68hc11_register_byte): Remove.
5 (m68hc11_gdbarch_init): Don't set the above.
7 2002-11-29 Andrew Cagney <cagney@redhat.com>
9 * remote-mips.c (mips_initialize): Force a selected frame rebuild
10 by calling get_selected_frame.
11 * ocd.c (ocd_start_remote): Use get_selected frame instead of
12 set_current_frame, create_new_frame, select_frame and
14 * remote-e7000.c (e7000_start_remote): Ditto.
15 * remote-mips.c (common_open): Ditto
16 * remote-rdp.c (remote_rdp_open): Ditto.
18 2002-11-29 Andreas Schwab <schwab@suse.de>
20 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
21 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
22 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
23 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
24 read_memory_unsigned_integer instead of read_memory_integer when
25 dealing with addresses and instruction opcodes.
26 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
27 (m68k_linux_frame_saved_pc): Likewise.
29 2002-11-29 Andrew Cagney <ac131313@redhat.com>
31 * stack.c (selected_frame, select_frame): Move from here ...
32 * frame.c (selected_frame, select_frame): ... to here. Include
34 * Makefile.in (frame.o): Update dependencies.
35 * frame.c (get_selected_frame): New function.
36 * frame.h (get_selected_frame): Declare.
37 (deprecated_selected_frame): Rename selected_frame.
38 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
39 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
40 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
41 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
42 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
43 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
44 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
45 * z8k-tdep.c, cli/cli-cmds.c: Update.
47 2002-11-29 Andrew Cagney <ac131313@redhat.com>
49 * frame.h (get_selected_block): Add comments.
51 2002-11-28 Andrew Cagney <ac131313@redhat.com>
53 * frame.c (pc_notcurrent): New function.
54 (find_frame_sal): New function.
55 * frame.h (find_frame_sal): Declare.
56 (struct symtab_and_line): Add opaque declaration.
57 * stack.c (print_frame_info_base): Use find_frame_sal instead of
60 * ada-lang.c (find_printable_frame): Ditto.
62 2002-11-28 J. Brobecker <brobecker@gnat.com>
64 * configure.in: Check that the pthdebug library is recent enough
65 before enabling thread support on native AiX.
66 * configure: Regenerate.
68 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
69 from the list of object files as it is now appended by configure
70 if thread support is enabled.
71 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
72 if thread support is enabled.
74 2002-11-28 Andrew Cagney <cagney@redhat.com>
76 * stack.c (get_selected_block): In-line get_current_block.
77 * frame.h (get_current_block): Delete declaration.
78 * blockframe.c (get_current_block): Delete function.
80 2002-11-28 Andrew Cagney <ac131313@redhat.com>
82 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
83 USE_GENERIC_DUMMY_FRAMES.
84 * gdbarch.h, gdbarch.c: Regenerate.
85 * valops.c, frame.c: Update.
86 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
87 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
88 * config/pa/tm-hppa.h, blockframe.c: Update.
89 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
90 * m68k-tdep.c, alpha-tdep.c: Ditto.
92 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
95 2002-11-27 Andrew Cagney <ac131313@redhat.com>
97 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
98 (USE_GENERIC_DUMMY_FRAMES): Default to true.
99 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
100 * gdbarch.c, gdbarch.h: Re-generate.
101 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
102 (CALL_DUMMY_LOCATION): Delete macro definition.
103 (PC_IN_CALL_DUMMY): Delete macro definitions.
105 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
106 default is already generic_pc_in_call_dummy.
107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
108 * v850-tdep.c (v850_gdbarch_init): Ditto.
109 * sh-tdep.c (sh_gdbarch_init): Ditto.
110 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
111 * mips-tdep.c (mips_gdbarch_init): Ditto.
112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
114 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
115 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
116 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
117 * avr-tdep.c (avr_gdbarch_init): Ditto.
119 * arm-tdep.c (arm_gdbarch_init): Do not set
120 use_generic_dummy_frames, default is already 1.
121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
122 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
123 * v850-tdep.c (v850_gdbarch_init): Ditto.
124 * sh-tdep.c (sh_gdbarch_init): Ditto.
125 * s390-tdep.c (s390_gdbarch_init): Ditto.
126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
128 * mips-tdep.c (mips_gdbarch_init): Ditto.
129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
131 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
132 * i386-tdep.c (i386_gdbarch_init): Ditto.
133 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
134 * frv-tdep.c (frv_gdbarch_init): Ditto.
135 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
136 * cris-tdep.c (cris_gdbarch_init): Ditto.
137 * avr-tdep.c (avr_gdbarch_init): Ditto.
139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
140 call_dummy_location, default is already AT_ENTRY_POINT.
141 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
142 * v850-tdep.c (v850_gdbarch_init): Ditto.
143 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
144 * sh-tdep.c (sh_gdbarch_init): Ditto.
145 * s390-tdep.c (s390_gdbarch_init): Ditto.
146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
148 * mips-tdep.c (mips_gdbarch_init): Ditto.
149 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
151 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
152 * i386-tdep.c (i386_gdbarch_init): Ditto.
153 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
154 * frv-tdep.c (frv_gdbarch_init): Ditto.
155 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
156 * cris-tdep.c (cris_gdbarch_init): Ditto.
157 * avr-tdep.c (avr_gdbarch_init): Ditto.
158 * arm-tdep.c (arm_gdbarch_init): Ditto.
159 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
161 2002-11-28 Andrew Cagney <cagney@redhat.com>
163 * frame.h: Update comments on set_current_frame, create_new_frame,
164 flush_cached_frames, reinit_frame_cache, select_frame and
167 2002-11-27 Andrew Cagney <cagney@redhat.com>
169 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
170 deprecated pc_in_call_dummy function.
171 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
172 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
173 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
174 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
175 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
177 2002-11-26 Martin M. Hunt <hunt@redhat.com>
179 * Makefile.in: Remove Tix dependencies.
180 * acinclude.m4: Ditto.
182 * configure.in: Ditto.
183 * configure: Regenerated.
185 2002-11-26 Andrew Cagney <ac131313@redhat.com>
187 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
188 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
189 * gdbarch.c: Re-generate.
191 2002-11-26 Andrew Cagney <ac131313@redhat.com>
193 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
194 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
195 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
196 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
197 pc_in_call_dummy_at_entry_point.
198 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
199 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
200 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
201 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
202 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
203 pc_in_call_dummy_on_stack.
204 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
205 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
206 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
207 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
208 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
210 2002-11-26 Andrew Cagney <ac131313@redhat.com>
212 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
213 pc_in_call_dummy_before_text_end
214 (deprecated_pc_in_call_dummy_after_text_end): Rename
215 pc_in_call_dummy_after_text_end.
216 (deprecated_pc_in_call_dummy_on_stack): Rename
217 pc_in_call_dummy_on_stack.
218 (deprecated_pc_in_call_dummy_at_entry_point): Rename
219 pc_in_call_dummy_at_entry_point.
220 * m68k-tdep.c (m68k_gdbarch_init): Update.
221 * s390-tdep.c (s390_gdbarch_init): Update.
222 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
223 * vax-tdep.c (vax_gdbarch_init): Update.
224 * sparc-tdep.c (sparc_gdbarch_init): Update.
225 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
226 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
227 * i386-tdep.c (i386_gdbarch_init): Update.
228 * frv-tdep.c (frv_gdbarch_init): Update.
229 * cris-tdep.c (cris_gdbarch_init): Update.
230 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
231 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
232 (deprecated_pc_in_call_dummy_after_text_end)
233 (deprecated_pc_in_call_dummy_on_stack)
234 (deprecated_pc_in_call_dummy_at_entry_point): Update.
235 * alpha-tdep.c (alpha_gdbarch_init): Update.
237 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
239 * acconfig.h (HAVE_PREAD64): Add.
240 * configure.in: Check for pread64.
241 * config.in: Regenerated.
242 * configure: Regenerated.
243 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
244 * linux-proc.c (linux_proc_xfer_memory): New function.
245 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
247 2002-11-25 David Carlton <carlton@math.stanford.edu>
249 * dwarf2read.c (scan_partial_symbols): Descend into namespace
252 2002-11-25 Andrew Cagney <ac131313@redhat.com>
254 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
255 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
257 2002-11-25 Jim Blandy <jimb@redhat.com>
259 * symfile.c (init_objfile_sect_indices): New function.
260 (default_symfile_offsets): Move the section-index-initializing
261 stuff into init_objfile_sect_indices, and call that.
263 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
264 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
266 * symfile.c (syms_from_objfile): Adjust indentation.
268 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
269 || info_verbose isn't true.
271 2002-11-24 Andrew Cagney <ac131313@redhat.com>
273 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
274 default to get_frame_base.
275 * gdbarch.h, gdbarch.c: Regenerate.
276 * arch-utils.c (default_frame_address): Delete function.
277 * arch-utils.h (default_frame_address): Delete declaration
279 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
281 * varobj.c (find_frame_addr_in_frame_chain):
282 Use get_frame_base instead of FRAME_FP,
285 2002-11-19 Andrew Cagney <ac131313@redhat.com>
287 * frame.h (FRAME_FP): Delete macro.
288 (get_frame_base): New function declaration.
289 * frame.c (get_frame_base): New function.
290 (get_frame_id): Use ->frame.
291 (frame_find_by_id): Rewrite to use get_frame_id.
292 * blockframe.c: Use get_frame_base instead of FRAME_FP.
293 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
294 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
295 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
296 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
297 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
298 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
300 2002-11-24 Andrew Cagney <ac131313@redhat.com>
302 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
304 2002-11-24 Andrew Cagney <ac131313@redhat.com>
306 * frame.c (set_unwind_by_pc): Revert change below, use
308 (get_prev_frame): Ditto.
310 2002-11-24 Andrew Cagney <ac131313@redhat.com>
312 * dummy-frame.c (pc_in_dummy_frame): New function.
313 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
314 (find_dummy_frame): Update comment.
315 (generic_pop_current_frame): Use get_frame_type.
316 * dummy-frame.h (pc_in_dummy_frame): Declare.
317 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
318 (create_new_frame): Use pc_in_dummy_frame.
319 (get_prev_frame): Use pc_in_dummy_frame.
320 (frame_saved_regs_register_unwind): Use get_prev_frame.
321 (deprecated_generic_get_saved_register): Use get_prev_frame.
323 2002-11-23 Andrew Cagney <ac131313@redhat.com>
325 * blockframe.c (find_frame_addr_in_frame_chain): Move function
327 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
328 (varobj_create): Note that frame ID should be used.
329 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
331 2002-11-23 Andrew Cagney <ac131313@redhat.com>
333 * breakpoint.c: Include "gdb_assert.h".
334 (deprecated_frame_in_dummy): Assert that generic dummy frames are
336 * Makefile.in (breakpoint.o): Update dependencies.
337 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
338 deprecated_frame_in_dummy.
339 * stack.c (print_frame_info_base): Ditto.
341 (print_frame_info_base): Ditto. Delete dead code.
343 2002-11-23 Andreas Schwab <schwab@suse.de>
345 * Makefile.in (m68k_tdep_h): Define.
346 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
347 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
348 * m68k-tdep.c: Move register number enum ...
349 * m68k-tdep.h: ... to this new file and rename the constants from
350 E_* to M68K_*. All uses changed.
351 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
352 * abug-rom.c: Include "m68k-tdep.h". Use
353 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
354 * cpu32bug-rom.c: Likewise.
355 * dbug-rom.c: Likewise.
356 * m68k-tdep.c: Likewise.
357 * m68klinux-nat.c: Likewise.
358 * remote-est.c: Likewise.
359 * rom68k-rom.c: Likewise.
360 * config/m68k/tm-linux.h: Likewise.
362 2002-11-23 Andrew Cagney <ac131313@redhat.com>
364 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
365 dummy frame initialization code.
366 * mips-tdep.c (mips_gdbarch_init): Ditto.
368 2002-11-22 Christopher Faylor <cgf@redhat.com>
370 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
373 2002-11-22 Andrew Cagney <ac131313@redhat.com>
375 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
376 to default_frame_address.
377 * gdbarch.h, gdbarch.c: Re-generate.
379 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
380 or frame_locals_address to default_frame_address.
381 * m68k-tdep.c (m68k_gdbarch_init): Update.
382 * i386-tdep.c (i386_gdbarch_init): Update.
383 * frv-tdep.c (frv_gdbarch_init): Update.
384 * sh-tdep.c (sh_gdbarch_init): Update.
385 * v850-tdep.c (v850_gdbarch_init): Update.
386 * sparc-tdep.c (sparc_gdbarch_init): Update.
387 * mips-tdep.c (mips_gdbarch_init): Update.
388 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
389 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
392 * cris-tdep.c (cris_frame_args_address): Delete function.
393 (cris_frame_locals_address): Delete function.
394 (cris_gdbarch_init): Do not set frame_args_address or
395 frame_locals_address.
397 2002-11-22 Michael Snyder <msnyder@redhat.com>
399 * thread-db.c (thread_db_load): Tell the user what's going on
400 if dlopen fails on libthread_db.
402 2002-11-23 Andreas Schwab <schwab@suse.de>
404 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
405 invariant return values.
407 2002-11-22 Andreas Schwab <schwab@suse.de>
409 * valops.c (value_slice): Move declaration of `offset' to avoid
412 2002-11-22 Christopher Faylor <cgf@redhat.com>
414 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
415 (struct so_stuff): Add end_addr field.
416 (register_loaded_dll): Calculate and store end address of loaded dll.
417 (solib_address): New function.
418 (child_solib_loaded_library_pathname): Pass carefully constructed
419 section info to safe_symbol_file_add rather than ignoring it.
420 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
422 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
423 (child_create_inferior): Fix a compiler warning.
424 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
425 (solib_address): Declare new function.
427 2002-11-22 Andreas Schwab <schwab@suse.de>
429 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
432 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
434 * maint.c (_initialize_maint_cmds): Fix typo. From
435 Francesco Potorti` <pot@gnu.org>.
437 2002-11-21 Andrew Cagney <cagney@redhat.com>
439 * mips-tdep.c (mips_dump_tdep): Delete references to
440 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
441 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
442 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
443 * printcmd.c (build_address_symbolic): Delete calls to
444 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
445 (address_info): Ditto.
448 2002-11-19 Klee Dienes <kdienes@apple.com>
449 Adam Fedor <fedor@gnu.org>
451 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
452 the ability to explicitly specify the quote characters and word
453 break characters; if NULL is specified for either, use the old
454 behavior of using the characters used by the completer.
455 (skip_chars): New function. Convenience wrapper around
456 skip_quoted_chars to provide the original skip_chars behavior.
457 * completer.h (skip_quoted_chars): Add prototype.
459 2002-11-19 Andrew Cagney <ac131313@redhat.com>
461 Problems reported by Paul Eggert.
462 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
464 2002-11-19 Andreas Schwab <schwab@suse.de>
466 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
467 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
468 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
469 (m68k_linux_frame_saved_pc): Move to ...
470 * m68klinux-tdep.c: ... here. New file.
471 * Makefile.in (m68klinux-tdep.o): Add dependencies.
472 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
474 2002-11-19 Adam Fedor <fedor@gnu.org>
476 * objc-exp.y: Revert to old skip_quoted usage.
478 2002-11-19 Adam Fedor <fedor@gnu.org>
480 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
481 (objc_lang_h): Define.
482 (YYFILES): Add objc-exp.tab.c.
483 (local-maintainer-clean): Remove objc-exp.tab.c.
484 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
486 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
488 * p-exp.y (typecast rule): Add automatic dereference of
489 pascal classes if needed.
490 (THIS): Set current_type.
491 Automatically dereference pascal classes.
492 (typebase rule): Add ^typebase recognition.
494 2002-11-18 Adam Fedor <fedor@gnu.org>
496 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
497 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
498 (op_name): Handle OP_OBJC_SELF.
499 * Makefile.in (expprint.o): Add additional depends.
501 2002-11-18 Adam Fedor <fedor@gnu.org>
503 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
504 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
505 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
506 * objc-exp.y: Likewise.
508 2002-11-18 Adam Fedor <fedor@gnu.org>
510 * gdb/parser-defs.h: (struct objc_class_str): New structure
511 for parsing ObjC classes.
513 2002-11-18 Andrew Cagney <ac131313@redhat.com>
515 * stack.c (frame_relative_level): Copy function from here ...
516 * frame.c (frame_relative_level): ...to here.
518 2002-11-18 Andrew Cagney <ac131313@redhat.com>
520 * frame.h (enum frame_type): Define.
521 (get_frame_type): Declare.
522 (struct frame_info): Add field `type'. Delete field
523 signal_handler_caller.
524 (deprecated_set_frame_signal_handler_caller): Declare.
525 * frame.c (get_frame_type): New function.
526 (deprecated_set_frame_type): New function.
527 (create_new_frame): Set the frame's type.
528 (get_prev_frame): Similar.
529 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
530 * s390-tdep.c: Ditto.
531 * m68klinux-nat.c: Ditto.
532 * ns32k-tdep.c: Ditto.
533 * x86-64-linux-tdep.c: Ditto.
535 * rs6000-tdep.c: Ditto.
536 * ppc-linux-tdep.c: Ditto.
537 * i386-interix-tdep.c: Ditto.
538 * mips-tdep.c: Ditto.
539 * m68k-tdep.c: Ditto.
540 * hppa-tdep.c: Ditto.
541 * ia64-tdep.c: Ditto.
542 * cris-tdep.c: Ditto.
544 * alpha-tdep.c: Ditto.
545 * i386-tdep.c: Ditto.
548 * blockframe.c: Update.
549 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
550 deprecated_set_frame_type instead of signal_handler_caller.
551 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
552 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
553 * breakpoint.h: Delete FIXME suggesting get_frame_type.
555 2002-11-18 Klee Dienes <kdienes@apple.com>
557 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
559 2002-11-18 Klee Dienes <kdienes@apple.com>
561 * buildsym.c (pop_context): Add comment.
563 2002-11-18 Klee Dienes <kdienes@apple.com>
565 * buildsym.h (pop_context): Convert to function, defined in
567 * buildsym.c: Include gdb_assert.h.
568 (pop_context): Implement as C function. Add check for stack
570 * dbxread.c (process_one_symbol): Complain and stop processing
571 that symbol if we are already at the top of the context stack for
572 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
573 when processing N_RBRAC.
575 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
577 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
579 (struct target_waitstatus): Add opaque definition.
580 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
581 * exec.c (init_exec_ops): Likewise.
582 * fork-child.c (clone_and_follow_inferior): Remove.
583 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
584 * inferior.h (clone_and_follow_inferior): Remove prototype.
585 * infrun.c (follow_fork_mode_both): Remove.
586 (follow_fork_mode_kind_names): Remove commented out "both".
587 (follow_inferior_fork): Remove follow_fork_mode_both support.
588 * inftarg.c (child_clone_and_follow_inferior): Remove.
589 (child_post_follow_inferior_by_clone): Remove.
590 (init_child_ops): Don't set to_clone_and_follow_inferior
591 or to_post_follow_inferior_by_clone.
592 * target.c (default_clone_and_follow_inferior): Remove.
593 (cleanup_target): Don't set to_clone_and_follow_inferior
594 or to_post_follow_inferior_by_clone.
595 (find_default_clone_and_follow_inferior): Remove.
596 (init_dummy_target): Don't set to_clone_and_follow_inferior.
597 (debug_to_clone_and_follow_inferior): Remove.
598 (debug_to_post_follow_inferior_by_clone): Remove.
599 (setup_target_debug): Don't set to_clone_and_follow_inferior
600 or to_post_follow_inferior_by_clone.
601 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
602 and to_post_follow_inferior_by_clone.
603 (child_clone_and_follow_inferior): Remove prototype.
604 (child_post_follow_inferior_by_clone): Remove prototype.
605 (target_clone_and_follow_inferior): Remove macro.
606 (target_post_follow_inferior_by_clone): Remove macro.
607 (find_default_clone_and_follow_inferior): Remove prototype.
609 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
611 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
612 inferior_has_vforked, and inferior_has_execd instead of
613 target_has_forked, target_has_vforked, and target_has_execd.
614 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
615 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
616 (CHILD_WAIT): Define.
617 (child_wait): Add prototype.
618 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
620 (hpux_has_vforked): Likewise, from child_has_vforked.
621 (hpux_has_execd): Likewise, from child_has_execd.
622 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
623 (not_same_real_pid, child_wait): New, copied from inftarg.c.
624 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
625 and hpux_has_syscall_event instead of the target hooks.
626 * infrun.c (inferior_has_forked, inferior_has_vforked)
627 (inferior_has_execd): New functions.
628 * inftarg.c (not_same_real_pid): Remove.
629 (child_wait): Remove references to not_same_real_pid,
630 target_has_forked, target_has_vforked, target_has_execd,
631 and target_has_syscall_event.
632 (child_has_forked, child_has_vforked, child_has_execd)
633 (child_has_syscall_event): Remove.
634 (init_child_ops): Remove references to child_has_forked,
635 child_has_vforked, child_has_execd, and child_has_syscall_event.
636 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
637 (hpux_has_vforked): Likewise, from child_has_vforked.
638 (hpux_has_execd): Likewise, from child_has_execd.
639 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
640 * target.c (cleanup_target): Remove references to
641 to_has_forked, to_has_vforked, to_has_execd, and
642 to_has_syscall_event.
643 (update_current_target): Likewise.
644 (setup_target_debug): Likewise.
645 (debug_to_has_forked): Remove.
646 (debug_to_has_vforked): Remove.
647 (debug_to_has_execd): Remove.
648 (debug_to_has_syscall_event): Remove.
649 * target.h (struct target_ops): Remove to_has_forked.
650 to_has_vforked, to_has_execd, and to_has_syscall_event.
651 (child_has_forked, child_has_vforked, child_has_execd)
652 (child_has_syscall_event): Remove prototypes.
653 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
655 (target_has_forked, target_has_vforked, target_has_execd)
656 (target_has_syscall_event): Remove macros.
658 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
660 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
661 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
662 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
663 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
664 * target.c (cleanup_target): Remove reference to
665 to_can_follow_vfork_prior_to_exec.
666 (update_current_target): Likewise.
667 (debug_to_can_follow_vfork_prior_to_exec): Remove.
668 (setup_target_debug): Remove reference to
669 to_can_follow_vfork_prior_to_exec.
670 * target.h (struct target_ops): Remove
671 to_can_follow_vfork_prior_to_exec.
672 (child_can_follow_vfork_prior_to_exec): Remove prototype.
673 (target_can_follow_vfork_prior_to_exec): Remove definition.
674 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
676 * infrun.c (follow_vfork_when_exec): Remove.
677 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
678 (follow_exec): Likewise.
679 (handle_inferior_event): Likewise.
680 (keep_going): Likewise.
682 2002-11-15 Andrew Cagney <cagney@redhat.com>
684 * frame.c (generic_unwind_get_saved_register): Make static.
685 * frame.h (generic_unwind_get_saved_register): Delete declaration.
686 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
687 defaults to generic_unwind_get_saved_register.
688 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
689 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
690 * frv-tdep.c (frv_gdbarch_init): Ditto.
691 * i386-tdep.c (i386_gdbarch_init): Ditto.
692 * s390-tdep.c (s390_gdbarch_init): Ditto.
693 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
694 * v850-tdep.c (v850_gdbarch_init): Ditto.
695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
696 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
697 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
699 2002-11-15 Andrew Cagney <cagney@redhat.com>
701 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
704 2002-11-15 Andrew Cagney <cagney@redhat.com>
706 * frame.h (sigtramp_saved_pc): Delete declaration.
707 * blockframe.c (sigtramp_saved_pc): Delete function.
708 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
709 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
710 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
711 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
713 2002-11-15 Andrew Cagney <ac131313@redhat.com>
715 * frame.c (frame_pc_unwind): New function.
716 (frame_saved_regs_pc_unwind): New function.
717 (frame_register_unwind): Pass unwind_cache instead of
718 register_unwind_cache.
719 (set_unwind_by_pc): Add unwind_pc parameter, set.
720 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
721 (get_prev_frame): Ditto.
722 * frame.h (frame_pc_unwind_ftype): Declare.
723 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
724 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
725 (frame_pc_unwind): Declare.
726 * dummy-frame.c (dummy_frame_pc_unwind): New function.
727 (struct dummy_frame): Add comment mentioning that values are for
729 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
730 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
731 (generic_file_frame_chain_valid): Ditto.
732 * stack.c (frame_info): Ditto.
734 2002-11-15 David Carlton <carlton@math.stanford.edu>
736 * linespec.c (locate_first_half): New function.
737 (decode_line_1): Move code into locate_first_half.
739 2002-11-15 Andrew Cagney <ac131313@redhat.com>
741 * complaints.h: Add comment explaining how to eliminate a
742 deprecated_complain call.
743 * complaints.h: Fix spelling errors.
745 2002-11-15 David Carlton <carlton@math.stanford.edu>
747 * printcmd.c: Remove #include "disasm.h".
749 2002-11-14 Andrew Cagney <ac131313@redhat.com>
751 * frame.h: Move the most relevant interface functions to the start
754 2002-11-14 Andrew Cagney <ac131313@redhat.com>
756 * regcache.h (deprecated_registers): Rename registers.
757 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
758 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
759 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
760 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
761 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
762 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
763 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
764 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
765 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
766 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
767 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
770 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
772 * utils.c (gdb_realpath): Add comment mentioning realpath with a
775 2002-11-13 Andrew Cagney <cagney@redhat.com>
777 * regcache.h (deprecated_read_register_bytes): Rename
779 (deprecated_write_register_bytes): Rename write_register_bytes.
780 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
781 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
782 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
783 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
784 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
785 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
786 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
787 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
788 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
789 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
790 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
791 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
792 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
793 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
795 2002-11-13 Jim Blandy <jimb@redhat.com>
797 * findvar.c (read_var_value): Doc fix.
799 2002-11-13 Andrew Cagney <cagney@redhat.com>
801 * regcache.c (struct regcache): Replace passthough_p with
803 (regcache_xmalloc): Initialize readonly_p.
804 (build_regcache): Initialize readonly_p.
805 (regcache_save): New function.
806 (regcache_restore): New function.
807 (regcache_cpy): Re-implement using regcache_save and
809 (regcache_raw_read): Update.
810 (regcache_cooked_read): When a read-only cache, checked for cached
811 pseudo register values.
812 (regcache_raw_write): Assert that the cache is not read-only.
813 Remove code handling a non-passthrough cache.
814 * regcache.h (regcache_save): Declare.
815 (regcache_restore): Declare.
817 2002-11-13 Andrew Cagney <cagney@redhat.com>
819 * regcache.c (struct regcache_descr): Add fields
820 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
821 (init_legacy_regcache_descr): Compute the size of a cooked
822 register cache and then assign that to sizeof_raw_registers. Set
823 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
824 (init_legacy_regcache_descr): Ditto.
826 2002-11-13 Andrew Cagney <cagney@redhat.com>
828 * regcache.c (register_buffer): Move to near start of file, update
830 (regcache_raw_read): Use.
831 (regcache_raw_write): Use.
832 (struct regcache): Rename raw_registers to registers and
833 raw_register_valid_p to register_valid_p.
834 (regcache_xmalloc): Update.
835 (regcache_xfree): Update.
836 (register_buffer): Update.
837 (regcache_cpy): Update.
838 (regcache_cpy_no_passthrough): Update.
839 (regcache_valid_p): Update.
840 (deprecated_grub_regcache_for_registers): Update.
841 (deprecated_grub_regcache_for_register_valid): Update.
842 (set_register_cached): Update.
843 (regcache_raw_write): Update.
845 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
847 * p-exp.y (name_not_typename): Use copy_name to
848 set current_type variable for fields of THIS.
850 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
852 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
853 * monitor.c (init_base_monitor_ops): Likewise.
854 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
855 * remote-array.c (init_array_ops): Likewise.
856 * remote-e7000.c (init_e7000_ops): Likewise.
857 * remote-es.c (init_es1800_ops): Likewise.
858 (init_es1800_child_ops): Likewise.
859 * remote-rdp.c (init_remote_rdp_ops): Likewise.
860 * remote-sim.c (init_gdbsim_ops): Likewise.
861 * remote-st.c (init_st2000_ops): Likewise.
862 * sol-thread.c (init_sol_core_ops): Likewise.
863 (init_sol_thread_ops): Likewise.
864 * v850ice.c (init_850ice_ops): Likewise.
865 * win32-nat.c (init_child_ops): Likewise.
866 * wince.c (init_child_ops): Likewise.
868 2002-11-12 Andrew Cagney <ac131313@redhat.com>
870 * utils.c (gdb_realpath): Make rp a constant pointer.
872 2002-11-12 Andrew Cagney <ac131313@redhat.com>
874 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
875 a constant buffer; cannonicalize_file_name(); realpath() with a
876 pathconf() defined buffer, xstrdup().
878 2002-11-12 Andrew Cagney <ac131313@redhat.com>
880 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
881 to hang2.C; hang3.c to hang3.C.
883 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
885 * findvar.c (read_var_value): Reenable TLS code.
887 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
888 Jim Blandy <jimb@redhat.com>
890 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
891 * target.c (update_current_target): Add
892 to_get_thread_local_address.
893 * target.h (to_get_thread_local_address): Export.
894 (target_get_thread_local_address): Define.
895 (target_get_thread_local_address_p): Define.
896 * thread-db.c: Include solib-svr4.h.
897 (td_thr_tls_get_addr_p): Define.
898 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
899 (thread_db_get_thread_local_address): New function.
900 (init_thread_db_ops): Initialize to_get_thread_local_address.
901 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
902 * configure: Regenerate.
903 * config.in: Regenerate.
905 2002-11-11 David Carlton <carlton@math.stanford.edu>
907 * linespec.c (set_flags): New function.
908 (decode_line_1): Move code into set_flags.
910 2002-11-11 David Carlton <carlton@math.stanford.edu>
912 * linespec.c (decode_line_1): Move chunks of code to separate
914 (initialize_defaults): New function.
915 (decode_indirect): New function.
917 2002-11-11 Andrew Cagney <ac131313@redhat.com>
919 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
920 instead of void_code_ptr.
921 (sigtramp_saved_pc): Ditto.
923 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
926 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
928 * gdbtypes.h (struct main_type): Move artificial flag out of
929 loc. New member of ``struct field'' named static_kind. Reduce
930 overloaded meaning of bitsize.
931 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
932 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
933 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
935 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
937 (template_to_fixed_record_type, template_to_static_fixed_type)
938 (to_record_with_fixed_variant_part): Likewise.
939 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
940 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
941 * dwarfread.c (struct_type, enum_type): Likewise.
942 * hpread.c (hpread_read_enum_type)
943 (hpread_read_function_type, hpread_read_doc_function_type)
944 (hpread_read_struct_type): Likewise.
945 * mdebugread.c (parse_symbol): Likewise.
947 2002-11-10 Andrew Cagney <ac131313@redhat.com>
949 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
950 * stack.c (print_frame_info_base): Update.
951 (print_frame_info_base, frame_info): Update.
952 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
953 (sparc_frame_saved_pc): Update.
954 * ada-lang.c (find_printable_frame): Update.
955 * breakpoint.c (deprecated_frame_in_dummy): Update.
957 2002-11-09 Mark Kettenis <kettenis@gnu.org>
959 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
961 (regmap): Extend to cover all registers.
962 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
963 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
965 (fetch_register, sore_register): Simplify.
966 (old_fetch_inferior_registers, old_store_inferior_registers):
968 (cannot_fetch_register, cannot_store_register): Change
969 implementation to use regmap array to decide which registers
970 cannot be fetched/stored. This removes $orig_eax from the
971 registers that cannot be fetched/stored.
972 (fetch_inferior_registers): Call fetch_register directly instead
973 of calling old_fetch_inferior_registers.
974 (store_inferior_registers): Call store_register directly instead
975 of calling old_store_inferior_registers.
976 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
977 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
978 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
980 2002-11-09 Klee Dienes <kdienes@apple.com>
982 * i387-tdep.c (i387_supply_register): When called with NULL as a
983 buffer, mark the register as not provided (to mirror the behavior
985 (i387_supply_fxsave): Ditto.
986 (i387_supply_fsave): Ditto (inherits the behavior from
987 i387_supply_register).
989 2002-11-09 Klee Dienes <kdienes@apple.com>
991 * blockframe.c (sigtramp_saved_pc): Use
992 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
993 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
994 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
996 2002-11-09 Andrew Cagney <ac131313@redhat.com>
998 * frame.c (get_prev_frame): Test prev_p to identify a previously
999 unwound frame. Initialize prev_p.
1000 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1003 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1005 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1006 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1007 more comments. Zap dead code.
1009 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1011 * infcmd.c (print_vector_info, print_float_info): Move code that
1012 checks whether the target has any registers and whether there is a
1013 selected frame up, such that it is also used if a target provides
1014 multi-arch definitions of these functions.
1016 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1018 * Makefile.in (DESTDIR): Define.
1019 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1022 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1023 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1025 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1027 * i386-linux-tdep.c: Include "reggroups.h".
1028 (i386_linux_register_reggroup_p): New function.
1029 (i386_linux_init_abi): Set register_reggroup_p to
1030 i386_linux_register_reggroup_p.
1031 * i386-tdep.h (i386_register_reggroup_p): Declare.
1032 * i386-tdep.c: Include "reggroups.h".
1033 (i386_init_reggroups): New function.
1034 (i386_add_reggroups): New function.
1035 (i386_register_reggroup_p): New function.
1036 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1037 (_initialize_i386_tdep): Call i386_init_reggroups.
1038 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1041 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1043 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1044 request that's available in *BSD.
1046 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1048 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1051 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1053 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1054 * dummy-frame.c (find_dummy_frame): Rename
1055 generic_find_dummy_frame, make static. Return the dummy frame
1056 instead of the regcache.
1057 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1058 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1059 (dummy_frame_register_unwind): Rename
1060 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1061 * dummy-frame.h (dummy_frame_register_unwind): Rename
1062 generic_call_dummy_register_unwind.
1064 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1066 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1067 except the inclusion of "i386/tm-i386.h", to...
1068 * config/i386/nm-i386v42mp.h: ...here.
1069 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1071 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1073 * Makefile.in (frame.o): Update dependencies.
1074 * blockframe.c (current_frame, frame_obstack_alloc)
1075 (frame_saved_regs_zalloc, get_current_frame)
1076 (set_current_frame, create_new_frame)
1077 (set_unwind_by_pc, get_next_frame)
1078 (flush_cached_frames, reinit_frame_cache)
1079 (frame_saved_regs_register_unwind)
1080 (deprecated_generic_get_saved_register)
1081 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1082 (_initialize_blockframe): Move frame code from here...
1083 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1084 "annotate.h" and "dummy-frame.h".
1085 (_initialize_frame): New function.
1087 2002-11-08 Jim Blandy <jimb@redhat.com>
1089 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1090 when we finish a function a context.
1091 * buildsym.h (outermost_context_p): New macro.
1092 (Bug analyzed by David Edelsohn.)
1094 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1096 * blockframe.c: Include "dummy-frame.h".
1097 (struct dummy_frame, dummy_frame_stack)
1098 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1099 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1100 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1101 (generic_save_call_dummy_addr, generic_pop_current_frame)
1102 (generic_pop_dummy_frame, generic_fix_call_dummy)
1103 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1104 dummy frame code from here...
1105 * dummy-frame.c: ...to here. New file.
1106 * dummy-frame.h: New file.
1107 (generic_call_dummy_register_unwind): Declare.
1108 (generic_find_dummy_frame): Declare.
1109 * Makefile.in (SFILES): Add dummy-frame.c.
1110 (dummy-frame.o): Specify dependencies.
1111 (dummy_frame_h): Define.
1112 (COMMON_OBS): Add dummy-frame.o.
1113 (blockframe.o): Update dependencies.
1115 2002-11-08 Jim Blandy <jimb@redhat.com>
1117 * dwarf2read.c (read_func_scope): Restore local_symbols and
1118 param_symbols after we finish the function context. (Based on a
1119 patch from David Edelsohn.)
1121 2002-11-08 David Carlton <carlton@math.stanford.edu>
1123 * linespec.c (symbol_found): New function.
1124 (minsym_found): New function.
1125 (decode_line_1): Separate out some code into separate functions.
1127 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1129 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1130 the benefit of the interix target.
1131 * i386-tdep.h (i386_frameless_signal_p): Declare.
1133 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1135 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1136 declaration that snuck in from change below.
1138 2002-11-06 Andrew Cagney <cagney@redhat.com>
1140 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1142 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1143 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1144 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1145 (i386_mxcsr_regnum_p): new function. Use instead of
1147 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1148 (i386_sse_regnum_p): Declare.
1149 (i386_mxcsr_regnum_p): Declare.
1150 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1151 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1152 (IS_FP_REGNUM): Update definition.
1153 (IS_FPU_CTRL_REGNUM): Update definition..
1154 (IS_SSE_REGNUM): Update definition..
1155 * i386v-nat.c (register_u_addr): Update.
1156 * go32-nat.c (fetch_register): Update.
1157 (store_register): Update.
1159 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1161 Preparation work to convert the hppa targets to multiarch partial.
1163 * hppa-tdep.c: Add new functions replacing macro bodies from
1164 config/pa/tm-hppa.h. These function will be used to initialize
1165 the gdbarch structure. Import some comments from tm-hppa.h,
1166 and place them where appropriate, to avoid loosing them when
1167 we cleanup this file.
1168 (hppa_reg_struct_has_addr): New function.
1169 (hppa_inner_than): New function.
1170 (hppa_stack_align): New function.
1171 (hppa_pc_requires_run_before_use): New function.
1172 (hppa_instruction_nullified): New function.
1173 (hppa_register_byte): New function.
1174 (hppa_register_virtual_type): New function.
1175 (hppa_store_struct_return): New function.
1176 (hppa_cannot_store_register): New function.
1177 (hppa_frame_args_address): New function.
1178 (hppa_frame_locals_address): New function.
1179 (hppa_smash_text_address): New function.
1180 (hppa_coerce_float_to_double): New function. Requires the inclusion
1183 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1185 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1186 gdbarch-eligible macro to a call to the new associated function
1187 created in hppa-tdep.c.
1188 (INNER_THAN): Likewise.
1189 (STACK_ALIGN): Likewise.
1190 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1191 (INSTRUCTION_NULLIFIED): Likewise.
1192 (REGISTER_BYTE): Likewise.
1193 (REGISTER_VIRTUAL_TYPE): Likewise.
1194 (STORE_STRUCT_RETURN): Likewise.
1195 (CANNOT_STORE_REGISTER): Likewise.
1196 (FRAME_ARGS_ADDRESS): Likewise.
1197 (FRAME_LOCALS_ADDRESS): Likewise.
1198 (SMASH_TEXT_ADDRESS): Likewise.
1199 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1200 (ABOUT_TO_RETURN): Delete, as no longer used.
1202 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1204 * printcmd.c (disassemble_command): Remove obsolete function.
1205 (_initialize_printcmd): Do not create disassemble command here.
1206 * cli/cli-cmds.c (disassemble_command): New function. Implements
1207 disassemble command.
1208 (init_cli_cmds): Create disassemble command here instead.
1210 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1212 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1214 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1216 * regcache.h (regcache_cooked_read_using_offset_hack)
1217 (regcache_cooked_write_using_offset_hack): Delete declarations.
1218 (register_changed): Delete declaration.
1219 * regcache.c (regcache_cooked_read_using_offset_hack)
1220 (regcache_cooked_write_using_offset_hack): Delete functions.
1221 (cooked_xfer_using_offset_hack): Delete function.
1222 (register_changed): Delete function.
1224 2002-11-07 Jim Blandy <jimb@redhat.com>
1226 * macroscope.c: #include "complaints.h".
1227 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1228 but not in the macro table.
1229 * Makefile.in (macroscope.o): Record dependency.
1231 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1233 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1235 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1237 * regcache.c (deprecated_registers_fetched): Update.
1238 * regcache.h (deprecated_registers_fetched): Rename
1240 * remote-vxsparc.c (vx_read_register): Update.
1241 * remote-vxmips.c (vx_read_register): Update.
1242 * remote-vx68.c (vx_read_register): Update.
1243 * irix5-nat.c (fetch_core_registers): Update.
1244 * mipsm3-nat.c (fetch_inferior_registers): Update.
1245 * sun3-nat.c (fetch_inferior_registers): Update.
1246 * symm-nat.c (fetch_inferior_registers): Update.
1247 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1248 (fetch_core_registers): Update.
1249 (fetch_kcore_registers): Update.
1250 * mips-nat.c (fetch_inferior_registers): Update.
1251 * corelow.c (get_core_registers): Update.
1252 * a68v-nat.c (fetch_inferior_registers): Update.
1254 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1256 Put in place the framework necessary for multiarching the hppa targets.
1257 * hppa-tdep.c (hppa_gdbarch_init): New function.
1258 (hppa_dump_tdep): New function.
1259 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1260 tdep structure dumper.
1261 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1262 until the multi-arching conversion has partially been completed.
1264 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1266 * valops.c (value_assign): Merge lval_register case into
1267 lval_reg_frame_relative. Use frame_register and
1268 regcache_cooked_write instead of get_saved_register and
1269 write_register_bytes. After flushing the register cache, try to
1270 re-select the selected frame.
1272 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1274 * regcache.h (deprecated_register_valid): Rename register_valid.
1275 * regcache.c: Update.
1276 * ia64-aix-nat.c: Update.
1277 * i386gnu-nat.c: Update.
1278 * alpha-nat.c: Update.
1279 * sparc-nat.c: Update.
1280 * lynx-nat.c: Update.
1281 * remote-mips.c: Update.
1283 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1285 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1286 to end of file, to be more consistent with the pratice followed
1289 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1291 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1292 (print_float_info): Print registers in float_reggroup.
1293 (print_vector_info): Print registers in vector_reggroup.
1294 (default_print_registers_info): When all, print registers in
1295 all_reggroup. Otherwize, print registers in general_reggroup.
1296 (registers_info): Rewrite. Add support for register groups.
1299 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1301 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1303 (symtab_symbol_info): Remove eons old ifdeffed out code.
1304 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1307 2002-11-06 Theodore A. Roth <troth@openavr.org>
1309 * c-exp.y: Add missing semi-colons.
1310 * f-exp.y: Add missing semi-colons.
1311 * m2-exp.y: Add missing semi-colons.
1312 * p-exp.y: Add missing semi-colons.
1313 Add empty action to start rule to avoid a type clash error when
1314 building with bison >= 1.50.
1316 2002-11-06 Jim Blandy <jimb@redhat.com>
1318 * macrotab.h (struct macro_source_file): Doc fix.
1320 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1322 * varobj.c (child_exists, cplus_number_of_children): Change
1323 STREQ macro references to strcmp.
1324 (cplus_name_of_child): Change code to handle the fact that
1325 fields are not necessarily contiguous with regards to their
1326 access control. This is a fix for PR gdb/792.
1328 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1330 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1331 * gdbarch.h, gdbarch.c: Regnerate.
1332 * frame.h (frame_register): Declare.
1333 * frame.c (frame_register): New function.
1334 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1335 GET_SAVED_REGISTER, otherwize call
1336 generic_unwind_get_saved_register.
1337 (frame_register_read): Use frame_register instead of
1340 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1342 From Jim Ingham <jingham@apple.com>:
1343 * event-top.c (gdb_disable_readline): New function.
1344 (_initialize_event_loop): Move comment.
1346 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1348 * event-loop.c (start_event_loop): Add comment.
1351 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1353 * infcmd.c (default_print_registers_info): Do not call
1354 PRINT_REGISTER_HOOK.
1356 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1358 * sparc-tdep.c (sparc_print_register_hook): Make static.
1359 (sparc_print_registers_info): New function.
1360 (sparc_do_registers_info): New function.
1361 (sparclet_print_registers_info): New function.
1362 (sparclet_do_registers_info): New function.
1363 (do_sparc_print_registers_info): New function.
1364 (sparc_print_registers): New static function, clone of infcmd.c's
1365 default_print_registers_info.
1366 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1367 (sparclet_do_registers_info): Declare.
1368 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1369 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1371 (sparc_do_registers_info): Declare.
1372 (PRINT_REGISTER_HOOK): Delete macro.
1373 (sparc_print_register_hook): Delete declaration.
1375 2002-11-05 David Carlton <carlton@math.stanford.edu>
1377 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1379 (lookup_symbol_aux_local): New function.
1380 (lookup_symbol_aux_symtabs): New function.
1381 (lookup_symbol_aux_psymtabs): New function.
1383 2002-11-05 David Carlton <carlton@math.stanford.edu>
1385 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1386 previous values of 'objfile' and 'block'.
1388 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1390 * values.c (value_change_enclosing_type): Set
1391 enclosing_type field correctly also for the case where
1392 more memory needs to be allocated.
1394 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1396 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1399 * i387-tdep.c (i387_print_float_info): Replace calls to
1400 register_read and deprecated_read_register_gen with calls to
1401 frame_register_read, and make the necessary adjustments to the
1404 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1406 * gdbarch.sh (register_reggroup_p): Allow default value.
1407 * gdbarch.h, gdbarch.c: Regenerate.
1409 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1411 * regcache.h: Add coment indicating replacements for deprecated
1414 2002-11-02 Andrew Cagney <cagney@redhat.com>
1416 * reggroups.h, reggroups.c: New files.
1417 * regcache.c: Include "reggroups.h".
1418 (enum regcache_dump_what): Add `regcache_dump_groups'.
1419 (regcache_dump): Contract size of the "Type" column. When
1420 specified, dump the register's groups.
1421 (maintenance_print_register_groups): New function.
1422 (_initialize_regcache): Add command `maint print register-groups'.
1423 * Makefile.in (COMMON_OBS): Add reggroups.o
1424 (SFILES): Add reggroups.c.
1425 (reggroups_h): Define.
1426 (regcache.o, gdbarch.o): Update dependencies.
1427 (reggroups.o): Specify dependencies.
1428 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1429 Add opaque declaration for `struct reggroup' in generated .h file.
1430 Include "reggroups.h" in generated .c file.
1431 gdbarch.h, gdbarch.c: Re-generate.
1433 2002-11-02 Andrew Cagney <cagney@redhat.com>
1435 * regcache.h (deprecated_read_register_gen): Rename
1437 (deprecated_write_register_gen): Rename write_register_gen.
1438 * i387-tdep.c: Update.
1439 * x86-64-linux-nat.c: Update
1441 * thread-db.c: Update.
1442 * win32-nat.c: Update.
1443 * mips-tdep.c: Update.
1444 * d10v-tdep.c: Update.
1445 * cris-tdep.c: Update.
1446 * remote-sim.c: Update.
1447 * remote-rdi.c: Update.
1448 * remote-rdp.c: Update.
1451 * blockframe.c: Update.
1452 * x86-64-tdep.c: Update.
1453 * xstormy16-tdep.c: Update.
1454 * sh-tdep.c: Update.
1455 * s390-tdep.c: Update.
1456 * rs6000-tdep.c: Update.
1457 * sparc-tdep.c: Update.
1458 * i386-tdep.c: Update.
1459 * dwarf2cfi.c: Update.
1460 * regcache.c: Update.
1462 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1464 New interix-specific files:
1465 * config/i386/nm-interix.h: New file.
1466 * config/i386/interix.mh: New file.
1467 * config/i386/interix.mt: New file.
1468 * i386-interix-nat.c: New file.
1469 * i386-interix-tdep.c: New file.
1471 2002-11-01 Andrew Cagney <cagney@redhat.com>
1473 * frame.h (deprecated_generic_get_saved_register): Rename
1474 generic_get_saved_register.
1475 * blockframe.c (deprecated_generic_get_saved_register): Update.
1476 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1477 (xstormy16_frame_saved_register): Update.
1478 * sh-tdep.c (sh_gdbarch_init): Update.
1479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1480 * ia64-tdep.c (ia64_get_saved_register): Update.
1481 * cris-tdep.c (cris_gdbarch_init): Update.
1482 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1483 * arm-tdep.c (arm_gdbarch_init): Update.
1485 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1487 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1489 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1491 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1492 trampolines in sigaction.
1494 2002-10-31 Andrew Cagney <cagney@redhat.com>
1496 * h8300-tdep.c: Include "gdb_assert.h".
1497 (h8300_print_register): Add gdbarch, file and frame parameters.
1498 Use frame_read_unsigned_register to read the register's value.
1499 Use fprintf_filtered to display output.
1500 (h8300_print_registers_info): Replace h8300_do_registers_info.
1501 (h8300_gdbarch_init): Set print_registers_info.
1503 2002-10-31 Andrew Cagney <cagney@redhat.com>
1505 * frame.c (frame_read_unsigned_register): New function.
1506 (frame_read_signed_register): New function.
1507 * frame.h (frame_read_unsigned_register): Declare.
1508 (frame_read_signed_register): Declare.
1510 2002-10-31 Andrew Cagney <cagney@redhat.com>
1512 * h8500-tdep.c (h8500_print_registers_info): New static function,
1513 clone of infcmd.c's default_print_registers_info.
1514 (h8500_do_registers_info): New funtion.
1515 (h8500_print_register_hook): Rename print_register_hook, make
1518 * config/h8500/tm-h8500.h: Update copyright.
1519 (DEPRECATED_DO_REGISTERS_INFO): Define.
1520 (h8500_do_registers_info: Declare.
1521 (PRINT_REGISTER_HOOK): Delete macro.
1522 (print_register_hook): Delete function.
1524 2002-10-31 Andrew Cagney <cagney@redhat.com>
1526 * z8k-tdep.c (z8k_print_register_hook): Make static.
1527 (z8k_print_registers_info): New static function, clone of
1528 infcmd.c's default_print_registers_info.
1529 (z8k_do_registers_info): New function. Wrap
1530 z8k_print_registers_info.
1531 * config/z8k/tm-z8k.h: Update copyright.
1532 (PRINT_REGISTER_HOOK): Delete macro.
1533 (z8k_print_register_hook): Delete declaration.
1534 (DEPRECATED_DO_REGISTERS_INFO): Define.
1535 (z8k_do_registers_info): Declare.
1537 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1539 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1540 as this is already provided by value.h, and was actually causing
1541 a compilation error because of a conflict in parameter type
1542 declaration due to a missing const keyword.
1543 (low_text_segment_addres): Fix a compilation warning.
1545 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1547 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1548 registers without a name.
1549 (mips_linux_cannot_store_register): Don't store registers without
1552 2002-10-28 David Carlton <carlton@math.stanford.edu>
1554 * symtab.c (find_addr_symbol): Delete. (It was already commented
1556 * symtab.h: Delete prototype for find_addr_symbol.
1558 2002-10-26 Andrew Cagney <cagney@redhat.com>
1560 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1562 gdbarch.h, gdbarch.c: Re-generate.
1563 * infcmd.c (default_print_registers_info): Update reference.
1564 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1565 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1566 * sh-tdep.c (sh_gdbarch_init): Ditto.
1567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1568 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1570 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1572 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1573 cfi_init_extra_frame_info.
1574 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1575 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1577 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1578 target where necessary. Add more comments and remove the ones
1579 that don't provide any useful information.
1581 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1582 deprecated_read_register_dummy with
1583 frame_unwind_unsigned_register.
1585 * i386-tdep.c (i386_extract_struct_value_address): Use
1586 regcache_raw_read_unsigned instead of
1587 regcache_cooked_read_unsigned since we know that the register
1588 we're reading isn't a pseudo register. Rename variable 'val' into
1589 the more descriptive 'addr'.
1591 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1592 (x86_64_push_return_address): Add comment.
1593 (x86_64_pop_frame): Make static.
1594 (examine_argument): Clarify comment.
1595 (x86_64_skip_prologue): Make prolog_expact variable static.
1597 * dwarf2cfi.c: Fix some formatting problems.
1598 (context_cpy, read_encoded_pointer): Clarify comments.
1600 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1601 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1602 i386 target back into x86_64_gdbarch_init. Add some comments and
1603 remove meaningless ones.
1605 2002-10-25 Andrew Cagney <cagney@redhat.com>
1607 * complaints.h (struct deprecated_complaint): Rename `struct
1609 * complaints.c (complain): Update.
1610 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1611 incorrect comment indicating that "symfile.h" was being included
1612 for the `struct complaint' definition.
1613 * remote-vx.c: Update.
1614 * objc-lang.c: Update.
1615 * xcoffread.c: Update.
1617 * mdebugread.c: Update.
1618 * stabsread.c: Update.
1619 * dwarf2read.c: Update.
1620 * dwarfread.c: Update.
1621 * elfread.c: Update.
1622 * coffread.c: Update.
1623 * stabsread.h: Update.
1624 * dbxread.c: Update.
1625 * buildsym.c: Update.
1626 * gdbtypes.c: Update.
1627 * macrotab.c: Update.
1629 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1631 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1632 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1633 (x86_64_init_abi): ...new function.
1635 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1636 * i386v-nat.c: Include "i386-tdep.h".
1638 2002-10-25 Andrew Cagney <cagney@redhat.com>
1640 * gdbtypes.c (address_space_name_to_int): Update.
1641 (address_space_int_to_name): Update.
1642 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1643 multi-arch predicate.
1644 (address_class_name_to_type_flags): Ditto.
1645 * gdbarch.h, gdbarch.c: Re-generate.
1647 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1649 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1651 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1653 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1655 * symtab.h (INIT_SAL): Delete macro.
1657 * symtab.c (init_sal): New function.
1659 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1660 to init_sal function call.
1661 (find_sal_from_funcs_and_line): Ditto.
1662 (all_sals_for_line): Ditto.
1663 * breakpoint.c (create_internal_breakpoint): Ditto.
1664 (create_fork_vfork_event_catchpoint): Ditto.
1665 (create_exec_event_catchpoint): Ditto.
1666 (parse_breakpoint_sals): Ditto.
1667 (watch_command_1): Ditto.
1668 (handle_gnu_4_16_catch_command): Ditto.
1669 (clear_command): Ditto.
1670 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1671 * infcmd.c (run_stack_dummy): Ditto.
1672 * infrun.c (process_event_stop_test): Ditto.
1673 (check_sigtramp2): Ditto.
1674 (step_over_function): Ditto.
1675 * linespec.c (decode_line_2): Ditto.
1676 (decode_line_1): Ditto.
1677 * source.c (line_info): Ditto.
1678 * symtab.c (find_pc_sect_line): Ditto.
1680 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1682 * dwarf2cfi.c (struct context)
1683 (struct context_reg): Moved to dwarf2cfi.h
1684 (context_alloc, frame_state_alloc, context_cpy):
1685 Made extern instead of static, removed prototypes.
1686 * dwarf2cfi.h (struct context)
1687 (struct context_reg): New, moved from dwarf2cfi.c
1688 (context_alloc, frame_state_alloc, context_cpy):
1690 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1691 Changed from static to extern.
1692 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1693 (LINUX_SIGCONTEXT_FP_OFFSET)
1694 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1695 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1696 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1697 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1698 set_gdbarch_*() calls now use x86-64 specific functions
1699 instead of DWARF2 CFI ones.
1700 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1701 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1702 (x86_64_init_extra_frame_info): New prototypes.
1704 2002-10-23 David Carlton <carlton@math.stanford.edu>
1706 * linespec.c: #include "parser-defs.h".
1707 Delete prototype for find_template_name_end.
1708 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1710 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1712 * NEWS: add recent mi fixes.
1713 * varobj.c (struct varobj): Add new "updated" flag.
1714 (new_variable): Default "updated" flag to 0.
1715 (varobj_set_value): Set "updated" flag to 1 if value
1717 (varobj_update): Check varobj "updated" flag before
1718 comparing old and refreshed values. Fix for
1721 2002-10-23 David Carlton <carlton@math.stanford.edu>
1723 * parse.c (parse_exp_1): Use BLOCK_START.
1724 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1726 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1728 2002-10-23 David Carlton <carlton@math.stanford.edu>
1730 * symtab.c: Delete cplusplus_hint.
1731 Delete prototype for find_template_name_end.
1733 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1735 * symtab.h: Update comment.
1737 2002-10-23 Michael Snyder <msnyder@redhat.com>
1739 * printcmd.c (address_info): Restore quotes in output.
1740 * valops.c (value_of_local): Restore quotes in error message.
1742 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1744 * symtab.c (symbol_demangled_name): New function.
1745 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1746 turning most of it into a function.
1747 (symbol_demangled_name): Export.
1749 2002-10-23 Michael Snyder <msnyder@redhat.com>
1751 * valops.c (value_of_local): Restore quotes in error message.
1753 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1755 * symtab.c (symbol_init_language_specific): New function.
1756 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1757 turning most of it into a function.
1758 (symbol_init_language_specific): Export.
1760 2002-10-23 David Carlton <carlton@math.stanford.edu>
1762 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1763 (dwarf_attr_name): Ditto.
1764 (dwarf_type_encoding_name): Ditto.
1765 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1766 (process_die): Handle DW_TAG_namespace,
1767 DW_TAG_imported_declaration, DW_TAG_imported_module.
1768 (read_namespace): New function.
1770 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1772 * configure.in: Define NEW_PROC_API on Interix too.
1773 * configure: Regenerate.
1775 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1777 * configure: Regenerate using the proper version of autoconf.
1779 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1781 * findvar.c (read_var_value): Temporarily disable TLS code, until
1782 complete TLS support is added.
1784 2002-10-21 Jim Blandy <jimb@redhat.com>
1785 Elena Zannoni <ezannoni@redhat.com>
1787 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1788 for thread local storage locations.
1789 (struct symbol): Add objfile field.
1790 (SYMBOL_OBJFILE): Define.
1791 * dwarf2read.c (is_thread_local): New static variable.
1792 (new_symbol): If variable is in thread local fill in address class
1793 and objfile appropriately.
1794 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1796 * printcmd.c (address_info): Print the information for thread
1797 local storage variable.
1798 * findvar.c (read_var_value): In case of thread local variable,
1799 defer to the target vector code to compute address.
1801 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1803 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1804 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1806 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1808 * symtab.h (address_class): Rename
1809 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1810 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1811 * printcmd.c (address_info): Ditto.
1812 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1814 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1816 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1817 DBREG_DRX macro to acces debug registers.
1819 * Makefile.in (i386obsd-tdep.o): New target.
1821 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1822 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1824 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1825 * config/i386/obsd.mt: New file.
1826 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1827 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1828 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1829 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1830 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1831 * i386obsd-tdep.c: New file.
1833 2002-10-19 Adam Fedor <fedor@gnu.org>
1835 * objc-exp.y (name_not_typename): Fix invalid comment.
1837 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1839 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1840 to allocate partial syms and macro byte caches.
1842 2002-10-18 David Carlton <carlton@math.stanford.edu>
1844 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1846 2002-10-18 Adam Fedor <fedor@gnu.org>
1848 * stabsread.c (find_name_end): New function.
1849 (define_symbol): Use it.
1851 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1853 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1854 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1855 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1856 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1858 2002-10-17 David Carlton <carlton@math.stanford.edu>
1860 * symfile.h: Add opaque declaration for struct obstack.
1861 Declare obsavestring to take a const char *.
1862 * symfile.c (obsavestring): Make first argument a const char *.
1864 2002-10-16 Adam Fedor <fedor@gnu.org>
1866 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1867 names when matching breakpoints in current file.
1869 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1871 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1872 (read_tag_pointer_type): Add address class support.
1873 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1874 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1876 * gdbarch.h, gdbarch.c: Regenerate.
1877 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1878 (make_type_with_address_space, recursive_type_dump): Add address
1880 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1881 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1882 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1884 2002-10-16 Klee Dienes <kdienes@apple.com>
1886 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1887 to get the last character of a char[] buffer, not
1888 name[sizeof(vptr_name)-1].
1890 2002-10-14 Adam Fedor <fedor@gnu.org>
1892 * symtab.h: New objc_specific struct.
1893 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1894 (SYMBOL_DEMANGLED_NAME): Likewise.
1896 2002-10-14 Adam Fedor <fedor@gnu.org>
1898 * symfile.c (init_filename_language_table): Add ObjC file extension.
1900 2002-10-14 Adam Fedor <fedor@gnu.org>
1902 * utils.c (puts_filtered_tabular): New function.
1903 (fprintf_symbol_filtered): Get ObjC demangled name.
1904 * defs.h (puts_filtered_tabular): Declared.
1906 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1908 * c-lang.h (c_type_print_varspec_prefix): Delete.
1909 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1910 ``need_post_space'' parameter. Adjust all callers.
1912 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1914 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1915 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1916 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1917 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1919 2002-10-13 Adam Fedor <fedor@gnu.org>
1921 * source.c (print_source_lines): Update comments.
1923 2002-10-13 Adam Fedor <fedor@gnu.org>
1925 * valops.c (value_of_local): New function.
1926 (value_of_this): Use it.
1927 * value.h (value_of_local): Declared.
1929 2002-10-13 Adam Fedor <fedor@gnu.org>
1931 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1932 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1934 2002-10-12 Adam Fedor <fedor@gnu.org>
1936 * language.c (binop_result_type): Add language_objc to case.
1937 (integral_type): Likewise.
1938 (character_type): Likewise.
1939 (string_type): Likewise.
1940 (boolean_type): Likewise.
1941 (structured_type): Likewise.
1942 (binop_type_check): Likewise.
1944 2002-10-11 Adam Fedor <fedor@gnu.org>
1946 * printcmd.c (address_info): Print 'self' for ObjC.
1948 2002-10-11 Adam Fedor <fedor@gnu.org>
1950 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1953 2002-10-11 Adam Fedor <fedor@gnu.org>
1955 * language.h (CAST_IS_CONVERSION): Add language_objc.
1957 2002-10-11 Adam Fedor <fedor@gnu.org>
1959 * defs.h (enum language): Add language_objc.
1961 2002-10-11 Klee Dienes <kdienes@apple.com>
1963 * corefile.c (read_memory_typed_address): New function.
1964 * gdbcore.h (read_memory_typed_address): Add prototype.
1965 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1966 to read a value destined for a CORE_ADDR, not read_memory_integer.
1967 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1968 (f77_get_dynamic_lowerbound): Ditto.
1970 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1972 * utils.c (string_to_core_addr): After turning string into
1973 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1974 which will do necessary sign-extension, etc.
1976 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1978 * c-exp.y (THIS): Delete token and grammar rule.
1979 (yylex): Don't return THIS.
1980 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1981 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1982 * demangle.c (cplus_markers): Update comment. Put '$'
1983 first. Remove CPLUS_MARKER.
1984 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1985 * jv-exp.y (THIS): Delete token and grammar rule.
1986 (yylex): Don't return THIS.
1987 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1988 * objc-exp.y (THIS): Delete token and grammar rule.
1989 (yylex): Don't return THIS.
1990 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1991 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1992 (read_member_functions): Likewise for opname.
1993 (read_tilde_fields): Use is_cplus_marker.
1995 * defs.h (CPLUS_MARKER): Don't define.
1996 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1997 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1998 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1999 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2000 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2002 * config/i386/tm-i386v4.h: Delete file.
2003 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2004 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2005 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2006 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2007 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2008 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2009 * config/i386/i386v4.mt (TM_FILE): Likewise.
2010 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2012 2002-10-10 Marko Mlinar <markom@opencores.org>
2014 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2015 accidentially not commited 2002-10-09
2016 * gdbarch.h, gdbarch.c: Re-generate.
2018 2002-10-09 Marko Mlinar <markom@opencores.org>
2020 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2021 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2022 * gdbarch.h, gdbarch.c: Re-generate.
2024 2002-10-08 Petr Sorfa <petrs@caldera.com>
2026 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2028 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2029 so we can work on more than one compilation unit at a time. This
2030 helps prepare GDB to handle inter-CU die references.
2031 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2032 the code to be defined before struct comp_unit_head.
2033 (comp_unit_head): Added new members - offset, cu_head,
2034 begin_die, next and dwarf2_abbrevs.
2035 (dwarf2_abbrevs): Removed single static var; now member of
2036 struct comp_unit_head.
2037 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2039 (psymtab_to_symtab_1): Changed to work with the new
2040 struct comp_unit_head.
2041 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2042 constructs the dwarf2_abbrevs[] inside the cu_header.
2043 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2044 dwarf2_abbrev table to clean up.
2045 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2046 handling of dwarf2_abbrevs inside the cu_header.
2047 (read_partial_die): Now supports the call to the new
2048 dwarf2_lookup_abbrev.
2049 (read_full_die): Now supports the call to the new
2050 dwarf2_lookup_abbrev.
2052 2002-10-06 Christopher Faylor <cgf@redhat.com>
2054 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2055 insure that shell variables, such as "transformed_name" are propagated
2056 to later shell statements in rule.
2058 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2060 * config/i386/nm-i386sco.h: Add protection against
2061 multiple-inclusion. Include "i386/nm-i386v.h".
2062 (REGISTER_U_ADDR): Remove define.
2063 (i386_register_u_addr): Remove prototype.
2065 2002-10-04 Michael Snyder <msnyder@redhat.com>
2067 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2068 before treating it as a single-step event.
2070 2002-10-03 Adam Fedor <fedor@gnu.org>
2072 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2073 (objc_demangle): Remove assignment in if statements, Replace
2075 (add_msglist): Likewise.
2076 (end_msglist): Likewise.
2077 (complare_selectors): Likewise.
2078 (selectors_info): Likewise.
2079 (compare_classes): Likewise.
2080 (classes_info): Likewise.
2081 (print_object_command): Likewise.
2082 (find_objc_msgcall_submethod): Replace PTR with void *.
2083 * objc-lang.h: Remove check for __STDC__.
2085 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2087 * ui-out.h (ui_out_field_fmt_int): New prototype.
2088 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2089 of field width and alignment.
2090 * stack.c (print_frame_info_base): When printing frame level, use
2091 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2094 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2096 * MAINTAINERS: Add self to Write After Approval list.
2098 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2100 * infcmd.c (interrupt_target_command_wrapper): Delete.
2101 (interrupt_target_command): Make non static.
2102 (nofp_registers_info): Make static.
2103 * stack.c (return_command_wrapper): Delete.
2104 (return_command): Make non static.
2106 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2108 * event-top.c (gdb_setup_readline): New function. Code moved from
2109 _initialize_event_loop().
2110 (_initialize_event_loop): Call gdb_setup_readline().
2112 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2114 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2115 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2116 * gdbarch.h, gdbarch.c: Re-generate.
2118 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2121 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2123 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2124 of fill_in_vptr_fieldno.
2126 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2128 * inferior.h (registers_info, stepi_command, nexti_command,
2129 continue_command, interrupt_target_command): Export from infcmd.c.
2130 * frame.h (args_info, selected_frame_level_changed_hook,
2131 return_command): Export from stack.c.
2132 * v850ice.c (stepi_command, nexti_command, continue_command): use
2133 prototypes from inferior.h.
2134 * tracepoint.c (registers_info, args_info, locals_info): Use
2135 prototypes from frame.h and inferior.h.
2136 * Makefile.in (mi-main.o): Add dependency on frame.h.
2138 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2140 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2141 value in register 3 adjusted by ppc_gp0_regnum.
2143 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2145 2002-10-02 Marko Mlinar <markom@opencores.org>
2147 * MAINTAINERS: Add myself to the Write After Approval list.
2149 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2151 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2152 of the section for the N64 ABI, fixed.
2154 * config/mips/tm-irix6.h: Include solib.h.
2156 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2158 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2161 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2163 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2164 and that "mi0" syntax has been removed.
2166 2002-09-30 David Carlton <carlton@math.stanford.edu>
2168 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2169 * ppc-sysv-tdep.c: #include "gdb_string.h".
2170 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2173 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2175 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2176 "vrsave"'s register number.
2178 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2180 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2181 use frame_unwind_signed_register to obtain the PC.
2182 (mips_frame_chain): Handle a generic dummy frame.
2183 (mips_init_extra_frame_info): When a generic dummy frame, don't
2184 re-compute the frame base.
2185 (mips_pop_frame): Handle generic dummy frames.
2186 (mips_gdbarch_init): When generic dummy frames, set
2187 use_generic_dummy_frames, push_dummy_frame to
2188 generic_push_dummy_frame, pc_in_call_dummy to
2189 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2190 generic_save_dummy_frame_tos.
2192 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2194 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2195 against TOP when TOP was explictly set.
2196 (generic_push_dummy_frame): Set TOP to zero.
2198 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2200 * event-loop.c (start_event_loop): Rename variable 'result' to
2201 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2203 2002-09-30 Keith Seitz <keiths@redhat.com>
2205 * gdb-events.sh (selected_thread_changed): New event.
2206 * gdb-events.c: Regenerated.
2207 * gdb-events.h: Regenerated.
2209 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2211 * MAINTAINERS: Add self to Write After Approval list.
2213 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2215 * disasm.c: New file.
2216 * disasm.h: New file.
2217 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2218 (compare_lines): Ditto.
2219 (dump_insns): Ditto.
2220 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2222 (do_assembly_only): Ditto.
2223 (do_disassembly): Renamed to gdb_disassembly and moved to
2224 disasm.c. Sdded uiout argument.
2225 * Makefile.in: Add new files. Reorder SFILES list. Update
2226 dependencies. Include libgdb.a later in the insight executable.
2228 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2230 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2231 bfd/elf64-alpha-fbsd.c.
2233 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2235 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2238 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2240 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2242 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2244 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2245 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2246 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2247 (S_msg_sig_post_reply): Ditto.
2249 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2251 * sh-tdep.c (sh_use_struct_convention): Use definition according
2253 (sh_push_arguments): Store in register with correct endianess.
2254 (sh_default_store_return_value): Ditto.
2255 (sh_gdbarch_init): Set sizeof long double to 8.
2257 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2259 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2260 Fix some whitespace problems.
2262 2002-09-27 David Carlton <carlton@math.stanford.edu>
2264 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2265 (mcore-tdep.o): Ditto.
2266 (ns32k-tdep.o): Ditto.
2267 (ns32knbsd-tdep.o): Ditto.
2269 (vax-tdep.o): Ditto.
2270 * cris-tdep.c: #include "gdb_string.h"
2271 * mcore-tdep.c: Ditto.
2272 * ns32k-tdep.c: Ditto.
2273 * ns32knbsd-tdep.c: Ditto.
2275 * vax-tdep.c: Ditto.
2277 2002-09-27 David Carlton <carlton@math.stanford.edu>
2279 * config/djgpp/fnchange.lst: Add entries for
2280 gdb/testsuite/gdb.c++/m-static files.
2282 2002-09-27 Jim Wilson <wilson@redhat.com>
2284 * MAINTAINERS: Add myself to the Write After Approval list.
2286 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2288 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2291 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2293 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2296 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2298 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2299 (rs6000_struct_return_address): Delete variable.
2300 (rs6000_store_struct_return): Update.
2301 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2302 deprecated_extract_struct_value_address.
2303 (rs6000_frame_align): New function.
2304 (rs6000_gdbarch_init): Set frame_align.
2306 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2308 From Grace Sainsbury <graces@redhat.com>:
2309 * Makefile.in (gdbtk-main.o): New target.
2310 (gdb.o): New target.
2312 (main.o): Update dependencies.
2313 (gdb$(EXEEXT)): Add gdb.o.
2314 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2315 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2316 (SUBDIR_GDBTK_CLEAN): Set.
2317 (install-gdbtk): Install the insight binary.
2318 (uninstall-gdbtk): New target.
2319 (all-gdbtk, clean-gdbtk): New rule.
2320 * top.c (use_windows): Default to zero.
2321 * main.c: Include "main.h".
2323 (struct captured_main_args): Delete.
2324 (gdb_main): New function.
2328 2002-09-25 Andrew Cagney <cagney@redhat.com>
2330 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2331 (frame_map_regnum_to_name): New function.
2332 (frame_map_name_to_regnum): New function.
2333 * frame.h (frame_map_name_to_regnum): Declare.
2334 (frame_map_regnum_to_name): Declare.
2335 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2336 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2337 * parse.c: Do not include "builtin-regs.h".
2338 (target_map_name_to_register): Delete function.
2339 (write_dollar_variable): Use frame_map_name_to_regnum.
2340 * parser-defs.h (target_map_name_to_register): Delete declaration.
2341 * expprint.c: Include "frame.h".
2342 (print_subexp): Use frame_map_regnum_to_name.
2343 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2344 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2346 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2348 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2349 wasn't saved, and the next innermost frame is a dummy, return the
2350 dummy frame's link register.
2352 2002-09-24 Jim Blandy <jimb@redhat.com>
2354 Fix from Paul Breed:
2355 * main.c (captured_main): Add a `break' after the case for 'b'.
2357 2002-09-24 Keith Seitz <keiths@redhat.com>
2359 * varobj.c (c_type_of_child): Use get_target_type instead
2360 of TYPE_TARGET_TYPE.
2362 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2364 * source.c (get_current_or_default_source_symtab_and_line): Remove
2366 (set_default_source_symtab_and_line): New function. Attempts to
2367 determine a source file to list lines from if one is not currently
2369 (get_current_source_symtab_and_line): Initialize sal.pc and
2371 (set_current_source_symtab_and_line): Mark argument as const.
2372 * source.h: Update declarations and comments.
2373 * linespec.c (decode_line_1): Replace call to removed routine above.
2374 * stack.c (print_frame_info_base): Ditto.
2375 * cli/cli-cmds.c (edit_command): Ditto.
2376 (list_command): Ditto.
2378 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2380 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2381 sal.pc and sal.end fields.
2382 (get_current_or_default_source_symtab_and_line): Ditto.
2383 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2384 so we do not cause a new source symtab to be searched for (reverting an
2385 unintentional change from the 2002-09-20 patch).
2386 * scm-lang.c (scm_unpac): Ditto.
2388 2002-09-21 Andrew Cagney <cagney@redhat.com>
2390 * complaints.c (symfile_explanations): Remove new-line from
2391 ``isolated_message''.
2392 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2393 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2395 2002-09-20 Nick Clifton <nickc@redhat.com>
2397 * NEWS: Announce that V850EA ISA is no longer supported.
2398 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2400 2002-09-20 David Carlton <carlton@math.stanford.edu>
2402 * Makefile.in (c-lang.o): Correct dependencies.
2403 (utils.o): Gather dependencies.
2405 * c-lang.c: #include "gdb_string.h"
2407 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2409 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2410 * cli/cli-cmds.c (list_command): New function. Implements the new
2412 (_init_cli_cmds): Add new command definition.
2413 * gdb.1: Document edit command.
2414 * doc/gdb.texinfo: Document edit command.
2416 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2418 * source.c: Make global variables current_source_symtab and
2419 current_source_line static.
2420 (list_command): Moved to cli/cli-cmds.c.
2421 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2422 (get_first_line_listed): New accessor function.
2423 (get_lines_to_list): New accessor function.
2424 (get_current_source_symtab_and_line): New function. Retrieves the
2425 position in the source code that we consider current.
2426 (get_current_or_default_source_symtab_and_line): New function.
2427 Like the above but attempts to determine a default position if one
2428 is not currently defined.
2429 (set_current_source_symtab_and_line): New function. Sets the source
2430 code position considered current and returns the previously set one.
2431 (clear_current_source_symtab_and_line): Reset stored information about
2432 a current source line.
2433 (_initialize_source): Remove registration for the "list" command and
2435 * source.h: Add declarations for the new functions above.
2436 * symtab.h: Remove declarations for the global variables mentioned
2438 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2439 obtain current source line.
2440 * linespec.c (decode_line_1): Ditto.
2441 * macroscope.c (default_macro_scope): Ditto.
2442 * scm-lang.c (scm_unpac): Ditto.
2443 * stack.c (print_frame_info_base): Ditto.
2444 * symfile.c (clear_symtab_users): Ditto.
2445 * symtab.c (decode_line_spec): Ditto.
2446 * cli/cli-cmds.c (list_command): Moved here from source.c.
2447 (ambiguous_line_spec): Moved here from source.c.
2448 (_init_cli_cmds): Add definition for "list" and its alias.
2449 * Makefile.in: Update dependencies.
2451 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2453 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2454 with what gcc thinks is correct.
2456 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2458 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2459 multiple register push instruction.
2461 2002-09-19 Jim Blandy <jimb@redhat.com>
2463 Add support for distinct host and target character sets.
2464 * charset.c, charset.h: New files.
2465 * c-exp.y: #include "charset.h".
2466 (yylex): Convert character and string literals to the target
2467 character set, before returning them as the semantic value of the
2469 * c-lang.c: #include "charset.h".
2470 (c_emit_char): Use charset-specific methods to recognize
2471 characters with backslash escape forms, to decide which characters
2472 to print literally and which to print using numeric escape
2473 sequences, and to convert target characters to host characters
2475 * utils.c: #include "charset.h".
2476 (no_control_char_error): New function.
2477 (parse_escape): Use charset-specific methods to recognize
2478 backslash escapes, parse `control character' notation, and convert
2479 characters from the host character set to the target character set.
2480 * configure.in: Set the default host character set.
2481 Check where to find iconv, and what its argument types might be.
2482 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2483 * Makefile.in (SFILES): List charset.c.
2484 (COMMON_OBS): List charset.o.
2485 (charset.o): New rule.
2486 (charset_h): New header dependency variable.
2487 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2488 (LIBICONV): New variable, set by configure.
2489 (CLIBS): Include $(LIBICONV) here.
2490 * aclocal.m4, config.in, configure: Regenerated.
2492 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2494 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2497 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2499 * gdb_mbuild.sh: New file.
2501 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2503 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2505 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2507 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2508 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2509 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2510 valops.c, value.h: Revert previous change.
2512 2002-09-18 Michael Snyder <msnyder@redhat.com>
2514 Preliminary support for Objective-C:
2515 * defs.h (language_objc): New enum value.
2516 (puts_filtered_tabular): Declaration only, exported from utils.c.
2517 (skip_quoted): Delete, declared in completer.h.
2518 * c-exp.y: Include completer.h.
2521 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2522 New operator enum values.
2523 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2524 * language.c (binop_result_type): Handle language_objc case.
2525 (integral_type, character_type, string_type, boolean_type,
2526 structured_type, binop_type_check): Ditto.
2527 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2528 (struct objc_specific): Add to general_symbol_info.
2529 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2530 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2531 * parser-defs.h (struct objc_class_str): New struct type.
2532 (start_msglist, end_msglist, add_msglist): Declaration only,
2533 exported from objc-lang.c.
2534 * value.h (value_of_local, value_nsstring,
2535 call_function_by_hand_expecting_type): Exported from valops.c.
2536 * valops.c (find_function_addr): Export.
2537 (call_function_by_hand_expecting_type): New function.
2538 (value_of_local): New function.
2539 * symfile.c (init_filename_language_table): Add ".m" extension
2541 * utils.c (puts_filtered_tabular): New function.
2542 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2543 (set/show demangle): Extend help-string to refer to ObjC.
2544 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2545 * stabsread.c (symbol_reference_defined): Objective-C symbols
2546 may contain colons: make allowances when scanning stabs strings
2548 (objc_find_colon): New function.
2549 * printcmd.c (address_info): If language == objc then print
2550 "self" instead of "this".
2551 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2552 OP_NSSTRING, and OP_SELF.
2553 (prefixify_subexp): Ditto.
2554 * source.c (print_source_lines): Mention objc in comment.
2555 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2558 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2560 * complaints.h: Update copyright.
2561 (struct complaints): Declare.
2562 (struct complaint): Make `message' constant.
2563 (internal_complaint): Declare.
2564 (complaint): Declare.
2565 (complaint_root): Delete declaration.
2566 (symfile_complaints): Delete declaration.
2567 (struct complaints): Add opaque declaration.
2568 (clear_complaints): Add a complaints parameter.
2569 * complaints.c: Update copyright.
2570 (enum complaint_series): Define.
2571 (complaint_root): Delete.
2572 (struct complaints): Define.
2573 (complaint_sentinel, symfile_complaint_book): New variables.
2574 (symfile_explanations, symfile_complaints): New variables.
2576 (get_complaints): New function.
2577 (vcomplaint): New function.
2578 (complaint): New function.
2579 (internal_complaint): New function.
2580 (complain): Call vcomplain with symfile_complaint.
2581 (clear_complaints): Rewrite.
2582 (_initialize_complaints): Use add_setshow_command.
2583 * Makefile.in (complaints.o): Update dependencies.
2584 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2585 to call to clear_complaints.
2586 (new_symfile_objfile, reread_symbols): Ditto.
2587 (oldsyms_complaint): Delete.
2588 (empty_symtab_complaint, unknown_option_complaint): Delete.
2589 (free_named_symtabs): Use complaint instead of complain.
2591 2002-09-18 Michael Snyder <msnyder@redhat.com>
2593 Contributed by Apple Computer, Inc. Merged with current sources
2594 by Adam Fedor <fedor@doc.com> [cagney].
2596 * objc-lang.c: First clean-up round: comments, indentation.
2597 * objc-lang.h: Ditto.
2598 * objc-lang.y: Ditto.
2600 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2602 * maint.c (maintenance_internal_error): Print the parameter as the
2604 (maintenance_internal_warning): New function.
2605 (_initialize_maint_cmds): Add command `maint internal-warning'.
2607 * defs.h (internal_warning, internal_vwarning): Declare.
2608 * utils.c (struct internal_problem): Define.
2609 (internal_vproblem): New function.
2610 (internal_warning): New function.
2611 (internal_vwarning): New function.
2612 (internal_warning_problem, internal_error_problem): New variables.
2613 (internal_verror): Just call internal_vproblem.
2615 2002-09-18 Michael Snyder <msnyder@redhat.com>
2617 * objc-lang.c: New file, support for Objective-C.
2618 Preliminary check-in, not yet integrated into gdb.
2619 * objc-lang.h: New file.
2620 * objc-exp.y: New file.
2622 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2624 * infrun.c (signal_stop_update): Convert definition to ISO C.
2625 (signal_print_update): Ditto.
2626 (signal_pass_update): Ditto.
2627 * inflow.c (terminal_save_ours): Ditto.
2629 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2632 * config/djgpp/fnchange.lst: Handle name clashes between
2633 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2636 * i386-linux-tdep.h: Fix tipo.
2638 2002-09-18 Adam Fedor <fedor@gnu.org>
2640 * MAINTAINERS: Add myself to the Write After Approval list.
2642 2002-09-18 Jim Blandy <jimb@redhat.com>
2644 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2645 texthigh and textlow to reader-specific structs caused
2646 objfile_relocate to miss them. This is fixable, but the work that
2647 the change was supposed to prepare GDB for never got done anyway.
2649 2002-09-18 David Carlton <carlton@math.stanford.edu>
2651 * MAINTAINERS: Alphabetize Write After Approval list.
2653 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2656 * values.c (value_static_field): Call read_var_value.
2658 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2660 * valops.c (hand_function_call): Align the initial stack pointer
2661 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2662 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2664 * mips-tdep.c (mips_frame_align): New function.
2665 (mips_gdbarch_init): Set frame_align.
2666 * gdbarch.sh (FRAME_ALIGN): New method.
2667 * gdbarch.h, gdbarch.c: Re-generate.
2669 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2671 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2674 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2676 * NEWS: Mention that MIPS $fp behavior changed.
2677 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2678 reference to FP_REGNUM.
2679 (mipsnbsd_cannot_store_register): Ditto.
2680 * mips-linux-nat.c: Update copyright.
2681 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2682 (mips_linux_cannot_store_register): Ditto.
2683 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2684 * config/mips/tm-mips.h: Update copyright.
2685 (FP_REGNUM): Delete macro.
2686 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2687 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2688 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2689 (mips_r3041_reg_names, mips_r3051_reg_names)
2690 (mips_r3081_reg_names): Replace "fp" with "".
2693 2002-09-17 Theodore A. Roth <troth@verinet.com>
2695 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2696 generic_read_register_dummy() (PR gdb/703).
2697 (avr_push_return_address): #if 0 out unused vars.
2698 (avr_gdbarch_init): Enable use of avr_push_return_address().
2700 2002-09-17 Michael Snyder <msnyder@redhat.com>
2702 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2703 RTE will take care of it.
2705 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2707 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2708 invalid, return SP_REGNUM.
2710 2002-09-17 Michael Snyder <msnyder@redhat.com>
2712 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2713 point registers without sign extension.
2715 2002-09-17 Andrew Cagney <cagney@redhat.com>
2717 * blockframe.c (deprecated_read_register_dummy): Rename
2718 generic_read_register_dummy.
2719 * frame.c (frame_unwind_signed_register): New function.
2720 (frame_unwind_unsigned_register): New function.
2721 * frame.h (frame_unwind_signed_register): Declare.
2722 (frame_unwind_unsigned_register): Declare.
2723 (deprecated_read_register_dummy): Rename
2724 generic_read_register_dummy.
2726 * h8300-tdep.c (h8300_frame_chain): Update.
2727 (h8300_frame_saved_pc): Update.
2728 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2729 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2730 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2731 (s390_frame_chain): Update.
2732 * v850-tdep.c (v850_find_callers_reg): Update.
2733 (v850_frame_saved_pc): Update.
2734 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2735 (m32r_find_callers_reg): Update.
2736 (m32r_frame_saved_pc): Update.
2737 * sh-tdep.c (sh_find_callers_reg): Update.
2738 (sh64_get_saved_pr): Update.
2739 (sh_init_extra_frame_info): Update.
2740 (sh_init_extra_frame_info): Update.
2741 (sh64_init_extra_frame_info): Update.
2742 (sh64_init_extra_frame_info): Update.
2743 * mcore-tdep.c (mcore_find_callers_reg): Update.
2744 (mcore_frame_saved_pc): Update.
2745 (mcore_init_extra_frame_info): Update.
2746 * i386-tdep.c (i386_frame_saved_pc): Update.
2747 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2748 (ia64_init_extra_frame_info): Update.
2749 (ia64_init_extra_frame_info): Update.
2750 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2751 * cris-tdep.c (cris_init_extra_frame_info): Update.
2752 * avr-tdep.c (avr_frame_chain): Update.
2753 (avr_init_extra_frame_info): Update.
2754 (avr_frame_saved_pc): Update.
2755 * arm-tdep.c (arm_find_callers_reg): Update.
2756 (arm_init_extra_frame_info): Update.
2757 (arm_frame_saved_pc): Update.
2759 2002-09-17 Tom Tromey <tromey@redhat.com>
2761 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2764 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2766 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2767 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2769 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2772 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2774 * osfsolib.c: Remove file, replaced by solib-osf.c.
2775 * Makefile.in: Remove compilation rules for osfsolib.c.
2777 2002-09-16 David Carlton <carlton@math.stanford.edu>
2779 * cp-valprint.c (cp_print_class_method): Correct args to
2780 check_stub_method_group.
2782 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2784 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2785 `set architecture'. Unify naming convention of functions.
2786 (h8300_skip_prologue): Improve prologue analysis.
2787 (h8300_push_arguments): Rewritten to more closely match GCC's
2788 bizarre argument-passing behavior, along with the comment describing
2790 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2791 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2792 sim, remote-e7000.c, remote-hms.c and remote.c
2794 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2796 * i386-tdep.c (gdb_print_insn_i386): Removed.
2797 (i386_print_insn): New function.
2798 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2799 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2802 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2804 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2807 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2809 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2810 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2811 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2813 2002-09-13 Christopher Faylor <cgf@redhat.com>
2815 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2817 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2819 * gdbtypes.c (check_stub_method): Make static.
2820 (check_stub_method_group): New function.
2821 * gdbtypes.h: Update prototypes.
2822 * cp-support.c: New file.
2823 * cp-support.h: New file.
2825 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2826 (update_method_name_from_physname): New function.
2827 (read_member_functions): Correct method names for operators
2828 and v3 constructors/destructors. Separate v2 constructors and
2830 * Makefile.in (stabsread.o): Update dependencies.
2831 (SFILES): Add cp-support.c.
2832 (COMMON_OBS): Add cp-support.o.
2833 (cp_support_h, cp-support.o): Add.
2835 * cp-valprint.c (cp_print_class_method): Call
2836 check_stub_method_group instead of check_stub_method. Remove
2838 * p-valprint.c (pascal_object_print_class_method): Likewise.
2839 * valops.c (search_struct_method): Likewise.
2840 (find_method_list, value_struct_elt_for_reference): Likewise.
2842 2002-09-13 Andrew Cagney <cagney@redhat.com>
2844 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2845 * gdbarch.h, gdbarch.c: Regenerate.
2847 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2849 * frame.c (find_saved_register): Delete function.
2850 * frame.h (find_saved_register): Delete declaration.
2853 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2855 * mips-tdep.c (read_next_frame_reg): Re-hack using
2856 frame_register_unwind.
2858 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2860 * mips-tdep.c (mips_get_saved_register): Re-hack using
2861 frame_register_unwind.
2863 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2865 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2866 vector. Will be useful for Interix.
2867 * gdbarch.h, gdbarch.c: Regenerate.
2869 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2870 name of the malloc function by NAME_OF_MALLOC.
2872 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2874 * value.h (find_function_in_inferior): Add const keyword to
2875 one of the parameters. Allows us to invoke this function with
2877 * valops.c (find_function_in_inferior): Likewise.
2879 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2881 * exec.c (xfer_memory): Fix compilation warning with old versions
2883 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2885 2002-09-12 David Carlton <carlton@math.stanford.edu>
2887 * symtab.h: Run through gdb_indent.h.
2888 Add 2002 to Copyright year list.
2890 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2892 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2894 * MAINTAINERS: Add myself to write after approval list.
2896 2002-09-11 J. Brobecker <brobecker@gnat.com>
2898 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2900 2002-09-11 J. Brobecker <brobecker@gnat.com>
2902 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2905 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2907 * procfs.c (do_detach): Clear current signal, not just fault.
2908 Corrects problem with breakpoint trap signal leaking to detached
2911 2002-09-10 Michael Snyder <msnyder@redhat.com>
2913 * buildsym.c (finish_block): Protect against null pointer.
2915 2002-09-10 Andrew Cagney <cagney@redhat.com>
2917 * infcmd.c (default_print_registers_info): Send all output to
2918 ``file'' instead of ``gdb_stdout''.
2920 2002-09-10 Michael Snyder <msnyder@redhat.com>
2922 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2923 LONGEST, and use signed register read (addresses are sign-
2926 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2928 * event-loop.c (gdb_do_one_event): Make public.
2929 * event-loop.h (gdb_do_one_event): Declare.
2931 2002-09-10 Jeff Law <law@redhat.com>
2933 * infttrace.c (child_resume): Simplify and rework to avoid
2936 2002-09-09 Fred Fish <fnf@intrinsity.com>
2938 * printcmd.c (print_scalar_formatted): "len" is the number of
2939 target bytes, NOT the number of target bits.
2941 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2943 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2944 * top.c (init_main): Set rl_terminal_name.
2946 2002-09-08 Aidan Skinner <aidan@velvet.net>
2948 * ada-lang.c (ada_array_bound, ada_type_match,
2949 _initialize_ada_language): Fix K&R definitions.
2950 * ada-tasks.c (get_current_task): Fix K&R definitions.
2951 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2953 2002-09-07 Christopher Faylor <cgf@redhat.com>
2955 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2958 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2960 * i386-tdep.c (i386_register_virtual_type,
2961 i386_register_convertible, i386_register_convert_to_virtual,
2962 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2963 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2964 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2965 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2966 Don't set push_arguments twice.
2968 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2969 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2970 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2971 sigtramp_end to NULL.
2972 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2974 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2976 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2979 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2980 * gdbarch.h, gdbarch.c: Re-generate.
2981 * blockframe.c (find_pc_sect_partial_function): Convert to use
2982 SIGTRAMP_START_P predicate.
2984 2002-09-05 Michael Snyder <msnyder@redhat.com>
2986 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2987 generic_dummy_frame method and old method. Also distinguish
2988 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2989 (arm_extract_return_value): Use new regcache method.
2991 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2992 adjustment that doesn't conform to the ABI.
2993 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2994 saved regcache, not from current regcache.
2996 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2998 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3001 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3003 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3004 if arm_apcs_32 is false.
3006 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3008 GDB 5.3 branch created.
3010 2002-09-03 Theodore A. Roth <troth@verinet.com>
3012 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3013 generic_unwind_get_saved_register.
3015 2002-09-03 David Carlton <carlton@math.stanford.edu>
3017 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3018 argument (PR gdb/653). Update call to smash_to_method_type.
3019 (read_structure_scope): Update call to dwarf2_add_member_fn.
3021 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3023 * x86-64-linux-tdep.c: Include gdb_string.h
3024 * x86-64-linux-nat.c: Ditto.
3026 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3028 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3029 when YYDEBUG is set to 1.
3030 * c-exp.y: Likewise.
3031 * f-exp.y: Likewise.
3032 * jv-exp.y: Likewise.
3033 * m2-exp.y: Likewise.
3034 * p-exp.y: Likewise.
3036 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3038 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3040 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3041 solib_svr4_fetch_link_map_offsets to
3042 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3043 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3044 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3045 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3046 solib-svr4.o, and solib-legacy.o.
3047 * config/i386/tm-nbsd.h: Include solib.h.
3049 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3051 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3052 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3053 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3054 comment noting that this needs its own target configuration.
3055 * config/i386/nbsd.mt: New file.
3056 * config/i386/nbsdaout.mt: Remove.
3057 * config/i386/nbsdelf.mt: Ditto.
3058 * config/i386/tm-nbsdaout.h: Ditto.
3060 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3062 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3063 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3064 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3066 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3067 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3068 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3070 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3072 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3073 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3074 * i386-tdep.h (i386bsd_init_abi): New prototype.
3075 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3076 function declaration.
3077 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3078 for NetBSD-a.out or NetBSD-ELF.
3079 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3080 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3081 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3082 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3084 (i386nbsd_pc_in_sigtramp): New function.
3085 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3086 i386nbsd_pc_in_sigtramp.
3087 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3088 and i386nbsdelf_init_abi OS ABI handlers.
3089 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3090 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3092 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3094 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3095 registers if the target really has them.
3097 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3099 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3102 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3104 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3106 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3107 (alphanbsd_skip_sigtramp_frame): New functions.
3108 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3109 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3110 to alphanbsd_sigcontext_addr.
3112 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3114 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3116 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3117 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3118 nbsd_pc_in_sigtramp.
3119 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3120 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3121 * nbsd-tdep.c: Include gdb_string.h.
3122 (nbsd_pc_in_sigtramp): New function.
3123 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3124 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3125 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3126 ppcnbsd_pc_in_sigtramp.
3127 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3128 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3129 shnbsd_pc_in_sigtramp.
3130 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3131 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3132 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3134 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3136 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3137 watchpoints to NULL.
3138 (insert_breakpoints): set val field of watchpoints if NULL.
3141 2002-08-29 Jim Blandy <jimb@redhat.com>
3143 * symtab.c (lookup_symbol_aux): In the cases where we find a
3144 minimal symbol of an appropriate name and use its address to
3145 select a symtab to read and search, use `name' (as passed to us)
3146 as the demangled name when searching the symtab's global and
3147 static blocks, not the minsym's name.
3149 2002-08-29 Keith Seitz <keiths@redhat.com>
3151 * stack.c (print_frame_info_base): Always set current_source_symtab
3152 and current_source_line.
3154 2002-08-29 Donn Terry <donnte@microsoft.com>
3156 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3158 2002-08-28 Keith Seitz <keiths@redhat.com>
3160 * stack.c (select_frame): Add FIXME concerning selected-frame
3162 (select_frame_command): Send selected-frame-level-changed
3163 event notification, but only if the level actually changed.
3164 (up_silently_base): Add selected-frame-level-changed event
3166 (down_silently_base): Likewise.
3168 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3170 * Makefile.in: Update dependencies for all gdb/*.c files.
3172 2002-08-27 Tom Tromey <tromey@redhat.com>
3174 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3175 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3176 Update dependencies.
3177 * i387-tdep.c: Include gdb_string.h.
3178 * osabi.c: Likewise.
3179 * i386-linux-nat.c: Likewise.
3180 * lin-lwp.c: Likewise.
3181 * ax-gdb.c: Likewise.
3182 * signals/signals.c: Likewise.
3183 * jv-valprint.c: Likewise.
3184 * p-lang.c: Likewise.
3185 * c-valprint.c: Likewise.
3186 * cp-abi.c: Likewise.
3188 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3190 * cli/cli-script.h (copy_command_lines): Export.
3191 * breakpoint.c: Include cli/cli-script.h.
3192 * Makefile.in (breakpoint.o): Update dependencies.
3194 2002-08-26 Michael Snyder <msnyder@redhat.com>
3196 * breakpoint.c (insert_breakpoints): Protect all references
3197 to 'process_warning'. Shorten long lines.
3199 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3201 * cli/cli-script.c (copy_command_lines): New function.
3202 * defs.h (copy_command_lines): Export.
3203 * testsuite/gdb.base/commands.exp: New tests for commands
3204 attached to a temporary breakpoint, and for commands that
3205 delete the breakpoint they are attached to.
3207 2002-08-26 Michael Snyder <msnyder@redhat.com>
3209 * breakpoint.c (bpstat_stop_status): Instead of copying the
3210 pointer to the breakpoint commands struct, make a new copy
3211 of the struct and point to that.
3212 (bpstat_clear): Free the commands struct.
3213 (bpstat_clear_actions): Free the commands struct.
3214 (bpstat_do_actions): Free the command actions. Also execute
3215 the local cleanups, instead of deleting them.
3216 (delete_breakpoint): Leave the commands field of the bpstat
3217 chain alone -- it will be freed later.
3219 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3221 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3222 deleted in 2002-08-20 commit. This function is still used by
3225 2002-08-26 Keith Seitz <keiths@redhat.com>
3227 * gdb-events.sh: Add selected-frame-level-changed event.
3228 * gdb-events.c: Regenerated.
3229 * gdb-events.h: Regenerated.
3231 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3234 * inflow.c (terminal_save_ours): New function to save terminal
3236 * inferior.h (terminal_save_ours): Declare.
3237 * target.c (debug_to_terminal_save_ours): New function.
3238 (cleanup_target): Defaults to_terminal_save_ours.
3239 (update_current_target): Inherit to_terminal_save_ours.
3240 (setup_target_debug): Set to_terminal_save_ours.
3241 * target.h (target_terminal_save_ours): New to save terminal settings.
3242 (target_ops): New member to_terminal_save_ours.
3243 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3244 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3245 * inftarg.c (init_child_ops): Likewise.
3246 * m3-nat.c (init_m3_ops): Likewise.
3247 * procfs.c (init_procfs_ops): Likewise.
3248 * wince.c (init_child_ops): Likewise.
3249 * win32-nat.c (init_child_ops): Likewise.
3250 * sol-thread.c (init_sol_thread_ops): Likewise.
3252 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3254 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3255 use regcache_* functions.
3256 (i386_gdbarch_init): Set store_return_value instead of
3257 deprecated_store_return_value.
3259 * regcache.c (regcache_raw_write_signed,
3260 regcache_raw_write_unsigned): New functions.
3261 * regcache.h (regcache_raw_write_signed,
3262 regcache_raw_write_unsigned): New prototypes.
3264 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3266 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3267 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3268 source file dependencies. Cleanup corresponding generator rules.
3270 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3272 * regcache.h (register_offset_hack): Declare.
3273 (regcache_cooked_read_using_offset_hack): Declare.
3274 (regcache_cooked_write_using_offset_hack): Declare.
3276 * regcache.c (register_offset_hack): New function.
3277 (regcache_cooked_read_using_offset_hack): New function.
3278 (regcache_cooked_write_using_offset_hack): New function.
3279 (regcache_dump): Check that the registers, according to their
3280 offset, are packed hard against each other.
3281 (cooked_xfer_using_offset_hack): New function.
3283 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3285 * regcache.c (struct regcache_descr): Add field register_type.
3286 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3288 (init_regcache_descr): Initialize register_type. Pass the descr
3289 to init_legacy_regcache_descr. Use register_type instead of
3290 REGISTER_VIRTUAL_TYPE.
3291 (register_type): New function.
3292 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3293 * regcache.h (register_type): Declare.
3295 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3297 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3298 instead of deprecated_store_return_value. Fix fallout from
3299 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3301 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3303 * regcache.c (max_register_size): New function.
3304 (init_legacy_regcache_descr): Ensure that max_register_size is
3305 large enough for REGISTER_VIRTUAL_SIZE.
3306 * regcache.h (max_register_size): Declare.
3308 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3310 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3312 (e500_extract_return_value): Change type of valbuf pointer to
3315 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3317 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3320 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3321 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3322 long long) to prevent compiler warning on 64-bit systems.
3324 2002-08-23 Andrew Cagney <cagney@redhat.com>
3326 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3327 (DEPRECATED_STORE_RETURN_VALUE): New method.
3328 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3329 * gdbarch.h, gdbarch.c: Re-generate.
3331 * values.c (set_return_value): Pass current_regcache to
3333 * arch-utils.h (legacy_store_return_value): Declare.
3334 * arch-utils.c (legacy_store_return_value): New function.
3335 (legacy_extract_return_value): Update parameters.
3337 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3339 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3340 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3341 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3342 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3343 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3344 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3345 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3346 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3347 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3348 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3351 * i386-tdep.c (i386_extract_return_value): Update.
3352 * arch-utils.c (legacy_extract_return_value): Update.
3353 * frv-tdep.c (frv_gdbarch_init): Update.
3354 * cris-tdep.c (cris_gdbarch_init): Update.
3355 * d10v-tdep.c (d10v_gdbarch_init): Update.
3356 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3357 * m68k-tdep.c (m68k_gdbarch_init): Update.
3358 * mcore-tdep.c (mcore_gdbarch_init): Update.
3359 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3360 * s390-tdep.c (s390_gdbarch_init): Update.
3361 * sparc-tdep.c (sparc_gdbarch_init): Update.
3362 * sh-tdep.c (sh_gdbarch_init): Update.
3363 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3364 * v850-tdep.c (v850_gdbarch_init): Update.
3365 * avr-tdep.c (avr_gdbarch_init): Update.
3366 * ia64-tdep.c (ia64_gdbarch_init): Update.
3367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3368 * vax-tdep.c (vax_gdbarch_init): Update.
3369 * alpha-tdep.c (alpha_gdbarch_init): Update.
3370 * arm-tdep.c (arm_gdbarch_init): Update.
3371 * mips-tdep.c (mips_gdbarch_init): Update.
3372 * i386-tdep.c (i386_gdbarch_init): Update.
3374 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3376 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3377 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3379 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3381 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3384 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3386 * infrun.c (handle_inferior_event): Move a comment outside of a
3387 function call, in order to avoid indent reformatting this part
3388 of the code in an unreadable way.
3390 2002-08-23 Grace Sainsbury <graces@redhat.com>
3392 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3393 when breakpoints fail. Move general breakpoint error messages to
3395 * breakpoint.c (insert_breakpoints): Change warnings when
3396 breakpoints are nto inserted to specify the type. Remove call to
3397 memory_error when hardware breakpoints can't be inserted. Remove
3398 multiple calls to warning so all messages are sent to the user at
3400 (delete_breakpoints): Make insert error messsages more explicit.
3402 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3404 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3405 gdbserver/ChangeLog.
3407 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3409 * i386-tdep.c: Include "objfiles.h".
3410 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3411 skip_trampoline_code.
3412 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3413 (CPLUS_MARKER): Define to '.'.
3415 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3417 (linux_corefile_thread_callback): Increase args->num_notes.
3418 (linux_make_note_section): Initialize thread_args.num_notes, and
3419 use it to determine whether notes for any threads were created.
3421 2002-08-23 Donn Terry <donnte@microsoft.com>
3423 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3424 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3426 (write_with_trace): Conditionalize out the switch branch handling
3427 PCSHOLD if the corresponding macro is not defined. Likewise for
3428 PRSABORT and PRSTOP.
3429 This change will be needed by the Interix port.
3431 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3433 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3434 write_register wherever possible instead of manipulating the
3435 register bytes directly.
3436 Assign VALUE_CONTENTS to a variable and use that.
3437 The GPR numbers are now dependent on the architecture.
3439 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3441 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3443 (skip_prologue): Add support for BookE/e500 instructions.
3444 (e500_extract_return_value): New function.
3445 (frame_get_saved_regs): Add support for saving ev registers and
3447 (e500_store_return_value): New function.
3448 (rs6000_gdbarch_init): Move up default intializations of
3449 deprecated_extract_return_value and store_return_value. Overwrite
3450 init of store_return_value with e500 specific version.
3451 Set extract_return_value for e500.
3453 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3455 * blockframe.c (generic_call_dummy_register_unwind): Use
3456 regcache_cooked_read to catch cases in which the variable is
3457 stored in a pseudo register.
3459 2002-08-22 Andrew Cagney <cagney@redhat.com>
3461 * NEWS: Mention that the i960 has been made obsolete.
3462 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3464 (remote-nrom.o): Obsolete target.
3465 (remote-nindy.o, i960-tdep.o): Ditto.
3466 * remote-nrom.c: Make file obsolete.
3467 * remote-nindy.c, remote-vx960.c: Ditto.
3468 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3469 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3470 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3471 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3472 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3473 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3474 i960-*-vxworks* obsolete.
3475 * MAINTAINERS: Note that the i960 is obsolete.
3477 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3479 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3480 detach to allow reinitialization.
3482 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3484 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3487 2002-08-22 Jim Blandy <jimb@redhat.com>
3489 * coffread.c (coff_symfile_read): Don't try to read the line
3490 number table from disk if the image file doesn't have a symbol
3491 table; we'll never actually look at the info anyway, and Windows
3492 ships DLL's with bogus file offsets for the line number data.
3494 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3496 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3499 2002-08-21 Michael Snyder <msnyder@redhat.com>
3501 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3502 (MSYMBOL_SIZE): Replace macro with function.
3503 (DEFAULT_MIPS_TYPE): Delete unused macro.
3504 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3505 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3507 2002-08-21 Jim Blandy <jimb@redhat.com>
3509 * valops.c (value_cast): Simplify and correct logic for doing a
3510 static cast from a pointer to a base class to a pointer to a
3513 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3515 * infcmd.c (default_print_registers_info): Replace
3517 (registers_info): Use gdbarch_print_registers_info instead of
3519 * inferior.h (default_print_registers_info): Replace
3521 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3522 (DO_REGISTERS_INFO): Change to a predicate function.
3523 * gdbarch.h, gdbarch.c: Regenerate.
3525 2002-08-21 Keith Seitz <keiths@redhat.com>
3527 * gdb-events.sh: Add target-changed event.
3528 * gdb-events.c: Regenerated.
3529 * gdb-events.c: Regenerated.
3530 * valops.c (value_assign): Add target-changed event notification
3531 to inlval_register, lval_memory, and lval_reg_frame_relative.
3533 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3535 * NEWS: Add an entry regarding the improvement of the next/step
3536 operation on Alpha Tru64 multi-processor machines.
3538 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3540 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3542 * Makefile.in: Update all _h macro definitions.
3543 * Makefile.in (install-gdbtk): Move to install section.
3544 (rdi-share/libangsd.a): Move to end of file.
3546 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3548 * frame.c (frame_register_unwind): When a register, set addrp to
3549 the register's byte.
3551 2002-08-20 Michael Snyder <msnyder@redhat.com>
3553 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3554 used locally, so move them from the target machine header to here.
3555 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3556 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3558 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3560 2002-08-20 Andrew Cagney <cagney@redhat.com>
3562 * NEWS: Mention that the Apollo line was made obsolete.
3563 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3564 m68*-hp-hpux* obsolete.
3565 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3566 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3567 * buildsym.c (make_blockvector): Make static.
3568 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3569 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3570 (ALLDEPFILES): Remove dstread.c.
3571 (dstread.o): Obsolete make rule.
3572 * dstread.c: Makefile obsolete.
3574 * config/m68k/hp300hpux.mt: Ditto.
3575 * config/m68k/hp300hpux.mh: Ditto.
3576 * config/m68k/hp300bsd.mt: Ditto.
3577 * config/m68k/hp300bsd.mh: Ditto.
3578 * config/m68k/apollo68b.mt: Ditto.
3579 * config/m68k/apollo68v.mh: Ditto.
3580 * config/m68k/apollo68b.mh: Ditto.
3582 2002-08-20 Michael Snyder <msnyder@redhat.com>
3584 * mips-tdep.c (mips_in_return_stub): Make static.
3585 (mips_gdbarch_init): Set in_solib_return_trampoline.
3586 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3588 2002-08-20 Michael Snyder <msnyder@redhat.com>
3590 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3591 * gdbarch.c, gdbarch.h: Regenerate.
3592 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3594 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3596 2002-08-20 Michael Snyder <msnyder@redhat.com>
3598 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3599 (mips_gdbarch_init): Set skip_trampoline_code,
3600 in_solib_call_trampoline.
3601 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3602 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3604 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3606 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3608 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3609 vector type for ev registers.
3610 (e500_pseudo_register_read): New function.
3611 (e500_pseudo_register_write): New function.
3612 (e500_dwarf2_reg_to_regnum): New function.
3613 (PPC_UISA_NOFP_SPRS): New macro.
3614 (PPC_EV_REGS): New macro.
3615 (PPC_GPRS_PSEUDO_REGS): New macro.
3616 (registers_e500): New register set for e500.
3617 (variants): Add e500 variant.
3618 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3619 before setting architectural dependent variations. Initialize ev
3620 registers numbers. Add case for e500 architecture. Set the
3621 number of pseudo registers.
3623 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3625 * rs6000-tdep.c: Clean up comments.
3627 2002-08-20 Andrew Cagney <cagney@redhat.com>
3629 * h8300-tdep.c: Re-indent file.
3631 2002-08-20 Jim Blandy <jimb@redhat.com>
3633 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3636 2002-08-20 Keith Seitz <keiths@redhat.com>
3638 * breakpoints.c (watch_command_1): Use internal breakpoint
3639 when setting a watchpoint_scope breakpoint.
3641 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3643 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3644 (build_builtin_type_vec64i): Ditto.
3645 (build_builtin_type_vec128): Ditto.
3646 (build_builtin_type_vec128i): Ditto.
3648 2002-08-19 Michael Snyder <msnyder@redhat.com>
3650 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3651 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3652 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3653 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3654 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3655 CALL_DUMMY_ADDRESS): Delete.
3656 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3657 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3658 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3659 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3660 push_return_address.
3661 (mips_register_raw_size, mips_eabi_use_struct_convention,
3662 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3663 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3664 mips_init_extra_frame_info, mips_eabi_push_arguments,
3665 mips_n32n64_push_arguments, mips_push_return_address,
3666 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3667 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3669 2002-08-19 Michael Snyder <msnyder@redhat.com>
3671 * mips-tdep.c (mips_frame_num_args): New function.
3672 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3673 frame_saved_pc, frame_args_address, frame_locals_address,
3674 frame_num_args, and frame_args_skip.
3675 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3676 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3677 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3678 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3680 2002-08-20 Michael Snyder <msnyder@redhat.com>
3682 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3683 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3684 * mips-tdep.c (mips_store_struct_return): New function.
3685 (mips_extract_struct_value_address): New function.
3686 (mips_gdbarch_init): Set store_struct_return and
3687 extract_struct_value_address.
3689 2002-08-20 David Carlton <carlton@math.stanford.edu>
3691 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3692 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3693 (read_file_scope): Check that line_header is nonzero before
3694 decoding macro information.
3696 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3698 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3699 flag the general-purpose registers as floating-point on targets
3700 that don't support the floating-point registers.
3702 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3704 * rs6000-tdep.c (altivec_register_p): Delete.
3705 (rs6000_do_altivec_registers): Delete.
3706 (rs6000_altivec_registers_info): Delete.
3707 (rs6000_do_registers_info): Delete.
3708 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3709 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3711 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3713 * infcmd.c (do_registers_info): Print vector registers in hex
3715 (print_vector_info): Check that printing registers
3717 (print_float_info): Ditto.
3719 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3721 * mips-tdep.c (mips_gdbarch_init): Update.
3722 (mips_o32_extract_return_value): Rewrite.
3723 (mips_o32_store_return_value): Rewrite.
3724 (mips_o32_xfer_return_value): New function.
3725 (mips_xfer_register): Tweak debug print message. Allow for
3726 buf_offset when dumping the value transfered.
3728 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3730 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3731 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3732 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3733 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3734 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3736 2002-08-14 Michael Snyder <msnyder@redhat.com>
3738 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3740 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3742 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3744 (P): New macro to define a register as a pseudo register.
3745 (R, R4, R8, R16, FR32, R64, R0): Updated.
3746 (struct variant): Add new fields for number of pseudo registers
3747 and number of total registers.
3748 (tot_num_registers): New macro replacing....
3749 (num_registers): ...deleted macro.
3750 (num_registers): New function.
3751 (num_pseudo_registers): New function.
3752 (variants): Update all variants to intialize new fields correctly.
3753 Postpone initialization of number of pseudo regs and real regs.
3754 (init_variants): New function.
3755 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3758 2002-08-19 David Carlton <carlton@math.stanford.edu>
3760 * valops.c (search_struct_field): Change error message to treat
3761 return value of 0 from value_static_field as meaning that field is
3763 (value_struct_elt_for_reference): Ditto.
3764 * values.c (value_static_field): Treat an unresolved location the
3765 same as a nonexistent symbol. Fix PR gdb/635.
3766 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3767 enclosed. Fix PR gdb/574.
3768 * MAINTAINERS: Add self to Write After Approval list.
3770 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3772 * mips-tdep.c (mips_xfer_register): New function.
3773 (mips_n32n64_extract_return_value): Rewrite.
3774 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3775 instead of deprecated_extract_return_value.
3777 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3779 * rs6000-tdep.c (TDEP): Delete macro.
3780 (branch_dest): Replace use of TDEP macro with its body.
3781 (rs6000_pop_frame): Ditto.
3782 (rs6000_push_arguments): Ditto.
3783 (rs6000_skip_trampoline_code): Ditto.
3784 (rs6000_frame_saved_pc): Ditto.
3785 (rs6000_frame_chain): Ditto.
3786 (rs6000_register_name): Ditto.
3787 (rs6000_register_byte): Ditto.
3788 (rs6000_register_raw_size): Ditto.
3789 (rs6000_register_virtual_type): Ditto.
3790 (rs6000_register_convertible): Ditto.
3791 (rs6000_convert_from_func_ptr_addr): Ditto.
3793 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3795 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3797 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3798 MIPS_LINUX_JB_ELEMENT_SIZE.
3799 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3800 for MAX_REGISTER_RAW_SIZE arrays.
3801 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3802 MIPS_LINUX_JB_ELEMENT_SIZE.
3804 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3806 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3808 2002-08-19 Aidan Skinner <aidan@velvet.net>
3810 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3811 ada-valprint.c ada-tasks.c.
3812 (YYFILES): Add ada-exp.y.
3813 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3814 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3815 (ada-exp.tab.o): New target.
3817 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3819 * regcache.c (regcache_xfer_part): New function.
3820 (regcache_raw_read_part): New function.
3821 (regcache_raw_write_part): New function.
3822 (regcache_cooked_read_part): New function.
3823 (regcache_cooked_write_part): New function.
3824 * regcache.h (regcache_raw_read_part): Declare.
3825 (regcache_raw_write_part): Declare.
3826 (regcache_cooked_read_part): Declare.
3827 (regcache_cooked_write_part): Declare.
3829 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3831 * remote.c (remote_open_1): Add async_p.
3832 (remote_async_open_1): Delete.
3833 (open_remote_target): Delete.
3834 (remote_open, extended_remote_open): Update calls to remote_open_1.
3835 (remote_async_open, extended_remote_async_open): Call
3836 remote_open_1 instead of remote_async_open_1.
3838 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3840 * blockframe.c: Fix a few coding standard violations.
3842 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3844 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3846 * config/i386/tm-i386sco5.h: ... here. File removed.
3847 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3849 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3850 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3851 (TM_FILE): Set to tm-i386.h.
3852 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3853 * config/i386/tm-i386v.h: Remove file.
3854 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3855 instead of "i386/tm-i386v.h".
3856 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3857 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3859 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3860 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3863 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3865 * config/i386/nm-i386v.h: Add protection against
3867 (i386_register_u_addr): Remove prototype.
3868 (register_u_addr): New prototype.
3869 (REGISTER_U_ADDR): Redefine accordingly.
3870 * i386v-nat.c: Improve several comments.
3871 (i386_register_u_addr): Change signature and rename to
3872 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3875 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3877 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3878 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3879 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3880 deprecated_extract_return_value.
3881 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3882 rename mips_o32o64_push_arguments.
3883 (mips_gdbarch_init): Update.
3884 (mips_extract_return_value): Delete.
3885 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3886 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3887 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3888 (mips_n32n64_extract_return_value): Clone
3889 mips_extract_return_value.
3890 (mips_store_return_value): Delete.
3891 (mips_o32_store_return_value): Clone mips_store_return_value.
3892 (mips_o64_store_return_value): Clone mips_store_return_value.
3893 (mips_eabi_store_return_value): Clone mips_store_return_value.
3894 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3896 2002-08-18 Aidan Skinner <aidan@velvet.net>
3898 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3899 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3901 2002-08-18 Aidan Skinner <aidan@velvet.net>
3903 * ada-lang.c: Run through gdb_indent.sh.
3904 * ada-lang.h: Run through gdb_indent.sh.
3905 * ada-tasks.c: Run through gdb_indent.sh.
3906 * ada-typeprint.c: Run through gdb_indent.sh.
3907 * ada-valprint.c: Run through gdb_indent.sh.
3909 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3911 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3914 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3916 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3918 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3919 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3921 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3922 write_register_gen instead of write_register_bytes.
3924 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3925 i[3456]-*-osf1mk* configurations have been made obsolete.
3926 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3927 i[3456]86-*-osf1mk* hosts obsolete.
3928 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3930 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3931 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3932 config/i386/i386m3.mt, config/i386/nm-m3.h,
3933 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3934 config/i386/i386mk.mh, config/i386/i386mk.mt,
3935 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3937 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3938 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3939 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3941 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3943 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3944 (hppa_value_returned_from_stack): Declare.
3945 (hppa_extract_return_value): Declare.
3946 * config/pa/hppa.mt: New file.
3947 * configure.tgt: Recognize hppa*-*-*.
3948 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3950 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3952 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3955 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3957 * top.c (gdb_rl_operate_and_get_next): Make sure
3958 operate-and-get-next functions correctly even when the history
3959 list is completely filled.
3961 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3963 * MAINTAINERS (Target Instruction Set Architectures): Rename
3964 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3965 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3966 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3967 already listed under Host/Native.
3969 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3970 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3973 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3975 * config/ia64/ia64.mt: New file.
3976 * config/alpha/alpha.mt: New file.
3977 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3978 ia64-linux-gnu. Mention that ia64-elf is broken.
3979 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3981 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3983 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3984 generic_func_frame_valid instead of func_frame_valid.
3986 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3988 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3989 procfs appears to be broken when debugging on multi-processor
3990 machines. So enable software single stepping in order to avoid
3991 using the procfs interface to do next/step operations, using
3992 internal breakpoints instead.
3994 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3995 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3996 make this pc address equal to the value it would have if the
3997 system stepping capability was used. Also set a new flag used
3998 to ensure that we don't readjust the PC one more time later.
4000 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4001 address by DECR_PC_AFTER_BREAK when software single step is
4002 in use for this architecture, as this has already been taken
4003 care of in handle_inferior_event().
4005 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4007 * infrun.c (handle_inferior_event): Minor reformatting, to make
4008 a rather long condition expression easier to read.
4010 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4012 * Makefile.in (gdbtk.o): Move to end of file.
4013 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4014 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4015 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4016 (gdbtk-wrapper.o, gdbres.o): Ditto.
4018 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4020 * Makefile.in (copying.o): Separate out compile rule.
4021 (hpux-thread.o, procfs.o, signals.o): Ditto.
4022 (v850ice.o, z8k-tdep.o): Ditto.
4023 (tui-file.o): Move to TUI section.
4024 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4025 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4027 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4029 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4030 skip_trampoline_code, for better namespace-proofing.
4032 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4034 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4036 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4038 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4040 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4041 signal, check whether we hit a breakpoint before checking for a
4042 single step breakpoint. Otherwise, GDB fails to notice that a
4043 breakpoint has been hit when stepping onto a breakpoint.
4045 2002-08-16 Keith Seitz <keiths@redhat.com>
4047 * gdb-events.sh (clear_gdb_event_hooks): New function.
4048 * gdb-events.c: Regenerate.
4049 * gdb-events.h: Regenerate.
4051 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4053 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4054 not_a_sw_breakpoint.
4055 * breakpoint.h (bpstat_stop_status): Add parameter names.
4057 2002-08-16 Grace Sainsbury <graces@redhat.com>
4059 * remote.c (remote_insert_hw_breakpoint)
4060 (remote_remove_hw_breakpoint): Fix calculation of length field
4063 2002-08-15 Michael Snyder <msnyder@redhat.com>
4065 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4066 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4067 (supply_fpregset): Ditto.
4069 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4070 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4071 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4072 (TARGET_READ_SP): Delete.
4073 (DO_REGISTERS_INFO): Delete.
4074 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4076 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4077 from macros to functions.
4079 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4080 (mips_register_convertible, mips_register_convert_to_virtual,
4081 mips_register_convert_to_raw): Make static.
4082 (mips_read_sp): New function.
4083 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4084 (mips_do_registers_info): Make static.
4085 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4086 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4087 (mips_register_convert_from_type, mips_register_convert_to_type):
4089 (mips_gdbarch_init): Set up function_start_offset,
4090 register_virtual_size, pc_in_sigtramp.
4092 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4094 * infcmd.c (vector_info): New function.
4095 (_initialize_infcmd): Add command "info vector".
4096 (print_vector_info): New function.
4098 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4099 * gdbarch.h, gdbarch.c: Regenerate.
4101 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4103 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4104 ``print_all''. Only print vector registers when ``print_all''.
4106 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4108 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4109 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4111 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4112 Add `args' parameter.
4113 * gdbarch.h, gdbarch.c: Regenerate.
4115 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4117 * infcmd.c (float_info): Call print_float_info.
4118 (print_float_info): New function. By default, print the
4119 floating-point registers.
4121 * arch-utils.h (default_print_float_info): Delete declaration.
4122 * arch-utils.c (default_print_float_info): Delete function.
4124 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4126 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4129 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4132 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4133 * configure.host: Make i[3456]86-*-aix host obsolete.
4134 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4135 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4136 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4137 config/i386/xm-i386aix.h: Make files obsolete.
4138 * i386aix-nat.c: Make file obsolete.
4139 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4140 (i386aix-nat.o): Make target obsolete.
4142 * config/i386/nm-gnu.h: Removed.
4143 * config/i386/nm-i386gnu.h: New file.
4144 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4145 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4147 * config/i386/tm-i386gnu.h: ... here. Removed.
4148 * config/i386/xm-i386gnu.h: Removed.
4149 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4150 (NAT_FILE): Set to nm-i386gnu.h.
4151 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4152 * i386-tdep.c: New file.
4153 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4154 (i386gnu-tdep.o): Specify dependencies.
4156 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4158 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4159 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4160 Adjust a few comments to reflect reality a bit closer.
4161 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4162 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4163 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4164 target_insert_watchpoint, target_remove_watchpoint):
4166 * config/i386/nm-i386sco5.h: ... here.
4167 (kernel_u_size): Add prototype. Improve a few comments and add
4168 protection against multiple inclusion.
4170 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4173 * uw-thread.c (SP_ARG0): Define if not already defined.
4174 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4176 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4178 * config/i386/tm-i386.h: Don't include "regcache.h".
4180 * i387-tdep.h (i387_print_float_info): New prototype.
4181 * i387-tdep.c (print_i387_value, print_i387_ext,
4182 print_i387_status_word, print_i387_control_word): Add `struct
4183 ui_file *' argument and use it for output.
4184 (i387_print_float_info): Renamed from i387_float_info. Add
4185 `struct gdbarch *' and `struct ui_file *' arguments and use the
4187 * i386-tdep.c: Include "i387-tdep.h".
4188 (i386_gdbarch_init): Set print_float_info.
4189 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4190 (FLOAT_INFO): Remove define.
4192 2002-08-13 Michael Snyder <msnyder@redhat.com>
4194 * mips-tdep.c (mips_push_arguments): Rename to
4195 mips_eabi_push_arguments, and tune for EABI.
4196 (MIPS_REGS_HAVE_HOME_P): Delete.
4197 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4198 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4199 Delete references to mips_regs_have_home_p.
4201 2002-08-14 Keith Seitz <keiths@redhat.com>
4203 * Makefile.in (install-gdbtk): Create insight plugin directory.
4204 Install plugins.tcl file.
4206 2002-08-14 Keith Seitz <keiths@redhat.com>
4208 * configure.in: Move SUBDIRS to near top of the file so that
4209 --enable options may add things to it.
4210 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4211 * configure: Regenerate.
4213 2002-08-13 Michael Snyder <msnyder@redhat.com>
4215 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4216 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4217 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4219 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4221 * vax-tdep.c (vax_get_saved_register): Delete function.
4222 (vax_gdbarch_init): Update.
4223 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4224 (ns32k_gdbarch_init): Update.
4225 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4226 (alpha_gdbarch_init): Update.
4228 2002-08-13 Andrew Cagney <cagney@redhat.com>
4230 * regcache.c (init_regcache_descr): Overallocate the
4231 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4232 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4234 (set_register_cached): Add range checking assertions. Use
4237 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4239 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4240 numbers for MMX registers.
4242 2002-08-13 Andrew Cagney <cagney@redhat.com>
4244 * i386-tdep.c (i386_gdbarch_init): Use
4245 generic_unwind_get_saved_register.
4247 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4249 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4250 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4252 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4253 Delete. Add comment regarding this now-deleted target method.
4255 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4257 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4258 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4259 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4260 real PC and the page number (if it's within the memory bank window).
4261 (m68hc11_pseudo_register_write): Likewise when saving.
4262 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4263 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4264 (m68hc11_register_raw_size): And use 32-bit for it.
4265 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4266 16K memory bank is used by the prog; also use the virtual pc.
4268 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4270 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4271 (m68hc11_gdbarch_init): Install it in gdbarch.
4272 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4273 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4274 (MSYMBOL_SIZE): New for documentation.
4275 (insn_return_kind): Enum to specify how a function returns.
4276 (frame_extra_info): Cleanup and record the return mode.
4277 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4278 register in address computation.
4279 (m68hc11_get_return_insn): New to obtain the return instruction used
4281 (m68hc11_frame_init_saved_regs): Take into account the return
4282 instruction used by the function for far and interrupt functions.
4283 (m68hc11_init_extra_frame_info): Take into account page register.
4284 (m68hc11_frame_args_address): Adjust according to the return mode.
4285 (show_regs): Print page register only when it's used.
4287 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4289 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4290 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4291 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4293 (m68hc11_register_raw_size): Likewise.
4295 2002-08-13 Andrew Cagney <cagney@redhat.com>
4297 * i386-tdep.c (i386_register_name): Handle mmx registers.
4298 (mmx_regnum_p): New function.
4299 (i386_mmx_names): New array.
4300 (mmx_num_regs): New variable.
4301 (i386_pseudo_register_read): New function.
4302 (i386_pseudo_register_write): New function.
4303 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4305 * regcache.c (regcache_raw_read_unsigned): New function.
4306 (regcache_raw_read_signed): New function.
4307 * regcache.h (regcache_raw_read_unsigned): Declare.
4308 (regcache_raw_read_signed): Declare.
4310 2002-08-13 Andrew Cagney <cagney@redhat.com>
4312 * regcache.c (regcache_raw_read_as_address): Delete function.
4313 (regcache_cooked_read_signed): New function.
4314 (regcache_cooked_read_unsigned): New function.
4315 * regcache.h (regcache_cooked_read_signed): Declare.
4316 (regcache_cooked_read_unsigned): Declare.
4317 (regcache_raw_read_as_address): Delete declaration.
4319 * blockframe.c (generic_read_register_dummy): Use
4320 regcache_cooked_read_unsigned.
4321 * i386-tdep.c (i386_extract_struct_value_address): Use
4322 regcache_cooked_read_unsigned.
4324 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4327 double sizes according to ELF ABI flags.
4328 (gdbarch_tdep): Record elf_flags.
4330 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4332 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4333 (m6812_prolog): They can appear in 68HC12 function prologue.
4334 (m68hc11_frame_chain): Cleanup.
4336 2002-08-12 Andrew Cagney <cagney@redhat.com>
4338 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4340 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4341 (i386_linux_register_raw_size): Delete function.
4342 (i386_linux_init_abi): Update.
4343 * i386-tdep.c (i386_register_raw_size): Delete function.
4344 (i386_register_byte): Delete function.
4345 (i386_gdbarch_init): Update.
4346 (i386_register_size): Delete array.
4347 (i386_register_offset): Delete array.
4349 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4350 (REGISTER_RAW_SIZE): Delete macro.
4351 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4352 (REGISTER_BYTE): Delete macro.
4354 2002-08-11 Aidan Skinner <aidan@velvet.net>
4356 * ada-lang.c (ada_lookup_partial_symbol)
4357 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4358 prototype names so that grep ^func works properly.
4360 * ada-lang.c (ada_array_element_type)
4361 (ada_lookup_partial_symbol): Fix typos in parameter list.
4363 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4364 Fix prototype names so that grep ^func works properly.
4366 2002-08-10 Andrew Cagney <cagney@redhat.com>
4367 Elena Zannoni <ezannoni@redhat.com>
4368 Martin M. Hunt <hunt@redhat.com>
4370 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4371 (build_builtin_type_vec128i): Set the vector bit.
4372 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4373 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4374 (build_builtin_type_vec64): New function.
4375 (build_builtin_type_vec64i): New function.
4376 (build_gdbtypes): Initialize builtin_type_vec64 and
4377 builtin_type_vec64i.
4379 2002-08-09 Andrew Cagney <cagney@redhat.com>
4381 * regcache.c (regcache_dump): Compare the register offset
4383 * arch-utils.c (generic_register_byte): New function.
4384 * arch-utils.h (generic_register_byte): Declare.
4385 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4386 * gdbarch.h, gdbarch.c: Regenerate.
4388 2002-08-09 Andrew Cagney <cagney@redhat.com>
4390 * regcache.c: Include "gdbcmd.h"
4391 (_initialize_regcache): Add commands "maintenance print
4392 registers", "maintenance print raw-registers" and "maintenance
4393 print cooked-registers".
4394 (enum regcache_dump_what): Define.
4395 (dump_endian_bytes): New function.
4396 (regcache_dump): New function.
4397 (regcache_print): New function.
4398 (maintenance_print_registers): New function.
4399 (maintenance_print_raw_registers): New function.
4400 (maintenance_print_cooked_registers): New function.
4401 * Makefile.in (regcache.o): Update dependencies.
4403 2002-08-09 Michael Snyder <msnyder@redhat.com>
4405 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4406 (mips_push_arguments): Correct some comments. Use paddr_nz
4407 for printing addresses in debug output. Replace static
4408 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4409 (mips_n32n64_push_arguments): New function, cloned from
4410 mips_push_arguments and tuned for the n32/n64 ABI.
4411 (mips_push_register): Buffer needs dynamic allocation.
4412 (mips_print_register): Ditto.
4413 (do_gp_register_row): Ditto.
4414 (mips_store_return_value): Ditto.
4415 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4417 2002-08-09 Don Howard <dhoward@redhat.com>
4419 * memattr.c (mem_info_command): Print special case of upper bound
4420 as max CORE_ADDR + 1.
4422 2002-08-08 Michael Snyder <msnyder@redhat.com>
4424 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4425 returns structs by ref if they're too big to fit in two registers.
4427 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4429 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4431 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4432 mips_find_saved_regs().
4433 (mips_pop_frame): Likewise.
4435 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4437 * blockframe.c (frame_saved_regs_register_unwind): Revise
4438 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4441 2002-08-09 Grace Sainsbury <graces@redhat.com>
4443 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4444 T-packets; the 'a' is not taken as a register number.
4445 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4446 (remote_stopped_data_address): New functions; add to target
4448 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4449 prototypes to match other implementations of this
4450 function. replace integer argument with pointer -- the length
4451 field in the Z-packet is the length of what is pointed to or 1 if
4452 pointer is null. Add to target vector.
4453 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4457 * remote.c (remote_wait): Add support to extract optional
4458 watchpoint information from T-packet. Ignore unrecognized
4459 optional info in T-packet.
4460 (remote_async_wait): Ditto.
4462 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4464 * cli/cli-dump.c: Change fopen modes to use binary open modes
4465 as defined in include/fopen-bin.h throughout.
4467 2002-08-08 Michael Snyder <msnyder@redhat.com>
4469 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4471 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4473 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4474 assertion failure by returning early after a warning.
4476 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4478 * mips-tdep.c (mips_find_saved_regs): Make static.
4479 (mips_frame_init_saved_regs): New function.
4480 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4481 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4482 (mips_find_saved_regs): Delete declaration.
4484 2002-08-08 Grace Sainsbury <graces@redhat.com>
4486 * remote.c (remote_wait, remote_async_wait): Change
4487 thread_num from int to ULONGEST.
4488 (unpack_varlen_hex): Change result parameter from
4489 int * to ULONGEST *.
4491 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4493 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4494 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4496 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4498 2002-08-08 Andrew Cagney <cagney@redhat.com>
4500 * gcore.c (override_derive_stack_segment): Delete variable.
4501 (preempt_derive_stack_segment): Delete function.
4502 (derive_stack_segment): Delete function.
4503 (default_derive_stack_segment): Renamed to derive_stack_segment.
4504 (override_derive_heap_segment): Delete variable.
4505 (preempt_derive_heap_segment): Delete function.
4506 (derive_heap_segment): Delete function.
4507 (default_derive_heap_segment): Rename to derive_heap_segment.
4509 2002-08-06 Michael Snyder <msnyder@redhat.com>
4511 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4512 * mips-tdep.c (mips_EABI_use_struct_convention,
4513 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4514 New functions. (mips_use_struct_convention): Delete.
4515 (mips_gdbarch_init): set use_gdbarch_convention.
4517 2002-08-06 Michael Snyder <msnyder@redhat.com>
4519 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4520 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4521 mips_o32_reg_struct_has_addr): New functions.
4522 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4524 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4526 * regcache.c (pseudo_register): Delete function.
4527 (fetch_register): Delete function.
4528 (store_register): Delete function.
4529 (regcache_raw_read, legacy_read_register_gen): Use
4530 target_fetch_registers instead of fetch_register.
4531 (legacy_write_register_gen, regcache_raw_write): Use
4532 target_store_register instead of store_register.
4533 (write_register_bytes): Ditto.
4535 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4536 (STORE_PSEUDO_REGISTER): Delete.
4537 * gdbarch.h, gdbarch.c: Regenerate.
4539 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4541 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4542 write dump file binary.
4544 2002-08-05 Michael Snyder <msnyder@redhat.com>
4546 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4547 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4548 (mips_gdbarch_init): Set N32 target to be mips64.
4550 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4552 * frame.c (find_saved_register): Break out of loop once saved
4553 register address is found. Don't mention sparc in loop comment
4556 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4558 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4559 mips_default_saved_regsize to 8.
4561 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4563 * gcore.c: Do not include <sys/procfs.h>.
4564 * Makefile.in (gcore.o): Update dependencies.
4566 2002-08-06 Andrew Cagney <cagney@redhat.com>
4568 * configure.tgt: Make arc-*-* obsolete.
4569 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4570 * MAINTAINERS: Make arc-elf obsolete.
4571 * arc-tdep.c: Make file obsolete.
4572 * config/arc/arc.mt: Ditto.
4573 * config/arc/tm-arc.h: Ditto.
4575 2002-08-05 Theodore A. Roth <troth@verinet.com>
4577 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4579 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4581 * mcore-tdep.c (mcore_gdbarch_init): Use
4582 generic_unwind_get_saved_register instead of
4583 generic_get_saved_register.
4584 * v850-tdep.c (v850_gdbarch_init): Ditto.
4585 * frv-tdep.c (frv_gdbarch_init): Ditto.
4586 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4587 * s390-tdep.c (s390_gdbarch_init): Ditto.
4588 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4589 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4590 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4592 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4594 * objfiles.h: Add missing #include "symfile.h"
4596 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4598 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4600 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4601 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4604 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4606 * NEWS: Cleanup and nitpick.
4608 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4610 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4612 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4614 * Makefile.in (gdbtk-bp.o): Update dependencies.
4615 (gdbtk-register.o): Ditto.
4616 (gdbtk-varobj.o): Ditto.
4618 2002-08-03 Andrew Cagney <cagney@redhat.com>
4620 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4621 m68hc11_fetch_pseudo_register.
4622 (m68hc11_pseudo_register_write): Replace
4623 m68hc11_store_pseudo_register.
4624 (m68hc11_gdbarch_init): Update.
4626 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4628 * gdbarch.sh: Include "gdb_string.h".
4629 * gdbarch.c: Regenerate.
4631 * regcache.c: Include "gdb_string.h".
4632 * ax-general.c: Ditto.
4634 * std-regs.c: Ditto.
4635 * fbsd-proc.c: Ditto.
4638 * Makefile.in (regcache.o): Update dependencies.
4639 (thread.o, gdbarch.o): Ditto.
4640 (ax-general.o, gdbarch.o): Ditto.
4641 (varobj.o, std-regs.o): Ditto.
4642 (fbsd-proc.o): Specify dependencies.
4644 2002-08-02 Andrew Cagney <cagney@redhat.com>
4646 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4648 (regcache_cooked_write): Ditto.
4650 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4652 * regcache.c (regcache_cooked_read): New function.
4653 (regcache_cooked_write): New function.
4654 (read_register_gen): Rewrite using regcache_cooked_read.
4655 (write_register_gen): Rewrite using regcache_cooked_write.
4657 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4660 2002-08-02 Andrew Cagney <cagney@redhat.com>
4662 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4663 Replace the architecture methods register_read and register_write.
4664 * gdbarch.h, gdbarch.c: Regenerate.
4665 * regcache.c (init_regcache_descr): Update.
4666 (read_register_gen): Update.
4667 (write_register_gen): Update.
4668 (supply_register): Update comment.
4670 * sh-tdep.c (sh_gdbarch_init): Update.
4671 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4672 `regcache' and `gdbarch' parameters. Make `buffer' a void
4673 pointer. Update code.
4674 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4675 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4676 void pointer. Update code.
4677 (sh64_register_write): Delete.
4678 (sh4_register_read): Delete.
4679 (sh64_register_read): Delete.
4680 (sh4_register_write): Delete.
4681 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4682 void pointer, `to' parameter a void pointer.
4683 (sh_sh64_register_convert_to_raw): Ditto.
4685 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4687 * mips-tdep.c (mips_register_virtual_type): Use architecture
4688 invariant return values.
4690 2002-08-01 Andrew Cagney <cagney@redhat.com>
4692 * linux-proc.c: Include "gdb_string.h".
4693 * Makefile.in (linux-proc.o): Update dependency list.
4695 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4697 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4700 2002-08-01 Grace Sainsbury <graces@redhat.com>
4702 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4703 to_insert_watchpoint, to_remove_watchpoint,
4704 to_stopped_by_watchpoint, to_stopped_data_address,
4705 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4706 target vecctor. Define their corresponding macros so they call
4709 * target.c: Add default and debug versions of for
4710 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4711 to_insert_watchpoint, to_remove_watchpoint,
4712 to_stopped_by_watchpoint, to_stopped_data_address,
4713 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4715 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4717 * mips-tdep.c (mips_register_virtual_type): New function.
4718 (mips_gdbarch_init): Register mips_register_virtual_type()
4719 with gdbarch machinery.
4720 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4721 this file instead of tm-bigmips.h.
4722 (MIPS_REGSIZE): Delete this macro.
4723 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4724 multiarch version in mips-tdep.c will be found.
4726 2002-08-01 Andrew Cagney <cagney@redhat.com>
4728 * NEWS: Menion that CHILL has been made obsolete.
4730 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4731 * stabsread.c (read_range_type): Ditto.
4732 * gdbtypes.h: Ditto.
4733 * language.c (binop_type_check): Ditto.
4734 (binop_result_type): Ditto.
4735 (integral_type): Ditto.
4736 (character_type): Ditto.
4737 (string_type): Ditto.
4738 (boolean_type): Ditto.
4739 (structured_type): Ditto.
4740 (lang_bool_type): Ditto.
4741 (binop_type_check): Ditto.
4742 * language.h (_LANG_chill): Ditto.
4743 * dwarfread.c (set_cu_language): Ditto.
4744 * dwarfread.c (CHILL_PRODUCER): Ditto.
4745 * dwarfread.c (handle_producer): Ditto.
4746 * expression.h (enum exp_opcode): Ditto.
4747 * eval.c: Ditto for comments.
4748 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4749 * expprint.c (print_subexp): Ditto.
4750 (print_subexp): Ditto.
4751 * valops.c (value_cast): Ditto.
4752 (search_struct_field): Ditto.
4753 * value.h (COERCE_VARYING_ARRAY): Ditto.
4754 * symfile.c (init_filename_language_table): Ditto.
4755 (add_psymbol_with_dem_name_to_list): Ditto.
4756 * valarith.c (value_binop): Ditto.
4758 * valops.c (value_slice): Ditto.
4759 * symtab.h (union language_specific): Ditto.
4760 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4761 (SYMBOL_DEMANGLED_NAME): Ditto.
4762 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4763 * defs.h (enum language): Ditto.
4764 * symtab.c (got_symtab): Ditto.
4765 * utils.c (fprintf_symbol_filtered): Ditto.
4767 * ch-typeprint.c: Make file obsolete.
4768 * ch-valprint.c: Make file obsolete.
4769 * ch-lang.h: Make file obsolete.
4770 * ch-exp.c: Make file obsolete.
4771 * ch-lang.c: Make file obsolete.
4773 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4775 (TARGET_FLAGS_TO_PASS): Ditto.
4776 (CHILLFLAGS): Obsolete.
4778 (CHILL_FOR_TARGET): Obsolete.
4779 (CHILL_LIB): Obsolete.
4780 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4782 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4783 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4785 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4788 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4790 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4791 This does not change anything at the moment, but will be helpful
4792 later when full Ada support is integrated.
4794 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4796 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4799 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4801 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4802 and save it in a local variable. Use variable in later test.
4804 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4806 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4807 test. (Thanks to Daniel Jacobowitz.)
4809 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4811 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4812 (mips_abi_strings): Add "n64".
4813 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4815 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4817 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4818 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4820 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4822 * utils.c (host_pointer_to_address, address_to_host_pointer):
4823 Use gdb_assert() instead of explicit call to internal_error().
4825 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4827 * Makefile.in (rs6000-nat.o): Update dependencies.
4829 From Nicholas Duffek:
4830 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4831 (aix-thread.o): New rule.
4832 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4833 * config/powerpc/aix432.mh: New file.
4835 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4837 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4838 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4839 (fetch_core_registers, ppc_linux_supply_gregset)
4840 (ppc_linux_supply_fpregset): New functions.
4841 (ppc_linux_regset_core_fns): New.
4842 (_initialize_ppc_linux_tdep): Call add_core_fns.
4843 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4844 and ppc_linux_supply_gregset.
4845 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4846 (supply_fpregset): Call ppc_linux_supply_fpregset.
4847 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4849 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4851 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4853 * symtab.c (lookup_symbol): Demangle before lowercasing.
4855 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4857 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4859 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4860 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4861 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4862 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4864 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4865 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4866 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4867 (avr-tdep.o, mon960-rom.o): Ditto.
4868 (aout_stabs_gnu_h): Define.
4869 (symtab_h): Remove $(gdb_obstack_h).
4871 2002-07-30 Jim Blandy <jimb@redhat.com>
4873 Patch from David Carlton <carlton@math.stanford.edu>:
4874 * gdbinit.in: Move the `dir' commands that add GDB's own source
4875 directory to the search path to the end, so that the `gdb' source
4876 directory will be searched first.
4878 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4880 * gdb_obstack.h: New file.
4881 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4882 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4883 * objfiles.h: Include "gdb_obstack.h".
4884 * Makefile.in (gdb_obstack_h): Define.
4885 (symtab_h): Add $(gdb_obstack_h).
4886 (objfiles_h): Add $(gdb_obstack_h).
4888 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4889 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4890 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4891 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4892 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4893 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4894 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4895 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4897 * Makefile.in (bcache.o): Update dependencies.
4898 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4899 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4900 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4901 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4902 (stabsread.o, symfile.o, symmisc.o): Ditto.
4903 (symtab.o, typeprint.o, macroexp.o): Ditto.
4904 (macrotab.o, mdebugread.o): Ditto.
4905 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4906 (coff_ecoff_h, aout_aout64_h): Define.
4907 (aout_stabs_gnu_h, libaout_h): Define.
4909 2002-07-29 Andrew Cagney <cagney@redhat.com>
4911 * regcache.c (struct regcache_descr): Rename nr_registers to
4912 nr_cooked_registers. Revise comments describing the structure
4914 (init_regcache_descr): Update.
4915 (init_legacy_regcache_descr): Update.
4916 (read_register_gen, write_register_gen): When a cooked register in
4917 the raw register range, directly access the value from the raw
4920 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4922 * z8k-tdep.c: Do not include "obstack.h".
4923 * h8300-tdep.c, h8500-tdep.c: Ditto.
4924 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4925 * valprint.c, v850-tdep.c: Ditto.
4926 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4927 * mn10200-tdep.c: Ditto.
4929 * Makefile.in (z8k-tdep.o): Update dependencies.
4930 (m68hc11-tdep.o, valprint.o): Ditto.
4931 (v850-tdep.o, d10v-tdep.o): Ditto.
4932 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4933 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4934 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4935 (sh_opc_h, gdb_sim_sh_h): Define.
4936 (elf_sh_h, elf_bfd_h): Define.
4937 (opcode_m68hc11_h): Define.
4938 (OPCODES_SRC, OPCODES_DIR): define.
4939 (OPCODES): Use $(OPCODES_DIR).
4940 (gdb_sim_d10v_h): Rename sim_d10v_h.
4941 (gdb_sim_arm_h): Rename sim_arm_h.
4943 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4945 * utils.c (host_pointer_to_address, address_to_host_pointer):
4946 Change internal_error() message to indicate function responsible
4949 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4951 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4952 calls to local_hex_string_custom().
4954 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4956 * irix5-nat.c: Move IRIX shared library support from here...
4957 * solib-irix.c: ...to here. Revised substantially to work with
4958 generic solib framework.
4960 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4961 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4962 * mips-irix-tdep.c: New file.
4964 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4965 (mips-irix-tdep.o, solib-irix.o): New rules.
4966 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4968 * config/mips/irix6.mt (TDEPFILES): Likewise.
4969 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4971 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4973 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4974 disabled (via ``#if 0'') includes.
4976 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4978 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4979 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4980 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4981 Add support for the fpscr register.
4982 * rs6000-nat.c (regmap, fetch_inferior_registers)
4983 (store_inferior_registers, fetch_core_registers): Likewise.
4985 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4987 * rs6000-nat.c (language.h): Include.
4988 (special_regs): Delete this array.
4989 (regmap): New function.
4990 (fetch_register, store_register): Use regmap() to map gdb
4991 register numbers to ptrace register numbers. Also, use
4992 outputs from regmap() to make decisions regarding type of
4993 ptrace() call to make. In particular, don't compare against
4994 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4995 (fetch_inferior_registers, store_inferior_registers): Where
4996 possible, obtain register numbers from tdep struct. Don't
4997 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4998 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4999 (LAST_UISA_SP_REGNUM): Delete.
5001 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5003 * rs6000-nat.c (ppc-tdep.h): Include.
5004 (fetch_registers, store_register, fetch_core_registers): Don't
5005 access registers[] directly. Instead, use supply_register() or
5006 regcache_collect() as appropriate.
5007 (find_toc_address): Format hex address with local_hex_string().
5009 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5011 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5014 2002-07-24 Tom Tromey <tromey@redhat.com>
5016 * jv-exp.y: Marked all strings with _().
5017 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5019 (MethodInvocation, CastExpression, parse_number, yyerror,
5020 java_type_from_name, push_expression_name, yylex): Typo fixes.
5022 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5024 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5025 (tee_file_flush, tee_file_write, tee_file_fputs)
5026 (tee_file_isatty): New.
5027 * ui-file.h (tee_file_new): Add prototype.
5029 2002-07-24 Aidan Skinner <aidan@velvet.net>
5031 * ada-lang.c: Change k&r style function definitions to prototyped
5033 * ada-typeprint.c: Change k&r style function definitions to prototyped
5035 * ada-valprint.c: Change k&r style function definitions to prototyped
5038 2002-07-24 Andrew Cagney <cagney@redhat.com>
5040 * README: Remove reference to remote-bug.
5041 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5043 (m88k-nat.o): Delete rule.
5044 (m88k-tdep.o): Delete rule.
5045 (remote-bug.o): Delete rule.
5046 * MAINTAINERS: Mark as obsolete.
5047 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5048 * m88k-tdep.c: Make file obsolete.
5049 * config/m88k/m88k.mh: Ditto.
5050 * config/m88k/delta88v4.mh: Ditto.
5051 * config/m88k/delta88v4.mt: Ditto.
5052 * config/m88k/delta88.mt: Ditto.
5053 * config/m88k/delta88.mh: Ditto.
5054 * remote-bug.c: Ditto.
5055 * config/m88k/tm-delta88.h: Ditto.
5056 * config/m88k/nm-delta88v4.h: Ditto.
5057 * config/m88k/xm-delta88.h: Ditto.
5058 * config/m88k/xm-dgux.h: Ditto.
5059 * config/m88k/tm-m88k.h: Ditto.
5060 * config/m88k/nm-m88k.h: Ditto.
5061 * config/m88k/tm-delta88v4.h: Ditto.
5062 * m88k-nat.c: Ditto.
5063 * cxux-nat.c: Ditto.
5064 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5065 and m88*-*-* obsolete.
5066 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5069 2002-07-24 Andrew Cagney <cagney@redhat.com>
5071 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5072 constant. Same for local pointer variables.
5073 (extract_signed_integer): Ditto.
5074 * defs.h (extract_unsigned_integer): Update.
5075 (extract_signed_integer): Update.
5077 2002-07-24 Andrew Cagney <cagney@redhat.com>
5079 * regcache.c (regcache_raw_write): Change buf parameter to a
5080 constant void pointer.
5081 (regcache_raw_read): Change buf parameter to a void pointer.
5082 (legacy_write_register_gen): Change myaddr parameter a constant
5084 (supply_register): Change val parameter to a const void pointer.
5085 * regcache.h (regcache_raw_write): Update declaration.
5086 (regcache_raw_read): Update declaration.
5087 (supply_register): Update declaration.
5089 2002-07-24 Tom Tromey <tromey@redhat.com>
5091 * defs.h (gdb_readline_wrapper): Declare.
5092 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5093 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5094 * top.c (gdb_readline_wrapper): New function.
5095 (command_line_input): Use it.
5097 2002-07-24 Andrew Cagney <cagney@redhat.com>
5099 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5100 regcache_read and regcache_write.
5101 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5102 * regcache.c: Update.
5103 * sh-tdep.c (sh64_push_arguments): Update comment.
5104 (sh_pseudo_register_read): Update.
5105 (sh_pseudo_register_write): Update.
5106 (sh4_register_read): Update.
5107 (sh4_register_write): Update.
5108 (sh64_pseudo_register_read): Update.
5109 (sh64_pseudo_register_write): Update.
5110 (sh64_register_read): Update.
5111 (sh64_register_write): Update.
5112 * i386-tdep.c (i386_extract_return_value): Update.
5113 (i386_extract_struct_value_address): Update.
5114 (i386_extract_return_value): Update.
5115 * blockframe.c (generic_read_register_dummy): Update.
5116 (generic_call_dummy_register_unwind): Update
5117 * infrun.c (write_inferior_status_register): Update.
5119 2002-07-23 Jim Blandy <jimb@redhat.com>
5121 * parser-defs.h (expression_context_pc): Make this extern.
5122 (Thanks to Michael Snyder.)
5124 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5126 GDB 5.2.1 released from 5.2 branch.
5127 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5128 * README: Update to mention 5.2.1.
5130 2002-07-23 Mark Salter <msalter@redhat.com>
5132 * remote.c (remote_read_bytes): Fix check for error.
5134 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5136 * aix-thread.c (language.h): Include.
5137 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5138 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5139 Print newlines at end of debug messages.
5140 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5141 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5143 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5145 * aix-thread.c (ppc-tdep.h): Include.
5146 (special_register_p): New function.
5147 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5148 (store_regs_user_thread): Use register number information from
5149 gdbarch_tdep struct instead of hardcoded offsets relative to
5150 FIRST_UISA_SP_REGNUM.
5151 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5152 special_register_p() instead of using FPLAST_REGNUM and
5153 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5154 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5155 will be MQ's register number.
5157 2002-07-22 Michael Snyder <msnyder@redhat.com>
5159 * aix-thread.c (ops): Rename to aix_thread_ops.
5160 (base_ops): Rename to base_target.
5161 (ops_attach): Rename to aix_thread_attach.
5162 (ops_detach): Rename to aix_thread_detach.
5163 (ops_resume): Rename to aix_thread_detach.
5164 (ops_wait): Rename to aix_thread_wait.
5165 (ops_kill): Rename to aix_thread_kill.
5166 (init_ops): Rename to init_aix_thread_ops.
5167 (ops_fetch_register): Rename to aix_thread_fetch_register.
5168 (ops_store_register): Rename to aix_thread_store_register.
5169 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5170 (ops_thread_alive): Rename to aix_thread_thread_alive.
5171 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5172 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5173 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5174 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5175 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5176 (store_regs_lib): Rename to store_regs_user_thread.
5177 (store_regs_kern): Rename to store_regs_kernel_thread.
5179 2002-07-22 Michael Snyder <msnyder@redhat.com>
5181 * aix-thread.c (ops_prepare_to_store): Eliminate.
5182 (init_ops): Don't initialize ops.prepare_to_store.
5183 (store_regs_kern): Pre-fetch register buffers from child,
5184 because some registers may not be in the cache. Copy
5185 regs from register cache only if they are cached.
5186 (store_regs_lib): Copy regs from register cache only
5188 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5189 fill_gprs64): Ditto.
5191 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5193 * aix-thread.c (gdb_assert.h): Include.
5194 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5195 register sizes (from register cache) match size of buffer holding
5197 (fill_sprs32): Change parameter types to match those in the ptrace()
5199 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5200 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5202 2002-07-22 Michael Snyder <msnyder@redhat.com>
5204 * aix-thread.c (supply_sprs64): Cosmetic change.
5205 (supply_sprs32): Cosmetic change.
5206 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5207 (fill_sprs64): Use regcache_collect instead of read_register.
5208 (store_regs_lib): Use regcache_collect instead of
5209 read_register. Use fill_sprs32 instead of fill_sprs64,
5210 if debugging a 32-bit architecture.
5211 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5212 out of the register cache, instead of passing a pointer into
5213 the register cache directly to ptrace. Use regcache_collect
5214 insteaad of read_register.
5215 (ops_prepare_to_store): Use target_read_registers instead
5216 of read_register_bytes.
5218 2002-07-20 Aidan Skinner <aidan@velvet.net>
5220 * MAINTAINERS: Add self under write after approval.
5222 2002-07-20 Aidan Skinner <aidan@velvet.net>
5224 * ada-tasks.c: Change k&r style function definitions to prototyped
5227 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5229 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5230 * x86-64-tdep.c: Include "objfiles.h".
5231 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5232 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5234 2002-07-17 Michal Ludvig <michal@suse.cz>
5236 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5237 (update_context): Initialise cfa variable.
5239 2002-07-17 Michael Snyder <msnyder@redhat.com>
5241 * aix-thread.c: Shorten some long lines.
5242 Bring comments into line with code spec.
5244 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5246 * infrun.c: Re-indent using gdb_indent.sh.
5248 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5250 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5251 Leave the indentation temporarily untouched, to minimize the diffs.
5253 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5255 * stabsread.c: Make os9k sections of the code obsolete,
5257 * stabsread.h: Make os9k sections of the code obsolete.
5259 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5261 * linux-low.c (regsets_store_inferior_registers): Add free()
5262 at the end of a loop to prevent memory leak.
5263 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5264 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5265 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5267 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5269 2002-07-17 Jim Blandy <jimb@redhat.com>
5271 * macrocmd.c (info_macro_command): Remove newline from error
5274 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5276 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5277 (sh_gdbarch_init): Use it for sh-dsp.
5279 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5281 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5282 64-bit DWARF2 format.
5284 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5286 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5287 <sys/proc.h> when not available.
5289 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5291 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5292 * stabsread.c: Make os9k sections of the code obsolete.
5293 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5294 * config/i386/i386os9k.mt: Make file obsolete.
5295 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5296 (COMMON_OBS): Remove os9kread.o
5297 (SFILES): Remove os9kread.c.
5298 (os9kread.o, remote-os9k.o): Make target obsolete.
5299 * remote-os9k.c: Make file obsolete.
5300 * os9kread.c: Make file obsolete.
5303 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5305 * NEWS: Mention that the FR30 has been made obsolete.
5306 * fr30-tdep.c: Make file obsolete.
5307 * config/fr30/tm-fr30.h: Ditto.
5308 * config/fr30/fr30.mt: Ditto.
5309 * configure.tgt: Make fr30-*-elf obsolete.
5310 * MAINTAINERS: Make fr30-elf obsolete.
5312 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5314 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5315 found is not inside a section.
5317 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5319 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5321 (pdc_realloc): Use xrealloc() instead of realloc().
5323 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5325 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5326 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5327 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5330 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5332 * aix-thread.c (ptrace_check): Eliminate goto.
5333 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5336 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5338 * aix-thread.c (gdbcmd.h): Include.
5339 (DEBUG, DBG, DBG2, dbg): Eliminate.
5340 (debug_aix_thread): New static global.
5341 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5342 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5343 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5344 invocations to DBG and DBG2 macros to test against
5345 ``debug_aix_thread'' and call fprintf_unfiltered().
5346 (_initialize_aix_thread): Add new command "set debug aix-thread".
5348 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5350 From Gerhard Tonn <TON@de.ibm.com>:
5351 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5352 instead of supply_register.
5354 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5356 * dwarf2cfi.c: Include "gdb_assert.h".
5357 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5359 (update_context): Do not use __func__. Add missing ``break''.
5360 (update_context): Do not use __func__.
5362 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5364 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5365 and its setting. Set gdbarch instruction printing functions
5366 directly. For non-rs6000 case use new function
5367 gdb_print_insn_powerpc.
5368 (gdb_print_insn_powerpc): New function.
5370 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5372 * NEWS: Mention that the d30v has been marked obsolete.
5373 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5374 * configure.tgt: Mark d30v-*-* as obsolete.
5375 * d30v-tdep.c: Mark file as obsolete.
5376 * config/d30v/d30v.mt: Ditto.
5377 * config/d30v/tm-d30v.h: Ditto.
5379 2002-07-13 Aidan Skinner <aidan@velvet.net>
5381 * ada-tasks.c (add_task_entry): replace calls to
5382 malloc() with xmalloc
5383 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5385 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5386 ada_finish_decode_line_1, all_sals_for_line
5387 ada_breakpoint_rewrite): replace calls to free() with xfree()
5389 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5391 From Nicholas Duffek (with minor changes by Martin Hunt,
5392 Louis Hamilton, and Kevin Buettner):
5393 * aix-thread.c: New file.
5395 2002-07-12 Petr Sorfa <petrs@caldera.com>
5397 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5398 complaint for invalid attribute class or form.
5399 (read_func_scope): DW_AT_frame_base
5400 better handling of DW_AT_block*.
5401 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5402 better handling of DW_AT_block*.
5403 (read_common_block): DW_AT_location
5404 better handling of DW_AT_block*.
5405 (read_partial_die): DW_AT_location better handling
5407 (new_symbol): DW_AT_external better handling of
5408 DW_AT_block*. Proper initialization of variable
5410 (attr_form_is_block): New function that returns true
5411 if the attribute's form is of DW_FORM_block*.
5413 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5415 * valops.c (find_method_list): Remove comment about
5416 removed STATIC_MEMFUNCP argument.
5417 (value_find_oload_method_list): Likewise.
5419 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5421 From Nicholas Duffek:
5422 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5423 target_new_objfile_hook.
5425 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5427 From Nicholas Duffek:
5428 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5431 2002-07-12 Andrew Cagney <cagney@redhat.com>
5433 * MAINTAINERS: Mention --enable-sim-build-warnings.
5434 (m68hc11-elf): Disable sim build warnings.
5435 (m32r-elf): Mark as broken obsolete candidate.
5436 (x86_64-linux-gnu): Mark as buildable with -Werror.
5437 (arm-elf): Change -w to ``,'' which enables warnings but not
5440 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5442 * bcache.h: Update copyright.
5443 (struct bstring, struct bcache): Move definition to "bcache.c".
5444 Replaced by opaque declaration.
5445 (bcache_xfree): Replace free_bcache.
5446 (bcache_xmalloc, bcache_memory_used): Declare.
5448 * bcache.c: Update copyright.
5449 (struct bstring, struct bcache): Moved to here from "bcache.h".
5451 (bcache_xmalloc, bcache_memory_used): New functions.
5452 (bcache_xfree): Replace function free_bcache.
5454 * Makefile.in (objfiles.o): Add $(bcache_h).
5455 (objfiles_h): Remove $(bcache_h).
5456 (symfile.o): Add $(bcache_h).
5458 * symmisc.c: Update copyright.
5459 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5460 (print_objfile_statistics): Use bcache_memory_used.
5462 * symfile.c: Include "bcache.h".
5463 (reread_symbols): Use bcache_xfree.
5464 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5465 (add_psymbol_to_list): Pass psymbol_cache by value.
5466 (add_psymbol_with_dem_name_to_list): Ditto.
5468 * objfiles.h: Update copyright.
5469 (struct bcache): Declare opaque. Do not include "bcache.h".
5470 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5472 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5474 * objfiles.c: Include "bcache.h". Update copyright.
5475 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5477 (free_objfile): Use bcache_xfree.
5479 2002-07-11 Grace Sainsbury <graces@redhat.com>
5481 * monitor.c (monitor_fetch_register): Make name a constant.
5482 (monitor_store_register): Same.
5484 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5486 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5487 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5488 (finish_block) For non-function blocks, hash the symbol table. For
5489 function blocks, mark the symbol table as unhashed.
5490 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5491 (msymbol_hash_iw): Likewise.
5492 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5494 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5495 (lookup_minimal_symbol): Likewise for both.
5496 * symtab.h (struct block): Add `hashtable' flag. Comment the
5498 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5499 (ALL_BLOCK_SYMBOLS): Update.
5500 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5501 (struct symbol): Add `hash_next' pointer.
5502 * symtab.c (lookup_block_symbol): Search using the hash table when
5504 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5505 (search_symbols, find_addr_symbol): Likewise.
5507 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5508 (read_dst_symtab): Likewise.
5509 * jv-lang.c (get_java_class_symtab): Likewise.
5510 * mdebugread.c: Include "gdb_assert.h".
5511 (shrink_block): Assert that the block being modified is not hashed.
5512 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5513 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5515 (dump_symtab): Recognize hashed blocks.
5516 * printcmd.c (print_frame_args): Assert that function blocks do not
5517 have hashed symbol tables.
5518 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5519 (fill_in_ada_prototype, debug_print_block): Likewise.
5520 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5522 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5524 * stack.c (print_frame): Use result of frame_address_in_block()
5525 instead of fi->pc when evaluating symbols.
5526 (backtrace_command_1): Ditto.
5528 2002-07-11 Andrew Cagney <cagney@redhat.com>
5530 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5533 * arm-tdep.c (arm_register_name): Make return type constant.
5535 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5537 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5539 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5540 * s390-tdep.c (s390_fp_regnum): Ditto.
5541 (s390_read_fp): Ditto.
5542 (s390_pop_frame): Ditto.
5543 (_initialize_s390_tdep): Ditto.
5544 * remote.c (get_remote_state): Ditto.
5545 * procfs.c (mappingflags): Ditto.
5546 * memattr.c (_initialize_mem): Ditto.
5547 * mcore-tdep.c (mcore_pop_frame): Ditto.
5548 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5549 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5550 * language.c (set_case_str): Ditto.
5551 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5552 * frv-tdep.c (new_variant): Ditto.
5553 (frv_stopped_data_address): Ditto.
5554 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5555 (context_alloc): Ditto.
5556 (frame_state_alloc): Ditto.
5557 (unwind_tmp_obstack_init): Ditto.
5558 (unwind_tmp_obstack_free): Ditto.
5559 (cfi_read_fp): Ditto.
5560 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5561 (cris_pop_frame): Ditto.
5562 * c-lang.c (scanning_macro_expansion): Ditto.
5563 (finished_macro_expansion): Ditto.
5564 (c_preprocess_and_parse): Ditto.
5565 * gdbarch.sh: Ditto.
5566 * gdbarch.h, gdbarch.c: Regenerate.
5567 * config/mn10200/tm-mn10200.h: Adjust indentation.
5568 * target.c: Adjust indentation.
5569 * symtab.h: Adjust indentation.
5570 * stabsread.h: Adjust indentation.
5571 * remote-es.c: Adjust indentation.
5572 * os9kread.c: Adjust indentation.
5574 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5576 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5577 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5579 2002-07-10 Grace Sainsbury <graces@redhat.com>
5581 * NEWS: Mention m68k, mcore multi-arching.
5582 * MAINTAINERS: Change status of m68k, mcore to reflect
5585 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5587 * valops.c (find_overload_match): Free oload_syms.
5589 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5591 Define HAVE_SYS_PROC_H if sys/proc.h exists
5592 * configure.in: Add check for sys/proc.h
5593 * config.in: Regenerate.
5594 * configure: Regenerate.
5596 2002-07-09 Grace Sainsbury <graces@redhat.com>
5598 * config/m68k/tm-m68k.h: Remove macros wrapped in
5599 #if !GDB_MULTI_ARCH.
5601 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5603 * config.in, configure: Regenerate.
5605 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5607 * dwarf2cfi.c: Include "gcore.h".
5608 (execute_stack_op): Fix implementation of the
5609 DW_OP_deref and DW_OP_deref_size operators by letting do their
5610 lookup in the target.
5612 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5614 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5615 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5618 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5620 Fix PR gdb/595, gdb/602
5621 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5622 Don't call value_cast, just read the vtable pointer; update comments
5625 2002-07-05 Grace Sainsbury <graces@redhat.com>
5627 * config/mcore/tm-mcore.h: Remove file.
5628 * config/mcore/mcore.mt: Remove definition of TM_FILE
5629 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5631 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5633 * i386bsd-tdep.c: Include "gdb_string.h".
5635 2002-07-04 Grace Sainsbury <graces@redhat.com>
5637 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5638 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5640 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5641 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5642 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5643 (RETVAL_REGNUM): Move macros from tm-mcore.h
5644 (mcore_reg_struct_has_addr): New function.
5645 (mcore_gdbarch_init): Added initializations for the macros removed
5648 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5650 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5651 traditonal string branding within the ELF header.
5653 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5655 * symtab.c (remove_params): New function.
5656 (make_symbol_overload_list): Use it instead of cplus_demangle.
5657 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5659 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5661 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5663 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5665 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5666 and tdep->sigtramp_end.
5667 * i386obsd-nat.c: New file.
5668 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5670 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5671 Don't call get_current_frame().
5673 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5675 * i386-nat.c (child_post_startup_inferior): New function
5676 calling i386_cleanup_dregs if
5677 I386_USE_GENERIC_WATCHPOINTS is defined.
5678 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5679 conditional to acknowledge that i386-nat.c has its
5680 own child_post_startup_inferior function.
5682 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5684 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5685 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5686 instead of MAX_REGISTER_RAW_SIZE.
5687 (i386_extract_return_value, i386_extract_struct_value_address):
5688 Convert to use regcache.
5689 (i386_gdbarch_init): Set max_register_raw_size and
5690 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5691 Set extract_return_value and extract_struct_value_address instead
5692 of their deprecated variants.
5694 Convert i386 target to generic dummy frames.
5695 * i386-tdep.c: Include "symfile.h".
5696 (i386_frameless_signal_p): Consider a function to be frameless if
5697 the pc points at the first instruction of the function.
5698 (i386_frame_chain): Handle (generic) call dummies.
5699 (i386_frame_saved_pc): Likewise.
5700 (i386_frame_init_saved_regs): Remove code dealing with call
5701 dummies on the stack.
5702 (i386_push_dummy_frame): Removed.
5703 (i386_call_dummy_words): Removed.
5704 (i386_fix_call_dummy): Removed.
5705 (i386_push_return_address): New function.
5706 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5707 parameter, and don't call get_current_frame.
5708 (i386_pop_frame): New function.
5709 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5710 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5711 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5712 call_dummy_length to 0, set call_dummy_words to NULL, set
5713 sizeof_call_dummy_words to 0, set fix_call_dummy to
5714 generic_fix_call_dummy, set pc_in_call_dummy to
5715 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5716 generic_push_dummy_frame, set push_return_address to
5717 i386_push_return_address and set frame_chain_valid to
5718 generic_file_frame_chain_valid.
5720 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5722 * gdbarch.sh (struct regcache): Add opaque declaration.
5723 (EXTRACT_RETURN_VALUE): New architecture method.
5724 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5725 * gdbarch.h, gdbarch.c: Regenerate.
5726 * arch-utils.c (legacy_extract_return_value): New function.
5727 * arch-utils.h (legacy_extract_return_value): Declare.
5728 * values.c (value_being_returned): Re-enable code handling
5729 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5730 deprecated_grub_regcache_for_registers call to block handling
5731 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5732 (EXTRACT_RETURN_VALUE): Do not define.
5734 2002-07-03 Grace Sainsbury <graces@redhat.com>
5736 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5737 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5738 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5739 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5740 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5741 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5742 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5743 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5744 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5745 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5746 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5747 argument so the function fits the prototype in the architecture
5749 (mcore_pop_frame): Remove argument so the function fits the
5750 prototype. Use get_current_frame instead of the argument.
5751 (mcore_push_arguments): Change type of struct_return so the
5752 function can be used in the architecture vector.
5753 (mcore_store_struct_return): Add.
5754 (mcore_frame_init_saved_regs): Add.
5755 (mcore_gdbarch_init): Add function calls to replace the macros
5756 removed from tm-mcore.h
5758 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5760 * infcmd.c (print_return_value): Remove compatibility code calling
5761 deprecated_grub_regcache_for_registers.
5763 * values.c: Include "regcache.h".
5764 (value_being_returned): Update. Use
5765 deprecated_grub_regcache_for_registers to extract the register
5767 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5768 ``struct regcache''.
5769 * Makefile.in (values.o): Add dependency on $(regcache_h).
5771 * inferior.h (run_stack_dummy): Change type of second parameter to
5772 a ``struct regcache''.
5773 * valops.c (hand_function_call): Change type of retbuf to ``struct
5774 regcache''. Allocate using regcache_xmalloc, clean using
5775 make_cleanup_regcache_xfree.
5776 * infcmd.c (run_stack_dummy): Update. Use
5777 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5779 * regcache.c (do_regcache_xfree): New function.
5780 (make_cleanup_regcache_xfree): New function.
5781 * regcache.h (make_cleanup_regcache_xfree): Declare.
5783 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5785 * event-top.c (command_line_handler): Don't read past
5786 beginning of buffer.
5788 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5790 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5792 (varobj_create): Store frame_id for root.
5793 (varobj_gen_name): Use xasprintf.
5794 (varobj_update): Save and restore frame using get_frame_id() and
5796 (create_child): Use xasprintf.
5797 (new_root_variable): Initialize frame_id.
5798 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5799 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5800 to prevent memory leak.
5802 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5804 * valops.c (hand_function_call): Move declaration of retbuf to
5805 start of function, allocate using malloc, add a cleanup but before
5806 the inf_status cleanup, cleanup the buffer. Rename local variable
5807 old_chain to inf_status_cleanup.
5809 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5811 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5813 * cli/cli-decode.c (cmd_func_p): New function.
5814 (cmd_func): New function.
5816 * command.h: Add cmd_func() and cmd_func_p().
5818 2002-07-03 Grace Sainsbury <graces@redhat.com>
5820 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5821 (REGISTER_SIZE): Remove.
5822 (MAX_REGISTER_RAW_SIZE): Remove.
5823 (REGISTER_VIRTUAL_TYPE): Remove.
5824 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5825 (REGISTER_NAME): Remove.
5826 (USE_GENERIC_DUMMY_FRAMES): Remove.
5827 (CALL_DUMMY): Remove.
5828 (CALL_DUMMY_START_OFFSET): Remove.
5829 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5830 (CALL_DUMMY_LOCATION): Remove.
5831 (FIX_CALL_DUMMY): Remove.
5832 (CALL_DUMMY_ADDRESS): Remove.
5833 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5834 (SAVE_DUMMY_FRAME_TOS): Remove.
5835 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5836 (mcore_register_virtual_type): New function.
5837 (mcore_register_byte): New function.
5838 (mcore_register_size): New function.
5839 (mcore_register_name): New function.
5840 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5841 macros removed from tm-mcore.h.
5842 (mcore_dump_tdep): Add.
5843 (_initialize_mcore_tdep): Add gdbarch_register call.
5845 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5847 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5848 frameless_look_for_prologue, such that we actually call this
5851 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5853 * frame.h (frame_address_in_block): New function.
5855 * blockframe.c (frame_address_in_block): New function extracted
5856 from get_frame_block().
5857 (get_frame_block): Use frame_address_in_block().
5858 (block_innermost_frame): Use frame_address_in_block() to match
5859 the frame pc address against the block boundaries rather than
5860 the frame pc directly. This prevents a failure when a frame pc
5861 is actually a return-address pointing immediately after the end
5864 2002-07-02 Grace Sainsbury <graces@redhat.com>
5866 * MAINTAINERS: Add self under write after approval.
5868 2002-07-02 Grace Sainsbury <graces@redhat.com>
5870 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5871 used in architecture vector. The default is
5872 m68k_local_breakpoint_from_pc.
5873 (m68k_local_breakpoint_from_pc): Add.
5874 (enum): Add register numbers from tm-m68k.h.
5875 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5877 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5878 GDB_MULTI_ARCH_PARTIAL.
5879 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5880 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5882 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5883 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5884 to enum in m68k-tdep.c
5886 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5888 * solib-osf.c (open_map): Compute the list of shared libraries
5889 loaded by the inferior, rather than the list of libraries loaded
5890 by GDB itself. Otherwise, GDB ends up reading the symbols from
5891 the wrong shared libraries...
5893 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5895 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5896 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5898 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5900 (FRAMELESS_SIGNAL): Remove function.
5901 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5902 i386_linux_saved_pc_after_call): Removed.
5903 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5904 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5905 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5907 * i386-tdep.c (i386_frameless_signal_p): New function.
5908 (i386_frame_chain): Deal with frameless signals.
5909 (i386_sigtramp_saved_sp): New function.
5910 (i386_frame_saved_pc): Deal with frameless signals.
5911 (i386_saved_pc_after_call): Make sure the correct value is
5912 returned just after entry into a sigtramp.
5913 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5914 i386fbsd4_sc_sp_offset): New variables.
5915 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5916 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5917 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5918 similiar to what we already did for sc_pc_offset.
5919 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5922 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5924 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5926 * config/i386/tm-x86-64linux.h: New.
5927 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5929 * config/i386/nm-x86-64.h: Rename to ...
5930 * config/i386/nm-x86-64linux.h: ... this one.
5931 * config/i386/x86-64linux.mh: Reflect the above change.
5933 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5935 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5936 with sigcontext_addr. Add sc_sp_offset.
5937 (i386bsd_sigtramp_saved_pc): Remove prototype.
5938 (i386bsd_sicontext_addr): Add prototype.
5939 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5940 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5941 (i386_svr4_sigtramp_saved_pc): Removed.
5942 (i386_svr4_sigcontext_addr): New function.
5943 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5944 Initialize tdep->sigcontext_addr instead. Initialize
5945 tdep->sc_pc_offset and tdep->sc_sp_offset.
5946 (i386_gdbarch_init): Likewise.
5947 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5949 (i386bsd_sigtramp_saved_pc): Remove function.
5950 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5951 Initialize tdep->sigcontext_addr instead. Initialize
5953 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5954 of tdep->sigtramp_saved_pc.
5955 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5956 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5959 * i386-tdep.c (i386_frameless_function_invocation,
5960 i386_frame_num_args, i386_frame_init_saved_regs,
5961 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5962 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5963 i386_extract_return_value, i386_store_return_value,
5964 i386_extract_struct_value_address, i386_register_virtual_type,
5965 i386_register_convertible, i386_register_convert_to_virtual,
5966 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5967 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5970 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5972 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5974 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5975 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5976 this macro. Include "value.h".
5978 2002-06-30 Aidan Skinner <aidan@velvet.net>
5980 * ada-exp.tab.c: remove as it's a generated file
5981 * ada-lex.c: remove as it's a generated file
5983 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5985 * config/i386/tm-i386.h (struct frame_info, struct
5986 frame_saved_regs, struct value, struct type): Remove forward
5989 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5990 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5991 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5992 (FILL_FPXREGSET): Define.
5994 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5996 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5997 i[3456]86-*-netbsd* case.
5998 * config/i386/tm-obsd.h: Removed.
5999 * config/i386/obsd.mt: Removed.
6000 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6002 (MH_CFLAGS): Add -DYYDEBUG=0.
6004 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6005 i386nbsd_sc_pc_offset on OpenBSD too.
6007 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6008 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6009 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6011 * i386bsd-tdep.c: Include "arch-utils.h".
6012 (i386bsd_aout_in_solib_call_trampoline): New function.
6013 (i386bsd_init_abi): Set in_solib_call_trampoline to
6014 i386bsd_aout_in_solib_call_trampoline.
6015 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6016 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6018 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6020 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6021 (struct obstack, struct bcache): Add opaque declarations.
6022 * Makefile.in (macrotab_h): Update
6024 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6026 * blockframe.c (generic_find_dummy_frame): Change return type to
6027 ``struct regcache''.
6028 (struct dummy_frame): Replace field ``registers'' with regcache, a
6029 struct regcache object.
6030 (generic_find_dummy_frame): Update.
6031 (generic_push_dummy_frame): Update. Use regcache_xfree,
6032 regcache_xmalloc and regcache_cpy.
6033 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6035 (deprecated_generic_find_dummy_frame): Update.
6036 (generic_read_register_dummy): Update. Use
6037 regcache_read_as_address.
6038 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6039 (generic_get_saved_register): Update. Use regcache_read.
6041 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6043 * Makefile.in (objfiles_h): Add $(bcache_h).
6044 * objfiles.h: Include "bcache.h".
6046 * Makefile.in (symtab_h): Remove $(bcache_h).
6047 * symtab.h: Do not include "bcache.h".
6049 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6051 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6052 generic_func_frame_chain_valid.
6054 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6056 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6057 * config/i386/tm-fbsd.h: Likewise.
6059 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6061 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6062 generic_unwind_get_saved_register.
6064 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6066 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6067 * regcache.c (supply_register): Add missing argument to
6068 register_buffer call.
6070 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6072 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6073 Solaris /bin/grep does not not like it. From Peter Schauer.
6075 2002-06-26 Tom Tromey <tromey@redhat.com>
6077 * command.h (add_setshow_cmd): Declare.
6078 (add_setshow_cmd_full): Declare.
6079 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6080 returns void. Use add_setshow_cmd_full.
6081 (add_setshow_cmd_full): New function.
6082 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6083 (add_setshow_boolean_cmd): Likewise.
6085 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6087 * config/vax/tm-vax.h: Protect from multiple inclusion.
6088 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6089 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6090 * config/vax/tm-vaxbsd.h: ...here. New file.
6091 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6093 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6095 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6096 (BELIEVE_PCC_PROMOTION): Remove.
6097 (AP_REGNUM): Move to...
6098 * config/vax/nm-vax.h: ...here.
6099 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6100 (vax_breakpoint_from_pc): New function.
6101 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6102 and gdbarch_believe_pcc_promotion.
6104 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6106 * Makefile.in (vax_tdep_h): Define.
6107 (vax-tdep.o): Use $(vax_tdep_h).
6108 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6109 (vax_dump_tdep): New function.
6110 (_initialize_vax_tdep): Register vax_dump_tdep.
6111 * vax-tdep.h: Include osabi.h.
6112 (struct gdbarch_tdep): New.
6114 2002-06-26 Andrew Cagney <cagney@redhat.com>
6116 * frame.h (deprecated_generic_find_dummy_frame): Rename
6117 generic_find_dummy_frame.
6118 * blockframe.c (generic_find_dummy_frame): Make static.
6119 (deprecated_generic_find_dummy_frame): New function.
6120 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6121 generic_find_dummy_frame with deprecated_find_dummy_frame.
6122 (sh64_nofp_frame_init_saved_regs): Ditto.
6123 (sh_fp_frame_init_saved_regs): Ditto.
6124 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6125 (s390_frame_chain): Ditto.
6126 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6128 2002-06-26 Grace Sainsbury <graces@redhat.com>
6130 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6131 gdbarch vector are at the top.
6133 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6134 (FRAME_ARGS_ADDRESS): Remove.
6135 (FRAME_LOCALS_ADDRESS): Remove.
6136 (FRAME_NUM_ARGS): Remove.
6137 (FRAME_ARGS_SKIP): Remove.
6138 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6139 (m68k_gdbarch_init): Add gdbarch initializations for macros
6140 undefined in tm-m68k.h
6142 2002-06-26 Grace Sainsbury <graces@redhat.com>
6144 * monitor.h: Add the function regname to monitor_ops
6145 structure. This way NUM_REGS does not have to be a constant.
6146 * monitor.c (monitor_fetch_register): Added support for regname
6147 function. The function is called if the array regnames is NULL.
6148 (monitor_store_register): Same.
6149 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6151 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6152 cpu32bug_cmds.regname to point to new function.
6153 * abug-rom.c (abug_regname): Same as above.
6154 (init_abug_cmds): Same.
6155 * dbug-rom.c (dbug_regname): Same as above.
6156 (init_dbug_cmds): Same.
6157 * remote-est.c (est_regname): Same.
6158 (init_est_cmds): Same.
6159 * rom68k-rom.c (rom68k_regname): Same.
6160 (init_rom68k_cmds): Same.
6162 2002-06-25 Tom Tromey <tromey@redhat.com>
6164 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6166 2002-06-25 Andrew Cagney <cagney@redhat.com>
6168 * infrun.c (stop_registers): Change variable's type to ``struct
6170 (xmalloc_inferior_status): Delete function.
6171 (free_inferior_status): Delete function.
6172 (normal_stop): Use regcache_cpy.
6173 (struct inferior_status): Change type of fields ``stop_registers''
6174 and ``registers'' to ``struct regcache''.
6175 (write_inferior_status_register): Use regcache_write.
6176 (save_inferior_status): Instead of calling
6177 xmalloc_inferior_status, allocate the inf_status buffer directly.
6178 Use regcache_dup_no_passthrough and regcache_dup to save the
6180 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6181 Replace the stop_registers regcache instead of overriding it. Use
6182 regcache_xfree. Instead of calling free_inferior_status, xfree
6183 the buffer directly.
6184 (discard_inferior_status): Use regcache_xfree. Instead of calling
6185 free_inferior_status, xfree the buffer directly.
6186 (build_infrun): Use regcache_xmalloc.
6187 (_initialize_infrun): Delete redundant call to build_infrun.
6189 * Makefile.in (infcmd.o): Add $(regcache_h).
6191 * infcmd.c: Include "regcache.h".
6192 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6193 obtain the address of `stop_registers' register buffer.
6194 (print_return_value): Ditto.
6196 * inferior.h (struct regcache): Add opaque declaration.
6197 (stop_registers): Change variable's declared type to ``struct
6200 2002-06-24 Tom Tromey <tromey@redhat.com>
6202 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6203 * target.c (initialize_targets): Fixed typo in
6204 trust-readonly-sections `show' documentation.
6206 * main.c: Marked all strings with _().
6208 2002-06-24 Don Howard <dhoward@redhat.com>
6210 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6211 that means max CORE_ADDR+1.
6212 (lookup_mem_region): Ditto.
6213 (mem_info_command): Ditto.
6215 2002-06-24 Grace Sainsbury <graces@redhat.com>
6217 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6218 (REGISTER_BYTES_OK): Remove.
6219 (REGISTER_BYTES): Remove.
6220 (STORE_STRUCT_RETURN): Remove.
6221 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6222 (STORE_RETURN_VALUE): Remove.
6223 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6224 (FRAME_CHAIN): Remove.
6225 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6226 (FRAME_SAVED_PC): Remove.
6227 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6228 (m68k_store_struct_return): Add.
6229 (m68k_deprecated_extract_return_value): Add.
6230 (m68k_deprecated_extract_struct_value_address): Add.
6231 (m68k_store_return_value): Add.
6232 (m68k_frame_chain): Add.
6233 (m68k_frameless_function_invocation): Add.
6234 (m68k_frame_saved_pc): Add.
6235 (m68k_gdbarch_init): added set_gdbarch calls for new
6236 functions and deleted macros.
6238 2002-06-23 Tom Tromey <tromey@redhat.com>
6240 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6241 (ALLDEPFILES): Likewise.
6242 (udiheaders): Removed.
6243 (udip2soc.o): Likewise.
6244 (udi2go32.o): Likewise.
6246 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6248 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6250 * infrun.c (_initialize_infrun): Delete unnecessary call to
6253 * regcache.h: Update comments describing the regcache_cpy family
6255 (regcache_save, regcache_restore): Delete declaration.
6256 (regcache_save_no_passthrough): Delete declaration.
6257 (regcache_restore_no_passthrough): Delete declaration.
6258 * regcache.c (regcache_save): Delete function.
6259 (regcache_save_no_passthrough): Delete function.
6260 (regcache_restore): Delete function.
6261 (regcache_restore_no_passthrough): Delete function.
6263 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6265 * config/m68k/tm-m68k.h: Fix typo.
6266 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6267 (m68k_frame_init_saved_regs): Declare.
6269 2002-06-21 Jim Blandy <jimb@redhat.com>
6271 Remove some vestiges of Harris 88k support.
6272 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6273 register numbering quirk.
6274 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6275 odd symbols occurring in Harris 88k ELF targets.
6277 2002-06-21 Tom Tromey <tromey@redhat.com>
6279 * gdb_locale.h: New file.
6280 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6281 (defs_h): Added gdb_locale.h.
6282 * configure, config.in: Rebuilt.
6283 * configure.in (PACKAGE): Define.
6284 * defs.h: Include gdb_locale.h.
6285 * main.c (captured_main): Call setlocale, bindtextdomain,
6288 2002-06-21 Dave Brolley <brolley@redhat.com>
6290 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6291 * config/frv/frv.mt: New file.
6292 * config/frv/tm-frv.h: New file.
6293 * configure.tgt: Support frv-*-*.
6294 * Makefile.in (frv-tdep.o): New target.
6295 * frv-tdep.c: New file.
6296 * NEWS: Mention frv.
6298 2002-06-21 Dave Brolley <brolley@redhat.com>
6300 * MAINTAINERS: Add self to "Write After Approval" list.
6302 2002-06-21 Grace Sainsbury <graces@redhat.com>
6304 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6305 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6306 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6307 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6308 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6310 * m68k-tdep.c: Include arch-utils.h
6311 (m68k_register_raw_size): Add.
6312 (m68k_register_virtual_size): Add.
6313 (m68k_register_virtual_type): Add.
6314 (m68k_register_name): Add.
6315 (m68k_stack_align): Add.
6316 (m68k_register_byte): Add.
6317 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6320 2002-06-21 Grace Sainsbury <graces@redhat.com>
6322 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6323 m68k_find_saved_regs.
6324 (m68k_pop_frame): Removed saved_regs structure, and replaced
6325 references to it with frame->saved_regs.
6326 (m68k_gdbarch_init): Added function calls to initialize the
6328 (m68k_fix_call_dummy): Add.
6329 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6330 (CALL_DUMMY): Remove.
6331 (CALL_DUMMY_LENGTH): Remove.
6332 (CALL_DUMMY_START_OFFSET): Remove.
6333 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6334 (FIX_CALL_DUMMY): Remove.
6335 (PUSH_DUMMY_FRAME): Remove.
6336 (POP_FRAME): Remove.
6338 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6340 * parse.c (parse_fprintf): New function used to avoid calls to
6341 fprintf in bison parser generated debug code.
6342 * parser-defs.h: Declaration of new parse_fprintf function.
6343 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6344 Set YYDEBUG to 1 by default.
6345 Set YYFPRINTF as parse_fprintf.
6347 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6349 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6351 (pointer_encoding, enum ptr_encoding): New.
6352 (execute_cfa_program): Take care about pointer encoding.
6353 (dwarf2_build_frame_info): Only call parse_frame_info for
6354 .debug_frame and .eh_frame.
6355 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6356 fixed augmentation handling, added relative addressing,
6357 ignore duplicate FDEs. Added comments.
6358 * dwarf2cfi.c: Reindented.
6360 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6362 * event-top.c (command_handler): Don't use space_at_cmd_start
6363 unless there is sbrk() on the host. Assign time and space data
6364 to union fields of the appropriate length.
6366 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6368 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6369 x86_64_register_name. Return type changed to 'const char *'.
6370 (x86_64_register_name2nr): Rename to x86_64_register_number.
6371 (x86_64_gdbarch_init): Update to reflect the change.
6372 * x86-64-tdep.h: Ditto.
6373 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6374 (supply_fpregset): Ditto.
6376 2002-06-19 Andrew Cagney <cagney@redhat.com>
6378 * regcache.h: Update copyright.
6379 (struct regcache, struct gdbarch): Add opaque declarations.
6380 (current_regcache): Declare global variable.
6381 (regcache_read, regcache_write): Add gdbarch parameter.
6382 (regcache_save, regcache_save_no_passthrough)
6383 (regcache_restore, regcache_restore_no_passthrough)
6384 (regcache_dup, regcache_dup_no_passthrough)
6385 (regcache_cpy, regcache_cpy_no_passthrough)
6386 (deprecated_grub_regcache_for_registers)
6387 (deprecated_grub_regcache_for_register_valid)
6388 (regcache_valid_p): Add function declarations.
6390 * regcache.c: Update copyright.
6391 (regcache_descr_handle): New global variable.
6392 (struct regcache_descr): Define.
6393 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6394 (regcache_descr, xfree_regcache_descr): New functions.
6395 (struct regcache): Define.
6396 (regcache_xmalloc, regcache_xfree): New functions.
6397 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6398 (regcache_dup, regcache_dup_no_passthrough): New functions.
6399 (regcache_valid_p, regcache_read_as_address): New functions.
6400 (deprecated_grub_regcache_for_registers): New function.
6401 (deprecated_grub_regcache_for_register_valid): New function.
6402 (current_regcache): New global variable.
6403 (register_buffer): Add regcache parameter. Update calls.
6404 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6405 (read_register_gen, write_register_gen): Update register_buffer
6406 call. Test for legacy_p instead of gdbarch_register_read_p or
6407 gdbarch_register_write_p.
6408 (regcache_collect): Update register_buffer call.
6409 (build_regcache): Rewrite. Use deprecated grub functions.
6410 (regcache_save, regcache_save_no_passthrough): New functions.
6411 (regcache_restore, regcache_restore_no_passthrough): New
6413 (_initialize_regcache): Create the regcache_data_handle. Swap
6414 current_regcache global variable.
6416 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6417 parameter to regcache_read and regcache_write calls.
6418 (sh4_register_read): Ditto.
6419 (sh64_pseudo_register_read): Ditto.
6420 (sh64_register_read): Ditto.
6421 (sh_pseudo_register_write): Ditto.
6422 (sh4_register_write): Ditto.
6423 (sh64_pseudo_register_write): Ditto.
6424 (sh64_register_write): Ditto.
6426 * defs.h (XCALLOC): Define.
6428 2002-06-19 Grace Sainsbury <graces@redhat.com>
6430 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6431 * m68k-tdep.c (m68k_gdbarch_init): Added.
6432 (m68k_dump_tdep): Added.
6434 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6436 * ada-lang.c (fill_in_ada_prototype): Update comment.
6438 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6440 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6442 (mips_abi_string, mips_abi_strings): New.
6443 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6444 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6445 tdep->mips_abi_string. Honor mips_abi_string. Default to
6446 O32 if no ABI is found.
6447 (mips_dump_tdep): Use mips_abi_strings.
6448 (mips_abi_update): New function.
6449 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6450 ``set mips abi'' and ``show mips abi''. Check the size of
6453 2002-06-19 Andrew Cagney <cagney@redhat.com>
6455 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6458 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6460 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6461 current frame using only the first stack size adjustment. All
6462 subsequent size adjustments are not considered to be part of
6463 the "static" part of the current frame.
6464 Compute the address of the saved registers relative to the
6465 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6466 in use in this frame.
6468 2002-06-18 Don Howard <dhoward@redhat.com>
6470 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6471 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6472 suggesting this solution.
6474 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6476 * config/romp/xm-rtbsd.h: Delete file.
6477 * config/romp/rtbsd.mh: Delete file.
6479 2002-06-18 Keith Seitz <keiths@redhat.com>
6481 * breakpoint.c (condition_command): Post breakpoint_modify
6482 when a condition is added to an existing breakpoint.
6483 (commands_command): Likewise for commands.
6484 (set_ignore_count): Likewise for ignore counts.
6485 If no tty, do not simply return, still need to send event
6487 (ignore_command): Only print a newline if the command came
6489 Don't call breakpoints_changed, since this is now properly
6490 handled by set_ignore_count.
6492 2002-06-18 Andrew Cagney <cagney@redhat.com>
6494 * MAINTAINERS: Note that cris-elf target can be compiled with
6496 * cris-tdep.c (cris_register_name): Make return type constant.
6497 (cris_breakpoint_from_pc): Ditto.
6499 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6501 * frame.h (struct frame_info): Change type of context to
6504 2002-06-17 Andrew Cagney <cagney@redhat.com>
6506 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6508 * gdbarch.h, gdbarch.c: Regenerate.
6509 * config/mips/tm-mips.h (mips_register_name): Update.
6510 * i386-tdep.h (i386_register_name): Update.
6511 * mips-tdep.c (mips_register_name): Update
6512 * alpha-tdep.c (alpha_register_name): Update.
6513 * arch-utils.c (legacy_register_name): Update.
6514 * arch-utils.h (legacy_register_name): Update.
6515 * avr-tdep.c (avr_register_name): Update.
6516 * ia64-tdep.c (ia64_register_name): Update.
6517 * i386-tdep.c (i386_register_name): Update.
6518 * sparc-tdep.c (sparc32_register_name): Update.
6519 (sparc64_register_name): Update.
6520 (sparclite_register_name): Update.
6521 (sparclet_register_name): Update.
6522 * sh-tdep.c (sh_generic_register_name): Update.
6523 (sh_sh_register_name): Update.
6524 (sh_sh3_register_name): Update.
6525 (sh_sh3e_register_name): Update.
6526 (sh_sh_dsp_register_name): Update.
6527 (sh_sh3_dsp_register_name): Update.
6528 (sh_sh4_register_name): Update.
6529 (sh_sh64_register_name): Update.
6530 * s390-tdep.c (s390_register_name): Update.
6531 * rs6000-tdep.c (rs6000_register_name): Update.
6532 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6533 (ns32k_register_name_32382): Update.
6534 * d10v-tdep.c (d10v_ts2_register_name): Update.
6535 (d10v_ts3_register_name): Update.
6536 * xstormy16-tdep.c (xstormy16_register_name): Update.
6537 * vax-tdep.c (vax_register_name): Update.
6538 * v850-tdep.c (v850_register_name): Update.
6539 * m68hc11-tdep.c (m68hc11_register_name): Update.
6540 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6541 (am33_register_name): Update.
6543 2002-06-17 Grace Sainsbury <graces@redhat.com>
6545 * m68k-tdep.c: Reindented.
6547 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6549 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6550 list of predefined types.
6552 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6554 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6555 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6556 REGISTER_CONVERT_TO_RAW): Remove defines.
6557 (i386_register_virtual_type, i386_register_convertible,
6558 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6560 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6561 macros mentioned above.
6563 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6564 (i386lynx_saved_pc_after_call): Remove prototype.
6565 * i386ly-tdep.c: Include "i386-tdep.h".
6566 (i386lynx_saved_pc_after_call): Make static. Use
6567 read_memory_nobpt instead of read_memory. Use
6568 read_memory_unsigned_integer instead of read_memory_integer.
6569 (i386lynx_init_abi): New function.
6570 (i386lynx_coff_osabi_sniffer): New function.
6571 (_initialize_i386bsd_tdep): New function.
6573 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6574 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6575 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6576 (i386_fix_call_dummy): Remove prototype.
6577 * i386-tdep.c (i386_call_dummy_words): New variable.
6578 (i386_gdbarch_init): Adjust for removal of the
6579 macros mentioned above.
6581 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6583 * command.h (add_setshow_auto_boolean_cmd): Replace
6584 add_set_auto_boolean_cmd.
6585 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6586 add_set_auto_boolean_cmd.
6587 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6588 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6589 mask-address'' command.
6590 (show_mask_address): Add cmd parameter.
6591 * remote.c (add_packet_config_cmd): Update. Change type of
6592 set_func and show_func to cmd_sfunc_ftype.
6593 (_initialize_remote): Update `set remote Z-packet'
6594 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6595 (show_remote_protocol_e_packet_cmd): Ditto.
6596 (show_remote_protocol_E_packet_cmd): Ditto.
6597 (show_remote_protocol_P_packet_cmd): Ditto.
6598 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6599 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6600 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6601 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6602 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6603 (show_remote_protocol_Z_packet_cmd): Ditto.
6604 (show_remote_protocol_binary_download_cmd): Ditto.
6605 (show_remote_cmd): Pass NULL to all of above.
6607 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6609 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6610 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6611 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6612 POP_FRAME): Remove defines.
6613 (i386_push_arguments, i386_store_struct_return,
6614 i386_extract_return_value, i386_store_return_value,
6615 i386_extract_struct_value_address, i386_push_dummy_frame,
6616 i386_pop_frame): Renove prototypes.
6617 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6618 macros mentioned above.
6620 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6622 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6623 add_set_boolean_cmd.
6624 (add_setshow_cmd): New function.
6625 * command.h (add_setshow_boolean_cmd): Replace
6626 add_set_boolean_cmd.
6627 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6628 and ``set rdiromatzero''.
6629 * maint.c (_initialize_maint_cmds): Update commented out code.
6630 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6631 * target.c (initialize_targets): Update `set
6632 trust-readonly-sections'.
6633 * remote.c (_initialize_remote): Update `set remotebreak'.
6635 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6637 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6638 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6639 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6640 fit into multi-arch framework.
6641 (i386_breakpoint_from_pc): New function.
6642 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6645 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6646 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6647 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6648 (i386_frameless_function_invocation, i386_frame_num_args,
6649 i386_frame_init_saved_regs): Remove prototypes.
6650 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6651 macros mentioned above.
6653 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6655 * cli/cli-decode.c (set_cmd_cfunc): Update.
6656 (set_cmd_sfunc): Update.
6657 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6658 (set_cmd_sfunc, set_cmd_cfunc): Update.
6659 * cli/cli-decode.h: Update.
6661 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6663 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6664 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6666 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6668 * defs.h (auto_boolean): Declare enum.
6669 * command.h (cmd_auto_boolean): Delete enum.
6670 * mips-tdep.c (mask_address_var): Update.
6671 (mips_mask_address_p): Update.
6672 (show_mask_address): Update.
6673 * remote.c (struct packet_config): Update.
6674 (update_packet_config): Update.
6675 (show_packet_config_cmd): Update.
6676 (packet_ok): Update.
6677 (add_packet_config_cmd): Update.
6678 (_initialize_remote):
6679 * command.h: Update.
6680 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6681 (do_setshow_command): Update.
6682 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6683 * cli/cli-decode.h: Update.
6685 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6687 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6688 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6689 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6690 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6691 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6692 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6694 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6695 list of DJGPP COFF targets.
6697 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6698 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6699 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6700 (FP0_REGNUM): Remove define.
6701 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6702 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6703 (i386_register_virtual_size): Remove protoype.
6704 * i386-tdep.c (i386_register_virtual_size): Removed.
6705 (i386_extract_return_value, i386_store_return_value): Use
6706 FP0_REGNUM instead of NUM_FREGS to determine whether the
6707 floating-point registers are available.
6708 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6709 Adjust for removal of macros mentioned above.
6711 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6713 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6715 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6717 (supply_gregset, fill_gregset): Remove use of register keyword and
6718 remove declaration for regmap. Use I386_NUM_GREGS instead of
6719 NUM_REGS and NUM_FREGS.
6720 (FPREGSET_FSAVE_OFFSET): Remove.
6721 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6722 NUM_FREGS to determine whether the floating-point registers are
6725 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6726 gnu_store_registers): Replace usage of NUM_GREGS with
6729 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6730 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6731 usage of NUM_GREGS with I386_NUM_GREGS.
6733 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6735 * i386bsd-nat.c: Include "i386-tdep.h".
6736 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6739 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6740 and associated comment. They no longer make any sense, since we
6741 don't use this file anymore on Linux.
6743 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6744 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6745 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6746 elements in these arrays.
6747 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6750 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6752 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6753 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6755 2002-06-14 Andrew Cagney <cagney@redhat.com>
6757 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6758 EXTRACT_RETURN_VALUE.
6759 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6760 EXTRACT_STRUCT_VALUE_ADDRESS.
6761 * gdbarch.h, gdbarch.c: Regenerate.
6763 * values.c (value_being_returned): Handle
6764 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6765 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6767 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6768 * arm-tdep.c (arm_gdbarch_init): Update.
6769 * avr-tdep.c (avr_gdbarch_init): Update.
6770 * cris-tdep.c (cris_gdbarch_init): Update.
6771 * d10v-tdep.c (d10v_gdbarch_init): Update.
6772 * ia64-tdep.c (ia64_gdbarch_init): Update.
6773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6774 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6775 * s390-tdep.c (s390_gdbarch_init): Update.
6776 * sh-tdep.c (sh_gdbarch_init): Update.
6777 * s390-tdep.c (s390_gdbarch_init): Update.
6778 * sparc-tdep.c (sparc_gdbarch_init): Update.
6779 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6780 * v850-tdep.c (v850_gdbarch_init): Update.
6781 * vax-tdep.c (vax_gdbarch_init): Update.
6782 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6785 * config/arc/tm-arc.h: Update.
6786 * config/d30v/tm-d30v.h: Update.
6787 * config/fr30/tm-fr30.h: Update.
6788 * config/h8300/tm-h8300.h: Update.
6789 * config/h8500/tm-h8500.h: Update.
6790 * config/i386/tm-i386.h: Update.
6791 * config/i386/tm-ptx.h: Update.
6792 * config/i386/tm-symmetry.h: Update.
6793 * config/i960/tm-i960.h: Update.
6794 * config/m32r/tm-m32r.h: Update.
6795 * config/m68k/tm-delta68.h: Update.
6796 * config/m68k/tm-linux.h: Update.
6797 * config/m68k/tm-m68k.h: Update.
6798 * config/m88k/tm-m88k.h: Update.
6799 * config/mcore/tm-mcore.h: Update.
6800 * config/mips/tm-mips.h: Update.
6801 * config/mn10200/tm-mn10200.h: Update.
6802 * config/pa/tm-hppa.h: Update.
6803 * config/pa/tm-hppa64.h: Update.
6804 * config/sparc/tm-sp64.h: Update.
6805 * config/sparc/tm-sparc.h: Update.
6806 * config/sparc/tm-sparclet.h: Update.
6807 * config/z8k/tm-z8k.h: Update.
6809 2002-06-14 Andrew Cagney <cagney@redhat.com>
6811 * Makefile.in (i386_linux_tdep_h): Define.
6812 (i386_tdep_h, i387_tdep_h): Define.
6813 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6814 $(i386_tdep_h) and $(i387_tdep_h).
6815 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6817 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6819 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6820 Already covered by the default.
6822 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6823 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6824 (i386_gdbarch_init): Initialize long_double_format and long_double
6827 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6828 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6830 * config/i386/i386sol2.mh: ... here.
6831 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6832 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6833 (SIGCONTEXT_PC_OFFSET): Remove define.
6834 (IN_SIGTRAMP): Remove define.
6835 * i386-sol2-tdep.c: New file.
6837 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6838 * config/i386/tm-i386nw.h: Removed.
6840 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6841 USE_STRUCT_CONVENTION): Remove defines.
6842 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6843 (get_longjmp_target): Remove prototype.
6844 (IN_SIGTRAMP): Remove define.
6845 (i386bsd_in_sigtramp): Remove prototype.
6846 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6847 function. Update comment accordingly
6848 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6849 (FRAME_SAVED_PC): Remove define.
6850 (i386bsd_frame_saved_pc): Remove prototype.
6851 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6852 GET_LONGJMP_TARGET): Remove defines.
6853 (get_longjmp_target): Remove prototype.
6854 (IN_SIGTRAMP): Remove define.
6855 (i386bsd_in_sigtramp): Remove prototype.
6856 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6857 function. Update comment accordingly
6858 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6859 (FRAME_SAVED_PC): Remove define.
6860 (i386bsd_frame_saved_pc): Remove prototype.
6861 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6863 (USE_STRUCT_CONVENTION): Remove prototype.
6864 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6866 (_initialize_i386bsd_nat): Revise logic to determine some
6867 constants at compile time when compiling a native GDB. Warn if
6868 things don't match up with what we expect.
6869 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6871 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6872 to use date stored in `struct gdbarch_tdep'.
6873 (i386bsd_sigcontext_offset): Remove varaible.
6874 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6875 stored in `struct gdbarch_tdep'.
6876 (i386bsd_frame_saved_pc): Make static.
6877 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6878 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6879 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6880 i386fbsd4_sc_pc_offset): New variables.
6881 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6882 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6884 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6886 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6887 Modify the value of i386fbsd_sigtramp_start and
6888 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6889 i386fbsd_sigtramp_end.
6890 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6893 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6894 define to i386-linux-tdep.h.
6895 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6896 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6898 (i386_linux_register_name, i386_linux_register_byte,
6899 i386_linux_register_raw_size): Remove prototypes.
6900 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6901 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6902 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6903 TARGET_WRITE_PC): Remove defines.
6904 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6905 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6906 i386_linux_write_pc): Remove prototypes.
6907 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6908 (get_longjmp_target): Remove prototype.
6909 * i386-linux-tdep.h: New file.
6910 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6911 * i386-linux-tdep.c: Include "i386-tdep.h" and
6912 "i386-linux-tdep.h".
6913 (i386_linux_register_name, i386_linux_register_byte,
6914 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6915 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6917 (i386_linux_init_abi): New function.
6918 (_initialize_i386_linux_tdep): New function.
6920 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6921 (i386_saved_pc_after_call): Remove prototype.
6922 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6923 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6924 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6925 (i386_register_name, i386_stab_reg_to_regnum,
6926 i386_dwarf_reg_to_regnum): Remove prototypes.
6927 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6928 SIZEOF_SSE_REGS): Remove defines.
6929 (REGISTER_BYTES): Remove define.
6930 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6931 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6932 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6933 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6934 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6935 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6936 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6937 (get_longjmp_target): Remove prototype.
6938 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6939 (sigtramp_saved_pc): Remove define.
6940 (i386v4_sigtramp_saved_pc): Remove prototype.
6941 * config/i386/tm-go32.h (FRAME_CHAIN,
6942 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6943 (i386go32_frame_saved_pc): Remove prototype.
6944 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6945 (get_longjmp_target): Remove prototype.
6946 * i386-tdep.h: Include "osabi.h".
6947 (enum i386_abi): Removed.
6948 (enum struct_return): New enum.
6949 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6950 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6951 sc_pc_offset members.
6952 (i386_gdbarch_register_os_abi): Remove prototype.
6953 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6954 I386_SSE_NUM_REGS): New defines.
6955 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6956 I386_SSE_SIZEOF_REGS): New defines.
6957 (i386_register_name, i386_register_byte, i386_register_raw_size):
6959 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6960 (i386bsd_sigtramp_saved_pc): New prototype.
6961 * i386-tdep.c: Don't include "elf-bfd.h".
6962 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6963 i386_frame_chain, i386_saved_pc_after_call): Make static.
6964 (i386_frame_saved_pc): Rewrite to call architecture dependent
6965 function to deal with signal handlers. Make static.
6966 (i386go32_frame_saved_pc): Removed.
6967 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6969 (i386_get_longjmp_target): New function.
6970 (default_struct_convention, pcc_struct_convention,
6971 reg_struct_convention, valid_conventions, struct_convention): New
6973 (i386_use_struct_convention): New function.
6974 (i386v4_sigtramp_saved_pc): Renamed to
6975 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6976 (i386_pc_in_sigtramp): New function.
6977 (i386_abi_names): Removed.
6978 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6979 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6981 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6982 i386_gdbarch_register_os_abi): Removed.
6983 (struct i386_abi_handler): Removed.
6984 (i386_abi_handler_list): Removed.
6985 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6987 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6988 i386_nw_init_abi): New functions.
6989 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6990 Use set_gdbarch_xxx() calls instead of relying on macros for a
6992 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6993 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6994 Register the various architecture variants defined in this file.
6996 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6998 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6999 (struct main_type): Remove arg_types member. Update comments for
7001 (TYPE_ARG_TYPES): Remove.
7002 (TYPE_FN_FIELD_ARGS): Update.
7003 (smash_to_method_type): Update prototype.
7005 * c-typeprint.c (cp_type_print_method_args): Take method type
7006 instead of argument list. Use new argument layout. Simplify.
7007 (c_type_print_args): Use new argument layout. Simplify.
7008 (c_type_print_base): Update call to cp_type_print_method_args.
7009 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7010 argument; use die->type instead. Update call to
7011 smash_to_method_type.
7012 (read_structure_scope): Update call to dwarf2_add_member_fn.
7013 * gdbtypes.c (allocate_stub_method): Update comment.
7014 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7015 Use new argument layout.
7016 (check_stub_method): Use new argument layout. Don't count
7017 void as an argument.
7018 (print_arg_types): Update comments. Use new argument layout.
7019 (recursive_dump_type): Don't print arg_types member.
7020 * hpread.c (hpread_read_struct_type): Use new argument layout.
7021 (fixup_class_method_type): Likewise.
7022 (hpread_type_lookup): Likewise.
7023 * stabsread.c (read_type): Update calls to read_args and
7024 smash_to_method_type.
7025 (read_args): Use new argument layout. Simplify.
7026 * valops.c (typecmp): Use new argument layout. Update parameters
7027 and comments. Simplify.
7028 (hand_function_call): Use new argument layout.
7029 (search_struct_method): Update call to typecmp.
7030 (find_overload_match): Use new argument layout.
7032 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7034 * NEWS: Mention multithreaded debug support for gdbserver.
7036 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7038 * MAINTAINERS: Mention NEWS.
7040 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7042 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7043 (struct mips_objfile_private, compare_pdr_entries): New.
7044 (non_heuristic_proc_desc): Read the ".pdr" section if it
7047 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7049 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7050 (arm_debug): New static variable.
7051 (_initialize_arm_tdep): Add ``set debug arm'' command.
7053 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7055 * Makefile.in (sim_arm_h): Define.
7056 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7057 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7058 (arm_register_sim_regno): New function, map an internal REGNUM
7059 onto a simulator register number.
7060 (arm_gdbarch_init): Set register_sim_regno.
7062 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7064 * MAINTAINERS: Add self.
7066 2002-06-11 Jim Blandy <jimb@redhat.com>
7068 * source.c (source_info): Mention whether the symtab has
7069 information about preprocessor macros.
7071 Call the command `info macro', not `show macro'.
7072 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7074 (_initialize_macrocmd): Register `info_macro_command' in
7075 `infolist', not `showlist'.
7077 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7079 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7080 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7081 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7082 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7083 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7085 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7086 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7087 (_initialize_mips_tdep): Remove dead code.
7088 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7089 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7090 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7091 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7092 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7093 MIPS_LAST_FP_ARG_REGNUM): Remove.
7095 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7097 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7098 (unwind_tmp_obstack_free, parse_frame_info)
7099 (update_context, cfi_read_fp, cfi_write_fp)
7100 (cfi_frame_chain, cfi_init_extra_frame_info)
7101 (cfi_virtual_frame_pointer): Use the above function.
7102 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7104 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7106 * v850-tdep.c (v850_type_is_scalar): New function.
7107 (v850_use_struct_convention): Match current gcc implementation
7108 as close as possible.
7109 (v850_push_arguments): Fix stack_offset handling. Don't write
7110 struct_addr into register. This is done by v850_store_struct_return.
7111 (v850_extract_return_value): Care for structs.
7112 (v850_store_return_value): Ditto.
7113 (v850_store_struct_return): Actually write address.
7115 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7117 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7118 without debug information too.
7120 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7122 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7123 Make multi-arch pure.
7124 * gdbarch.h, gdbarch.c: Re-generate.
7125 * arm-tdep.c (arm_print_float_info): Update.
7126 * arch-utils.h (default_print_float_info): Update.
7127 * arch-utils.c (default_print_float_info): Update.
7128 * infcmd.c (float_info): Update call.
7130 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7132 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7133 the front of the initialize list.
7135 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7137 * infrun.c (struct inferior_status): Replace fields
7138 selected_frame_address and selected_level with field
7140 (save_inferior_status): Update. Use get_frame_id.
7141 (struct restore_selected_frame_args): Delete.
7142 (restore_selected_frame): Update. Use frame_find_by_id.
7143 (restore_inferior_status): Update.
7145 * breakpoint.h (struct breakpoint): Change type of
7146 watchpoint_frame to frame_id.
7147 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7148 call to get_current_frame.
7149 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7151 (watchpoint_check): Use frame_find_by_id.
7153 * frame.h (record_selected_frame): Delete declaration.
7154 * stack.c (record_selected_frame): Delete function.
7156 * frame.h (struct frame_id): Define.
7157 (get_frame_id): Declare.
7158 (frame_find_by_id): Declare.
7159 * frame.c (frame_find_by_id): New function.
7160 (get_frame_id): New function.
7162 2002-06-10 Andrey Volkov <avolkov@transas.com>
7164 * ser-e7kpc.c: Fix duplicated define and call of
7165 _initialize_ser_e7000pc
7167 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7169 * signals/signals.c (target_signal_from_host): Fix #ifdef
7171 (do_target_signal_to_host): Likewise.
7173 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7175 * mips-tdep.c (mips_find_abi_section): New function.
7176 (mips_gdbarch_init): Call it.
7178 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7180 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7181 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7182 after Andrew's 2002-06-08 gdbarch change.
7184 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7186 * i386-linux-nat.c (suppy_gregset): Don't supply
7187 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7189 (fill_gregset): Don't fetch it under the same circumstances.
7191 2002-06-09 Andrew Cagney <cagney@redhat.com>
7193 * Makefile.in (callback_h): Define.
7194 (remote_sim_h): Update path to remote-sim.h.
7195 (remote-rdp.o): Add $(callback_h).
7196 (remote-sim.o): Use $(callback_h).
7197 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7198 * remote-rdp.c: Include "gdb/callback.h".
7200 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7202 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7203 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7205 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7207 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7208 * rdi-share/serpardr.c: Ditto.
7209 * rdi-share/unixcomm.c: Ditto.
7210 * rdi-share/serdrv.c: Ditto.
7211 * rdi-share/hostchan.h: Ditto.
7212 * rdi-share/hostchan.c: Ditto.
7213 * rdi-share/host.h: Ditto.
7214 * rdi-share/devsw.c: Ditto.
7216 * objfiles.h: Change type of obj_private to void pointer.
7217 * pa64solib.c: Update copyright. Don't include "assert.h", use
7218 strcmp instead of STREQ, use LONGEST, do not use PTR
7219 * somsolib.c: Ditto.
7221 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7222 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7223 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7225 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7227 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7228 (default_get_saved_register): Delete function.
7229 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7230 generic_unwind_get_saved_register.
7231 * gdbarch.h, gdbarch.c: Re-generate.
7233 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7235 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7236 generic_func_frame_chain_valid.
7237 * gdbarch.h, gdbarch.c: Re-generate.
7238 * blockframe.c (generic_func_frame_chain_valid): Only check
7239 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7240 passing FP to PC_IN_CALL_DUMMY.
7243 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7245 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7246 (register_gdbarch_data): Initialize init_p.
7247 (gdbarch_data): Initialize data pointer using the init function.
7248 (init_gdbarch_data): Delete function.
7249 (gdbarch_update_p): Update.
7250 (initialize_non_multiarch): Update.
7251 (struct gdbarch): Add field initialized_p.
7252 * gdbarch.h, gdbarch.c: Re-generate.
7254 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7256 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7257 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7258 better do the things actually here.
7259 * x86-64-tdep.c (x86_64_register_name2nr): New.
7260 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7261 (x86_64_gdbarch_init): Respect the above change.
7262 * x86-64-tdep.h (x86_64_register_name2nr)
7263 (x86_64_register_nr2name): Add prototypes.
7264 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7266 2002-06-06 Michael Snyder <msnyder@redhat.com>
7268 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7269 Delete extra braces and re-indent.
7270 (d10v_store_return_value): Char return values
7271 must be shifted over by one byte in R0.
7272 (d10v_extract_return_value): Delete extra braces, re-indent.
7274 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7276 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7277 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7278 (d10v_integer_to_address): Rewrite.
7279 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7280 the d10v specific functions which take care of converting to the
7283 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7285 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7286 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7288 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7290 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7292 * config/tm-linux.h: Ditto.
7293 * config/alpha/tm-alphalinux.h: Ditto.
7294 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7295 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7296 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7297 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7298 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7299 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7300 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7301 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7302 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7303 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7304 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7305 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7306 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7307 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7308 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7309 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7310 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7311 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7312 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7313 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7314 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7315 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7316 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7317 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7318 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7319 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7320 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7321 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7322 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7323 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7324 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7325 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7326 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7327 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7328 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7329 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7330 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7332 2002-05-04 Aidan Skinner <aidan@velvet.net>
7334 * ada-exp.tab.c: New file
7335 * ada-exp.y: New file
7336 * ada-lang.c: New file
7337 * ada-lang.h: New file
7338 * ada-lex.c: New file
7339 * ada-lex.l: New file
7340 * ada-tasks.c: New file
7341 * ada-typeprint.c: New file
7342 * ada-valprint.c: New file
7344 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7346 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7347 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7349 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7351 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7352 insetead of ppc-linux-tdep.o.
7353 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7354 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7356 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7358 2002-05-07 Christian Groessler <chris@groessler.org>
7359 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7360 bit register contents for little endian hosts.
7362 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7364 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7367 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7369 * gdbarch.h: Regenerate.
7371 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7373 * MAINTAINERS: Add everyone to write-after-approval list.
7375 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7377 * stack.c (frame_info): Use frame_register_unwind instead of
7378 saved_regs. Mention when the SP is on the stack or in a register.
7380 * frame.h (frame_register_unwind_ftype): Define. Document.
7381 (struct frame_info): Add field register_unwind and
7382 register_unwind_cache.
7383 (frame_register_unwind): Declare.
7384 (generic_unwind_get_saved_register): Declare.
7386 * frame.c (frame_register_unwind): New function.
7387 (generic_unwind_get_saved_register): New function.
7389 * blockframe.c (generic_call_dummy_register_unwind): New function.
7390 (frame_saved_regs_register_unwind): New function.
7391 (set_unwind_by_pc): New function.
7392 (create_new_frame): New function.
7393 (get_prev_frame): New function.
7395 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7397 * a29k-share/: Delete directory.
7398 * remote-vx29k.c: Delete file.
7400 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7402 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7403 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7405 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7407 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7408 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7411 (sparcnbsd-tdep.o): New dependency lists.
7412 * NEWS: Note new UltraSPARC NetBSD native configuration.
7413 * configure.host (sparc64-*-netbsd*): New host.
7414 * configure.tgt (sparc-*-netbsdelf*)
7415 (sparc-*-netbsd*): Set gdb_target to nbsd.
7416 (sparc64-*-netbsd*): New target.
7417 * sparc64nbsd-nat.c: New file.
7418 * sparcnbsd-nat.c: New file.
7419 * sparcnbsd-tdep.c: New file.
7420 * sparcnbsd-tdep.h: New file.
7421 * config/sparc/nbsd.mt: New file.
7422 * config/sparc/nbsd64.mh: New file.
7423 * config/sparc/nbsd64.mt: New file.
7424 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7425 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7427 * config/sparc/nbsdaout.mt: Remove.
7428 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7429 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7431 * config/sparc/nbsdelf.mt: Remove.
7432 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7433 sparc-nat.c compatiblity defines.
7434 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7435 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7436 * config/sparc/tm-nbsd64.h: New file.
7437 * config/sparc/tm-nbsdaout.h: Remove.
7438 * config/sparc/xm-nbsd.h: Remove.
7440 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7442 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7443 * sparc-tdep.c: Include osabi.h.
7444 (gdbarch_tdep): Add osabi member.
7445 (_initialize_sparc_tdep): Use gdbarch_register.
7446 (sparc_gdbarch_init): Use generic OS ABI framework.
7447 (sparc_dump_tdep): New function.
7449 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7451 * corefile.c (do_captured_read_memory_integer): Return non-zero
7453 (safe_read_memory_integer): Copy result of memory read when
7454 status is non-zero. Also, add comments.
7456 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7458 * Makefile.in (ppc_tdep_h): Define.
7461 (rs6000-tdep.o): Use $(ppc_tdep_h).
7464 (ppcnbsd-tdep.o): New dependency lists.
7465 * ppc-tdep.h: Use generic OS ABI framework.
7466 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7467 (ppc_linux_init_abi): New functions.
7468 (ppc_sysv_abi_broken_use_struct_convention)
7469 (ppc_sysv_abi_use_struct_convention)
7470 (ppc_sysv_abi_push_arguments): Move to...
7471 * ppc-sysv-tdep.c: ...here.
7472 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7473 * rs6000-tdep.c (process_note_abi_tag_sections)
7474 (get_elfosabi): Remove.
7475 (rs6000_gdbarch_init): Use generic OS ABI framework.
7476 (rs6000_dump_tdep): New function.
7477 (_initialize_rs6000_tdep): Use gdbarch_register.
7478 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7479 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7480 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7481 of ppc-linux-tdep.o.
7482 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7483 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7484 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7485 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7486 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7487 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7489 2002-05-29 Jim Blandy <jimb@redhat.com>
7491 * macroscope.c (default_macro_scope): Put `void' in empty argument
7494 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7496 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7497 * arch-utils.c: Include "sim-regno.h".
7498 * gdbarch.sh: Don't include "sim-regno.h".
7499 * gdbarch.h, gdbarch.c: Regenerate.
7500 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7502 * arch-utils.h (legacy_register_sim_regno): To here.
7503 * remote-sim.c (legacy_register_sim_regno): Move function from
7505 * arch-utils.c (legacy_register_sim_regno): To here.
7507 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7509 * sim-regno.h: New file.
7510 * Makefile.in (sim_regno_h): Define.
7511 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7512 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7513 (legacy_register_sim_regno): New function.
7514 (one2one_register_sim_regno): New function.
7515 (gdbsim_fetch_register): Rewrite.
7516 (gdbsim_store_register): Only store a register when
7517 REGISTER_SIM_REGNO is valid.
7518 * d10v-tdep.c: Include "sim-regno.h".
7519 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7520 (d10v_ts3_register_sim_regno): Ditto.
7521 * gdbarch.sh: Include "sim-regno.h".
7522 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7523 * gdbarch.h, gdbarch.c: Regenerate.
7524 * arch-utils.h (default_register_sim_regno): Delete declaration.
7525 * arch-utils.c (default_register_sim_regno): Delete function.
7527 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7529 * ppcnbsd-nat.c: Rewrite.
7530 * ppcnbsd-tdep.c: New file.
7531 * ppcnbsd-tdep.h: New file.
7532 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7533 solib.o, and solib-svr4.o.
7534 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7535 nbsd-tdep.o, and corelow.o.
7537 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7539 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7540 `tr' and `sed'. Mention that `broken' targets are not expected to
7543 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7545 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7546 Let PC point right after the prologue before looking up symbols.
7548 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7550 * i386-tdep.c (i386_register_virtual_type): Return
7551 builtin_type_vec128i for SSE registers.
7553 * gdbtypes.h (builtin_type_vec128i): Declare.
7555 * gdbtypes.c (build_builtin_type_vec128i): New function.
7556 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7557 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7558 (build_gdbtypes): Initialize new builtin vector types.
7559 (_initialize_gdbtypes): Register new vector types with gdbarch.
7561 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7563 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7564 since it has been multi-arch'd.
7565 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7566 Move Alpha and VAX multi-arch news entries to same section
7567 as other multi-arch news.
7569 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7571 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7572 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7573 static. Rename some register numbers to put them in ns32k-tdep
7575 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7576 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7578 (_initialize_ns32k_tdep): Use gdbarch_register.
7579 * ns32k-tdep.h: New file.
7580 * ns32knbsd-tdep.c: New file.
7581 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7582 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7583 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7584 REGISTER_BYTES, REGISTER_BYTE): Remove.
7585 * config/ns32k/tm-ns32k.h: New file.
7586 * config/ns32k/tm-umax.h: Remove.
7588 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7590 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7591 ns32k_store_struct_return, ns32k_extract_return_value,
7592 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7594 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7595 ns32k_saved_pc_after_call.
7596 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7597 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7598 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7599 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7600 ns32k_extract_struct_value_address.
7602 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7604 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7605 ns32k_fix_call_dummy): New.
7606 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7607 ns32k_call_dummy_words.
7608 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7609 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7610 CALL_DUMMY_NARGS): Remove.
7611 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7613 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7615 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7616 ns32k_frame_saved_pc, ns32k_frame_args_address,
7617 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7618 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7619 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7620 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7621 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7622 (BREAKPOINT): Remove..
7623 (FRAME_CHAIN): Define as ns32k_frame_chain.
7624 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7625 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7626 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7627 (FRAME_FIND_SAVED_REGS): Remove.
7628 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7629 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7630 (POP_FRAME): Define as ns32k_pop_frame.
7632 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7634 * ns32k-tdep.c (ns32k_register_byte_32082,
7635 ns32k_register_byte_32382, ns32k_register_raw_size,
7636 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7638 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7639 ns32k_register_byte_32382.
7640 * config/ns32k/tm-umax.h: Update copyright years.
7641 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7642 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7643 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7644 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7645 (ns32k_get_enter_addr): Fix prototype.
7647 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7649 * ns32k-tdep.c: Update copyright years.
7650 (ns32k_register_name_32082): New function.
7651 (ns32k_register_name_32382): Ditto.
7652 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7653 (REGISTER_NAME): Define as ns32k_register_name_32382.
7654 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7655 (REGISTER_NAME): Define as ns32k_register_name_32082.
7657 2002-05-24 Jim Blandy <jimb@redhat.com>
7659 * dwarf2read.c (free_line_header): Use xfree, not free.
7661 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7663 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7664 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7666 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7668 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7670 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7672 From Ross Alexander at NEC Europe:
7673 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7675 2002-05-23 Michael Snyder <msnyder@redhat.com>
7677 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7678 for input, rather than parse_and_eval_address.
7680 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7682 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7683 * Makefile.in (sim_d10v_h): Update definition.
7685 2002-05-24 Andrew Cagney <cagney@redhat.com>
7687 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7688 change `2002-05-22 Michael Snyder' below.
7689 (d10v_push_arguments): Ditto.
7690 (d10v_extract_return_value): Ditto.
7692 2002-05-23 Jim Blandy <jimb@redhat.com>
7694 * macrotab.c (check_for_redefinition): Don't complain if the new
7695 definition is the same as the previous one. Take more arguments
7696 to allow the comparison.
7697 (macro_define_object, macro_define_function): Pass more arguments
7698 to check_for_redefinition.
7700 2002-05-22 Michael Snyder <msnyder@redhat.com>
7702 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7703 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7704 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7705 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7706 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7707 Add a temp variable to save a call (and a memory read).
7708 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7709 if possible (so that PC_IN_CALL_DUMMY will work).
7711 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7713 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7715 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7717 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7719 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7720 (dwarf2_build_frame_info): Add offset to fde->initial_location
7721 so that frames of shared libraries are mapped correctly.
7722 (execute_stack_op): Change type of 'result' from ULONGEST to
7725 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7727 * config/alpha/tm-nbsd.h: Include solib.h.
7729 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7731 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7732 assumptions about the host's byte order.
7734 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7736 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7738 * alphanbsd-tdep.c: Include solib-svr4.h.
7739 * shnbsd-tdep.c: Ditto.
7741 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7743 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7744 nbsd-tdep.h to dependency list.
7745 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7746 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7747 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7748 nbsdaout.mh and nbsdelf.mh consistently.
7749 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7750 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7751 nbsdaout.mt and nbsdelf.mh consistently.
7752 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7753 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7754 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7755 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7756 a.out shared library stuff from here...
7757 * config/nm-nbsdaout.h: ...to here.
7758 * config/tm-nbsd.h: Remove.
7759 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7760 * config/arm/nbsd.mh: Remove.
7761 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7763 * config/arm/nbsdaout.mh: New file.
7764 * config/arm/nbsdelf.mh: New file.
7765 * config/arm/nm-nbsdaout.h: New file.
7766 * config/i386/nbsd.mh: Remove.
7767 * config/i386/nbsd.mt: Remove.
7768 * config/i386/nbsdaout.mh: New file.
7769 * config/i386/nbsdaout.mt: New file.
7770 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7771 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7772 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7773 i386_register_u_addr): Remove.
7774 * config/i386/nm-nbsdaout.h: New file.
7775 * config/i386/nm-nbsdelf.h: Remove.
7776 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7777 (USE_STRUCT_CONVENTION): Remove.
7778 * config/i386/tm-nbsdaout.h: New file.
7779 * config/i386/tm-nbsdelf.h: Remove.
7780 * config/m68k/nbsd.mh: Remove.
7781 * config/m68k/nbsd.mt: Remove.
7782 * config/m68k/nbsdaout.mh: New file.
7783 * config/m68k/nbsdaout.mt: New file.
7784 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7785 * config/m68k/nm-nbsdaout.h: New file.
7786 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7787 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7788 * config/ns32k/nbsd.mh: Remove.
7789 * config/ns32k/nbsd.mt: Remove.
7790 * config/ns32k/nbsdaout.mh: New file.
7791 * config/ns32k/nbsdaout.mt: New file.
7792 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7793 * config/ns32k/nm-nbsdaout.h: New file.
7794 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7795 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7796 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7797 (SVR4_SHARED_LIBS): Remove.
7798 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7799 * config/sparc/nbsd.mh: Remove.
7800 * config/sparc/nbsd.mt: Remove.
7801 * config/sparc/nbsdaout.mh: New file.
7802 * config/sparc/nbsdaout.mt: New file.
7803 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7804 * config/sparc/nbsdelf.mt: New file.
7805 * config/sparc/nm-nbsdaout.h: New file.
7806 * config/sparc/nm-nbsdelf.h: Remove.
7807 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7808 * config/sparc/tm-nbsdaout.h: New file.
7810 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7812 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7814 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7816 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7818 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7820 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7822 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7824 * NEWS: Note new MIPS NetBSD native configuration.
7825 * configure.host (mips*-*-netbsd*): New host.
7826 * configure.tgt (mips*-*-netbsd*): New target.
7827 * mipsnbsd-nat.c: New file.
7828 * mipsnbsd-tdep.c: New file.
7829 * mipsnbsd-tdep.h: New file.
7830 * config/mips/nbsd.mh: New file.
7831 * config/mips/nbsd.mt: New file.
7832 * config/mips/nm-nbsd.h: New file.
7833 * config/mips/tm-nbsd.h: New file.
7835 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7837 * Makefile.in (SFILES): Add osabi.c.
7838 (COMMON_OBS): Add osabi.o.
7839 (osabi.o): New dependency list.
7840 * osabi.c: New file.
7841 * osabi.h: New file.
7842 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7844 * Makefile.in (alpha_tdep_h): Define and use instead of
7846 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7847 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7849 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7850 * alpha-tdep.h: Include osabi.h.
7851 (alpha_abi): Remove.
7852 (gdbarch_tdep): Use generic OS ABI framework.
7853 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7854 gdbarch_register_osabi.
7855 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7856 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7857 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7859 * Makefile.in (sh_tdep_h): Add osabi.h.
7860 * sh-tdep.h (sh_osabi): Remove.
7861 (gdbarch_tdep): Use generic OS ABI framework.
7862 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7863 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7864 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7865 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7867 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7868 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7869 gdbarch_register_osabi.
7870 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7871 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7872 (get_elfosabi): Rename to...
7873 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7874 ABI framework support routines.
7875 (arm_gdbarch_init): Use generic OS ABI framework.
7876 (arm_dump_tdep): Likewise.
7877 (_initialize_arm_tdep): Likewise.
7878 * arm-tdep.h: Include osabi.h.
7880 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7882 (arm_gdbarch_register_os_abi): Remove prototype.
7883 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7884 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7886 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7887 * mips-tdep.c: Include osabi.h.
7888 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7891 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7893 * h8300-tdep.c: Fix formatting.
7895 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7897 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7898 printing vector registers.
7900 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7902 From Fernando Nasser:
7903 * remote.c (remote_async_open_1): Re-throw the exception when the
7905 (remote_cisco_open): Ditto.
7906 (remote_open_1): Ditto.
7908 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7910 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7911 (remote_start_remote): Add uiout parameter. Pass through to
7912 remote_start_remote_dummy.
7913 (remote_open_1): Use catch_exception instead of catch_errors.
7914 (remote_async_open_1): Ditto.
7915 (remote_cisco_open): Ditto.
7917 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7919 * remote.c (remote_start_remote): Replace PTR with void pointer.
7920 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7923 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7925 * gdb_indent.sh: Allow the script to be run in the sim directory.
7927 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7929 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7930 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7932 * corelow.c (core_open): Only call set_gdbarch_from_file if
7935 2002-05-17 Andrey Volkov <avolkov@transas.com>
7937 * h8300-tdep.c: Add support of EXR register
7938 * config/h8300/tm-h8300.h: Ditto.
7940 2002-05-17 Andrey Volkov <avolkov@transas.com>
7942 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7944 2002-05-17 Andrey Volkov <avolkov@transas.com>
7946 * h8300-tdep.c: Change literal regnums to REGNO.
7948 2002-05-17 Jim Blandy <jimb@redhat.com>
7950 * NEWS: Note addition of macro support.
7952 Expand preprocessor macros in C expressions.
7953 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7954 (scan_macro_expansion, scanning_macro_expansion,
7955 finished_macro_expansion): New function declarations.
7956 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7957 variable declarations.
7958 * parser-defs.h (expression_context_pc): New declaration.
7959 * parse.c (expression_context_pc): New variable.
7960 (parse_exp_1): Set expression_context_pc, as well as
7961 expression_context_block.
7962 * c-exp.y (yylex): If we're not already reading the result of a
7963 macro expansion, try to macro-expand the next token. When we're
7964 done scanning a macro expansion, switch back to the mainline text.
7965 Commas and `if's in a macro's expansion don't terminate the input.
7966 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7967 (macro_original_text, macro_expanded_text,
7968 expression_macro_lookup_func, expression_macro_lookup_baton): New
7970 (scan_macro_expansion, scanning_macro_expansion,
7971 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7972 c_preprocess_and_parse): New functions.
7973 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7974 c_preprocess_and_parse, instead of c_parse.
7975 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7976 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7978 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7980 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7981 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7982 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7984 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7986 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7988 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7990 * Makefile.in (sh_tdep_h): Define and use.
7991 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7992 register enum): Move to...
7993 * * sh-tdep.h: ...here.
7994 * sh-tdep.c: Include sh-tdep.h.
7995 * sh3-rom.c: Likewise.
7996 * shnbsd-tdep.c: Likewise.
7998 2002-05-16 Michael Snyder <msnyder@redhat.com>
8000 * arm-tdep.c: Spelling fix in comment.
8002 2002-05-16 Jim Blandy <jimb@redhat.com>
8004 Add commands for manually expanding macros and showing their
8006 * macrocmd.c, macroscope.c, macroscope.h: New files.
8007 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8008 (macroscope_h): New variable.
8009 (HFILES_NO_SRCDIR): Add macroscope.h.
8010 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8011 (macroscope.o, macrocmd.o): New rules.
8013 Teach the Dwarf 2 reader to read macro information.
8014 * dwarf2read.c: #include "macrotab.h".
8015 (dwarf_macinfo_buffer): New variable.
8016 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8018 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8019 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8020 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8021 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8022 dwarf2_macro_spaces_in_definition): New complaints.
8023 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8024 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8025 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8026 the partial symbol table.
8027 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8028 from what's recorded in the partial symbol table.
8029 (read_file_scope): If the compilation unit has a
8030 `DW_AT_macro_info' attribute, read its macro information.
8031 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8033 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8036 * ser-tcp.c: Don't include <netinet/udp.h>.
8038 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8040 * MAINTAINERS: Update my email address.
8042 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8044 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8045 include file of the same name.
8047 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8049 * configure.tgt: Mark v850 as multi-arched.
8050 * config/v850/tm-v850.h: Remove file.
8051 * config/v850/v850.mt: Eliminate TM_FILE.
8053 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8055 * v850-tdep.c: Full multi-arch.
8056 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8057 Define GDB_MULTI_ARCH to 2.
8059 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8061 * p-exp.y (current_type): New static variable.
8062 Carries the type of the expression at the position that is parsed.
8063 (push_current_type, pop_current_type): Two new functions. Used
8064 to store/restore current_type in expression on specific tokens.
8065 (search_field): New static variable. Set to one after parsing a point
8066 as at that point only a FIELDNAME token should be searched.
8067 (FIELDNAME): New token. After a point only a token belonging to
8068 current_type type definition is allowed.
8069 (all over token rules): reset and change current_type according
8071 (exp '[' rule): insert implicit array index field if
8072 exp is a pascal string type.
8074 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8076 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8077 frame info. Use frame_info's saved_regs instead of matching member
8078 in extra_frame_info throughout.
8079 (v850_frame_init_saved_regs): New function.
8080 (v850_init_extra_frame_info): Move most functionality into
8081 v850_frame_init_saved_regs().
8082 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8083 (v850_frame_find_saved_regs): Remove declaration.
8084 (FRAME_FIND_SAVED_REGS): Remove definition.
8085 (v850_frame_init_saved_regs): Add declaration.
8086 (FRAME_INIT_SAVED_REGS): Add definition.
8088 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8090 * v850-tdep.c: Begin multi-arch'ing v850.
8091 (v850_target_architecture_hook): Remove function.
8092 (v850_gdbarch_init): New function. Add code previously in
8093 v850_target_architecture_hook().
8094 (_initialize_v850_tdep): Don't set target_architecture_hook.
8095 Call register_gdbarch_init() instead.
8097 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8099 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8100 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8101 (fixup_class_method_type): Likewise.
8103 2002-05-15 Jim Blandy <jimb@redhat.com>
8105 Add macro structures to GDB's symbol tables. Nobody puts anything
8107 * symtab.h (struct symtab): New member: `macro_table'.
8108 * buildsym.h (pending_macros): New global variable.
8109 * buildsym.c: #include "macrotab.h".
8110 (buildsym_init): Initialize `pending_macros'.
8111 (end_symtab): If we found macro information while reading a CU's
8112 debugging info, do build a symtab structure for it. Make the
8113 symtab point to the macro information, and clear the
8114 `pending_macros' pointer which held it while we were reading the
8116 (really_free_pendings): Free any pending macro table.
8117 * objfiles.h (struct objfile): New member: `macro_cache'.
8118 * objfiles.c (allocate_objfile): Set allocate and free functions
8119 for the macro cache's objstack.
8120 (free_objfile): Empty the macro cache's obstack.
8121 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8122 set new allocate and free functions for it.
8123 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8124 free functions for the macro cache's objstack. (Why is this
8125 function building its own objfile?)
8126 * symmisc.c (print_objfile_statistics): Print statistics on the
8128 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8130 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8132 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8133 (REGISTER_U_ADDR): Delete definition.
8134 (arm_register_u_addr): Delete declaration.
8136 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8138 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8139 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8141 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8143 * regcache.c (register_valid): Revise comments refering to "Not
8144 available" and "unavailable".
8145 * frame.c (frame_register_read): Ditto.
8146 * findvar.c (value_of_register): Ditto.
8148 2002-05-15 Andrew Cagney <cagney@redhat.com>
8150 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8151 (remote-sim.o): Update dependencies.
8152 (d10v-tdep.o): Specify dependencies.
8153 (sim_d10v_h): Define.
8155 2002-05-14 Jim Blandy <jimb@redhat.com>
8157 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8158 * macrotab.c (macro_lookup_inclusion, find_definition,
8159 new_macro_table): Same.
8161 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8162 not `! strcmp ()'. This is a dubious improvement.
8163 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8165 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8166 although it's not necessary, to avoid a warning.
8168 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8170 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8171 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8172 TYPE_INSTANCE_FLAGS.
8173 (struct main_type): New.
8174 (struct type): Move most members to struct main_type. Change
8175 cv_type and as_type to new type_chain member. Add instance_flags.
8176 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8177 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8178 (finish_cv_type): Remove prototype.
8179 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8181 (alloc_type_instance): New function.
8182 (smash_type): New function.
8183 (make_pointer_type, make_reference_type, make_function_type)
8184 (smash_to_member_type, smash_to_method_type): Call smash_type.
8185 (make_qualified_type): New function.
8186 (make_type_with_address_space): Call make_qualified_type.
8187 (make_cv_type): Likewise.
8188 (finish_cv_type): Remove unnecessary function.
8189 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8190 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8191 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8192 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8193 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8194 * hpread.c (hpread_read_struct_type): Likewise.
8195 * stabsread.c (read_struct_type): Likewise.
8197 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8199 * configure.tgt: Add a catch all sh* target, for cases like
8200 sh[2,3,4]-elf and sh-hms.
8202 2002-05-14 Keith Seitz <keiths@redhat.com>
8204 * event-loop.c (create_file_handler): Don't do anything but
8205 update data when we are given a fd which we are already
8208 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8210 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8211 (update_context): Use __func__ in warnings.
8213 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8215 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8216 and tcp_close to net_open and net_close.
8217 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8218 using UDP if requested. Don't try to disable Nagle on UDP
8220 * remote.c (remote_serial_open): New function. Warn about UDP.
8221 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8223 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8225 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8227 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8229 * configure.tgt: Remove sh-hms target.
8230 * MAINTAINERS: Don't list sh-hms as a separate target.
8232 2002-05-13 Jim Blandy <jimb@redhat.com>
8234 Add first preprocessor macro-expansion files.
8235 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8236 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8237 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8238 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8239 (COMMON_OBS): Add macrotab.o, macroexp.o.
8240 (macroexp.o, macrotab.o): New rules.
8242 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8244 * config/m88k/tm-m88k.h: Update copyright.
8245 (m88k_target_write_pc): Declare
8246 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8247 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8248 (SHIFT_INST_REGS): Update definition.
8249 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8250 using old definition of TARGET_WRITE_PC.
8251 * regcache.c (generic_target_write_pc): Delete code handling
8253 * gdbarch.sh (NNPC_REGNUM): Delete.
8254 * gdbarch.h, gdbarch.c: Regenerate.
8256 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8258 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8261 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8263 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8264 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8265 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8267 * c-typeprint.c (cp_type_print_method_args): Likewise.
8268 (c_type_print_args): Likewise.
8269 * d10v-tdep.c (d10v_push_arguments): Likewise.
8270 (d10v_extract_return_value): Likewise.
8271 * expprint.c (print_subexp): Likewise.
8272 * gdbtypes.c (lookup_primitive_typename): Likewise.
8273 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8274 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8275 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8276 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8277 (TYPE_VECTOR): Likewise.
8278 * hpread.c (hpread_read_struct_type)
8279 (fix_static_member_physnames, fixup_class_method_type)
8280 (hpread_type_lookup): Likewise.
8281 * mdebugread.c (parse_symbol, parse_type): Likewise.
8282 * p-lang.c (is_pascal_string_type): Likewise.
8283 * valops.c (hand_function_call): Likewise.
8284 * x86-64-tdep.c (classify_argument): Likewise.
8286 * hpread.c (hpread_read_function_type)
8287 (hpread_read_doc_function_type): Call replace_type.
8288 * dstread.c (create_new_type): Delete.
8289 (decode_dst_structure, process_dst_function): Call alloc_type.
8290 Use type access macros.
8292 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8294 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8295 the're not supported by the current architecture.
8296 (i387_fill_fxsave): Likewise.
8298 2002-05-12 Fred Fish <fnf@redhat.com>
8300 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8301 sect_index_xxx members to index the first slot in section_offsets
8302 if all of the section_offsets are zero.
8304 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8306 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8307 checked in with last change.
8309 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8311 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8312 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8315 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8317 * Makefile.in: Update dependencies.
8319 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8321 * language.c (local_hex_string_custom): Simplify. Do not depend
8322 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8324 * memattr.c (mem_info_command): Replace calls to
8325 longest_local_hex_string and longest_local_hex_string_custom.
8326 * buildsym.c (make_blockvector): Ditto.
8327 * solib.c (info_sharedlibrary_command): Ditto.
8328 * tracepoint.c (tracepoints_info): Ditto.
8329 * symtab.c (print_msymbol_info): Ditto.
8331 * language.c (local_hex_string): Delete.
8332 (local_hex_string_custom): Delete.
8333 (longest_local_hex_string): Rename to local_hex_string.
8334 (longest_local_hex_string_custom): Rename to
8335 local_hex_string_custom.
8336 * language.h (local_hex_string): Change parameter type to LONGEST.
8337 (local_hex_string_custom): Ditto.
8338 (longest_local_hex_string): Delete declaration.
8339 (longest_local_hex_string_custom): Ditto.
8341 * solib.c: Update copyright.
8342 * memattr.c: Update copyright.
8344 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8346 * arch-utils.h (legacy_register_to_value): Declare.
8347 (legacy_value_to_register): Declare.
8348 (legacy_convert_register_p): Declare.
8349 * arch-utils.c (legacy_register_to_value): New function.
8350 (legacy_value_to_register): New function.
8351 (legacy_convert_register_p): New function.
8353 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8354 (VALUE_TO_REGISTER): Define.
8355 (CONVERT_REGISTER_P): Define.
8356 * gdbarch.h, gdbarch.c: Regenerate.
8358 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8360 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8363 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8364 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8366 * Makefile.in: Update dependencies for valops.c.
8367 * valops.c: Include "gdb_assert.h".
8368 (typecmp): Skip THIS parameter to methods.
8369 (find_method_list): Remove static_memfuncp argument,
8370 update callers. Check for stub methods.
8371 (find_value_oload_method_list): Don't set *static_memfuncp.
8372 (find_overload_match): Don't check for stub methods. Assert
8373 that methods are not stubbed. Handle static methods.
8374 (value_find_oload_method_list): Remove static_memfuncp argument.
8375 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8376 to the argument list for static stub methods.
8377 * value.h (value_find_oload_method_list): Update prototype.
8379 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8381 * arch-utils.h (generic_register_size): Declare.
8382 (generic_register_raw_size, generic_register_virtual_size): Delete
8384 * arch-utils.c (generic_register_raw_size): Delete.
8385 (generic_register_size): New function.
8386 (generic_register_virtual_size): Delete.
8388 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8389 default generic_register_size.
8390 * gdbarch.h, gdbarch.c: Re-generate.
8392 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8393 register_virtual_size.
8394 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8395 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8397 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8399 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8400 * gdbarch.h, gdbarch.c: Regenerate.
8401 * gnu-v3-abi.c: Update copyright.
8402 (vtable_address_point_offset): Update.
8403 (gnuv3_rtti_type): Update.
8404 (gnuv3_baseclass_offset): Update.
8405 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8406 (init_fetch_link_map_offsets): Update.
8407 * remote.c (get_remote_state): Update.
8409 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8411 * TODO: Remove value_headof/value_from_vtable_info comment.
8412 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8413 * values.c (value_headof, value_from_vtable_info): Delete.
8414 * value.h (value_from_vtable_info): Delete prototype.
8416 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8418 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8419 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8421 (gdb_assert_h): Define.
8422 (gdb_wait_h): Define.
8423 (gdb_regex_h): Define.
8425 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8427 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8428 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8430 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8432 * nbsd-tdep.c: Fix comment.
8434 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8436 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8437 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8438 (nbsd-tdep.o): New dependency list.
8439 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8441 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8442 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8443 * nbsd-tdep.c: New file.
8444 * nbsd-tdep.h: New file.
8445 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8447 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8448 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8449 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8450 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8452 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8454 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8455 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8456 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8457 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8458 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8459 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8461 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8463 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8464 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8465 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8466 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8467 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8468 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8469 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8471 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8473 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8474 fetch_elfcore_registers to...
8475 * i386nbsd-tdep.c: ...here.
8476 (i386nbsd_use_struct_convention): Rename to...
8477 (i386nbsd_aout_use_struct_convention): ...this.
8478 (i386nbsd_supply_reg): New function.
8479 (i386nbsd_fill_reg): New function.
8480 (fetch_core_registers): Use i386nbsd_supply_reg.
8481 (fetch_elfcore_registers): Likewise.
8482 (_initialize_i386nbsd_tdep): New function.
8483 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8484 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8485 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8486 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8487 (i386nbsd_aout_use_struct_convention): ...this.
8489 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8491 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8492 (store_inferior_registers): Use shnbsd_fill_reg.
8493 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8494 sh_nbsd_supply_register): Collapse into...
8495 (shnbsd_supply_reg): ...this.
8496 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8497 (shnbsd_fill_reg): ...this.
8498 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8499 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8500 (fetch_core_registers): Use shnbsd_supply_reg.
8501 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8502 (sh_nbsd_core_fns): Rename to...
8503 (shnbsd_core_fns): ...this.
8504 (sh_nbsd_elfcore_fns): Rename to...
8505 (shnbsd_elfcore_fns): ...this.
8506 (sh_nbsd_init_abi): Rename to...
8507 (shnbsd_init_abi): ...this.
8508 (_initialize_sh_nbsd_tdep): Rename to...
8509 (_initialize_shnbsd_tdep): ...this.
8510 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8511 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8512 sh_nbsd_fill_register): Remove prototypes.
8513 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8515 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8517 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8518 (i387-nat.o): Delete dependency list.
8519 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8520 (x86-64-linux-nat.o): Likewise.
8521 * i387-nat.c: Delete file, moving contents to...
8522 * i387-tdep.c: ...here.
8523 * i387-nat.h: Rename...
8524 * i387-tdep.h: ...to this.
8525 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8526 * i386-linux-nat.c: Likewise.
8527 * i386bsd-nat.c: Likewise.
8528 * i386gnu-nat.c: Likewise.
8529 * i386nbsd-nat.c: Likewise.
8530 * i386v4-nat.c: Likewise.
8531 * x86-64-linux-nat.c: Likewise.
8532 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8533 * config/i386/go32.mh (NATDEPFILES): Likewise.
8534 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8535 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8536 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8537 * config/i386/linux.mh (NATDEPFILES): Likewise.
8538 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8539 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8540 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8541 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8543 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8545 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8546 (alphanbsd-nat.o): Remove dependency list.
8547 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8548 * alphanbsd-nat.c: Delete. Contents moved to...
8549 * alphanbsd-tdep.c: ...here.
8550 (_initialize_alphanbsd_tdep): Register core functions.
8551 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8553 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8555 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8556 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8557 (alphanbsd-nat.o): Likewise.
8558 (alphabsd-tdep.o): New dependency list.
8559 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8560 (fill_gregset): Use alphabsd_fill_reg.
8561 (supply_fpregset): Use alphabsd_supply_fpreg.
8562 (fill_fpregset): Use alphabsd_fill_fpreg.
8563 (fetch_inferior_registers): Use struct reg and struct fpreg
8564 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8565 and alphabsd_supply_fpreg.
8566 (store_inferior_registers): Use struct reg and struct fpreg
8567 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8568 and alphabsd_fill_fpreg.
8569 * alphabsd-tdep.c: New file.
8570 * alphabsd-tdep.h: New file.
8571 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8572 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8573 alphabsd_supply_fpreg.
8574 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8575 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8577 2002-05-11 Eric Christopher <echristo@redhat.com>
8579 * mips-tdep.c (mips_double_register_type): Fix thinko.
8580 (mips_single_register_type): Ditto.
8581 * MAINTAINERS: Add self.
8583 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8585 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8586 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8587 right thing on architectures with different endianness and/or
8590 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8592 From Christian Limpach <chris@Pin.LU>
8593 * configure.in: Change sed expression which comments out
8594 NATDEPFILES to also comment out continuation lines.
8595 * configure: Regenerate.
8597 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8599 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8602 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8604 * sh-tdep.c: Include correct file.
8606 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8608 New support for sh64-elf (sh5) target.
8610 * configure.tgt: For sh64-elf target, default to sh-elf.
8612 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8613 (struct gdbarch_tdep): Add new fields for new registers and ABI
8616 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8617 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8618 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8619 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8620 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8621 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8622 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8623 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8624 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8625 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8626 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8627 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8628 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8629 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8630 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8631 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8632 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8633 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8634 sign_extend, sh64_nofp_frame_init_saved_regs,
8635 sh64_init_extra_frame_info, sh64_get_saved_register,
8636 sh64_extract_struct_value_address, sh64_pop_frame,
8637 sh64_push_arguments, sh64_extract_return_value,
8638 sh64_store_return_value, sh64_show_media_regs,
8639 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8640 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8641 sh_sh64_register_virtual_type,
8642 sh_sh64_register_convert_to_virtual,
8643 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8644 sh64_register_read, sh64_pseudo_register_write,
8645 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8646 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8647 sh64_do_pseudo_register, sh_compact_do_registers_info,
8648 sh64_do_registers_info, sh_gdbarch_init): New functions.
8650 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8652 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8654 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8656 * linespec.c (decode_line_1): Check for a double quote after
8657 a filename correctly.
8659 2002-05-10 Jim Blandy <jimb@redhat.com>
8661 Properly track the size of the current objfile's .debug_line section.
8662 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8663 (DWARF_LINE_SIZE): New macro.
8664 (dwarf2_build_psymtabs_hard): Record the line section's size in
8665 the partial symbol table.
8666 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8669 2002-05-10 Petr Sorfa <petrs@caldera.com>
8671 * ia64-tdep.c: Handle breakpoints on L instruction type
8672 in MLX instruction bundle by moving the breakpoint to
8673 the third slot (X instruction type) as L holds only data.
8675 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8677 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8678 (process_one_symbol): Complain about discarding local symbols
8679 due to a misplaced N_LBRAC entry.
8681 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8683 From Daniel Berlin <dan@cgsoftware.com>
8684 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8685 decrease the depth we are at, in the case of templates.
8687 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8689 * mips-tdep.c (mips_float_register_type): New function.
8690 (mips_double_register_type): New function.
8691 (mips_print_register): Use them.
8692 (do_fp_register_row): Likewise.
8694 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8696 * signals/signals.c (signals): Remove conditional compilation around
8697 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8698 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8700 2002-05-09 Michael Snyder <msnyder@redhat.com>
8702 * remote-rdp.c (remote_rdp_can_run): Remove.
8704 2002-05-09 Tom Tromey <tromey@redhat.com>
8706 * jv-valprint.c (java_val_print): Handle `char' as a special case
8709 2002-05-09 Michael Snyder <msnyder@redhat.com>
8711 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8712 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8713 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8714 str r(0123),[sp,#nn].
8715 (arm_skip_prologue): Ditto. Also make disassembly
8716 order-independent by placing it in a loop.
8718 2002-05-06 Michael Snyder <msnyder@redhat.com>
8720 * stabsread.c (read_type): Add recognition for new attribute:
8721 "@V;" means that an array type is actually a vector.
8722 This is analogous to the vector flag that's been added to dwarf2.
8724 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8726 * i386-tdep.h (i386_abi): New enum.
8727 (struct gdbarch_tdep): Replace os_ident member with abi.
8728 (i386_gdbarch_register_os_abi): New prototype.
8729 * i386-tdep.c (i386_abi_names): New array.
8730 (process_note_abi_tag_sections): Removed.
8731 (process_note_sections): New function.
8732 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8733 (struct i386_abi_handler): New struct.
8734 (i386_abi_handler_list): New variable.
8735 (i386_gdbarch_register_os_abi): New function.
8736 (i386_gdbarch_init): Adapt for the changes given above.
8738 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8740 * gregset.h: Say "GNU/Linux".
8742 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8744 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8745 (build_gdbtypes): Build builtin_type_v2_float.
8746 (_initialize_gdbtypes): Register new builtin type.
8748 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8750 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8751 (clear_gdbarch_swap): New function.
8752 (initialize_non_multiarch): Call.
8753 (gdbarch_update_p): Before calling init(), swap out and clear the
8754 existing architecture.
8755 * gdbarch.c: Regenerate.
8757 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8759 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8762 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8764 * sh-nbsd-nat.c: Rename to...
8765 * shnbsd-nat.c: ...this.
8766 * sh-nbsd-tdep.c: Rename to...
8767 * shnbsd-tdep.c: ...this.
8768 * sh-nbsd-tdep.h: Rename to...
8769 * shnbsd-tdep.h: ...this.
8770 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8771 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8773 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8775 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8776 concatenation for command help messages.
8778 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8780 * NEWS: Note new sh*-*-netbsdelf* configuration.
8781 * configure.host: Set gdb_host_cpu to sh for all sh*.
8782 (sh*-*-netbsdelf*): New host.
8783 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8784 (sh*-*-netbsdelf*): New target.
8785 * sh-nbsd-nat.c: New file.
8786 * sh-nbsd-tdep.c: New file.
8787 * sh-nbsd-tdep.h: New file.
8788 * config/sh/nbsd.mh: New file.
8789 * config/sh/nbsd.mt: New file.
8790 * config/sh/nm-nbsd.h: New file.
8791 * config/sh/tm-nbsd.h: New file.
8793 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8795 * sh-tdep.c (sh_osabi_names): Declare.
8796 (process_note_abi_tag_sections): New function.
8797 (get_elfosabi): Ditto.
8798 (sh_gdbarch_register_os_abi): Ditto.
8799 (sh_dump_tdep): Ditto.
8800 _initialize_sh_tdep): Use gdbarch_register to register
8801 sh_gdbarch_init and sh_dump_tdep.
8802 * config/sh/tm-sh.h (sh_osabi): Declare.
8803 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8805 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8807 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8808 (thumb_scan_prologue): Ditto.
8809 (arm_find_callers_reg): Ditto.
8810 (arm_frame_chain): Ditto.
8811 (arm_init_extra_frame_info): Ditto.
8812 (arm_frame_saved_pc): Ditto.
8813 (arm_pop_frame): Ditto.
8814 (arm_push_return_address): New function.
8815 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8816 call_dummy_location, call_dummy_breakpoint_offset_p,
8817 call_dummy_breakpoint_offset, call_dummy_p,
8818 call_dummy_stack_adjust_p, call_dummy_words,
8819 sizeof_call_dummy_words, call_dummy_start_offset,
8820 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8821 call_dummy_address, push_return_address and push_dummy_frame for
8822 generic dummy frames.
8824 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8826 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8827 size computation for alloca.
8828 (sh_fp_frame_init_saved_regs): Likewise.
8830 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8832 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8833 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8834 * arm-tdep.c (arm_store_return_value): Use them.
8835 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8836 * remote-rdp.c (remote_rdp_fetch_register): Use
8837 ARM_MAX_REGISTER_RAW_SIZE.
8838 (remote_rdp_store_register): Likewise.
8840 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8842 * dwarf2cfi.c: Code cleanup, removed unused variables,
8843 added default labels to switch {} statements.
8844 * x86-64-tdep.c: Ditto.
8845 * x86-64-linux-nat.c: Ditto.
8847 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8849 * solib.h: Protect against multiple inclusion.
8851 2002-05-06 Jim Blandy <jimb@redhat.com>
8853 Add first preprocessor macro-expansion files.
8854 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8855 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8856 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8857 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8858 (COMMON_OBS): Add macrotab.o, macroexp.o.
8859 (macroexp.o, macrotab.o): New rules.
8861 Separate the job of reading the line number info statement program
8862 header (...expialidocious) out into its own function.
8863 * dwarf2read.c (struct line_head, struct filenames, struct
8864 directories): Replace with...
8865 (struct line_header): New structure, containing the full
8866 contents of the statement program header, including the
8867 include directory and file name tables.
8868 (read_file_scope): If we have line number info, instead of just
8869 calling dwarf_decode_lines to do all the work, call
8870 dwarf_decode_line_header first to get a `struct line_header'
8871 containing the data in the statement program header, and then
8872 pass that to dwarf_decode_lines, which will pick up where that
8873 left off. Be sure to clean up the `struct line_header' object.
8874 (dwarf_decode_line_header, free_line_header, add_include_dir,
8875 add_file_name): New functions.
8876 (dwarf_decode_lines): Move all the code to read the statement
8877 program header into dwarf_decode_line_header. Take the line
8878 header it built as the first argument, instead of the offset to
8879 the compilation unit's line number info. Use the new `struct
8880 line_header' type instead of the old structures. No need to do
8881 cleanups here now, since we don't allocate anything.
8882 (dwarf2_statement_list_fits_in_line_number_section,
8883 dwarf2_line_header_too_long): New complaints.
8885 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8887 * gdbtypes.c (init_vector_type): New function.
8888 (build_builtin_type_vec128): Simplify the representation of SIMD
8890 (build_gdbtypes): Initialize new builtin vector types.
8891 (_initialize_gdbtypes): Register new vector types with gdbarch.
8892 (builtin_type_v4_float, builtin_type_v4_int32,
8893 builtin_type_v8_int16, builtin_type_v16_int8,
8894 builtin_type_v2_int32, builtin_type_v4_int16,
8895 builtin_type_v8_int8): New (renamed) SIMD types.
8897 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8899 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8900 (i387_fill_fxsave): Likewise.
8902 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8904 * alpha-tdep.c (alpha_extract_return_value): Don't use
8905 non-constant array size in prototype.
8907 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8909 From Brian Taylor <briant at model dot com>:
8910 * ui-out.c (ui_out_field_core_addr): Use the function
8911 longest_local_hex_string_custom'to format addresses > 32 bits
8914 * ui-out.c (ui_out_field_core_addr): Update comment.
8916 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8918 * stack.c (select_and_print_frame): Make static. Delete the
8920 (func_command): Update call.
8921 (select_frame_command): Delete code computing the frame level.
8922 * frame.h (select_and_print_frame): Delete declaration.
8924 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8926 * sparc-tdep.c (sparc_get_saved_register): Comment why
8927 get_prev_frame call is safe.
8929 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8931 * frame.h (select_frame): Delete level parameter.
8932 * stack.c (select_frame): Update. Use frame_relative_level to
8933 obtain the frame's level.
8934 (select_and_print_frame): Update call.
8935 (select_frame_command): Ditto.
8936 (up_silently_base): Ditto.
8937 (down_silently_base): Ditto.
8938 * ocd.c (ocd_start_remote): Ditto.
8939 * remote-rdp.c (remote_rdp_open): Ditto.
8940 * remote-mips.c (mips_initialize): Ditto.
8941 (common_open): Ditto.
8942 * remote-e7000.c (e7000_start_remote): Ditto.
8943 * m3-nat.c (select_thread): Ditto.
8944 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8945 (child_get_current_exception_event): Ditto.
8946 * varobj.c (varobj_create): Ditto.
8947 (varobj_update): Ditto.
8948 (c_value_of_root): Ditto.
8949 * tracepoint.c (finish_tfind_command): Ditto.
8950 * corelow.c (core_open): Ditto.
8951 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8952 * thread.c (info_threads_command): Ditto.
8953 (switch_to_thread): Ditto.
8954 * infrun.c (normal_stop): Ditto.
8955 (restore_selected_frame): Ditto.
8956 (restore_inferior_status): Ditto.
8957 * breakpoint.c (insert_breakpoints): Ditto.
8958 (watchpoint_check): Ditto.
8959 (bpstat_stop_status): Ditto.
8960 (do_enable_breakpoint): Ditto.
8961 * blockframe.c (flush_cached_frames): Ditto.
8962 (reinit_frame_cache): Ditto.
8964 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8966 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8969 2002-05-04 Jim Blandy <jimb@redhat.com>
8971 * gdbtypes.c (replace_type): Doc fix.
8973 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8975 * valprint.c (strcat_longest): Delete commented out function.
8978 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8980 * MAINTAINERS: Mark a29k as deleted.
8981 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8982 Move new configurations to the top.
8983 * configure.tgt: Remove a29k.
8984 * config/a29k/tm-vx29k.h: Delete.
8985 * config/a29k/vx29k.mt: Delete.
8986 * config/a29k/tm-a29k.h: Delete.
8987 * config/a29k/a29k-udi.mt: Delete.
8988 * config/a29k/a29k.mt: Delete.
8989 * a29k-tdep.c: Delete.
8990 * remote-udi.c: Delete.
8991 * remote-mm.c: Delete.
8992 * remote-eb.c: Delete.
8993 * remote-adapt.c: Delete.
8994 * Makefile.in: Remove obsolete code.
8995 * config/s390/s390x.mt: Ditto.
8996 * config/s390/s390.mt: Ditto.
8997 * config/sparc/sparclynx.mh: Ditto.
8998 * config/sparc/linux.mh: Ditto.
8999 * config/pa/hppaosf.mh: Ditto.
9000 * config/pa/hppabsd.mh: Ditto.
9001 * config/ns32k/nbsd.mt: Ditto.
9002 * config/mips/vr5000.mt: Ditto.
9003 * config/m68k/sun3os4.mh: Ditto.
9004 * config/m68k/nbsd.mt: Ditto.
9005 * config/m68k/m68klynx.mh: Ditto.
9006 * config/m32r/m32r.mt: Ditto.
9007 * config/i386/x86-64linux.mt: Ditto.
9008 * config/i386/nbsdelf.mt: Ditto.
9009 * config/i386/nbsd.mt: Ditto.
9010 * config/i386/i386lynx.mh: Ditto.
9012 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9014 * target.c (debug_print_register): New function. Handle oversize
9016 (debug_to_fetch_registers): Call.
9017 (debug_to_store_registers): Call.
9019 2002-05-03 Jim Blandy <jimb@redhat.com>
9021 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9022 (read_type): Doc fix.
9023 * gdbtypes.c (replace_type): Doc fix.
9025 * stabsread.c (multiply_defined_struct): New complaint.
9026 (read_struct_type): If the type we were passed isn't empty, or
9027 incomplete, don't read the new struct type into it; complain,
9028 and return the original type unchanged. Take a new `type_code'
9029 argument, which is the type code for the new type.
9030 (read_type): Rather than storing the type's type code here, pass
9031 it as an argument to read_struct_type, and let that take care of
9032 storing it. That way, we don't overwrite the original type code,
9033 so read_struct_type can use it to decide whether we're overwriting
9034 something we shouldn't.
9035 (complain_about_struct_wipeout): New function.
9037 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9039 * gdbarch.sh: Assert that gdbarch is non-NULL.
9040 * gdbarch.c: Regenerate.
9042 2002-05-03 Jason Merrill <jason@redhat.com>
9044 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9047 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9049 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9050 (x86_64_dwarf2gdb_regno_map_length),
9051 (x86_64_dwarf2_reg_to_regnum): Added.
9052 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9053 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9054 (_initialize_x86_64_tdep): Synced with the change above.
9055 (x86_64_skip_prologue): Reformulated message.
9057 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9059 * f-exp.y: Also use new prev_lexptr variable
9060 to improve error reporting. Based on Michael Snyder
9061 2002-04-24 dated patch to c-exp.y.
9062 * jv-exp.y: Likewise.
9063 * m2-exp.y: Likewise.
9065 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9067 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9068 we are dealing with vectors.
9070 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9072 * config/m68k/tm-nbsd.h: Obvious fix,
9073 correct machine name.
9075 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9077 * p-typeprint.c (pascal_type_print_base): Add support
9078 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9080 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9082 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9083 for fondamental pascal 'char' type.
9085 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9087 * p-lang.h (is_pascal_string_type): Declaration changed,
9088 new sixth argument of type char ** added.
9089 * p-lang.c (is_pascal_string_type): Implementation
9090 changed. Args length_pos, length_size, string_pos, char_size
9091 can now be NULL. New argument arrayname set to the field
9092 name of the char array. Return value set to char array
9093 field index plus one.
9094 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9095 is_pascal_string_type function.
9097 2002-05-02 Andrew Cagney <cagney@redhat.com>
9099 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9100 <cagney@redhat.com> change.
9101 * gdbarch.c: Regenerate.
9103 2002-05-02 Andrew Cagney <cagney@redhat.com>
9105 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9106 before probing for a new one. Detect errorenous gdbarch_init
9108 * gdbarch.c: Regenerate.
9110 2002-05-01 Andrew Cagney <cagney@redhat.com>
9112 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9113 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9114 * config/v850/tm-v850.h: Ditto. Update copyright.
9116 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9118 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9121 2002-04-30 Michael Snyder <msnyder@redhat.com>
9123 * arm-tdep.c: Whitespace clean-ups.
9124 (arm_skip_prologue): Fix thinko; two lines
9125 should have been removed as part of 4/24 change.
9127 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9129 * rs6000-tdep.c: Added comment describing how fpscr register
9130 numbers were chosen.
9132 2002-04-30 Michael Snyder <msnyder@redhat.com>
9134 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9136 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9138 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9139 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9140 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9142 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9144 From Louis Hamilton <hamilton@redhat.com>:
9145 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9146 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9147 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9148 not bfd-private xcoff data, to determine wordsize.
9149 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9151 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9153 GDB 5.2 released from 5.2 branch.
9155 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9157 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9158 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9159 (x86_64_register_info_table): Added comments with register numbers.
9161 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9163 * rs6000-tdep.c (rs6000_extract_return_value,
9164 rs6000_store_return_value): Handle returning vectors.
9165 (rs6000_gdbarch_init): Use
9166 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9167 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9169 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9171 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9172 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9174 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9176 * hpread.c (hpread_psymtab_to_symtab_1,
9177 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9178 with fprintf_unfiltered (gdb_stderr,...).
9180 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9182 * remote-array.c (printf_monitor, write_monitor,
9183 array_insert_breakpoint, array_remove_breakpoint ):
9184 Replace fprintf (stderr,...
9185 with fprintf_unfiltered (gdb_stderr,....
9186 * remote-es.c: Likewise.
9187 * remote-os9k.c: Likewise.
9188 * remote-st.c: Likewise.
9190 2002-04-28 Andreas Schwab <schwab@suse.de>
9192 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9193 linux-proc.o and gcore.o.
9195 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9197 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9198 code without frame pointers.
9200 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9202 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9205 2002-04-26 Ben Elliston <bje@redhat.com>
9207 * target.c (do_xfer_memory): Correct reference to the new option
9208 "trust-readonly-sections".
9210 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9212 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9213 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9214 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9216 (read_array_type): Record the fact that this array type is really a
9217 vector (i.e. are passed in by value).
9219 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9221 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9222 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9223 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9224 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9225 * alpha-linux-tdep.c: Include frame.h.
9226 (alpha_linux_sigcontext_addr): New function.
9227 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9228 alpha_linux_sigcontext_addr.
9229 * alpha-osf1-tdep.c: Include gdbcore.h.
9230 (alpha_osf1_sigcontext_addr): New function.
9231 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9232 alpha_osf1_sigcontext_addr.
9233 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9234 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9236 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9238 * stack.c (selected_frame_level):
9239 (select_frame): Do not set selected_frame_level.
9240 * frame.h (selected_frame_level): Delete declaration.
9242 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9244 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9245 convert_from_func_ptr-addr when AIX / PowerOpen.
9247 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9249 * valops.c (hand_function_call): Call
9250 generic_save_call_dummy_addr.
9251 * frame.h (generic_save_call_dummy_addr): Declare.
9252 * blockframe.c (struct dummy_frame): Add fields call_lo and
9254 (generic_find_dummy_frame): Check for PC in range call_lo to
9255 call_hi instead of entry_point_address.
9256 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9257 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9258 (generic_save_call_dummy_addr): New function.
9260 2002-04-24 David S. Miller <davem@redhat.com>
9262 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9263 sparc_skip_prologue.
9264 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9265 information to find prologue when possible.
9266 (sparc_prologue_frameless_p): Call examine_prologue directly.
9267 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9268 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9270 (SKIP_PROLOGUE): Likewise.
9272 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9274 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9275 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9276 indicate that the condition it was testing is always true.
9277 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9278 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9279 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9281 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9283 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9284 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9285 tdep->jb_pc and tdep->jb_elt_size.
9286 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9287 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9288 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9289 * alpha-nat.c (get_longjmp_target): Remove.
9290 (JB_ELEMENT_SIZE): Ditto.
9292 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9293 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9294 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9295 to alpha_get_longjmp_target.
9296 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9297 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9298 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9300 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9302 * README: Update to GDB 5.2.
9304 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9306 * gdbarch.sh (LC_ALL): Set to `c'.
9308 2002-04-25 Theodore A. Roth <troth@verinet.com>
9310 * avr-tdep.c: Ran through gdb_indent.sh.
9312 2002-04-25 Theodore A. Roth <troth@verinet.com>
9314 * MAINTAINERS: Add myself as AVR maintainer.
9315 * NEWS: Note new target avr.
9317 2002-04-25 Theodore A. Roth <troth@verinet.com>
9319 * Makefile.in: Add support for AVR target.
9320 * configure.tgt: Add support for AVR target.
9321 * avr-tdep.c: New file
9322 * config/avr/avr.mt: New file.
9324 2002-04-25 Theodore A. Roth <troth@verinet.com>
9326 * MAINTAINERS: Add myself to write-after-approval.
9328 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9330 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9331 with fprintf_unfiltered (gdb_stderr,....
9333 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9336 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9338 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9340 * p-exp.y: Also use new prev_lexptr variable
9341 to improve error reporting. Based on Michael Snyder
9342 2002-04-24 dated patch to c-exp.y.
9344 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9346 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9347 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9348 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9350 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9352 (FUNCTION_START_OFFSET): Remove.
9353 (BREAKPOINT): Ditto.
9355 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9357 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9360 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9362 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9363 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9364 alpha_linux_pc_in_sigtramp.
9365 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9366 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9367 alpha_osf1_pc_in_sigtramp.
9368 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9369 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9370 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9371 alphafbsd_pc_in_sigtramp.
9372 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9373 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9374 alphanbsd_pc_in_sigtramp.
9375 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9376 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9378 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9380 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9382 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9384 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9386 (alphanbsd-nat.o): New dependency list.
9387 (alphanbsd-tdep.o): Ditto.
9388 * NEWS: Note new native NetBSD/alpha configuration.
9389 * alphanbsd-nat.c: New file.
9390 * alphanbsd-tdep.c: Ditto.
9391 * configure.host (alpha*-*-netbsd*): New host.
9392 * configure.tgt (alpha*-*-netbsd*): New target.
9393 * config/alpha/nbsd.mh: New file.
9394 * config/alpha/nbsd.mt: Ditto.
9395 * config/alpha/nm-nbsd.h: Ditto.
9396 * config/alpha/tm-nbsd.h: Ditto.
9398 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9400 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9401 (alpha-osf1-tdep.o): New dependency list.
9402 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9403 and skip_sigtramp_frame members.
9404 * alpha-linux-tdep.c: Include gdbcore.h.
9405 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9406 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9407 * alpha-osf1-tdep.c: New file.
9408 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9410 (alpha_frame_past_sigtramp_frame): New function.
9411 (alpha_dynamic_sigtramp_offset): Ditto.
9412 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9413 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9414 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9415 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9416 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9417 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9418 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9419 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9420 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9421 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9422 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9423 to find_solib_trampoline_target.
9424 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9425 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9426 (SKIP_TRAMPOLINE_CODE): Remove.
9427 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9428 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9429 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9430 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9431 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9432 (PROC_SIGTRAMP_MAGIC): Ditto.
9433 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9434 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9435 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9436 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9437 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9439 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9441 * NEWS: Note that Alpha targets are now multi-arch.
9443 2002-04-24 Michael Snyder <msnyder@redhat.com>
9445 * parser-defs.h (prev_lexptr): New external variable.
9446 * parse.c (parse_exp_1): Set prev_lexptr to null before
9447 calling the language-specific parser.
9448 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9449 (yyerror): Use prev_lexptr in error reporting.
9451 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9453 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9454 * gregset.h: If FILL_FPXREGSET is defined, provide
9455 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9456 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9457 is defined, call fill_fpxregset.
9459 2002-04-24 Roland McGrath <roland@frob.com>
9461 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9462 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9463 (supply_gregset, supply_fpregset): New functions.
9465 * gnu-nat.c (gnu_find_memory_regions): New function.
9466 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9467 (gnu_xfer_memory): Add a cast.
9469 2002-04-24 Michael Snyder <msnyder@redhat.com>
9471 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9472 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9473 of argument regs ("str r(0123), [r11, #-nn"]).
9474 (arm_skip_prologue): Better handling for frameless functions.
9475 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9476 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9478 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9480 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9481 NUM_PSEUDO_REGS can be used.
9483 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9485 * arch-utils.h: Update copyright.
9487 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9488 * gdbarch.h, gdbarch.c: Re-generate.
9490 * inferior.h (IN_SIGTRAMP): Delete definition.
9491 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9492 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9494 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9495 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9496 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9497 (find_proc_framesize): Ditto.
9498 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9499 (alpha_init_extra_frame_info): Ditto.
9500 * infrun.c (handle_inferior_event): Ditto.
9501 (handle_inferior_event): Ditto.
9502 (check_sigtramp2): Ditto.
9503 * blockframe.c (create_new_frame): Ditto.
9504 (get_prev_frame): Ditto.
9505 * ppc-linux-tdep.c: Update comments.
9506 * i386-linux-tdep.c: Update comments.
9507 * breakpoint.c (bpstat_what): Update comment.
9509 2002-04-24 David S. Miller <davem@redhat.com>
9511 * i960-tdep.c (register_in_window_p): New function.
9512 (i960_find_saved_register): Use it instead of
9513 REGISTER_IN_WINDOW_P.
9514 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9516 * symtab.h (find_stab_function_addr): Kill extern.
9517 * minsyms.c (find_stab_function_addr): Remove from here...
9518 * dbxread.c: ... to here, and mark it static.
9520 2002-04-20 David S. Miller <davem@redhat.com>
9522 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9523 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9525 2002-04-21 David S. Miller <davem@redhat.com>
9527 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9528 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9529 (vx_write_register): Likewise.
9531 2002-04-23 J. Brobecker <brobecker@gnat.com>
9533 * source.c (is_regular_file): New function.
9534 (openp): Check wether file to open is a regular file
9535 to avoid opening directories.
9537 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9539 * findvar.c (extract_signed_integer): Cast printf argument
9540 to suppress format warning.
9541 (extract_unsigned_integer): Likewise.
9542 * infcmd.c (registers_info): Likewise.
9543 * top.c (get_prompt_1): Likewise.
9544 * valops.c (value_assign): Likewise.
9545 * valprint.c (print_decimal): Likewise.
9547 2002-04-22 H.J. Lu (hjl@gnu.org)
9549 * c-exp.y (typebase): Support
9551 [long|long long|short] [signed|unsigned] [int|]
9555 signed [long|long long|short] int
9557 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9559 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9561 * vax-tdep.h: New file.
9562 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9563 Make several routines static.
9564 (vax_get_saved_register): New function.
9565 (vax_gdbarch_init): New function.
9566 (_initialize_vax_tdep): Register vax_gdbarch_init.
9567 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9568 Remove macros now under the control of gdbarch.
9570 2002-04-22 Michael Snyder <msnyder@redhat.com>
9572 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9573 Some whitespace and coding standards tweaks.
9575 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9577 * vax-tdep.c: Include regcache.h.
9578 (vax_call_dummy_words): New.
9579 (sizeof_vax_call_dummy_words): New.
9580 (vax_fix_call_dummy): New function.
9581 (vax_saved_pc_after_call): Ditto.
9582 * config/vax/tm-vax.h: Don't include regcache.h.
9583 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9584 (CALL_DUMMY): Remove.
9585 (CALL_DUMMY_WORDS): Define.
9586 (SIZEOF_CALL_DUMMY_WORDS): Define.
9587 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9589 2002-04-18 Michael Snyder <msnyder@redhat.com>
9591 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9593 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9595 * vax-tdep.c (vax_frame_chain): New function.
9596 (vax_push_dummy_frame): Ditto.
9597 (vax_pop_frame): Ditto.
9598 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9599 (FRAMELESS_FUNCTION_INVOCATION): Use
9600 generic_frameless_function_invocation_not.
9601 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9602 (POP_FRAME): Use vax_pop_frame.
9604 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9606 * vax-tdep.c (vax_store_struct_return): New function.
9607 (vax_extract_return_value): Ditto.
9608 (vax_store_return_value): Ditto.
9609 (vax_extract_struct_value_address): Ditto.
9610 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9611 vax_store_struct_return.
9612 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9613 (STORE_RETURN_VALUE): Use vax_store_return_value.
9614 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9616 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9618 * vax-tdep.c (vax_frame_saved_pc): New function.
9619 (vax_frame_args_address_correct): Ditto.
9620 (vax_frame_args_address): Ditto.
9621 (vax_frame_locals_address): Ditto.
9622 (vax_frame_num_args): Move code to be in proximity to
9623 other frame-related functions.
9624 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9625 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9626 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9627 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9628 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9630 2002-04-22 H.J. Lu (hjl@gnu.org)
9632 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9635 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9637 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9638 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9639 (FRAME_INIT_SAVED_REGS): New macro.
9641 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9643 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9645 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9647 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9649 (fetch_osf_core_registers): Likewise.
9650 (supply_gregset): Likewise.
9652 2002-04-22 J. Brobecker <brobecker@gnat.com>
9654 * symfile.h (get_section_index): Define.
9655 * symfile.c (get_section_index): New function.
9656 * mdebugread.c (SC_IS_SBSS): New macro.
9657 (SC_IS_BSS): Return true for the scBss storage class only, as
9658 the scSBss storage class refers to the .sbss section.
9659 (parse_partial_symbols): Discard the symbols which associated
9660 section does not exist.
9661 Make sure to use the .sbss section index for symbols which
9662 storage class is scBss, rather than using the .bss section index.
9664 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9666 * vax-tdep.c: Update copyright years.
9667 (vax_register_name): New function.
9668 (vax_register_byte): Ditto.
9669 (vax_register_raw_size): Ditto.
9670 (vax_register_virtual_size): Ditto.
9671 (vax_register_virtual_type): Ditto.
9672 * config/vax/tm-vax.h: Update copyright years.
9673 (REGISTER_NAMES): Remove.
9674 (REGISTER_NAME): Define.
9675 (REGISTER_BYTE): Use vax_register_byte.
9676 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9677 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9678 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9680 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9682 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9684 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9686 2002-04-21 David S. Miller <davem@redhat.com>
9688 * arch-utils.c (generic_prologue_frameless_p): Kill
9689 SKIP_PROLOGUE_FRAMELESS_P code.
9690 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9692 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9693 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9694 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9696 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9697 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9698 (sparc_gdbarch_init): Pass it to
9699 set_gdbarch_prologue_frameless_p.
9701 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9703 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9704 (alphabsd-nat.o): New dependency list.
9706 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9708 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9710 (alpha-linux-tdep.o): New dependency list.
9711 (alphafbsd-tdep.o): Likewise.
9713 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9715 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9717 * alpha-tdep.c: ...from here.
9718 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9720 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9722 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9723 prototype from here...
9724 * alpha-tdep.h: ...to here.
9726 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9728 * frame.h (selected_frame_level): Document as deprecated.
9729 (frame_relative_level): Declare.
9730 * stack.c (frame_relative_level): New function.
9731 (selected_frame_level): Document as deprecated.
9732 (select_frame): Do not set the selected_frame_level.
9734 * stack.c (frame_info, record_selected_frame): Update.
9735 (frame_command, current_frame_command): Update.
9736 (up_silently_base, up_command, down_silently_base): Update.
9737 (down_command): Update.
9738 * inflow.c (kill_command): Update.
9739 * tracepoint.c (finish_tfind_command): Update.
9740 * corelow.c (core_open): Update.
9741 * thread.c (info_threads_command): Update.
9742 (do_captured_thread_select): Update.
9743 * infcmd.c (finish_command): Update.
9744 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9746 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9748 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9750 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9752 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9755 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9757 * alphafbsd-tdep.c: Update copyright years. Include
9759 (alphafbsd_use_struct_convention): Make static.
9760 (alphafbsd_init_abi): New function.
9761 (_initialize_alphafbsd_tdep): New function.
9762 * config/alpha/tm-fbsd.h: Update copyright years.
9763 (USE_STRUCT_CONVENTION): Remove.
9765 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9767 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9768 an Alpha ABI variant.
9769 (alpha_abi_handler_list): Declare.
9770 (alpha_gdbarch_register_os_abi): New function.
9771 (alpha_gdbarch_init): Give registered ABI variant handlers a
9772 chance to tweak the gdbarch once we have set up defaults.
9773 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9775 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9777 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9778 to standard_coerce_float_to_double.
9779 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9781 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9783 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9784 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9785 from gdbarch_tdep rather than a constant.
9786 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9787 the default text address for all Alpha Unix ABIs.
9788 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9789 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9791 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9793 * alpha-tdep.h: New file. Includes several Alpha target constants
9795 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9796 let gdbarch deal with.
9797 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9798 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9800 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9801 Alpha target register names.
9802 * alphabsd-nat.c: Likewise.
9803 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9804 Alpha target register names. Make serveral routines static.
9805 (alpha_get_saved_register): New function.
9806 (alpha_abi_names): New.
9807 (process_note_abi_tag_sections): New function.
9808 (get_elfosabi): New function.
9809 (alpha_gdbarch_init): New function.
9810 (alpha_dump_tdep): New function.
9811 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9813 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9815 * frame.c (find_saved_register): Delete #ifdef
9816 HAVE_REGISTER_WINDOWS code.
9817 * config/sparc/tm-sparc.h: Update comments.
9818 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9820 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9822 * i960-tdep.c (i960_find_saved_register): New function.
9823 (i960_get_saved_register): New function.
9824 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9825 (i960_get_saved_register): Declare.
9826 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9828 2002-04-20 David S. Miller <davem@redhat.com>
9830 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9832 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9834 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9835 instead of NUM_PSEUDO_REGS.
9837 2002-04-20 David S. Miller <davem@redhat.com>
9839 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9840 GDB_MULTI_ARCH_PARTIAL
9841 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9842 define, let tm-sp64.h do it.
9844 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9846 * frame.c (find_saved_register): Avoid a NULL pointer
9847 dereference and actually walk the frame list.
9849 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9851 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9852 sorted in most most-recent-used order. Document.
9853 * gdbarch.h, gdbarch.c: Regenerate.
9855 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9857 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9859 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9860 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9861 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9864 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9867 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9868 (build_builtin_type_vec128): Ditto.
9869 (append_composite_type_field): Fix calculation of type length in
9872 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9874 * config/djgpp/README: Update.
9876 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9879 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9881 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9882 (alpha_setup_arbitrary_frame): ...to this.
9883 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9884 for alpha_setup_arbitrary_frame.
9886 2002-04-18 Andrew Cagney <cagney@redhat.com>
9888 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9889 * gdbarch.h, gdbarch.c: Regenerate.
9891 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9892 * target.h (memory_breakpoint_from_pc): Update declaration.
9893 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9895 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9896 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9897 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9898 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9899 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9900 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9901 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9902 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9903 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9904 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9905 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9906 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9908 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9910 * monitor.c (monitor_insert_breakpoint): Ditto.
9911 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9913 * config/mcore/tm-mcore.h: Update copyright.
9914 * mem-break.c: Ditto.
9915 * xstormy16-tdep.c: Ditto.
9917 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9919 * p-exp.y: Add precedence rule for '^' token.
9920 This removes the shift/reduce conflicts.
9921 Remove the comment concerning these shift/reduce conflicts.
9923 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9925 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9926 (registers_powerpc_nofp): New register set for processors
9927 without floating point unit.
9929 2002-04-18 David S. Miller <davem@redhat.com>
9931 * MAINTAINERS: Add myself to write-after-approval.
9933 2002-04-17 Michael Snyder <msnyder@redhat.com>
9935 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9937 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9939 * rs6000-tdep.c (frame_initial_stack_address): Use
9940 frame_register_read to read the alloca_reg.
9942 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9944 * frame.c (find_saved_register): Find saved registers in the next
9948 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9950 * gdbarch.sh (LANG): Set to ``c''.
9952 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9954 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9956 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9958 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9961 * hpread.c (hpread_get_lntt): Add declaration.
9962 Also fix PR gdb/391.
9964 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9966 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9967 * aclocal.m4, configure: Re-generate.
9970 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9972 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9973 instead of tm_print_insn.
9975 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9977 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9979 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9981 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9982 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9983 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9985 2002-04-12 Don Howard <dhoward@redhat.com>
9987 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9988 max_user_call_depth.
9989 (init_cmd_lists): Initialize the new value;
9990 * cli/cli-script.c (execute_user_command): Limit the call depth of
9991 user defined commands. This avoids a core-dump when user commands
9992 are infinitly recursive.
9994 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9996 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9997 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9998 from tdep struct instead of DEFAULT_LR_SAVE.
9999 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10000 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10001 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10003 2002-04-12 Michael Snyder <msnyder@redhat.com>
10005 * Remote.c: Spelling fix.
10006 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10007 If no symbol found for "sbrk", try "_sbrk".
10008 (make_output_phdrs): Use bfd_section_name.
10009 (gcore_copy_callback): Use bfd_section_name.
10010 * eval.c: Indentation fix-ups.
10011 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10012 in case it gets applied to an address that is already
10013 in the instruction space.
10014 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10015 * symfile.c: Fix indentation, long lines.
10016 * source.c: White space fix-up.
10018 2002-04-12 Andrew Cagney <cagney@redhat.com>
10020 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10021 * frame.c (frame_register_read): New function. Return non-zero on
10023 (read_relative_register_raw_bytes_for_frame): Delete.
10024 (read_relative_register_raw_bytes): Delete.
10025 * frame.h (frame_register_read): Declare.
10026 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10027 * sh-tdep.c: Ditto.
10028 * infcmd.c (do_registers_info): Ditto.
10029 * hppa-tdep.c: Ditto.
10030 * rs6000-tdep.c: Ditto.
10031 * h8500-tdep.c: Ditto.
10032 * mips-tdep.c: Ditto.
10033 * h8300-tdep.c: Ditto.
10034 * z8k-tdep.c: Ditto.
10036 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10038 From Jimi X <jimix@watson.ibm.com>:
10039 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10042 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10044 From Jimi X <jimix@watson.ibm.com>:
10045 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10048 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10050 From Jimi X <jimix@watson.ibm.com>:
10051 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10052 register sets for these processor variants.
10054 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10056 * regformats/reg-ppc.dat: Support FPSCR.
10058 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10060 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10061 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10062 Add fpscr as an invalid/unfetchable register.
10063 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10064 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10065 (fill_fpregset): Add support for register fpscr.
10066 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10067 (fill_gregset): Account for the fact that register ``mq'' might
10069 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10070 (registers_power): Add fpscr to register set at slot 71.
10071 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10072 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10074 2002-04-11 Michael Snyder <msnyder@redhat.com>
10076 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10077 * configure: Regenerate.
10078 * config.in: Regenerate.
10079 * acconfig.h: Add define for _SYSCALL32.
10080 * core-sol2.c: Remove #define _SYSCALL32.
10081 * solib-legacy.c: Remove #define _SYSCALL32.
10083 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10085 * stack.c (select_frame): Cleanup internal error message, do not
10088 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10090 * stack.c (select_frame): Check that selected_frame and the
10091 specified level are as expected.
10092 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10094 * frame.h (struct frame_info): Add field `level'. Update
10096 Work-in-progress PR gdb/464.
10098 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10100 * maint.c (maint_print_section_info): Rename print_section_info.
10101 (print_bfd_section_info, print_objfile_section_info): Update.
10102 * inferior.h (struct gdbarch): Add opaque declaration.
10103 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10104 * gdbarch.h: Regenerate.
10106 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10108 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10109 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10110 (kernel_u_size): Added.
10111 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10112 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10114 2002-04-04 Jim Ingham <jingham@apple.com>
10116 * valarith.c (find_size_for_pointer_math): New function, either returns
10117 the size for a pointer's target, returns 1 for void *, or errors for
10119 (value_add, value_sub): use find_size_for_pointer_math.
10121 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10123 * linux-low.c (linux_look_up_symbols): New hook.
10124 (linux_target_ops): Add linux_look_up_symbols.
10125 * remote-utils.c (decode_address): New function.
10126 (look_up_one_symbol): New function.
10127 * server.c (handle_query): Call target look_up_symbols hook.
10128 * server.h (look_up_one_symbol): Add prototype.
10129 * target.h (struct target_ops): Add look_up_symbols hook.
10131 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10133 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10134 override FP_REGNUM with frame->fp. Update copyright.
10135 * parse.c (num_std_regs, std_regs): Delete.
10136 (target_map_name_to_register): Do not search std_regs. Update
10137 function description.
10138 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10139 declarations. Update copyright.
10142 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10144 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10145 after the last symbol in a block.
10147 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10149 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10150 is non zero as a found symbol.
10152 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10154 * findvar.c: Include "builtin-regs.h".
10155 (value_of_register): Call value_of_builtin_reg when applicable.
10156 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10157 (target_map_name_to_register): Call
10158 builtin_reg_map_name_to_regnum.
10159 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10160 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10161 (builtin_regs_h): Define.
10162 (builtin-regs.o): New target.
10163 (findvar.o): Add $(builtin_regs_h).
10164 * builtin-regs.c, builtin-regs.h: New files.
10165 * std-regs.c: New file.
10166 Partial fix for PR gdb/251.
10168 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10170 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10171 it's no longer required.
10173 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10175 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10177 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10179 From Jimi X <jimix@watson.ibm.com>:
10180 * rs6000-tdep.c (rs6000_software_single_step): Use
10181 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10182 and size. Use target_insert_breakpoint() and
10183 target_remove_breakpoint() to insert and remove breakpoints
10184 instead of explicit memory reads and writes.
10186 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10188 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10189 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10190 ELF_OBJECT_FORMAT ifdef.
10192 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10194 From Jimi X <jimix@watson.ibm.com>:
10195 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10197 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10199 From Jimi X <jimix@watson.ibm.com>:
10200 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10201 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10203 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10205 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10206 s/asprintf/xasprintf/.
10207 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10209 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10211 I believe Jeff Law denies responsability for this one:
10212 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10213 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10214 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10215 Work-around for PR gdb/366.
10217 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10219 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10220 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10221 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10223 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10225 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10226 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10229 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10231 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10234 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10236 * README (Reporting Bugs in GDB): Document the bug web page as the
10237 prefered way of submitting bugs.
10240 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10242 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10243 -1. Update comment.
10244 * gdbarch.h, gdbarch.c: Re-generate.
10246 2002-04-07 Andreas Schwab <schwab@suse.de>
10248 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10249 buffer to regcache_collect.
10251 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10253 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10254 * gdbarch.c, gdbarch.h: Re-generate.
10256 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10258 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10259 declaration. Fix -Werror.
10261 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10263 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10264 * gdbarch.c: Regenerate.
10266 2002-04-05 Michael Snyder <msnyder@redhat.com>
10268 * breakpoint.c (clear_command): Rewrite middle section to
10269 combine two loops with identical control conditions.
10270 Add a cleanup to eliminate a memory leak.
10271 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10273 2002-04-05 H.J. Lu (hjl@gnu.org)
10275 * solib-svr4.c (bkpt_names): Add "__start".
10277 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10279 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10280 as test for 64 bit target.
10282 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10284 * h8500-tdep.c (h8500_write_fp): Delete function.
10285 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10286 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10287 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10289 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10290 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10292 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10293 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10294 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10295 (d10v_write_fp): Delete function.
10296 * inferior.h (write_fp, generic_target_write_fp): Delete
10298 * regcache.c (generic_target_write_fp): Delete function.
10299 (write_fp): Delete function.
10300 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10301 * gdbarch.h, gdbarch.c: Regenerate.
10302 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10303 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10304 (sparc64_write_fp): Delete declaration.
10305 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10306 (h8500_write_fp): Delete declaration.
10308 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10310 * sparc-tdep.c (sparc64_write_fp): Delete.
10311 (sparc_push_dummy_frame): Replace write_fp call with code to store
10313 (sparc_gdbarch_init): Do not initialize write_fp.
10315 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10317 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10320 2002-03-29 Jim Blandy <jimb@redhat.com>
10322 * stack.c (get_selected_block): Add new argument `addr_in_block',
10323 used to return the exact code address we used to select the block,
10324 not just the block.
10325 * blockframe.c (get_frame_block, get_current_block): Same.
10326 * frame.h (get_frame_block, get_current_block,
10327 get_selected_block): Update declarations.
10328 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10329 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10331 2002-04-05 Michael Snyder <msnyder@redhat.com>
10333 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10336 2002-04-05 J. Brobecker <brobecker@gnat.com>
10338 * utils.c (xfullpath): New function.
10339 * defs.h (xfullpath): Add declaration.
10340 * source.c (openp): Use xfullpath in place of gdb_realpath to
10341 avoid resolving the basename part of filenames when the
10342 associated file is a symbolic link. This fixes a potential
10343 inconsistency between the filenames known to GDB and the
10344 filenames it prints in the annotations.
10345 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10346 to be able to match a filename with either the real filename, or
10347 the name of any symbolic link to this file.
10348 (lookup_partial_symtab): Ditto.
10350 2002-04-04 Michael Snyder <msnyder@redhat.com>
10352 * breakpoint.c: Add support for hardware breakpoints in overlays.
10353 (overlay_events_enabled): New state variable.
10354 (insert_breakpoints): Use overlay_events_enabled to decide
10355 whether to attempt to set a breakpoint at the overlay load addr.
10356 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10357 (remove_breakpoint): Use overlay_events_enabled to decide
10358 whether breakpoints need to be removed from overlay load addr.
10359 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10360 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10361 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10362 disable_overlay_breakpoints): Update overlay_events_enabled.
10364 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10366 * dwarf2read.c (struct function_range): New.
10367 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10368 (check_cu_functions): New.
10369 (read_file_scope): Initialize global function lists.
10370 Call dwarf_decode_line after processing children.
10371 (read_func_scope): Add to global function list.
10372 (dwarf_decode_lines): Call check_cu_functions everywhere
10373 record_line is called. Call record_line with a linenumber
10374 of 0 to mark sequence ends.
10376 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10378 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10379 change sync with glibc.
10381 2002-04-03 Jim Blandy <jimb@redhat.com>
10383 * configure.in: Call AC_C_INLINE.
10384 * configure: Regenerated.
10386 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10388 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10389 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10391 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10393 * NEWS: Mention gcore support on FreeBSD/i386.
10395 * fbsd-proc.c: New file.
10396 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10397 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10399 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10402 2002-03-29 Jim Blandy <jimb@redhat.com>
10404 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10405 unescaped newlines in string literals, but newer ones don't. So
10408 2002-03-26 Michael Snyder <msnyder@redhat.com>
10409 Andrew Cagney <cagney@redhat.com>
10411 * cli/cli-dump.c: New file. Dump memory to file,
10412 restore file to memory.
10413 * cli/cli-dump.h: New file.
10414 * Makefile.in: Add rules, dependencies for cli-dump.o.
10415 * NEWS: Mention new commands.
10417 2002-03-28 Michael Snyder <msnyder@redhat.com>
10419 * symfile.c (symbol_file_add): Move test for null symbols to later.
10421 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10423 From veksler at il.ibm.com:
10424 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10425 the xstrduped original path.
10428 2002-03-27 Michael Snyder <msnyder@redhat.com>
10430 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10431 * infcmd.c (_initialize_infcmd): Ditto.
10432 * language.c (_initialize_language): Ditto.
10433 * symfile.c (_initialize_symfile): Ditto.
10434 * top.c (_init_main): Ditto.
10435 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10437 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10439 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10440 vector registers handling.
10441 (skip_prologue): Handle new AltiVec instructions. Fill in new
10442 fields of frame data.
10443 (frame_get_saved_regs): Fill in information for AltiVec registers.
10445 2002-03-27 Jim Blandy <jimb@redhat.com>
10447 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10448 a function; leave this macro here to invoke that function.
10449 (symbol_init_mangled_name): Declaration for that function.
10450 * symtab.c (symbol_init_mangled_name): New function.
10452 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10454 * valarith.c: Replace strerror with safe_strerror.
10455 * tracepoint.c: Ditto.
10456 * lin-lwp.c: Ditto.
10457 * go32-nat.c: Ditto.
10459 * gnu-nat.c: Ditto.
10461 2002-03-27 Andreas Schwab <schwab@suse.de>
10463 * event-top.c (command_line_handler): Remove useless if.
10465 2002-03-27 Andreas Jaeger <aj@suse.de>
10467 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10470 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10472 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10473 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10474 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10475 (x86_64_linux_dr_get_status, supply_gregset),
10476 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10477 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10478 (x86_64_register_info_table): Add.
10479 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10480 (x86_64_register_raw_size, x86_64_register_virtual_type),
10481 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10482 general x86_64_register_info_table.
10483 (i386_gdbarch_init): gdbarch_register_bytes is now set
10484 dynamicaly during initialization.
10485 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10486 * gdbserver/linux-x86-64-low.c: Ditto.
10488 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10490 * gdbserver/server.c (main): Call target_signal_to_host_p
10491 and target_signal_to_host on signals received from the remote.
10492 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10493 target_signal_from_host on signals sent to the remote.
10494 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10495 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10497 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10499 * signals/signals.c: Include "server.h" in gdbserver build.
10500 (target_signal_from_name): Don't use STREQ.
10501 (_initialize_signals): Likewise. Don't include function in
10504 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10506 * signals.c: Moved to...
10507 * signals/signals.c: Here.
10508 * Makefile (signals.o): Update.
10510 2002-03-26 Jeff Law (law@redhat.com)
10512 * somread.c (som_symtab_read): Remove some commented out code and
10513 updated related comments. Do not set the minimal symbol table to
10514 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10515 in a dynamic executable.
10516 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10517 where we are unable to find the minimal symbol for the given
10520 2002-03-25 Jeff Law (law@redhat.com)
10522 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10524 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10526 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10528 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10530 * command.h: Update copyright.
10531 (struct cmd_list_element): Replace definition with opaque
10533 (enum cmd_types): Document that it will eventually be moved to
10535 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10536 (MALLOCED_REPLACEMENT): Delete macro.
10537 * Makefile.in (cli_decode_h): Add $(command_h).
10538 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10539 * top.c: Include "cli/cli-decode.h".
10540 * completer.c: Include "cli/cli-decode.h".
10541 * maint.c: Include "cli/cli-decode.h".
10542 * cli/cli-decode.h: Include "command.h".
10543 (enum command_class): Delete.
10544 (enum cmd_types): Comment out.
10545 (enum cmd_auto_boolean): Delete.
10546 (enum var_types): Delete.
10548 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10550 * cli/cli-decode.c: Include "gdb_assert.h".
10551 (add_set_or_show_cmd): New static function.
10552 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10553 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10554 all fields, such as func, from the set command.
10556 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10558 * MAINTAINERS (sh-elf): Change warning flag to -w.
10560 2002-03-23 Andrew Cagney <cagney@redhat.com>
10562 * defs.h (error): Add printf format attribute.
10563 * thread-db.c (thread_from_lwp): Fix error format string.
10564 * stack.c (parse_frame_specification): Ditto.
10565 * cli/cli-decode.c (undef_cmd_error): Ditto.
10566 * scm-lang.c (scm_lookup_name): Ditto.
10567 * tracepoint.c (trace_error): Ditto.
10568 * remote-utils.c (usage): Ditto.
10569 * remote.c (compare_sections_command): Ditto.
10572 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10574 * gdbtypes.c (append_composite_type_field): New function.
10575 (init_composite_type): New function.
10576 * gdbtypes.h (append_composite_type_field): Declare.
10577 (init_composite_type): Ditto.
10579 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10581 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10583 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10584 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10585 structure returning convention for SYSV ABI case, but not
10586 for GNU/Linux, FreeBSD, or NetBSD.
10588 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10590 * symtab.h (lookup_block_symbol): Add mangled_name argument
10593 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10594 with new mangled_name argument.
10595 * linespec.c (decode_line_1): Likewise.
10596 * valops (value_of_this): Likewise.
10597 * symtab.c (lookup_transparent_type): Likewise.
10598 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10599 (lookup_symbol): If we are given a mangled name, pass it down
10600 to lookup_symbol_aux.
10601 (lookup_block_symbol): If we are given a mangled name to check
10602 against, only return symbols which match it.
10604 2002-03-22 Christopher Faylor <cgf@redhat.com>
10606 * win32-nat.c (child_create_inferior): Check for proper shell to use
10607 here, in case the user changes it on the fly.
10608 (_initialize_inftarg): Remove shell path considerations.
10610 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10612 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10613 for gdbarch_max_register_raw_size and max_register_virtual_size.
10614 Adjust copyright year.
10616 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10618 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10619 in a function to cover the entire beginning of the function
10620 as well if it does not already.
10622 2002-03-21 Tom Rix <trix@redhat.com>
10624 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10625 (rs6000_ptrace64): Renamed from ptrace64.
10627 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10629 * gdbserver/remote-utils.c (remote_open): Don't call
10630 getprotobyname, we're all using TCP here so just use
10632 * gdbserver/gdbreplay.c (remote_open): Ditto.
10634 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10636 * regcache.c (_initialize_regcache): No need to call
10637 build_regcache() at this time; it gets called whenever
10638 the gdbarch changes.
10640 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10642 * sparc-nat.c: Include sys/param.h where possible.
10644 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10647 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10648 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10649 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10651 * stabsread.c (rs6000_builtin_type): Likewise.
10652 (read_sun_floating_type): Likewise.
10654 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10656 * stabsread.c (read_member_functions): Remove skip code for duplicate
10657 constructor/destructor methods. Use standard parsing for these
10658 methods and just do not chain them to the list of methods after
10661 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10663 * coffread.c: Remove redundant static declarations. Replace
10664 occurrences of `PTR' with `void *'.
10665 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10666 * top.h (quit_cover): Likewise.
10667 * defs.h (catch_errors): Likewise.
10669 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10671 * defs.h (XMALLOC): Define.
10672 * gdb-events.sh (XMALLOC): Delete macro.
10673 * gdb-events.c, gdb-events.h: Regenerate.
10674 * gdbarch.sh (XMALLOC): Delete macro.
10675 * gdbarch.c: Regenerate.
10676 * serial.c (XMALLOC): Delete macro.
10677 * ui-file.c (XMALLOC): Ditto.
10678 * ser-unix.h (XMALLOC): Ditto.
10679 * sh-tdep.c (XMALLOC): Ditto.
10680 * ui-out.c (XMALLOC): Ditto.
10681 * utils.c (XMALLOC): Ditto.
10682 * i386-tdep.c (XMALLOC): Ditto.
10683 * gdb-events.c (XMALLOC): Ditto.
10684 * d10v-tdep.c (XMALLOC): Ditto.
10685 * cli-out.c (XMALLOC): Ditto.
10687 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10688 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10689 * ui-file.c, ui-out.c: Ditto.
10691 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10693 * command.h (struct cmd_list_element): Add field context.
10694 (set_cmd_context, get_cmd_context): Declare.
10695 * cli/cli-decode.h: Ditto.
10696 * cli/cli-decode.c (get_cmd_context): New function.
10697 (set_cmd_context): New function.
10698 (add_cmd): Initialize context.
10699 Part of fixing PR gdb/145 and PR gdb/146.
10701 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10703 * cli/cli-decode.c (cmd_type): New function.
10704 * command.h (cmd_type): Declare.
10705 * infrun.c (set_schedlock_func): Call function cmd_type.
10706 * kod.c (kod_set_os): Call cmd_type.
10707 * cris-tdep.c (cris_version_update): Use function cmd_type.
10708 (cris_mode_update, cris_abi_update): Ditto.
10710 * command.h: (execute_cmd_post_hook): Declare.
10711 (execute_cmd_pre_hook): Declare.
10712 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10713 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10714 functions. Execute pre/post hook while ensuring that afterwords
10715 hook_in is cleared.
10716 * top.c (execute_command): Use execute_cmd_post_hook, and
10717 execute_cmd_pre_hook to execute pre/post commands.
10718 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10720 (hook_stop_stub): Call execute_cmd_pre_hook.
10722 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10724 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10725 set'' and this leads to a core dump. Move xstrdup of
10726 operating_system to after check that it is not NULL.
10728 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10730 * kod.c (kod_set_os): Remove unnecessary check that
10731 ``command->type'' is set_cmd.
10733 * valprint.c (set_input_radix): Use input_radix.
10734 (set_output_radix): Use output_radix.
10735 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10738 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10740 * value.h (struct value): Delete field ``substring_addr''. Change
10741 aligner fields to force_doublest_align, force_longest_align,
10742 force_core_addr_align and force_pointer_aligh.
10744 * value.h (struct value): Fix typo in above change.
10746 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10748 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10749 to fix internal_error from ``maintenance print architecture''.
10751 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10753 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10754 for gcc versions after gcc-2.8.1.
10756 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10758 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10759 for method resolution. Restore adjustment of ``this'' pointer after
10760 calling value_struct_elt, which was accidentally removed during the
10763 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10765 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10767 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10768 get_saved_register.
10769 * value.h (value_of_register): Update.
10771 2002-03-14 Richard Henderson <rth@redhat.com>
10773 * configure.in: Detect declaration for canonicalize_file_name.
10774 * utils.c (canonicalize_file_name): Declare, if needed.
10775 (gdb_realpath): Prefer realpath if available and usable.
10776 * config.in, configure: Rebuild.
10778 2002-03-14 Richard Henderson <rth@redhat.com>
10780 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10781 a constant array bound.
10783 * MAINTAINERS: Add myself to write-after-approval.
10785 2002-03-14 Michael Snyder <msnyder@redhat.com>
10787 * symfile.c (syms_from_objfile): Return immediately if no syms.
10788 (symbol_file_add): Return immediately if no syms.
10789 (find_sym_fns): Return immediately if no syms.
10791 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10793 * gdbserver/remote-util.c (remote_open): Print remote-side's
10794 IP address when remote debugging over the network.
10796 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10798 * config/sparc/fbsd.mh: Fix copyright.
10799 * config/sparc/fbsd.mt: Likewise.
10801 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10803 * MAINTAINERS: Fix typo in name of gdb warnings option.
10804 (x86-64): Fix formating so that this can be parsed by awk.
10806 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10808 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10809 * defs.h: Include "gdb/signals.h".
10810 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10812 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10814 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10815 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10818 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10819 Don Howard <dhoward@redhat.com>
10821 * mips-tdep.c (ST0_FR): Define.
10822 (mips2_fp_compat): New function, temporarily disabled.
10823 (mips_read_fp_register_single): New function.
10824 (mips_read_fp_register_double): New function.
10825 (mips_print_register): Use them.
10826 (do_fp_register_row): Likewise.
10828 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10830 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10833 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10835 * stabsread.c (read_member_functions): Fix is_stub test for
10836 static member functions, improve comment.
10838 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10840 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10841 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10842 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10843 commands that set boolean values.
10844 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10845 (arm_rdi_resume): Always initialize PC.
10846 (arm_rdi_open): Don't use rslt as a boolean.
10847 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10848 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10849 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10850 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10852 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10854 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10855 * configure: Rebuilt.
10857 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10859 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10860 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10862 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10864 * cli/cli-decode.c (set_cmd_completer): New function.
10865 * command.h (set_cmd_completer): Declare.
10866 * cli/cli-decode.h (set_cmd_completer): Ditto.
10868 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10869 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10870 * win32-nat.c (_initialize_inftarg): Ditto.
10871 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10872 * proc-api.c (_initialize_proc_api): Ditto.
10873 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10874 * source.c (_initialize_source): Ditto.
10875 * exec.c (_initialize_exec): Ditto.
10876 * solib.c (_initialize_solib): Ditto.
10877 * top.c (init_main): Ditto.
10878 * tracepoint.c (_initialize_tracepoint): Ditto.
10879 * symfile.c (_initialize_symfile): Ditto.
10880 * printcmd.c (_initialize_printcmd): Ditto.
10881 * infcmd.c (_initialize_infcmd): Ditto.
10882 * corefile.c (_initialize_core): Ditto.
10884 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10886 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10888 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10890 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10892 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10894 * NEWS: Update headings, 5.2 has branched.
10896 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10898 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10899 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10900 (register_addr, REGISTER_RAW_SIZE): Likewise.
10901 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10902 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10904 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10906 * MAINTAINERS (x86-64): Add myself.
10907 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10908 changed value_ptr -> struct value *
10910 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10912 * configure.host (sparc64-*-freebsd): Add.
10913 * configure.tgt: Likewise.
10914 * config/sparc/fbsd.mh: New file.
10915 * config/sparc/fbsd.mt: Likewise.
10916 * config/sparc/nm-fbsd.h: Likewise.
10917 * config/sparc/tm-fbsd.h: Likewise.
10919 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10921 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10922 regformats/reg-s390x.dat.
10924 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10926 * utils.c: Add FIXME explaining true/false problem.
10928 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10930 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10932 2002-02-28 Michael Chastain <mec@shout.net>
10934 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10936 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10938 * gdbserver/linux-s390-low.c: New file.
10939 * regformats/reg-s390.dat: New file.
10940 * regformats/reg-s390x.dat: New file.
10941 * gdbserver/configure.srv: Add S/390.
10942 * gdbserver/Makefile.in: Add S/390.
10943 * configure.tgt: Enable gdbserver for S/390.
10945 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10947 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10948 first line of the doc string for "info dos", except at the end of
10949 the sentence, since the short help stops at the first period.
10951 2002-02-28 Jason Merrill <jason@redhat.com>
10953 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10955 2002-02-27 Fred Fish <fnf@redhat.com>
10957 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10958 comment (dumy -> dummy).
10960 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10962 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10964 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10966 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10968 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10970 * gdbserver/acconfig.h: New file.
10971 * gdbserver/i387-fp.c: New file.
10972 * gdbserver/i387-fp.h: New file.
10973 * gdbserver/linux-x86-64.c: New file.
10974 * regformats/reg-x86-64.dat: New file.
10975 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10976 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10977 * gdbserver/configure.in: Add support for regsets.
10978 * gdbserver/config.in: Regenerate.
10979 * gdbserver/configure: Regenerate.
10980 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10981 * gdbserver/linux-low.h: New file.
10982 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10984 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10985 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10986 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10987 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10988 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10989 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10990 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10991 "i387-fp.h". Add PTRACE_GETREGS and friends.
10992 * gdbserver/regcache.c (supply_register): New function.
10993 (supply_register_by_name): New function.
10994 (collect_register): New function.
10995 (collect_register_by_name): New function.
10997 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10999 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11000 (config.status): Add configure.srv dependency.
11001 (server_h): Add config.h dependency.
11003 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11005 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11006 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11007 * gdbserver/configure.srv: Change i386-*-linux* to use
11010 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11012 * x86-64-tdep.c: Re-indent. Update copyright date.
11014 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11016 From Michal Ludvig <mludvig@suse.cz>:
11017 * x86-64-tdep.c (value.h): Delete.
11018 (gdb_assert.h): Include.
11019 (x86_64_register_convert_to_virtual,
11020 x86_64_register_convert_to_raw ): Add check which lets only
11021 floating-point values to be converted.
11022 (value_push): Delete.
11023 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11024 (i386_gdbarch_init): Number of register_bytes fixed.
11026 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11028 * MAINTAINERS: Add x86-64 target.
11030 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11032 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11033 * osfsolib.c (solib_map_sections): Ditto.
11034 * irix5-nat.c (solib_map_sections): Ditto.
11035 * corelow.c (gdb_check_format): Ditto.
11036 * symfile.c (symfile_bfd_open): Ditto.
11037 * solib.c (solib_map_sections): Ditto.
11040 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11042 * remote.c (_initialize_remote): By default, disable ``e'' and
11043 ``E'' step out-of-range packets.
11045 2002-02-26 Andreas Schwab <schwab@suse.de>
11047 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11048 m68k_linux_frame_saved_pc.
11049 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11051 (SIGCONTEXT_PC_OFFSET): Remove.
11052 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11053 m68k_linux_sigtramp_saved_pc): New functions.
11054 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11055 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11056 (UCONTEXT_PC_OFFSET): Define.
11057 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11058 non-RT and RT signal trampolines.
11060 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11062 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11063 (TARGET_NBPG, STACK_END_ADDR): Delete
11064 (VARIABLES_INSIDE_BLOCK): Delete.
11066 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11068 * utils.c (perror_with_name): Make string parameter constant.
11069 (print_sys_errmsg): Ditto.
11071 * defs.h (perror_with_name): Update.
11072 (print_sys_errmsg): Update.
11075 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11077 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11078 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11080 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11082 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11083 if it already matches the current architecture from the exec file.
11084 Include arch-utils.h for gdbarch_info_init prototype.
11085 * Makefile.in (rs6000-nat.o): Update dependencies.
11087 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11089 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11090 list of exported variables.
11092 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11094 * gdbserver/configure.srv: New file.
11095 * gdbserver/configure.in: Use configure.srv instead
11096 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11098 * gdbserver/configure: Regenerated.
11099 * gdbserver/terminal.h: New file.
11100 * gdbserver/Makefile.in: Update for configure changes. Remove
11101 more unneeded include paths.
11103 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11105 From wiz at danbala:
11106 * config/sparc/tm-sp64.h: Fix grammar and typos.
11109 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11111 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11112 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11113 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11114 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11115 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11116 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11117 * s390-tdep.c: Ditto.
11118 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11119 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11120 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11121 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11122 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11123 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11124 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11125 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11126 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11127 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11130 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11132 * lin-thread.c: Delete file.
11133 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11134 to gdb_proc_service.h.
11135 * configure: Re-generate.
11137 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11138 * serial.c (serial_open): Delete check for "ocd".
11141 * Makefile.in (linux-thread.o): Delete target.
11142 * linux-thread.c: Delete file.
11144 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11145 renamed SH files to be consistent.
11147 * symtab.c (sort_search_symbols): Use xfree.
11149 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11151 * arm-linux-tdep.c (arm_linux_init_abi): Register
11152 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11153 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11154 definition with undef, since we don't want the sysvr4 definition.
11155 (SKIP_TRAMPOLINE_CODE): Likewise.
11157 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11159 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11161 * configure.in: (AC_CHECK_FUNCS) Added test for
11162 canonicalize_file_name Regenerated.
11163 * config.in, configure: Regenerated.
11164 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11165 defined use canonicalize_file_name.
11167 2002-02-23 Michael Chastain <mec@shout.net>
11169 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11171 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11173 * README: Remove references to cygnus.com.
11174 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11175 dot com'' form. Remove references to cygnus.com and sourceware.
11177 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11179 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11180 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11181 1003.1-2001 no longer allows "head -1".
11182 * gdb/Makefile.in (version.c): Likewise.
11183 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11184 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11185 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11187 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11189 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11190 * command.h (cmd_cfunc_eq): Declare.
11191 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11193 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11194 ``struct cmd_list_element *''.
11195 * cli/cli-cmds.c (is_complete_command): Update. Use
11197 * top.c (execute_command): Pass the command to
11198 is_complete_command.
11199 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11201 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11203 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11204 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11205 architecture defines.
11206 * s390-tdep.c (s390_gdbarch_init): Likewise.
11208 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11210 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11211 (arm_linux_push_arguments): Likewise.
11212 (arm_linux_init_abi): Register them. Also register linux-specific
11214 (find_minsym_and_objfile): Use strcmp, not STREQ.
11215 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11216 (arm_linux_call_dummy_words): Delete declaration.
11217 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11218 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11220 (LOWEST_PC): Delete.
11222 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11224 * maint.c (print_section_info): Do not prepend `0x' to filepos
11225 output, it will be handled by local_hex_string_custom.
11227 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11229 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11230 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11231 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11233 2002-02-22 Jim Blandy <jimb@redhat.com>
11235 Indicate that the bcache functions don't change the strings
11237 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11238 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11240 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11242 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11244 2002-02-21 Christopher Faylor <cgf@redhat.com>
11246 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11247 find the complete path to a loaded DLL.
11249 2002-02-21 Fred Fish <fnf@redhat.com>
11251 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11252 that marks the end of the range of a function, enter a line number
11253 entry that has a line number of zero and a PC offset that matches
11254 the end of the function. This starts a range of PC's for which no
11255 line number information is known.
11256 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11257 PC's for which no line number info is found (line number is zero)
11258 then we didn't find any valid line information.
11259 * symtab.h: Document use of zero line number entry.
11261 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11263 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11264 (have_ptrace_getvrregs): Define for run time checks.
11265 (gdb_vrregset_t): New type for Altivec register handling.
11266 (fetch_register, store_register): Fetch/store altivec register
11268 (fetch_altivec_register, store_altivec_register): New functions.
11269 (supply_vrregset, fill_vrregset): New functions.
11270 (fetch_altivec_registers, store_altivec_registers): New functions.
11271 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11274 2002-02-21 Jiri Smid <smid@suse.cz>
11276 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11278 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11280 * Makefile.in (armnbsd-nat.o): Update dependencies.
11281 * armnbsd-nat.c (supply_gregset): New function. Common code to
11282 supply the integer register set.
11283 (supply_fparegset): New function. Similar for FPA registers.
11284 (fetch_regs, fetch_fp_regs): Use them.
11285 (fetch_core_registers): Likewise.
11286 (fetch_elfcore_registers): New function.
11287 (arm_netbsd_elfcore_fns): New core-file type specification.
11288 (_initialize_arm_netbsd_nat): Register it.
11290 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11292 * armnbsd-nat.c: Include gdbcore.h.
11293 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11294 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11295 'void' to declaration, to shut up ARI.
11296 (fetch_core_registers): Make static. Rewrite using supply_register.
11297 (arm_netbsd_core_fns): New core-file type specification.
11298 (_initialize_arm_netbsd_nat): New function.
11300 2002-02-21 Christopher Faylor <cgf@redhat.com>
11302 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11305 2002-02-20 Christopher Faylor <cgf@redhat.com>
11307 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11310 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11312 * jv-exp.y (parse_number): Change type of implicit longs
11313 to builtin_type_uint64.
11315 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11317 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11318 to be an integer instead of a `union wait'.
11320 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11322 * mips-linux-nat.c: Call the operating system GNU/Linux.
11323 * mips-linux-tdep.c: Likewise.
11324 * mips-tdep.c: Likewise.
11326 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11329 * jv-exp.y (parse_number): Handle 64-bit integers.
11331 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11333 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11334 AC_STDC_HEADERS to AC_HEADER_STDC.
11335 * gdbserver/configure: Regenerated.
11337 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11339 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11341 * sparc-tdep.c (get_longjmp_target): Likewise.
11343 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11345 * News: Add news about ARM and Multi-arch. Mention the new target
11348 2002-02-19 Jim Blandy <jimb@redhat.com>
11350 * stabsread.c (error_type_complaint): Improve error message.
11352 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11354 * gdbserver/README: Update documentation.
11355 * gdbserver/configure.in: Update configury to match documentation.
11356 * gdbserver/Makefile.in: Likewise.
11357 * gdbserver/configure: Regenerated.
11358 * gdbserver/aclocal.m4: New file, generated by aclocal.
11359 * gdbserver/config.in: New file, generated by autoheader.
11361 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11363 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11366 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11368 * arm-tdep.h (enum arm_float_model): New enum.
11369 (struct gdbarch_tdep): Add fp_model.
11370 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11371 up floating-point conversions until we know the floating-point model
11372 in use by the inferior. Don't complain about being unable to
11373 determine the ABI of the inferior when we don't have one.
11374 (arm_extract_return_value): Support different floating-point models.
11375 (arm_store_return_value): Likewise.
11376 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11378 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11380 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11382 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11383 of ``current_gdbarch''.
11385 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11387 * armnbsd-nat.c : ANSIfy all function declarations.
11388 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11389 (fetch_inferior_registers): Re-implement in terms of above.
11390 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11391 (store_inferior_registers): Re-implement in terms of above.
11393 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11395 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11397 * arm-linux-tdep.c: Likewise.
11398 * config/arm/tm-linux.h: Likewise.
11400 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11402 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11403 * config/arm/nbsd.mt (TM_FILE): Delete.
11404 * config/arm/tm-nbsd.h: Delete.
11406 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11408 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11409 Initialize CALL_DUMMY_LENGTH.
11411 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11413 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11415 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11416 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11417 defines one thing and that is incorrect for this port.
11418 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11420 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11422 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11424 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11426 * win32-nat.c (display_selector): New function. Displays information
11427 about the information returned by GetThreadSelectorEntry API function.
11428 (display_selectors): New function. Displays the infomation of
11429 the selector given as argument, or of CS, DS ans FS selectors
11430 if no argument is given.
11431 ( _initialize_inftarg): Add "w32" as info prefix command.
11432 Add "info w32 selector" as command calling display_selectors.
11434 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11436 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11437 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11440 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11442 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11444 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11446 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11447 (arm_fix_call_dummy): Call it.
11448 (arm_call_dummy_breakpoint_offset): Delete.
11449 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11450 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11452 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11454 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11455 Default to func_frame_chain_valid.
11456 * gdbarch.h, gdbarch.c: Re-generate.
11457 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11459 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11461 * ppc-linux-nat.c: Update copyright.
11462 (fetch_register, store_register): Add tid parameter, don't compute
11464 (fetch_ppc_registers, store_ppc_registers): Add tid
11465 parameter. Pass it along to callees.
11466 (fetch_inferior_registers, store_inferior_registers): Compute tid
11467 here, and pass it to calleed functions.
11468 (fill_gregset, supply_fpregset): Clean up formatting.
11470 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11472 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11473 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11475 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11477 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11478 * gdbarch.c gdbarch.h: Regenerate.
11479 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11481 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11482 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11483 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11485 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11486 * arm-tdep.c (arm_get_longjmp_target): New function.
11487 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11488 this to a positive value register arm_get_longjmp_target as the
11490 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11491 (arm_linux_init_abi): Set up longjmp description in tdep.
11492 * armnbsd-nat.c (get_longjmp_target): Delete.
11493 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11494 description in tdep.
11495 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11496 (get_longjmp_target): Delete declaration.
11497 (GET_LONGJMP_TARGET): Delete.
11498 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11499 (GET_LONGJMP_TARGET): Delete.
11501 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11503 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11504 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11505 of ``current_gdbarch''.
11507 2002-02-17 Tom Tromey <tromey@redhat.com>
11509 * cli/cli-cmds.c (compare_strings): New function.
11510 (complete_command): Only print each unique item once.
11511 * completer.h (complete_line): Declare.
11512 * completer.c (complete_line): New function.
11513 (line_completion_function): Use it.
11515 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11517 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11518 * gdbarch.h, gdbarch.c: Re-generate.
11520 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11522 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11524 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11526 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11527 * valops.c (value_arg_coerce): Don't take the address of a reference
11528 to convert an argument to a reference.
11530 2002-02-15 Christopher Faylor <cgf@redhat.com>
11532 * win32-nat.c (get_image_name): New function.
11533 (handle_load_dll): Use get_image_name function.
11534 (get_child_debug_event): Avoid registering debug events until possibly
11535 execed process is started.
11536 (child_create_inferior): Allow invocation via shell so that command
11537 line redirection, etc. works ok.
11538 (_initialize_inftarg): Add new command: "set shell" to control whether
11539 a shell is used to start a process.
11541 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11543 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11544 instead of find_register_by_number.
11545 (cannot_store_register): Likewise.
11547 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11549 * dwarf2read.c: Replace fprintf (stderr, ...) by
11550 fprintf_unfiltered (gdb_stderr, ...).
11552 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11554 * gdbserver/gdbserver.1: Document --attach.
11556 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11558 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11560 * arm-tdep.c (arm_default_arm_le_breakpoint)
11561 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11562 (arm_default_thumb_be_breakpoint): New. Initialize them from
11563 traditional breakpoint defines.
11564 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11565 (arm_gdbarch_init): Initialize new breakpoint variables.
11566 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11567 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11568 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11569 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11571 (arm_netbsd_init_abi_common): ... here; new function.
11572 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11573 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11574 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11575 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11577 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11579 * arm-tdep.h (enum arm_abi): New enum.
11580 (struct gdbarch_tdep): New structure.
11581 (LOWEST_PC): Provide a default.
11582 (arm_gdbarch_register_os_abi): Declare new function.
11583 * arm-tdep.c (arm_abi_names): New array.
11584 (process_note_abi_tag_sections): New function.
11585 (get_elfosabi): New function.
11586 (arm_gdbarch_register_os_abi): New function.
11587 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11588 support for that ABI has been built in, then call the appropriate
11589 configuration routine. Use gdbarch_num_regs() to get the number
11591 (arm_dump_tdep): New function.
11592 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11593 place-holder functions.
11594 (_initialize_arm_tdep): Register them.
11595 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11597 * armnbsd-tdep.c: New file.
11598 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11599 * config/arm/nbsd.mt (TDEPFILES): Add it.
11600 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11602 * armnbsd-nat.c: Include regcache.h.
11603 * Makefile.in (armnbsd-nat.o): Update dependency list.
11605 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11607 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11609 * gdbserver/Makefile.in: Fix typos in target rules.
11611 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11613 Fix part of PR gdb/267.
11614 * linespec.c (find_methods): Handle constructors specially for now.
11616 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11618 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11620 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11621 standard_coerce_float_to_double().
11623 2002-02-14 Christopher Faylor <cgf@redhat.com>
11625 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11628 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11630 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11631 find_variant_by_name, because it confuses the multiarch
11632 framework. Return NULL if there isn't an architecture with the
11633 user supplied name, instead of forcing a different one without
11634 recording the change with the multiarch machinery.
11635 (find_variant_by_name): Delete.
11637 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11639 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11640 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11642 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11644 * stack.c (print_frame_info_base): When calling
11645 print_frame_info_listing_hook, set current_source_symtab.
11647 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11649 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11650 and remove unused $(INCLUDE_DIR).
11651 Add regcache.c to OBS.
11652 Add generated register protocol files to clean target.
11653 Update dependencies for new objects, obsolete old target code.
11655 * gdbserver/linux-low.c: Remove all platform-specific code to
11656 new files. Remove various dead code. Update to use regcache
11658 * gdbserver/remote-utils.c (fromhex): Add return statement
11660 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11662 (input_interrupt): Add integer parameter to match prototype
11663 of a signal handler.
11664 (outreg): Use register_data ().
11665 (prepare_resume_reply): Use gdbserver_expedite_regs.
11666 * gdbserver/server.c (main): Dynamically allocate own_buf because
11667 PBUFSIZ is no longer constant. Use registers_to_string () and
11668 registers_from_string ().
11669 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11670 for error (), fatal (), and warning (). Update definition of
11671 PBUFSIZ to use regcache functionality. Add include guard.
11672 * gdbserver/utils.c (fatal): Add missing ``const''.
11673 (warning): New function.
11675 * regformats/regdat.sh: Include "regcache.h" in generated files.
11676 Provide init_registers () function.
11677 * regformats/regdef.h: Add prototype for set_register_cache ().
11680 * gdbserver/linux-arm-low.c: New file.
11681 * gdbserver/linux-i386-low.c: New file.
11682 * gdbserver/linux-ia64-low.c: New file.
11683 * gdbserver/linux-m68k-low.c: New file.
11684 * gdbserver/linux-mips-low.c: New file.
11685 * gdbserver/linux-ppc-low.c: New file.
11686 * gdbserver/linux-sh-low.c: New file.
11688 * gdbserver/regcache.c: New file.
11689 * gdbserver/regcache.h: New file.
11691 * gdbserver/low-linux.c: Removed obsolete file.
11693 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11695 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11696 * config/i386/linux.mt: Likewise.
11697 * config/ia64/linux.mt: Likewise.
11698 * config/m68k/linux.mh: Likewise.
11699 * config/powerpc/linux.mh: Likewise.
11700 * config/mips/linux.mt: Likewise.
11702 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11704 * config/i386/i386lynx.mh: Mark gdbserver variables
11705 as (currently) obsolete for this target.
11706 * config/i386/nbsd.mt: Likewise.
11707 * config/i386/nbsdelf.mt: Likewise.
11708 * config/m32r/m32r.mt: Likewise.
11709 * config/m68k/m68klynx.mh: Likewise.
11710 * config/m68k/nbsd.mt: Likewise.
11711 * config/m68k/sun3os4.mh: Likewise.
11712 * config/mips/vr5000.mt: Likewise.
11713 * config/ns32k/nbsd.mt: Likewise.
11714 * config/pa/hppabsd.mh: Likewise.
11715 * config/pa/hppaosf.mh: Likewise.
11716 * config/powerpc/nbsd.mt: Likewise.
11717 * config/rs6000/rs6000lynx.mh: Likewise.
11718 * config/s390/s390.mt: Likewise.
11719 * config/s390/s390x.mt: Likewise.
11720 * config/sparc/sparclynx.mh: Likewise.
11721 * config/sparc/sun4os4.mh: Likewise.
11722 * config/i386/x86-64linux.mt: Likewise.
11723 * config/sparc/linux.mh: Likewise.
11725 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11727 * configure.tgt: Configure gdbserver only for known working
11728 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11729 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11730 SUBDIRS if it is configured. Update comment for ${nativefile}.
11731 * configure: Regenerated.
11733 2002-02-13 Michael Snyder <msnyder@redhat.com>
11735 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11737 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11738 (default_gcore_mach): Just return 0, work around a problem in bfd.
11739 (default_gcore_target): OK to return NULL if exec_bfd is null.
11740 (make_mem_sec): Use a cast, avoid a warning.
11742 * procfs.c (find_memory_regions_callback): Use a cast instead of
11743 calling host_pointer_to_address (which complains if
11744 sizeof (host pointer) != sizeof (target pointer)).
11745 (procfs_make_note_section): Avoid overflow in psargs string.
11747 * procfs.c (procfs_make_note_section): Make the default
11748 implementation return an error.
11750 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11752 * procfs.c (procfs_make_note_section): Provide a default definition
11753 (for alpha-dec-osf4.0f). Fix typos.
11755 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11757 * linux-proc.c: Add include of regcache.h.
11758 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11760 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11762 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11763 * memattr.c (create_mem_region): Disallow useless empty region.
11764 Regions are half-open intervals, so allow [A..B) [B..C) as
11767 2002-02-13 Michael Chastain <mec@shout.net>
11769 * defs.h: Kill CONST_PTR.
11770 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11771 * c-lang.c (c_builtin_types): Likewise.
11772 * ch-lang.c (ch_builtin_types): Likewise.
11773 * f-lang.c (f_builtin_types): Likewise.
11774 * language.c (unknown_builtin_types): Likewise.
11775 * m2-lang.c (m2_builtin_types): Likewise.
11776 * p-lang.c (pascal_builtin_types): Likewise.
11777 * scm-lang.c (c_builtin_types): Likewise.
11779 2002-02-13 Keith Seitz <keiths@redhat.com>
11781 * arm-tdep.h (arm_get_next_pc): Add declaration.
11783 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11785 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11786 with other related struct-returning functions.
11787 (arm_extract_struct_value_address): New function.
11788 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11789 initialize float_format, double_format and long_double_format as
11790 appropriate to the endianness of the target.
11791 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11792 (arm_use_struct_convention): Delete declaration.
11793 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11795 2002-02-13 Keith Seitz <keiths@redhat.com>
11797 * defs.h (core_addr_to_string_nz): New function.
11799 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11801 Apply missing bits of 2002-01-15 patch.
11802 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11803 (fill_fpregset): Use i387_fill_fsave.
11805 2002-02-12 Keith Seitz <keiths@redhat.com>
11807 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11808 (core_addr_to_string_nz): New function.
11810 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11812 * arm-linux-nat.c: Really include arm-tdep.h.
11813 * config/arm/tm-linux.h (struct type, struct value): Declare.
11815 2002-02-11 Michael Snyder <msnyder@redhat.com>
11817 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11818 (gcore section): Ifdef for Solaris and Unixware only.
11819 (procfs_do_thread_registers): Unixware needs one lwpstatus
11820 per thread (not one prstatus or pstatus).
11821 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11822 not over all gdb threads. For unixware, call elfcore_write_pstatus
11823 once before iterating over threads.
11825 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11827 * arm-tdep.h: New file.
11828 * arm-tdep.c: Include arm-tdep.h.
11829 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11830 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11831 (arm_print_float_info, arm_register_type, convert_to_extended)
11832 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11833 (arm_extract_return_value, arm_register_name): Make static.
11834 (arm_software_single_step): Similarly. Fix types in declaration.
11835 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11836 (arm_store_return_value, arm_store_struct_return): New functions.
11837 (arm_gdbarch_init): Register the above functions. Also register
11838 call_dummy_start_offset, sizeof_call_dummy_words,
11839 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11840 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11841 max_register_virtual_size, register_size. Set up
11842 prologue_cache.saved_regs here, rather than ...
11843 (_initialize_arm_tdep): ... here.
11844 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11846 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11847 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11848 (arm_print_float_info, arm_register_type, convert_to_extended)
11849 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11850 (arm_extract_return_value, arm_register_name): Delete declarations.
11851 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11852 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11853 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11854 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11855 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11856 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11857 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11858 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11859 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11860 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11861 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11862 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11864 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11865 * remote-rdi.c remote-rdp.c: Likewise.
11866 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11867 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11868 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11871 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11872 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11873 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11874 from non-ARM_ prefixed definitions.
11875 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11877 * remote-rdi.c remote-rdp.c: Likewise.
11878 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11880 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11882 * arm-tdep.c (arm_frameless_function_invocation)
11883 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11884 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11885 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11886 (arm_pop_frame, arm_get_next_pc): Make static.
11887 (arm_gdbarch_init): Register above in gdbarch structure.
11888 (arm_read_fp): Renamed from arm_target_read_fp.
11889 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11890 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11891 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11892 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11893 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11894 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11895 (arm_pc_is_thumb_dummy): Delete declarations.
11896 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11897 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11898 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11899 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11901 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11903 * symtab.c (compare_search_syms): New function.
11904 (sort_search_symbols): New function.
11905 (search_symbols): Sort symbols after searching rather than
11908 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11910 * NEWS: Linux -> GNU/Linux.
11912 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11914 * gdbarch.sh: For for level one methods, disallow a definition
11915 when partially multi-arched. Add comments explaining rationale.
11916 * gdbarch.h: Re-generate.
11918 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11920 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11921 multi-arch partial.
11923 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11925 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11926 field. Use diff -u.
11927 * gdbarch.c: Re-generate.
11929 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11931 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11932 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11935 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11937 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11938 multi-arch partial.
11939 (PUSH_ARGUMENTS): Switch to using predefault.
11940 * gdbarch.c: Regenerate.
11942 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11944 * valops.c (PUSH_ARGUMENTS): Delete definition.
11945 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11946 partial. Default to default_push_arguments.
11947 * gdbarch.h, gdbarch.c: Regenerate.
11949 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11951 * defs.h (throw_exception): Rename return_to_top_level. Update
11953 * utils.c (error_stream, internal_verror, quit): Ditto.
11954 * top.c (throw_exception, catcher): Ditto.
11955 * sparclet-rom.c (sparclet_load): Ditto.
11956 * remote.c (interrupt_query, minitelnet): Ditto.
11957 * remote-sds.c (interrupt_query): Ditto.
11958 * remote-mips.c (mips_error, mips_kill): Ditto.
11959 * ocd.c (interrupt_query): Ditto.
11960 * monitor.c (monitor_interrupt_query): Ditto.
11961 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11962 * target.h: Update comment.
11964 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11966 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11968 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11969 default_double_format.
11970 * gdbarch.h, gdbarch.c: Re-generate.
11971 * findvar.c (floatformat_unknown): Delete variable definition.
11972 * doublest.h (floatformat_unknown): Delete variable declaration.
11974 2002-02-09 Jim Blandy <jimb@redhat.com>
11976 * stabsread.c (read_type): Add code to parse Sun's syntax for
11977 prototyped function types.
11979 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11981 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11982 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11984 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11986 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11987 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11988 now _initialize_xcoffsolib gets called again and overrides the
11989 commands from solib.c in a native configuration.
11991 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11993 * doublest.c (store_typed_floating): Don't try to return a value.
11996 2002-02-08 Jim Blandy <jimb@redhat.com>
11998 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11999 is prototyped and has no arguments, print its argument list as
12002 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12004 * MAINTAINERS (write-after-approval): Add myself.
12005 (paper-trail): I've escaped!
12007 2002-02-08 Christopher Faylor <cgf@redhat.com>
12009 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12011 (_initialize_check_for_gdb_ini): Ditto.
12013 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12015 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12016 xaprintf -> xasprintf.
12018 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12020 * win32-nat.c: Remove use of printf and sprintf functions.
12022 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12024 * arm-tdep.c (arm_frame_chain_valid): Make static.
12025 (arm_push_arguments): Likewise.
12026 (arm_gdbarch_init): New function.
12027 (_initialize_arm_tdep): Call it.
12028 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12029 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12030 (FRAME_CHAIN_VALID): Delete.
12031 (arm_frame_chain_valid): Delete declaration.
12032 (PUSH_ARGUMENTS): Delete.
12033 (arm_push_arguments): Delete declaration.
12034 (CALL_DUMMY_P): Delete.
12036 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12037 Corinna Vinschen <vinschen@redhat.com>
12039 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12040 on builtin float types.
12042 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12044 * utils.c: Include <curses.h> before "bfd.h".
12045 * tui/tui-hooks.c: Likewise.
12046 * tui/tui.c: Likewise.
12047 * tui/tuiCommand.c: Likewise.
12048 * tui/tuiData.c: Likewise.
12049 * tui/tuiDataWin.c: Likewise.
12050 * tui/tuiDisassem.c: Likewise.
12051 * tui/tuiGeneralWin.c: Likewise.
12052 * tui/tuiIO.c: Likewise.
12053 * tui/tuiLayout.c: Likewise.
12054 * tui/tuiRegs.c: Likewise.
12055 * tui/tuiSource.c: Likewise.
12056 * tui/tuiSourceWin.c: Likewise.
12057 * tui/tuiStack.c: Likewise.
12058 * tui/tuiWin.c: Likewise.
12060 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12062 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12063 to include space for pseudoregs as well. Update loops accordingly.
12064 (sh_fp_frame_init_saved_regs): Ditto.
12065 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12067 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12069 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12070 Add Richard Earnshaw to Arm maintainers.
12072 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12074 * defs.h (warning_begin): Delete declaration.
12076 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12079 2002-02-07 Michael Snyder <msnyder@redhat.com>
12081 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12082 Logic bug, remove misplaced else.
12084 2002-02-07 Klee Dienes <klee@apple.com>
12086 * fork-inferior.c (fork_inferior): Add '!' to the list of
12087 characters that need to be quoted when building a string for the
12088 shell. Quote '!' specifically with a backslash, since CSH chokes
12089 when trying to evaluate "str!str".
12091 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12093 * rdi-share/host.h: Only provide a typedef for bool if it is not
12096 2002-02-04 Michael Snyder <msnyder@redhat.com>
12098 * breakpoint.h (enum bptype): Add new overlay event bp type.
12099 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12101 * breakpoint.c (create_internal_breakpoint): New function.
12102 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12103 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12104 (create_thread_event_breakpoint): Ditto.
12105 (create_solib_event_breakpoint): Ditto.
12106 (create_overlay_event_breakpoint): New function.
12107 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12108 (update_breakpoints_after_exec): Delete and re-initialize
12109 overlay event breakpoints after an exec. Add FIXME comment
12110 about longjmp breakpoint.
12111 (print_it_typical): Ignore overlay event breakpoints.
12112 (print_one_breakpoint): Ditto.
12114 (bpstat_what): Do not stop for overlay event breakpoints.
12115 (delete_breakpoint): Don't delete overlay event breakpoints.
12116 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12117 (breakpoint_re_set): Re-create overlay event breakpoint.
12119 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12120 (overlay_manual_command): Disable overlay breakpoints.
12121 (overlay_off_command): Disable overlay breakpoints.
12123 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12125 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12126 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12127 to here from config/tm-arm.h.
12128 (coff_sym_is_thumb): Make static.
12129 (arm_elf_make_msymbol_special): New function.
12130 (arm_coff_make_msymbol_special): New function.
12131 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12132 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12133 (coff_sym_is_thumb): Delete declaration.
12134 (arm_elf_make_msymbol_special): Declare.
12135 (arm_coff_make_msymbol_special): Declare.
12136 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12137 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12139 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12141 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12143 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12145 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12146 * gdbarch.c gdbarch.h: Regenerate.
12147 * arch-utils.c (default_print_float_info): New function.
12148 * arch-utils.h (default_print_float_info): Prototype it.
12149 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12150 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12151 (PRINT_FLOAT_INFO): Document it.
12153 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12154 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12155 (PRINT_FLOAT_INFO): Define.
12157 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12159 * win32-nat.c (_initialize_check_for_gdb_ini):
12160 Add typecast to sprintf argument to suppress a warning.
12162 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12164 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12165 to allow easier handling of pass state.
12166 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12167 that gives exception name and address.
12168 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12169 and set last_sig value to ourstatus->value.sig. Some missing
12171 (child_continue): Correctly report continue_status.
12172 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12173 TARGET_SIGNAL_0 (new default value).
12174 (child_resume): consider sig argument passed to decide if
12175 the exception should be passed to debuggee or not.
12177 2002-02-05 Michael Snyder <msnyder@redhat.com>
12179 * regcache.c (fetch_register): Call target_fetch_register
12180 only if we don't call FETCH_PSEUDO_REGISTER.
12181 (store_register): Call target_store_register only if we
12182 don't call STORE_PSEUDO_REGISTER.
12184 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12186 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12187 ELF_MAKE_MSYMBOL_SPECIAL.
12188 * gdbarch.c, gdbarch.h: Regenerate.
12189 * arch-utils.c (default_make_msymbol_special): New function.
12190 * arch-utils.h (default_make_msymbol_special): Export.
12191 * elfread.c (elf_symtab_read): Compile use of
12192 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12194 * coffread.c (coff_symtab_read): Ditto, for
12195 COFF_MAKE_MSYMBOL_SPECIAL.
12197 2002-02-05 Jim Blandy <jimb@redhat.com>
12199 * solib-svr4.c (svr4_truncate_ptr): New function.
12200 (svr4_relocate_section_addresses): Do the address arithmetic with
12201 the appropriate truncation for target addresses, even when
12202 CORE_ADDR is larger than a target address.
12204 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12206 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12209 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12211 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12214 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12216 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12218 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12220 * gdbserver/linux-low.c: Remove unused include files.
12222 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12224 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12225 (read_inferior_memory): Use it.
12226 (write_inferior_memory): Likewise.
12228 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12230 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12231 grubbing through sys_errlist.
12233 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12235 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12237 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12238 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12240 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12242 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12243 (do_sfunc, set_cmd_sfunc): New functions.
12245 * command.h (struct cmd_list_element): Add field func.
12246 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12247 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12248 * cli/cli-decode.h: Ditto.
12250 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12251 (help_all, help_cmd_list): Ditto.
12252 (find_cmd, complete_on_cmdlist): Ditto.
12253 * top.c (execute_command): Ditto.
12255 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12258 * infcmd.c (notice_args_read): Fix function signature.
12260 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12261 * cli/cli-decode.c (add_set_cmd): Ditto.
12262 * utils.c (initialize_utils): Ditto.
12263 * maint.c (_initialize_maint_cmds): Ditto.
12264 * infrun.c (_initialize_infrun): Ditto.
12265 * demangle.c (_initialize_demangler): Ditto.
12266 * remote.c (add_packet_config_cmd): Ditto.
12267 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12268 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12269 * proc-api.c (_initialize_proc_api): Ditto.
12270 * kod.c (_initialize_kod): Ditto.
12271 * valprint.c (_initialize_valprint): Ditto.
12272 * top.c (init_main): Ditto.
12273 * infcmd.c (_initialize_infcmd): Ditto.
12274 * corefile.c (_initialize_core): Ditto.
12275 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12276 * arch-utils.c (initialize_current_architecture): Ditto.
12277 (_initialize_gdbarch_utils): Ditto.
12278 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12280 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12281 * wince.c (_initialize_inftarg): Ditto.
12282 * symfile.c (_initialize_symfile): Ditto.
12283 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12284 * language.c (_initialize_language): Ditto.
12285 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12287 2002-02-04 Michael Snyder <msnyder@redhat.com>
12289 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12291 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12293 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12294 Add rules for building the register data files.
12296 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12298 * regformats/regdat.sh: Add braces to the definition of
12299 expedite_regs_${arch}.
12301 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12303 * regformats/regdef.h (struct reg): Add comment describing the
12304 requirements for offset and size fields.
12306 2002-02-04 Andreas Schwab <schwab@suse.de>
12308 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12309 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12311 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12313 * gdbarch.sh (copyright): Update years in generated header.
12314 (SMASH_TEXT_ADDRESS): Add rule.
12315 * gdbarch.h, gdbarch.c: Re-generate.
12316 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12317 * dbxread.c: Likewise.
12318 * dwarfread.c: Likewise.
12319 * elfread.c: Likewise.
12320 * somread.c: Likewise.
12322 * arm-tdep.c (arm_smash_text_address): New function.
12323 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12325 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12327 Add support for hardware watchpoints on win32 native.
12328 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12329 CONTEXT_DEBUG_REGISTERS.
12330 (dr variable): New variable. Static array containing a local copy
12331 of debug registers.
12332 (debug_registers_changed): New variable. Reflects when debug registers
12333 are changed and need to be written to inferior.
12334 (debug_registers_used): New variable. Reflects when any debug register
12335 was set, used when new threads are created.
12336 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12338 (thread_rec): Set dr array if id is the thread of current_event .
12339 (child_continue, child_resume): Change the debug registers for all
12340 threads if debug_registers_changed.
12341 (child_add_thread): Change the debug registers if debug_registers_used.
12342 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12343 Link nm.h to new nm-cygwin.h file.
12344 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12345 of hardware registers.
12347 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12349 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12350 Restore behavour broken by 2002-01-20 Andrew Cagney
12351 <ac131313@redhat.com> IEEE_FLOAT removal.
12353 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12355 * c-valprint.c (c_val_print): Pass a proper valaddr to
12356 cp_print_class_method.
12357 * valops.c (search_struct_method): If there is only one method
12358 and args is NULL, return that method.
12360 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12362 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12363 accessing tag_name directly.
12365 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12367 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12368 of accessing tag_name directly.
12370 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12373 * gdbtypes.c (replace_type): New function.
12374 * gdbtypes.h (replace_type): Add prototype.
12375 * stabsread.c (read_type): Use replace_type.
12377 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12379 * Makefile.in (memattr.o): Add missing dependencies rule.
12381 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12383 * breakpoint.c (break_at_finish_command): Really export.
12384 (break_at_finish_at_depth_command): Ditto.
12385 (tbreak_at_finish_command): Ditto.
12386 * hppa-tdep.c: Include completer.h.
12387 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12388 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12390 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12392 * utils.c (do_write): New function.
12393 (error_stream): Rewrite combining the code from error_begin and
12395 (verror): Rewrite using error_stream.
12396 (error_begin): Delete function.
12398 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12400 * utils.c (error_begin): Make static.
12401 * defs.h (error_begin): Delete declaration.
12403 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12404 (decode_line_1): Use cplusplus_error instead of error_begin,
12405 cplusplus_hint and return_to_top_level.
12406 * coffread.c (coff_symfile_read): Use error instead of error_begin
12407 and return_to_top_level.
12408 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12410 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12412 * language.h (type_error, range_error): Make string parameter
12414 * language.c (warning_pre_print): Delete extern declaration.
12415 * dwarfread.c (warning_pre_print): Ditto.
12416 * language.c (type_error, range_error): Rewrite to use verror and
12417 vwarning instead of warning_begin.
12419 2002-02-01 Michael Snyder <msnyder@redhat.com>
12421 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12422 (set_ignore_count): Move misplaced comment back where it belongs.
12424 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12426 * command.h (NO_FUNCTION): Delete macro.
12427 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12428 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12429 * tracepoint.c (_initialize_tracepoint): Ditto.
12430 * cli/cli-decode.c (add_set_cmd): Ditto.
12431 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12433 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12435 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12436 Update ``this'' pointer when calling virtual functions.
12438 2002-02-01 Michael Snyder <msnyder@redhat.com>
12440 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12441 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12443 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12445 * regformats/reg-arm.dat: New file.
12446 * regformats/reg-i386.dat: New file.
12447 * regformats/reg-ia64.dat: New file.
12448 * regformats/reg-m68k.dat: New file.
12449 * regformats/reg-mips.dat: New file.
12450 * regformats/reg-ppc.dat: New file.
12451 * regformats/reg-sh.dat: New file.
12452 * regformats/regdef.h: New file.
12453 * regformats/regdat.sh: New file.
12455 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12457 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12458 (arm_frame_args_address, arm_frame_locals_address): New functions.
12459 (arm_frame_num_args): New function.
12460 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12461 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12462 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12464 2002-01-31 Michael Snyder <msnyder@redhat.com>
12466 * breakpoint.c (break_at_finish_command): Export.
12467 (break_at_finish_at_depth_command): Export.
12468 (tbreak_at_finish_command): Export.
12469 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12470 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12471 "txbreak" commands, which are HPPA specific.
12473 * printcmd.c (disassemble_command): Remove an ancient
12474 artifact of an old merge.
12476 * symfile.h (enum overlay_debugging_state):
12477 Define enum constant values for overlay mode.
12478 * symfile.c (overlay_debugging): Use enums instead of literals.
12479 (overlay_is_mapped, overlay_auto_command,
12480 overlay_manual_command): Ditto.
12482 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12483 breakpoint_here_p, breakpoint_inserted_here_p,
12484 breakpoint_thread_match, bpstat_stop_status,
12485 describe_other_breakpoints, check_duplicates, clear_command):
12486 Coding standard fixes.
12488 * target.c (target_xfer_memory): Add spaces, coding standard.
12489 (do_xfer_memory): Add missing line to trust-readonly
12490 code: check bfd SEC_READONLY flag for section.
12492 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12494 * PROBLEMS: Fix typo, 5.1->5.1.1.
12496 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12498 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12499 data symbols, since we search based on textlow and texthigh.
12500 (find_pc_sect_symtab): Likewise.
12502 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12504 * defs.h (vwarning): Declare.
12505 * utils.c (vwarning): New function.
12506 (warning): Call vwarning.
12507 (warning_begin): Delete function.
12509 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12510 the warning message.
12511 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12514 2002-01-30 Michael Snyder <msnyder@redhat.com>
12516 * NEWS: Mention "set trust-readonly-sections" command.
12517 Mention generate-core-file command.
12519 2002-01-15 Michael Snyder <msnyder@redhat.com>
12521 * target.c: New command, "set trust-readonly-sections on".
12522 (do_xfer_memory): Honor the suggestion to trust readonly sections
12523 by reading them from the object file instead of from the target.
12524 (initialize_targets): Register command "set trust-readonly-sections".
12526 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12528 * parse.c (target_map_name_to_register): Simplify, search regs and
12529 pseudo-regs using a single loop.
12531 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12533 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12535 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12537 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12538 * config/i386/i386v42mp.mh: Add i387-nat.o .
12539 * i386v4-nat.c: Include i387-nat.h.
12540 (supply_fpregset): Use i387_supply_fsave.
12541 (fill_fpregset): Use i387_fill_fsave.
12543 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12545 * arm-tdep.c (arm_call_dummy_words): Define.
12546 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12547 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12548 (CALL_DUMMY_WORDS): Define.
12549 (arm_call_dummy_words): Declare.
12550 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12551 (arm_linux_call_dummy_words): Declare.
12553 2002-01-30 Andreas Schwab <schwab@suse.de>
12555 * m68klinux-nat.c: Fix last change to use regcache_collect
12556 instead of referencing registers[] directly.
12558 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12560 * parse.c (target_map_name_to_register): Delete code wrapped in
12561 #ifdef REGISTER_NAME_ALIAS_HOOK.
12563 2002-01-28 Michael Snyder <msnyder@redhat.com>
12565 * regcache.c (legacy_read_register_gen): Need to be able to
12566 read pseudo-register as well as real register.
12567 (legacy_write_register_gen): Ditto.
12569 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12571 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12572 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12573 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12574 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12575 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12576 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12577 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12578 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12579 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12580 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12581 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12582 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12583 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12584 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12585 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12586 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12587 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12588 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12589 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12590 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12592 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12594 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12595 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12596 (initialize_current_architecture): Update target_byte_order using
12597 information from BFD.
12598 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12599 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12601 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12603 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12604 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12606 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12607 #ifdef INVALID_FLOAT.
12608 * infcmd.c (do_registers_info): Ditto.
12609 * values.c (unpack_double): Ditto. Add comment.
12611 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12612 already commented out.
12614 2002-01-26 Andreas Schwab <schwab@suse.de>
12616 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12617 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12618 registers and add support for PTRACE_GETREGS.
12620 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12622 GDB 5.1.1 released from 5.1 branch.
12623 * NEWS: Add 5.1.1 news.
12624 * README: Sync with 5.1 branch.
12626 2002-01-23 Fred Fish <fnf@redhat.com>
12628 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12629 stabstring on initial malloc. Reallocing will copy it for us,
12632 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12634 * Makefile.in (hpread_h): Delete.
12635 (HFILES_NO_SRCDIR): Remove hpread.h.
12636 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12637 (hpread.o): Update dependencies.
12638 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12640 * hp-psymtab-read.c: Remove file.
12641 * hp-symtab-read.c: Remove file.
12642 * hpread.h: Remove file.
12644 * hpread.c: Merge all contents of hp-psymtab-read.c,
12645 hp-symtab-read.c and hpread.h into this file, as it was prior to
12648 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12649 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12650 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12651 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12653 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12655 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12656 fill_gregset): Call gdbarch_tdep() just once, assign result to
12657 variable and use that, instead of calling the function several
12660 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12662 * configure.host: Accept sparcv9 as alias for sparc64.
12663 * configure.tgt: Likewise.
12665 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12667 * solib-aix5.c (build_so_list_from_mapfile)
12668 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12669 arguments is not reversed.
12670 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12671 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12673 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12675 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12676 modified version of obsolete sh_fetch_pseudo_register.
12677 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12678 (sh4_register_read): New function.
12679 (sh_pseudo_register_write): New function. Renamed and modified
12680 version of obsolete sh_store_pseudo_register.
12681 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12682 (sh4_register_write): New function.
12683 (sh_gdbarch_init): Remove setting of gdbarch function
12684 fetch_pseudo_register and store_pseudo_register. Remove setting of
12685 register_convert_to_raw, register_convert_to_virtual,
12686 register_convertible.
12687 (sh_sh4_register_convertible): Delete. No longer needed. All is
12688 taken care by architecture specific functions
12689 register_read/register_write.
12690 (sh_sh4_register_convert_to_virtual): Make static.
12691 (sh_sh4_register_convert_to_raw): Ditto.
12693 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12695 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12696 (floatformat_is_nan, floatformat_mantissa): Ditto.
12698 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12699 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12700 builtin_type_ieee_double_little,
12701 builtin_type_ieee_double_littlebyte_bigword,
12702 builtin_type_m68881_ext, builtin_type_i960_ext,
12703 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12704 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12705 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12706 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12708 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12710 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12711 parameter. Set frameless flag if it exists and depended of
12712 whether the scanned function is frameless or not.
12713 (xstormy16_skip_prologue): If function is frameless, return
12714 result of xstormy16_scan_prologue().
12715 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12718 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12720 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12721 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12722 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12723 sh_sh4_register_byte, sh_sh4_register_raw_size,
12724 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12725 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12726 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12727 sh_store_pseudo_register, sh_do_pseudo_register): Call
12728 gdbarch_tdep() just once, assign result to variable and use that,
12729 instead of calling the function several times.
12731 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12733 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12734 macros instead of LAST_FPU_CTRL_REGNUM.
12735 (store_register): Likewise.
12737 2002-01-21 Jim Blandy <jimb@redhat.com>
12739 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12740 is up-to-date before running the program, not just when a program
12743 2002-01-21 Fred Fish <fnf@redhat.com>
12745 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12746 when we have found all instructions we are looking for.
12748 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12750 * arm-tdep.c (arm_register_name): New function.
12751 (arm_registers_names): Make static.
12752 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12753 (arm_register_name): Declare.
12754 (REGISTER_NAME): Use it.
12756 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12757 Kevin Buettner <kevinb@redhat.com>
12759 Convert arm targets to new FRAME interface.
12760 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12761 (arm_frame_find_save_regs): Delete.
12762 (arm_frame_init_saved_regs): New.
12763 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12764 Allocate extra_info as required. Convert all uses of fsr.regs
12765 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12767 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12768 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12769 (check_prologue_cache, save_prologue_cache): Likewise.
12770 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12771 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12772 (FRAME_FIND_SAVED_REGS): Delete.
12773 (arm_frame_find_saved_regs): Delete prototype.
12774 (arm_frame_init_saved_regs): New prototype.
12775 (FRAME_INIT_SAVED_REGS): Define.
12777 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12779 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12781 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12783 From Jeff Law <law@redhat.com>:
12784 * infttrace.c: Include <sys/pstat.h>.
12785 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12786 exec file if the ttrace equivalent fails.
12788 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12790 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12791 (closeLogFile): Ditto.
12793 2002-01-20 Michael Chastain <mec@shout.net>
12795 * top.c (print_gdb_version): Bump copyright year to 2002.
12797 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12799 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12800 Zannoni and Eli Zaretskii.
12802 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12804 * buildsym.c: Update copyright years.
12805 * c-typeprint.c: Likewise.
12806 * dwarf2read.c: Likewise.
12807 * f-typeprint.c: Likewise.
12808 * gdbtypes.c: Likewise.
12809 * gdbtypes.h: Likewise.
12810 * hp-symtab-read.c: Likewise.
12811 * hpread.c: Likewise.
12812 * mdebugread.c: Likewise.
12813 * p-typeprint.c: Likewise.
12815 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12817 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12818 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12819 byte-order selectable.
12820 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12821 * arch-utils.c: Ditto.
12822 (set_endian): Ditto.
12823 (set_endian_from_file): Ditto.
12824 * gdbserver/low-sim.c (create_inferior): Ditto.
12825 * gdbarch.sh: Ditto.
12826 * gdbarch.h: Re-generate.
12827 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12828 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12829 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12830 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12831 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12832 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12833 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12834 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12836 * config/mips/tm-wince.h: Remove #undef of macro
12837 TARGET_BYTE_ORDER_SELECTABLE.
12838 * config/sh/tm-wince.h: Ditto.
12840 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12842 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12843 member function fields. Add accessor macro
12844 TYPE_FN_FIELD_ARTIFICIAL.
12845 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12846 * c-typeprint.c (c_type_print_base): Skip artificial member
12849 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12851 * f-typeprint.c: Delete unused function f_type_print_args.
12852 * p-typeprint.c: Delete unused function pascal_type_print_args.
12854 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12856 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12857 comment. Add ``artificial'' to ``union field_location''.
12859 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12861 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12862 * mdebugread.c (parse_symbol): Likewise.
12863 * stabsread.c (define_symbol): Likewise.
12864 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12865 initializing TYPE_FIELD_BITPOS to n (obsolete).
12866 (hpread_doc_function_type): Likewise.
12867 * hpread.c (hpread_function_type): Likewise.
12869 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12871 * configure.in (host_makefile_frag): Only require a host makefile
12872 fragment when a native build.
12873 * configure: Re-generate.
12875 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12877 * doublest.h (floatformat_from_type): Declare.
12878 * doublest.c (floatformat_from_type): New function.
12879 (convert_typed_floating): Use.
12881 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12882 call to function floatformat_from_type.
12884 * gdbarch.sh (IEEE_FLOAT): Delete.
12885 * gdbarch.h, gdbarch.c: Re-generate.
12886 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12887 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12888 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12889 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12890 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12891 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12892 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12893 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12894 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12895 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12896 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12897 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12899 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12900 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12901 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12902 * sh-tdep.c (sh_gdbarch_init): Ditto.
12903 * mips-tdep.c (mips_gdbarch_init): Ditto.
12904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12905 * cris-tdep.c (cris_gdbarch_init): Ditto.
12907 2002-01-20 Jiri Smid <smid@suse.cz>
12909 * configure.host, configure.tgt: Support x86-64.
12910 * NEWS: Note new target x86-64.
12912 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12913 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12914 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12915 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12916 x86-64-linux-nat.o): Fix dependencies.
12918 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12920 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12921 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12922 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12923 * config/sparc/xm-sun4os4.h: Delete file.
12924 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12926 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12928 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12929 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12930 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12931 * config/i386/i386lynx.mh (XM_FILE): Delete.
12932 * config/rs6000/xm-rs6000ly.h: Delete file.
12933 * config/sparc/xm-sparclynx.h: Delete file.
12934 * config/m68k/xm-m68klynx.h: Delete file.
12935 * config/i386/xm-i386lynx.h: Delete file.
12936 * config/xm-lynx.h: Delete file.
12937 * config/djgpp/fnchange.lst: Update.
12939 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12941 * alpha-tdep.c (alpha_register_byte): New function.
12942 (alpha_register_raw_size): Ditto.
12943 (alpha_register_virtual_size): Ditto.
12944 (alpha_skip_prologue_internal): Renamed from
12945 alpha_skip_prologue.
12946 (alpha_skip_prologue): New version that calls
12947 alpha_skip_prologue_internal.
12948 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12949 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12950 second argument from alpha_skip_prologue.
12951 (REGISTER_BYTE): Use alpha_register_byte.
12952 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12953 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12954 (FRAMELESS_FUNCTION_INVOCATION): Use
12955 generic_frameless_function_invocation_not.
12956 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12957 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12959 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12961 * config/mips/xm-news-mips.h: Delete file.
12962 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12964 * config/m88k/xm-m88k.h: Delete file.
12965 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12966 * config/m88k/xm-delta88v4.h: Ditto.
12967 * config/m88k/xm-delta88.h: Ditto.
12969 * config/alpha/xm-fbsd.h: Delete file.
12970 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12972 * config/sparc/xm-sparc.h: Delete file.
12973 * Makefile.in (xm-sun4os4.h): Delete dependency.
12974 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12975 * config/sparc/xm-sun4os4.h: Ditto.
12976 * config/sparc/xm-linux.h: Ditto.
12978 * config/i386/xm-windows.h: Delete file.
12980 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12982 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12983 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12985 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12987 * alpha-tdep.c (alpha_call_dummy_words): New.
12988 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12989 (CALL_DUMMY_P): Define.
12990 (CALL_DUMMY_WORDS): Define.
12991 (SIZEOF_CALL_DUMMY_WORDS): Define.
12993 2002-01-19 Per Bothner <per@bothner.com>
12995 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12996 isn't NULL, which can happen with some gcj-3.x-produced code.
12998 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13000 * alpha-tdep.c (alpha_register_virtual_type): New function.
13001 (alpha_init_frame_pc_first): Ditto.
13002 (alpha_fix_call_dummy): Ditto.
13003 (alpha_store_struct_return): Ditto.
13004 (alpha_extract_struct_value_address): Ditto.
13005 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13006 alpha_register_virtual_type.
13007 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13008 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13009 alpha_extract_struct_value_address.
13010 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13011 (INIT_FRAME_PC): Use init_frame_pc_noop.
13012 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13014 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13016 * i386gnu-nat.c: Include "i386-tdep.h".
13017 (fetch_fpregs): Simplify code dealing with uninitialized floating
13018 point states such that it doesn't require FP7_REGNUM.
13020 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13022 * alpha-tdep.c (frame_extra_info): New.
13023 (alpha_find_saved_regs): Make static. Use
13025 (alpha_frame_init_saved_regs): New function.
13026 (alpha_frame_saved_pc): Use frame->extra_info.
13027 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13028 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13029 (init_extra_frame_info): Rename to...
13030 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13031 (alpha_print_extra_frame_info): New function.
13032 (alpha_frame_locals_address): Ditto.
13033 (alpha_frame_args_address): Ditto.
13034 (alpha_pop_frame): Use frame->extra_info.
13035 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13036 alpha_frame_args_address.
13037 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13038 (alpha_find_saved_regs): Remove prototype.
13039 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13040 (EXTRA_FRAME_INFO): Remove.
13041 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13042 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13044 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13046 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13047 (alpha_cannot_fetch_register): Ditto.
13048 (alpha_cannot_store_register): Ditto.
13049 (alpha_register_convertible): Ditto.
13050 (alpha_use_struct_convention): Ditto.
13051 * config/alpha/tm-alpha.h: Update copyright years.
13052 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13053 (INNER_THAN): Use core_addr_lessthan.
13054 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13055 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13056 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13057 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13058 (FRAME_CHAIN): Remove unnecessary cast.
13060 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13062 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13065 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13067 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13068 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13069 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13070 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13071 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13072 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13073 * x86-64-linux-nat.c: Ditto.
13075 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13077 * alpha-tdep.c (alpha_register_name): New function.
13078 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13079 (REGISTER_NAME): Define.
13081 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13083 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13085 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13087 * alpha-tdep.c: Update copyright years.
13088 (alpha_next_pc): New function.
13089 (alpha_software_single_step): Ditto.
13090 * config/alpha/tm-alpha.h: Add prototype for
13091 alpha_software_single_step.
13093 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13095 * alphabsd-nat.c: Update copyright years.
13096 (fill_gregset): Use regcache_collect.
13097 (fill_fpregset): Likewise.
13098 (fetch_inferior_registers): Only fetch integer registers
13099 if requested to do so.
13100 (store_inferior_registers): Only store integer registers
13101 if requested to do so.
13103 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13105 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13106 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13107 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13108 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13109 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13110 * config/arm/linux.mh (XDEPFILES): Delete.
13111 * config/arm/nbsd.mh (XDEPFILES): Delete.
13112 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13113 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13114 * config/i386/i386m3.mh (XDEPFILES): Delete.
13115 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13116 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13117 * config/i386/fbsd.mh (XDEPFILES): Delete.
13118 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13119 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13120 * config/i386/i386v4.mh (XDEPFILES): Delete.
13121 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13122 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13123 * config/i386/i386aix.mh (XDEPFILES): Delete.
13124 * config/i386/go32.mh (XDEPFILES): Delete.
13125 * config/i386/cygwin.mh (XDEPFILES): Delete.
13126 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13127 * config/i386/i386mach.mh (XDEPFILES): Delete.
13128 * config/i386/i386v32.mh (XDEPFILES): Delete.
13129 * config/i386/linux.mh (XDEPFILES): Delete.
13130 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13131 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13132 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13133 * config/i386/i386sco.mh (XDEPFILES): Delete.
13134 * config/i386/i386v.mh (XDEPFILES): Delete.
13135 * config/i386/nbsd.mh (XDEPFILES): Delete.
13136 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13137 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13138 * config/i386/symmetry.mh (XDEPFILES): Delete.
13139 * config/i386/obsd.mh (XDEPFILES): Delete.
13140 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13141 * config/ia64/linux.mh (XDEPFILES): Delete.
13142 * config/ia64/aix.mh (XDEPFILES): Delete.
13143 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13144 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13145 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13146 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13147 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13148 * config/m68k/linux.mh (XDEPFILES): Delete.
13149 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13150 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13151 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13152 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13153 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13154 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13155 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13156 * config/m88k/delta88.mh (XDEPFILES): Delete.
13157 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13158 * config/m88k/m88k.mh (XDEPFILES): Delete.
13159 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13160 * config/mips/linux.mh (XDEPFILES): Delete.
13161 * config/mips/irix6.mh (XDEPFILES): Delete.
13162 * config/mips/irix5.mh (XDEPFILES): Delete.
13163 * config/mips/irix4.mh (XDEPFILES): Delete.
13164 * config/mips/irix3.mh (XDEPFILES): Delete.
13165 * config/mips/decstation.mh (XDEPFILES): Delete.
13166 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13167 (NATDEPFILES): Move core-aout.o to here.
13168 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13169 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13170 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13171 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13172 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13173 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13174 * config/pa/hpux11.mh (XDEPFILES): Delete.
13175 * config/powerpc/aix.mh (XDEPFILES): Delete.
13176 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13177 * config/powerpc/linux.mh (XDEPFILES): Delete.
13178 * config/romp/rtbsd.mh: Rename XDEPFILES.
13179 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13180 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13181 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13182 * config/s390/s390.mh (XDEPFILES): Delete.
13183 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13184 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13185 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13186 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13187 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13188 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13189 * config/sparc/linux.mh (XDEPFILES): Delete.
13190 * config/vax/vaxult.mh (XDEPFILES): Delete.
13191 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13192 * Makefile.in (DEPFILES): Remove XDEPFILES.
13194 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13196 * utils.c (internal_verror): Fix comments, default is yes not no.
13197 Update queries to match. Default to quit and dump core.
13199 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13201 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13203 * defs.h, event-top.c, gdbcmd.h: Ditto.
13204 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13205 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13206 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13207 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13208 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13209 * mi/mi-main.c:Ditto.
13211 * stack.c, symfile.c: Update copyright.
13213 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13215 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13216 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13217 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13218 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13220 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13222 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13223 * gdbserver/low-lynx.c (myattach): Likewise.
13224 * gdbserver/low-nbsd.c (myattach): Likewise.
13225 * gdbserver/low-sim.c (myattach): Likewise.
13226 * gdbserver/low-sparc.c (myattach): Likewise.
13227 * gdbserver/low-sun3.c (myattach): Likewise.
13229 * gdbserver/low-linux.c (myattach): New function.
13231 * gdbserver/server.c (attach_inferior): New function.
13232 (main): Handle "--attach".
13234 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13236 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13239 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13241 * c-typeprint.c (is_type_conversion_operator): Add additional
13242 check for non-conversion operators.
13244 2002-01-15 Michael Snyder <msnyder@redhat.com>
13246 * linux-proc.c: Add "info proc" command, a la procfs.c.
13247 (read_mapping): New function, abstract and re-use code.
13248 (linux_find_memory_regions): Use new func read_mapping.
13249 (linux_info_proc_cmd): New function, implement "info proc".
13250 (_initialize_linux_proc): Add new command "info proc".
13252 2002-01-15 Michael Snyder <msnyder@redhat.com>
13254 * symfile.c (generic_load): Use bfd_map_over_sections method
13255 instead of manipulating bfd structure members directly.
13256 (add_section_size_callback): New function, bfd sections callback
13257 used by generic_load.
13258 (load_sections_callback): New function, bfd sections callback
13259 used by generic_load.
13261 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13263 [Based on work by Jim Blandy]
13264 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13265 (builtin_type_vec128): Export.
13266 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13268 (builtin_type_vec128): New builtin type for 128 bit vector
13270 (build_gdbtypes): Initialize builtin_type_v16qi and
13271 builtin_type_v8hi. Create the vec128 register builtin type
13273 (build_builtin_type_vec128): New function.
13274 (_initialize_gdbtypes): Register builtin_type_v16qi and
13275 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13276 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13277 AltiVec register to new builtin type.
13279 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13281 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13284 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13286 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13287 CLEAN_UP_REGISTER_VALUE.
13288 * regcache.c (supply_register): Update only call.
13290 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13292 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13293 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13294 a29k-*-vxworks* targets as obsolete.
13296 2002-01-14 Michael Snyder <msnyder@redhat.com>
13298 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13299 until we can resolve portability issues.
13300 * gregset.h: Remove references to fpxregs.
13301 * gcore.c (gcore_command): Initialize note_sec to NULL.
13303 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13305 * signals.c (target_signal_to_name): Rewrite. Only use
13306 signals[].name when in bounds and non-NULL.
13308 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13310 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13311 * signals.c (target_signal_to_name): Verify that SIG is within the
13312 bounds of the signals array.
13314 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13316 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13318 2002-01-13 Keith Seitz <keiths@redhat.com>
13320 * stack.c (print_frame_info_base): Print the frame's pc
13321 only if when print_frame_info_listing_hook is not defined.
13323 2002-01-13 Keith Seitz <keiths@redhat.com>
13325 * varobj.c (varobj_set_value): Make sure that there were no
13326 errors evaluating the object before attempting to set its
13328 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13329 so this offset adjustment is no longer necessary.
13330 (create_child): Don't set the error flag if the child is
13331 a CPLUS_FAKE_CHILD.
13332 (value_of_child): If value_fetch_lazy fails, return NULL
13333 so that callers will be notified that an error occurred.
13334 (c_value_of_variable): Delay check of variable's validity
13335 until later. We actually want all structs and unions to have
13337 Do not return "???" for variables which could not be evaluated.
13338 This error condition must be returned to the caller so that it
13339 can get the error condition from gdb.
13340 (cplus_name_of_child): Adjust index for vptr before figuring
13341 out the name of the child.
13342 (cplus_value_of_child): If a child's (real) parent is not valid,
13343 don't even bother trying to give a value for it. Just return
13344 an error. Change all instances in this function.
13345 (cplus_type_of_child): If our parent is one of the "fake"
13346 parents, we need to get at the type of the real parent, and
13347 derive the child's true type using this information.
13349 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13351 From 2002-01-09 John Marshall <johnm@falch.net>:
13352 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13353 sources.redhat.com, and tweak some related URLs which had
13354 suffered from linkrot.
13356 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13359 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13360 structures passed in registers.
13362 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13364 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13365 white space which prevented compilation. Reported by DSK
13366 <dsk@student.unsw.edu.au>.
13368 2002-01-11 Michael Snyder <msnyder@redhat.com>
13370 * symfile.c (build_section_addr_info_from_section_tab):
13371 Use bfd access method instead of manipulating bfd directly.
13372 (syms_from_objfile): Ditto.
13373 (simple_overlay_update_1): Ditto.
13374 (simple_overlay_update): Ditto.
13375 (generic_load): Ditto.
13376 (overlay_unmapped_address): FIXME comment, bfd access methods.
13377 (sections_overlap): FIXME comment, bfd access methods.
13378 (pc_in_mapped_range): FIXME comment, bfd access methods.
13379 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13380 (section_is_mapped): FIXME comment, bfd access methods.
13381 (section_is_overlay): FIXME comment, bfd access methods.
13383 * symfile.c (generic_load): Whitespace and long line cleanups.
13384 Remove duplicate variable, change several local variables to
13385 more appropriate data types.
13386 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13388 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13390 From Peter Schauer:
13391 * language.c (longest_local_hex_string_custom): Use phex_nz to
13392 convert NUM to a hex string.
13394 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13396 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13398 Update Copyright year.
13400 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13402 * language.c (longest_raw_hex_string): Delete unused function.
13404 2002-01-11 Petr Sorfa <petrs@caldera.com>
13406 * MAINTAINERS (write-after-approval): Add myself.
13407 * dwarf2read.c (read_tag_string_type): Handling of
13409 (read_tag_string_type): FORTRAN fix to prevent propagation of
13411 (set_cu_language): Handling of DW_LANG_Fortran95
13413 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13415 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13416 GETPID(inferior_ptid).
13417 (store_inferior_registers): Likewise.
13419 2002-01-10 Jason Merrill <jason@redhat.com>
13421 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13424 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13426 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13427 and bfd/elf32-sh-nbsd.c.
13429 2002-01-10 Michael Snyder <msnyder@redhat.com>
13431 * NEWS: Mention --pid and corefile/proc-id behavior change.
13433 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13434 * gcore.c: Include cli/cli-decode.h instead of command.h.
13436 * main.c (captured_main): Add new command line option "--pid".
13437 If the second command line argument (following the symbol-file)
13438 begins with a digit, try to attach to it before trying to open
13440 (print_gdb_help): Document the "--pid" argument.
13442 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13444 * completer.c (command_completer): New function.
13446 * completer.h <command_completer>: Add prototype.
13448 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13449 completer for the "help" command.
13451 2002-01-09 Jason Merrill <jason@redhat.com>
13453 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13455 2002-01-09 Michael Snyder <msnyder@redhat.com>
13457 * i386-linux-nat.c (fill_fpxregset): Make global.
13458 (store_fpxregset): Ditto.
13460 * gregset.h (gdb_fpxregset_t): Define.
13461 (supply_fpxregset): Prototype.
13462 (fill_fpxregset): Prototype.
13464 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13466 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13468 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13469 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13470 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13472 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13474 * MAINTAINERS: Update target maintainer rules so that any
13475 Maintainer can approve a tested patch for a maintenance-only
13478 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13480 * MAINTAINERS (write-after-approval): Add myself.
13482 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13485 2002-01-08 Michael Snyder <msnyder@redhat.com>
13487 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13488 real name of the executable, rather than the /proc name.
13490 2002-01-03 Michael Snyder <msnyder@redhat.com>
13492 Implement a "generate-core-file" command in gdb, save target state.
13493 * gcore.c: New file. Implement new command 'generate-core-file'.
13494 Save a corefile image of the current state of the inferior.
13495 * linux-proc.c: Add linux-specific code for saving corefiles.
13496 * target.h (struct target_ops): Add new target vectors for saving
13497 corefiles; to_find_memory_regions and to_make_corefile_notes.
13498 (target_find_memory_regions): New macro.
13499 (target_make_corefile_notes): New macro.
13500 * target.c (update_current_target): Inherit new target methods.
13501 (dummy_find_memory_regions): New place-holder method.
13502 (dummy_make_corefile_notes): New place-holder method.
13503 (init_dummy_target): Initialize new dummy target vectors.
13504 * exec.c (exec_set_find_memory_regions): New function.
13505 Allow the exec_ops vector for memory regions to be taken over.
13506 (exec_make_note_section): New function, target vector method.
13507 * defs.h (exec_set_find_memory_regions): Export prototype.
13508 * procfs.c (proc_find_memory_regions): New function, corefile method.
13509 (procfs_make_note_section): New function, corefile method.
13510 (init_procfs_ops): Set new target vector pointers.
13511 (find_memory_regions_callback): New function.
13512 (procfs_do_thread_registers): New function.
13513 (procfs_corefile_thread_callback): New function.
13514 * sol-thread.c (sol_find_memory_regions): New function.
13515 (sol_make_note_section): New function.
13516 (init_sol_thread_ops): Initialize new target vectors.
13517 * inftarg.c (inftarg_set_find_memory_regions): New function.
13518 Allow to_find_memory_regions vector to be taken over.
13519 (inftarg_set_make_corefile_notes): New function.
13520 Allow to_make_corefile_notes vector to be taken over.
13521 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13522 interface layer if not target_has_execution (may be a corefile).
13523 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13524 * config/sparc/sun4sol2.mh: Ditto.
13525 * config/alpha/alpha-linux.mh: Ditto.
13526 * config/arm/linux.mh: Ditto.
13527 * config/i386/x86-64linux.mh: Ditto.
13528 * config/ia64/linux.mh: Ditto.
13529 * config/m68k/linux.mh: Ditto.
13530 * config/mips/linux.mh: Ditto.
13531 * config/powerpc/linux.mh: Ditto.
13532 * config/sparc/linux.mh: Ditto.
13534 2002-01-07 Michael Snyder <msnyder@redhat.com>
13536 * arm-linux-nat.c: Remove references to regcache.c internal data
13537 (registers[] and register_valid[]).
13539 2002-01-07 Michael Snyder <msnyder@redhat.com>
13541 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13542 so that attaching to a pid will automatically read the process's
13543 symbol file and shlibs.
13544 * Makefile.in: Add rule for linux-proc.o.
13545 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13546 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13547 * config/arm/linux.mh: Ditto.
13548 * config/i386/linux.mh: Ditto.
13549 * config/i386/x86-64linux.mh: Ditto.
13550 * config/ia64/linux.mh: Ditto.
13551 * config/m68k/linux.mh: Ditto.
13552 * config/mips/linux.mh: Ditto.
13553 * config/powerpc/linux.mh: Ditto.
13554 * config/sparc/linux.mh: Ditto.
13556 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13558 * win32-nat.c: Add i386-tdep.h dependency.
13560 2002-01-07 Michael Snyder <msnyder@redhat.com>
13562 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13563 instead of bfd_get_arch_size. Don't bail out just because
13564 there's no exec_bfd.
13566 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13567 * p-valprint.c (pascal_object_print_value): Ditto.
13568 * somread.c (som_symtab_read): Ditto.
13569 * symfile.c (simple_free_overlay_region_table): Ditto.
13570 * valops.c (value_assign): Ditto.
13572 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13573 use tilde_expand and strerror for opening save-tracepoints file.
13575 * thread-db.c (thread_db_new_objfile): Indendation fix.
13577 * infptrace.c (GDB_MAX_ALLOCA): New define.
13578 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13579 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13580 can be overridden with whatever value is appropriate to the host).
13581 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13582 alloca to allocate potentially large buffer.
13583 * rs6000-nat.c (child_xfer_memory): Ditto.
13584 * symm-nat.c (child_xfer_memory): Ditto.
13585 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13587 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13589 From Nick Clifton <nickc@redhat.com>
13590 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13592 2002-01-07 Michael Snyder <msnyder@redhat.com>
13594 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13595 Don't use exec_bfd if it's NULL.
13597 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13599 * valops.c (value_arg_coerce): Fix formatting.
13601 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13603 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13604 * gnu-nat.c: Ditto.
13606 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13608 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13609 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13610 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13611 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13612 z8k-coff have not been multi-arched. Update z8k-coff build
13615 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13617 * MAINTAINERS: Mark a29k target as obsolete.
13618 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13619 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13621 * NEWS: Note that a29k targets are obsolete.
13622 * a29k-tdep.c: Mark as obsolete.
13623 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13624 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13625 a29k-*-vxworks* targets as obsolete.
13626 * remote-adapt.c: Obsolete.
13627 * remote-eb.c: Obsolete.
13628 * remote-mm.c: Obsolete.
13629 * remote-udi.c: Obsolete.
13630 * config/a29k/a29k-udi.mt: Obsolete.
13631 * config/a29k/a29k.mt: Obsolete.
13632 * config/a29k/tm-a29k.h: Obsolete.
13633 * config/a29k/tm-vx29k.h: Obsolete.
13634 * config/a29k/vx29k.mt: Obsolete.
13636 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13638 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13639 with BFD_ENDIAN_BIG.
13641 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13643 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13644 * configure, config.in: Re-generate.
13645 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13646 * defs.h: Do not include <endian.h>.
13648 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13650 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13651 * config.in: Regenerate.
13652 * configure.in: Update copyright years.
13653 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13654 * configure: Regenerate.
13655 * i386bsd-nat.c: Update copyright years.
13656 (fill_gregset): Use regcache_collect.
13657 (fetch_inferior_registers): Only fetch integer registers
13658 if requested to do so. Add support for XMM registers
13659 using PT_GETXMMREGS.
13660 (store_inferior_registers): Only store integer registers
13661 if requested to do so. Add support for XMM registers
13662 using PT_SETXMMREGS.
13663 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13664 (store_inferior_registers): Remove.
13665 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13666 (fetch_elfcore_registers): New function.
13667 (i386nbsd_elfcore_fns): New.
13668 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13669 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13671 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13672 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13673 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13674 * config/i386/tm-nbsd.h: Update copyright years.
13675 (HAVE_SSE_REGS): Define.
13676 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13677 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13678 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13679 (SIGCONTEXT_PC_OFFSET): Remove.
13680 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13682 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13684 * configure.tgt: Remove powerpc-*-macos* target.
13685 * config/m68k/xm-mpw.h: Delete file.
13686 * config/xm-mpw.h: Delete file.
13687 * ser-mac.c: Delete file.
13688 * mpw-make.sed: Delete file.
13689 * mpw-config.in: Delete file.
13690 * mac-xdep.c: Delete file.
13691 * mac-gdb.r: Delete file.
13692 * mac-defs.h: Delete file.
13693 * mac-nat.c: Delete file.
13694 * config/powerpc/macos.mh: Delete file.
13695 * config/powerpc/macos.mt: Delete file.
13696 * config/powerpc/nm-macos.h: Delete file.
13697 * config/powerpc/tm-macos.h: Delete file.
13698 * source.c (openp, open_source_file): Remove obsolete code.
13699 * top.c (gdb_readline): Ditto.
13700 * utils.c (query): Ditto.
13701 * event-top.c (display_gdb_prompt): Ditto.
13702 * Makefile.in (ser-mac.o): Delete obsolete target.
13705 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13707 * defs.h (BIG_ENDIAN): Delete macro definition.
13708 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13709 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13710 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13711 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13712 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13713 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13714 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13715 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13716 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13717 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13718 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13719 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13720 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13721 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13722 * gdbarch.c: Re-generate.
13724 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13726 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13729 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13731 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13733 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13735 * value.h (value_ptr): Delete typedef.
13737 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13739 * i386nbsd-nat.c: Update copyright years.
13740 Include i386-tdep.h.
13742 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13744 * stabsread.c: Update copyright years.
13746 From Debashis Mahata <debashis.mahata@wipro.com>:
13747 (read_struct_fields): Deal with Sun C compiler erroneous stab
13748 output for structs and unions.
13751 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13753 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13756 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13758 * cp-abi.c: Fix whitespace.
13759 (baseclass_offset): New wrapper function.
13760 * cp-abi.h (baseclass_offset): Add prototype.
13761 (struct cp_abi_ops): Add baseclass_offset pointer.
13763 * valops.c (vb_match): Move to...
13764 * gnu-v2-abi.c (vb_match): here.
13765 * valops.c (baseclass_offset): Move to...
13766 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13768 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13770 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13771 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13772 * hpacc-abi.c (init_hpacc_ops): Likewise.
13774 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13776 * valops.c (find_overload_match): Accept obj as a
13777 reference parameter. Update it before returning.
13778 * value.h (find_overload_match): Update prototype.
13779 * eval.c (evaluate_subexp_standard): Pass object to
13780 find_overload_match by reference.
13782 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13784 * valarith.c: Replace value_ptr with struct value pointer. Remove
13785 register attribute from value declarations.
13788 * scm-lang.c (scm_lookup_name): Ditto.
13790 2002-01-03 Michael Snyder <msnyder@redhat.com>
13792 Abstract the functionality of iterating over mapped memory
13793 regions into a general purpose iterator function.
13794 * procfs.c (iterate_over_mappings): New function, general purpose
13795 iterator for memory sections.
13796 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13797 (solib_mappings_callback): New function, callback for above.
13798 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13799 (info_mappings_callback): New function, callback for above.
13801 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13803 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13805 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13806 * i386-tdep.c: Include "elf-bfd.h".
13807 (process_note_abi_tag_sections): New function.
13808 (i386_gdbarch_init): Add code to recognize various OS/ABI
13811 * maint.c (_initialize_maint_cmds): Add missing \ in
13814 For older changes see ChangeLog-2001
13820 version-control: never