1 2002-12-03 Andrew Cagney <cagney@redhat.com>
3 * PROBLEMS: Mention PR gdb/725.
5 2002-12-03 Andreas Schwab <schwab@suse.de>
7 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
9 2002-12-02 Adam Fedor <fedor@gnu.org>
10 Klee Dienes <kdienes@apple.com>
12 * objc-lang.c (objc_printstr): Add width arg to match
14 (compare_selectors): Add 'const' to arg types.
15 (compare_classes): Likewise.
16 (find_imps): Cast msym pointer to avoid compiler warning.
17 (print_object_command): Validate the address before
18 passing it to the print routine.
19 (find_objc_msgcall_submethod): Change function argument to
21 * objc-lang.h: Add 'extern' to all function declarations.
22 (value_nsstring): Add declaration.
24 2002-12-02 J. Brobecker <brobecker@gnat.com>
26 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
27 Fixes a build failure on HP/UX.
29 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
31 (hpread_has_name): Advance declaration to avoid a compilation warning.
32 (pst_syms_count): Add missing variable type. By change, the compiler
33 was defaulting to int, which seems a good choice. Fixes a compilation
35 (pst_syms_size): Likewise.
37 2002-12-02 J. Brobecker <brobecker@gnat.com>
39 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
40 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
41 later to set the proper gdbarch methods depending on the osabi.
42 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
44 2002-12-02 J. Brobecker <brobecker@gnat.com>
46 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
47 * osabi.c (gdb_osabi_name): Add strings images for the two new
49 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
51 2002-12-02 Andrew Cagney <ac131313@redhat.com>
53 * MAINTAINERS (Java): Global maintainers are responible for Java.
54 (Past Maintainers): Mention both Anthony Green and Per Bothner as
55 part Java maintainers.
57 2002-12-02 J. Brobecker <brobecker@gnat.com>
59 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
60 Fixes a compilation failure on AiX.
62 2002-12-02 J. Brobecker <brobecker@gnat.com>
64 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
65 why aix-thread.o is not listed.
67 2002-12-01 Andrew Cagney <ac131313@redhat.com>
69 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
70 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
71 * gdbarch.h, gdbarch.c: Re-generate.
72 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
73 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
74 * config/pa/tm-hppa.h, frame.h: Update.
75 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
76 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
77 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
78 * cris-tdep.c, alpha-tdep.c: Update.
79 * frame.c (set_unwind_by_pc, create_new_frame): Use either
80 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
81 (get_prev_frame): Ditto.
83 2002-11-30 Andrew Cagney <cagney@redhat.com>
85 * exec.c (xfer_memory): Replace boolean with int.
86 * p-exp.y: Use 0 instead of false.
87 * corelow.c (gdb_check_format): Change return type to int from
89 * utils.c: Don't include <curses.h> or <term.h> first.
91 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
93 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
94 (m68hc11_register_byte): Remove.
95 (m68hc11_gdbarch_init): Don't set the above.
97 2002-11-29 Andrew Cagney <cagney@redhat.com>
99 * remote-mips.c (mips_initialize): Force a selected frame rebuild
100 by calling get_selected_frame.
101 * ocd.c (ocd_start_remote): Use get_selected frame instead of
102 set_current_frame, create_new_frame, select_frame and
104 * remote-e7000.c (e7000_start_remote): Ditto.
105 * remote-mips.c (common_open): Ditto
106 * remote-rdp.c (remote_rdp_open): Ditto.
108 2002-11-29 Andreas Schwab <schwab@suse.de>
110 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
111 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
112 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
113 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
114 read_memory_unsigned_integer instead of read_memory_integer when
115 dealing with addresses and instruction opcodes.
116 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
117 (m68k_linux_frame_saved_pc): Likewise.
119 2002-11-29 Andrew Cagney <ac131313@redhat.com>
121 * stack.c (selected_frame, select_frame): Move from here ...
122 * frame.c (selected_frame, select_frame): ... to here. Include
124 * Makefile.in (frame.o): Update dependencies.
125 * frame.c (get_selected_frame): New function.
126 * frame.h (get_selected_frame): Declare.
127 (deprecated_selected_frame): Rename selected_frame.
128 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
129 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
130 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
131 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
132 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
133 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
134 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
135 * z8k-tdep.c, cli/cli-cmds.c: Update.
137 2002-11-29 Andrew Cagney <ac131313@redhat.com>
139 * frame.h (get_selected_block): Add comments.
141 2002-11-28 Andrew Cagney <ac131313@redhat.com>
143 * frame.c (pc_notcurrent): New function.
144 (find_frame_sal): New function.
145 * frame.h (find_frame_sal): Declare.
146 (struct symtab_and_line): Add opaque declaration.
147 * stack.c (print_frame_info_base): Use find_frame_sal instead of
150 * ada-lang.c (find_printable_frame): Ditto.
152 2002-11-28 J. Brobecker <brobecker@gnat.com>
154 * configure.in: Check that the pthdebug library is recent enough
155 before enabling thread support on native AiX.
156 * configure: Regenerate.
158 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
159 from the list of object files as it is now appended by configure
160 if thread support is enabled.
161 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
162 if thread support is enabled.
164 2002-11-28 Andrew Cagney <cagney@redhat.com>
166 * stack.c (get_selected_block): In-line get_current_block.
167 * frame.h (get_current_block): Delete declaration.
168 * blockframe.c (get_current_block): Delete function.
170 2002-11-28 Andrew Cagney <ac131313@redhat.com>
172 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
173 USE_GENERIC_DUMMY_FRAMES.
174 * gdbarch.h, gdbarch.c: Regenerate.
175 * valops.c, frame.c: Update.
176 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
177 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
178 * config/pa/tm-hppa.h, blockframe.c: Update.
179 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
180 * m68k-tdep.c, alpha-tdep.c: Ditto.
182 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
183 * mips-tdep.c: Ditto.
185 2002-11-27 Andrew Cagney <ac131313@redhat.com>
187 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
188 (USE_GENERIC_DUMMY_FRAMES): Default to true.
189 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
190 * gdbarch.c, gdbarch.h: Re-generate.
191 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
192 (CALL_DUMMY_LOCATION): Delete macro definition.
193 (PC_IN_CALL_DUMMY): Delete macro definitions.
195 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
196 default is already generic_pc_in_call_dummy.
197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
198 * v850-tdep.c (v850_gdbarch_init): Ditto.
199 * sh-tdep.c (sh_gdbarch_init): Ditto.
200 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
201 * mips-tdep.c (mips_gdbarch_init): Ditto.
202 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
203 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
204 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
205 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
206 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
207 * avr-tdep.c (avr_gdbarch_init): Ditto.
209 * arm-tdep.c (arm_gdbarch_init): Do not set
210 use_generic_dummy_frames, default is already 1.
211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
212 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
213 * v850-tdep.c (v850_gdbarch_init): Ditto.
214 * sh-tdep.c (sh_gdbarch_init): Ditto.
215 * s390-tdep.c (s390_gdbarch_init): Ditto.
216 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
217 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
218 * mips-tdep.c (mips_gdbarch_init): Ditto.
219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
221 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
222 * i386-tdep.c (i386_gdbarch_init): Ditto.
223 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
224 * frv-tdep.c (frv_gdbarch_init): Ditto.
225 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
226 * cris-tdep.c (cris_gdbarch_init): Ditto.
227 * avr-tdep.c (avr_gdbarch_init): Ditto.
229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
230 call_dummy_location, default is already AT_ENTRY_POINT.
231 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
232 * v850-tdep.c (v850_gdbarch_init): Ditto.
233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
234 * sh-tdep.c (sh_gdbarch_init): Ditto.
235 * s390-tdep.c (s390_gdbarch_init): Ditto.
236 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
238 * mips-tdep.c (mips_gdbarch_init): Ditto.
239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
241 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
242 * i386-tdep.c (i386_gdbarch_init): Ditto.
243 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
244 * frv-tdep.c (frv_gdbarch_init): Ditto.
245 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
246 * cris-tdep.c (cris_gdbarch_init): Ditto.
247 * avr-tdep.c (avr_gdbarch_init): Ditto.
248 * arm-tdep.c (arm_gdbarch_init): Ditto.
249 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
251 2002-11-28 Andrew Cagney <cagney@redhat.com>
253 * frame.h: Update comments on set_current_frame, create_new_frame,
254 flush_cached_frames, reinit_frame_cache, select_frame and
257 2002-11-27 Andrew Cagney <cagney@redhat.com>
259 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
260 deprecated pc_in_call_dummy function.
261 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
262 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
263 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
264 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
265 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
267 2002-11-26 Martin M. Hunt <hunt@redhat.com>
269 * Makefile.in: Remove Tix dependencies.
270 * acinclude.m4: Ditto.
272 * configure.in: Ditto.
273 * configure: Regenerated.
275 2002-11-26 Andrew Cagney <ac131313@redhat.com>
277 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
278 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
279 * gdbarch.c: Re-generate.
281 2002-11-26 Andrew Cagney <ac131313@redhat.com>
283 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
284 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
285 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
286 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
287 pc_in_call_dummy_at_entry_point.
288 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
289 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
290 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
291 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
292 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
293 pc_in_call_dummy_on_stack.
294 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
295 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
296 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
297 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
298 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
300 2002-11-26 Andrew Cagney <ac131313@redhat.com>
302 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
303 pc_in_call_dummy_before_text_end
304 (deprecated_pc_in_call_dummy_after_text_end): Rename
305 pc_in_call_dummy_after_text_end.
306 (deprecated_pc_in_call_dummy_on_stack): Rename
307 pc_in_call_dummy_on_stack.
308 (deprecated_pc_in_call_dummy_at_entry_point): Rename
309 pc_in_call_dummy_at_entry_point.
310 * m68k-tdep.c (m68k_gdbarch_init): Update.
311 * s390-tdep.c (s390_gdbarch_init): Update.
312 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
313 * vax-tdep.c (vax_gdbarch_init): Update.
314 * sparc-tdep.c (sparc_gdbarch_init): Update.
315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
317 * i386-tdep.c (i386_gdbarch_init): Update.
318 * frv-tdep.c (frv_gdbarch_init): Update.
319 * cris-tdep.c (cris_gdbarch_init): Update.
320 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
321 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
322 (deprecated_pc_in_call_dummy_after_text_end)
323 (deprecated_pc_in_call_dummy_on_stack)
324 (deprecated_pc_in_call_dummy_at_entry_point): Update.
325 * alpha-tdep.c (alpha_gdbarch_init): Update.
327 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
329 * acconfig.h (HAVE_PREAD64): Add.
330 * configure.in: Check for pread64.
331 * config.in: Regenerated.
332 * configure: Regenerated.
333 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
334 * linux-proc.c (linux_proc_xfer_memory): New function.
335 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
337 2002-11-25 David Carlton <carlton@math.stanford.edu>
339 * dwarf2read.c (scan_partial_symbols): Descend into namespace
342 2002-11-25 Andrew Cagney <ac131313@redhat.com>
344 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
345 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
347 2002-11-25 Jim Blandy <jimb@redhat.com>
349 * symfile.c (init_objfile_sect_indices): New function.
350 (default_symfile_offsets): Move the section-index-initializing
351 stuff into init_objfile_sect_indices, and call that.
353 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
354 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
356 * symfile.c (syms_from_objfile): Adjust indentation.
358 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
359 || info_verbose isn't true.
361 2002-11-24 Andrew Cagney <ac131313@redhat.com>
363 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
364 default to get_frame_base.
365 * gdbarch.h, gdbarch.c: Regenerate.
366 * arch-utils.c (default_frame_address): Delete function.
367 * arch-utils.h (default_frame_address): Delete declaration
369 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
371 * varobj.c (find_frame_addr_in_frame_chain):
372 Use get_frame_base instead of FRAME_FP,
375 2002-11-19 Andrew Cagney <ac131313@redhat.com>
377 * frame.h (FRAME_FP): Delete macro.
378 (get_frame_base): New function declaration.
379 * frame.c (get_frame_base): New function.
380 (get_frame_id): Use ->frame.
381 (frame_find_by_id): Rewrite to use get_frame_id.
382 * blockframe.c: Use get_frame_base instead of FRAME_FP.
383 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
384 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
385 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
386 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
387 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
388 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
390 2002-11-24 Andrew Cagney <ac131313@redhat.com>
392 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
394 2002-11-24 Andrew Cagney <ac131313@redhat.com>
396 * frame.c (set_unwind_by_pc): Revert change below, use
398 (get_prev_frame): Ditto.
400 2002-11-24 Andrew Cagney <ac131313@redhat.com>
402 * dummy-frame.c (pc_in_dummy_frame): New function.
403 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
404 (find_dummy_frame): Update comment.
405 (generic_pop_current_frame): Use get_frame_type.
406 * dummy-frame.h (pc_in_dummy_frame): Declare.
407 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
408 (create_new_frame): Use pc_in_dummy_frame.
409 (get_prev_frame): Use pc_in_dummy_frame.
410 (frame_saved_regs_register_unwind): Use get_prev_frame.
411 (deprecated_generic_get_saved_register): Use get_prev_frame.
413 2002-11-23 Andrew Cagney <ac131313@redhat.com>
415 * blockframe.c (find_frame_addr_in_frame_chain): Move function
417 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
418 (varobj_create): Note that frame ID should be used.
419 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
421 2002-11-23 Andrew Cagney <ac131313@redhat.com>
423 * breakpoint.c: Include "gdb_assert.h".
424 (deprecated_frame_in_dummy): Assert that generic dummy frames are
426 * Makefile.in (breakpoint.o): Update dependencies.
427 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
428 deprecated_frame_in_dummy.
429 * stack.c (print_frame_info_base): Ditto.
431 (print_frame_info_base): Ditto. Delete dead code.
433 2002-11-23 Andreas Schwab <schwab@suse.de>
435 * Makefile.in (m68k_tdep_h): Define.
436 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
437 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
438 * m68k-tdep.c: Move register number enum ...
439 * m68k-tdep.h: ... to this new file and rename the constants from
440 E_* to M68K_*. All uses changed.
441 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
442 * abug-rom.c: Include "m68k-tdep.h". Use
443 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
444 * cpu32bug-rom.c: Likewise.
445 * dbug-rom.c: Likewise.
446 * m68k-tdep.c: Likewise.
447 * m68klinux-nat.c: Likewise.
448 * remote-est.c: Likewise.
449 * rom68k-rom.c: Likewise.
450 * config/m68k/tm-linux.h: Likewise.
452 2002-11-23 Andrew Cagney <ac131313@redhat.com>
454 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
455 dummy frame initialization code.
456 * mips-tdep.c (mips_gdbarch_init): Ditto.
458 2002-11-22 Christopher Faylor <cgf@redhat.com>
460 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
463 2002-11-22 Andrew Cagney <ac131313@redhat.com>
465 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
466 to default_frame_address.
467 * gdbarch.h, gdbarch.c: Re-generate.
469 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
470 or frame_locals_address to default_frame_address.
471 * m68k-tdep.c (m68k_gdbarch_init): Update.
472 * i386-tdep.c (i386_gdbarch_init): Update.
473 * frv-tdep.c (frv_gdbarch_init): Update.
474 * sh-tdep.c (sh_gdbarch_init): Update.
475 * v850-tdep.c (v850_gdbarch_init): Update.
476 * sparc-tdep.c (sparc_gdbarch_init): Update.
477 * mips-tdep.c (mips_gdbarch_init): Update.
478 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
479 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
482 * cris-tdep.c (cris_frame_args_address): Delete function.
483 (cris_frame_locals_address): Delete function.
484 (cris_gdbarch_init): Do not set frame_args_address or
485 frame_locals_address.
487 2002-11-22 Michael Snyder <msnyder@redhat.com>
489 * thread-db.c (thread_db_load): Tell the user what's going on
490 if dlopen fails on libthread_db.
492 2002-11-23 Andreas Schwab <schwab@suse.de>
494 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
495 invariant return values.
497 2002-11-22 Andreas Schwab <schwab@suse.de>
499 * valops.c (value_slice): Move declaration of `offset' to avoid
502 2002-11-22 Christopher Faylor <cgf@redhat.com>
504 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
505 (struct so_stuff): Add end_addr field.
506 (register_loaded_dll): Calculate and store end address of loaded dll.
507 (solib_address): New function.
508 (child_solib_loaded_library_pathname): Pass carefully constructed
509 section info to safe_symbol_file_add rather than ignoring it.
510 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
512 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
513 (child_create_inferior): Fix a compiler warning.
514 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
515 (solib_address): Declare new function.
517 2002-11-22 Andreas Schwab <schwab@suse.de>
519 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
522 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
524 * maint.c (_initialize_maint_cmds): Fix typo. From
525 Francesco Potorti` <pot@gnu.org>.
527 2002-11-21 Andrew Cagney <cagney@redhat.com>
529 * mips-tdep.c (mips_dump_tdep): Delete references to
530 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
531 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
532 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
533 * printcmd.c (build_address_symbolic): Delete calls to
534 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
535 (address_info): Ditto.
538 2002-11-19 Klee Dienes <kdienes@apple.com>
539 Adam Fedor <fedor@gnu.org>
541 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
542 the ability to explicitly specify the quote characters and word
543 break characters; if NULL is specified for either, use the old
544 behavior of using the characters used by the completer.
545 (skip_chars): New function. Convenience wrapper around
546 skip_quoted_chars to provide the original skip_chars behavior.
547 * completer.h (skip_quoted_chars): Add prototype.
549 2002-11-19 Andrew Cagney <ac131313@redhat.com>
551 Problems reported by Paul Eggert.
552 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
554 2002-11-19 Andreas Schwab <schwab@suse.de>
556 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
557 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
558 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
559 (m68k_linux_frame_saved_pc): Move to ...
560 * m68klinux-tdep.c: ... here. New file.
561 * Makefile.in (m68klinux-tdep.o): Add dependencies.
562 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
564 2002-11-19 Adam Fedor <fedor@gnu.org>
566 * objc-exp.y: Revert to old skip_quoted usage.
568 2002-11-19 Adam Fedor <fedor@gnu.org>
570 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
571 (objc_lang_h): Define.
572 (YYFILES): Add objc-exp.tab.c.
573 (local-maintainer-clean): Remove objc-exp.tab.c.
574 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
576 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
578 * p-exp.y (typecast rule): Add automatic dereference of
579 pascal classes if needed.
580 (THIS): Set current_type.
581 Automatically dereference pascal classes.
582 (typebase rule): Add ^typebase recognition.
584 2002-11-18 Adam Fedor <fedor@gnu.org>
586 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
587 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
588 (op_name): Handle OP_OBJC_SELF.
589 * Makefile.in (expprint.o): Add additional depends.
591 2002-11-18 Adam Fedor <fedor@gnu.org>
593 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
594 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
595 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
596 * objc-exp.y: Likewise.
598 2002-11-18 Adam Fedor <fedor@gnu.org>
600 * gdb/parser-defs.h: (struct objc_class_str): New structure
601 for parsing ObjC classes.
603 2002-11-18 Andrew Cagney <ac131313@redhat.com>
605 * stack.c (frame_relative_level): Copy function from here ...
606 * frame.c (frame_relative_level): ...to here.
608 2002-11-18 Andrew Cagney <ac131313@redhat.com>
610 * frame.h (enum frame_type): Define.
611 (get_frame_type): Declare.
612 (struct frame_info): Add field `type'. Delete field
613 signal_handler_caller.
614 (deprecated_set_frame_signal_handler_caller): Declare.
615 * frame.c (get_frame_type): New function.
616 (deprecated_set_frame_type): New function.
617 (create_new_frame): Set the frame's type.
618 (get_prev_frame): Similar.
619 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
620 * s390-tdep.c: Ditto.
621 * m68klinux-nat.c: Ditto.
622 * ns32k-tdep.c: Ditto.
623 * x86-64-linux-tdep.c: Ditto.
625 * rs6000-tdep.c: Ditto.
626 * ppc-linux-tdep.c: Ditto.
627 * i386-interix-tdep.c: Ditto.
628 * mips-tdep.c: Ditto.
629 * m68k-tdep.c: Ditto.
630 * hppa-tdep.c: Ditto.
631 * ia64-tdep.c: Ditto.
632 * cris-tdep.c: Ditto.
634 * alpha-tdep.c: Ditto.
635 * i386-tdep.c: Ditto.
638 * blockframe.c: Update.
639 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
640 deprecated_set_frame_type instead of signal_handler_caller.
641 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
642 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
643 * breakpoint.h: Delete FIXME suggesting get_frame_type.
645 2002-11-18 Klee Dienes <kdienes@apple.com>
647 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
649 2002-11-18 Klee Dienes <kdienes@apple.com>
651 * buildsym.c (pop_context): Add comment.
653 2002-11-18 Klee Dienes <kdienes@apple.com>
655 * buildsym.h (pop_context): Convert to function, defined in
657 * buildsym.c: Include gdb_assert.h.
658 (pop_context): Implement as C function. Add check for stack
660 * dbxread.c (process_one_symbol): Complain and stop processing
661 that symbol if we are already at the top of the context stack for
662 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
663 when processing N_RBRAC.
665 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
667 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
669 (struct target_waitstatus): Add opaque definition.
670 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
671 * exec.c (init_exec_ops): Likewise.
672 * fork-child.c (clone_and_follow_inferior): Remove.
673 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
674 * inferior.h (clone_and_follow_inferior): Remove prototype.
675 * infrun.c (follow_fork_mode_both): Remove.
676 (follow_fork_mode_kind_names): Remove commented out "both".
677 (follow_inferior_fork): Remove follow_fork_mode_both support.
678 * inftarg.c (child_clone_and_follow_inferior): Remove.
679 (child_post_follow_inferior_by_clone): Remove.
680 (init_child_ops): Don't set to_clone_and_follow_inferior
681 or to_post_follow_inferior_by_clone.
682 * target.c (default_clone_and_follow_inferior): Remove.
683 (cleanup_target): Don't set to_clone_and_follow_inferior
684 or to_post_follow_inferior_by_clone.
685 (find_default_clone_and_follow_inferior): Remove.
686 (init_dummy_target): Don't set to_clone_and_follow_inferior.
687 (debug_to_clone_and_follow_inferior): Remove.
688 (debug_to_post_follow_inferior_by_clone): Remove.
689 (setup_target_debug): Don't set to_clone_and_follow_inferior
690 or to_post_follow_inferior_by_clone.
691 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
692 and to_post_follow_inferior_by_clone.
693 (child_clone_and_follow_inferior): Remove prototype.
694 (child_post_follow_inferior_by_clone): Remove prototype.
695 (target_clone_and_follow_inferior): Remove macro.
696 (target_post_follow_inferior_by_clone): Remove macro.
697 (find_default_clone_and_follow_inferior): Remove prototype.
699 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
701 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
702 inferior_has_vforked, and inferior_has_execd instead of
703 target_has_forked, target_has_vforked, and target_has_execd.
704 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
705 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
706 (CHILD_WAIT): Define.
707 (child_wait): Add prototype.
708 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
710 (hpux_has_vforked): Likewise, from child_has_vforked.
711 (hpux_has_execd): Likewise, from child_has_execd.
712 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
713 (not_same_real_pid, child_wait): New, copied from inftarg.c.
714 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
715 and hpux_has_syscall_event instead of the target hooks.
716 * infrun.c (inferior_has_forked, inferior_has_vforked)
717 (inferior_has_execd): New functions.
718 * inftarg.c (not_same_real_pid): Remove.
719 (child_wait): Remove references to not_same_real_pid,
720 target_has_forked, target_has_vforked, target_has_execd,
721 and target_has_syscall_event.
722 (child_has_forked, child_has_vforked, child_has_execd)
723 (child_has_syscall_event): Remove.
724 (init_child_ops): Remove references to child_has_forked,
725 child_has_vforked, child_has_execd, and child_has_syscall_event.
726 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
727 (hpux_has_vforked): Likewise, from child_has_vforked.
728 (hpux_has_execd): Likewise, from child_has_execd.
729 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
730 * target.c (cleanup_target): Remove references to
731 to_has_forked, to_has_vforked, to_has_execd, and
732 to_has_syscall_event.
733 (update_current_target): Likewise.
734 (setup_target_debug): Likewise.
735 (debug_to_has_forked): Remove.
736 (debug_to_has_vforked): Remove.
737 (debug_to_has_execd): Remove.
738 (debug_to_has_syscall_event): Remove.
739 * target.h (struct target_ops): Remove to_has_forked.
740 to_has_vforked, to_has_execd, and to_has_syscall_event.
741 (child_has_forked, child_has_vforked, child_has_execd)
742 (child_has_syscall_event): Remove prototypes.
743 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
745 (target_has_forked, target_has_vforked, target_has_execd)
746 (target_has_syscall_event): Remove macros.
748 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
750 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
751 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
752 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
753 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
754 * target.c (cleanup_target): Remove reference to
755 to_can_follow_vfork_prior_to_exec.
756 (update_current_target): Likewise.
757 (debug_to_can_follow_vfork_prior_to_exec): Remove.
758 (setup_target_debug): Remove reference to
759 to_can_follow_vfork_prior_to_exec.
760 * target.h (struct target_ops): Remove
761 to_can_follow_vfork_prior_to_exec.
762 (child_can_follow_vfork_prior_to_exec): Remove prototype.
763 (target_can_follow_vfork_prior_to_exec): Remove definition.
764 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
766 * infrun.c (follow_vfork_when_exec): Remove.
767 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
768 (follow_exec): Likewise.
769 (handle_inferior_event): Likewise.
770 (keep_going): Likewise.
772 2002-11-15 Andrew Cagney <cagney@redhat.com>
774 * frame.c (generic_unwind_get_saved_register): Make static.
775 * frame.h (generic_unwind_get_saved_register): Delete declaration.
776 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
777 defaults to generic_unwind_get_saved_register.
778 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
779 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
780 * frv-tdep.c (frv_gdbarch_init): Ditto.
781 * i386-tdep.c (i386_gdbarch_init): Ditto.
782 * s390-tdep.c (s390_gdbarch_init): Ditto.
783 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
784 * v850-tdep.c (v850_gdbarch_init): Ditto.
785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
786 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
787 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
789 2002-11-15 Andrew Cagney <cagney@redhat.com>
791 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
794 2002-11-15 Andrew Cagney <cagney@redhat.com>
796 * frame.h (sigtramp_saved_pc): Delete declaration.
797 * blockframe.c (sigtramp_saved_pc): Delete function.
798 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
799 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
800 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
801 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
803 2002-11-15 Andrew Cagney <ac131313@redhat.com>
805 * frame.c (frame_pc_unwind): New function.
806 (frame_saved_regs_pc_unwind): New function.
807 (frame_register_unwind): Pass unwind_cache instead of
808 register_unwind_cache.
809 (set_unwind_by_pc): Add unwind_pc parameter, set.
810 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
811 (get_prev_frame): Ditto.
812 * frame.h (frame_pc_unwind_ftype): Declare.
813 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
814 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
815 (frame_pc_unwind): Declare.
816 * dummy-frame.c (dummy_frame_pc_unwind): New function.
817 (struct dummy_frame): Add comment mentioning that values are for
819 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
820 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
821 (generic_file_frame_chain_valid): Ditto.
822 * stack.c (frame_info): Ditto.
824 2002-11-15 David Carlton <carlton@math.stanford.edu>
826 * linespec.c (locate_first_half): New function.
827 (decode_line_1): Move code into locate_first_half.
829 2002-11-15 Andrew Cagney <ac131313@redhat.com>
831 * complaints.h: Add comment explaining how to eliminate a
832 deprecated_complain call.
833 * complaints.h: Fix spelling errors.
835 2002-11-15 David Carlton <carlton@math.stanford.edu>
837 * printcmd.c: Remove #include "disasm.h".
839 2002-11-14 Andrew Cagney <ac131313@redhat.com>
841 * frame.h: Move the most relevant interface functions to the start
844 2002-11-14 Andrew Cagney <ac131313@redhat.com>
846 * regcache.h (deprecated_registers): Rename registers.
847 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
848 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
849 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
850 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
851 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
852 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
853 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
854 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
855 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
856 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
857 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
860 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
862 * utils.c (gdb_realpath): Add comment mentioning realpath with a
865 2002-11-13 Andrew Cagney <cagney@redhat.com>
867 * regcache.h (deprecated_read_register_bytes): Rename
869 (deprecated_write_register_bytes): Rename write_register_bytes.
870 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
871 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
872 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
873 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
874 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
875 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
876 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
877 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
878 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
879 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
880 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
881 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
882 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
883 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
885 2002-11-13 Jim Blandy <jimb@redhat.com>
887 * findvar.c (read_var_value): Doc fix.
889 2002-11-13 Andrew Cagney <cagney@redhat.com>
891 * regcache.c (struct regcache): Replace passthough_p with
893 (regcache_xmalloc): Initialize readonly_p.
894 (build_regcache): Initialize readonly_p.
895 (regcache_save): New function.
896 (regcache_restore): New function.
897 (regcache_cpy): Re-implement using regcache_save and
899 (regcache_raw_read): Update.
900 (regcache_cooked_read): When a read-only cache, checked for cached
901 pseudo register values.
902 (regcache_raw_write): Assert that the cache is not read-only.
903 Remove code handling a non-passthrough cache.
904 * regcache.h (regcache_save): Declare.
905 (regcache_restore): Declare.
907 2002-11-13 Andrew Cagney <cagney@redhat.com>
909 * regcache.c (struct regcache_descr): Add fields
910 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
911 (init_legacy_regcache_descr): Compute the size of a cooked
912 register cache and then assign that to sizeof_raw_registers. Set
913 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
914 (init_legacy_regcache_descr): Ditto.
916 2002-11-13 Andrew Cagney <cagney@redhat.com>
918 * regcache.c (register_buffer): Move to near start of file, update
920 (regcache_raw_read): Use.
921 (regcache_raw_write): Use.
922 (struct regcache): Rename raw_registers to registers and
923 raw_register_valid_p to register_valid_p.
924 (regcache_xmalloc): Update.
925 (regcache_xfree): Update.
926 (register_buffer): Update.
927 (regcache_cpy): Update.
928 (regcache_cpy_no_passthrough): Update.
929 (regcache_valid_p): Update.
930 (deprecated_grub_regcache_for_registers): Update.
931 (deprecated_grub_regcache_for_register_valid): Update.
932 (set_register_cached): Update.
933 (regcache_raw_write): Update.
935 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
937 * p-exp.y (name_not_typename): Use copy_name to
938 set current_type variable for fields of THIS.
940 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
942 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
943 * monitor.c (init_base_monitor_ops): Likewise.
944 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
945 * remote-array.c (init_array_ops): Likewise.
946 * remote-e7000.c (init_e7000_ops): Likewise.
947 * remote-es.c (init_es1800_ops): Likewise.
948 (init_es1800_child_ops): Likewise.
949 * remote-rdp.c (init_remote_rdp_ops): Likewise.
950 * remote-sim.c (init_gdbsim_ops): Likewise.
951 * remote-st.c (init_st2000_ops): Likewise.
952 * sol-thread.c (init_sol_core_ops): Likewise.
953 (init_sol_thread_ops): Likewise.
954 * v850ice.c (init_850ice_ops): Likewise.
955 * win32-nat.c (init_child_ops): Likewise.
956 * wince.c (init_child_ops): Likewise.
958 2002-11-12 Andrew Cagney <ac131313@redhat.com>
960 * utils.c (gdb_realpath): Make rp a constant pointer.
962 2002-11-12 Andrew Cagney <ac131313@redhat.com>
964 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
965 a constant buffer; cannonicalize_file_name(); realpath() with a
966 pathconf() defined buffer, xstrdup().
968 2002-11-12 Andrew Cagney <ac131313@redhat.com>
970 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
971 to hang2.C; hang3.c to hang3.C.
973 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
975 * findvar.c (read_var_value): Reenable TLS code.
977 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
978 Jim Blandy <jimb@redhat.com>
980 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
981 * target.c (update_current_target): Add
982 to_get_thread_local_address.
983 * target.h (to_get_thread_local_address): Export.
984 (target_get_thread_local_address): Define.
985 (target_get_thread_local_address_p): Define.
986 * thread-db.c: Include solib-svr4.h.
987 (td_thr_tls_get_addr_p): Define.
988 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
989 (thread_db_get_thread_local_address): New function.
990 (init_thread_db_ops): Initialize to_get_thread_local_address.
991 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
992 * configure: Regenerate.
993 * config.in: Regenerate.
995 2002-11-11 David Carlton <carlton@math.stanford.edu>
997 * linespec.c (set_flags): New function.
998 (decode_line_1): Move code into set_flags.
1000 2002-11-11 David Carlton <carlton@math.stanford.edu>
1002 * linespec.c (decode_line_1): Move chunks of code to separate
1004 (initialize_defaults): New function.
1005 (decode_indirect): New function.
1007 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1009 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1010 instead of void_code_ptr.
1011 (sigtramp_saved_pc): Ditto.
1013 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1016 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1018 * gdbtypes.h (struct main_type): Move artificial flag out of
1019 loc. New member of ``struct field'' named static_kind. Reduce
1020 overloaded meaning of bitsize.
1021 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1022 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1023 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1025 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1027 (template_to_fixed_record_type, template_to_static_fixed_type)
1028 (to_record_with_fixed_variant_part): Likewise.
1029 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1030 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1031 * dwarfread.c (struct_type, enum_type): Likewise.
1032 * hpread.c (hpread_read_enum_type)
1033 (hpread_read_function_type, hpread_read_doc_function_type)
1034 (hpread_read_struct_type): Likewise.
1035 * mdebugread.c (parse_symbol): Likewise.
1037 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1039 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1040 * stack.c (print_frame_info_base): Update.
1041 (print_frame_info_base, frame_info): Update.
1042 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1043 (sparc_frame_saved_pc): Update.
1044 * ada-lang.c (find_printable_frame): Update.
1045 * breakpoint.c (deprecated_frame_in_dummy): Update.
1047 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1049 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1051 (regmap): Extend to cover all registers.
1052 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1053 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1055 (fetch_register, sore_register): Simplify.
1056 (old_fetch_inferior_registers, old_store_inferior_registers):
1058 (cannot_fetch_register, cannot_store_register): Change
1059 implementation to use regmap array to decide which registers
1060 cannot be fetched/stored. This removes $orig_eax from the
1061 registers that cannot be fetched/stored.
1062 (fetch_inferior_registers): Call fetch_register directly instead
1063 of calling old_fetch_inferior_registers.
1064 (store_inferior_registers): Call store_register directly instead
1065 of calling old_store_inferior_registers.
1066 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1067 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1068 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1070 2002-11-09 Klee Dienes <kdienes@apple.com>
1072 * i387-tdep.c (i387_supply_register): When called with NULL as a
1073 buffer, mark the register as not provided (to mirror the behavior
1074 of supply_register).
1075 (i387_supply_fxsave): Ditto.
1076 (i387_supply_fsave): Ditto (inherits the behavior from
1077 i387_supply_register).
1079 2002-11-09 Klee Dienes <kdienes@apple.com>
1081 * blockframe.c (sigtramp_saved_pc): Use
1082 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1083 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1084 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1086 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1088 * frame.c (get_prev_frame): Test prev_p to identify a previously
1089 unwound frame. Initialize prev_p.
1090 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1093 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1095 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1096 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1097 more comments. Zap dead code.
1099 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1101 * infcmd.c (print_vector_info, print_float_info): Move code that
1102 checks whether the target has any registers and whether there is a
1103 selected frame up, such that it is also used if a target provides
1104 multi-arch definitions of these functions.
1106 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1108 * Makefile.in (DESTDIR): Define.
1109 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1112 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1113 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1115 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1117 * i386-linux-tdep.c: Include "reggroups.h".
1118 (i386_linux_register_reggroup_p): New function.
1119 (i386_linux_init_abi): Set register_reggroup_p to
1120 i386_linux_register_reggroup_p.
1121 * i386-tdep.h (i386_register_reggroup_p): Declare.
1122 * i386-tdep.c: Include "reggroups.h".
1123 (i386_init_reggroups): New function.
1124 (i386_add_reggroups): New function.
1125 (i386_register_reggroup_p): New function.
1126 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1127 (_initialize_i386_tdep): Call i386_init_reggroups.
1128 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1131 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1133 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1134 request that's available in *BSD.
1136 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1138 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1141 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1143 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1144 * dummy-frame.c (find_dummy_frame): Rename
1145 generic_find_dummy_frame, make static. Return the dummy frame
1146 instead of the regcache.
1147 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1148 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1149 (dummy_frame_register_unwind): Rename
1150 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1151 * dummy-frame.h (dummy_frame_register_unwind): Rename
1152 generic_call_dummy_register_unwind.
1154 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1156 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1157 except the inclusion of "i386/tm-i386.h", to...
1158 * config/i386/nm-i386v42mp.h: ...here.
1159 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1161 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1163 * Makefile.in (frame.o): Update dependencies.
1164 * blockframe.c (current_frame, frame_obstack_alloc)
1165 (frame_saved_regs_zalloc, get_current_frame)
1166 (set_current_frame, create_new_frame)
1167 (set_unwind_by_pc, get_next_frame)
1168 (flush_cached_frames, reinit_frame_cache)
1169 (frame_saved_regs_register_unwind)
1170 (deprecated_generic_get_saved_register)
1171 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1172 (_initialize_blockframe): Move frame code from here...
1173 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1174 "annotate.h" and "dummy-frame.h".
1175 (_initialize_frame): New function.
1177 2002-11-08 Jim Blandy <jimb@redhat.com>
1179 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1180 when we finish a function a context.
1181 * buildsym.h (outermost_context_p): New macro.
1182 (Bug analyzed by David Edelsohn.)
1184 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1186 * blockframe.c: Include "dummy-frame.h".
1187 (struct dummy_frame, dummy_frame_stack)
1188 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1189 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1190 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1191 (generic_save_call_dummy_addr, generic_pop_current_frame)
1192 (generic_pop_dummy_frame, generic_fix_call_dummy)
1193 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1194 dummy frame code from here...
1195 * dummy-frame.c: ...to here. New file.
1196 * dummy-frame.h: New file.
1197 (generic_call_dummy_register_unwind): Declare.
1198 (generic_find_dummy_frame): Declare.
1199 * Makefile.in (SFILES): Add dummy-frame.c.
1200 (dummy-frame.o): Specify dependencies.
1201 (dummy_frame_h): Define.
1202 (COMMON_OBS): Add dummy-frame.o.
1203 (blockframe.o): Update dependencies.
1205 2002-11-08 Jim Blandy <jimb@redhat.com>
1207 * dwarf2read.c (read_func_scope): Restore local_symbols and
1208 param_symbols after we finish the function context. (Based on a
1209 patch from David Edelsohn.)
1211 2002-11-08 David Carlton <carlton@math.stanford.edu>
1213 * linespec.c (symbol_found): New function.
1214 (minsym_found): New function.
1215 (decode_line_1): Separate out some code into separate functions.
1217 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1219 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1220 the benefit of the interix target.
1221 * i386-tdep.h (i386_frameless_signal_p): Declare.
1223 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1225 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1226 declaration that snuck in from change below.
1228 2002-11-06 Andrew Cagney <cagney@redhat.com>
1230 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1232 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1233 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1234 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1235 (i386_mxcsr_regnum_p): new function. Use instead of
1237 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1238 (i386_sse_regnum_p): Declare.
1239 (i386_mxcsr_regnum_p): Declare.
1240 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1241 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1242 (IS_FP_REGNUM): Update definition.
1243 (IS_FPU_CTRL_REGNUM): Update definition..
1244 (IS_SSE_REGNUM): Update definition..
1245 * i386v-nat.c (register_u_addr): Update.
1246 * go32-nat.c (fetch_register): Update.
1247 (store_register): Update.
1249 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1251 Preparation work to convert the hppa targets to multiarch partial.
1253 * hppa-tdep.c: Add new functions replacing macro bodies from
1254 config/pa/tm-hppa.h. These function will be used to initialize
1255 the gdbarch structure. Import some comments from tm-hppa.h,
1256 and place them where appropriate, to avoid loosing them when
1257 we cleanup this file.
1258 (hppa_reg_struct_has_addr): New function.
1259 (hppa_inner_than): New function.
1260 (hppa_stack_align): New function.
1261 (hppa_pc_requires_run_before_use): New function.
1262 (hppa_instruction_nullified): New function.
1263 (hppa_register_byte): New function.
1264 (hppa_register_virtual_type): New function.
1265 (hppa_store_struct_return): New function.
1266 (hppa_cannot_store_register): New function.
1267 (hppa_frame_args_address): New function.
1268 (hppa_frame_locals_address): New function.
1269 (hppa_smash_text_address): New function.
1270 (hppa_coerce_float_to_double): New function. Requires the inclusion
1273 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1275 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1276 gdbarch-eligible macro to a call to the new associated function
1277 created in hppa-tdep.c.
1278 (INNER_THAN): Likewise.
1279 (STACK_ALIGN): Likewise.
1280 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1281 (INSTRUCTION_NULLIFIED): Likewise.
1282 (REGISTER_BYTE): Likewise.
1283 (REGISTER_VIRTUAL_TYPE): Likewise.
1284 (STORE_STRUCT_RETURN): Likewise.
1285 (CANNOT_STORE_REGISTER): Likewise.
1286 (FRAME_ARGS_ADDRESS): Likewise.
1287 (FRAME_LOCALS_ADDRESS): Likewise.
1288 (SMASH_TEXT_ADDRESS): Likewise.
1289 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1290 (ABOUT_TO_RETURN): Delete, as no longer used.
1292 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1294 * printcmd.c (disassemble_command): Remove obsolete function.
1295 (_initialize_printcmd): Do not create disassemble command here.
1296 * cli/cli-cmds.c (disassemble_command): New function. Implements
1297 disassemble command.
1298 (init_cli_cmds): Create disassemble command here instead.
1300 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1302 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1304 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1306 * regcache.h (regcache_cooked_read_using_offset_hack)
1307 (regcache_cooked_write_using_offset_hack): Delete declarations.
1308 (register_changed): Delete declaration.
1309 * regcache.c (regcache_cooked_read_using_offset_hack)
1310 (regcache_cooked_write_using_offset_hack): Delete functions.
1311 (cooked_xfer_using_offset_hack): Delete function.
1312 (register_changed): Delete function.
1314 2002-11-07 Jim Blandy <jimb@redhat.com>
1316 * macroscope.c: #include "complaints.h".
1317 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1318 but not in the macro table.
1319 * Makefile.in (macroscope.o): Record dependency.
1321 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1323 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1325 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1327 * regcache.c (deprecated_registers_fetched): Update.
1328 * regcache.h (deprecated_registers_fetched): Rename
1330 * remote-vxsparc.c (vx_read_register): Update.
1331 * remote-vxmips.c (vx_read_register): Update.
1332 * remote-vx68.c (vx_read_register): Update.
1333 * irix5-nat.c (fetch_core_registers): Update.
1334 * mipsm3-nat.c (fetch_inferior_registers): Update.
1335 * sun3-nat.c (fetch_inferior_registers): Update.
1336 * symm-nat.c (fetch_inferior_registers): Update.
1337 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1338 (fetch_core_registers): Update.
1339 (fetch_kcore_registers): Update.
1340 * mips-nat.c (fetch_inferior_registers): Update.
1341 * corelow.c (get_core_registers): Update.
1342 * a68v-nat.c (fetch_inferior_registers): Update.
1344 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1346 Put in place the framework necessary for multiarching the hppa targets.
1347 * hppa-tdep.c (hppa_gdbarch_init): New function.
1348 (hppa_dump_tdep): New function.
1349 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1350 tdep structure dumper.
1351 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1352 until the multi-arching conversion has partially been completed.
1354 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1356 * valops.c (value_assign): Merge lval_register case into
1357 lval_reg_frame_relative. Use frame_register and
1358 regcache_cooked_write instead of get_saved_register and
1359 write_register_bytes. After flushing the register cache, try to
1360 re-select the selected frame.
1362 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1364 * regcache.h (deprecated_register_valid): Rename register_valid.
1365 * regcache.c: Update.
1366 * ia64-aix-nat.c: Update.
1367 * i386gnu-nat.c: Update.
1368 * alpha-nat.c: Update.
1369 * sparc-nat.c: Update.
1370 * lynx-nat.c: Update.
1371 * remote-mips.c: Update.
1373 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1375 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1376 to end of file, to be more consistent with the pratice followed
1379 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1381 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1382 (print_float_info): Print registers in float_reggroup.
1383 (print_vector_info): Print registers in vector_reggroup.
1384 (default_print_registers_info): When all, print registers in
1385 all_reggroup. Otherwize, print registers in general_reggroup.
1386 (registers_info): Rewrite. Add support for register groups.
1389 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1391 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1393 (symtab_symbol_info): Remove eons old ifdeffed out code.
1394 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1397 2002-11-06 Theodore A. Roth <troth@openavr.org>
1399 * c-exp.y: Add missing semi-colons.
1400 * f-exp.y: Add missing semi-colons.
1401 * m2-exp.y: Add missing semi-colons.
1402 * p-exp.y: Add missing semi-colons.
1403 Add empty action to start rule to avoid a type clash error when
1404 building with bison >= 1.50.
1406 2002-11-06 Jim Blandy <jimb@redhat.com>
1408 * macrotab.h (struct macro_source_file): Doc fix.
1410 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1412 * varobj.c (child_exists, cplus_number_of_children): Change
1413 STREQ macro references to strcmp.
1414 (cplus_name_of_child): Change code to handle the fact that
1415 fields are not necessarily contiguous with regards to their
1416 access control. This is a fix for PR gdb/792.
1418 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1420 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1421 * gdbarch.h, gdbarch.c: Regnerate.
1422 * frame.h (frame_register): Declare.
1423 * frame.c (frame_register): New function.
1424 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1425 GET_SAVED_REGISTER, otherwize call
1426 generic_unwind_get_saved_register.
1427 (frame_register_read): Use frame_register instead of
1430 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1432 From Jim Ingham <jingham@apple.com>:
1433 * event-top.c (gdb_disable_readline): New function.
1434 (_initialize_event_loop): Move comment.
1436 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1438 * event-loop.c (start_event_loop): Add comment.
1441 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1443 * infcmd.c (default_print_registers_info): Do not call
1444 PRINT_REGISTER_HOOK.
1446 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1448 * sparc-tdep.c (sparc_print_register_hook): Make static.
1449 (sparc_print_registers_info): New function.
1450 (sparc_do_registers_info): New function.
1451 (sparclet_print_registers_info): New function.
1452 (sparclet_do_registers_info): New function.
1453 (do_sparc_print_registers_info): New function.
1454 (sparc_print_registers): New static function, clone of infcmd.c's
1455 default_print_registers_info.
1456 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1457 (sparclet_do_registers_info): Declare.
1458 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1459 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1461 (sparc_do_registers_info): Declare.
1462 (PRINT_REGISTER_HOOK): Delete macro.
1463 (sparc_print_register_hook): Delete declaration.
1465 2002-11-05 David Carlton <carlton@math.stanford.edu>
1467 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1469 (lookup_symbol_aux_local): New function.
1470 (lookup_symbol_aux_symtabs): New function.
1471 (lookup_symbol_aux_psymtabs): New function.
1473 2002-11-05 David Carlton <carlton@math.stanford.edu>
1475 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1476 previous values of 'objfile' and 'block'.
1478 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1480 * values.c (value_change_enclosing_type): Set
1481 enclosing_type field correctly also for the case where
1482 more memory needs to be allocated.
1484 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1486 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1489 * i387-tdep.c (i387_print_float_info): Replace calls to
1490 register_read and deprecated_read_register_gen with calls to
1491 frame_register_read, and make the necessary adjustments to the
1494 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1496 * gdbarch.sh (register_reggroup_p): Allow default value.
1497 * gdbarch.h, gdbarch.c: Regenerate.
1499 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1501 * regcache.h: Add coment indicating replacements for deprecated
1504 2002-11-02 Andrew Cagney <cagney@redhat.com>
1506 * reggroups.h, reggroups.c: New files.
1507 * regcache.c: Include "reggroups.h".
1508 (enum regcache_dump_what): Add `regcache_dump_groups'.
1509 (regcache_dump): Contract size of the "Type" column. When
1510 specified, dump the register's groups.
1511 (maintenance_print_register_groups): New function.
1512 (_initialize_regcache): Add command `maint print register-groups'.
1513 * Makefile.in (COMMON_OBS): Add reggroups.o
1514 (SFILES): Add reggroups.c.
1515 (reggroups_h): Define.
1516 (regcache.o, gdbarch.o): Update dependencies.
1517 (reggroups.o): Specify dependencies.
1518 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1519 Add opaque declaration for `struct reggroup' in generated .h file.
1520 Include "reggroups.h" in generated .c file.
1521 gdbarch.h, gdbarch.c: Re-generate.
1523 2002-11-02 Andrew Cagney <cagney@redhat.com>
1525 * regcache.h (deprecated_read_register_gen): Rename
1527 (deprecated_write_register_gen): Rename write_register_gen.
1528 * i387-tdep.c: Update.
1529 * x86-64-linux-nat.c: Update
1531 * thread-db.c: Update.
1532 * win32-nat.c: Update.
1533 * mips-tdep.c: Update.
1534 * d10v-tdep.c: Update.
1535 * cris-tdep.c: Update.
1536 * remote-sim.c: Update.
1537 * remote-rdi.c: Update.
1538 * remote-rdp.c: Update.
1541 * blockframe.c: Update.
1542 * x86-64-tdep.c: Update.
1543 * xstormy16-tdep.c: Update.
1544 * sh-tdep.c: Update.
1545 * s390-tdep.c: Update.
1546 * rs6000-tdep.c: Update.
1547 * sparc-tdep.c: Update.
1548 * i386-tdep.c: Update.
1549 * dwarf2cfi.c: Update.
1550 * regcache.c: Update.
1552 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1554 New interix-specific files:
1555 * config/i386/nm-interix.h: New file.
1556 * config/i386/interix.mh: New file.
1557 * config/i386/interix.mt: New file.
1558 * i386-interix-nat.c: New file.
1559 * i386-interix-tdep.c: New file.
1561 2002-11-01 Andrew Cagney <cagney@redhat.com>
1563 * frame.h (deprecated_generic_get_saved_register): Rename
1564 generic_get_saved_register.
1565 * blockframe.c (deprecated_generic_get_saved_register): Update.
1566 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1567 (xstormy16_frame_saved_register): Update.
1568 * sh-tdep.c (sh_gdbarch_init): Update.
1569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1570 * ia64-tdep.c (ia64_get_saved_register): Update.
1571 * cris-tdep.c (cris_gdbarch_init): Update.
1572 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1573 * arm-tdep.c (arm_gdbarch_init): Update.
1575 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1577 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1579 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1581 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1582 trampolines in sigaction.
1584 2002-10-31 Andrew Cagney <cagney@redhat.com>
1586 * h8300-tdep.c: Include "gdb_assert.h".
1587 (h8300_print_register): Add gdbarch, file and frame parameters.
1588 Use frame_read_unsigned_register to read the register's value.
1589 Use fprintf_filtered to display output.
1590 (h8300_print_registers_info): Replace h8300_do_registers_info.
1591 (h8300_gdbarch_init): Set print_registers_info.
1593 2002-10-31 Andrew Cagney <cagney@redhat.com>
1595 * frame.c (frame_read_unsigned_register): New function.
1596 (frame_read_signed_register): New function.
1597 * frame.h (frame_read_unsigned_register): Declare.
1598 (frame_read_signed_register): Declare.
1600 2002-10-31 Andrew Cagney <cagney@redhat.com>
1602 * h8500-tdep.c (h8500_print_registers_info): New static function,
1603 clone of infcmd.c's default_print_registers_info.
1604 (h8500_do_registers_info): New funtion.
1605 (h8500_print_register_hook): Rename print_register_hook, make
1608 * config/h8500/tm-h8500.h: Update copyright.
1609 (DEPRECATED_DO_REGISTERS_INFO): Define.
1610 (h8500_do_registers_info: Declare.
1611 (PRINT_REGISTER_HOOK): Delete macro.
1612 (print_register_hook): Delete function.
1614 2002-10-31 Andrew Cagney <cagney@redhat.com>
1616 * z8k-tdep.c (z8k_print_register_hook): Make static.
1617 (z8k_print_registers_info): New static function, clone of
1618 infcmd.c's default_print_registers_info.
1619 (z8k_do_registers_info): New function. Wrap
1620 z8k_print_registers_info.
1621 * config/z8k/tm-z8k.h: Update copyright.
1622 (PRINT_REGISTER_HOOK): Delete macro.
1623 (z8k_print_register_hook): Delete declaration.
1624 (DEPRECATED_DO_REGISTERS_INFO): Define.
1625 (z8k_do_registers_info): Declare.
1627 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1629 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1630 as this is already provided by value.h, and was actually causing
1631 a compilation error because of a conflict in parameter type
1632 declaration due to a missing const keyword.
1633 (low_text_segment_addres): Fix a compilation warning.
1635 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1637 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1638 registers without a name.
1639 (mips_linux_cannot_store_register): Don't store registers without
1642 2002-10-28 David Carlton <carlton@math.stanford.edu>
1644 * symtab.c (find_addr_symbol): Delete. (It was already commented
1646 * symtab.h: Delete prototype for find_addr_symbol.
1648 2002-10-26 Andrew Cagney <cagney@redhat.com>
1650 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1652 gdbarch.h, gdbarch.c: Re-generate.
1653 * infcmd.c (default_print_registers_info): Update reference.
1654 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1655 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1656 * sh-tdep.c (sh_gdbarch_init): Ditto.
1657 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1658 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1660 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1662 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1663 cfi_init_extra_frame_info.
1664 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1665 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1667 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1668 target where necessary. Add more comments and remove the ones
1669 that don't provide any useful information.
1671 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1672 deprecated_read_register_dummy with
1673 frame_unwind_unsigned_register.
1675 * i386-tdep.c (i386_extract_struct_value_address): Use
1676 regcache_raw_read_unsigned instead of
1677 regcache_cooked_read_unsigned since we know that the register
1678 we're reading isn't a pseudo register. Rename variable 'val' into
1679 the more descriptive 'addr'.
1681 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1682 (x86_64_push_return_address): Add comment.
1683 (x86_64_pop_frame): Make static.
1684 (examine_argument): Clarify comment.
1685 (x86_64_skip_prologue): Make prolog_expact variable static.
1687 * dwarf2cfi.c: Fix some formatting problems.
1688 (context_cpy, read_encoded_pointer): Clarify comments.
1690 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1691 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1692 i386 target back into x86_64_gdbarch_init. Add some comments and
1693 remove meaningless ones.
1695 2002-10-25 Andrew Cagney <cagney@redhat.com>
1697 * complaints.h (struct deprecated_complaint): Rename `struct
1699 * complaints.c (complain): Update.
1700 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1701 incorrect comment indicating that "symfile.h" was being included
1702 for the `struct complaint' definition.
1703 * remote-vx.c: Update.
1704 * objc-lang.c: Update.
1705 * xcoffread.c: Update.
1707 * mdebugread.c: Update.
1708 * stabsread.c: Update.
1709 * dwarf2read.c: Update.
1710 * dwarfread.c: Update.
1711 * elfread.c: Update.
1712 * coffread.c: Update.
1713 * stabsread.h: Update.
1714 * dbxread.c: Update.
1715 * buildsym.c: Update.
1716 * gdbtypes.c: Update.
1717 * macrotab.c: Update.
1719 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1721 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1722 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1723 (x86_64_init_abi): ...new function.
1725 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1726 * i386v-nat.c: Include "i386-tdep.h".
1728 2002-10-25 Andrew Cagney <cagney@redhat.com>
1730 * gdbtypes.c (address_space_name_to_int): Update.
1731 (address_space_int_to_name): Update.
1732 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1733 multi-arch predicate.
1734 (address_class_name_to_type_flags): Ditto.
1735 * gdbarch.h, gdbarch.c: Re-generate.
1737 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1739 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1741 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1743 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1745 * symtab.h (INIT_SAL): Delete macro.
1747 * symtab.c (init_sal): New function.
1749 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1750 to init_sal function call.
1751 (find_sal_from_funcs_and_line): Ditto.
1752 (all_sals_for_line): Ditto.
1753 * breakpoint.c (create_internal_breakpoint): Ditto.
1754 (create_fork_vfork_event_catchpoint): Ditto.
1755 (create_exec_event_catchpoint): Ditto.
1756 (parse_breakpoint_sals): Ditto.
1757 (watch_command_1): Ditto.
1758 (handle_gnu_4_16_catch_command): Ditto.
1759 (clear_command): Ditto.
1760 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1761 * infcmd.c (run_stack_dummy): Ditto.
1762 * infrun.c (process_event_stop_test): Ditto.
1763 (check_sigtramp2): Ditto.
1764 (step_over_function): Ditto.
1765 * linespec.c (decode_line_2): Ditto.
1766 (decode_line_1): Ditto.
1767 * source.c (line_info): Ditto.
1768 * symtab.c (find_pc_sect_line): Ditto.
1770 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1772 * dwarf2cfi.c (struct context)
1773 (struct context_reg): Moved to dwarf2cfi.h
1774 (context_alloc, frame_state_alloc, context_cpy):
1775 Made extern instead of static, removed prototypes.
1776 * dwarf2cfi.h (struct context)
1777 (struct context_reg): New, moved from dwarf2cfi.c
1778 (context_alloc, frame_state_alloc, context_cpy):
1780 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1781 Changed from static to extern.
1782 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1783 (LINUX_SIGCONTEXT_FP_OFFSET)
1784 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1785 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1786 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1787 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1788 set_gdbarch_*() calls now use x86-64 specific functions
1789 instead of DWARF2 CFI ones.
1790 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1791 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1792 (x86_64_init_extra_frame_info): New prototypes.
1794 2002-10-23 David Carlton <carlton@math.stanford.edu>
1796 * linespec.c: #include "parser-defs.h".
1797 Delete prototype for find_template_name_end.
1798 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1800 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1802 * NEWS: add recent mi fixes.
1803 * varobj.c (struct varobj): Add new "updated" flag.
1804 (new_variable): Default "updated" flag to 0.
1805 (varobj_set_value): Set "updated" flag to 1 if value
1807 (varobj_update): Check varobj "updated" flag before
1808 comparing old and refreshed values. Fix for
1811 2002-10-23 David Carlton <carlton@math.stanford.edu>
1813 * parse.c (parse_exp_1): Use BLOCK_START.
1814 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1816 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1818 2002-10-23 David Carlton <carlton@math.stanford.edu>
1820 * symtab.c: Delete cplusplus_hint.
1821 Delete prototype for find_template_name_end.
1823 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1825 * symtab.h: Update comment.
1827 2002-10-23 Michael Snyder <msnyder@redhat.com>
1829 * printcmd.c (address_info): Restore quotes in output.
1830 * valops.c (value_of_local): Restore quotes in error message.
1832 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1834 * symtab.c (symbol_demangled_name): New function.
1835 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1836 turning most of it into a function.
1837 (symbol_demangled_name): Export.
1839 2002-10-23 Michael Snyder <msnyder@redhat.com>
1841 * valops.c (value_of_local): Restore quotes in error message.
1843 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1845 * symtab.c (symbol_init_language_specific): New function.
1846 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1847 turning most of it into a function.
1848 (symbol_init_language_specific): Export.
1850 2002-10-23 David Carlton <carlton@math.stanford.edu>
1852 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1853 (dwarf_attr_name): Ditto.
1854 (dwarf_type_encoding_name): Ditto.
1855 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1856 (process_die): Handle DW_TAG_namespace,
1857 DW_TAG_imported_declaration, DW_TAG_imported_module.
1858 (read_namespace): New function.
1860 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1862 * configure.in: Define NEW_PROC_API on Interix too.
1863 * configure: Regenerate.
1865 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1867 * configure: Regenerate using the proper version of autoconf.
1869 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1871 * findvar.c (read_var_value): Temporarily disable TLS code, until
1872 complete TLS support is added.
1874 2002-10-21 Jim Blandy <jimb@redhat.com>
1875 Elena Zannoni <ezannoni@redhat.com>
1877 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1878 for thread local storage locations.
1879 (struct symbol): Add objfile field.
1880 (SYMBOL_OBJFILE): Define.
1881 * dwarf2read.c (is_thread_local): New static variable.
1882 (new_symbol): If variable is in thread local fill in address class
1883 and objfile appropriately.
1884 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1886 * printcmd.c (address_info): Print the information for thread
1887 local storage variable.
1888 * findvar.c (read_var_value): In case of thread local variable,
1889 defer to the target vector code to compute address.
1891 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1893 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1894 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1896 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1898 * symtab.h (address_class): Rename
1899 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1900 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1901 * printcmd.c (address_info): Ditto.
1902 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1904 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1906 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1907 DBREG_DRX macro to acces debug registers.
1909 * Makefile.in (i386obsd-tdep.o): New target.
1911 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1912 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1914 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1915 * config/i386/obsd.mt: New file.
1916 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1917 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1918 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1919 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1920 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1921 * i386obsd-tdep.c: New file.
1923 2002-10-19 Adam Fedor <fedor@gnu.org>
1925 * objc-exp.y (name_not_typename): Fix invalid comment.
1927 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1929 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1930 to allocate partial syms and macro byte caches.
1932 2002-10-18 David Carlton <carlton@math.stanford.edu>
1934 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1936 2002-10-18 Adam Fedor <fedor@gnu.org>
1938 * stabsread.c (find_name_end): New function.
1939 (define_symbol): Use it.
1941 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1943 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1944 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1945 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1946 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1948 2002-10-17 David Carlton <carlton@math.stanford.edu>
1950 * symfile.h: Add opaque declaration for struct obstack.
1951 Declare obsavestring to take a const char *.
1952 * symfile.c (obsavestring): Make first argument a const char *.
1954 2002-10-16 Adam Fedor <fedor@gnu.org>
1956 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1957 names when matching breakpoints in current file.
1959 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1961 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1962 (read_tag_pointer_type): Add address class support.
1963 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1964 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1966 * gdbarch.h, gdbarch.c: Regenerate.
1967 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1968 (make_type_with_address_space, recursive_type_dump): Add address
1970 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1971 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1972 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1974 2002-10-16 Klee Dienes <kdienes@apple.com>
1976 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1977 to get the last character of a char[] buffer, not
1978 name[sizeof(vptr_name)-1].
1980 2002-10-14 Adam Fedor <fedor@gnu.org>
1982 * symtab.h: New objc_specific struct.
1983 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1984 (SYMBOL_DEMANGLED_NAME): Likewise.
1986 2002-10-14 Adam Fedor <fedor@gnu.org>
1988 * symfile.c (init_filename_language_table): Add ObjC file extension.
1990 2002-10-14 Adam Fedor <fedor@gnu.org>
1992 * utils.c (puts_filtered_tabular): New function.
1993 (fprintf_symbol_filtered): Get ObjC demangled name.
1994 * defs.h (puts_filtered_tabular): Declared.
1996 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1998 * c-lang.h (c_type_print_varspec_prefix): Delete.
1999 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2000 ``need_post_space'' parameter. Adjust all callers.
2002 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2004 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2005 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2006 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2007 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2009 2002-10-13 Adam Fedor <fedor@gnu.org>
2011 * source.c (print_source_lines): Update comments.
2013 2002-10-13 Adam Fedor <fedor@gnu.org>
2015 * valops.c (value_of_local): New function.
2016 (value_of_this): Use it.
2017 * value.h (value_of_local): Declared.
2019 2002-10-13 Adam Fedor <fedor@gnu.org>
2021 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2022 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2024 2002-10-12 Adam Fedor <fedor@gnu.org>
2026 * language.c (binop_result_type): Add language_objc to case.
2027 (integral_type): Likewise.
2028 (character_type): Likewise.
2029 (string_type): Likewise.
2030 (boolean_type): Likewise.
2031 (structured_type): Likewise.
2032 (binop_type_check): Likewise.
2034 2002-10-11 Adam Fedor <fedor@gnu.org>
2036 * printcmd.c (address_info): Print 'self' for ObjC.
2038 2002-10-11 Adam Fedor <fedor@gnu.org>
2040 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2043 2002-10-11 Adam Fedor <fedor@gnu.org>
2045 * language.h (CAST_IS_CONVERSION): Add language_objc.
2047 2002-10-11 Adam Fedor <fedor@gnu.org>
2049 * defs.h (enum language): Add language_objc.
2051 2002-10-11 Klee Dienes <kdienes@apple.com>
2053 * corefile.c (read_memory_typed_address): New function.
2054 * gdbcore.h (read_memory_typed_address): Add prototype.
2055 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2056 to read a value destined for a CORE_ADDR, not read_memory_integer.
2057 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2058 (f77_get_dynamic_lowerbound): Ditto.
2060 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2062 * utils.c (string_to_core_addr): After turning string into
2063 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2064 which will do necessary sign-extension, etc.
2066 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2068 * c-exp.y (THIS): Delete token and grammar rule.
2069 (yylex): Don't return THIS.
2070 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2071 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2072 * demangle.c (cplus_markers): Update comment. Put '$'
2073 first. Remove CPLUS_MARKER.
2074 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2075 * jv-exp.y (THIS): Delete token and grammar rule.
2076 (yylex): Don't return THIS.
2077 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2078 * objc-exp.y (THIS): Delete token and grammar rule.
2079 (yylex): Don't return THIS.
2080 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2081 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2082 (read_member_functions): Likewise for opname.
2083 (read_tilde_fields): Use is_cplus_marker.
2085 * defs.h (CPLUS_MARKER): Don't define.
2086 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2087 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2088 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2089 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2090 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2092 * config/i386/tm-i386v4.h: Delete file.
2093 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2094 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2095 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2096 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2097 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2098 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2099 * config/i386/i386v4.mt (TM_FILE): Likewise.
2100 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2102 2002-10-10 Marko Mlinar <markom@opencores.org>
2104 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2105 accidentially not commited 2002-10-09
2106 * gdbarch.h, gdbarch.c: Re-generate.
2108 2002-10-09 Marko Mlinar <markom@opencores.org>
2110 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2111 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2112 * gdbarch.h, gdbarch.c: Re-generate.
2114 2002-10-08 Petr Sorfa <petrs@caldera.com>
2116 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2118 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2119 so we can work on more than one compilation unit at a time. This
2120 helps prepare GDB to handle inter-CU die references.
2121 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2122 the code to be defined before struct comp_unit_head.
2123 (comp_unit_head): Added new members - offset, cu_head,
2124 begin_die, next and dwarf2_abbrevs.
2125 (dwarf2_abbrevs): Removed single static var; now member of
2126 struct comp_unit_head.
2127 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2129 (psymtab_to_symtab_1): Changed to work with the new
2130 struct comp_unit_head.
2131 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2132 constructs the dwarf2_abbrevs[] inside the cu_header.
2133 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2134 dwarf2_abbrev table to clean up.
2135 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2136 handling of dwarf2_abbrevs inside the cu_header.
2137 (read_partial_die): Now supports the call to the new
2138 dwarf2_lookup_abbrev.
2139 (read_full_die): Now supports the call to the new
2140 dwarf2_lookup_abbrev.
2142 2002-10-06 Christopher Faylor <cgf@redhat.com>
2144 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2145 insure that shell variables, such as "transformed_name" are propagated
2146 to later shell statements in rule.
2148 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2150 * config/i386/nm-i386sco.h: Add protection against
2151 multiple-inclusion. Include "i386/nm-i386v.h".
2152 (REGISTER_U_ADDR): Remove define.
2153 (i386_register_u_addr): Remove prototype.
2155 2002-10-04 Michael Snyder <msnyder@redhat.com>
2157 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2158 before treating it as a single-step event.
2160 2002-10-03 Adam Fedor <fedor@gnu.org>
2162 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2163 (objc_demangle): Remove assignment in if statements, Replace
2165 (add_msglist): Likewise.
2166 (end_msglist): Likewise.
2167 (complare_selectors): Likewise.
2168 (selectors_info): Likewise.
2169 (compare_classes): Likewise.
2170 (classes_info): Likewise.
2171 (print_object_command): Likewise.
2172 (find_objc_msgcall_submethod): Replace PTR with void *.
2173 * objc-lang.h: Remove check for __STDC__.
2175 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2177 * ui-out.h (ui_out_field_fmt_int): New prototype.
2178 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2179 of field width and alignment.
2180 * stack.c (print_frame_info_base): When printing frame level, use
2181 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2184 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2186 * MAINTAINERS: Add self to Write After Approval list.
2188 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2190 * infcmd.c (interrupt_target_command_wrapper): Delete.
2191 (interrupt_target_command): Make non static.
2192 (nofp_registers_info): Make static.
2193 * stack.c (return_command_wrapper): Delete.
2194 (return_command): Make non static.
2196 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2198 * event-top.c (gdb_setup_readline): New function. Code moved from
2199 _initialize_event_loop().
2200 (_initialize_event_loop): Call gdb_setup_readline().
2202 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2204 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2205 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2206 * gdbarch.h, gdbarch.c: Re-generate.
2208 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2211 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2213 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2214 of fill_in_vptr_fieldno.
2216 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2218 * inferior.h (registers_info, stepi_command, nexti_command,
2219 continue_command, interrupt_target_command): Export from infcmd.c.
2220 * frame.h (args_info, selected_frame_level_changed_hook,
2221 return_command): Export from stack.c.
2222 * v850ice.c (stepi_command, nexti_command, continue_command): use
2223 prototypes from inferior.h.
2224 * tracepoint.c (registers_info, args_info, locals_info): Use
2225 prototypes from frame.h and inferior.h.
2226 * Makefile.in (mi-main.o): Add dependency on frame.h.
2228 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2230 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2231 value in register 3 adjusted by ppc_gp0_regnum.
2233 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2235 2002-10-02 Marko Mlinar <markom@opencores.org>
2237 * MAINTAINERS: Add myself to the Write After Approval list.
2239 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2241 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2242 of the section for the N64 ABI, fixed.
2244 * config/mips/tm-irix6.h: Include solib.h.
2246 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2248 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2251 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2253 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2254 and that "mi0" syntax has been removed.
2256 2002-09-30 David Carlton <carlton@math.stanford.edu>
2258 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2259 * ppc-sysv-tdep.c: #include "gdb_string.h".
2260 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2263 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2265 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2266 "vrsave"'s register number.
2268 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2270 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2271 use frame_unwind_signed_register to obtain the PC.
2272 (mips_frame_chain): Handle a generic dummy frame.
2273 (mips_init_extra_frame_info): When a generic dummy frame, don't
2274 re-compute the frame base.
2275 (mips_pop_frame): Handle generic dummy frames.
2276 (mips_gdbarch_init): When generic dummy frames, set
2277 use_generic_dummy_frames, push_dummy_frame to
2278 generic_push_dummy_frame, pc_in_call_dummy to
2279 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2280 generic_save_dummy_frame_tos.
2282 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2284 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2285 against TOP when TOP was explictly set.
2286 (generic_push_dummy_frame): Set TOP to zero.
2288 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2290 * event-loop.c (start_event_loop): Rename variable 'result' to
2291 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2293 2002-09-30 Keith Seitz <keiths@redhat.com>
2295 * gdb-events.sh (selected_thread_changed): New event.
2296 * gdb-events.c: Regenerated.
2297 * gdb-events.h: Regenerated.
2299 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2301 * MAINTAINERS: Add self to Write After Approval list.
2303 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2305 * disasm.c: New file.
2306 * disasm.h: New file.
2307 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2308 (compare_lines): Ditto.
2309 (dump_insns): Ditto.
2310 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2312 (do_assembly_only): Ditto.
2313 (do_disassembly): Renamed to gdb_disassembly and moved to
2314 disasm.c. Sdded uiout argument.
2315 * Makefile.in: Add new files. Reorder SFILES list. Update
2316 dependencies. Include libgdb.a later in the insight executable.
2318 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2320 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2321 bfd/elf64-alpha-fbsd.c.
2323 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2325 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2328 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2330 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2332 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2334 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2335 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2336 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2337 (S_msg_sig_post_reply): Ditto.
2339 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2341 * sh-tdep.c (sh_use_struct_convention): Use definition according
2343 (sh_push_arguments): Store in register with correct endianess.
2344 (sh_default_store_return_value): Ditto.
2345 (sh_gdbarch_init): Set sizeof long double to 8.
2347 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2349 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2350 Fix some whitespace problems.
2352 2002-09-27 David Carlton <carlton@math.stanford.edu>
2354 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2355 (mcore-tdep.o): Ditto.
2356 (ns32k-tdep.o): Ditto.
2357 (ns32knbsd-tdep.o): Ditto.
2359 (vax-tdep.o): Ditto.
2360 * cris-tdep.c: #include "gdb_string.h"
2361 * mcore-tdep.c: Ditto.
2362 * ns32k-tdep.c: Ditto.
2363 * ns32knbsd-tdep.c: Ditto.
2365 * vax-tdep.c: Ditto.
2367 2002-09-27 David Carlton <carlton@math.stanford.edu>
2369 * config/djgpp/fnchange.lst: Add entries for
2370 gdb/testsuite/gdb.c++/m-static files.
2372 2002-09-27 Jim Wilson <wilson@redhat.com>
2374 * MAINTAINERS: Add myself to the Write After Approval list.
2376 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2378 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2381 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2383 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2386 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2388 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2389 (rs6000_struct_return_address): Delete variable.
2390 (rs6000_store_struct_return): Update.
2391 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2392 deprecated_extract_struct_value_address.
2393 (rs6000_frame_align): New function.
2394 (rs6000_gdbarch_init): Set frame_align.
2396 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2398 From Grace Sainsbury <graces@redhat.com>:
2399 * Makefile.in (gdbtk-main.o): New target.
2400 (gdb.o): New target.
2402 (main.o): Update dependencies.
2403 (gdb$(EXEEXT)): Add gdb.o.
2404 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2405 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2406 (SUBDIR_GDBTK_CLEAN): Set.
2407 (install-gdbtk): Install the insight binary.
2408 (uninstall-gdbtk): New target.
2409 (all-gdbtk, clean-gdbtk): New rule.
2410 * top.c (use_windows): Default to zero.
2411 * main.c: Include "main.h".
2413 (struct captured_main_args): Delete.
2414 (gdb_main): New function.
2418 2002-09-25 Andrew Cagney <cagney@redhat.com>
2420 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2421 (frame_map_regnum_to_name): New function.
2422 (frame_map_name_to_regnum): New function.
2423 * frame.h (frame_map_name_to_regnum): Declare.
2424 (frame_map_regnum_to_name): Declare.
2425 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2426 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2427 * parse.c: Do not include "builtin-regs.h".
2428 (target_map_name_to_register): Delete function.
2429 (write_dollar_variable): Use frame_map_name_to_regnum.
2430 * parser-defs.h (target_map_name_to_register): Delete declaration.
2431 * expprint.c: Include "frame.h".
2432 (print_subexp): Use frame_map_regnum_to_name.
2433 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2434 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2436 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2438 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2439 wasn't saved, and the next innermost frame is a dummy, return the
2440 dummy frame's link register.
2442 2002-09-24 Jim Blandy <jimb@redhat.com>
2444 Fix from Paul Breed:
2445 * main.c (captured_main): Add a `break' after the case for 'b'.
2447 2002-09-24 Keith Seitz <keiths@redhat.com>
2449 * varobj.c (c_type_of_child): Use get_target_type instead
2450 of TYPE_TARGET_TYPE.
2452 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2454 * source.c (get_current_or_default_source_symtab_and_line): Remove
2456 (set_default_source_symtab_and_line): New function. Attempts to
2457 determine a source file to list lines from if one is not currently
2459 (get_current_source_symtab_and_line): Initialize sal.pc and
2461 (set_current_source_symtab_and_line): Mark argument as const.
2462 * source.h: Update declarations and comments.
2463 * linespec.c (decode_line_1): Replace call to removed routine above.
2464 * stack.c (print_frame_info_base): Ditto.
2465 * cli/cli-cmds.c (edit_command): Ditto.
2466 (list_command): Ditto.
2468 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2470 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2471 sal.pc and sal.end fields.
2472 (get_current_or_default_source_symtab_and_line): Ditto.
2473 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2474 so we do not cause a new source symtab to be searched for (reverting an
2475 unintentional change from the 2002-09-20 patch).
2476 * scm-lang.c (scm_unpac): Ditto.
2478 2002-09-21 Andrew Cagney <cagney@redhat.com>
2480 * complaints.c (symfile_explanations): Remove new-line from
2481 ``isolated_message''.
2482 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2483 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2485 2002-09-20 Nick Clifton <nickc@redhat.com>
2487 * NEWS: Announce that V850EA ISA is no longer supported.
2488 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2490 2002-09-20 David Carlton <carlton@math.stanford.edu>
2492 * Makefile.in (c-lang.o): Correct dependencies.
2493 (utils.o): Gather dependencies.
2495 * c-lang.c: #include "gdb_string.h"
2497 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2499 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2500 * cli/cli-cmds.c (list_command): New function. Implements the new
2502 (_init_cli_cmds): Add new command definition.
2503 * gdb.1: Document edit command.
2504 * doc/gdb.texinfo: Document edit command.
2506 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2508 * source.c: Make global variables current_source_symtab and
2509 current_source_line static.
2510 (list_command): Moved to cli/cli-cmds.c.
2511 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2512 (get_first_line_listed): New accessor function.
2513 (get_lines_to_list): New accessor function.
2514 (get_current_source_symtab_and_line): New function. Retrieves the
2515 position in the source code that we consider current.
2516 (get_current_or_default_source_symtab_and_line): New function.
2517 Like the above but attempts to determine a default position if one
2518 is not currently defined.
2519 (set_current_source_symtab_and_line): New function. Sets the source
2520 code position considered current and returns the previously set one.
2521 (clear_current_source_symtab_and_line): Reset stored information about
2522 a current source line.
2523 (_initialize_source): Remove registration for the "list" command and
2525 * source.h: Add declarations for the new functions above.
2526 * symtab.h: Remove declarations for the global variables mentioned
2528 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2529 obtain current source line.
2530 * linespec.c (decode_line_1): Ditto.
2531 * macroscope.c (default_macro_scope): Ditto.
2532 * scm-lang.c (scm_unpac): Ditto.
2533 * stack.c (print_frame_info_base): Ditto.
2534 * symfile.c (clear_symtab_users): Ditto.
2535 * symtab.c (decode_line_spec): Ditto.
2536 * cli/cli-cmds.c (list_command): Moved here from source.c.
2537 (ambiguous_line_spec): Moved here from source.c.
2538 (_init_cli_cmds): Add definition for "list" and its alias.
2539 * Makefile.in: Update dependencies.
2541 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2543 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2544 with what gcc thinks is correct.
2546 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2548 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2549 multiple register push instruction.
2551 2002-09-19 Jim Blandy <jimb@redhat.com>
2553 Add support for distinct host and target character sets.
2554 * charset.c, charset.h: New files.
2555 * c-exp.y: #include "charset.h".
2556 (yylex): Convert character and string literals to the target
2557 character set, before returning them as the semantic value of the
2559 * c-lang.c: #include "charset.h".
2560 (c_emit_char): Use charset-specific methods to recognize
2561 characters with backslash escape forms, to decide which characters
2562 to print literally and which to print using numeric escape
2563 sequences, and to convert target characters to host characters
2565 * utils.c: #include "charset.h".
2566 (no_control_char_error): New function.
2567 (parse_escape): Use charset-specific methods to recognize
2568 backslash escapes, parse `control character' notation, and convert
2569 characters from the host character set to the target character set.
2570 * configure.in: Set the default host character set.
2571 Check where to find iconv, and what its argument types might be.
2572 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2573 * Makefile.in (SFILES): List charset.c.
2574 (COMMON_OBS): List charset.o.
2575 (charset.o): New rule.
2576 (charset_h): New header dependency variable.
2577 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2578 (LIBICONV): New variable, set by configure.
2579 (CLIBS): Include $(LIBICONV) here.
2580 * aclocal.m4, config.in, configure: Regenerated.
2582 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2584 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2587 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2589 * gdb_mbuild.sh: New file.
2591 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2593 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2595 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2597 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2598 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2599 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2600 valops.c, value.h: Revert previous change.
2602 2002-09-18 Michael Snyder <msnyder@redhat.com>
2604 Preliminary support for Objective-C:
2605 * defs.h (language_objc): New enum value.
2606 (puts_filtered_tabular): Declaration only, exported from utils.c.
2607 (skip_quoted): Delete, declared in completer.h.
2608 * c-exp.y: Include completer.h.
2611 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2612 New operator enum values.
2613 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2614 * language.c (binop_result_type): Handle language_objc case.
2615 (integral_type, character_type, string_type, boolean_type,
2616 structured_type, binop_type_check): Ditto.
2617 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2618 (struct objc_specific): Add to general_symbol_info.
2619 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2620 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2621 * parser-defs.h (struct objc_class_str): New struct type.
2622 (start_msglist, end_msglist, add_msglist): Declaration only,
2623 exported from objc-lang.c.
2624 * value.h (value_of_local, value_nsstring,
2625 call_function_by_hand_expecting_type): Exported from valops.c.
2626 * valops.c (find_function_addr): Export.
2627 (call_function_by_hand_expecting_type): New function.
2628 (value_of_local): New function.
2629 * symfile.c (init_filename_language_table): Add ".m" extension
2631 * utils.c (puts_filtered_tabular): New function.
2632 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2633 (set/show demangle): Extend help-string to refer to ObjC.
2634 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2635 * stabsread.c (symbol_reference_defined): Objective-C symbols
2636 may contain colons: make allowances when scanning stabs strings
2638 (objc_find_colon): New function.
2639 * printcmd.c (address_info): If language == objc then print
2640 "self" instead of "this".
2641 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2642 OP_NSSTRING, and OP_SELF.
2643 (prefixify_subexp): Ditto.
2644 * source.c (print_source_lines): Mention objc in comment.
2645 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2648 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2650 * complaints.h: Update copyright.
2651 (struct complaints): Declare.
2652 (struct complaint): Make `message' constant.
2653 (internal_complaint): Declare.
2654 (complaint): Declare.
2655 (complaint_root): Delete declaration.
2656 (symfile_complaints): Delete declaration.
2657 (struct complaints): Add opaque declaration.
2658 (clear_complaints): Add a complaints parameter.
2659 * complaints.c: Update copyright.
2660 (enum complaint_series): Define.
2661 (complaint_root): Delete.
2662 (struct complaints): Define.
2663 (complaint_sentinel, symfile_complaint_book): New variables.
2664 (symfile_explanations, symfile_complaints): New variables.
2666 (get_complaints): New function.
2667 (vcomplaint): New function.
2668 (complaint): New function.
2669 (internal_complaint): New function.
2670 (complain): Call vcomplain with symfile_complaint.
2671 (clear_complaints): Rewrite.
2672 (_initialize_complaints): Use add_setshow_command.
2673 * Makefile.in (complaints.o): Update dependencies.
2674 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2675 to call to clear_complaints.
2676 (new_symfile_objfile, reread_symbols): Ditto.
2677 (oldsyms_complaint): Delete.
2678 (empty_symtab_complaint, unknown_option_complaint): Delete.
2679 (free_named_symtabs): Use complaint instead of complain.
2681 2002-09-18 Michael Snyder <msnyder@redhat.com>
2683 Contributed by Apple Computer, Inc. Merged with current sources
2684 by Adam Fedor <fedor@doc.com> [cagney].
2686 * objc-lang.c: First clean-up round: comments, indentation.
2687 * objc-lang.h: Ditto.
2688 * objc-lang.y: Ditto.
2690 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2692 * maint.c (maintenance_internal_error): Print the parameter as the
2694 (maintenance_internal_warning): New function.
2695 (_initialize_maint_cmds): Add command `maint internal-warning'.
2697 * defs.h (internal_warning, internal_vwarning): Declare.
2698 * utils.c (struct internal_problem): Define.
2699 (internal_vproblem): New function.
2700 (internal_warning): New function.
2701 (internal_vwarning): New function.
2702 (internal_warning_problem, internal_error_problem): New variables.
2703 (internal_verror): Just call internal_vproblem.
2705 2002-09-18 Michael Snyder <msnyder@redhat.com>
2707 * objc-lang.c: New file, support for Objective-C.
2708 Preliminary check-in, not yet integrated into gdb.
2709 * objc-lang.h: New file.
2710 * objc-exp.y: New file.
2712 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2714 * infrun.c (signal_stop_update): Convert definition to ISO C.
2715 (signal_print_update): Ditto.
2716 (signal_pass_update): Ditto.
2717 * inflow.c (terminal_save_ours): Ditto.
2719 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2722 * config/djgpp/fnchange.lst: Handle name clashes between
2723 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2726 * i386-linux-tdep.h: Fix tipo.
2728 2002-09-18 Adam Fedor <fedor@gnu.org>
2730 * MAINTAINERS: Add myself to the Write After Approval list.
2732 2002-09-18 Jim Blandy <jimb@redhat.com>
2734 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2735 texthigh and textlow to reader-specific structs caused
2736 objfile_relocate to miss them. This is fixable, but the work that
2737 the change was supposed to prepare GDB for never got done anyway.
2739 2002-09-18 David Carlton <carlton@math.stanford.edu>
2741 * MAINTAINERS: Alphabetize Write After Approval list.
2743 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2746 * values.c (value_static_field): Call read_var_value.
2748 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2750 * valops.c (hand_function_call): Align the initial stack pointer
2751 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2752 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2754 * mips-tdep.c (mips_frame_align): New function.
2755 (mips_gdbarch_init): Set frame_align.
2756 * gdbarch.sh (FRAME_ALIGN): New method.
2757 * gdbarch.h, gdbarch.c: Re-generate.
2759 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2761 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2764 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2766 * NEWS: Mention that MIPS $fp behavior changed.
2767 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2768 reference to FP_REGNUM.
2769 (mipsnbsd_cannot_store_register): Ditto.
2770 * mips-linux-nat.c: Update copyright.
2771 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2772 (mips_linux_cannot_store_register): Ditto.
2773 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2774 * config/mips/tm-mips.h: Update copyright.
2775 (FP_REGNUM): Delete macro.
2776 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2777 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2778 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2779 (mips_r3041_reg_names, mips_r3051_reg_names)
2780 (mips_r3081_reg_names): Replace "fp" with "".
2783 2002-09-17 Theodore A. Roth <troth@verinet.com>
2785 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2786 generic_read_register_dummy() (PR gdb/703).
2787 (avr_push_return_address): #if 0 out unused vars.
2788 (avr_gdbarch_init): Enable use of avr_push_return_address().
2790 2002-09-17 Michael Snyder <msnyder@redhat.com>
2792 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2793 RTE will take care of it.
2795 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2797 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2798 invalid, return SP_REGNUM.
2800 2002-09-17 Michael Snyder <msnyder@redhat.com>
2802 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2803 point registers without sign extension.
2805 2002-09-17 Andrew Cagney <cagney@redhat.com>
2807 * blockframe.c (deprecated_read_register_dummy): Rename
2808 generic_read_register_dummy.
2809 * frame.c (frame_unwind_signed_register): New function.
2810 (frame_unwind_unsigned_register): New function.
2811 * frame.h (frame_unwind_signed_register): Declare.
2812 (frame_unwind_unsigned_register): Declare.
2813 (deprecated_read_register_dummy): Rename
2814 generic_read_register_dummy.
2816 * h8300-tdep.c (h8300_frame_chain): Update.
2817 (h8300_frame_saved_pc): Update.
2818 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2819 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2820 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2821 (s390_frame_chain): Update.
2822 * v850-tdep.c (v850_find_callers_reg): Update.
2823 (v850_frame_saved_pc): Update.
2824 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2825 (m32r_find_callers_reg): Update.
2826 (m32r_frame_saved_pc): Update.
2827 * sh-tdep.c (sh_find_callers_reg): Update.
2828 (sh64_get_saved_pr): Update.
2829 (sh_init_extra_frame_info): Update.
2830 (sh_init_extra_frame_info): Update.
2831 (sh64_init_extra_frame_info): Update.
2832 (sh64_init_extra_frame_info): Update.
2833 * mcore-tdep.c (mcore_find_callers_reg): Update.
2834 (mcore_frame_saved_pc): Update.
2835 (mcore_init_extra_frame_info): Update.
2836 * i386-tdep.c (i386_frame_saved_pc): Update.
2837 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2838 (ia64_init_extra_frame_info): Update.
2839 (ia64_init_extra_frame_info): Update.
2840 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2841 * cris-tdep.c (cris_init_extra_frame_info): Update.
2842 * avr-tdep.c (avr_frame_chain): Update.
2843 (avr_init_extra_frame_info): Update.
2844 (avr_frame_saved_pc): Update.
2845 * arm-tdep.c (arm_find_callers_reg): Update.
2846 (arm_init_extra_frame_info): Update.
2847 (arm_frame_saved_pc): Update.
2849 2002-09-17 Tom Tromey <tromey@redhat.com>
2851 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2854 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2856 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2857 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2859 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2862 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2864 * osfsolib.c: Remove file, replaced by solib-osf.c.
2865 * Makefile.in: Remove compilation rules for osfsolib.c.
2867 2002-09-16 David Carlton <carlton@math.stanford.edu>
2869 * cp-valprint.c (cp_print_class_method): Correct args to
2870 check_stub_method_group.
2872 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2874 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2875 `set architecture'. Unify naming convention of functions.
2876 (h8300_skip_prologue): Improve prologue analysis.
2877 (h8300_push_arguments): Rewritten to more closely match GCC's
2878 bizarre argument-passing behavior, along with the comment describing
2880 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2881 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2882 sim, remote-e7000.c, remote-hms.c and remote.c
2884 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2886 * i386-tdep.c (gdb_print_insn_i386): Removed.
2887 (i386_print_insn): New function.
2888 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2889 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2892 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2894 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2897 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2899 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2900 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2901 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2903 2002-09-13 Christopher Faylor <cgf@redhat.com>
2905 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2907 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2909 * gdbtypes.c (check_stub_method): Make static.
2910 (check_stub_method_group): New function.
2911 * gdbtypes.h: Update prototypes.
2912 * cp-support.c: New file.
2913 * cp-support.h: New file.
2915 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2916 (update_method_name_from_physname): New function.
2917 (read_member_functions): Correct method names for operators
2918 and v3 constructors/destructors. Separate v2 constructors and
2920 * Makefile.in (stabsread.o): Update dependencies.
2921 (SFILES): Add cp-support.c.
2922 (COMMON_OBS): Add cp-support.o.
2923 (cp_support_h, cp-support.o): Add.
2925 * cp-valprint.c (cp_print_class_method): Call
2926 check_stub_method_group instead of check_stub_method. Remove
2928 * p-valprint.c (pascal_object_print_class_method): Likewise.
2929 * valops.c (search_struct_method): Likewise.
2930 (find_method_list, value_struct_elt_for_reference): Likewise.
2932 2002-09-13 Andrew Cagney <cagney@redhat.com>
2934 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2935 * gdbarch.h, gdbarch.c: Regenerate.
2937 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2939 * frame.c (find_saved_register): Delete function.
2940 * frame.h (find_saved_register): Delete declaration.
2943 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2945 * mips-tdep.c (read_next_frame_reg): Re-hack using
2946 frame_register_unwind.
2948 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2950 * mips-tdep.c (mips_get_saved_register): Re-hack using
2951 frame_register_unwind.
2953 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2955 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2956 vector. Will be useful for Interix.
2957 * gdbarch.h, gdbarch.c: Regenerate.
2959 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2960 name of the malloc function by NAME_OF_MALLOC.
2962 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2964 * value.h (find_function_in_inferior): Add const keyword to
2965 one of the parameters. Allows us to invoke this function with
2967 * valops.c (find_function_in_inferior): Likewise.
2969 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2971 * exec.c (xfer_memory): Fix compilation warning with old versions
2973 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2975 2002-09-12 David Carlton <carlton@math.stanford.edu>
2977 * symtab.h: Run through gdb_indent.h.
2978 Add 2002 to Copyright year list.
2980 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2982 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2984 * MAINTAINERS: Add myself to write after approval list.
2986 2002-09-11 J. Brobecker <brobecker@gnat.com>
2988 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2990 2002-09-11 J. Brobecker <brobecker@gnat.com>
2992 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2995 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2997 * procfs.c (do_detach): Clear current signal, not just fault.
2998 Corrects problem with breakpoint trap signal leaking to detached
3001 2002-09-10 Michael Snyder <msnyder@redhat.com>
3003 * buildsym.c (finish_block): Protect against null pointer.
3005 2002-09-10 Andrew Cagney <cagney@redhat.com>
3007 * infcmd.c (default_print_registers_info): Send all output to
3008 ``file'' instead of ``gdb_stdout''.
3010 2002-09-10 Michael Snyder <msnyder@redhat.com>
3012 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3013 LONGEST, and use signed register read (addresses are sign-
3016 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3018 * event-loop.c (gdb_do_one_event): Make public.
3019 * event-loop.h (gdb_do_one_event): Declare.
3021 2002-09-10 Jeff Law <law@redhat.com>
3023 * infttrace.c (child_resume): Simplify and rework to avoid
3026 2002-09-09 Fred Fish <fnf@intrinsity.com>
3028 * printcmd.c (print_scalar_formatted): "len" is the number of
3029 target bytes, NOT the number of target bits.
3031 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3033 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3034 * top.c (init_main): Set rl_terminal_name.
3036 2002-09-08 Aidan Skinner <aidan@velvet.net>
3038 * ada-lang.c (ada_array_bound, ada_type_match,
3039 _initialize_ada_language): Fix K&R definitions.
3040 * ada-tasks.c (get_current_task): Fix K&R definitions.
3041 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3043 2002-09-07 Christopher Faylor <cgf@redhat.com>
3045 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3048 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3050 * i386-tdep.c (i386_register_virtual_type,
3051 i386_register_convertible, i386_register_convert_to_virtual,
3052 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3053 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3054 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3055 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3056 Don't set push_arguments twice.
3058 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3059 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3060 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3061 sigtramp_end to NULL.
3062 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3064 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3066 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3069 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3070 * gdbarch.h, gdbarch.c: Re-generate.
3071 * blockframe.c (find_pc_sect_partial_function): Convert to use
3072 SIGTRAMP_START_P predicate.
3074 2002-09-05 Michael Snyder <msnyder@redhat.com>
3076 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3077 generic_dummy_frame method and old method. Also distinguish
3078 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3079 (arm_extract_return_value): Use new regcache method.
3081 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3082 adjustment that doesn't conform to the ABI.
3083 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3084 saved regcache, not from current regcache.
3086 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3088 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3091 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3093 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3094 if arm_apcs_32 is false.
3096 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3098 GDB 5.3 branch created.
3100 2002-09-03 Theodore A. Roth <troth@verinet.com>
3102 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3103 generic_unwind_get_saved_register.
3105 2002-09-03 David Carlton <carlton@math.stanford.edu>
3107 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3108 argument (PR gdb/653). Update call to smash_to_method_type.
3109 (read_structure_scope): Update call to dwarf2_add_member_fn.
3111 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3113 * x86-64-linux-tdep.c: Include gdb_string.h
3114 * x86-64-linux-nat.c: Ditto.
3116 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3118 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3119 when YYDEBUG is set to 1.
3120 * c-exp.y: Likewise.
3121 * f-exp.y: Likewise.
3122 * jv-exp.y: Likewise.
3123 * m2-exp.y: Likewise.
3124 * p-exp.y: Likewise.
3126 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3128 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3130 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3131 solib_svr4_fetch_link_map_offsets to
3132 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3133 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3134 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3135 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3136 solib-svr4.o, and solib-legacy.o.
3137 * config/i386/tm-nbsd.h: Include solib.h.
3139 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3141 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3142 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3143 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3144 comment noting that this needs its own target configuration.
3145 * config/i386/nbsd.mt: New file.
3146 * config/i386/nbsdaout.mt: Remove.
3147 * config/i386/nbsdelf.mt: Ditto.
3148 * config/i386/tm-nbsdaout.h: Ditto.
3150 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3152 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3153 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3154 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3156 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3157 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3158 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3160 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3162 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3163 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3164 * i386-tdep.h (i386bsd_init_abi): New prototype.
3165 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3166 function declaration.
3167 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3168 for NetBSD-a.out or NetBSD-ELF.
3169 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3170 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3171 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3172 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3174 (i386nbsd_pc_in_sigtramp): New function.
3175 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3176 i386nbsd_pc_in_sigtramp.
3177 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3178 and i386nbsdelf_init_abi OS ABI handlers.
3179 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3180 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3182 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3184 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3185 registers if the target really has them.
3187 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3189 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3192 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3194 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3196 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3197 (alphanbsd_skip_sigtramp_frame): New functions.
3198 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3199 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3200 to alphanbsd_sigcontext_addr.
3202 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3204 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3206 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3207 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3208 nbsd_pc_in_sigtramp.
3209 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3210 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3211 * nbsd-tdep.c: Include gdb_string.h.
3212 (nbsd_pc_in_sigtramp): New function.
3213 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3214 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3215 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3216 ppcnbsd_pc_in_sigtramp.
3217 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3218 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3219 shnbsd_pc_in_sigtramp.
3220 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3221 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3222 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3224 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3226 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3227 watchpoints to NULL.
3228 (insert_breakpoints): set val field of watchpoints if NULL.
3231 2002-08-29 Jim Blandy <jimb@redhat.com>
3233 * symtab.c (lookup_symbol_aux): In the cases where we find a
3234 minimal symbol of an appropriate name and use its address to
3235 select a symtab to read and search, use `name' (as passed to us)
3236 as the demangled name when searching the symtab's global and
3237 static blocks, not the minsym's name.
3239 2002-08-29 Keith Seitz <keiths@redhat.com>
3241 * stack.c (print_frame_info_base): Always set current_source_symtab
3242 and current_source_line.
3244 2002-08-29 Donn Terry <donnte@microsoft.com>
3246 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3248 2002-08-28 Keith Seitz <keiths@redhat.com>
3250 * stack.c (select_frame): Add FIXME concerning selected-frame
3252 (select_frame_command): Send selected-frame-level-changed
3253 event notification, but only if the level actually changed.
3254 (up_silently_base): Add selected-frame-level-changed event
3256 (down_silently_base): Likewise.
3258 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3260 * Makefile.in: Update dependencies for all gdb/*.c files.
3262 2002-08-27 Tom Tromey <tromey@redhat.com>
3264 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3265 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3266 Update dependencies.
3267 * i387-tdep.c: Include gdb_string.h.
3268 * osabi.c: Likewise.
3269 * i386-linux-nat.c: Likewise.
3270 * lin-lwp.c: Likewise.
3271 * ax-gdb.c: Likewise.
3272 * signals/signals.c: Likewise.
3273 * jv-valprint.c: Likewise.
3274 * p-lang.c: Likewise.
3275 * c-valprint.c: Likewise.
3276 * cp-abi.c: Likewise.
3278 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3280 * cli/cli-script.h (copy_command_lines): Export.
3281 * breakpoint.c: Include cli/cli-script.h.
3282 * Makefile.in (breakpoint.o): Update dependencies.
3284 2002-08-26 Michael Snyder <msnyder@redhat.com>
3286 * breakpoint.c (insert_breakpoints): Protect all references
3287 to 'process_warning'. Shorten long lines.
3289 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3291 * cli/cli-script.c (copy_command_lines): New function.
3292 * defs.h (copy_command_lines): Export.
3293 * testsuite/gdb.base/commands.exp: New tests for commands
3294 attached to a temporary breakpoint, and for commands that
3295 delete the breakpoint they are attached to.
3297 2002-08-26 Michael Snyder <msnyder@redhat.com>
3299 * breakpoint.c (bpstat_stop_status): Instead of copying the
3300 pointer to the breakpoint commands struct, make a new copy
3301 of the struct and point to that.
3302 (bpstat_clear): Free the commands struct.
3303 (bpstat_clear_actions): Free the commands struct.
3304 (bpstat_do_actions): Free the command actions. Also execute
3305 the local cleanups, instead of deleting them.
3306 (delete_breakpoint): Leave the commands field of the bpstat
3307 chain alone -- it will be freed later.
3309 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3311 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3312 deleted in 2002-08-20 commit. This function is still used by
3315 2002-08-26 Keith Seitz <keiths@redhat.com>
3317 * gdb-events.sh: Add selected-frame-level-changed event.
3318 * gdb-events.c: Regenerated.
3319 * gdb-events.h: Regenerated.
3321 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3324 * inflow.c (terminal_save_ours): New function to save terminal
3326 * inferior.h (terminal_save_ours): Declare.
3327 * target.c (debug_to_terminal_save_ours): New function.
3328 (cleanup_target): Defaults to_terminal_save_ours.
3329 (update_current_target): Inherit to_terminal_save_ours.
3330 (setup_target_debug): Set to_terminal_save_ours.
3331 * target.h (target_terminal_save_ours): New to save terminal settings.
3332 (target_ops): New member to_terminal_save_ours.
3333 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3334 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3335 * inftarg.c (init_child_ops): Likewise.
3336 * m3-nat.c (init_m3_ops): Likewise.
3337 * procfs.c (init_procfs_ops): Likewise.
3338 * wince.c (init_child_ops): Likewise.
3339 * win32-nat.c (init_child_ops): Likewise.
3340 * sol-thread.c (init_sol_thread_ops): Likewise.
3342 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3344 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3345 use regcache_* functions.
3346 (i386_gdbarch_init): Set store_return_value instead of
3347 deprecated_store_return_value.
3349 * regcache.c (regcache_raw_write_signed,
3350 regcache_raw_write_unsigned): New functions.
3351 * regcache.h (regcache_raw_write_signed,
3352 regcache_raw_write_unsigned): New prototypes.
3354 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3356 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3357 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3358 source file dependencies. Cleanup corresponding generator rules.
3360 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3362 * regcache.h (register_offset_hack): Declare.
3363 (regcache_cooked_read_using_offset_hack): Declare.
3364 (regcache_cooked_write_using_offset_hack): Declare.
3366 * regcache.c (register_offset_hack): New function.
3367 (regcache_cooked_read_using_offset_hack): New function.
3368 (regcache_cooked_write_using_offset_hack): New function.
3369 (regcache_dump): Check that the registers, according to their
3370 offset, are packed hard against each other.
3371 (cooked_xfer_using_offset_hack): New function.
3373 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3375 * regcache.c (struct regcache_descr): Add field register_type.
3376 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3378 (init_regcache_descr): Initialize register_type. Pass the descr
3379 to init_legacy_regcache_descr. Use register_type instead of
3380 REGISTER_VIRTUAL_TYPE.
3381 (register_type): New function.
3382 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3383 * regcache.h (register_type): Declare.
3385 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3387 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3388 instead of deprecated_store_return_value. Fix fallout from
3389 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3391 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3393 * regcache.c (max_register_size): New function.
3394 (init_legacy_regcache_descr): Ensure that max_register_size is
3395 large enough for REGISTER_VIRTUAL_SIZE.
3396 * regcache.h (max_register_size): Declare.
3398 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3400 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3402 (e500_extract_return_value): Change type of valbuf pointer to
3405 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3407 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3410 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3411 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3412 long long) to prevent compiler warning on 64-bit systems.
3414 2002-08-23 Andrew Cagney <cagney@redhat.com>
3416 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3417 (DEPRECATED_STORE_RETURN_VALUE): New method.
3418 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3419 * gdbarch.h, gdbarch.c: Re-generate.
3421 * values.c (set_return_value): Pass current_regcache to
3423 * arch-utils.h (legacy_store_return_value): Declare.
3424 * arch-utils.c (legacy_store_return_value): New function.
3425 (legacy_extract_return_value): Update parameters.
3427 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3429 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3430 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3431 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3432 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3433 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3434 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3435 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3436 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3437 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3438 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3441 * i386-tdep.c (i386_extract_return_value): Update.
3442 * arch-utils.c (legacy_extract_return_value): Update.
3443 * frv-tdep.c (frv_gdbarch_init): Update.
3444 * cris-tdep.c (cris_gdbarch_init): Update.
3445 * d10v-tdep.c (d10v_gdbarch_init): Update.
3446 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3447 * m68k-tdep.c (m68k_gdbarch_init): Update.
3448 * mcore-tdep.c (mcore_gdbarch_init): Update.
3449 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3450 * s390-tdep.c (s390_gdbarch_init): Update.
3451 * sparc-tdep.c (sparc_gdbarch_init): Update.
3452 * sh-tdep.c (sh_gdbarch_init): Update.
3453 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3454 * v850-tdep.c (v850_gdbarch_init): Update.
3455 * avr-tdep.c (avr_gdbarch_init): Update.
3456 * ia64-tdep.c (ia64_gdbarch_init): Update.
3457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3458 * vax-tdep.c (vax_gdbarch_init): Update.
3459 * alpha-tdep.c (alpha_gdbarch_init): Update.
3460 * arm-tdep.c (arm_gdbarch_init): Update.
3461 * mips-tdep.c (mips_gdbarch_init): Update.
3462 * i386-tdep.c (i386_gdbarch_init): Update.
3464 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3466 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3467 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3469 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3471 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3474 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3476 * infrun.c (handle_inferior_event): Move a comment outside of a
3477 function call, in order to avoid indent reformatting this part
3478 of the code in an unreadable way.
3480 2002-08-23 Grace Sainsbury <graces@redhat.com>
3482 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3483 when breakpoints fail. Move general breakpoint error messages to
3485 * breakpoint.c (insert_breakpoints): Change warnings when
3486 breakpoints are nto inserted to specify the type. Remove call to
3487 memory_error when hardware breakpoints can't be inserted. Remove
3488 multiple calls to warning so all messages are sent to the user at
3490 (delete_breakpoints): Make insert error messsages more explicit.
3492 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3494 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3495 gdbserver/ChangeLog.
3497 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3499 * i386-tdep.c: Include "objfiles.h".
3500 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3501 skip_trampoline_code.
3502 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3503 (CPLUS_MARKER): Define to '.'.
3505 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3507 (linux_corefile_thread_callback): Increase args->num_notes.
3508 (linux_make_note_section): Initialize thread_args.num_notes, and
3509 use it to determine whether notes for any threads were created.
3511 2002-08-23 Donn Terry <donnte@microsoft.com>
3513 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3514 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3516 (write_with_trace): Conditionalize out the switch branch handling
3517 PCSHOLD if the corresponding macro is not defined. Likewise for
3518 PRSABORT and PRSTOP.
3519 This change will be needed by the Interix port.
3521 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3523 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3524 write_register wherever possible instead of manipulating the
3525 register bytes directly.
3526 Assign VALUE_CONTENTS to a variable and use that.
3527 The GPR numbers are now dependent on the architecture.
3529 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3531 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3533 (skip_prologue): Add support for BookE/e500 instructions.
3534 (e500_extract_return_value): New function.
3535 (frame_get_saved_regs): Add support for saving ev registers and
3537 (e500_store_return_value): New function.
3538 (rs6000_gdbarch_init): Move up default intializations of
3539 deprecated_extract_return_value and store_return_value. Overwrite
3540 init of store_return_value with e500 specific version.
3541 Set extract_return_value for e500.
3543 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3545 * blockframe.c (generic_call_dummy_register_unwind): Use
3546 regcache_cooked_read to catch cases in which the variable is
3547 stored in a pseudo register.
3549 2002-08-22 Andrew Cagney <cagney@redhat.com>
3551 * NEWS: Mention that the i960 has been made obsolete.
3552 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3554 (remote-nrom.o): Obsolete target.
3555 (remote-nindy.o, i960-tdep.o): Ditto.
3556 * remote-nrom.c: Make file obsolete.
3557 * remote-nindy.c, remote-vx960.c: Ditto.
3558 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3559 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3560 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3561 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3562 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3563 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3564 i960-*-vxworks* obsolete.
3565 * MAINTAINERS: Note that the i960 is obsolete.
3567 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3569 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3570 detach to allow reinitialization.
3572 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3574 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3577 2002-08-22 Jim Blandy <jimb@redhat.com>
3579 * coffread.c (coff_symfile_read): Don't try to read the line
3580 number table from disk if the image file doesn't have a symbol
3581 table; we'll never actually look at the info anyway, and Windows
3582 ships DLL's with bogus file offsets for the line number data.
3584 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3586 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3589 2002-08-21 Michael Snyder <msnyder@redhat.com>
3591 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3592 (MSYMBOL_SIZE): Replace macro with function.
3593 (DEFAULT_MIPS_TYPE): Delete unused macro.
3594 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3595 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3597 2002-08-21 Jim Blandy <jimb@redhat.com>
3599 * valops.c (value_cast): Simplify and correct logic for doing a
3600 static cast from a pointer to a base class to a pointer to a
3603 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3605 * infcmd.c (default_print_registers_info): Replace
3607 (registers_info): Use gdbarch_print_registers_info instead of
3609 * inferior.h (default_print_registers_info): Replace
3611 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3612 (DO_REGISTERS_INFO): Change to a predicate function.
3613 * gdbarch.h, gdbarch.c: Regenerate.
3615 2002-08-21 Keith Seitz <keiths@redhat.com>
3617 * gdb-events.sh: Add target-changed event.
3618 * gdb-events.c: Regenerated.
3619 * gdb-events.c: Regenerated.
3620 * valops.c (value_assign): Add target-changed event notification
3621 to inlval_register, lval_memory, and lval_reg_frame_relative.
3623 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3625 * NEWS: Add an entry regarding the improvement of the next/step
3626 operation on Alpha Tru64 multi-processor machines.
3628 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3630 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3632 * Makefile.in: Update all _h macro definitions.
3633 * Makefile.in (install-gdbtk): Move to install section.
3634 (rdi-share/libangsd.a): Move to end of file.
3636 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3638 * frame.c (frame_register_unwind): When a register, set addrp to
3639 the register's byte.
3641 2002-08-20 Michael Snyder <msnyder@redhat.com>
3643 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3644 used locally, so move them from the target machine header to here.
3645 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3646 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3648 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3650 2002-08-20 Andrew Cagney <cagney@redhat.com>
3652 * NEWS: Mention that the Apollo line was made obsolete.
3653 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3654 m68*-hp-hpux* obsolete.
3655 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3656 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3657 * buildsym.c (make_blockvector): Make static.
3658 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3659 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3660 (ALLDEPFILES): Remove dstread.c.
3661 (dstread.o): Obsolete make rule.
3662 * dstread.c: Makefile obsolete.
3664 * config/m68k/hp300hpux.mt: Ditto.
3665 * config/m68k/hp300hpux.mh: Ditto.
3666 * config/m68k/hp300bsd.mt: Ditto.
3667 * config/m68k/hp300bsd.mh: Ditto.
3668 * config/m68k/apollo68b.mt: Ditto.
3669 * config/m68k/apollo68v.mh: Ditto.
3670 * config/m68k/apollo68b.mh: Ditto.
3672 2002-08-20 Michael Snyder <msnyder@redhat.com>
3674 * mips-tdep.c (mips_in_return_stub): Make static.
3675 (mips_gdbarch_init): Set in_solib_return_trampoline.
3676 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3678 2002-08-20 Michael Snyder <msnyder@redhat.com>
3680 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3681 * gdbarch.c, gdbarch.h: Regenerate.
3682 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3684 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3686 2002-08-20 Michael Snyder <msnyder@redhat.com>
3688 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3689 (mips_gdbarch_init): Set skip_trampoline_code,
3690 in_solib_call_trampoline.
3691 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3692 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3694 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3696 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3698 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3699 vector type for ev registers.
3700 (e500_pseudo_register_read): New function.
3701 (e500_pseudo_register_write): New function.
3702 (e500_dwarf2_reg_to_regnum): New function.
3703 (PPC_UISA_NOFP_SPRS): New macro.
3704 (PPC_EV_REGS): New macro.
3705 (PPC_GPRS_PSEUDO_REGS): New macro.
3706 (registers_e500): New register set for e500.
3707 (variants): Add e500 variant.
3708 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3709 before setting architectural dependent variations. Initialize ev
3710 registers numbers. Add case for e500 architecture. Set the
3711 number of pseudo registers.
3713 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3715 * rs6000-tdep.c: Clean up comments.
3717 2002-08-20 Andrew Cagney <cagney@redhat.com>
3719 * h8300-tdep.c: Re-indent file.
3721 2002-08-20 Jim Blandy <jimb@redhat.com>
3723 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3726 2002-08-20 Keith Seitz <keiths@redhat.com>
3728 * breakpoints.c (watch_command_1): Use internal breakpoint
3729 when setting a watchpoint_scope breakpoint.
3731 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3733 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3734 (build_builtin_type_vec64i): Ditto.
3735 (build_builtin_type_vec128): Ditto.
3736 (build_builtin_type_vec128i): Ditto.
3738 2002-08-19 Michael Snyder <msnyder@redhat.com>
3740 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3741 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3742 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3743 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3744 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3745 CALL_DUMMY_ADDRESS): Delete.
3746 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3747 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3748 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3749 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3750 push_return_address.
3751 (mips_register_raw_size, mips_eabi_use_struct_convention,
3752 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3753 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3754 mips_init_extra_frame_info, mips_eabi_push_arguments,
3755 mips_n32n64_push_arguments, mips_push_return_address,
3756 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3757 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3759 2002-08-19 Michael Snyder <msnyder@redhat.com>
3761 * mips-tdep.c (mips_frame_num_args): New function.
3762 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3763 frame_saved_pc, frame_args_address, frame_locals_address,
3764 frame_num_args, and frame_args_skip.
3765 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3766 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3767 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3768 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3770 2002-08-20 Michael Snyder <msnyder@redhat.com>
3772 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3773 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3774 * mips-tdep.c (mips_store_struct_return): New function.
3775 (mips_extract_struct_value_address): New function.
3776 (mips_gdbarch_init): Set store_struct_return and
3777 extract_struct_value_address.
3779 2002-08-20 David Carlton <carlton@math.stanford.edu>
3781 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3782 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3783 (read_file_scope): Check that line_header is nonzero before
3784 decoding macro information.
3786 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3788 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3789 flag the general-purpose registers as floating-point on targets
3790 that don't support the floating-point registers.
3792 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3794 * rs6000-tdep.c (altivec_register_p): Delete.
3795 (rs6000_do_altivec_registers): Delete.
3796 (rs6000_altivec_registers_info): Delete.
3797 (rs6000_do_registers_info): Delete.
3798 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3799 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3801 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3803 * infcmd.c (do_registers_info): Print vector registers in hex
3805 (print_vector_info): Check that printing registers
3807 (print_float_info): Ditto.
3809 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3811 * mips-tdep.c (mips_gdbarch_init): Update.
3812 (mips_o32_extract_return_value): Rewrite.
3813 (mips_o32_store_return_value): Rewrite.
3814 (mips_o32_xfer_return_value): New function.
3815 (mips_xfer_register): Tweak debug print message. Allow for
3816 buf_offset when dumping the value transfered.
3818 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3820 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3821 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3822 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3823 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3824 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3826 2002-08-14 Michael Snyder <msnyder@redhat.com>
3828 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3830 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3832 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3834 (P): New macro to define a register as a pseudo register.
3835 (R, R4, R8, R16, FR32, R64, R0): Updated.
3836 (struct variant): Add new fields for number of pseudo registers
3837 and number of total registers.
3838 (tot_num_registers): New macro replacing....
3839 (num_registers): ...deleted macro.
3840 (num_registers): New function.
3841 (num_pseudo_registers): New function.
3842 (variants): Update all variants to intialize new fields correctly.
3843 Postpone initialization of number of pseudo regs and real regs.
3844 (init_variants): New function.
3845 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3848 2002-08-19 David Carlton <carlton@math.stanford.edu>
3850 * valops.c (search_struct_field): Change error message to treat
3851 return value of 0 from value_static_field as meaning that field is
3853 (value_struct_elt_for_reference): Ditto.
3854 * values.c (value_static_field): Treat an unresolved location the
3855 same as a nonexistent symbol. Fix PR gdb/635.
3856 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3857 enclosed. Fix PR gdb/574.
3858 * MAINTAINERS: Add self to Write After Approval list.
3860 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3862 * mips-tdep.c (mips_xfer_register): New function.
3863 (mips_n32n64_extract_return_value): Rewrite.
3864 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3865 instead of deprecated_extract_return_value.
3867 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3869 * rs6000-tdep.c (TDEP): Delete macro.
3870 (branch_dest): Replace use of TDEP macro with its body.
3871 (rs6000_pop_frame): Ditto.
3872 (rs6000_push_arguments): Ditto.
3873 (rs6000_skip_trampoline_code): Ditto.
3874 (rs6000_frame_saved_pc): Ditto.
3875 (rs6000_frame_chain): Ditto.
3876 (rs6000_register_name): Ditto.
3877 (rs6000_register_byte): Ditto.
3878 (rs6000_register_raw_size): Ditto.
3879 (rs6000_register_virtual_type): Ditto.
3880 (rs6000_register_convertible): Ditto.
3881 (rs6000_convert_from_func_ptr_addr): Ditto.
3883 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3885 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3887 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3888 MIPS_LINUX_JB_ELEMENT_SIZE.
3889 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3890 for MAX_REGISTER_RAW_SIZE arrays.
3891 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3892 MIPS_LINUX_JB_ELEMENT_SIZE.
3894 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3896 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3898 2002-08-19 Aidan Skinner <aidan@velvet.net>
3900 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3901 ada-valprint.c ada-tasks.c.
3902 (YYFILES): Add ada-exp.y.
3903 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3904 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3905 (ada-exp.tab.o): New target.
3907 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3909 * regcache.c (regcache_xfer_part): New function.
3910 (regcache_raw_read_part): New function.
3911 (regcache_raw_write_part): New function.
3912 (regcache_cooked_read_part): New function.
3913 (regcache_cooked_write_part): New function.
3914 * regcache.h (regcache_raw_read_part): Declare.
3915 (regcache_raw_write_part): Declare.
3916 (regcache_cooked_read_part): Declare.
3917 (regcache_cooked_write_part): Declare.
3919 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3921 * remote.c (remote_open_1): Add async_p.
3922 (remote_async_open_1): Delete.
3923 (open_remote_target): Delete.
3924 (remote_open, extended_remote_open): Update calls to remote_open_1.
3925 (remote_async_open, extended_remote_async_open): Call
3926 remote_open_1 instead of remote_async_open_1.
3928 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3930 * blockframe.c: Fix a few coding standard violations.
3932 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3934 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3936 * config/i386/tm-i386sco5.h: ... here. File removed.
3937 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3939 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3940 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3941 (TM_FILE): Set to tm-i386.h.
3942 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3943 * config/i386/tm-i386v.h: Remove file.
3944 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3945 instead of "i386/tm-i386v.h".
3946 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3947 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3949 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3950 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3953 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3955 * config/i386/nm-i386v.h: Add protection against
3957 (i386_register_u_addr): Remove prototype.
3958 (register_u_addr): New prototype.
3959 (REGISTER_U_ADDR): Redefine accordingly.
3960 * i386v-nat.c: Improve several comments.
3961 (i386_register_u_addr): Change signature and rename to
3962 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3965 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3967 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3968 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3969 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3970 deprecated_extract_return_value.
3971 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3972 rename mips_o32o64_push_arguments.
3973 (mips_gdbarch_init): Update.
3974 (mips_extract_return_value): Delete.
3975 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3976 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3977 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3978 (mips_n32n64_extract_return_value): Clone
3979 mips_extract_return_value.
3980 (mips_store_return_value): Delete.
3981 (mips_o32_store_return_value): Clone mips_store_return_value.
3982 (mips_o64_store_return_value): Clone mips_store_return_value.
3983 (mips_eabi_store_return_value): Clone mips_store_return_value.
3984 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3986 2002-08-18 Aidan Skinner <aidan@velvet.net>
3988 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3989 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3991 2002-08-18 Aidan Skinner <aidan@velvet.net>
3993 * ada-lang.c: Run through gdb_indent.sh.
3994 * ada-lang.h: Run through gdb_indent.sh.
3995 * ada-tasks.c: Run through gdb_indent.sh.
3996 * ada-typeprint.c: Run through gdb_indent.sh.
3997 * ada-valprint.c: Run through gdb_indent.sh.
3999 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4001 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4004 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4006 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4008 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4009 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4011 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4012 write_register_gen instead of write_register_bytes.
4014 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4015 i[3456]-*-osf1mk* configurations have been made obsolete.
4016 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4017 i[3456]86-*-osf1mk* hosts obsolete.
4018 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4020 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4021 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4022 config/i386/i386m3.mt, config/i386/nm-m3.h,
4023 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4024 config/i386/i386mk.mh, config/i386/i386mk.mt,
4025 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4027 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4028 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4029 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4031 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4033 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4034 (hppa_value_returned_from_stack): Declare.
4035 (hppa_extract_return_value): Declare.
4036 * config/pa/hppa.mt: New file.
4037 * configure.tgt: Recognize hppa*-*-*.
4038 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4040 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4042 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4045 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4047 * top.c (gdb_rl_operate_and_get_next): Make sure
4048 operate-and-get-next functions correctly even when the history
4049 list is completely filled.
4051 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4053 * MAINTAINERS (Target Instruction Set Architectures): Rename
4054 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4055 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4056 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4057 already listed under Host/Native.
4059 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4060 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4063 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4065 * config/ia64/ia64.mt: New file.
4066 * config/alpha/alpha.mt: New file.
4067 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4068 ia64-linux-gnu. Mention that ia64-elf is broken.
4069 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4071 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4073 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4074 generic_func_frame_valid instead of func_frame_valid.
4076 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4078 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4079 procfs appears to be broken when debugging on multi-processor
4080 machines. So enable software single stepping in order to avoid
4081 using the procfs interface to do next/step operations, using
4082 internal breakpoints instead.
4084 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4085 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4086 make this pc address equal to the value it would have if the
4087 system stepping capability was used. Also set a new flag used
4088 to ensure that we don't readjust the PC one more time later.
4090 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4091 address by DECR_PC_AFTER_BREAK when software single step is
4092 in use for this architecture, as this has already been taken
4093 care of in handle_inferior_event().
4095 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4097 * infrun.c (handle_inferior_event): Minor reformatting, to make
4098 a rather long condition expression easier to read.
4100 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4102 * Makefile.in (gdbtk.o): Move to end of file.
4103 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4104 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4105 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4106 (gdbtk-wrapper.o, gdbres.o): Ditto.
4108 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4110 * Makefile.in (copying.o): Separate out compile rule.
4111 (hpux-thread.o, procfs.o, signals.o): Ditto.
4112 (v850ice.o, z8k-tdep.o): Ditto.
4113 (tui-file.o): Move to TUI section.
4114 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4115 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4117 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4119 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4120 skip_trampoline_code, for better namespace-proofing.
4122 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4124 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4126 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4128 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4130 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4131 signal, check whether we hit a breakpoint before checking for a
4132 single step breakpoint. Otherwise, GDB fails to notice that a
4133 breakpoint has been hit when stepping onto a breakpoint.
4135 2002-08-16 Keith Seitz <keiths@redhat.com>
4137 * gdb-events.sh (clear_gdb_event_hooks): New function.
4138 * gdb-events.c: Regenerate.
4139 * gdb-events.h: Regenerate.
4141 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4143 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4144 not_a_sw_breakpoint.
4145 * breakpoint.h (bpstat_stop_status): Add parameter names.
4147 2002-08-16 Grace Sainsbury <graces@redhat.com>
4149 * remote.c (remote_insert_hw_breakpoint)
4150 (remote_remove_hw_breakpoint): Fix calculation of length field
4153 2002-08-15 Michael Snyder <msnyder@redhat.com>
4155 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4156 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4157 (supply_fpregset): Ditto.
4159 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4160 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4161 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4162 (TARGET_READ_SP): Delete.
4163 (DO_REGISTERS_INFO): Delete.
4164 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4166 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4167 from macros to functions.
4169 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4170 (mips_register_convertible, mips_register_convert_to_virtual,
4171 mips_register_convert_to_raw): Make static.
4172 (mips_read_sp): New function.
4173 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4174 (mips_do_registers_info): Make static.
4175 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4176 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4177 (mips_register_convert_from_type, mips_register_convert_to_type):
4179 (mips_gdbarch_init): Set up function_start_offset,
4180 register_virtual_size, pc_in_sigtramp.
4182 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4184 * infcmd.c (vector_info): New function.
4185 (_initialize_infcmd): Add command "info vector".
4186 (print_vector_info): New function.
4188 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4189 * gdbarch.h, gdbarch.c: Regenerate.
4191 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4193 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4194 ``print_all''. Only print vector registers when ``print_all''.
4196 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4198 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4199 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4201 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4202 Add `args' parameter.
4203 * gdbarch.h, gdbarch.c: Regenerate.
4205 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4207 * infcmd.c (float_info): Call print_float_info.
4208 (print_float_info): New function. By default, print the
4209 floating-point registers.
4211 * arch-utils.h (default_print_float_info): Delete declaration.
4212 * arch-utils.c (default_print_float_info): Delete function.
4214 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4216 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4219 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4222 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4223 * configure.host: Make i[3456]86-*-aix host obsolete.
4224 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4225 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4226 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4227 config/i386/xm-i386aix.h: Make files obsolete.
4228 * i386aix-nat.c: Make file obsolete.
4229 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4230 (i386aix-nat.o): Make target obsolete.
4232 * config/i386/nm-gnu.h: Removed.
4233 * config/i386/nm-i386gnu.h: New file.
4234 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4235 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4237 * config/i386/tm-i386gnu.h: ... here. Removed.
4238 * config/i386/xm-i386gnu.h: Removed.
4239 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4240 (NAT_FILE): Set to nm-i386gnu.h.
4241 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4242 * i386-tdep.c: New file.
4243 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4244 (i386gnu-tdep.o): Specify dependencies.
4246 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4248 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4249 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4250 Adjust a few comments to reflect reality a bit closer.
4251 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4252 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4253 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4254 target_insert_watchpoint, target_remove_watchpoint):
4256 * config/i386/nm-i386sco5.h: ... here.
4257 (kernel_u_size): Add prototype. Improve a few comments and add
4258 protection against multiple inclusion.
4260 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4263 * uw-thread.c (SP_ARG0): Define if not already defined.
4264 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4266 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4268 * config/i386/tm-i386.h: Don't include "regcache.h".
4270 * i387-tdep.h (i387_print_float_info): New prototype.
4271 * i387-tdep.c (print_i387_value, print_i387_ext,
4272 print_i387_status_word, print_i387_control_word): Add `struct
4273 ui_file *' argument and use it for output.
4274 (i387_print_float_info): Renamed from i387_float_info. Add
4275 `struct gdbarch *' and `struct ui_file *' arguments and use the
4277 * i386-tdep.c: Include "i387-tdep.h".
4278 (i386_gdbarch_init): Set print_float_info.
4279 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4280 (FLOAT_INFO): Remove define.
4282 2002-08-13 Michael Snyder <msnyder@redhat.com>
4284 * mips-tdep.c (mips_push_arguments): Rename to
4285 mips_eabi_push_arguments, and tune for EABI.
4286 (MIPS_REGS_HAVE_HOME_P): Delete.
4287 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4288 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4289 Delete references to mips_regs_have_home_p.
4291 2002-08-14 Keith Seitz <keiths@redhat.com>
4293 * Makefile.in (install-gdbtk): Create insight plugin directory.
4294 Install plugins.tcl file.
4296 2002-08-14 Keith Seitz <keiths@redhat.com>
4298 * configure.in: Move SUBDIRS to near top of the file so that
4299 --enable options may add things to it.
4300 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4301 * configure: Regenerate.
4303 2002-08-13 Michael Snyder <msnyder@redhat.com>
4305 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4306 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4307 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4309 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4311 * vax-tdep.c (vax_get_saved_register): Delete function.
4312 (vax_gdbarch_init): Update.
4313 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4314 (ns32k_gdbarch_init): Update.
4315 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4316 (alpha_gdbarch_init): Update.
4318 2002-08-13 Andrew Cagney <cagney@redhat.com>
4320 * regcache.c (init_regcache_descr): Overallocate the
4321 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4322 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4324 (set_register_cached): Add range checking assertions. Use
4327 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4329 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4330 numbers for MMX registers.
4332 2002-08-13 Andrew Cagney <cagney@redhat.com>
4334 * i386-tdep.c (i386_gdbarch_init): Use
4335 generic_unwind_get_saved_register.
4337 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4339 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4340 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4342 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4343 Delete. Add comment regarding this now-deleted target method.
4345 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4347 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4348 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4349 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4350 real PC and the page number (if it's within the memory bank window).
4351 (m68hc11_pseudo_register_write): Likewise when saving.
4352 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4353 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4354 (m68hc11_register_raw_size): And use 32-bit for it.
4355 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4356 16K memory bank is used by the prog; also use the virtual pc.
4358 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4360 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4361 (m68hc11_gdbarch_init): Install it in gdbarch.
4362 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4363 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4364 (MSYMBOL_SIZE): New for documentation.
4365 (insn_return_kind): Enum to specify how a function returns.
4366 (frame_extra_info): Cleanup and record the return mode.
4367 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4368 register in address computation.
4369 (m68hc11_get_return_insn): New to obtain the return instruction used
4371 (m68hc11_frame_init_saved_regs): Take into account the return
4372 instruction used by the function for far and interrupt functions.
4373 (m68hc11_init_extra_frame_info): Take into account page register.
4374 (m68hc11_frame_args_address): Adjust according to the return mode.
4375 (show_regs): Print page register only when it's used.
4377 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4379 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4380 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4381 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4383 (m68hc11_register_raw_size): Likewise.
4385 2002-08-13 Andrew Cagney <cagney@redhat.com>
4387 * i386-tdep.c (i386_register_name): Handle mmx registers.
4388 (mmx_regnum_p): New function.
4389 (i386_mmx_names): New array.
4390 (mmx_num_regs): New variable.
4391 (i386_pseudo_register_read): New function.
4392 (i386_pseudo_register_write): New function.
4393 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4395 * regcache.c (regcache_raw_read_unsigned): New function.
4396 (regcache_raw_read_signed): New function.
4397 * regcache.h (regcache_raw_read_unsigned): Declare.
4398 (regcache_raw_read_signed): Declare.
4400 2002-08-13 Andrew Cagney <cagney@redhat.com>
4402 * regcache.c (regcache_raw_read_as_address): Delete function.
4403 (regcache_cooked_read_signed): New function.
4404 (regcache_cooked_read_unsigned): New function.
4405 * regcache.h (regcache_cooked_read_signed): Declare.
4406 (regcache_cooked_read_unsigned): Declare.
4407 (regcache_raw_read_as_address): Delete declaration.
4409 * blockframe.c (generic_read_register_dummy): Use
4410 regcache_cooked_read_unsigned.
4411 * i386-tdep.c (i386_extract_struct_value_address): Use
4412 regcache_cooked_read_unsigned.
4414 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4417 double sizes according to ELF ABI flags.
4418 (gdbarch_tdep): Record elf_flags.
4420 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4422 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4423 (m6812_prolog): They can appear in 68HC12 function prologue.
4424 (m68hc11_frame_chain): Cleanup.
4426 2002-08-12 Andrew Cagney <cagney@redhat.com>
4428 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4430 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4431 (i386_linux_register_raw_size): Delete function.
4432 (i386_linux_init_abi): Update.
4433 * i386-tdep.c (i386_register_raw_size): Delete function.
4434 (i386_register_byte): Delete function.
4435 (i386_gdbarch_init): Update.
4436 (i386_register_size): Delete array.
4437 (i386_register_offset): Delete array.
4439 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4440 (REGISTER_RAW_SIZE): Delete macro.
4441 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4442 (REGISTER_BYTE): Delete macro.
4444 2002-08-11 Aidan Skinner <aidan@velvet.net>
4446 * ada-lang.c (ada_lookup_partial_symbol)
4447 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4448 prototype names so that grep ^func works properly.
4450 * ada-lang.c (ada_array_element_type)
4451 (ada_lookup_partial_symbol): Fix typos in parameter list.
4453 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4454 Fix prototype names so that grep ^func works properly.
4456 2002-08-10 Andrew Cagney <cagney@redhat.com>
4457 Elena Zannoni <ezannoni@redhat.com>
4458 Martin M. Hunt <hunt@redhat.com>
4460 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4461 (build_builtin_type_vec128i): Set the vector bit.
4462 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4463 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4464 (build_builtin_type_vec64): New function.
4465 (build_builtin_type_vec64i): New function.
4466 (build_gdbtypes): Initialize builtin_type_vec64 and
4467 builtin_type_vec64i.
4469 2002-08-09 Andrew Cagney <cagney@redhat.com>
4471 * regcache.c (regcache_dump): Compare the register offset
4473 * arch-utils.c (generic_register_byte): New function.
4474 * arch-utils.h (generic_register_byte): Declare.
4475 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4476 * gdbarch.h, gdbarch.c: Regenerate.
4478 2002-08-09 Andrew Cagney <cagney@redhat.com>
4480 * regcache.c: Include "gdbcmd.h"
4481 (_initialize_regcache): Add commands "maintenance print
4482 registers", "maintenance print raw-registers" and "maintenance
4483 print cooked-registers".
4484 (enum regcache_dump_what): Define.
4485 (dump_endian_bytes): New function.
4486 (regcache_dump): New function.
4487 (regcache_print): New function.
4488 (maintenance_print_registers): New function.
4489 (maintenance_print_raw_registers): New function.
4490 (maintenance_print_cooked_registers): New function.
4491 * Makefile.in (regcache.o): Update dependencies.
4493 2002-08-09 Michael Snyder <msnyder@redhat.com>
4495 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4496 (mips_push_arguments): Correct some comments. Use paddr_nz
4497 for printing addresses in debug output. Replace static
4498 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4499 (mips_n32n64_push_arguments): New function, cloned from
4500 mips_push_arguments and tuned for the n32/n64 ABI.
4501 (mips_push_register): Buffer needs dynamic allocation.
4502 (mips_print_register): Ditto.
4503 (do_gp_register_row): Ditto.
4504 (mips_store_return_value): Ditto.
4505 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4507 2002-08-09 Don Howard <dhoward@redhat.com>
4509 * memattr.c (mem_info_command): Print special case of upper bound
4510 as max CORE_ADDR + 1.
4512 2002-08-08 Michael Snyder <msnyder@redhat.com>
4514 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4515 returns structs by ref if they're too big to fit in two registers.
4517 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4519 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4521 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4522 mips_find_saved_regs().
4523 (mips_pop_frame): Likewise.
4525 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4527 * blockframe.c (frame_saved_regs_register_unwind): Revise
4528 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4531 2002-08-09 Grace Sainsbury <graces@redhat.com>
4533 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4534 T-packets; the 'a' is not taken as a register number.
4535 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4536 (remote_stopped_data_address): New functions; add to target
4538 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4539 prototypes to match other implementations of this
4540 function. replace integer argument with pointer -- the length
4541 field in the Z-packet is the length of what is pointed to or 1 if
4542 pointer is null. Add to target vector.
4543 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4547 * remote.c (remote_wait): Add support to extract optional
4548 watchpoint information from T-packet. Ignore unrecognized
4549 optional info in T-packet.
4550 (remote_async_wait): Ditto.
4552 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4554 * cli/cli-dump.c: Change fopen modes to use binary open modes
4555 as defined in include/fopen-bin.h throughout.
4557 2002-08-08 Michael Snyder <msnyder@redhat.com>
4559 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4561 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4563 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4564 assertion failure by returning early after a warning.
4566 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4568 * mips-tdep.c (mips_find_saved_regs): Make static.
4569 (mips_frame_init_saved_regs): New function.
4570 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4571 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4572 (mips_find_saved_regs): Delete declaration.
4574 2002-08-08 Grace Sainsbury <graces@redhat.com>
4576 * remote.c (remote_wait, remote_async_wait): Change
4577 thread_num from int to ULONGEST.
4578 (unpack_varlen_hex): Change result parameter from
4579 int * to ULONGEST *.
4581 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4583 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4584 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4586 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4588 2002-08-08 Andrew Cagney <cagney@redhat.com>
4590 * gcore.c (override_derive_stack_segment): Delete variable.
4591 (preempt_derive_stack_segment): Delete function.
4592 (derive_stack_segment): Delete function.
4593 (default_derive_stack_segment): Renamed to derive_stack_segment.
4594 (override_derive_heap_segment): Delete variable.
4595 (preempt_derive_heap_segment): Delete function.
4596 (derive_heap_segment): Delete function.
4597 (default_derive_heap_segment): Rename to derive_heap_segment.
4599 2002-08-06 Michael Snyder <msnyder@redhat.com>
4601 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4602 * mips-tdep.c (mips_EABI_use_struct_convention,
4603 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4604 New functions. (mips_use_struct_convention): Delete.
4605 (mips_gdbarch_init): set use_gdbarch_convention.
4607 2002-08-06 Michael Snyder <msnyder@redhat.com>
4609 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4610 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4611 mips_o32_reg_struct_has_addr): New functions.
4612 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4614 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4616 * regcache.c (pseudo_register): Delete function.
4617 (fetch_register): Delete function.
4618 (store_register): Delete function.
4619 (regcache_raw_read, legacy_read_register_gen): Use
4620 target_fetch_registers instead of fetch_register.
4621 (legacy_write_register_gen, regcache_raw_write): Use
4622 target_store_register instead of store_register.
4623 (write_register_bytes): Ditto.
4625 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4626 (STORE_PSEUDO_REGISTER): Delete.
4627 * gdbarch.h, gdbarch.c: Regenerate.
4629 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4631 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4632 write dump file binary.
4634 2002-08-05 Michael Snyder <msnyder@redhat.com>
4636 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4637 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4638 (mips_gdbarch_init): Set N32 target to be mips64.
4640 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4642 * frame.c (find_saved_register): Break out of loop once saved
4643 register address is found. Don't mention sparc in loop comment
4646 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4648 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4649 mips_default_saved_regsize to 8.
4651 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4653 * gcore.c: Do not include <sys/procfs.h>.
4654 * Makefile.in (gcore.o): Update dependencies.
4656 2002-08-06 Andrew Cagney <cagney@redhat.com>
4658 * configure.tgt: Make arc-*-* obsolete.
4659 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4660 * MAINTAINERS: Make arc-elf obsolete.
4661 * arc-tdep.c: Make file obsolete.
4662 * config/arc/arc.mt: Ditto.
4663 * config/arc/tm-arc.h: Ditto.
4665 2002-08-05 Theodore A. Roth <troth@verinet.com>
4667 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4669 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4671 * mcore-tdep.c (mcore_gdbarch_init): Use
4672 generic_unwind_get_saved_register instead of
4673 generic_get_saved_register.
4674 * v850-tdep.c (v850_gdbarch_init): Ditto.
4675 * frv-tdep.c (frv_gdbarch_init): Ditto.
4676 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4677 * s390-tdep.c (s390_gdbarch_init): Ditto.
4678 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4679 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4680 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4682 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4684 * objfiles.h: Add missing #include "symfile.h"
4686 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4688 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4690 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4691 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4694 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4696 * NEWS: Cleanup and nitpick.
4698 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4700 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4702 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4704 * Makefile.in (gdbtk-bp.o): Update dependencies.
4705 (gdbtk-register.o): Ditto.
4706 (gdbtk-varobj.o): Ditto.
4708 2002-08-03 Andrew Cagney <cagney@redhat.com>
4710 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4711 m68hc11_fetch_pseudo_register.
4712 (m68hc11_pseudo_register_write): Replace
4713 m68hc11_store_pseudo_register.
4714 (m68hc11_gdbarch_init): Update.
4716 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4718 * gdbarch.sh: Include "gdb_string.h".
4719 * gdbarch.c: Regenerate.
4721 * regcache.c: Include "gdb_string.h".
4722 * ax-general.c: Ditto.
4724 * std-regs.c: Ditto.
4725 * fbsd-proc.c: Ditto.
4728 * Makefile.in (regcache.o): Update dependencies.
4729 (thread.o, gdbarch.o): Ditto.
4730 (ax-general.o, gdbarch.o): Ditto.
4731 (varobj.o, std-regs.o): Ditto.
4732 (fbsd-proc.o): Specify dependencies.
4734 2002-08-02 Andrew Cagney <cagney@redhat.com>
4736 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4738 (regcache_cooked_write): Ditto.
4740 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4742 * regcache.c (regcache_cooked_read): New function.
4743 (regcache_cooked_write): New function.
4744 (read_register_gen): Rewrite using regcache_cooked_read.
4745 (write_register_gen): Rewrite using regcache_cooked_write.
4747 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4750 2002-08-02 Andrew Cagney <cagney@redhat.com>
4752 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4753 Replace the architecture methods register_read and register_write.
4754 * gdbarch.h, gdbarch.c: Regenerate.
4755 * regcache.c (init_regcache_descr): Update.
4756 (read_register_gen): Update.
4757 (write_register_gen): Update.
4758 (supply_register): Update comment.
4760 * sh-tdep.c (sh_gdbarch_init): Update.
4761 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4762 `regcache' and `gdbarch' parameters. Make `buffer' a void
4763 pointer. Update code.
4764 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4765 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4766 void pointer. Update code.
4767 (sh64_register_write): Delete.
4768 (sh4_register_read): Delete.
4769 (sh64_register_read): Delete.
4770 (sh4_register_write): Delete.
4771 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4772 void pointer, `to' parameter a void pointer.
4773 (sh_sh64_register_convert_to_raw): Ditto.
4775 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4777 * mips-tdep.c (mips_register_virtual_type): Use architecture
4778 invariant return values.
4780 2002-08-01 Andrew Cagney <cagney@redhat.com>
4782 * linux-proc.c: Include "gdb_string.h".
4783 * Makefile.in (linux-proc.o): Update dependency list.
4785 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4787 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4790 2002-08-01 Grace Sainsbury <graces@redhat.com>
4792 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4793 to_insert_watchpoint, to_remove_watchpoint,
4794 to_stopped_by_watchpoint, to_stopped_data_address,
4795 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4796 target vecctor. Define their corresponding macros so they call
4799 * target.c: Add default and debug versions of for
4800 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4801 to_insert_watchpoint, to_remove_watchpoint,
4802 to_stopped_by_watchpoint, to_stopped_data_address,
4803 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4805 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4807 * mips-tdep.c (mips_register_virtual_type): New function.
4808 (mips_gdbarch_init): Register mips_register_virtual_type()
4809 with gdbarch machinery.
4810 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4811 this file instead of tm-bigmips.h.
4812 (MIPS_REGSIZE): Delete this macro.
4813 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4814 multiarch version in mips-tdep.c will be found.
4816 2002-08-01 Andrew Cagney <cagney@redhat.com>
4818 * NEWS: Menion that CHILL has been made obsolete.
4820 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4821 * stabsread.c (read_range_type): Ditto.
4822 * gdbtypes.h: Ditto.
4823 * language.c (binop_type_check): Ditto.
4824 (binop_result_type): Ditto.
4825 (integral_type): Ditto.
4826 (character_type): Ditto.
4827 (string_type): Ditto.
4828 (boolean_type): Ditto.
4829 (structured_type): Ditto.
4830 (lang_bool_type): Ditto.
4831 (binop_type_check): Ditto.
4832 * language.h (_LANG_chill): Ditto.
4833 * dwarfread.c (set_cu_language): Ditto.
4834 * dwarfread.c (CHILL_PRODUCER): Ditto.
4835 * dwarfread.c (handle_producer): Ditto.
4836 * expression.h (enum exp_opcode): Ditto.
4837 * eval.c: Ditto for comments.
4838 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4839 * expprint.c (print_subexp): Ditto.
4840 (print_subexp): Ditto.
4841 * valops.c (value_cast): Ditto.
4842 (search_struct_field): Ditto.
4843 * value.h (COERCE_VARYING_ARRAY): Ditto.
4844 * symfile.c (init_filename_language_table): Ditto.
4845 (add_psymbol_with_dem_name_to_list): Ditto.
4846 * valarith.c (value_binop): Ditto.
4848 * valops.c (value_slice): Ditto.
4849 * symtab.h (union language_specific): Ditto.
4850 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4851 (SYMBOL_DEMANGLED_NAME): Ditto.
4852 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4853 * defs.h (enum language): Ditto.
4854 * symtab.c (got_symtab): Ditto.
4855 * utils.c (fprintf_symbol_filtered): Ditto.
4857 * ch-typeprint.c: Make file obsolete.
4858 * ch-valprint.c: Make file obsolete.
4859 * ch-lang.h: Make file obsolete.
4860 * ch-exp.c: Make file obsolete.
4861 * ch-lang.c: Make file obsolete.
4863 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4865 (TARGET_FLAGS_TO_PASS): Ditto.
4866 (CHILLFLAGS): Obsolete.
4868 (CHILL_FOR_TARGET): Obsolete.
4869 (CHILL_LIB): Obsolete.
4870 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4872 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4873 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4875 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4878 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4880 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4881 This does not change anything at the moment, but will be helpful
4882 later when full Ada support is integrated.
4884 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4886 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4889 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4891 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4892 and save it in a local variable. Use variable in later test.
4894 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4896 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4897 test. (Thanks to Daniel Jacobowitz.)
4899 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4901 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4902 (mips_abi_strings): Add "n64".
4903 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4905 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4907 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4908 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4910 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4912 * utils.c (host_pointer_to_address, address_to_host_pointer):
4913 Use gdb_assert() instead of explicit call to internal_error().
4915 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4917 * Makefile.in (rs6000-nat.o): Update dependencies.
4919 From Nicholas Duffek:
4920 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4921 (aix-thread.o): New rule.
4922 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4923 * config/powerpc/aix432.mh: New file.
4925 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4927 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4928 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4929 (fetch_core_registers, ppc_linux_supply_gregset)
4930 (ppc_linux_supply_fpregset): New functions.
4931 (ppc_linux_regset_core_fns): New.
4932 (_initialize_ppc_linux_tdep): Call add_core_fns.
4933 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4934 and ppc_linux_supply_gregset.
4935 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4936 (supply_fpregset): Call ppc_linux_supply_fpregset.
4937 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4939 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4941 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4943 * symtab.c (lookup_symbol): Demangle before lowercasing.
4945 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4947 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4949 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4950 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4951 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4952 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4954 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4955 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4956 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4957 (avr-tdep.o, mon960-rom.o): Ditto.
4958 (aout_stabs_gnu_h): Define.
4959 (symtab_h): Remove $(gdb_obstack_h).
4961 2002-07-30 Jim Blandy <jimb@redhat.com>
4963 Patch from David Carlton <carlton@math.stanford.edu>:
4964 * gdbinit.in: Move the `dir' commands that add GDB's own source
4965 directory to the search path to the end, so that the `gdb' source
4966 directory will be searched first.
4968 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4970 * gdb_obstack.h: New file.
4971 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4972 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4973 * objfiles.h: Include "gdb_obstack.h".
4974 * Makefile.in (gdb_obstack_h): Define.
4975 (symtab_h): Add $(gdb_obstack_h).
4976 (objfiles_h): Add $(gdb_obstack_h).
4978 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4979 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4980 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4981 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4982 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4983 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4984 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4985 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4987 * Makefile.in (bcache.o): Update dependencies.
4988 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4989 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4990 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4991 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4992 (stabsread.o, symfile.o, symmisc.o): Ditto.
4993 (symtab.o, typeprint.o, macroexp.o): Ditto.
4994 (macrotab.o, mdebugread.o): Ditto.
4995 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4996 (coff_ecoff_h, aout_aout64_h): Define.
4997 (aout_stabs_gnu_h, libaout_h): Define.
4999 2002-07-29 Andrew Cagney <cagney@redhat.com>
5001 * regcache.c (struct regcache_descr): Rename nr_registers to
5002 nr_cooked_registers. Revise comments describing the structure
5004 (init_regcache_descr): Update.
5005 (init_legacy_regcache_descr): Update.
5006 (read_register_gen, write_register_gen): When a cooked register in
5007 the raw register range, directly access the value from the raw
5010 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5012 * z8k-tdep.c: Do not include "obstack.h".
5013 * h8300-tdep.c, h8500-tdep.c: Ditto.
5014 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5015 * valprint.c, v850-tdep.c: Ditto.
5016 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5017 * mn10200-tdep.c: Ditto.
5019 * Makefile.in (z8k-tdep.o): Update dependencies.
5020 (m68hc11-tdep.o, valprint.o): Ditto.
5021 (v850-tdep.o, d10v-tdep.o): Ditto.
5022 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5023 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5024 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5025 (sh_opc_h, gdb_sim_sh_h): Define.
5026 (elf_sh_h, elf_bfd_h): Define.
5027 (opcode_m68hc11_h): Define.
5028 (OPCODES_SRC, OPCODES_DIR): define.
5029 (OPCODES): Use $(OPCODES_DIR).
5030 (gdb_sim_d10v_h): Rename sim_d10v_h.
5031 (gdb_sim_arm_h): Rename sim_arm_h.
5033 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5035 * utils.c (host_pointer_to_address, address_to_host_pointer):
5036 Change internal_error() message to indicate function responsible
5039 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5041 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5042 calls to local_hex_string_custom().
5044 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5046 * irix5-nat.c: Move IRIX shared library support from here...
5047 * solib-irix.c: ...to here. Revised substantially to work with
5048 generic solib framework.
5050 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5051 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5052 * mips-irix-tdep.c: New file.
5054 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5055 (mips-irix-tdep.o, solib-irix.o): New rules.
5056 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5058 * config/mips/irix6.mt (TDEPFILES): Likewise.
5059 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5061 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5063 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5064 disabled (via ``#if 0'') includes.
5066 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5068 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5069 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5070 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5071 Add support for the fpscr register.
5072 * rs6000-nat.c (regmap, fetch_inferior_registers)
5073 (store_inferior_registers, fetch_core_registers): Likewise.
5075 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5077 * rs6000-nat.c (language.h): Include.
5078 (special_regs): Delete this array.
5079 (regmap): New function.
5080 (fetch_register, store_register): Use regmap() to map gdb
5081 register numbers to ptrace register numbers. Also, use
5082 outputs from regmap() to make decisions regarding type of
5083 ptrace() call to make. In particular, don't compare against
5084 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5085 (fetch_inferior_registers, store_inferior_registers): Where
5086 possible, obtain register numbers from tdep struct. Don't
5087 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5088 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5089 (LAST_UISA_SP_REGNUM): Delete.
5091 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5093 * rs6000-nat.c (ppc-tdep.h): Include.
5094 (fetch_registers, store_register, fetch_core_registers): Don't
5095 access registers[] directly. Instead, use supply_register() or
5096 regcache_collect() as appropriate.
5097 (find_toc_address): Format hex address with local_hex_string().
5099 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5101 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5104 2002-07-24 Tom Tromey <tromey@redhat.com>
5106 * jv-exp.y: Marked all strings with _().
5107 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5109 (MethodInvocation, CastExpression, parse_number, yyerror,
5110 java_type_from_name, push_expression_name, yylex): Typo fixes.
5112 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5114 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5115 (tee_file_flush, tee_file_write, tee_file_fputs)
5116 (tee_file_isatty): New.
5117 * ui-file.h (tee_file_new): Add prototype.
5119 2002-07-24 Aidan Skinner <aidan@velvet.net>
5121 * ada-lang.c: Change k&r style function definitions to prototyped
5123 * ada-typeprint.c: Change k&r style function definitions to prototyped
5125 * ada-valprint.c: Change k&r style function definitions to prototyped
5128 2002-07-24 Andrew Cagney <cagney@redhat.com>
5130 * README: Remove reference to remote-bug.
5131 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5133 (m88k-nat.o): Delete rule.
5134 (m88k-tdep.o): Delete rule.
5135 (remote-bug.o): Delete rule.
5136 * MAINTAINERS: Mark as obsolete.
5137 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5138 * m88k-tdep.c: Make file obsolete.
5139 * config/m88k/m88k.mh: Ditto.
5140 * config/m88k/delta88v4.mh: Ditto.
5141 * config/m88k/delta88v4.mt: Ditto.
5142 * config/m88k/delta88.mt: Ditto.
5143 * config/m88k/delta88.mh: Ditto.
5144 * remote-bug.c: Ditto.
5145 * config/m88k/tm-delta88.h: Ditto.
5146 * config/m88k/nm-delta88v4.h: Ditto.
5147 * config/m88k/xm-delta88.h: Ditto.
5148 * config/m88k/xm-dgux.h: Ditto.
5149 * config/m88k/tm-m88k.h: Ditto.
5150 * config/m88k/nm-m88k.h: Ditto.
5151 * config/m88k/tm-delta88v4.h: Ditto.
5152 * m88k-nat.c: Ditto.
5153 * cxux-nat.c: Ditto.
5154 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5155 and m88*-*-* obsolete.
5156 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5159 2002-07-24 Andrew Cagney <cagney@redhat.com>
5161 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5162 constant. Same for local pointer variables.
5163 (extract_signed_integer): Ditto.
5164 * defs.h (extract_unsigned_integer): Update.
5165 (extract_signed_integer): Update.
5167 2002-07-24 Andrew Cagney <cagney@redhat.com>
5169 * regcache.c (regcache_raw_write): Change buf parameter to a
5170 constant void pointer.
5171 (regcache_raw_read): Change buf parameter to a void pointer.
5172 (legacy_write_register_gen): Change myaddr parameter a constant
5174 (supply_register): Change val parameter to a const void pointer.
5175 * regcache.h (regcache_raw_write): Update declaration.
5176 (regcache_raw_read): Update declaration.
5177 (supply_register): Update declaration.
5179 2002-07-24 Tom Tromey <tromey@redhat.com>
5181 * defs.h (gdb_readline_wrapper): Declare.
5182 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5183 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5184 * top.c (gdb_readline_wrapper): New function.
5185 (command_line_input): Use it.
5187 2002-07-24 Andrew Cagney <cagney@redhat.com>
5189 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5190 regcache_read and regcache_write.
5191 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5192 * regcache.c: Update.
5193 * sh-tdep.c (sh64_push_arguments): Update comment.
5194 (sh_pseudo_register_read): Update.
5195 (sh_pseudo_register_write): Update.
5196 (sh4_register_read): Update.
5197 (sh4_register_write): Update.
5198 (sh64_pseudo_register_read): Update.
5199 (sh64_pseudo_register_write): Update.
5200 (sh64_register_read): Update.
5201 (sh64_register_write): Update.
5202 * i386-tdep.c (i386_extract_return_value): Update.
5203 (i386_extract_struct_value_address): Update.
5204 (i386_extract_return_value): Update.
5205 * blockframe.c (generic_read_register_dummy): Update.
5206 (generic_call_dummy_register_unwind): Update
5207 * infrun.c (write_inferior_status_register): Update.
5209 2002-07-23 Jim Blandy <jimb@redhat.com>
5211 * parser-defs.h (expression_context_pc): Make this extern.
5212 (Thanks to Michael Snyder.)
5214 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5216 GDB 5.2.1 released from 5.2 branch.
5217 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5218 * README: Update to mention 5.2.1.
5220 2002-07-23 Mark Salter <msalter@redhat.com>
5222 * remote.c (remote_read_bytes): Fix check for error.
5224 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5226 * aix-thread.c (language.h): Include.
5227 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5228 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5229 Print newlines at end of debug messages.
5230 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5231 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5233 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5235 * aix-thread.c (ppc-tdep.h): Include.
5236 (special_register_p): New function.
5237 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5238 (store_regs_user_thread): Use register number information from
5239 gdbarch_tdep struct instead of hardcoded offsets relative to
5240 FIRST_UISA_SP_REGNUM.
5241 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5242 special_register_p() instead of using FPLAST_REGNUM and
5243 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5244 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5245 will be MQ's register number.
5247 2002-07-22 Michael Snyder <msnyder@redhat.com>
5249 * aix-thread.c (ops): Rename to aix_thread_ops.
5250 (base_ops): Rename to base_target.
5251 (ops_attach): Rename to aix_thread_attach.
5252 (ops_detach): Rename to aix_thread_detach.
5253 (ops_resume): Rename to aix_thread_detach.
5254 (ops_wait): Rename to aix_thread_wait.
5255 (ops_kill): Rename to aix_thread_kill.
5256 (init_ops): Rename to init_aix_thread_ops.
5257 (ops_fetch_register): Rename to aix_thread_fetch_register.
5258 (ops_store_register): Rename to aix_thread_store_register.
5259 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5260 (ops_thread_alive): Rename to aix_thread_thread_alive.
5261 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5262 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5263 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5264 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5265 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5266 (store_regs_lib): Rename to store_regs_user_thread.
5267 (store_regs_kern): Rename to store_regs_kernel_thread.
5269 2002-07-22 Michael Snyder <msnyder@redhat.com>
5271 * aix-thread.c (ops_prepare_to_store): Eliminate.
5272 (init_ops): Don't initialize ops.prepare_to_store.
5273 (store_regs_kern): Pre-fetch register buffers from child,
5274 because some registers may not be in the cache. Copy
5275 regs from register cache only if they are cached.
5276 (store_regs_lib): Copy regs from register cache only
5278 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5279 fill_gprs64): Ditto.
5281 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5283 * aix-thread.c (gdb_assert.h): Include.
5284 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5285 register sizes (from register cache) match size of buffer holding
5287 (fill_sprs32): Change parameter types to match those in the ptrace()
5289 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5290 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5292 2002-07-22 Michael Snyder <msnyder@redhat.com>
5294 * aix-thread.c (supply_sprs64): Cosmetic change.
5295 (supply_sprs32): Cosmetic change.
5296 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5297 (fill_sprs64): Use regcache_collect instead of read_register.
5298 (store_regs_lib): Use regcache_collect instead of
5299 read_register. Use fill_sprs32 instead of fill_sprs64,
5300 if debugging a 32-bit architecture.
5301 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5302 out of the register cache, instead of passing a pointer into
5303 the register cache directly to ptrace. Use regcache_collect
5304 insteaad of read_register.
5305 (ops_prepare_to_store): Use target_read_registers instead
5306 of read_register_bytes.
5308 2002-07-20 Aidan Skinner <aidan@velvet.net>
5310 * MAINTAINERS: Add self under write after approval.
5312 2002-07-20 Aidan Skinner <aidan@velvet.net>
5314 * ada-tasks.c: Change k&r style function definitions to prototyped
5317 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5319 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5320 * x86-64-tdep.c: Include "objfiles.h".
5321 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5322 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5324 2002-07-17 Michal Ludvig <michal@suse.cz>
5326 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5327 (update_context): Initialise cfa variable.
5329 2002-07-17 Michael Snyder <msnyder@redhat.com>
5331 * aix-thread.c: Shorten some long lines.
5332 Bring comments into line with code spec.
5334 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5336 * infrun.c: Re-indent using gdb_indent.sh.
5338 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5340 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5341 Leave the indentation temporarily untouched, to minimize the diffs.
5343 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5345 * stabsread.c: Make os9k sections of the code obsolete,
5347 * stabsread.h: Make os9k sections of the code obsolete.
5349 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5351 * linux-low.c (regsets_store_inferior_registers): Add free()
5352 at the end of a loop to prevent memory leak.
5353 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5354 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5355 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5357 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5359 2002-07-17 Jim Blandy <jimb@redhat.com>
5361 * macrocmd.c (info_macro_command): Remove newline from error
5364 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5366 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5367 (sh_gdbarch_init): Use it for sh-dsp.
5369 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5371 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5372 64-bit DWARF2 format.
5374 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5376 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5377 <sys/proc.h> when not available.
5379 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5381 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5382 * stabsread.c: Make os9k sections of the code obsolete.
5383 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5384 * config/i386/i386os9k.mt: Make file obsolete.
5385 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5386 (COMMON_OBS): Remove os9kread.o
5387 (SFILES): Remove os9kread.c.
5388 (os9kread.o, remote-os9k.o): Make target obsolete.
5389 * remote-os9k.c: Make file obsolete.
5390 * os9kread.c: Make file obsolete.
5393 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5395 * NEWS: Mention that the FR30 has been made obsolete.
5396 * fr30-tdep.c: Make file obsolete.
5397 * config/fr30/tm-fr30.h: Ditto.
5398 * config/fr30/fr30.mt: Ditto.
5399 * configure.tgt: Make fr30-*-elf obsolete.
5400 * MAINTAINERS: Make fr30-elf obsolete.
5402 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5404 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5405 found is not inside a section.
5407 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5409 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5411 (pdc_realloc): Use xrealloc() instead of realloc().
5413 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5415 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5416 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5417 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5420 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5422 * aix-thread.c (ptrace_check): Eliminate goto.
5423 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5426 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5428 * aix-thread.c (gdbcmd.h): Include.
5429 (DEBUG, DBG, DBG2, dbg): Eliminate.
5430 (debug_aix_thread): New static global.
5431 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5432 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5433 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5434 invocations to DBG and DBG2 macros to test against
5435 ``debug_aix_thread'' and call fprintf_unfiltered().
5436 (_initialize_aix_thread): Add new command "set debug aix-thread".
5438 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5440 From Gerhard Tonn <TON@de.ibm.com>:
5441 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5442 instead of supply_register.
5444 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5446 * dwarf2cfi.c: Include "gdb_assert.h".
5447 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5449 (update_context): Do not use __func__. Add missing ``break''.
5450 (update_context): Do not use __func__.
5452 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5454 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5455 and its setting. Set gdbarch instruction printing functions
5456 directly. For non-rs6000 case use new function
5457 gdb_print_insn_powerpc.
5458 (gdb_print_insn_powerpc): New function.
5460 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5462 * NEWS: Mention that the d30v has been marked obsolete.
5463 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5464 * configure.tgt: Mark d30v-*-* as obsolete.
5465 * d30v-tdep.c: Mark file as obsolete.
5466 * config/d30v/d30v.mt: Ditto.
5467 * config/d30v/tm-d30v.h: Ditto.
5469 2002-07-13 Aidan Skinner <aidan@velvet.net>
5471 * ada-tasks.c (add_task_entry): replace calls to
5472 malloc() with xmalloc
5473 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5475 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5476 ada_finish_decode_line_1, all_sals_for_line
5477 ada_breakpoint_rewrite): replace calls to free() with xfree()
5479 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5481 From Nicholas Duffek (with minor changes by Martin Hunt,
5482 Louis Hamilton, and Kevin Buettner):
5483 * aix-thread.c: New file.
5485 2002-07-12 Petr Sorfa <petrs@caldera.com>
5487 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5488 complaint for invalid attribute class or form.
5489 (read_func_scope): DW_AT_frame_base
5490 better handling of DW_AT_block*.
5491 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5492 better handling of DW_AT_block*.
5493 (read_common_block): DW_AT_location
5494 better handling of DW_AT_block*.
5495 (read_partial_die): DW_AT_location better handling
5497 (new_symbol): DW_AT_external better handling of
5498 DW_AT_block*. Proper initialization of variable
5500 (attr_form_is_block): New function that returns true
5501 if the attribute's form is of DW_FORM_block*.
5503 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5505 * valops.c (find_method_list): Remove comment about
5506 removed STATIC_MEMFUNCP argument.
5507 (value_find_oload_method_list): Likewise.
5509 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5511 From Nicholas Duffek:
5512 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5513 target_new_objfile_hook.
5515 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5517 From Nicholas Duffek:
5518 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5521 2002-07-12 Andrew Cagney <cagney@redhat.com>
5523 * MAINTAINERS: Mention --enable-sim-build-warnings.
5524 (m68hc11-elf): Disable sim build warnings.
5525 (m32r-elf): Mark as broken obsolete candidate.
5526 (x86_64-linux-gnu): Mark as buildable with -Werror.
5527 (arm-elf): Change -w to ``,'' which enables warnings but not
5530 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5532 * bcache.h: Update copyright.
5533 (struct bstring, struct bcache): Move definition to "bcache.c".
5534 Replaced by opaque declaration.
5535 (bcache_xfree): Replace free_bcache.
5536 (bcache_xmalloc, bcache_memory_used): Declare.
5538 * bcache.c: Update copyright.
5539 (struct bstring, struct bcache): Moved to here from "bcache.h".
5541 (bcache_xmalloc, bcache_memory_used): New functions.
5542 (bcache_xfree): Replace function free_bcache.
5544 * Makefile.in (objfiles.o): Add $(bcache_h).
5545 (objfiles_h): Remove $(bcache_h).
5546 (symfile.o): Add $(bcache_h).
5548 * symmisc.c: Update copyright.
5549 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5550 (print_objfile_statistics): Use bcache_memory_used.
5552 * symfile.c: Include "bcache.h".
5553 (reread_symbols): Use bcache_xfree.
5554 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5555 (add_psymbol_to_list): Pass psymbol_cache by value.
5556 (add_psymbol_with_dem_name_to_list): Ditto.
5558 * objfiles.h: Update copyright.
5559 (struct bcache): Declare opaque. Do not include "bcache.h".
5560 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5562 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5564 * objfiles.c: Include "bcache.h". Update copyright.
5565 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5567 (free_objfile): Use bcache_xfree.
5569 2002-07-11 Grace Sainsbury <graces@redhat.com>
5571 * monitor.c (monitor_fetch_register): Make name a constant.
5572 (monitor_store_register): Same.
5574 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5576 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5577 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5578 (finish_block) For non-function blocks, hash the symbol table. For
5579 function blocks, mark the symbol table as unhashed.
5580 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5581 (msymbol_hash_iw): Likewise.
5582 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5584 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5585 (lookup_minimal_symbol): Likewise for both.
5586 * symtab.h (struct block): Add `hashtable' flag. Comment the
5588 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5589 (ALL_BLOCK_SYMBOLS): Update.
5590 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5591 (struct symbol): Add `hash_next' pointer.
5592 * symtab.c (lookup_block_symbol): Search using the hash table when
5594 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5595 (search_symbols, find_addr_symbol): Likewise.
5597 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5598 (read_dst_symtab): Likewise.
5599 * jv-lang.c (get_java_class_symtab): Likewise.
5600 * mdebugread.c: Include "gdb_assert.h".
5601 (shrink_block): Assert that the block being modified is not hashed.
5602 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5603 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5605 (dump_symtab): Recognize hashed blocks.
5606 * printcmd.c (print_frame_args): Assert that function blocks do not
5607 have hashed symbol tables.
5608 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5609 (fill_in_ada_prototype, debug_print_block): Likewise.
5610 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5612 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5614 * stack.c (print_frame): Use result of frame_address_in_block()
5615 instead of fi->pc when evaluating symbols.
5616 (backtrace_command_1): Ditto.
5618 2002-07-11 Andrew Cagney <cagney@redhat.com>
5620 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5623 * arm-tdep.c (arm_register_name): Make return type constant.
5625 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5627 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5629 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5630 * s390-tdep.c (s390_fp_regnum): Ditto.
5631 (s390_read_fp): Ditto.
5632 (s390_pop_frame): Ditto.
5633 (_initialize_s390_tdep): Ditto.
5634 * remote.c (get_remote_state): Ditto.
5635 * procfs.c (mappingflags): Ditto.
5636 * memattr.c (_initialize_mem): Ditto.
5637 * mcore-tdep.c (mcore_pop_frame): Ditto.
5638 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5639 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5640 * language.c (set_case_str): Ditto.
5641 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5642 * frv-tdep.c (new_variant): Ditto.
5643 (frv_stopped_data_address): Ditto.
5644 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5645 (context_alloc): Ditto.
5646 (frame_state_alloc): Ditto.
5647 (unwind_tmp_obstack_init): Ditto.
5648 (unwind_tmp_obstack_free): Ditto.
5649 (cfi_read_fp): Ditto.
5650 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5651 (cris_pop_frame): Ditto.
5652 * c-lang.c (scanning_macro_expansion): Ditto.
5653 (finished_macro_expansion): Ditto.
5654 (c_preprocess_and_parse): Ditto.
5655 * gdbarch.sh: Ditto.
5656 * gdbarch.h, gdbarch.c: Regenerate.
5657 * config/mn10200/tm-mn10200.h: Adjust indentation.
5658 * target.c: Adjust indentation.
5659 * symtab.h: Adjust indentation.
5660 * stabsread.h: Adjust indentation.
5661 * remote-es.c: Adjust indentation.
5662 * os9kread.c: Adjust indentation.
5664 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5666 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5667 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5669 2002-07-10 Grace Sainsbury <graces@redhat.com>
5671 * NEWS: Mention m68k, mcore multi-arching.
5672 * MAINTAINERS: Change status of m68k, mcore to reflect
5675 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5677 * valops.c (find_overload_match): Free oload_syms.
5679 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5681 Define HAVE_SYS_PROC_H if sys/proc.h exists
5682 * configure.in: Add check for sys/proc.h
5683 * config.in: Regenerate.
5684 * configure: Regenerate.
5686 2002-07-09 Grace Sainsbury <graces@redhat.com>
5688 * config/m68k/tm-m68k.h: Remove macros wrapped in
5689 #if !GDB_MULTI_ARCH.
5691 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5693 * config.in, configure: Regenerate.
5695 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5697 * dwarf2cfi.c: Include "gcore.h".
5698 (execute_stack_op): Fix implementation of the
5699 DW_OP_deref and DW_OP_deref_size operators by letting do their
5700 lookup in the target.
5702 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5704 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5705 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5708 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5710 Fix PR gdb/595, gdb/602
5711 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5712 Don't call value_cast, just read the vtable pointer; update comments
5715 2002-07-05 Grace Sainsbury <graces@redhat.com>
5717 * config/mcore/tm-mcore.h: Remove file.
5718 * config/mcore/mcore.mt: Remove definition of TM_FILE
5719 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5721 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5723 * i386bsd-tdep.c: Include "gdb_string.h".
5725 2002-07-04 Grace Sainsbury <graces@redhat.com>
5727 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5728 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5730 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5731 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5732 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5733 (RETVAL_REGNUM): Move macros from tm-mcore.h
5734 (mcore_reg_struct_has_addr): New function.
5735 (mcore_gdbarch_init): Added initializations for the macros removed
5738 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5740 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5741 traditonal string branding within the ELF header.
5743 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5745 * symtab.c (remove_params): New function.
5746 (make_symbol_overload_list): Use it instead of cplus_demangle.
5747 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5749 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5751 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5753 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5755 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5756 and tdep->sigtramp_end.
5757 * i386obsd-nat.c: New file.
5758 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5760 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5761 Don't call get_current_frame().
5763 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5765 * i386-nat.c (child_post_startup_inferior): New function
5766 calling i386_cleanup_dregs if
5767 I386_USE_GENERIC_WATCHPOINTS is defined.
5768 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5769 conditional to acknowledge that i386-nat.c has its
5770 own child_post_startup_inferior function.
5772 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5774 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5775 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5776 instead of MAX_REGISTER_RAW_SIZE.
5777 (i386_extract_return_value, i386_extract_struct_value_address):
5778 Convert to use regcache.
5779 (i386_gdbarch_init): Set max_register_raw_size and
5780 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5781 Set extract_return_value and extract_struct_value_address instead
5782 of their deprecated variants.
5784 Convert i386 target to generic dummy frames.
5785 * i386-tdep.c: Include "symfile.h".
5786 (i386_frameless_signal_p): Consider a function to be frameless if
5787 the pc points at the first instruction of the function.
5788 (i386_frame_chain): Handle (generic) call dummies.
5789 (i386_frame_saved_pc): Likewise.
5790 (i386_frame_init_saved_regs): Remove code dealing with call
5791 dummies on the stack.
5792 (i386_push_dummy_frame): Removed.
5793 (i386_call_dummy_words): Removed.
5794 (i386_fix_call_dummy): Removed.
5795 (i386_push_return_address): New function.
5796 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5797 parameter, and don't call get_current_frame.
5798 (i386_pop_frame): New function.
5799 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5800 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5801 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5802 call_dummy_length to 0, set call_dummy_words to NULL, set
5803 sizeof_call_dummy_words to 0, set fix_call_dummy to
5804 generic_fix_call_dummy, set pc_in_call_dummy to
5805 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5806 generic_push_dummy_frame, set push_return_address to
5807 i386_push_return_address and set frame_chain_valid to
5808 generic_file_frame_chain_valid.
5810 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5812 * gdbarch.sh (struct regcache): Add opaque declaration.
5813 (EXTRACT_RETURN_VALUE): New architecture method.
5814 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5815 * gdbarch.h, gdbarch.c: Regenerate.
5816 * arch-utils.c (legacy_extract_return_value): New function.
5817 * arch-utils.h (legacy_extract_return_value): Declare.
5818 * values.c (value_being_returned): Re-enable code handling
5819 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5820 deprecated_grub_regcache_for_registers call to block handling
5821 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5822 (EXTRACT_RETURN_VALUE): Do not define.
5824 2002-07-03 Grace Sainsbury <graces@redhat.com>
5826 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5827 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5828 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5829 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5830 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5831 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5832 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5833 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5834 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5835 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5836 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5837 argument so the function fits the prototype in the architecture
5839 (mcore_pop_frame): Remove argument so the function fits the
5840 prototype. Use get_current_frame instead of the argument.
5841 (mcore_push_arguments): Change type of struct_return so the
5842 function can be used in the architecture vector.
5843 (mcore_store_struct_return): Add.
5844 (mcore_frame_init_saved_regs): Add.
5845 (mcore_gdbarch_init): Add function calls to replace the macros
5846 removed from tm-mcore.h
5848 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5850 * infcmd.c (print_return_value): Remove compatibility code calling
5851 deprecated_grub_regcache_for_registers.
5853 * values.c: Include "regcache.h".
5854 (value_being_returned): Update. Use
5855 deprecated_grub_regcache_for_registers to extract the register
5857 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5858 ``struct regcache''.
5859 * Makefile.in (values.o): Add dependency on $(regcache_h).
5861 * inferior.h (run_stack_dummy): Change type of second parameter to
5862 a ``struct regcache''.
5863 * valops.c (hand_function_call): Change type of retbuf to ``struct
5864 regcache''. Allocate using regcache_xmalloc, clean using
5865 make_cleanup_regcache_xfree.
5866 * infcmd.c (run_stack_dummy): Update. Use
5867 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5869 * regcache.c (do_regcache_xfree): New function.
5870 (make_cleanup_regcache_xfree): New function.
5871 * regcache.h (make_cleanup_regcache_xfree): Declare.
5873 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5875 * event-top.c (command_line_handler): Don't read past
5876 beginning of buffer.
5878 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5880 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5882 (varobj_create): Store frame_id for root.
5883 (varobj_gen_name): Use xasprintf.
5884 (varobj_update): Save and restore frame using get_frame_id() and
5886 (create_child): Use xasprintf.
5887 (new_root_variable): Initialize frame_id.
5888 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5889 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5890 to prevent memory leak.
5892 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5894 * valops.c (hand_function_call): Move declaration of retbuf to
5895 start of function, allocate using malloc, add a cleanup but before
5896 the inf_status cleanup, cleanup the buffer. Rename local variable
5897 old_chain to inf_status_cleanup.
5899 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5901 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5903 * cli/cli-decode.c (cmd_func_p): New function.
5904 (cmd_func): New function.
5906 * command.h: Add cmd_func() and cmd_func_p().
5908 2002-07-03 Grace Sainsbury <graces@redhat.com>
5910 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5911 (REGISTER_SIZE): Remove.
5912 (MAX_REGISTER_RAW_SIZE): Remove.
5913 (REGISTER_VIRTUAL_TYPE): Remove.
5914 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5915 (REGISTER_NAME): Remove.
5916 (USE_GENERIC_DUMMY_FRAMES): Remove.
5917 (CALL_DUMMY): Remove.
5918 (CALL_DUMMY_START_OFFSET): Remove.
5919 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5920 (CALL_DUMMY_LOCATION): Remove.
5921 (FIX_CALL_DUMMY): Remove.
5922 (CALL_DUMMY_ADDRESS): Remove.
5923 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5924 (SAVE_DUMMY_FRAME_TOS): Remove.
5925 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5926 (mcore_register_virtual_type): New function.
5927 (mcore_register_byte): New function.
5928 (mcore_register_size): New function.
5929 (mcore_register_name): New function.
5930 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5931 macros removed from tm-mcore.h.
5932 (mcore_dump_tdep): Add.
5933 (_initialize_mcore_tdep): Add gdbarch_register call.
5935 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5937 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5938 frameless_look_for_prologue, such that we actually call this
5941 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5943 * frame.h (frame_address_in_block): New function.
5945 * blockframe.c (frame_address_in_block): New function extracted
5946 from get_frame_block().
5947 (get_frame_block): Use frame_address_in_block().
5948 (block_innermost_frame): Use frame_address_in_block() to match
5949 the frame pc address against the block boundaries rather than
5950 the frame pc directly. This prevents a failure when a frame pc
5951 is actually a return-address pointing immediately after the end
5954 2002-07-02 Grace Sainsbury <graces@redhat.com>
5956 * MAINTAINERS: Add self under write after approval.
5958 2002-07-02 Grace Sainsbury <graces@redhat.com>
5960 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5961 used in architecture vector. The default is
5962 m68k_local_breakpoint_from_pc.
5963 (m68k_local_breakpoint_from_pc): Add.
5964 (enum): Add register numbers from tm-m68k.h.
5965 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5967 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5968 GDB_MULTI_ARCH_PARTIAL.
5969 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5970 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5972 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5973 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5974 to enum in m68k-tdep.c
5976 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5978 * solib-osf.c (open_map): Compute the list of shared libraries
5979 loaded by the inferior, rather than the list of libraries loaded
5980 by GDB itself. Otherwise, GDB ends up reading the symbols from
5981 the wrong shared libraries...
5983 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5985 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5986 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5988 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5990 (FRAMELESS_SIGNAL): Remove function.
5991 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5992 i386_linux_saved_pc_after_call): Removed.
5993 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5994 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5995 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5997 * i386-tdep.c (i386_frameless_signal_p): New function.
5998 (i386_frame_chain): Deal with frameless signals.
5999 (i386_sigtramp_saved_sp): New function.
6000 (i386_frame_saved_pc): Deal with frameless signals.
6001 (i386_saved_pc_after_call): Make sure the correct value is
6002 returned just after entry into a sigtramp.
6003 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6004 i386fbsd4_sc_sp_offset): New variables.
6005 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6006 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6007 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6008 similiar to what we already did for sc_pc_offset.
6009 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6012 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6014 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6016 * config/i386/tm-x86-64linux.h: New.
6017 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6019 * config/i386/nm-x86-64.h: Rename to ...
6020 * config/i386/nm-x86-64linux.h: ... this one.
6021 * config/i386/x86-64linux.mh: Reflect the above change.
6023 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6025 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6026 with sigcontext_addr. Add sc_sp_offset.
6027 (i386bsd_sigtramp_saved_pc): Remove prototype.
6028 (i386bsd_sicontext_addr): Add prototype.
6029 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6030 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6031 (i386_svr4_sigtramp_saved_pc): Removed.
6032 (i386_svr4_sigcontext_addr): New function.
6033 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6034 Initialize tdep->sigcontext_addr instead. Initialize
6035 tdep->sc_pc_offset and tdep->sc_sp_offset.
6036 (i386_gdbarch_init): Likewise.
6037 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6039 (i386bsd_sigtramp_saved_pc): Remove function.
6040 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6041 Initialize tdep->sigcontext_addr instead. Initialize
6043 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6044 of tdep->sigtramp_saved_pc.
6045 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6046 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6049 * i386-tdep.c (i386_frameless_function_invocation,
6050 i386_frame_num_args, i386_frame_init_saved_regs,
6051 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6052 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6053 i386_extract_return_value, i386_store_return_value,
6054 i386_extract_struct_value_address, i386_register_virtual_type,
6055 i386_register_convertible, i386_register_convert_to_virtual,
6056 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6057 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6060 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6062 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6064 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6065 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6066 this macro. Include "value.h".
6068 2002-06-30 Aidan Skinner <aidan@velvet.net>
6070 * ada-exp.tab.c: remove as it's a generated file
6071 * ada-lex.c: remove as it's a generated file
6073 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6075 * config/i386/tm-i386.h (struct frame_info, struct
6076 frame_saved_regs, struct value, struct type): Remove forward
6079 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6080 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6081 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6082 (FILL_FPXREGSET): Define.
6084 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6086 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6087 i[3456]86-*-netbsd* case.
6088 * config/i386/tm-obsd.h: Removed.
6089 * config/i386/obsd.mt: Removed.
6090 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6092 (MH_CFLAGS): Add -DYYDEBUG=0.
6094 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6095 i386nbsd_sc_pc_offset on OpenBSD too.
6097 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6098 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6099 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6101 * i386bsd-tdep.c: Include "arch-utils.h".
6102 (i386bsd_aout_in_solib_call_trampoline): New function.
6103 (i386bsd_init_abi): Set in_solib_call_trampoline to
6104 i386bsd_aout_in_solib_call_trampoline.
6105 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6106 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6108 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6110 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6111 (struct obstack, struct bcache): Add opaque declarations.
6112 * Makefile.in (macrotab_h): Update
6114 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6116 * blockframe.c (generic_find_dummy_frame): Change return type to
6117 ``struct regcache''.
6118 (struct dummy_frame): Replace field ``registers'' with regcache, a
6119 struct regcache object.
6120 (generic_find_dummy_frame): Update.
6121 (generic_push_dummy_frame): Update. Use regcache_xfree,
6122 regcache_xmalloc and regcache_cpy.
6123 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6125 (deprecated_generic_find_dummy_frame): Update.
6126 (generic_read_register_dummy): Update. Use
6127 regcache_read_as_address.
6128 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6129 (generic_get_saved_register): Update. Use regcache_read.
6131 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6133 * Makefile.in (objfiles_h): Add $(bcache_h).
6134 * objfiles.h: Include "bcache.h".
6136 * Makefile.in (symtab_h): Remove $(bcache_h).
6137 * symtab.h: Do not include "bcache.h".
6139 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6141 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6142 generic_func_frame_chain_valid.
6144 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6146 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6147 * config/i386/tm-fbsd.h: Likewise.
6149 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6151 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6152 generic_unwind_get_saved_register.
6154 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6156 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6157 * regcache.c (supply_register): Add missing argument to
6158 register_buffer call.
6160 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6162 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6163 Solaris /bin/grep does not not like it. From Peter Schauer.
6165 2002-06-26 Tom Tromey <tromey@redhat.com>
6167 * command.h (add_setshow_cmd): Declare.
6168 (add_setshow_cmd_full): Declare.
6169 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6170 returns void. Use add_setshow_cmd_full.
6171 (add_setshow_cmd_full): New function.
6172 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6173 (add_setshow_boolean_cmd): Likewise.
6175 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6177 * config/vax/tm-vax.h: Protect from multiple inclusion.
6178 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6179 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6180 * config/vax/tm-vaxbsd.h: ...here. New file.
6181 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6183 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6185 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6186 (BELIEVE_PCC_PROMOTION): Remove.
6187 (AP_REGNUM): Move to...
6188 * config/vax/nm-vax.h: ...here.
6189 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6190 (vax_breakpoint_from_pc): New function.
6191 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6192 and gdbarch_believe_pcc_promotion.
6194 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6196 * Makefile.in (vax_tdep_h): Define.
6197 (vax-tdep.o): Use $(vax_tdep_h).
6198 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6199 (vax_dump_tdep): New function.
6200 (_initialize_vax_tdep): Register vax_dump_tdep.
6201 * vax-tdep.h: Include osabi.h.
6202 (struct gdbarch_tdep): New.
6204 2002-06-26 Andrew Cagney <cagney@redhat.com>
6206 * frame.h (deprecated_generic_find_dummy_frame): Rename
6207 generic_find_dummy_frame.
6208 * blockframe.c (generic_find_dummy_frame): Make static.
6209 (deprecated_generic_find_dummy_frame): New function.
6210 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6211 generic_find_dummy_frame with deprecated_find_dummy_frame.
6212 (sh64_nofp_frame_init_saved_regs): Ditto.
6213 (sh_fp_frame_init_saved_regs): Ditto.
6214 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6215 (s390_frame_chain): Ditto.
6216 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6218 2002-06-26 Grace Sainsbury <graces@redhat.com>
6220 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6221 gdbarch vector are at the top.
6223 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6224 (FRAME_ARGS_ADDRESS): Remove.
6225 (FRAME_LOCALS_ADDRESS): Remove.
6226 (FRAME_NUM_ARGS): Remove.
6227 (FRAME_ARGS_SKIP): Remove.
6228 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6229 (m68k_gdbarch_init): Add gdbarch initializations for macros
6230 undefined in tm-m68k.h
6232 2002-06-26 Grace Sainsbury <graces@redhat.com>
6234 * monitor.h: Add the function regname to monitor_ops
6235 structure. This way NUM_REGS does not have to be a constant.
6236 * monitor.c (monitor_fetch_register): Added support for regname
6237 function. The function is called if the array regnames is NULL.
6238 (monitor_store_register): Same.
6239 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6241 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6242 cpu32bug_cmds.regname to point to new function.
6243 * abug-rom.c (abug_regname): Same as above.
6244 (init_abug_cmds): Same.
6245 * dbug-rom.c (dbug_regname): Same as above.
6246 (init_dbug_cmds): Same.
6247 * remote-est.c (est_regname): Same.
6248 (init_est_cmds): Same.
6249 * rom68k-rom.c (rom68k_regname): Same.
6250 (init_rom68k_cmds): Same.
6252 2002-06-25 Tom Tromey <tromey@redhat.com>
6254 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6256 2002-06-25 Andrew Cagney <cagney@redhat.com>
6258 * infrun.c (stop_registers): Change variable's type to ``struct
6260 (xmalloc_inferior_status): Delete function.
6261 (free_inferior_status): Delete function.
6262 (normal_stop): Use regcache_cpy.
6263 (struct inferior_status): Change type of fields ``stop_registers''
6264 and ``registers'' to ``struct regcache''.
6265 (write_inferior_status_register): Use regcache_write.
6266 (save_inferior_status): Instead of calling
6267 xmalloc_inferior_status, allocate the inf_status buffer directly.
6268 Use regcache_dup_no_passthrough and regcache_dup to save the
6270 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6271 Replace the stop_registers regcache instead of overriding it. Use
6272 regcache_xfree. Instead of calling free_inferior_status, xfree
6273 the buffer directly.
6274 (discard_inferior_status): Use regcache_xfree. Instead of calling
6275 free_inferior_status, xfree the buffer directly.
6276 (build_infrun): Use regcache_xmalloc.
6277 (_initialize_infrun): Delete redundant call to build_infrun.
6279 * Makefile.in (infcmd.o): Add $(regcache_h).
6281 * infcmd.c: Include "regcache.h".
6282 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6283 obtain the address of `stop_registers' register buffer.
6284 (print_return_value): Ditto.
6286 * inferior.h (struct regcache): Add opaque declaration.
6287 (stop_registers): Change variable's declared type to ``struct
6290 2002-06-24 Tom Tromey <tromey@redhat.com>
6292 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6293 * target.c (initialize_targets): Fixed typo in
6294 trust-readonly-sections `show' documentation.
6296 * main.c: Marked all strings with _().
6298 2002-06-24 Don Howard <dhoward@redhat.com>
6300 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6301 that means max CORE_ADDR+1.
6302 (lookup_mem_region): Ditto.
6303 (mem_info_command): Ditto.
6305 2002-06-24 Grace Sainsbury <graces@redhat.com>
6307 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6308 (REGISTER_BYTES_OK): Remove.
6309 (REGISTER_BYTES): Remove.
6310 (STORE_STRUCT_RETURN): Remove.
6311 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6312 (STORE_RETURN_VALUE): Remove.
6313 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6314 (FRAME_CHAIN): Remove.
6315 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6316 (FRAME_SAVED_PC): Remove.
6317 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6318 (m68k_store_struct_return): Add.
6319 (m68k_deprecated_extract_return_value): Add.
6320 (m68k_deprecated_extract_struct_value_address): Add.
6321 (m68k_store_return_value): Add.
6322 (m68k_frame_chain): Add.
6323 (m68k_frameless_function_invocation): Add.
6324 (m68k_frame_saved_pc): Add.
6325 (m68k_gdbarch_init): added set_gdbarch calls for new
6326 functions and deleted macros.
6328 2002-06-23 Tom Tromey <tromey@redhat.com>
6330 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6331 (ALLDEPFILES): Likewise.
6332 (udiheaders): Removed.
6333 (udip2soc.o): Likewise.
6334 (udi2go32.o): Likewise.
6336 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6338 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6340 * infrun.c (_initialize_infrun): Delete unnecessary call to
6343 * regcache.h: Update comments describing the regcache_cpy family
6345 (regcache_save, regcache_restore): Delete declaration.
6346 (regcache_save_no_passthrough): Delete declaration.
6347 (regcache_restore_no_passthrough): Delete declaration.
6348 * regcache.c (regcache_save): Delete function.
6349 (regcache_save_no_passthrough): Delete function.
6350 (regcache_restore): Delete function.
6351 (regcache_restore_no_passthrough): Delete function.
6353 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6355 * config/m68k/tm-m68k.h: Fix typo.
6356 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6357 (m68k_frame_init_saved_regs): Declare.
6359 2002-06-21 Jim Blandy <jimb@redhat.com>
6361 Remove some vestiges of Harris 88k support.
6362 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6363 register numbering quirk.
6364 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6365 odd symbols occurring in Harris 88k ELF targets.
6367 2002-06-21 Tom Tromey <tromey@redhat.com>
6369 * gdb_locale.h: New file.
6370 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6371 (defs_h): Added gdb_locale.h.
6372 * configure, config.in: Rebuilt.
6373 * configure.in (PACKAGE): Define.
6374 * defs.h: Include gdb_locale.h.
6375 * main.c (captured_main): Call setlocale, bindtextdomain,
6378 2002-06-21 Dave Brolley <brolley@redhat.com>
6380 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6381 * config/frv/frv.mt: New file.
6382 * config/frv/tm-frv.h: New file.
6383 * configure.tgt: Support frv-*-*.
6384 * Makefile.in (frv-tdep.o): New target.
6385 * frv-tdep.c: New file.
6386 * NEWS: Mention frv.
6388 2002-06-21 Dave Brolley <brolley@redhat.com>
6390 * MAINTAINERS: Add self to "Write After Approval" list.
6392 2002-06-21 Grace Sainsbury <graces@redhat.com>
6394 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6395 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6396 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6397 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6398 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6400 * m68k-tdep.c: Include arch-utils.h
6401 (m68k_register_raw_size): Add.
6402 (m68k_register_virtual_size): Add.
6403 (m68k_register_virtual_type): Add.
6404 (m68k_register_name): Add.
6405 (m68k_stack_align): Add.
6406 (m68k_register_byte): Add.
6407 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6410 2002-06-21 Grace Sainsbury <graces@redhat.com>
6412 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6413 m68k_find_saved_regs.
6414 (m68k_pop_frame): Removed saved_regs structure, and replaced
6415 references to it with frame->saved_regs.
6416 (m68k_gdbarch_init): Added function calls to initialize the
6418 (m68k_fix_call_dummy): Add.
6419 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6420 (CALL_DUMMY): Remove.
6421 (CALL_DUMMY_LENGTH): Remove.
6422 (CALL_DUMMY_START_OFFSET): Remove.
6423 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6424 (FIX_CALL_DUMMY): Remove.
6425 (PUSH_DUMMY_FRAME): Remove.
6426 (POP_FRAME): Remove.
6428 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6430 * parse.c (parse_fprintf): New function used to avoid calls to
6431 fprintf in bison parser generated debug code.
6432 * parser-defs.h: Declaration of new parse_fprintf function.
6433 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6434 Set YYDEBUG to 1 by default.
6435 Set YYFPRINTF as parse_fprintf.
6437 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6439 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6441 (pointer_encoding, enum ptr_encoding): New.
6442 (execute_cfa_program): Take care about pointer encoding.
6443 (dwarf2_build_frame_info): Only call parse_frame_info for
6444 .debug_frame and .eh_frame.
6445 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6446 fixed augmentation handling, added relative addressing,
6447 ignore duplicate FDEs. Added comments.
6448 * dwarf2cfi.c: Reindented.
6450 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6452 * event-top.c (command_handler): Don't use space_at_cmd_start
6453 unless there is sbrk() on the host. Assign time and space data
6454 to union fields of the appropriate length.
6456 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6458 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6459 x86_64_register_name. Return type changed to 'const char *'.
6460 (x86_64_register_name2nr): Rename to x86_64_register_number.
6461 (x86_64_gdbarch_init): Update to reflect the change.
6462 * x86-64-tdep.h: Ditto.
6463 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6464 (supply_fpregset): Ditto.
6466 2002-06-19 Andrew Cagney <cagney@redhat.com>
6468 * regcache.h: Update copyright.
6469 (struct regcache, struct gdbarch): Add opaque declarations.
6470 (current_regcache): Declare global variable.
6471 (regcache_read, regcache_write): Add gdbarch parameter.
6472 (regcache_save, regcache_save_no_passthrough)
6473 (regcache_restore, regcache_restore_no_passthrough)
6474 (regcache_dup, regcache_dup_no_passthrough)
6475 (regcache_cpy, regcache_cpy_no_passthrough)
6476 (deprecated_grub_regcache_for_registers)
6477 (deprecated_grub_regcache_for_register_valid)
6478 (regcache_valid_p): Add function declarations.
6480 * regcache.c: Update copyright.
6481 (regcache_descr_handle): New global variable.
6482 (struct regcache_descr): Define.
6483 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6484 (regcache_descr, xfree_regcache_descr): New functions.
6485 (struct regcache): Define.
6486 (regcache_xmalloc, regcache_xfree): New functions.
6487 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6488 (regcache_dup, regcache_dup_no_passthrough): New functions.
6489 (regcache_valid_p, regcache_read_as_address): New functions.
6490 (deprecated_grub_regcache_for_registers): New function.
6491 (deprecated_grub_regcache_for_register_valid): New function.
6492 (current_regcache): New global variable.
6493 (register_buffer): Add regcache parameter. Update calls.
6494 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6495 (read_register_gen, write_register_gen): Update register_buffer
6496 call. Test for legacy_p instead of gdbarch_register_read_p or
6497 gdbarch_register_write_p.
6498 (regcache_collect): Update register_buffer call.
6499 (build_regcache): Rewrite. Use deprecated grub functions.
6500 (regcache_save, regcache_save_no_passthrough): New functions.
6501 (regcache_restore, regcache_restore_no_passthrough): New
6503 (_initialize_regcache): Create the regcache_data_handle. Swap
6504 current_regcache global variable.
6506 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6507 parameter to regcache_read and regcache_write calls.
6508 (sh4_register_read): Ditto.
6509 (sh64_pseudo_register_read): Ditto.
6510 (sh64_register_read): Ditto.
6511 (sh_pseudo_register_write): Ditto.
6512 (sh4_register_write): Ditto.
6513 (sh64_pseudo_register_write): Ditto.
6514 (sh64_register_write): Ditto.
6516 * defs.h (XCALLOC): Define.
6518 2002-06-19 Grace Sainsbury <graces@redhat.com>
6520 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6521 * m68k-tdep.c (m68k_gdbarch_init): Added.
6522 (m68k_dump_tdep): Added.
6524 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6526 * ada-lang.c (fill_in_ada_prototype): Update comment.
6528 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6530 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6532 (mips_abi_string, mips_abi_strings): New.
6533 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6534 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6535 tdep->mips_abi_string. Honor mips_abi_string. Default to
6536 O32 if no ABI is found.
6537 (mips_dump_tdep): Use mips_abi_strings.
6538 (mips_abi_update): New function.
6539 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6540 ``set mips abi'' and ``show mips abi''. Check the size of
6543 2002-06-19 Andrew Cagney <cagney@redhat.com>
6545 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6548 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6550 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6551 current frame using only the first stack size adjustment. All
6552 subsequent size adjustments are not considered to be part of
6553 the "static" part of the current frame.
6554 Compute the address of the saved registers relative to the
6555 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6556 in use in this frame.
6558 2002-06-18 Don Howard <dhoward@redhat.com>
6560 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6561 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6562 suggesting this solution.
6564 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6566 * config/romp/xm-rtbsd.h: Delete file.
6567 * config/romp/rtbsd.mh: Delete file.
6569 2002-06-18 Keith Seitz <keiths@redhat.com>
6571 * breakpoint.c (condition_command): Post breakpoint_modify
6572 when a condition is added to an existing breakpoint.
6573 (commands_command): Likewise for commands.
6574 (set_ignore_count): Likewise for ignore counts.
6575 If no tty, do not simply return, still need to send event
6577 (ignore_command): Only print a newline if the command came
6579 Don't call breakpoints_changed, since this is now properly
6580 handled by set_ignore_count.
6582 2002-06-18 Andrew Cagney <cagney@redhat.com>
6584 * MAINTAINERS: Note that cris-elf target can be compiled with
6586 * cris-tdep.c (cris_register_name): Make return type constant.
6587 (cris_breakpoint_from_pc): Ditto.
6589 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6591 * frame.h (struct frame_info): Change type of context to
6594 2002-06-17 Andrew Cagney <cagney@redhat.com>
6596 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6598 * gdbarch.h, gdbarch.c: Regenerate.
6599 * config/mips/tm-mips.h (mips_register_name): Update.
6600 * i386-tdep.h (i386_register_name): Update.
6601 * mips-tdep.c (mips_register_name): Update
6602 * alpha-tdep.c (alpha_register_name): Update.
6603 * arch-utils.c (legacy_register_name): Update.
6604 * arch-utils.h (legacy_register_name): Update.
6605 * avr-tdep.c (avr_register_name): Update.
6606 * ia64-tdep.c (ia64_register_name): Update.
6607 * i386-tdep.c (i386_register_name): Update.
6608 * sparc-tdep.c (sparc32_register_name): Update.
6609 (sparc64_register_name): Update.
6610 (sparclite_register_name): Update.
6611 (sparclet_register_name): Update.
6612 * sh-tdep.c (sh_generic_register_name): Update.
6613 (sh_sh_register_name): Update.
6614 (sh_sh3_register_name): Update.
6615 (sh_sh3e_register_name): Update.
6616 (sh_sh_dsp_register_name): Update.
6617 (sh_sh3_dsp_register_name): Update.
6618 (sh_sh4_register_name): Update.
6619 (sh_sh64_register_name): Update.
6620 * s390-tdep.c (s390_register_name): Update.
6621 * rs6000-tdep.c (rs6000_register_name): Update.
6622 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6623 (ns32k_register_name_32382): Update.
6624 * d10v-tdep.c (d10v_ts2_register_name): Update.
6625 (d10v_ts3_register_name): Update.
6626 * xstormy16-tdep.c (xstormy16_register_name): Update.
6627 * vax-tdep.c (vax_register_name): Update.
6628 * v850-tdep.c (v850_register_name): Update.
6629 * m68hc11-tdep.c (m68hc11_register_name): Update.
6630 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6631 (am33_register_name): Update.
6633 2002-06-17 Grace Sainsbury <graces@redhat.com>
6635 * m68k-tdep.c: Reindented.
6637 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6639 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6640 list of predefined types.
6642 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6644 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6645 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6646 REGISTER_CONVERT_TO_RAW): Remove defines.
6647 (i386_register_virtual_type, i386_register_convertible,
6648 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6650 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6651 macros mentioned above.
6653 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6654 (i386lynx_saved_pc_after_call): Remove prototype.
6655 * i386ly-tdep.c: Include "i386-tdep.h".
6656 (i386lynx_saved_pc_after_call): Make static. Use
6657 read_memory_nobpt instead of read_memory. Use
6658 read_memory_unsigned_integer instead of read_memory_integer.
6659 (i386lynx_init_abi): New function.
6660 (i386lynx_coff_osabi_sniffer): New function.
6661 (_initialize_i386bsd_tdep): New function.
6663 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6664 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6665 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6666 (i386_fix_call_dummy): Remove prototype.
6667 * i386-tdep.c (i386_call_dummy_words): New variable.
6668 (i386_gdbarch_init): Adjust for removal of the
6669 macros mentioned above.
6671 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6673 * command.h (add_setshow_auto_boolean_cmd): Replace
6674 add_set_auto_boolean_cmd.
6675 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6676 add_set_auto_boolean_cmd.
6677 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6678 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6679 mask-address'' command.
6680 (show_mask_address): Add cmd parameter.
6681 * remote.c (add_packet_config_cmd): Update. Change type of
6682 set_func and show_func to cmd_sfunc_ftype.
6683 (_initialize_remote): Update `set remote Z-packet'
6684 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6685 (show_remote_protocol_e_packet_cmd): Ditto.
6686 (show_remote_protocol_E_packet_cmd): Ditto.
6687 (show_remote_protocol_P_packet_cmd): Ditto.
6688 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6689 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6690 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6691 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6692 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6693 (show_remote_protocol_Z_packet_cmd): Ditto.
6694 (show_remote_protocol_binary_download_cmd): Ditto.
6695 (show_remote_cmd): Pass NULL to all of above.
6697 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6699 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6700 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6701 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6702 POP_FRAME): Remove defines.
6703 (i386_push_arguments, i386_store_struct_return,
6704 i386_extract_return_value, i386_store_return_value,
6705 i386_extract_struct_value_address, i386_push_dummy_frame,
6706 i386_pop_frame): Renove prototypes.
6707 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6708 macros mentioned above.
6710 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6712 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6713 add_set_boolean_cmd.
6714 (add_setshow_cmd): New function.
6715 * command.h (add_setshow_boolean_cmd): Replace
6716 add_set_boolean_cmd.
6717 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6718 and ``set rdiromatzero''.
6719 * maint.c (_initialize_maint_cmds): Update commented out code.
6720 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6721 * target.c (initialize_targets): Update `set
6722 trust-readonly-sections'.
6723 * remote.c (_initialize_remote): Update `set remotebreak'.
6725 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6727 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6728 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6729 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6730 fit into multi-arch framework.
6731 (i386_breakpoint_from_pc): New function.
6732 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6735 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6736 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6737 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6738 (i386_frameless_function_invocation, i386_frame_num_args,
6739 i386_frame_init_saved_regs): Remove prototypes.
6740 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6741 macros mentioned above.
6743 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6745 * cli/cli-decode.c (set_cmd_cfunc): Update.
6746 (set_cmd_sfunc): Update.
6747 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6748 (set_cmd_sfunc, set_cmd_cfunc): Update.
6749 * cli/cli-decode.h: Update.
6751 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6753 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6754 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6756 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6758 * defs.h (auto_boolean): Declare enum.
6759 * command.h (cmd_auto_boolean): Delete enum.
6760 * mips-tdep.c (mask_address_var): Update.
6761 (mips_mask_address_p): Update.
6762 (show_mask_address): Update.
6763 * remote.c (struct packet_config): Update.
6764 (update_packet_config): Update.
6765 (show_packet_config_cmd): Update.
6766 (packet_ok): Update.
6767 (add_packet_config_cmd): Update.
6768 (_initialize_remote):
6769 * command.h: Update.
6770 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6771 (do_setshow_command): Update.
6772 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6773 * cli/cli-decode.h: Update.
6775 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6777 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6778 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6779 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6780 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6781 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6782 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6784 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6785 list of DJGPP COFF targets.
6787 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6788 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6789 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6790 (FP0_REGNUM): Remove define.
6791 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6792 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6793 (i386_register_virtual_size): Remove protoype.
6794 * i386-tdep.c (i386_register_virtual_size): Removed.
6795 (i386_extract_return_value, i386_store_return_value): Use
6796 FP0_REGNUM instead of NUM_FREGS to determine whether the
6797 floating-point registers are available.
6798 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6799 Adjust for removal of macros mentioned above.
6801 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6803 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6805 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6807 (supply_gregset, fill_gregset): Remove use of register keyword and
6808 remove declaration for regmap. Use I386_NUM_GREGS instead of
6809 NUM_REGS and NUM_FREGS.
6810 (FPREGSET_FSAVE_OFFSET): Remove.
6811 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6812 NUM_FREGS to determine whether the floating-point registers are
6815 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6816 gnu_store_registers): Replace usage of NUM_GREGS with
6819 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6820 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6821 usage of NUM_GREGS with I386_NUM_GREGS.
6823 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6825 * i386bsd-nat.c: Include "i386-tdep.h".
6826 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6829 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6830 and associated comment. They no longer make any sense, since we
6831 don't use this file anymore on Linux.
6833 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6834 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6835 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6836 elements in these arrays.
6837 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6840 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6842 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6843 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6845 2002-06-14 Andrew Cagney <cagney@redhat.com>
6847 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6848 EXTRACT_RETURN_VALUE.
6849 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6850 EXTRACT_STRUCT_VALUE_ADDRESS.
6851 * gdbarch.h, gdbarch.c: Regenerate.
6853 * values.c (value_being_returned): Handle
6854 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6855 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6857 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6858 * arm-tdep.c (arm_gdbarch_init): Update.
6859 * avr-tdep.c (avr_gdbarch_init): Update.
6860 * cris-tdep.c (cris_gdbarch_init): Update.
6861 * d10v-tdep.c (d10v_gdbarch_init): Update.
6862 * ia64-tdep.c (ia64_gdbarch_init): Update.
6863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6864 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6865 * s390-tdep.c (s390_gdbarch_init): Update.
6866 * sh-tdep.c (sh_gdbarch_init): Update.
6867 * s390-tdep.c (s390_gdbarch_init): Update.
6868 * sparc-tdep.c (sparc_gdbarch_init): Update.
6869 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6870 * v850-tdep.c (v850_gdbarch_init): Update.
6871 * vax-tdep.c (vax_gdbarch_init): Update.
6872 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6875 * config/arc/tm-arc.h: Update.
6876 * config/d30v/tm-d30v.h: Update.
6877 * config/fr30/tm-fr30.h: Update.
6878 * config/h8300/tm-h8300.h: Update.
6879 * config/h8500/tm-h8500.h: Update.
6880 * config/i386/tm-i386.h: Update.
6881 * config/i386/tm-ptx.h: Update.
6882 * config/i386/tm-symmetry.h: Update.
6883 * config/i960/tm-i960.h: Update.
6884 * config/m32r/tm-m32r.h: Update.
6885 * config/m68k/tm-delta68.h: Update.
6886 * config/m68k/tm-linux.h: Update.
6887 * config/m68k/tm-m68k.h: Update.
6888 * config/m88k/tm-m88k.h: Update.
6889 * config/mcore/tm-mcore.h: Update.
6890 * config/mips/tm-mips.h: Update.
6891 * config/mn10200/tm-mn10200.h: Update.
6892 * config/pa/tm-hppa.h: Update.
6893 * config/pa/tm-hppa64.h: Update.
6894 * config/sparc/tm-sp64.h: Update.
6895 * config/sparc/tm-sparc.h: Update.
6896 * config/sparc/tm-sparclet.h: Update.
6897 * config/z8k/tm-z8k.h: Update.
6899 2002-06-14 Andrew Cagney <cagney@redhat.com>
6901 * Makefile.in (i386_linux_tdep_h): Define.
6902 (i386_tdep_h, i387_tdep_h): Define.
6903 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6904 $(i386_tdep_h) and $(i387_tdep_h).
6905 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6907 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6909 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6910 Already covered by the default.
6912 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6913 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6914 (i386_gdbarch_init): Initialize long_double_format and long_double
6917 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6918 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6920 * config/i386/i386sol2.mh: ... here.
6921 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6922 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6923 (SIGCONTEXT_PC_OFFSET): Remove define.
6924 (IN_SIGTRAMP): Remove define.
6925 * i386-sol2-tdep.c: New file.
6927 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6928 * config/i386/tm-i386nw.h: Removed.
6930 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6931 USE_STRUCT_CONVENTION): Remove defines.
6932 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6933 (get_longjmp_target): Remove prototype.
6934 (IN_SIGTRAMP): Remove define.
6935 (i386bsd_in_sigtramp): Remove prototype.
6936 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6937 function. Update comment accordingly
6938 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6939 (FRAME_SAVED_PC): Remove define.
6940 (i386bsd_frame_saved_pc): Remove prototype.
6941 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6942 GET_LONGJMP_TARGET): Remove defines.
6943 (get_longjmp_target): Remove prototype.
6944 (IN_SIGTRAMP): Remove define.
6945 (i386bsd_in_sigtramp): Remove prototype.
6946 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6947 function. Update comment accordingly
6948 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6949 (FRAME_SAVED_PC): Remove define.
6950 (i386bsd_frame_saved_pc): Remove prototype.
6951 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6953 (USE_STRUCT_CONVENTION): Remove prototype.
6954 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6956 (_initialize_i386bsd_nat): Revise logic to determine some
6957 constants at compile time when compiling a native GDB. Warn if
6958 things don't match up with what we expect.
6959 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6961 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6962 to use date stored in `struct gdbarch_tdep'.
6963 (i386bsd_sigcontext_offset): Remove varaible.
6964 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6965 stored in `struct gdbarch_tdep'.
6966 (i386bsd_frame_saved_pc): Make static.
6967 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6968 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6969 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6970 i386fbsd4_sc_pc_offset): New variables.
6971 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6972 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6974 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6976 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6977 Modify the value of i386fbsd_sigtramp_start and
6978 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6979 i386fbsd_sigtramp_end.
6980 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6983 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6984 define to i386-linux-tdep.h.
6985 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6986 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6988 (i386_linux_register_name, i386_linux_register_byte,
6989 i386_linux_register_raw_size): Remove prototypes.
6990 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6991 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6992 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6993 TARGET_WRITE_PC): Remove defines.
6994 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6995 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6996 i386_linux_write_pc): Remove prototypes.
6997 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6998 (get_longjmp_target): Remove prototype.
6999 * i386-linux-tdep.h: New file.
7000 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7001 * i386-linux-tdep.c: Include "i386-tdep.h" and
7002 "i386-linux-tdep.h".
7003 (i386_linux_register_name, i386_linux_register_byte,
7004 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7005 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7007 (i386_linux_init_abi): New function.
7008 (_initialize_i386_linux_tdep): New function.
7010 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7011 (i386_saved_pc_after_call): Remove prototype.
7012 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7013 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7014 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7015 (i386_register_name, i386_stab_reg_to_regnum,
7016 i386_dwarf_reg_to_regnum): Remove prototypes.
7017 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7018 SIZEOF_SSE_REGS): Remove defines.
7019 (REGISTER_BYTES): Remove define.
7020 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7021 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7022 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7023 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7024 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7025 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7026 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7027 (get_longjmp_target): Remove prototype.
7028 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7029 (sigtramp_saved_pc): Remove define.
7030 (i386v4_sigtramp_saved_pc): Remove prototype.
7031 * config/i386/tm-go32.h (FRAME_CHAIN,
7032 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7033 (i386go32_frame_saved_pc): Remove prototype.
7034 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7035 (get_longjmp_target): Remove prototype.
7036 * i386-tdep.h: Include "osabi.h".
7037 (enum i386_abi): Removed.
7038 (enum struct_return): New enum.
7039 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7040 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7041 sc_pc_offset members.
7042 (i386_gdbarch_register_os_abi): Remove prototype.
7043 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7044 I386_SSE_NUM_REGS): New defines.
7045 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7046 I386_SSE_SIZEOF_REGS): New defines.
7047 (i386_register_name, i386_register_byte, i386_register_raw_size):
7049 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7050 (i386bsd_sigtramp_saved_pc): New prototype.
7051 * i386-tdep.c: Don't include "elf-bfd.h".
7052 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7053 i386_frame_chain, i386_saved_pc_after_call): Make static.
7054 (i386_frame_saved_pc): Rewrite to call architecture dependent
7055 function to deal with signal handlers. Make static.
7056 (i386go32_frame_saved_pc): Removed.
7057 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7059 (i386_get_longjmp_target): New function.
7060 (default_struct_convention, pcc_struct_convention,
7061 reg_struct_convention, valid_conventions, struct_convention): New
7063 (i386_use_struct_convention): New function.
7064 (i386v4_sigtramp_saved_pc): Renamed to
7065 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7066 (i386_pc_in_sigtramp): New function.
7067 (i386_abi_names): Removed.
7068 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7069 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7071 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7072 i386_gdbarch_register_os_abi): Removed.
7073 (struct i386_abi_handler): Removed.
7074 (i386_abi_handler_list): Removed.
7075 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7077 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7078 i386_nw_init_abi): New functions.
7079 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7080 Use set_gdbarch_xxx() calls instead of relying on macros for a
7082 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7083 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7084 Register the various architecture variants defined in this file.
7086 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7088 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7089 (struct main_type): Remove arg_types member. Update comments for
7091 (TYPE_ARG_TYPES): Remove.
7092 (TYPE_FN_FIELD_ARGS): Update.
7093 (smash_to_method_type): Update prototype.
7095 * c-typeprint.c (cp_type_print_method_args): Take method type
7096 instead of argument list. Use new argument layout. Simplify.
7097 (c_type_print_args): Use new argument layout. Simplify.
7098 (c_type_print_base): Update call to cp_type_print_method_args.
7099 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7100 argument; use die->type instead. Update call to
7101 smash_to_method_type.
7102 (read_structure_scope): Update call to dwarf2_add_member_fn.
7103 * gdbtypes.c (allocate_stub_method): Update comment.
7104 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7105 Use new argument layout.
7106 (check_stub_method): Use new argument layout. Don't count
7107 void as an argument.
7108 (print_arg_types): Update comments. Use new argument layout.
7109 (recursive_dump_type): Don't print arg_types member.
7110 * hpread.c (hpread_read_struct_type): Use new argument layout.
7111 (fixup_class_method_type): Likewise.
7112 (hpread_type_lookup): Likewise.
7113 * stabsread.c (read_type): Update calls to read_args and
7114 smash_to_method_type.
7115 (read_args): Use new argument layout. Simplify.
7116 * valops.c (typecmp): Use new argument layout. Update parameters
7117 and comments. Simplify.
7118 (hand_function_call): Use new argument layout.
7119 (search_struct_method): Update call to typecmp.
7120 (find_overload_match): Use new argument layout.
7122 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7124 * NEWS: Mention multithreaded debug support for gdbserver.
7126 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7128 * MAINTAINERS: Mention NEWS.
7130 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7132 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7133 (struct mips_objfile_private, compare_pdr_entries): New.
7134 (non_heuristic_proc_desc): Read the ".pdr" section if it
7137 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7139 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7140 (arm_debug): New static variable.
7141 (_initialize_arm_tdep): Add ``set debug arm'' command.
7143 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7145 * Makefile.in (sim_arm_h): Define.
7146 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7147 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7148 (arm_register_sim_regno): New function, map an internal REGNUM
7149 onto a simulator register number.
7150 (arm_gdbarch_init): Set register_sim_regno.
7152 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7154 * MAINTAINERS: Add self.
7156 2002-06-11 Jim Blandy <jimb@redhat.com>
7158 * source.c (source_info): Mention whether the symtab has
7159 information about preprocessor macros.
7161 Call the command `info macro', not `show macro'.
7162 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7164 (_initialize_macrocmd): Register `info_macro_command' in
7165 `infolist', not `showlist'.
7167 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7169 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7170 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7171 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7172 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7173 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7175 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7176 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7177 (_initialize_mips_tdep): Remove dead code.
7178 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7179 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7180 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7181 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7182 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7183 MIPS_LAST_FP_ARG_REGNUM): Remove.
7185 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7187 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7188 (unwind_tmp_obstack_free, parse_frame_info)
7189 (update_context, cfi_read_fp, cfi_write_fp)
7190 (cfi_frame_chain, cfi_init_extra_frame_info)
7191 (cfi_virtual_frame_pointer): Use the above function.
7192 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7194 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7196 * v850-tdep.c (v850_type_is_scalar): New function.
7197 (v850_use_struct_convention): Match current gcc implementation
7198 as close as possible.
7199 (v850_push_arguments): Fix stack_offset handling. Don't write
7200 struct_addr into register. This is done by v850_store_struct_return.
7201 (v850_extract_return_value): Care for structs.
7202 (v850_store_return_value): Ditto.
7203 (v850_store_struct_return): Actually write address.
7205 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7207 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7208 without debug information too.
7210 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7212 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7213 Make multi-arch pure.
7214 * gdbarch.h, gdbarch.c: Re-generate.
7215 * arm-tdep.c (arm_print_float_info): Update.
7216 * arch-utils.h (default_print_float_info): Update.
7217 * arch-utils.c (default_print_float_info): Update.
7218 * infcmd.c (float_info): Update call.
7220 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7222 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7223 the front of the initialize list.
7225 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7227 * infrun.c (struct inferior_status): Replace fields
7228 selected_frame_address and selected_level with field
7230 (save_inferior_status): Update. Use get_frame_id.
7231 (struct restore_selected_frame_args): Delete.
7232 (restore_selected_frame): Update. Use frame_find_by_id.
7233 (restore_inferior_status): Update.
7235 * breakpoint.h (struct breakpoint): Change type of
7236 watchpoint_frame to frame_id.
7237 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7238 call to get_current_frame.
7239 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7241 (watchpoint_check): Use frame_find_by_id.
7243 * frame.h (record_selected_frame): Delete declaration.
7244 * stack.c (record_selected_frame): Delete function.
7246 * frame.h (struct frame_id): Define.
7247 (get_frame_id): Declare.
7248 (frame_find_by_id): Declare.
7249 * frame.c (frame_find_by_id): New function.
7250 (get_frame_id): New function.
7252 2002-06-10 Andrey Volkov <avolkov@transas.com>
7254 * ser-e7kpc.c: Fix duplicated define and call of
7255 _initialize_ser_e7000pc
7257 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7259 * signals/signals.c (target_signal_from_host): Fix #ifdef
7261 (do_target_signal_to_host): Likewise.
7263 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7265 * mips-tdep.c (mips_find_abi_section): New function.
7266 (mips_gdbarch_init): Call it.
7268 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7270 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7271 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7272 after Andrew's 2002-06-08 gdbarch change.
7274 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7276 * i386-linux-nat.c (suppy_gregset): Don't supply
7277 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7279 (fill_gregset): Don't fetch it under the same circumstances.
7281 2002-06-09 Andrew Cagney <cagney@redhat.com>
7283 * Makefile.in (callback_h): Define.
7284 (remote_sim_h): Update path to remote-sim.h.
7285 (remote-rdp.o): Add $(callback_h).
7286 (remote-sim.o): Use $(callback_h).
7287 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7288 * remote-rdp.c: Include "gdb/callback.h".
7290 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7292 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7293 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7295 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7297 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7298 * rdi-share/serpardr.c: Ditto.
7299 * rdi-share/unixcomm.c: Ditto.
7300 * rdi-share/serdrv.c: Ditto.
7301 * rdi-share/hostchan.h: Ditto.
7302 * rdi-share/hostchan.c: Ditto.
7303 * rdi-share/host.h: Ditto.
7304 * rdi-share/devsw.c: Ditto.
7306 * objfiles.h: Change type of obj_private to void pointer.
7307 * pa64solib.c: Update copyright. Don't include "assert.h", use
7308 strcmp instead of STREQ, use LONGEST, do not use PTR
7309 * somsolib.c: Ditto.
7311 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7312 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7313 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7315 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7317 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7318 (default_get_saved_register): Delete function.
7319 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7320 generic_unwind_get_saved_register.
7321 * gdbarch.h, gdbarch.c: Re-generate.
7323 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7325 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7326 generic_func_frame_chain_valid.
7327 * gdbarch.h, gdbarch.c: Re-generate.
7328 * blockframe.c (generic_func_frame_chain_valid): Only check
7329 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7330 passing FP to PC_IN_CALL_DUMMY.
7333 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7335 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7336 (register_gdbarch_data): Initialize init_p.
7337 (gdbarch_data): Initialize data pointer using the init function.
7338 (init_gdbarch_data): Delete function.
7339 (gdbarch_update_p): Update.
7340 (initialize_non_multiarch): Update.
7341 (struct gdbarch): Add field initialized_p.
7342 * gdbarch.h, gdbarch.c: Re-generate.
7344 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7346 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7347 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7348 better do the things actually here.
7349 * x86-64-tdep.c (x86_64_register_name2nr): New.
7350 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7351 (x86_64_gdbarch_init): Respect the above change.
7352 * x86-64-tdep.h (x86_64_register_name2nr)
7353 (x86_64_register_nr2name): Add prototypes.
7354 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7356 2002-06-06 Michael Snyder <msnyder@redhat.com>
7358 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7359 Delete extra braces and re-indent.
7360 (d10v_store_return_value): Char return values
7361 must be shifted over by one byte in R0.
7362 (d10v_extract_return_value): Delete extra braces, re-indent.
7364 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7366 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7367 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7368 (d10v_integer_to_address): Rewrite.
7369 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7370 the d10v specific functions which take care of converting to the
7373 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7375 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7376 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7378 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7380 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7382 * config/tm-linux.h: Ditto.
7383 * config/alpha/tm-alphalinux.h: Ditto.
7384 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7385 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7386 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7387 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7388 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7389 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7390 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7391 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7392 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7393 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7394 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7395 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7396 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7397 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7398 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7399 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7400 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7401 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7402 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7403 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7404 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7405 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7406 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7407 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7408 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7409 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7410 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7411 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7412 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7413 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7414 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7415 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7416 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7417 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7418 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7419 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7420 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7422 2002-05-04 Aidan Skinner <aidan@velvet.net>
7424 * ada-exp.tab.c: New file
7425 * ada-exp.y: New file
7426 * ada-lang.c: New file
7427 * ada-lang.h: New file
7428 * ada-lex.c: New file
7429 * ada-lex.l: New file
7430 * ada-tasks.c: New file
7431 * ada-typeprint.c: New file
7432 * ada-valprint.c: New file
7434 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7436 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7437 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7439 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7441 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7442 insetead of ppc-linux-tdep.o.
7443 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7444 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7446 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7448 2002-05-07 Christian Groessler <chris@groessler.org>
7449 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7450 bit register contents for little endian hosts.
7452 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7454 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7457 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7459 * gdbarch.h: Regenerate.
7461 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7463 * MAINTAINERS: Add everyone to write-after-approval list.
7465 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7467 * stack.c (frame_info): Use frame_register_unwind instead of
7468 saved_regs. Mention when the SP is on the stack or in a register.
7470 * frame.h (frame_register_unwind_ftype): Define. Document.
7471 (struct frame_info): Add field register_unwind and
7472 register_unwind_cache.
7473 (frame_register_unwind): Declare.
7474 (generic_unwind_get_saved_register): Declare.
7476 * frame.c (frame_register_unwind): New function.
7477 (generic_unwind_get_saved_register): New function.
7479 * blockframe.c (generic_call_dummy_register_unwind): New function.
7480 (frame_saved_regs_register_unwind): New function.
7481 (set_unwind_by_pc): New function.
7482 (create_new_frame): New function.
7483 (get_prev_frame): New function.
7485 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7487 * a29k-share/: Delete directory.
7488 * remote-vx29k.c: Delete file.
7490 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7492 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7493 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7495 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7497 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7498 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7501 (sparcnbsd-tdep.o): New dependency lists.
7502 * NEWS: Note new UltraSPARC NetBSD native configuration.
7503 * configure.host (sparc64-*-netbsd*): New host.
7504 * configure.tgt (sparc-*-netbsdelf*)
7505 (sparc-*-netbsd*): Set gdb_target to nbsd.
7506 (sparc64-*-netbsd*): New target.
7507 * sparc64nbsd-nat.c: New file.
7508 * sparcnbsd-nat.c: New file.
7509 * sparcnbsd-tdep.c: New file.
7510 * sparcnbsd-tdep.h: New file.
7511 * config/sparc/nbsd.mt: New file.
7512 * config/sparc/nbsd64.mh: New file.
7513 * config/sparc/nbsd64.mt: New file.
7514 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7515 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7517 * config/sparc/nbsdaout.mt: Remove.
7518 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7519 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7521 * config/sparc/nbsdelf.mt: Remove.
7522 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7523 sparc-nat.c compatiblity defines.
7524 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7525 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7526 * config/sparc/tm-nbsd64.h: New file.
7527 * config/sparc/tm-nbsdaout.h: Remove.
7528 * config/sparc/xm-nbsd.h: Remove.
7530 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7532 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7533 * sparc-tdep.c: Include osabi.h.
7534 (gdbarch_tdep): Add osabi member.
7535 (_initialize_sparc_tdep): Use gdbarch_register.
7536 (sparc_gdbarch_init): Use generic OS ABI framework.
7537 (sparc_dump_tdep): New function.
7539 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7541 * corefile.c (do_captured_read_memory_integer): Return non-zero
7543 (safe_read_memory_integer): Copy result of memory read when
7544 status is non-zero. Also, add comments.
7546 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7548 * Makefile.in (ppc_tdep_h): Define.
7551 (rs6000-tdep.o): Use $(ppc_tdep_h).
7554 (ppcnbsd-tdep.o): New dependency lists.
7555 * ppc-tdep.h: Use generic OS ABI framework.
7556 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7557 (ppc_linux_init_abi): New functions.
7558 (ppc_sysv_abi_broken_use_struct_convention)
7559 (ppc_sysv_abi_use_struct_convention)
7560 (ppc_sysv_abi_push_arguments): Move to...
7561 * ppc-sysv-tdep.c: ...here.
7562 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7563 * rs6000-tdep.c (process_note_abi_tag_sections)
7564 (get_elfosabi): Remove.
7565 (rs6000_gdbarch_init): Use generic OS ABI framework.
7566 (rs6000_dump_tdep): New function.
7567 (_initialize_rs6000_tdep): Use gdbarch_register.
7568 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7569 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7570 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7571 of ppc-linux-tdep.o.
7572 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7573 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7574 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7575 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7576 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7577 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7579 2002-05-29 Jim Blandy <jimb@redhat.com>
7581 * macroscope.c (default_macro_scope): Put `void' in empty argument
7584 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7586 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7587 * arch-utils.c: Include "sim-regno.h".
7588 * gdbarch.sh: Don't include "sim-regno.h".
7589 * gdbarch.h, gdbarch.c: Regenerate.
7590 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7592 * arch-utils.h (legacy_register_sim_regno): To here.
7593 * remote-sim.c (legacy_register_sim_regno): Move function from
7595 * arch-utils.c (legacy_register_sim_regno): To here.
7597 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7599 * sim-regno.h: New file.
7600 * Makefile.in (sim_regno_h): Define.
7601 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7602 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7603 (legacy_register_sim_regno): New function.
7604 (one2one_register_sim_regno): New function.
7605 (gdbsim_fetch_register): Rewrite.
7606 (gdbsim_store_register): Only store a register when
7607 REGISTER_SIM_REGNO is valid.
7608 * d10v-tdep.c: Include "sim-regno.h".
7609 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7610 (d10v_ts3_register_sim_regno): Ditto.
7611 * gdbarch.sh: Include "sim-regno.h".
7612 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7613 * gdbarch.h, gdbarch.c: Regenerate.
7614 * arch-utils.h (default_register_sim_regno): Delete declaration.
7615 * arch-utils.c (default_register_sim_regno): Delete function.
7617 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7619 * ppcnbsd-nat.c: Rewrite.
7620 * ppcnbsd-tdep.c: New file.
7621 * ppcnbsd-tdep.h: New file.
7622 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7623 solib.o, and solib-svr4.o.
7624 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7625 nbsd-tdep.o, and corelow.o.
7627 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7629 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7630 `tr' and `sed'. Mention that `broken' targets are not expected to
7633 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7635 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7636 Let PC point right after the prologue before looking up symbols.
7638 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7640 * i386-tdep.c (i386_register_virtual_type): Return
7641 builtin_type_vec128i for SSE registers.
7643 * gdbtypes.h (builtin_type_vec128i): Declare.
7645 * gdbtypes.c (build_builtin_type_vec128i): New function.
7646 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7647 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7648 (build_gdbtypes): Initialize new builtin vector types.
7649 (_initialize_gdbtypes): Register new vector types with gdbarch.
7651 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7653 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7654 since it has been multi-arch'd.
7655 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7656 Move Alpha and VAX multi-arch news entries to same section
7657 as other multi-arch news.
7659 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7661 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7662 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7663 static. Rename some register numbers to put them in ns32k-tdep
7665 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7666 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7668 (_initialize_ns32k_tdep): Use gdbarch_register.
7669 * ns32k-tdep.h: New file.
7670 * ns32knbsd-tdep.c: New file.
7671 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7672 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7673 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7674 REGISTER_BYTES, REGISTER_BYTE): Remove.
7675 * config/ns32k/tm-ns32k.h: New file.
7676 * config/ns32k/tm-umax.h: Remove.
7678 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7680 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7681 ns32k_store_struct_return, ns32k_extract_return_value,
7682 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7684 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7685 ns32k_saved_pc_after_call.
7686 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7687 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7688 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7689 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7690 ns32k_extract_struct_value_address.
7692 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7694 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7695 ns32k_fix_call_dummy): New.
7696 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7697 ns32k_call_dummy_words.
7698 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7699 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7700 CALL_DUMMY_NARGS): Remove.
7701 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7703 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7705 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7706 ns32k_frame_saved_pc, ns32k_frame_args_address,
7707 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7708 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7709 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7710 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7711 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7712 (BREAKPOINT): Remove..
7713 (FRAME_CHAIN): Define as ns32k_frame_chain.
7714 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7715 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7716 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7717 (FRAME_FIND_SAVED_REGS): Remove.
7718 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7719 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7720 (POP_FRAME): Define as ns32k_pop_frame.
7722 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7724 * ns32k-tdep.c (ns32k_register_byte_32082,
7725 ns32k_register_byte_32382, ns32k_register_raw_size,
7726 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7728 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7729 ns32k_register_byte_32382.
7730 * config/ns32k/tm-umax.h: Update copyright years.
7731 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7732 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7733 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7734 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7735 (ns32k_get_enter_addr): Fix prototype.
7737 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7739 * ns32k-tdep.c: Update copyright years.
7740 (ns32k_register_name_32082): New function.
7741 (ns32k_register_name_32382): Ditto.
7742 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7743 (REGISTER_NAME): Define as ns32k_register_name_32382.
7744 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7745 (REGISTER_NAME): Define as ns32k_register_name_32082.
7747 2002-05-24 Jim Blandy <jimb@redhat.com>
7749 * dwarf2read.c (free_line_header): Use xfree, not free.
7751 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7753 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7754 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7756 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7758 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7760 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7762 From Ross Alexander at NEC Europe:
7763 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7765 2002-05-23 Michael Snyder <msnyder@redhat.com>
7767 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7768 for input, rather than parse_and_eval_address.
7770 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7772 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7773 * Makefile.in (sim_d10v_h): Update definition.
7775 2002-05-24 Andrew Cagney <cagney@redhat.com>
7777 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7778 change `2002-05-22 Michael Snyder' below.
7779 (d10v_push_arguments): Ditto.
7780 (d10v_extract_return_value): Ditto.
7782 2002-05-23 Jim Blandy <jimb@redhat.com>
7784 * macrotab.c (check_for_redefinition): Don't complain if the new
7785 definition is the same as the previous one. Take more arguments
7786 to allow the comparison.
7787 (macro_define_object, macro_define_function): Pass more arguments
7788 to check_for_redefinition.
7790 2002-05-22 Michael Snyder <msnyder@redhat.com>
7792 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7793 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7794 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7795 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7796 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7797 Add a temp variable to save a call (and a memory read).
7798 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7799 if possible (so that PC_IN_CALL_DUMMY will work).
7801 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7803 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7805 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7807 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7809 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7810 (dwarf2_build_frame_info): Add offset to fde->initial_location
7811 so that frames of shared libraries are mapped correctly.
7812 (execute_stack_op): Change type of 'result' from ULONGEST to
7815 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7817 * config/alpha/tm-nbsd.h: Include solib.h.
7819 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7821 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7822 assumptions about the host's byte order.
7824 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7826 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7828 * alphanbsd-tdep.c: Include solib-svr4.h.
7829 * shnbsd-tdep.c: Ditto.
7831 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7833 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7834 nbsd-tdep.h to dependency list.
7835 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7836 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7837 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7838 nbsdaout.mh and nbsdelf.mh consistently.
7839 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7840 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7841 nbsdaout.mt and nbsdelf.mh consistently.
7842 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7843 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7844 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7845 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7846 a.out shared library stuff from here...
7847 * config/nm-nbsdaout.h: ...to here.
7848 * config/tm-nbsd.h: Remove.
7849 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7850 * config/arm/nbsd.mh: Remove.
7851 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7853 * config/arm/nbsdaout.mh: New file.
7854 * config/arm/nbsdelf.mh: New file.
7855 * config/arm/nm-nbsdaout.h: New file.
7856 * config/i386/nbsd.mh: Remove.
7857 * config/i386/nbsd.mt: Remove.
7858 * config/i386/nbsdaout.mh: New file.
7859 * config/i386/nbsdaout.mt: New file.
7860 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7861 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7862 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7863 i386_register_u_addr): Remove.
7864 * config/i386/nm-nbsdaout.h: New file.
7865 * config/i386/nm-nbsdelf.h: Remove.
7866 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7867 (USE_STRUCT_CONVENTION): Remove.
7868 * config/i386/tm-nbsdaout.h: New file.
7869 * config/i386/tm-nbsdelf.h: Remove.
7870 * config/m68k/nbsd.mh: Remove.
7871 * config/m68k/nbsd.mt: Remove.
7872 * config/m68k/nbsdaout.mh: New file.
7873 * config/m68k/nbsdaout.mt: New file.
7874 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7875 * config/m68k/nm-nbsdaout.h: New file.
7876 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7877 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7878 * config/ns32k/nbsd.mh: Remove.
7879 * config/ns32k/nbsd.mt: Remove.
7880 * config/ns32k/nbsdaout.mh: New file.
7881 * config/ns32k/nbsdaout.mt: New file.
7882 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7883 * config/ns32k/nm-nbsdaout.h: New file.
7884 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7885 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7886 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7887 (SVR4_SHARED_LIBS): Remove.
7888 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7889 * config/sparc/nbsd.mh: Remove.
7890 * config/sparc/nbsd.mt: Remove.
7891 * config/sparc/nbsdaout.mh: New file.
7892 * config/sparc/nbsdaout.mt: New file.
7893 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7894 * config/sparc/nbsdelf.mt: New file.
7895 * config/sparc/nm-nbsdaout.h: New file.
7896 * config/sparc/nm-nbsdelf.h: Remove.
7897 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7898 * config/sparc/tm-nbsdaout.h: New file.
7900 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7902 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7904 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7906 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7908 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7910 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7912 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7914 * NEWS: Note new MIPS NetBSD native configuration.
7915 * configure.host (mips*-*-netbsd*): New host.
7916 * configure.tgt (mips*-*-netbsd*): New target.
7917 * mipsnbsd-nat.c: New file.
7918 * mipsnbsd-tdep.c: New file.
7919 * mipsnbsd-tdep.h: New file.
7920 * config/mips/nbsd.mh: New file.
7921 * config/mips/nbsd.mt: New file.
7922 * config/mips/nm-nbsd.h: New file.
7923 * config/mips/tm-nbsd.h: New file.
7925 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7927 * Makefile.in (SFILES): Add osabi.c.
7928 (COMMON_OBS): Add osabi.o.
7929 (osabi.o): New dependency list.
7930 * osabi.c: New file.
7931 * osabi.h: New file.
7932 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7934 * Makefile.in (alpha_tdep_h): Define and use instead of
7936 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7937 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7939 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7940 * alpha-tdep.h: Include osabi.h.
7941 (alpha_abi): Remove.
7942 (gdbarch_tdep): Use generic OS ABI framework.
7943 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7944 gdbarch_register_osabi.
7945 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7946 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7947 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7949 * Makefile.in (sh_tdep_h): Add osabi.h.
7950 * sh-tdep.h (sh_osabi): Remove.
7951 (gdbarch_tdep): Use generic OS ABI framework.
7952 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7953 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7954 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7955 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7957 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7958 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7959 gdbarch_register_osabi.
7960 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7961 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7962 (get_elfosabi): Rename to...
7963 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7964 ABI framework support routines.
7965 (arm_gdbarch_init): Use generic OS ABI framework.
7966 (arm_dump_tdep): Likewise.
7967 (_initialize_arm_tdep): Likewise.
7968 * arm-tdep.h: Include osabi.h.
7970 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7972 (arm_gdbarch_register_os_abi): Remove prototype.
7973 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7974 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7976 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7977 * mips-tdep.c: Include osabi.h.
7978 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7981 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7983 * h8300-tdep.c: Fix formatting.
7985 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7987 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7988 printing vector registers.
7990 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7992 From Fernando Nasser:
7993 * remote.c (remote_async_open_1): Re-throw the exception when the
7995 (remote_cisco_open): Ditto.
7996 (remote_open_1): Ditto.
7998 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8000 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8001 (remote_start_remote): Add uiout parameter. Pass through to
8002 remote_start_remote_dummy.
8003 (remote_open_1): Use catch_exception instead of catch_errors.
8004 (remote_async_open_1): Ditto.
8005 (remote_cisco_open): Ditto.
8007 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8009 * remote.c (remote_start_remote): Replace PTR with void pointer.
8010 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8013 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8015 * gdb_indent.sh: Allow the script to be run in the sim directory.
8017 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8019 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8020 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8022 * corelow.c (core_open): Only call set_gdbarch_from_file if
8025 2002-05-17 Andrey Volkov <avolkov@transas.com>
8027 * h8300-tdep.c: Add support of EXR register
8028 * config/h8300/tm-h8300.h: Ditto.
8030 2002-05-17 Andrey Volkov <avolkov@transas.com>
8032 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8034 2002-05-17 Andrey Volkov <avolkov@transas.com>
8036 * h8300-tdep.c: Change literal regnums to REGNO.
8038 2002-05-17 Jim Blandy <jimb@redhat.com>
8040 * NEWS: Note addition of macro support.
8042 Expand preprocessor macros in C expressions.
8043 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8044 (scan_macro_expansion, scanning_macro_expansion,
8045 finished_macro_expansion): New function declarations.
8046 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8047 variable declarations.
8048 * parser-defs.h (expression_context_pc): New declaration.
8049 * parse.c (expression_context_pc): New variable.
8050 (parse_exp_1): Set expression_context_pc, as well as
8051 expression_context_block.
8052 * c-exp.y (yylex): If we're not already reading the result of a
8053 macro expansion, try to macro-expand the next token. When we're
8054 done scanning a macro expansion, switch back to the mainline text.
8055 Commas and `if's in a macro's expansion don't terminate the input.
8056 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8057 (macro_original_text, macro_expanded_text,
8058 expression_macro_lookup_func, expression_macro_lookup_baton): New
8060 (scan_macro_expansion, scanning_macro_expansion,
8061 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8062 c_preprocess_and_parse): New functions.
8063 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8064 c_preprocess_and_parse, instead of c_parse.
8065 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8066 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8068 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8070 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8071 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8072 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8074 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8076 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8078 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8080 * Makefile.in (sh_tdep_h): Define and use.
8081 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8082 register enum): Move to...
8083 * * sh-tdep.h: ...here.
8084 * sh-tdep.c: Include sh-tdep.h.
8085 * sh3-rom.c: Likewise.
8086 * shnbsd-tdep.c: Likewise.
8088 2002-05-16 Michael Snyder <msnyder@redhat.com>
8090 * arm-tdep.c: Spelling fix in comment.
8092 2002-05-16 Jim Blandy <jimb@redhat.com>
8094 Add commands for manually expanding macros and showing their
8096 * macrocmd.c, macroscope.c, macroscope.h: New files.
8097 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8098 (macroscope_h): New variable.
8099 (HFILES_NO_SRCDIR): Add macroscope.h.
8100 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8101 (macroscope.o, macrocmd.o): New rules.
8103 Teach the Dwarf 2 reader to read macro information.
8104 * dwarf2read.c: #include "macrotab.h".
8105 (dwarf_macinfo_buffer): New variable.
8106 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8108 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8109 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8110 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8111 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8112 dwarf2_macro_spaces_in_definition): New complaints.
8113 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8114 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8115 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8116 the partial symbol table.
8117 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8118 from what's recorded in the partial symbol table.
8119 (read_file_scope): If the compilation unit has a
8120 `DW_AT_macro_info' attribute, read its macro information.
8121 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8123 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8126 * ser-tcp.c: Don't include <netinet/udp.h>.
8128 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8130 * MAINTAINERS: Update my email address.
8132 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8134 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8135 include file of the same name.
8137 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8139 * configure.tgt: Mark v850 as multi-arched.
8140 * config/v850/tm-v850.h: Remove file.
8141 * config/v850/v850.mt: Eliminate TM_FILE.
8143 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8145 * v850-tdep.c: Full multi-arch.
8146 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8147 Define GDB_MULTI_ARCH to 2.
8149 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8151 * p-exp.y (current_type): New static variable.
8152 Carries the type of the expression at the position that is parsed.
8153 (push_current_type, pop_current_type): Two new functions. Used
8154 to store/restore current_type in expression on specific tokens.
8155 (search_field): New static variable. Set to one after parsing a point
8156 as at that point only a FIELDNAME token should be searched.
8157 (FIELDNAME): New token. After a point only a token belonging to
8158 current_type type definition is allowed.
8159 (all over token rules): reset and change current_type according
8161 (exp '[' rule): insert implicit array index field if
8162 exp is a pascal string type.
8164 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8166 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8167 frame info. Use frame_info's saved_regs instead of matching member
8168 in extra_frame_info throughout.
8169 (v850_frame_init_saved_regs): New function.
8170 (v850_init_extra_frame_info): Move most functionality into
8171 v850_frame_init_saved_regs().
8172 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8173 (v850_frame_find_saved_regs): Remove declaration.
8174 (FRAME_FIND_SAVED_REGS): Remove definition.
8175 (v850_frame_init_saved_regs): Add declaration.
8176 (FRAME_INIT_SAVED_REGS): Add definition.
8178 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8180 * v850-tdep.c: Begin multi-arch'ing v850.
8181 (v850_target_architecture_hook): Remove function.
8182 (v850_gdbarch_init): New function. Add code previously in
8183 v850_target_architecture_hook().
8184 (_initialize_v850_tdep): Don't set target_architecture_hook.
8185 Call register_gdbarch_init() instead.
8187 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8189 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8190 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8191 (fixup_class_method_type): Likewise.
8193 2002-05-15 Jim Blandy <jimb@redhat.com>
8195 Add macro structures to GDB's symbol tables. Nobody puts anything
8197 * symtab.h (struct symtab): New member: `macro_table'.
8198 * buildsym.h (pending_macros): New global variable.
8199 * buildsym.c: #include "macrotab.h".
8200 (buildsym_init): Initialize `pending_macros'.
8201 (end_symtab): If we found macro information while reading a CU's
8202 debugging info, do build a symtab structure for it. Make the
8203 symtab point to the macro information, and clear the
8204 `pending_macros' pointer which held it while we were reading the
8206 (really_free_pendings): Free any pending macro table.
8207 * objfiles.h (struct objfile): New member: `macro_cache'.
8208 * objfiles.c (allocate_objfile): Set allocate and free functions
8209 for the macro cache's objstack.
8210 (free_objfile): Empty the macro cache's obstack.
8211 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8212 set new allocate and free functions for it.
8213 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8214 free functions for the macro cache's objstack. (Why is this
8215 function building its own objfile?)
8216 * symmisc.c (print_objfile_statistics): Print statistics on the
8218 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8220 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8222 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8223 (REGISTER_U_ADDR): Delete definition.
8224 (arm_register_u_addr): Delete declaration.
8226 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8228 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8229 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8231 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8233 * regcache.c (register_valid): Revise comments refering to "Not
8234 available" and "unavailable".
8235 * frame.c (frame_register_read): Ditto.
8236 * findvar.c (value_of_register): Ditto.
8238 2002-05-15 Andrew Cagney <cagney@redhat.com>
8240 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8241 (remote-sim.o): Update dependencies.
8242 (d10v-tdep.o): Specify dependencies.
8243 (sim_d10v_h): Define.
8245 2002-05-14 Jim Blandy <jimb@redhat.com>
8247 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8248 * macrotab.c (macro_lookup_inclusion, find_definition,
8249 new_macro_table): Same.
8251 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8252 not `! strcmp ()'. This is a dubious improvement.
8253 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8255 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8256 although it's not necessary, to avoid a warning.
8258 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8260 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8261 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8262 TYPE_INSTANCE_FLAGS.
8263 (struct main_type): New.
8264 (struct type): Move most members to struct main_type. Change
8265 cv_type and as_type to new type_chain member. Add instance_flags.
8266 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8267 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8268 (finish_cv_type): Remove prototype.
8269 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8271 (alloc_type_instance): New function.
8272 (smash_type): New function.
8273 (make_pointer_type, make_reference_type, make_function_type)
8274 (smash_to_member_type, smash_to_method_type): Call smash_type.
8275 (make_qualified_type): New function.
8276 (make_type_with_address_space): Call make_qualified_type.
8277 (make_cv_type): Likewise.
8278 (finish_cv_type): Remove unnecessary function.
8279 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8280 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8281 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8282 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8283 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8284 * hpread.c (hpread_read_struct_type): Likewise.
8285 * stabsread.c (read_struct_type): Likewise.
8287 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8289 * configure.tgt: Add a catch all sh* target, for cases like
8290 sh[2,3,4]-elf and sh-hms.
8292 2002-05-14 Keith Seitz <keiths@redhat.com>
8294 * event-loop.c (create_file_handler): Don't do anything but
8295 update data when we are given a fd which we are already
8298 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8300 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8301 (update_context): Use __func__ in warnings.
8303 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8305 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8306 and tcp_close to net_open and net_close.
8307 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8308 using UDP if requested. Don't try to disable Nagle on UDP
8310 * remote.c (remote_serial_open): New function. Warn about UDP.
8311 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8313 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8315 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8317 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8319 * configure.tgt: Remove sh-hms target.
8320 * MAINTAINERS: Don't list sh-hms as a separate target.
8322 2002-05-13 Jim Blandy <jimb@redhat.com>
8324 Add first preprocessor macro-expansion files.
8325 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8326 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8327 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8328 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8329 (COMMON_OBS): Add macrotab.o, macroexp.o.
8330 (macroexp.o, macrotab.o): New rules.
8332 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8334 * config/m88k/tm-m88k.h: Update copyright.
8335 (m88k_target_write_pc): Declare
8336 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8337 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8338 (SHIFT_INST_REGS): Update definition.
8339 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8340 using old definition of TARGET_WRITE_PC.
8341 * regcache.c (generic_target_write_pc): Delete code handling
8343 * gdbarch.sh (NNPC_REGNUM): Delete.
8344 * gdbarch.h, gdbarch.c: Regenerate.
8346 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8348 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8351 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8353 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8354 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8355 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8357 * c-typeprint.c (cp_type_print_method_args): Likewise.
8358 (c_type_print_args): Likewise.
8359 * d10v-tdep.c (d10v_push_arguments): Likewise.
8360 (d10v_extract_return_value): Likewise.
8361 * expprint.c (print_subexp): Likewise.
8362 * gdbtypes.c (lookup_primitive_typename): Likewise.
8363 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8364 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8365 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8366 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8367 (TYPE_VECTOR): Likewise.
8368 * hpread.c (hpread_read_struct_type)
8369 (fix_static_member_physnames, fixup_class_method_type)
8370 (hpread_type_lookup): Likewise.
8371 * mdebugread.c (parse_symbol, parse_type): Likewise.
8372 * p-lang.c (is_pascal_string_type): Likewise.
8373 * valops.c (hand_function_call): Likewise.
8374 * x86-64-tdep.c (classify_argument): Likewise.
8376 * hpread.c (hpread_read_function_type)
8377 (hpread_read_doc_function_type): Call replace_type.
8378 * dstread.c (create_new_type): Delete.
8379 (decode_dst_structure, process_dst_function): Call alloc_type.
8380 Use type access macros.
8382 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8384 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8385 the're not supported by the current architecture.
8386 (i387_fill_fxsave): Likewise.
8388 2002-05-12 Fred Fish <fnf@redhat.com>
8390 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8391 sect_index_xxx members to index the first slot in section_offsets
8392 if all of the section_offsets are zero.
8394 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8396 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8397 checked in with last change.
8399 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8401 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8402 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8405 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8407 * Makefile.in: Update dependencies.
8409 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8411 * language.c (local_hex_string_custom): Simplify. Do not depend
8412 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8414 * memattr.c (mem_info_command): Replace calls to
8415 longest_local_hex_string and longest_local_hex_string_custom.
8416 * buildsym.c (make_blockvector): Ditto.
8417 * solib.c (info_sharedlibrary_command): Ditto.
8418 * tracepoint.c (tracepoints_info): Ditto.
8419 * symtab.c (print_msymbol_info): Ditto.
8421 * language.c (local_hex_string): Delete.
8422 (local_hex_string_custom): Delete.
8423 (longest_local_hex_string): Rename to local_hex_string.
8424 (longest_local_hex_string_custom): Rename to
8425 local_hex_string_custom.
8426 * language.h (local_hex_string): Change parameter type to LONGEST.
8427 (local_hex_string_custom): Ditto.
8428 (longest_local_hex_string): Delete declaration.
8429 (longest_local_hex_string_custom): Ditto.
8431 * solib.c: Update copyright.
8432 * memattr.c: Update copyright.
8434 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8436 * arch-utils.h (legacy_register_to_value): Declare.
8437 (legacy_value_to_register): Declare.
8438 (legacy_convert_register_p): Declare.
8439 * arch-utils.c (legacy_register_to_value): New function.
8440 (legacy_value_to_register): New function.
8441 (legacy_convert_register_p): New function.
8443 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8444 (VALUE_TO_REGISTER): Define.
8445 (CONVERT_REGISTER_P): Define.
8446 * gdbarch.h, gdbarch.c: Regenerate.
8448 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8450 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8453 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8454 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8456 * Makefile.in: Update dependencies for valops.c.
8457 * valops.c: Include "gdb_assert.h".
8458 (typecmp): Skip THIS parameter to methods.
8459 (find_method_list): Remove static_memfuncp argument,
8460 update callers. Check for stub methods.
8461 (find_value_oload_method_list): Don't set *static_memfuncp.
8462 (find_overload_match): Don't check for stub methods. Assert
8463 that methods are not stubbed. Handle static methods.
8464 (value_find_oload_method_list): Remove static_memfuncp argument.
8465 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8466 to the argument list for static stub methods.
8467 * value.h (value_find_oload_method_list): Update prototype.
8469 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8471 * arch-utils.h (generic_register_size): Declare.
8472 (generic_register_raw_size, generic_register_virtual_size): Delete
8474 * arch-utils.c (generic_register_raw_size): Delete.
8475 (generic_register_size): New function.
8476 (generic_register_virtual_size): Delete.
8478 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8479 default generic_register_size.
8480 * gdbarch.h, gdbarch.c: Re-generate.
8482 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8483 register_virtual_size.
8484 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8487 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8489 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8490 * gdbarch.h, gdbarch.c: Regenerate.
8491 * gnu-v3-abi.c: Update copyright.
8492 (vtable_address_point_offset): Update.
8493 (gnuv3_rtti_type): Update.
8494 (gnuv3_baseclass_offset): Update.
8495 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8496 (init_fetch_link_map_offsets): Update.
8497 * remote.c (get_remote_state): Update.
8499 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8501 * TODO: Remove value_headof/value_from_vtable_info comment.
8502 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8503 * values.c (value_headof, value_from_vtable_info): Delete.
8504 * value.h (value_from_vtable_info): Delete prototype.
8506 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8508 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8509 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8511 (gdb_assert_h): Define.
8512 (gdb_wait_h): Define.
8513 (gdb_regex_h): Define.
8515 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8517 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8518 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8520 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8522 * nbsd-tdep.c: Fix comment.
8524 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8526 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8527 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8528 (nbsd-tdep.o): New dependency list.
8529 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8531 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8532 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8533 * nbsd-tdep.c: New file.
8534 * nbsd-tdep.h: New file.
8535 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8537 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8538 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8539 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8540 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8542 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8544 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8545 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8546 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8547 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8548 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8549 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8551 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8553 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8554 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8555 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8556 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8557 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8558 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8559 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8561 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8563 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8564 fetch_elfcore_registers to...
8565 * i386nbsd-tdep.c: ...here.
8566 (i386nbsd_use_struct_convention): Rename to...
8567 (i386nbsd_aout_use_struct_convention): ...this.
8568 (i386nbsd_supply_reg): New function.
8569 (i386nbsd_fill_reg): New function.
8570 (fetch_core_registers): Use i386nbsd_supply_reg.
8571 (fetch_elfcore_registers): Likewise.
8572 (_initialize_i386nbsd_tdep): New function.
8573 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8574 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8575 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8576 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8577 (i386nbsd_aout_use_struct_convention): ...this.
8579 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8581 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8582 (store_inferior_registers): Use shnbsd_fill_reg.
8583 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8584 sh_nbsd_supply_register): Collapse into...
8585 (shnbsd_supply_reg): ...this.
8586 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8587 (shnbsd_fill_reg): ...this.
8588 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8589 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8590 (fetch_core_registers): Use shnbsd_supply_reg.
8591 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8592 (sh_nbsd_core_fns): Rename to...
8593 (shnbsd_core_fns): ...this.
8594 (sh_nbsd_elfcore_fns): Rename to...
8595 (shnbsd_elfcore_fns): ...this.
8596 (sh_nbsd_init_abi): Rename to...
8597 (shnbsd_init_abi): ...this.
8598 (_initialize_sh_nbsd_tdep): Rename to...
8599 (_initialize_shnbsd_tdep): ...this.
8600 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8601 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8602 sh_nbsd_fill_register): Remove prototypes.
8603 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8605 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8607 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8608 (i387-nat.o): Delete dependency list.
8609 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8610 (x86-64-linux-nat.o): Likewise.
8611 * i387-nat.c: Delete file, moving contents to...
8612 * i387-tdep.c: ...here.
8613 * i387-nat.h: Rename...
8614 * i387-tdep.h: ...to this.
8615 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8616 * i386-linux-nat.c: Likewise.
8617 * i386bsd-nat.c: Likewise.
8618 * i386gnu-nat.c: Likewise.
8619 * i386nbsd-nat.c: Likewise.
8620 * i386v4-nat.c: Likewise.
8621 * x86-64-linux-nat.c: Likewise.
8622 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8623 * config/i386/go32.mh (NATDEPFILES): Likewise.
8624 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8625 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8626 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8627 * config/i386/linux.mh (NATDEPFILES): Likewise.
8628 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8629 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8630 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8631 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8633 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8635 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8636 (alphanbsd-nat.o): Remove dependency list.
8637 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8638 * alphanbsd-nat.c: Delete. Contents moved to...
8639 * alphanbsd-tdep.c: ...here.
8640 (_initialize_alphanbsd_tdep): Register core functions.
8641 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8643 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8645 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8646 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8647 (alphanbsd-nat.o): Likewise.
8648 (alphabsd-tdep.o): New dependency list.
8649 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8650 (fill_gregset): Use alphabsd_fill_reg.
8651 (supply_fpregset): Use alphabsd_supply_fpreg.
8652 (fill_fpregset): Use alphabsd_fill_fpreg.
8653 (fetch_inferior_registers): Use struct reg and struct fpreg
8654 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8655 and alphabsd_supply_fpreg.
8656 (store_inferior_registers): Use struct reg and struct fpreg
8657 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8658 and alphabsd_fill_fpreg.
8659 * alphabsd-tdep.c: New file.
8660 * alphabsd-tdep.h: New file.
8661 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8662 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8663 alphabsd_supply_fpreg.
8664 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8665 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8667 2002-05-11 Eric Christopher <echristo@redhat.com>
8669 * mips-tdep.c (mips_double_register_type): Fix thinko.
8670 (mips_single_register_type): Ditto.
8671 * MAINTAINERS: Add self.
8673 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8675 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8676 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8677 right thing on architectures with different endianness and/or
8680 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8682 From Christian Limpach <chris@Pin.LU>
8683 * configure.in: Change sed expression which comments out
8684 NATDEPFILES to also comment out continuation lines.
8685 * configure: Regenerate.
8687 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8689 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8692 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8694 * sh-tdep.c: Include correct file.
8696 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8698 New support for sh64-elf (sh5) target.
8700 * configure.tgt: For sh64-elf target, default to sh-elf.
8702 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8703 (struct gdbarch_tdep): Add new fields for new registers and ABI
8706 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8707 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8708 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8709 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8710 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8711 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8712 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8713 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8714 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8715 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8716 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8717 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8718 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8719 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8720 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8721 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8722 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8723 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8724 sign_extend, sh64_nofp_frame_init_saved_regs,
8725 sh64_init_extra_frame_info, sh64_get_saved_register,
8726 sh64_extract_struct_value_address, sh64_pop_frame,
8727 sh64_push_arguments, sh64_extract_return_value,
8728 sh64_store_return_value, sh64_show_media_regs,
8729 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8730 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8731 sh_sh64_register_virtual_type,
8732 sh_sh64_register_convert_to_virtual,
8733 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8734 sh64_register_read, sh64_pseudo_register_write,
8735 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8736 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8737 sh64_do_pseudo_register, sh_compact_do_registers_info,
8738 sh64_do_registers_info, sh_gdbarch_init): New functions.
8740 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8742 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8744 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8746 * linespec.c (decode_line_1): Check for a double quote after
8747 a filename correctly.
8749 2002-05-10 Jim Blandy <jimb@redhat.com>
8751 Properly track the size of the current objfile's .debug_line section.
8752 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8753 (DWARF_LINE_SIZE): New macro.
8754 (dwarf2_build_psymtabs_hard): Record the line section's size in
8755 the partial symbol table.
8756 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8759 2002-05-10 Petr Sorfa <petrs@caldera.com>
8761 * ia64-tdep.c: Handle breakpoints on L instruction type
8762 in MLX instruction bundle by moving the breakpoint to
8763 the third slot (X instruction type) as L holds only data.
8765 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8767 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8768 (process_one_symbol): Complain about discarding local symbols
8769 due to a misplaced N_LBRAC entry.
8771 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8773 From Daniel Berlin <dan@cgsoftware.com>
8774 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8775 decrease the depth we are at, in the case of templates.
8777 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8779 * mips-tdep.c (mips_float_register_type): New function.
8780 (mips_double_register_type): New function.
8781 (mips_print_register): Use them.
8782 (do_fp_register_row): Likewise.
8784 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8786 * signals/signals.c (signals): Remove conditional compilation around
8787 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8788 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8790 2002-05-09 Michael Snyder <msnyder@redhat.com>
8792 * remote-rdp.c (remote_rdp_can_run): Remove.
8794 2002-05-09 Tom Tromey <tromey@redhat.com>
8796 * jv-valprint.c (java_val_print): Handle `char' as a special case
8799 2002-05-09 Michael Snyder <msnyder@redhat.com>
8801 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8802 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8803 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8804 str r(0123),[sp,#nn].
8805 (arm_skip_prologue): Ditto. Also make disassembly
8806 order-independent by placing it in a loop.
8808 2002-05-06 Michael Snyder <msnyder@redhat.com>
8810 * stabsread.c (read_type): Add recognition for new attribute:
8811 "@V;" means that an array type is actually a vector.
8812 This is analogous to the vector flag that's been added to dwarf2.
8814 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8816 * i386-tdep.h (i386_abi): New enum.
8817 (struct gdbarch_tdep): Replace os_ident member with abi.
8818 (i386_gdbarch_register_os_abi): New prototype.
8819 * i386-tdep.c (i386_abi_names): New array.
8820 (process_note_abi_tag_sections): Removed.
8821 (process_note_sections): New function.
8822 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8823 (struct i386_abi_handler): New struct.
8824 (i386_abi_handler_list): New variable.
8825 (i386_gdbarch_register_os_abi): New function.
8826 (i386_gdbarch_init): Adapt for the changes given above.
8828 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8830 * gregset.h: Say "GNU/Linux".
8832 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8834 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8835 (build_gdbtypes): Build builtin_type_v2_float.
8836 (_initialize_gdbtypes): Register new builtin type.
8838 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8840 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8841 (clear_gdbarch_swap): New function.
8842 (initialize_non_multiarch): Call.
8843 (gdbarch_update_p): Before calling init(), swap out and clear the
8844 existing architecture.
8845 * gdbarch.c: Regenerate.
8847 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8849 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8852 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8854 * sh-nbsd-nat.c: Rename to...
8855 * shnbsd-nat.c: ...this.
8856 * sh-nbsd-tdep.c: Rename to...
8857 * shnbsd-tdep.c: ...this.
8858 * sh-nbsd-tdep.h: Rename to...
8859 * shnbsd-tdep.h: ...this.
8860 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8861 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8863 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8865 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8866 concatenation for command help messages.
8868 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8870 * NEWS: Note new sh*-*-netbsdelf* configuration.
8871 * configure.host: Set gdb_host_cpu to sh for all sh*.
8872 (sh*-*-netbsdelf*): New host.
8873 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8874 (sh*-*-netbsdelf*): New target.
8875 * sh-nbsd-nat.c: New file.
8876 * sh-nbsd-tdep.c: New file.
8877 * sh-nbsd-tdep.h: New file.
8878 * config/sh/nbsd.mh: New file.
8879 * config/sh/nbsd.mt: New file.
8880 * config/sh/nm-nbsd.h: New file.
8881 * config/sh/tm-nbsd.h: New file.
8883 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8885 * sh-tdep.c (sh_osabi_names): Declare.
8886 (process_note_abi_tag_sections): New function.
8887 (get_elfosabi): Ditto.
8888 (sh_gdbarch_register_os_abi): Ditto.
8889 (sh_dump_tdep): Ditto.
8890 _initialize_sh_tdep): Use gdbarch_register to register
8891 sh_gdbarch_init and sh_dump_tdep.
8892 * config/sh/tm-sh.h (sh_osabi): Declare.
8893 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8895 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8897 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8898 (thumb_scan_prologue): Ditto.
8899 (arm_find_callers_reg): Ditto.
8900 (arm_frame_chain): Ditto.
8901 (arm_init_extra_frame_info): Ditto.
8902 (arm_frame_saved_pc): Ditto.
8903 (arm_pop_frame): Ditto.
8904 (arm_push_return_address): New function.
8905 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8906 call_dummy_location, call_dummy_breakpoint_offset_p,
8907 call_dummy_breakpoint_offset, call_dummy_p,
8908 call_dummy_stack_adjust_p, call_dummy_words,
8909 sizeof_call_dummy_words, call_dummy_start_offset,
8910 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8911 call_dummy_address, push_return_address and push_dummy_frame for
8912 generic dummy frames.
8914 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8916 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8917 size computation for alloca.
8918 (sh_fp_frame_init_saved_regs): Likewise.
8920 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8922 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8923 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8924 * arm-tdep.c (arm_store_return_value): Use them.
8925 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8926 * remote-rdp.c (remote_rdp_fetch_register): Use
8927 ARM_MAX_REGISTER_RAW_SIZE.
8928 (remote_rdp_store_register): Likewise.
8930 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8932 * dwarf2cfi.c: Code cleanup, removed unused variables,
8933 added default labels to switch {} statements.
8934 * x86-64-tdep.c: Ditto.
8935 * x86-64-linux-nat.c: Ditto.
8937 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8939 * solib.h: Protect against multiple inclusion.
8941 2002-05-06 Jim Blandy <jimb@redhat.com>
8943 Add first preprocessor macro-expansion files.
8944 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8945 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8946 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8947 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8948 (COMMON_OBS): Add macrotab.o, macroexp.o.
8949 (macroexp.o, macrotab.o): New rules.
8951 Separate the job of reading the line number info statement program
8952 header (...expialidocious) out into its own function.
8953 * dwarf2read.c (struct line_head, struct filenames, struct
8954 directories): Replace with...
8955 (struct line_header): New structure, containing the full
8956 contents of the statement program header, including the
8957 include directory and file name tables.
8958 (read_file_scope): If we have line number info, instead of just
8959 calling dwarf_decode_lines to do all the work, call
8960 dwarf_decode_line_header first to get a `struct line_header'
8961 containing the data in the statement program header, and then
8962 pass that to dwarf_decode_lines, which will pick up where that
8963 left off. Be sure to clean up the `struct line_header' object.
8964 (dwarf_decode_line_header, free_line_header, add_include_dir,
8965 add_file_name): New functions.
8966 (dwarf_decode_lines): Move all the code to read the statement
8967 program header into dwarf_decode_line_header. Take the line
8968 header it built as the first argument, instead of the offset to
8969 the compilation unit's line number info. Use the new `struct
8970 line_header' type instead of the old structures. No need to do
8971 cleanups here now, since we don't allocate anything.
8972 (dwarf2_statement_list_fits_in_line_number_section,
8973 dwarf2_line_header_too_long): New complaints.
8975 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8977 * gdbtypes.c (init_vector_type): New function.
8978 (build_builtin_type_vec128): Simplify the representation of SIMD
8980 (build_gdbtypes): Initialize new builtin vector types.
8981 (_initialize_gdbtypes): Register new vector types with gdbarch.
8982 (builtin_type_v4_float, builtin_type_v4_int32,
8983 builtin_type_v8_int16, builtin_type_v16_int8,
8984 builtin_type_v2_int32, builtin_type_v4_int16,
8985 builtin_type_v8_int8): New (renamed) SIMD types.
8987 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8989 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8990 (i387_fill_fxsave): Likewise.
8992 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8994 * alpha-tdep.c (alpha_extract_return_value): Don't use
8995 non-constant array size in prototype.
8997 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8999 From Brian Taylor <briant at model dot com>:
9000 * ui-out.c (ui_out_field_core_addr): Use the function
9001 longest_local_hex_string_custom'to format addresses > 32 bits
9004 * ui-out.c (ui_out_field_core_addr): Update comment.
9006 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9008 * stack.c (select_and_print_frame): Make static. Delete the
9010 (func_command): Update call.
9011 (select_frame_command): Delete code computing the frame level.
9012 * frame.h (select_and_print_frame): Delete declaration.
9014 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9016 * sparc-tdep.c (sparc_get_saved_register): Comment why
9017 get_prev_frame call is safe.
9019 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9021 * frame.h (select_frame): Delete level parameter.
9022 * stack.c (select_frame): Update. Use frame_relative_level to
9023 obtain the frame's level.
9024 (select_and_print_frame): Update call.
9025 (select_frame_command): Ditto.
9026 (up_silently_base): Ditto.
9027 (down_silently_base): Ditto.
9028 * ocd.c (ocd_start_remote): Ditto.
9029 * remote-rdp.c (remote_rdp_open): Ditto.
9030 * remote-mips.c (mips_initialize): Ditto.
9031 (common_open): Ditto.
9032 * remote-e7000.c (e7000_start_remote): Ditto.
9033 * m3-nat.c (select_thread): Ditto.
9034 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9035 (child_get_current_exception_event): Ditto.
9036 * varobj.c (varobj_create): Ditto.
9037 (varobj_update): Ditto.
9038 (c_value_of_root): Ditto.
9039 * tracepoint.c (finish_tfind_command): Ditto.
9040 * corelow.c (core_open): Ditto.
9041 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9042 * thread.c (info_threads_command): Ditto.
9043 (switch_to_thread): Ditto.
9044 * infrun.c (normal_stop): Ditto.
9045 (restore_selected_frame): Ditto.
9046 (restore_inferior_status): Ditto.
9047 * breakpoint.c (insert_breakpoints): Ditto.
9048 (watchpoint_check): Ditto.
9049 (bpstat_stop_status): Ditto.
9050 (do_enable_breakpoint): Ditto.
9051 * blockframe.c (flush_cached_frames): Ditto.
9052 (reinit_frame_cache): Ditto.
9054 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9056 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9059 2002-05-04 Jim Blandy <jimb@redhat.com>
9061 * gdbtypes.c (replace_type): Doc fix.
9063 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9065 * valprint.c (strcat_longest): Delete commented out function.
9068 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9070 * MAINTAINERS: Mark a29k as deleted.
9071 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9072 Move new configurations to the top.
9073 * configure.tgt: Remove a29k.
9074 * config/a29k/tm-vx29k.h: Delete.
9075 * config/a29k/vx29k.mt: Delete.
9076 * config/a29k/tm-a29k.h: Delete.
9077 * config/a29k/a29k-udi.mt: Delete.
9078 * config/a29k/a29k.mt: Delete.
9079 * a29k-tdep.c: Delete.
9080 * remote-udi.c: Delete.
9081 * remote-mm.c: Delete.
9082 * remote-eb.c: Delete.
9083 * remote-adapt.c: Delete.
9084 * Makefile.in: Remove obsolete code.
9085 * config/s390/s390x.mt: Ditto.
9086 * config/s390/s390.mt: Ditto.
9087 * config/sparc/sparclynx.mh: Ditto.
9088 * config/sparc/linux.mh: Ditto.
9089 * config/pa/hppaosf.mh: Ditto.
9090 * config/pa/hppabsd.mh: Ditto.
9091 * config/ns32k/nbsd.mt: Ditto.
9092 * config/mips/vr5000.mt: Ditto.
9093 * config/m68k/sun3os4.mh: Ditto.
9094 * config/m68k/nbsd.mt: Ditto.
9095 * config/m68k/m68klynx.mh: Ditto.
9096 * config/m32r/m32r.mt: Ditto.
9097 * config/i386/x86-64linux.mt: Ditto.
9098 * config/i386/nbsdelf.mt: Ditto.
9099 * config/i386/nbsd.mt: Ditto.
9100 * config/i386/i386lynx.mh: Ditto.
9102 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9104 * target.c (debug_print_register): New function. Handle oversize
9106 (debug_to_fetch_registers): Call.
9107 (debug_to_store_registers): Call.
9109 2002-05-03 Jim Blandy <jimb@redhat.com>
9111 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9112 (read_type): Doc fix.
9113 * gdbtypes.c (replace_type): Doc fix.
9115 * stabsread.c (multiply_defined_struct): New complaint.
9116 (read_struct_type): If the type we were passed isn't empty, or
9117 incomplete, don't read the new struct type into it; complain,
9118 and return the original type unchanged. Take a new `type_code'
9119 argument, which is the type code for the new type.
9120 (read_type): Rather than storing the type's type code here, pass
9121 it as an argument to read_struct_type, and let that take care of
9122 storing it. That way, we don't overwrite the original type code,
9123 so read_struct_type can use it to decide whether we're overwriting
9124 something we shouldn't.
9125 (complain_about_struct_wipeout): New function.
9127 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9129 * gdbarch.sh: Assert that gdbarch is non-NULL.
9130 * gdbarch.c: Regenerate.
9132 2002-05-03 Jason Merrill <jason@redhat.com>
9134 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9137 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9139 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9140 (x86_64_dwarf2gdb_regno_map_length),
9141 (x86_64_dwarf2_reg_to_regnum): Added.
9142 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9143 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9144 (_initialize_x86_64_tdep): Synced with the change above.
9145 (x86_64_skip_prologue): Reformulated message.
9147 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9149 * f-exp.y: Also use new prev_lexptr variable
9150 to improve error reporting. Based on Michael Snyder
9151 2002-04-24 dated patch to c-exp.y.
9152 * jv-exp.y: Likewise.
9153 * m2-exp.y: Likewise.
9155 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9157 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9158 we are dealing with vectors.
9160 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9162 * config/m68k/tm-nbsd.h: Obvious fix,
9163 correct machine name.
9165 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9167 * p-typeprint.c (pascal_type_print_base): Add support
9168 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9170 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9172 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9173 for fondamental pascal 'char' type.
9175 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9177 * p-lang.h (is_pascal_string_type): Declaration changed,
9178 new sixth argument of type char ** added.
9179 * p-lang.c (is_pascal_string_type): Implementation
9180 changed. Args length_pos, length_size, string_pos, char_size
9181 can now be NULL. New argument arrayname set to the field
9182 name of the char array. Return value set to char array
9183 field index plus one.
9184 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9185 is_pascal_string_type function.
9187 2002-05-02 Andrew Cagney <cagney@redhat.com>
9189 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9190 <cagney@redhat.com> change.
9191 * gdbarch.c: Regenerate.
9193 2002-05-02 Andrew Cagney <cagney@redhat.com>
9195 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9196 before probing for a new one. Detect errorenous gdbarch_init
9198 * gdbarch.c: Regenerate.
9200 2002-05-01 Andrew Cagney <cagney@redhat.com>
9202 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9203 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9204 * config/v850/tm-v850.h: Ditto. Update copyright.
9206 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9208 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9211 2002-04-30 Michael Snyder <msnyder@redhat.com>
9213 * arm-tdep.c: Whitespace clean-ups.
9214 (arm_skip_prologue): Fix thinko; two lines
9215 should have been removed as part of 4/24 change.
9217 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9219 * rs6000-tdep.c: Added comment describing how fpscr register
9220 numbers were chosen.
9222 2002-04-30 Michael Snyder <msnyder@redhat.com>
9224 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9226 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9228 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9229 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9230 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9232 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9234 From Louis Hamilton <hamilton@redhat.com>:
9235 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9236 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9237 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9238 not bfd-private xcoff data, to determine wordsize.
9239 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9241 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9243 GDB 5.2 released from 5.2 branch.
9245 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9247 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9248 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9249 (x86_64_register_info_table): Added comments with register numbers.
9251 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9253 * rs6000-tdep.c (rs6000_extract_return_value,
9254 rs6000_store_return_value): Handle returning vectors.
9255 (rs6000_gdbarch_init): Use
9256 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9257 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9259 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9261 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9262 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9264 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9266 * hpread.c (hpread_psymtab_to_symtab_1,
9267 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9268 with fprintf_unfiltered (gdb_stderr,...).
9270 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9272 * remote-array.c (printf_monitor, write_monitor,
9273 array_insert_breakpoint, array_remove_breakpoint ):
9274 Replace fprintf (stderr,...
9275 with fprintf_unfiltered (gdb_stderr,....
9276 * remote-es.c: Likewise.
9277 * remote-os9k.c: Likewise.
9278 * remote-st.c: Likewise.
9280 2002-04-28 Andreas Schwab <schwab@suse.de>
9282 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9283 linux-proc.o and gcore.o.
9285 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9287 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9288 code without frame pointers.
9290 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9292 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9295 2002-04-26 Ben Elliston <bje@redhat.com>
9297 * target.c (do_xfer_memory): Correct reference to the new option
9298 "trust-readonly-sections".
9300 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9302 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9303 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9304 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9306 (read_array_type): Record the fact that this array type is really a
9307 vector (i.e. are passed in by value).
9309 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9311 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9312 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9313 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9314 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9315 * alpha-linux-tdep.c: Include frame.h.
9316 (alpha_linux_sigcontext_addr): New function.
9317 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9318 alpha_linux_sigcontext_addr.
9319 * alpha-osf1-tdep.c: Include gdbcore.h.
9320 (alpha_osf1_sigcontext_addr): New function.
9321 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9322 alpha_osf1_sigcontext_addr.
9323 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9324 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9326 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9328 * stack.c (selected_frame_level):
9329 (select_frame): Do not set selected_frame_level.
9330 * frame.h (selected_frame_level): Delete declaration.
9332 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9334 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9335 convert_from_func_ptr-addr when AIX / PowerOpen.
9337 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9339 * valops.c (hand_function_call): Call
9340 generic_save_call_dummy_addr.
9341 * frame.h (generic_save_call_dummy_addr): Declare.
9342 * blockframe.c (struct dummy_frame): Add fields call_lo and
9344 (generic_find_dummy_frame): Check for PC in range call_lo to
9345 call_hi instead of entry_point_address.
9346 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9347 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9348 (generic_save_call_dummy_addr): New function.
9350 2002-04-24 David S. Miller <davem@redhat.com>
9352 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9353 sparc_skip_prologue.
9354 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9355 information to find prologue when possible.
9356 (sparc_prologue_frameless_p): Call examine_prologue directly.
9357 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9358 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9360 (SKIP_PROLOGUE): Likewise.
9362 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9364 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9365 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9366 indicate that the condition it was testing is always true.
9367 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9368 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9369 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9371 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9373 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9374 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9375 tdep->jb_pc and tdep->jb_elt_size.
9376 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9377 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9378 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9379 * alpha-nat.c (get_longjmp_target): Remove.
9380 (JB_ELEMENT_SIZE): Ditto.
9382 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9383 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9384 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9385 to alpha_get_longjmp_target.
9386 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9387 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9388 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9390 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9392 * README: Update to GDB 5.2.
9394 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9396 * gdbarch.sh (LC_ALL): Set to `c'.
9398 2002-04-25 Theodore A. Roth <troth@verinet.com>
9400 * avr-tdep.c: Ran through gdb_indent.sh.
9402 2002-04-25 Theodore A. Roth <troth@verinet.com>
9404 * MAINTAINERS: Add myself as AVR maintainer.
9405 * NEWS: Note new target avr.
9407 2002-04-25 Theodore A. Roth <troth@verinet.com>
9409 * Makefile.in: Add support for AVR target.
9410 * configure.tgt: Add support for AVR target.
9411 * avr-tdep.c: New file
9412 * config/avr/avr.mt: New file.
9414 2002-04-25 Theodore A. Roth <troth@verinet.com>
9416 * MAINTAINERS: Add myself to write-after-approval.
9418 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9420 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9421 with fprintf_unfiltered (gdb_stderr,....
9423 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9426 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9428 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9430 * p-exp.y: Also use new prev_lexptr variable
9431 to improve error reporting. Based on Michael Snyder
9432 2002-04-24 dated patch to c-exp.y.
9434 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9436 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9437 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9438 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9440 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9442 (FUNCTION_START_OFFSET): Remove.
9443 (BREAKPOINT): Ditto.
9445 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9447 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9450 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9452 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9453 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9454 alpha_linux_pc_in_sigtramp.
9455 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9456 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9457 alpha_osf1_pc_in_sigtramp.
9458 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9459 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9460 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9461 alphafbsd_pc_in_sigtramp.
9462 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9463 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9464 alphanbsd_pc_in_sigtramp.
9465 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9466 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9468 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9470 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9472 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9474 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9476 (alphanbsd-nat.o): New dependency list.
9477 (alphanbsd-tdep.o): Ditto.
9478 * NEWS: Note new native NetBSD/alpha configuration.
9479 * alphanbsd-nat.c: New file.
9480 * alphanbsd-tdep.c: Ditto.
9481 * configure.host (alpha*-*-netbsd*): New host.
9482 * configure.tgt (alpha*-*-netbsd*): New target.
9483 * config/alpha/nbsd.mh: New file.
9484 * config/alpha/nbsd.mt: Ditto.
9485 * config/alpha/nm-nbsd.h: Ditto.
9486 * config/alpha/tm-nbsd.h: Ditto.
9488 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9490 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9491 (alpha-osf1-tdep.o): New dependency list.
9492 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9493 and skip_sigtramp_frame members.
9494 * alpha-linux-tdep.c: Include gdbcore.h.
9495 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9496 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9497 * alpha-osf1-tdep.c: New file.
9498 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9500 (alpha_frame_past_sigtramp_frame): New function.
9501 (alpha_dynamic_sigtramp_offset): Ditto.
9502 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9503 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9504 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9505 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9506 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9507 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9508 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9509 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9510 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9511 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9512 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9513 to find_solib_trampoline_target.
9514 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9515 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9516 (SKIP_TRAMPOLINE_CODE): Remove.
9517 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9518 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9519 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9520 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9521 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9522 (PROC_SIGTRAMP_MAGIC): Ditto.
9523 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9524 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9525 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9526 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9527 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9529 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9531 * NEWS: Note that Alpha targets are now multi-arch.
9533 2002-04-24 Michael Snyder <msnyder@redhat.com>
9535 * parser-defs.h (prev_lexptr): New external variable.
9536 * parse.c (parse_exp_1): Set prev_lexptr to null before
9537 calling the language-specific parser.
9538 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9539 (yyerror): Use prev_lexptr in error reporting.
9541 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9543 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9544 * gregset.h: If FILL_FPXREGSET is defined, provide
9545 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9546 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9547 is defined, call fill_fpxregset.
9549 2002-04-24 Roland McGrath <roland@frob.com>
9551 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9552 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9553 (supply_gregset, supply_fpregset): New functions.
9555 * gnu-nat.c (gnu_find_memory_regions): New function.
9556 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9557 (gnu_xfer_memory): Add a cast.
9559 2002-04-24 Michael Snyder <msnyder@redhat.com>
9561 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9562 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9563 of argument regs ("str r(0123), [r11, #-nn"]).
9564 (arm_skip_prologue): Better handling for frameless functions.
9565 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9566 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9568 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9570 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9571 NUM_PSEUDO_REGS can be used.
9573 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9575 * arch-utils.h: Update copyright.
9577 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9578 * gdbarch.h, gdbarch.c: Re-generate.
9580 * inferior.h (IN_SIGTRAMP): Delete definition.
9581 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9582 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9584 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9585 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9586 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9587 (find_proc_framesize): Ditto.
9588 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9589 (alpha_init_extra_frame_info): Ditto.
9590 * infrun.c (handle_inferior_event): Ditto.
9591 (handle_inferior_event): Ditto.
9592 (check_sigtramp2): Ditto.
9593 * blockframe.c (create_new_frame): Ditto.
9594 (get_prev_frame): Ditto.
9595 * ppc-linux-tdep.c: Update comments.
9596 * i386-linux-tdep.c: Update comments.
9597 * breakpoint.c (bpstat_what): Update comment.
9599 2002-04-24 David S. Miller <davem@redhat.com>
9601 * i960-tdep.c (register_in_window_p): New function.
9602 (i960_find_saved_register): Use it instead of
9603 REGISTER_IN_WINDOW_P.
9604 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9606 * symtab.h (find_stab_function_addr): Kill extern.
9607 * minsyms.c (find_stab_function_addr): Remove from here...
9608 * dbxread.c: ... to here, and mark it static.
9610 2002-04-20 David S. Miller <davem@redhat.com>
9612 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9613 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9615 2002-04-21 David S. Miller <davem@redhat.com>
9617 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9618 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9619 (vx_write_register): Likewise.
9621 2002-04-23 J. Brobecker <brobecker@gnat.com>
9623 * source.c (is_regular_file): New function.
9624 (openp): Check wether file to open is a regular file
9625 to avoid opening directories.
9627 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9629 * findvar.c (extract_signed_integer): Cast printf argument
9630 to suppress format warning.
9631 (extract_unsigned_integer): Likewise.
9632 * infcmd.c (registers_info): Likewise.
9633 * top.c (get_prompt_1): Likewise.
9634 * valops.c (value_assign): Likewise.
9635 * valprint.c (print_decimal): Likewise.
9637 2002-04-22 H.J. Lu (hjl@gnu.org)
9639 * c-exp.y (typebase): Support
9641 [long|long long|short] [signed|unsigned] [int|]
9645 signed [long|long long|short] int
9647 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9649 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9651 * vax-tdep.h: New file.
9652 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9653 Make several routines static.
9654 (vax_get_saved_register): New function.
9655 (vax_gdbarch_init): New function.
9656 (_initialize_vax_tdep): Register vax_gdbarch_init.
9657 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9658 Remove macros now under the control of gdbarch.
9660 2002-04-22 Michael Snyder <msnyder@redhat.com>
9662 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9663 Some whitespace and coding standards tweaks.
9665 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9667 * vax-tdep.c: Include regcache.h.
9668 (vax_call_dummy_words): New.
9669 (sizeof_vax_call_dummy_words): New.
9670 (vax_fix_call_dummy): New function.
9671 (vax_saved_pc_after_call): Ditto.
9672 * config/vax/tm-vax.h: Don't include regcache.h.
9673 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9674 (CALL_DUMMY): Remove.
9675 (CALL_DUMMY_WORDS): Define.
9676 (SIZEOF_CALL_DUMMY_WORDS): Define.
9677 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9679 2002-04-18 Michael Snyder <msnyder@redhat.com>
9681 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9683 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9685 * vax-tdep.c (vax_frame_chain): New function.
9686 (vax_push_dummy_frame): Ditto.
9687 (vax_pop_frame): Ditto.
9688 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9689 (FRAMELESS_FUNCTION_INVOCATION): Use
9690 generic_frameless_function_invocation_not.
9691 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9692 (POP_FRAME): Use vax_pop_frame.
9694 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9696 * vax-tdep.c (vax_store_struct_return): New function.
9697 (vax_extract_return_value): Ditto.
9698 (vax_store_return_value): Ditto.
9699 (vax_extract_struct_value_address): Ditto.
9700 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9701 vax_store_struct_return.
9702 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9703 (STORE_RETURN_VALUE): Use vax_store_return_value.
9704 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9706 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9708 * vax-tdep.c (vax_frame_saved_pc): New function.
9709 (vax_frame_args_address_correct): Ditto.
9710 (vax_frame_args_address): Ditto.
9711 (vax_frame_locals_address): Ditto.
9712 (vax_frame_num_args): Move code to be in proximity to
9713 other frame-related functions.
9714 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9715 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9716 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9717 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9718 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9720 2002-04-22 H.J. Lu (hjl@gnu.org)
9722 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9725 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9727 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9728 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9729 (FRAME_INIT_SAVED_REGS): New macro.
9731 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9733 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9735 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9737 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9739 (fetch_osf_core_registers): Likewise.
9740 (supply_gregset): Likewise.
9742 2002-04-22 J. Brobecker <brobecker@gnat.com>
9744 * symfile.h (get_section_index): Define.
9745 * symfile.c (get_section_index): New function.
9746 * mdebugread.c (SC_IS_SBSS): New macro.
9747 (SC_IS_BSS): Return true for the scBss storage class only, as
9748 the scSBss storage class refers to the .sbss section.
9749 (parse_partial_symbols): Discard the symbols which associated
9750 section does not exist.
9751 Make sure to use the .sbss section index for symbols which
9752 storage class is scBss, rather than using the .bss section index.
9754 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9756 * vax-tdep.c: Update copyright years.
9757 (vax_register_name): New function.
9758 (vax_register_byte): Ditto.
9759 (vax_register_raw_size): Ditto.
9760 (vax_register_virtual_size): Ditto.
9761 (vax_register_virtual_type): Ditto.
9762 * config/vax/tm-vax.h: Update copyright years.
9763 (REGISTER_NAMES): Remove.
9764 (REGISTER_NAME): Define.
9765 (REGISTER_BYTE): Use vax_register_byte.
9766 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9767 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9768 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9770 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9772 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9774 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9776 2002-04-21 David S. Miller <davem@redhat.com>
9778 * arch-utils.c (generic_prologue_frameless_p): Kill
9779 SKIP_PROLOGUE_FRAMELESS_P code.
9780 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9782 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9783 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9784 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9786 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9787 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9788 (sparc_gdbarch_init): Pass it to
9789 set_gdbarch_prologue_frameless_p.
9791 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9793 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9794 (alphabsd-nat.o): New dependency list.
9796 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9798 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9800 (alpha-linux-tdep.o): New dependency list.
9801 (alphafbsd-tdep.o): Likewise.
9803 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9805 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9807 * alpha-tdep.c: ...from here.
9808 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9810 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9812 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9813 prototype from here...
9814 * alpha-tdep.h: ...to here.
9816 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9818 * frame.h (selected_frame_level): Document as deprecated.
9819 (frame_relative_level): Declare.
9820 * stack.c (frame_relative_level): New function.
9821 (selected_frame_level): Document as deprecated.
9822 (select_frame): Do not set the selected_frame_level.
9824 * stack.c (frame_info, record_selected_frame): Update.
9825 (frame_command, current_frame_command): Update.
9826 (up_silently_base, up_command, down_silently_base): Update.
9827 (down_command): Update.
9828 * inflow.c (kill_command): Update.
9829 * tracepoint.c (finish_tfind_command): Update.
9830 * corelow.c (core_open): Update.
9831 * thread.c (info_threads_command): Update.
9832 (do_captured_thread_select): Update.
9833 * infcmd.c (finish_command): Update.
9834 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9836 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9838 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9840 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9842 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9845 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9847 * alphafbsd-tdep.c: Update copyright years. Include
9849 (alphafbsd_use_struct_convention): Make static.
9850 (alphafbsd_init_abi): New function.
9851 (_initialize_alphafbsd_tdep): New function.
9852 * config/alpha/tm-fbsd.h: Update copyright years.
9853 (USE_STRUCT_CONVENTION): Remove.
9855 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9857 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9858 an Alpha ABI variant.
9859 (alpha_abi_handler_list): Declare.
9860 (alpha_gdbarch_register_os_abi): New function.
9861 (alpha_gdbarch_init): Give registered ABI variant handlers a
9862 chance to tweak the gdbarch once we have set up defaults.
9863 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9865 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9867 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9868 to standard_coerce_float_to_double.
9869 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9871 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9873 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9874 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9875 from gdbarch_tdep rather than a constant.
9876 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9877 the default text address for all Alpha Unix ABIs.
9878 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9879 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9881 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9883 * alpha-tdep.h: New file. Includes several Alpha target constants
9885 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9886 let gdbarch deal with.
9887 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9888 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9890 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9891 Alpha target register names.
9892 * alphabsd-nat.c: Likewise.
9893 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9894 Alpha target register names. Make serveral routines static.
9895 (alpha_get_saved_register): New function.
9896 (alpha_abi_names): New.
9897 (process_note_abi_tag_sections): New function.
9898 (get_elfosabi): New function.
9899 (alpha_gdbarch_init): New function.
9900 (alpha_dump_tdep): New function.
9901 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9903 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9905 * frame.c (find_saved_register): Delete #ifdef
9906 HAVE_REGISTER_WINDOWS code.
9907 * config/sparc/tm-sparc.h: Update comments.
9908 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9910 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9912 * i960-tdep.c (i960_find_saved_register): New function.
9913 (i960_get_saved_register): New function.
9914 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9915 (i960_get_saved_register): Declare.
9916 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9918 2002-04-20 David S. Miller <davem@redhat.com>
9920 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9922 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9924 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9925 instead of NUM_PSEUDO_REGS.
9927 2002-04-20 David S. Miller <davem@redhat.com>
9929 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9930 GDB_MULTI_ARCH_PARTIAL
9931 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9932 define, let tm-sp64.h do it.
9934 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9936 * frame.c (find_saved_register): Avoid a NULL pointer
9937 dereference and actually walk the frame list.
9939 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9941 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9942 sorted in most most-recent-used order. Document.
9943 * gdbarch.h, gdbarch.c: Regenerate.
9945 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9947 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9949 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9950 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9951 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9954 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9957 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9958 (build_builtin_type_vec128): Ditto.
9959 (append_composite_type_field): Fix calculation of type length in
9962 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9964 * config/djgpp/README: Update.
9966 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9969 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9971 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9972 (alpha_setup_arbitrary_frame): ...to this.
9973 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9974 for alpha_setup_arbitrary_frame.
9976 2002-04-18 Andrew Cagney <cagney@redhat.com>
9978 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9979 * gdbarch.h, gdbarch.c: Regenerate.
9981 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9982 * target.h (memory_breakpoint_from_pc): Update declaration.
9983 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9985 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9986 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9987 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9988 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9989 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9990 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9991 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9992 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9993 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9994 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9995 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9996 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9998 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10000 * monitor.c (monitor_insert_breakpoint): Ditto.
10001 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10003 * config/mcore/tm-mcore.h: Update copyright.
10004 * mem-break.c: Ditto.
10005 * xstormy16-tdep.c: Ditto.
10007 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10009 * p-exp.y: Add precedence rule for '^' token.
10010 This removes the shift/reduce conflicts.
10011 Remove the comment concerning these shift/reduce conflicts.
10013 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10015 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10016 (registers_powerpc_nofp): New register set for processors
10017 without floating point unit.
10019 2002-04-18 David S. Miller <davem@redhat.com>
10021 * MAINTAINERS: Add myself to write-after-approval.
10023 2002-04-17 Michael Snyder <msnyder@redhat.com>
10025 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10027 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10029 * rs6000-tdep.c (frame_initial_stack_address): Use
10030 frame_register_read to read the alloca_reg.
10032 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10034 * frame.c (find_saved_register): Find saved registers in the next
10038 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10040 * gdbarch.sh (LANG): Set to ``c''.
10042 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10044 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10046 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10048 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10051 * hpread.c (hpread_get_lntt): Add declaration.
10052 Also fix PR gdb/391.
10054 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10056 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10057 * aclocal.m4, configure: Re-generate.
10060 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10062 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10063 instead of tm_print_insn.
10065 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10067 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10069 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10071 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10072 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10073 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10075 2002-04-12 Don Howard <dhoward@redhat.com>
10077 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10078 max_user_call_depth.
10079 (init_cmd_lists): Initialize the new value;
10080 * cli/cli-script.c (execute_user_command): Limit the call depth of
10081 user defined commands. This avoids a core-dump when user commands
10082 are infinitly recursive.
10084 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10086 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10087 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10088 from tdep struct instead of DEFAULT_LR_SAVE.
10089 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10090 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10091 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10093 2002-04-12 Michael Snyder <msnyder@redhat.com>
10095 * Remote.c: Spelling fix.
10096 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10097 If no symbol found for "sbrk", try "_sbrk".
10098 (make_output_phdrs): Use bfd_section_name.
10099 (gcore_copy_callback): Use bfd_section_name.
10100 * eval.c: Indentation fix-ups.
10101 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10102 in case it gets applied to an address that is already
10103 in the instruction space.
10104 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10105 * symfile.c: Fix indentation, long lines.
10106 * source.c: White space fix-up.
10108 2002-04-12 Andrew Cagney <cagney@redhat.com>
10110 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10111 * frame.c (frame_register_read): New function. Return non-zero on
10113 (read_relative_register_raw_bytes_for_frame): Delete.
10114 (read_relative_register_raw_bytes): Delete.
10115 * frame.h (frame_register_read): Declare.
10116 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10117 * sh-tdep.c: Ditto.
10118 * infcmd.c (do_registers_info): Ditto.
10119 * hppa-tdep.c: Ditto.
10120 * rs6000-tdep.c: Ditto.
10121 * h8500-tdep.c: Ditto.
10122 * mips-tdep.c: Ditto.
10123 * h8300-tdep.c: Ditto.
10124 * z8k-tdep.c: Ditto.
10126 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10128 From Jimi X <jimix@watson.ibm.com>:
10129 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10132 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10134 From Jimi X <jimix@watson.ibm.com>:
10135 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10138 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10140 From Jimi X <jimix@watson.ibm.com>:
10141 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10142 register sets for these processor variants.
10144 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10146 * regformats/reg-ppc.dat: Support FPSCR.
10148 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10150 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10151 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10152 Add fpscr as an invalid/unfetchable register.
10153 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10154 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10155 (fill_fpregset): Add support for register fpscr.
10156 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10157 (fill_gregset): Account for the fact that register ``mq'' might
10159 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10160 (registers_power): Add fpscr to register set at slot 71.
10161 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10162 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10164 2002-04-11 Michael Snyder <msnyder@redhat.com>
10166 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10167 * configure: Regenerate.
10168 * config.in: Regenerate.
10169 * acconfig.h: Add define for _SYSCALL32.
10170 * core-sol2.c: Remove #define _SYSCALL32.
10171 * solib-legacy.c: Remove #define _SYSCALL32.
10173 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10175 * stack.c (select_frame): Cleanup internal error message, do not
10178 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10180 * stack.c (select_frame): Check that selected_frame and the
10181 specified level are as expected.
10182 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10184 * frame.h (struct frame_info): Add field `level'. Update
10186 Work-in-progress PR gdb/464.
10188 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10190 * maint.c (maint_print_section_info): Rename print_section_info.
10191 (print_bfd_section_info, print_objfile_section_info): Update.
10192 * inferior.h (struct gdbarch): Add opaque declaration.
10193 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10194 * gdbarch.h: Regenerate.
10196 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10198 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10199 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10200 (kernel_u_size): Added.
10201 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10202 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10204 2002-04-04 Jim Ingham <jingham@apple.com>
10206 * valarith.c (find_size_for_pointer_math): New function, either returns
10207 the size for a pointer's target, returns 1 for void *, or errors for
10209 (value_add, value_sub): use find_size_for_pointer_math.
10211 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10213 * linux-low.c (linux_look_up_symbols): New hook.
10214 (linux_target_ops): Add linux_look_up_symbols.
10215 * remote-utils.c (decode_address): New function.
10216 (look_up_one_symbol): New function.
10217 * server.c (handle_query): Call target look_up_symbols hook.
10218 * server.h (look_up_one_symbol): Add prototype.
10219 * target.h (struct target_ops): Add look_up_symbols hook.
10221 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10223 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10224 override FP_REGNUM with frame->fp. Update copyright.
10225 * parse.c (num_std_regs, std_regs): Delete.
10226 (target_map_name_to_register): Do not search std_regs. Update
10227 function description.
10228 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10229 declarations. Update copyright.
10232 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10234 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10235 after the last symbol in a block.
10237 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10239 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10240 is non zero as a found symbol.
10242 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10244 * findvar.c: Include "builtin-regs.h".
10245 (value_of_register): Call value_of_builtin_reg when applicable.
10246 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10247 (target_map_name_to_register): Call
10248 builtin_reg_map_name_to_regnum.
10249 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10250 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10251 (builtin_regs_h): Define.
10252 (builtin-regs.o): New target.
10253 (findvar.o): Add $(builtin_regs_h).
10254 * builtin-regs.c, builtin-regs.h: New files.
10255 * std-regs.c: New file.
10256 Partial fix for PR gdb/251.
10258 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10260 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10261 it's no longer required.
10263 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10265 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10267 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10269 From Jimi X <jimix@watson.ibm.com>:
10270 * rs6000-tdep.c (rs6000_software_single_step): Use
10271 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10272 and size. Use target_insert_breakpoint() and
10273 target_remove_breakpoint() to insert and remove breakpoints
10274 instead of explicit memory reads and writes.
10276 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10278 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10279 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10280 ELF_OBJECT_FORMAT ifdef.
10282 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10284 From Jimi X <jimix@watson.ibm.com>:
10285 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10287 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10289 From Jimi X <jimix@watson.ibm.com>:
10290 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10291 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10293 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10295 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10296 s/asprintf/xasprintf/.
10297 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10299 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10301 I believe Jeff Law denies responsability for this one:
10302 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10303 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10304 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10305 Work-around for PR gdb/366.
10307 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10309 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10310 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10311 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10313 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10315 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10316 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10319 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10321 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10324 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10326 * README (Reporting Bugs in GDB): Document the bug web page as the
10327 prefered way of submitting bugs.
10330 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10332 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10333 -1. Update comment.
10334 * gdbarch.h, gdbarch.c: Re-generate.
10336 2002-04-07 Andreas Schwab <schwab@suse.de>
10338 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10339 buffer to regcache_collect.
10341 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10343 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10344 * gdbarch.c, gdbarch.h: Re-generate.
10346 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10348 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10349 declaration. Fix -Werror.
10351 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10353 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10354 * gdbarch.c: Regenerate.
10356 2002-04-05 Michael Snyder <msnyder@redhat.com>
10358 * breakpoint.c (clear_command): Rewrite middle section to
10359 combine two loops with identical control conditions.
10360 Add a cleanup to eliminate a memory leak.
10361 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10363 2002-04-05 H.J. Lu (hjl@gnu.org)
10365 * solib-svr4.c (bkpt_names): Add "__start".
10367 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10369 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10370 as test for 64 bit target.
10372 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10374 * h8500-tdep.c (h8500_write_fp): Delete function.
10375 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10376 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10377 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10379 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10380 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10382 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10383 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10384 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10385 (d10v_write_fp): Delete function.
10386 * inferior.h (write_fp, generic_target_write_fp): Delete
10388 * regcache.c (generic_target_write_fp): Delete function.
10389 (write_fp): Delete function.
10390 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10391 * gdbarch.h, gdbarch.c: Regenerate.
10392 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10393 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10394 (sparc64_write_fp): Delete declaration.
10395 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10396 (h8500_write_fp): Delete declaration.
10398 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10400 * sparc-tdep.c (sparc64_write_fp): Delete.
10401 (sparc_push_dummy_frame): Replace write_fp call with code to store
10403 (sparc_gdbarch_init): Do not initialize write_fp.
10405 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10407 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10410 2002-03-29 Jim Blandy <jimb@redhat.com>
10412 * stack.c (get_selected_block): Add new argument `addr_in_block',
10413 used to return the exact code address we used to select the block,
10414 not just the block.
10415 * blockframe.c (get_frame_block, get_current_block): Same.
10416 * frame.h (get_frame_block, get_current_block,
10417 get_selected_block): Update declarations.
10418 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10419 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10421 2002-04-05 Michael Snyder <msnyder@redhat.com>
10423 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10426 2002-04-05 J. Brobecker <brobecker@gnat.com>
10428 * utils.c (xfullpath): New function.
10429 * defs.h (xfullpath): Add declaration.
10430 * source.c (openp): Use xfullpath in place of gdb_realpath to
10431 avoid resolving the basename part of filenames when the
10432 associated file is a symbolic link. This fixes a potential
10433 inconsistency between the filenames known to GDB and the
10434 filenames it prints in the annotations.
10435 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10436 to be able to match a filename with either the real filename, or
10437 the name of any symbolic link to this file.
10438 (lookup_partial_symtab): Ditto.
10440 2002-04-04 Michael Snyder <msnyder@redhat.com>
10442 * breakpoint.c: Add support for hardware breakpoints in overlays.
10443 (overlay_events_enabled): New state variable.
10444 (insert_breakpoints): Use overlay_events_enabled to decide
10445 whether to attempt to set a breakpoint at the overlay load addr.
10446 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10447 (remove_breakpoint): Use overlay_events_enabled to decide
10448 whether breakpoints need to be removed from overlay load addr.
10449 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10450 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10451 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10452 disable_overlay_breakpoints): Update overlay_events_enabled.
10454 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10456 * dwarf2read.c (struct function_range): New.
10457 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10458 (check_cu_functions): New.
10459 (read_file_scope): Initialize global function lists.
10460 Call dwarf_decode_line after processing children.
10461 (read_func_scope): Add to global function list.
10462 (dwarf_decode_lines): Call check_cu_functions everywhere
10463 record_line is called. Call record_line with a linenumber
10464 of 0 to mark sequence ends.
10466 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10468 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10469 change sync with glibc.
10471 2002-04-03 Jim Blandy <jimb@redhat.com>
10473 * configure.in: Call AC_C_INLINE.
10474 * configure: Regenerated.
10476 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10478 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10479 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10481 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10483 * NEWS: Mention gcore support on FreeBSD/i386.
10485 * fbsd-proc.c: New file.
10486 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10487 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10489 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10492 2002-03-29 Jim Blandy <jimb@redhat.com>
10494 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10495 unescaped newlines in string literals, but newer ones don't. So
10498 2002-03-26 Michael Snyder <msnyder@redhat.com>
10499 Andrew Cagney <cagney@redhat.com>
10501 * cli/cli-dump.c: New file. Dump memory to file,
10502 restore file to memory.
10503 * cli/cli-dump.h: New file.
10504 * Makefile.in: Add rules, dependencies for cli-dump.o.
10505 * NEWS: Mention new commands.
10507 2002-03-28 Michael Snyder <msnyder@redhat.com>
10509 * symfile.c (symbol_file_add): Move test for null symbols to later.
10511 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10513 From veksler at il.ibm.com:
10514 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10515 the xstrduped original path.
10518 2002-03-27 Michael Snyder <msnyder@redhat.com>
10520 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10521 * infcmd.c (_initialize_infcmd): Ditto.
10522 * language.c (_initialize_language): Ditto.
10523 * symfile.c (_initialize_symfile): Ditto.
10524 * top.c (_init_main): Ditto.
10525 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10527 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10529 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10530 vector registers handling.
10531 (skip_prologue): Handle new AltiVec instructions. Fill in new
10532 fields of frame data.
10533 (frame_get_saved_regs): Fill in information for AltiVec registers.
10535 2002-03-27 Jim Blandy <jimb@redhat.com>
10537 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10538 a function; leave this macro here to invoke that function.
10539 (symbol_init_mangled_name): Declaration for that function.
10540 * symtab.c (symbol_init_mangled_name): New function.
10542 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10544 * valarith.c: Replace strerror with safe_strerror.
10545 * tracepoint.c: Ditto.
10546 * lin-lwp.c: Ditto.
10547 * go32-nat.c: Ditto.
10549 * gnu-nat.c: Ditto.
10551 2002-03-27 Andreas Schwab <schwab@suse.de>
10553 * event-top.c (command_line_handler): Remove useless if.
10555 2002-03-27 Andreas Jaeger <aj@suse.de>
10557 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10560 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10562 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10563 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10564 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10565 (x86_64_linux_dr_get_status, supply_gregset),
10566 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10567 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10568 (x86_64_register_info_table): Add.
10569 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10570 (x86_64_register_raw_size, x86_64_register_virtual_type),
10571 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10572 general x86_64_register_info_table.
10573 (i386_gdbarch_init): gdbarch_register_bytes is now set
10574 dynamicaly during initialization.
10575 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10576 * gdbserver/linux-x86-64-low.c: Ditto.
10578 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10580 * gdbserver/server.c (main): Call target_signal_to_host_p
10581 and target_signal_to_host on signals received from the remote.
10582 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10583 target_signal_from_host on signals sent to the remote.
10584 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10585 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10587 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10589 * signals/signals.c: Include "server.h" in gdbserver build.
10590 (target_signal_from_name): Don't use STREQ.
10591 (_initialize_signals): Likewise. Don't include function in
10594 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10596 * signals.c: Moved to...
10597 * signals/signals.c: Here.
10598 * Makefile (signals.o): Update.
10600 2002-03-26 Jeff Law (law@redhat.com)
10602 * somread.c (som_symtab_read): Remove some commented out code and
10603 updated related comments. Do not set the minimal symbol table to
10604 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10605 in a dynamic executable.
10606 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10607 where we are unable to find the minimal symbol for the given
10610 2002-03-25 Jeff Law (law@redhat.com)
10612 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10614 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10616 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10618 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10620 * command.h: Update copyright.
10621 (struct cmd_list_element): Replace definition with opaque
10623 (enum cmd_types): Document that it will eventually be moved to
10625 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10626 (MALLOCED_REPLACEMENT): Delete macro.
10627 * Makefile.in (cli_decode_h): Add $(command_h).
10628 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10629 * top.c: Include "cli/cli-decode.h".
10630 * completer.c: Include "cli/cli-decode.h".
10631 * maint.c: Include "cli/cli-decode.h".
10632 * cli/cli-decode.h: Include "command.h".
10633 (enum command_class): Delete.
10634 (enum cmd_types): Comment out.
10635 (enum cmd_auto_boolean): Delete.
10636 (enum var_types): Delete.
10638 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10640 * cli/cli-decode.c: Include "gdb_assert.h".
10641 (add_set_or_show_cmd): New static function.
10642 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10643 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10644 all fields, such as func, from the set command.
10646 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10648 * MAINTAINERS (sh-elf): Change warning flag to -w.
10650 2002-03-23 Andrew Cagney <cagney@redhat.com>
10652 * defs.h (error): Add printf format attribute.
10653 * thread-db.c (thread_from_lwp): Fix error format string.
10654 * stack.c (parse_frame_specification): Ditto.
10655 * cli/cli-decode.c (undef_cmd_error): Ditto.
10656 * scm-lang.c (scm_lookup_name): Ditto.
10657 * tracepoint.c (trace_error): Ditto.
10658 * remote-utils.c (usage): Ditto.
10659 * remote.c (compare_sections_command): Ditto.
10662 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10664 * gdbtypes.c (append_composite_type_field): New function.
10665 (init_composite_type): New function.
10666 * gdbtypes.h (append_composite_type_field): Declare.
10667 (init_composite_type): Ditto.
10669 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10671 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10673 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10674 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10675 structure returning convention for SYSV ABI case, but not
10676 for GNU/Linux, FreeBSD, or NetBSD.
10678 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10680 * symtab.h (lookup_block_symbol): Add mangled_name argument
10683 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10684 with new mangled_name argument.
10685 * linespec.c (decode_line_1): Likewise.
10686 * valops (value_of_this): Likewise.
10687 * symtab.c (lookup_transparent_type): Likewise.
10688 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10689 (lookup_symbol): If we are given a mangled name, pass it down
10690 to lookup_symbol_aux.
10691 (lookup_block_symbol): If we are given a mangled name to check
10692 against, only return symbols which match it.
10694 2002-03-22 Christopher Faylor <cgf@redhat.com>
10696 * win32-nat.c (child_create_inferior): Check for proper shell to use
10697 here, in case the user changes it on the fly.
10698 (_initialize_inftarg): Remove shell path considerations.
10700 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10702 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10703 for gdbarch_max_register_raw_size and max_register_virtual_size.
10704 Adjust copyright year.
10706 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10708 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10709 in a function to cover the entire beginning of the function
10710 as well if it does not already.
10712 2002-03-21 Tom Rix <trix@redhat.com>
10714 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10715 (rs6000_ptrace64): Renamed from ptrace64.
10717 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10719 * gdbserver/remote-utils.c (remote_open): Don't call
10720 getprotobyname, we're all using TCP here so just use
10722 * gdbserver/gdbreplay.c (remote_open): Ditto.
10724 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10726 * regcache.c (_initialize_regcache): No need to call
10727 build_regcache() at this time; it gets called whenever
10728 the gdbarch changes.
10730 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10732 * sparc-nat.c: Include sys/param.h where possible.
10734 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10737 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10738 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10739 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10741 * stabsread.c (rs6000_builtin_type): Likewise.
10742 (read_sun_floating_type): Likewise.
10744 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10746 * stabsread.c (read_member_functions): Remove skip code for duplicate
10747 constructor/destructor methods. Use standard parsing for these
10748 methods and just do not chain them to the list of methods after
10751 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10753 * coffread.c: Remove redundant static declarations. Replace
10754 occurrences of `PTR' with `void *'.
10755 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10756 * top.h (quit_cover): Likewise.
10757 * defs.h (catch_errors): Likewise.
10759 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10761 * defs.h (XMALLOC): Define.
10762 * gdb-events.sh (XMALLOC): Delete macro.
10763 * gdb-events.c, gdb-events.h: Regenerate.
10764 * gdbarch.sh (XMALLOC): Delete macro.
10765 * gdbarch.c: Regenerate.
10766 * serial.c (XMALLOC): Delete macro.
10767 * ui-file.c (XMALLOC): Ditto.
10768 * ser-unix.h (XMALLOC): Ditto.
10769 * sh-tdep.c (XMALLOC): Ditto.
10770 * ui-out.c (XMALLOC): Ditto.
10771 * utils.c (XMALLOC): Ditto.
10772 * i386-tdep.c (XMALLOC): Ditto.
10773 * gdb-events.c (XMALLOC): Ditto.
10774 * d10v-tdep.c (XMALLOC): Ditto.
10775 * cli-out.c (XMALLOC): Ditto.
10777 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10778 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10779 * ui-file.c, ui-out.c: Ditto.
10781 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10783 * command.h (struct cmd_list_element): Add field context.
10784 (set_cmd_context, get_cmd_context): Declare.
10785 * cli/cli-decode.h: Ditto.
10786 * cli/cli-decode.c (get_cmd_context): New function.
10787 (set_cmd_context): New function.
10788 (add_cmd): Initialize context.
10789 Part of fixing PR gdb/145 and PR gdb/146.
10791 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10793 * cli/cli-decode.c (cmd_type): New function.
10794 * command.h (cmd_type): Declare.
10795 * infrun.c (set_schedlock_func): Call function cmd_type.
10796 * kod.c (kod_set_os): Call cmd_type.
10797 * cris-tdep.c (cris_version_update): Use function cmd_type.
10798 (cris_mode_update, cris_abi_update): Ditto.
10800 * command.h: (execute_cmd_post_hook): Declare.
10801 (execute_cmd_pre_hook): Declare.
10802 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10803 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10804 functions. Execute pre/post hook while ensuring that afterwords
10805 hook_in is cleared.
10806 * top.c (execute_command): Use execute_cmd_post_hook, and
10807 execute_cmd_pre_hook to execute pre/post commands.
10808 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10810 (hook_stop_stub): Call execute_cmd_pre_hook.
10812 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10814 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10815 set'' and this leads to a core dump. Move xstrdup of
10816 operating_system to after check that it is not NULL.
10818 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10820 * kod.c (kod_set_os): Remove unnecessary check that
10821 ``command->type'' is set_cmd.
10823 * valprint.c (set_input_radix): Use input_radix.
10824 (set_output_radix): Use output_radix.
10825 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10828 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10830 * value.h (struct value): Delete field ``substring_addr''. Change
10831 aligner fields to force_doublest_align, force_longest_align,
10832 force_core_addr_align and force_pointer_aligh.
10834 * value.h (struct value): Fix typo in above change.
10836 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10838 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10839 to fix internal_error from ``maintenance print architecture''.
10841 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10843 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10844 for gcc versions after gcc-2.8.1.
10846 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10848 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10849 for method resolution. Restore adjustment of ``this'' pointer after
10850 calling value_struct_elt, which was accidentally removed during the
10853 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10855 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10857 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10858 get_saved_register.
10859 * value.h (value_of_register): Update.
10861 2002-03-14 Richard Henderson <rth@redhat.com>
10863 * configure.in: Detect declaration for canonicalize_file_name.
10864 * utils.c (canonicalize_file_name): Declare, if needed.
10865 (gdb_realpath): Prefer realpath if available and usable.
10866 * config.in, configure: Rebuild.
10868 2002-03-14 Richard Henderson <rth@redhat.com>
10870 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10871 a constant array bound.
10873 * MAINTAINERS: Add myself to write-after-approval.
10875 2002-03-14 Michael Snyder <msnyder@redhat.com>
10877 * symfile.c (syms_from_objfile): Return immediately if no syms.
10878 (symbol_file_add): Return immediately if no syms.
10879 (find_sym_fns): Return immediately if no syms.
10881 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10883 * gdbserver/remote-util.c (remote_open): Print remote-side's
10884 IP address when remote debugging over the network.
10886 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10888 * config/sparc/fbsd.mh: Fix copyright.
10889 * config/sparc/fbsd.mt: Likewise.
10891 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10893 * MAINTAINERS: Fix typo in name of gdb warnings option.
10894 (x86-64): Fix formating so that this can be parsed by awk.
10896 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10898 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10899 * defs.h: Include "gdb/signals.h".
10900 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10902 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10904 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10905 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10908 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10909 Don Howard <dhoward@redhat.com>
10911 * mips-tdep.c (ST0_FR): Define.
10912 (mips2_fp_compat): New function, temporarily disabled.
10913 (mips_read_fp_register_single): New function.
10914 (mips_read_fp_register_double): New function.
10915 (mips_print_register): Use them.
10916 (do_fp_register_row): Likewise.
10918 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10920 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10923 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10925 * stabsread.c (read_member_functions): Fix is_stub test for
10926 static member functions, improve comment.
10928 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10930 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10931 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10932 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10933 commands that set boolean values.
10934 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10935 (arm_rdi_resume): Always initialize PC.
10936 (arm_rdi_open): Don't use rslt as a boolean.
10937 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10938 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10939 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10940 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10942 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10944 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10945 * configure: Rebuilt.
10947 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10949 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10950 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10952 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10954 * cli/cli-decode.c (set_cmd_completer): New function.
10955 * command.h (set_cmd_completer): Declare.
10956 * cli/cli-decode.h (set_cmd_completer): Ditto.
10958 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10959 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10960 * win32-nat.c (_initialize_inftarg): Ditto.
10961 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10962 * proc-api.c (_initialize_proc_api): Ditto.
10963 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10964 * source.c (_initialize_source): Ditto.
10965 * exec.c (_initialize_exec): Ditto.
10966 * solib.c (_initialize_solib): Ditto.
10967 * top.c (init_main): Ditto.
10968 * tracepoint.c (_initialize_tracepoint): Ditto.
10969 * symfile.c (_initialize_symfile): Ditto.
10970 * printcmd.c (_initialize_printcmd): Ditto.
10971 * infcmd.c (_initialize_infcmd): Ditto.
10972 * corefile.c (_initialize_core): Ditto.
10974 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10976 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10978 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10980 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10982 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10984 * NEWS: Update headings, 5.2 has branched.
10986 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10988 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10989 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10990 (register_addr, REGISTER_RAW_SIZE): Likewise.
10991 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10992 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10994 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10996 * MAINTAINERS (x86-64): Add myself.
10997 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10998 changed value_ptr -> struct value *
11000 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11002 * configure.host (sparc64-*-freebsd): Add.
11003 * configure.tgt: Likewise.
11004 * config/sparc/fbsd.mh: New file.
11005 * config/sparc/fbsd.mt: Likewise.
11006 * config/sparc/nm-fbsd.h: Likewise.
11007 * config/sparc/tm-fbsd.h: Likewise.
11009 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11011 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11012 regformats/reg-s390x.dat.
11014 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11016 * utils.c: Add FIXME explaining true/false problem.
11018 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11020 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11022 2002-02-28 Michael Chastain <mec@shout.net>
11024 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11026 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11028 * gdbserver/linux-s390-low.c: New file.
11029 * regformats/reg-s390.dat: New file.
11030 * regformats/reg-s390x.dat: New file.
11031 * gdbserver/configure.srv: Add S/390.
11032 * gdbserver/Makefile.in: Add S/390.
11033 * configure.tgt: Enable gdbserver for S/390.
11035 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11037 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11038 first line of the doc string for "info dos", except at the end of
11039 the sentence, since the short help stops at the first period.
11041 2002-02-28 Jason Merrill <jason@redhat.com>
11043 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11045 2002-02-27 Fred Fish <fnf@redhat.com>
11047 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11048 comment (dumy -> dummy).
11050 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11052 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11054 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11056 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11058 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11060 * gdbserver/acconfig.h: New file.
11061 * gdbserver/i387-fp.c: New file.
11062 * gdbserver/i387-fp.h: New file.
11063 * gdbserver/linux-x86-64.c: New file.
11064 * regformats/reg-x86-64.dat: New file.
11065 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11066 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11067 * gdbserver/configure.in: Add support for regsets.
11068 * gdbserver/config.in: Regenerate.
11069 * gdbserver/configure: Regenerate.
11070 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11071 * gdbserver/linux-low.h: New file.
11072 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11074 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11075 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11076 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11077 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11078 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11079 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11080 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11081 "i387-fp.h". Add PTRACE_GETREGS and friends.
11082 * gdbserver/regcache.c (supply_register): New function.
11083 (supply_register_by_name): New function.
11084 (collect_register): New function.
11085 (collect_register_by_name): New function.
11087 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11089 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11090 (config.status): Add configure.srv dependency.
11091 (server_h): Add config.h dependency.
11093 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11095 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11096 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11097 * gdbserver/configure.srv: Change i386-*-linux* to use
11100 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11102 * x86-64-tdep.c: Re-indent. Update copyright date.
11104 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11106 From Michal Ludvig <mludvig@suse.cz>:
11107 * x86-64-tdep.c (value.h): Delete.
11108 (gdb_assert.h): Include.
11109 (x86_64_register_convert_to_virtual,
11110 x86_64_register_convert_to_raw ): Add check which lets only
11111 floating-point values to be converted.
11112 (value_push): Delete.
11113 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11114 (i386_gdbarch_init): Number of register_bytes fixed.
11116 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11118 * MAINTAINERS: Add x86-64 target.
11120 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11122 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11123 * osfsolib.c (solib_map_sections): Ditto.
11124 * irix5-nat.c (solib_map_sections): Ditto.
11125 * corelow.c (gdb_check_format): Ditto.
11126 * symfile.c (symfile_bfd_open): Ditto.
11127 * solib.c (solib_map_sections): Ditto.
11130 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11132 * remote.c (_initialize_remote): By default, disable ``e'' and
11133 ``E'' step out-of-range packets.
11135 2002-02-26 Andreas Schwab <schwab@suse.de>
11137 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11138 m68k_linux_frame_saved_pc.
11139 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11141 (SIGCONTEXT_PC_OFFSET): Remove.
11142 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11143 m68k_linux_sigtramp_saved_pc): New functions.
11144 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11145 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11146 (UCONTEXT_PC_OFFSET): Define.
11147 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11148 non-RT and RT signal trampolines.
11150 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11152 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11153 (TARGET_NBPG, STACK_END_ADDR): Delete
11154 (VARIABLES_INSIDE_BLOCK): Delete.
11156 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11158 * utils.c (perror_with_name): Make string parameter constant.
11159 (print_sys_errmsg): Ditto.
11161 * defs.h (perror_with_name): Update.
11162 (print_sys_errmsg): Update.
11165 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11167 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11168 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11170 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11172 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11173 if it already matches the current architecture from the exec file.
11174 Include arch-utils.h for gdbarch_info_init prototype.
11175 * Makefile.in (rs6000-nat.o): Update dependencies.
11177 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11179 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11180 list of exported variables.
11182 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11184 * gdbserver/configure.srv: New file.
11185 * gdbserver/configure.in: Use configure.srv instead
11186 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11188 * gdbserver/configure: Regenerated.
11189 * gdbserver/terminal.h: New file.
11190 * gdbserver/Makefile.in: Update for configure changes. Remove
11191 more unneeded include paths.
11193 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11195 From wiz at danbala:
11196 * config/sparc/tm-sp64.h: Fix grammar and typos.
11199 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11201 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11202 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11203 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11204 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11205 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11206 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11207 * s390-tdep.c: Ditto.
11208 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11209 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11210 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11211 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11212 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11213 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11214 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11215 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11216 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11217 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11220 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11222 * lin-thread.c: Delete file.
11223 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11224 to gdb_proc_service.h.
11225 * configure: Re-generate.
11227 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11228 * serial.c (serial_open): Delete check for "ocd".
11231 * Makefile.in (linux-thread.o): Delete target.
11232 * linux-thread.c: Delete file.
11234 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11235 renamed SH files to be consistent.
11237 * symtab.c (sort_search_symbols): Use xfree.
11239 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11241 * arm-linux-tdep.c (arm_linux_init_abi): Register
11242 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11243 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11244 definition with undef, since we don't want the sysvr4 definition.
11245 (SKIP_TRAMPOLINE_CODE): Likewise.
11247 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11249 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11251 * configure.in: (AC_CHECK_FUNCS) Added test for
11252 canonicalize_file_name Regenerated.
11253 * config.in, configure: Regenerated.
11254 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11255 defined use canonicalize_file_name.
11257 2002-02-23 Michael Chastain <mec@shout.net>
11259 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11261 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11263 * README: Remove references to cygnus.com.
11264 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11265 dot com'' form. Remove references to cygnus.com and sourceware.
11267 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11269 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11270 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11271 1003.1-2001 no longer allows "head -1".
11272 * gdb/Makefile.in (version.c): Likewise.
11273 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11274 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11275 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11277 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11279 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11280 * command.h (cmd_cfunc_eq): Declare.
11281 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11283 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11284 ``struct cmd_list_element *''.
11285 * cli/cli-cmds.c (is_complete_command): Update. Use
11287 * top.c (execute_command): Pass the command to
11288 is_complete_command.
11289 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11291 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11293 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11294 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11295 architecture defines.
11296 * s390-tdep.c (s390_gdbarch_init): Likewise.
11298 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11300 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11301 (arm_linux_push_arguments): Likewise.
11302 (arm_linux_init_abi): Register them. Also register linux-specific
11304 (find_minsym_and_objfile): Use strcmp, not STREQ.
11305 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11306 (arm_linux_call_dummy_words): Delete declaration.
11307 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11308 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11310 (LOWEST_PC): Delete.
11312 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11314 * maint.c (print_section_info): Do not prepend `0x' to filepos
11315 output, it will be handled by local_hex_string_custom.
11317 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11319 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11320 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11321 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11323 2002-02-22 Jim Blandy <jimb@redhat.com>
11325 Indicate that the bcache functions don't change the strings
11327 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11328 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11330 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11332 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11334 2002-02-21 Christopher Faylor <cgf@redhat.com>
11336 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11337 find the complete path to a loaded DLL.
11339 2002-02-21 Fred Fish <fnf@redhat.com>
11341 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11342 that marks the end of the range of a function, enter a line number
11343 entry that has a line number of zero and a PC offset that matches
11344 the end of the function. This starts a range of PC's for which no
11345 line number information is known.
11346 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11347 PC's for which no line number info is found (line number is zero)
11348 then we didn't find any valid line information.
11349 * symtab.h: Document use of zero line number entry.
11351 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11353 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11354 (have_ptrace_getvrregs): Define for run time checks.
11355 (gdb_vrregset_t): New type for Altivec register handling.
11356 (fetch_register, store_register): Fetch/store altivec register
11358 (fetch_altivec_register, store_altivec_register): New functions.
11359 (supply_vrregset, fill_vrregset): New functions.
11360 (fetch_altivec_registers, store_altivec_registers): New functions.
11361 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11364 2002-02-21 Jiri Smid <smid@suse.cz>
11366 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11368 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11370 * Makefile.in (armnbsd-nat.o): Update dependencies.
11371 * armnbsd-nat.c (supply_gregset): New function. Common code to
11372 supply the integer register set.
11373 (supply_fparegset): New function. Similar for FPA registers.
11374 (fetch_regs, fetch_fp_regs): Use them.
11375 (fetch_core_registers): Likewise.
11376 (fetch_elfcore_registers): New function.
11377 (arm_netbsd_elfcore_fns): New core-file type specification.
11378 (_initialize_arm_netbsd_nat): Register it.
11380 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11382 * armnbsd-nat.c: Include gdbcore.h.
11383 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11384 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11385 'void' to declaration, to shut up ARI.
11386 (fetch_core_registers): Make static. Rewrite using supply_register.
11387 (arm_netbsd_core_fns): New core-file type specification.
11388 (_initialize_arm_netbsd_nat): New function.
11390 2002-02-21 Christopher Faylor <cgf@redhat.com>
11392 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11395 2002-02-20 Christopher Faylor <cgf@redhat.com>
11397 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11400 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11402 * jv-exp.y (parse_number): Change type of implicit longs
11403 to builtin_type_uint64.
11405 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11407 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11408 to be an integer instead of a `union wait'.
11410 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11412 * mips-linux-nat.c: Call the operating system GNU/Linux.
11413 * mips-linux-tdep.c: Likewise.
11414 * mips-tdep.c: Likewise.
11416 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11419 * jv-exp.y (parse_number): Handle 64-bit integers.
11421 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11423 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11424 AC_STDC_HEADERS to AC_HEADER_STDC.
11425 * gdbserver/configure: Regenerated.
11427 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11429 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11431 * sparc-tdep.c (get_longjmp_target): Likewise.
11433 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11435 * News: Add news about ARM and Multi-arch. Mention the new target
11438 2002-02-19 Jim Blandy <jimb@redhat.com>
11440 * stabsread.c (error_type_complaint): Improve error message.
11442 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11444 * gdbserver/README: Update documentation.
11445 * gdbserver/configure.in: Update configury to match documentation.
11446 * gdbserver/Makefile.in: Likewise.
11447 * gdbserver/configure: Regenerated.
11448 * gdbserver/aclocal.m4: New file, generated by aclocal.
11449 * gdbserver/config.in: New file, generated by autoheader.
11451 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11453 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11456 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11458 * arm-tdep.h (enum arm_float_model): New enum.
11459 (struct gdbarch_tdep): Add fp_model.
11460 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11461 up floating-point conversions until we know the floating-point model
11462 in use by the inferior. Don't complain about being unable to
11463 determine the ABI of the inferior when we don't have one.
11464 (arm_extract_return_value): Support different floating-point models.
11465 (arm_store_return_value): Likewise.
11466 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11468 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11470 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11472 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11473 of ``current_gdbarch''.
11475 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11477 * armnbsd-nat.c : ANSIfy all function declarations.
11478 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11479 (fetch_inferior_registers): Re-implement in terms of above.
11480 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11481 (store_inferior_registers): Re-implement in terms of above.
11483 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11485 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11487 * arm-linux-tdep.c: Likewise.
11488 * config/arm/tm-linux.h: Likewise.
11490 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11492 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11493 * config/arm/nbsd.mt (TM_FILE): Delete.
11494 * config/arm/tm-nbsd.h: Delete.
11496 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11498 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11499 Initialize CALL_DUMMY_LENGTH.
11501 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11503 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11505 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11506 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11507 defines one thing and that is incorrect for this port.
11508 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11510 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11512 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11514 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11516 * win32-nat.c (display_selector): New function. Displays information
11517 about the information returned by GetThreadSelectorEntry API function.
11518 (display_selectors): New function. Displays the infomation of
11519 the selector given as argument, or of CS, DS ans FS selectors
11520 if no argument is given.
11521 ( _initialize_inftarg): Add "w32" as info prefix command.
11522 Add "info w32 selector" as command calling display_selectors.
11524 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11526 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11527 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11530 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11532 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11534 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11536 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11537 (arm_fix_call_dummy): Call it.
11538 (arm_call_dummy_breakpoint_offset): Delete.
11539 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11540 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11542 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11544 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11545 Default to func_frame_chain_valid.
11546 * gdbarch.h, gdbarch.c: Re-generate.
11547 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11549 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11551 * ppc-linux-nat.c: Update copyright.
11552 (fetch_register, store_register): Add tid parameter, don't compute
11554 (fetch_ppc_registers, store_ppc_registers): Add tid
11555 parameter. Pass it along to callees.
11556 (fetch_inferior_registers, store_inferior_registers): Compute tid
11557 here, and pass it to calleed functions.
11558 (fill_gregset, supply_fpregset): Clean up formatting.
11560 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11562 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11563 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11565 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11567 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11568 * gdbarch.c gdbarch.h: Regenerate.
11569 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11571 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11572 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11573 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11575 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11576 * arm-tdep.c (arm_get_longjmp_target): New function.
11577 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11578 this to a positive value register arm_get_longjmp_target as the
11580 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11581 (arm_linux_init_abi): Set up longjmp description in tdep.
11582 * armnbsd-nat.c (get_longjmp_target): Delete.
11583 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11584 description in tdep.
11585 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11586 (get_longjmp_target): Delete declaration.
11587 (GET_LONGJMP_TARGET): Delete.
11588 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11589 (GET_LONGJMP_TARGET): Delete.
11591 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11593 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11594 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11595 of ``current_gdbarch''.
11597 2002-02-17 Tom Tromey <tromey@redhat.com>
11599 * cli/cli-cmds.c (compare_strings): New function.
11600 (complete_command): Only print each unique item once.
11601 * completer.h (complete_line): Declare.
11602 * completer.c (complete_line): New function.
11603 (line_completion_function): Use it.
11605 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11607 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11608 * gdbarch.h, gdbarch.c: Re-generate.
11610 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11612 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11614 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11616 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11617 * valops.c (value_arg_coerce): Don't take the address of a reference
11618 to convert an argument to a reference.
11620 2002-02-15 Christopher Faylor <cgf@redhat.com>
11622 * win32-nat.c (get_image_name): New function.
11623 (handle_load_dll): Use get_image_name function.
11624 (get_child_debug_event): Avoid registering debug events until possibly
11625 execed process is started.
11626 (child_create_inferior): Allow invocation via shell so that command
11627 line redirection, etc. works ok.
11628 (_initialize_inftarg): Add new command: "set shell" to control whether
11629 a shell is used to start a process.
11631 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11633 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11634 instead of find_register_by_number.
11635 (cannot_store_register): Likewise.
11637 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11639 * dwarf2read.c: Replace fprintf (stderr, ...) by
11640 fprintf_unfiltered (gdb_stderr, ...).
11642 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11644 * gdbserver/gdbserver.1: Document --attach.
11646 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11648 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11650 * arm-tdep.c (arm_default_arm_le_breakpoint)
11651 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11652 (arm_default_thumb_be_breakpoint): New. Initialize them from
11653 traditional breakpoint defines.
11654 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11655 (arm_gdbarch_init): Initialize new breakpoint variables.
11656 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11657 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11658 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11659 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11661 (arm_netbsd_init_abi_common): ... here; new function.
11662 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11663 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11664 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11665 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11667 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11669 * arm-tdep.h (enum arm_abi): New enum.
11670 (struct gdbarch_tdep): New structure.
11671 (LOWEST_PC): Provide a default.
11672 (arm_gdbarch_register_os_abi): Declare new function.
11673 * arm-tdep.c (arm_abi_names): New array.
11674 (process_note_abi_tag_sections): New function.
11675 (get_elfosabi): New function.
11676 (arm_gdbarch_register_os_abi): New function.
11677 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11678 support for that ABI has been built in, then call the appropriate
11679 configuration routine. Use gdbarch_num_regs() to get the number
11681 (arm_dump_tdep): New function.
11682 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11683 place-holder functions.
11684 (_initialize_arm_tdep): Register them.
11685 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11687 * armnbsd-tdep.c: New file.
11688 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11689 * config/arm/nbsd.mt (TDEPFILES): Add it.
11690 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11692 * armnbsd-nat.c: Include regcache.h.
11693 * Makefile.in (armnbsd-nat.o): Update dependency list.
11695 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11697 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11699 * gdbserver/Makefile.in: Fix typos in target rules.
11701 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11703 Fix part of PR gdb/267.
11704 * linespec.c (find_methods): Handle constructors specially for now.
11706 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11708 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11710 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11711 standard_coerce_float_to_double().
11713 2002-02-14 Christopher Faylor <cgf@redhat.com>
11715 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11718 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11720 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11721 find_variant_by_name, because it confuses the multiarch
11722 framework. Return NULL if there isn't an architecture with the
11723 user supplied name, instead of forcing a different one without
11724 recording the change with the multiarch machinery.
11725 (find_variant_by_name): Delete.
11727 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11729 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11730 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11732 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11734 * stack.c (print_frame_info_base): When calling
11735 print_frame_info_listing_hook, set current_source_symtab.
11737 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11739 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11740 and remove unused $(INCLUDE_DIR).
11741 Add regcache.c to OBS.
11742 Add generated register protocol files to clean target.
11743 Update dependencies for new objects, obsolete old target code.
11745 * gdbserver/linux-low.c: Remove all platform-specific code to
11746 new files. Remove various dead code. Update to use regcache
11748 * gdbserver/remote-utils.c (fromhex): Add return statement
11750 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11752 (input_interrupt): Add integer parameter to match prototype
11753 of a signal handler.
11754 (outreg): Use register_data ().
11755 (prepare_resume_reply): Use gdbserver_expedite_regs.
11756 * gdbserver/server.c (main): Dynamically allocate own_buf because
11757 PBUFSIZ is no longer constant. Use registers_to_string () and
11758 registers_from_string ().
11759 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11760 for error (), fatal (), and warning (). Update definition of
11761 PBUFSIZ to use regcache functionality. Add include guard.
11762 * gdbserver/utils.c (fatal): Add missing ``const''.
11763 (warning): New function.
11765 * regformats/regdat.sh: Include "regcache.h" in generated files.
11766 Provide init_registers () function.
11767 * regformats/regdef.h: Add prototype for set_register_cache ().
11770 * gdbserver/linux-arm-low.c: New file.
11771 * gdbserver/linux-i386-low.c: New file.
11772 * gdbserver/linux-ia64-low.c: New file.
11773 * gdbserver/linux-m68k-low.c: New file.
11774 * gdbserver/linux-mips-low.c: New file.
11775 * gdbserver/linux-ppc-low.c: New file.
11776 * gdbserver/linux-sh-low.c: New file.
11778 * gdbserver/regcache.c: New file.
11779 * gdbserver/regcache.h: New file.
11781 * gdbserver/low-linux.c: Removed obsolete file.
11783 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11785 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11786 * config/i386/linux.mt: Likewise.
11787 * config/ia64/linux.mt: Likewise.
11788 * config/m68k/linux.mh: Likewise.
11789 * config/powerpc/linux.mh: Likewise.
11790 * config/mips/linux.mt: Likewise.
11792 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11794 * config/i386/i386lynx.mh: Mark gdbserver variables
11795 as (currently) obsolete for this target.
11796 * config/i386/nbsd.mt: Likewise.
11797 * config/i386/nbsdelf.mt: Likewise.
11798 * config/m32r/m32r.mt: Likewise.
11799 * config/m68k/m68klynx.mh: Likewise.
11800 * config/m68k/nbsd.mt: Likewise.
11801 * config/m68k/sun3os4.mh: Likewise.
11802 * config/mips/vr5000.mt: Likewise.
11803 * config/ns32k/nbsd.mt: Likewise.
11804 * config/pa/hppabsd.mh: Likewise.
11805 * config/pa/hppaosf.mh: Likewise.
11806 * config/powerpc/nbsd.mt: Likewise.
11807 * config/rs6000/rs6000lynx.mh: Likewise.
11808 * config/s390/s390.mt: Likewise.
11809 * config/s390/s390x.mt: Likewise.
11810 * config/sparc/sparclynx.mh: Likewise.
11811 * config/sparc/sun4os4.mh: Likewise.
11812 * config/i386/x86-64linux.mt: Likewise.
11813 * config/sparc/linux.mh: Likewise.
11815 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11817 * configure.tgt: Configure gdbserver only for known working
11818 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11819 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11820 SUBDIRS if it is configured. Update comment for ${nativefile}.
11821 * configure: Regenerated.
11823 2002-02-13 Michael Snyder <msnyder@redhat.com>
11825 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11827 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11828 (default_gcore_mach): Just return 0, work around a problem in bfd.
11829 (default_gcore_target): OK to return NULL if exec_bfd is null.
11830 (make_mem_sec): Use a cast, avoid a warning.
11832 * procfs.c (find_memory_regions_callback): Use a cast instead of
11833 calling host_pointer_to_address (which complains if
11834 sizeof (host pointer) != sizeof (target pointer)).
11835 (procfs_make_note_section): Avoid overflow in psargs string.
11837 * procfs.c (procfs_make_note_section): Make the default
11838 implementation return an error.
11840 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11842 * procfs.c (procfs_make_note_section): Provide a default definition
11843 (for alpha-dec-osf4.0f). Fix typos.
11845 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11847 * linux-proc.c: Add include of regcache.h.
11848 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11850 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11852 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11853 * memattr.c (create_mem_region): Disallow useless empty region.
11854 Regions are half-open intervals, so allow [A..B) [B..C) as
11857 2002-02-13 Michael Chastain <mec@shout.net>
11859 * defs.h: Kill CONST_PTR.
11860 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11861 * c-lang.c (c_builtin_types): Likewise.
11862 * ch-lang.c (ch_builtin_types): Likewise.
11863 * f-lang.c (f_builtin_types): Likewise.
11864 * language.c (unknown_builtin_types): Likewise.
11865 * m2-lang.c (m2_builtin_types): Likewise.
11866 * p-lang.c (pascal_builtin_types): Likewise.
11867 * scm-lang.c (c_builtin_types): Likewise.
11869 2002-02-13 Keith Seitz <keiths@redhat.com>
11871 * arm-tdep.h (arm_get_next_pc): Add declaration.
11873 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11875 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11876 with other related struct-returning functions.
11877 (arm_extract_struct_value_address): New function.
11878 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11879 initialize float_format, double_format and long_double_format as
11880 appropriate to the endianness of the target.
11881 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11882 (arm_use_struct_convention): Delete declaration.
11883 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11885 2002-02-13 Keith Seitz <keiths@redhat.com>
11887 * defs.h (core_addr_to_string_nz): New function.
11889 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11891 Apply missing bits of 2002-01-15 patch.
11892 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11893 (fill_fpregset): Use i387_fill_fsave.
11895 2002-02-12 Keith Seitz <keiths@redhat.com>
11897 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11898 (core_addr_to_string_nz): New function.
11900 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11902 * arm-linux-nat.c: Really include arm-tdep.h.
11903 * config/arm/tm-linux.h (struct type, struct value): Declare.
11905 2002-02-11 Michael Snyder <msnyder@redhat.com>
11907 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11908 (gcore section): Ifdef for Solaris and Unixware only.
11909 (procfs_do_thread_registers): Unixware needs one lwpstatus
11910 per thread (not one prstatus or pstatus).
11911 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11912 not over all gdb threads. For unixware, call elfcore_write_pstatus
11913 once before iterating over threads.
11915 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11917 * arm-tdep.h: New file.
11918 * arm-tdep.c: Include arm-tdep.h.
11919 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11920 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11921 (arm_print_float_info, arm_register_type, convert_to_extended)
11922 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11923 (arm_extract_return_value, arm_register_name): Make static.
11924 (arm_software_single_step): Similarly. Fix types in declaration.
11925 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11926 (arm_store_return_value, arm_store_struct_return): New functions.
11927 (arm_gdbarch_init): Register the above functions. Also register
11928 call_dummy_start_offset, sizeof_call_dummy_words,
11929 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11930 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11931 max_register_virtual_size, register_size. Set up
11932 prologue_cache.saved_regs here, rather than ...
11933 (_initialize_arm_tdep): ... here.
11934 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11936 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11937 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11938 (arm_print_float_info, arm_register_type, convert_to_extended)
11939 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11940 (arm_extract_return_value, arm_register_name): Delete declarations.
11941 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11942 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11943 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11944 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11945 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11946 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11947 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11948 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11949 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11950 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11951 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11952 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11954 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11955 * remote-rdi.c remote-rdp.c: Likewise.
11956 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11957 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11958 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11961 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11962 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11963 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11964 from non-ARM_ prefixed definitions.
11965 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11967 * remote-rdi.c remote-rdp.c: Likewise.
11968 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11970 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11972 * arm-tdep.c (arm_frameless_function_invocation)
11973 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11974 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11975 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11976 (arm_pop_frame, arm_get_next_pc): Make static.
11977 (arm_gdbarch_init): Register above in gdbarch structure.
11978 (arm_read_fp): Renamed from arm_target_read_fp.
11979 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11980 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11981 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11982 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11983 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11984 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11985 (arm_pc_is_thumb_dummy): Delete declarations.
11986 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11987 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11988 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11989 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11991 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11993 * symtab.c (compare_search_syms): New function.
11994 (sort_search_symbols): New function.
11995 (search_symbols): Sort symbols after searching rather than
11998 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12000 * NEWS: Linux -> GNU/Linux.
12002 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12004 * gdbarch.sh: For for level one methods, disallow a definition
12005 when partially multi-arched. Add comments explaining rationale.
12006 * gdbarch.h: Re-generate.
12008 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12010 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12011 multi-arch partial.
12013 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12015 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12016 field. Use diff -u.
12017 * gdbarch.c: Re-generate.
12019 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12021 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12022 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12025 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12027 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12028 multi-arch partial.
12029 (PUSH_ARGUMENTS): Switch to using predefault.
12030 * gdbarch.c: Regenerate.
12032 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12034 * valops.c (PUSH_ARGUMENTS): Delete definition.
12035 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12036 partial. Default to default_push_arguments.
12037 * gdbarch.h, gdbarch.c: Regenerate.
12039 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12041 * defs.h (throw_exception): Rename return_to_top_level. Update
12043 * utils.c (error_stream, internal_verror, quit): Ditto.
12044 * top.c (throw_exception, catcher): Ditto.
12045 * sparclet-rom.c (sparclet_load): Ditto.
12046 * remote.c (interrupt_query, minitelnet): Ditto.
12047 * remote-sds.c (interrupt_query): Ditto.
12048 * remote-mips.c (mips_error, mips_kill): Ditto.
12049 * ocd.c (interrupt_query): Ditto.
12050 * monitor.c (monitor_interrupt_query): Ditto.
12051 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12052 * target.h: Update comment.
12054 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12056 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12058 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12059 default_double_format.
12060 * gdbarch.h, gdbarch.c: Re-generate.
12061 * findvar.c (floatformat_unknown): Delete variable definition.
12062 * doublest.h (floatformat_unknown): Delete variable declaration.
12064 2002-02-09 Jim Blandy <jimb@redhat.com>
12066 * stabsread.c (read_type): Add code to parse Sun's syntax for
12067 prototyped function types.
12069 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12071 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12072 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12074 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12076 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12077 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12078 now _initialize_xcoffsolib gets called again and overrides the
12079 commands from solib.c in a native configuration.
12081 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12083 * doublest.c (store_typed_floating): Don't try to return a value.
12086 2002-02-08 Jim Blandy <jimb@redhat.com>
12088 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12089 is prototyped and has no arguments, print its argument list as
12092 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12094 * MAINTAINERS (write-after-approval): Add myself.
12095 (paper-trail): I've escaped!
12097 2002-02-08 Christopher Faylor <cgf@redhat.com>
12099 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12101 (_initialize_check_for_gdb_ini): Ditto.
12103 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12105 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12106 xaprintf -> xasprintf.
12108 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12110 * win32-nat.c: Remove use of printf and sprintf functions.
12112 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12114 * arm-tdep.c (arm_frame_chain_valid): Make static.
12115 (arm_push_arguments): Likewise.
12116 (arm_gdbarch_init): New function.
12117 (_initialize_arm_tdep): Call it.
12118 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12119 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12120 (FRAME_CHAIN_VALID): Delete.
12121 (arm_frame_chain_valid): Delete declaration.
12122 (PUSH_ARGUMENTS): Delete.
12123 (arm_push_arguments): Delete declaration.
12124 (CALL_DUMMY_P): Delete.
12126 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12127 Corinna Vinschen <vinschen@redhat.com>
12129 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12130 on builtin float types.
12132 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12134 * utils.c: Include <curses.h> before "bfd.h".
12135 * tui/tui-hooks.c: Likewise.
12136 * tui/tui.c: Likewise.
12137 * tui/tuiCommand.c: Likewise.
12138 * tui/tuiData.c: Likewise.
12139 * tui/tuiDataWin.c: Likewise.
12140 * tui/tuiDisassem.c: Likewise.
12141 * tui/tuiGeneralWin.c: Likewise.
12142 * tui/tuiIO.c: Likewise.
12143 * tui/tuiLayout.c: Likewise.
12144 * tui/tuiRegs.c: Likewise.
12145 * tui/tuiSource.c: Likewise.
12146 * tui/tuiSourceWin.c: Likewise.
12147 * tui/tuiStack.c: Likewise.
12148 * tui/tuiWin.c: Likewise.
12150 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12152 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12153 to include space for pseudoregs as well. Update loops accordingly.
12154 (sh_fp_frame_init_saved_regs): Ditto.
12155 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12157 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12159 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12160 Add Richard Earnshaw to Arm maintainers.
12162 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12164 * defs.h (warning_begin): Delete declaration.
12166 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12169 2002-02-07 Michael Snyder <msnyder@redhat.com>
12171 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12172 Logic bug, remove misplaced else.
12174 2002-02-07 Klee Dienes <klee@apple.com>
12176 * fork-inferior.c (fork_inferior): Add '!' to the list of
12177 characters that need to be quoted when building a string for the
12178 shell. Quote '!' specifically with a backslash, since CSH chokes
12179 when trying to evaluate "str!str".
12181 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12183 * rdi-share/host.h: Only provide a typedef for bool if it is not
12186 2002-02-04 Michael Snyder <msnyder@redhat.com>
12188 * breakpoint.h (enum bptype): Add new overlay event bp type.
12189 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12191 * breakpoint.c (create_internal_breakpoint): New function.
12192 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12193 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12194 (create_thread_event_breakpoint): Ditto.
12195 (create_solib_event_breakpoint): Ditto.
12196 (create_overlay_event_breakpoint): New function.
12197 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12198 (update_breakpoints_after_exec): Delete and re-initialize
12199 overlay event breakpoints after an exec. Add FIXME comment
12200 about longjmp breakpoint.
12201 (print_it_typical): Ignore overlay event breakpoints.
12202 (print_one_breakpoint): Ditto.
12204 (bpstat_what): Do not stop for overlay event breakpoints.
12205 (delete_breakpoint): Don't delete overlay event breakpoints.
12206 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12207 (breakpoint_re_set): Re-create overlay event breakpoint.
12209 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12210 (overlay_manual_command): Disable overlay breakpoints.
12211 (overlay_off_command): Disable overlay breakpoints.
12213 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12215 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12216 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12217 to here from config/tm-arm.h.
12218 (coff_sym_is_thumb): Make static.
12219 (arm_elf_make_msymbol_special): New function.
12220 (arm_coff_make_msymbol_special): New function.
12221 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12222 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12223 (coff_sym_is_thumb): Delete declaration.
12224 (arm_elf_make_msymbol_special): Declare.
12225 (arm_coff_make_msymbol_special): Declare.
12226 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12227 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12229 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12231 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12233 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12235 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12236 * gdbarch.c gdbarch.h: Regenerate.
12237 * arch-utils.c (default_print_float_info): New function.
12238 * arch-utils.h (default_print_float_info): Prototype it.
12239 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12240 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12241 (PRINT_FLOAT_INFO): Document it.
12243 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12244 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12245 (PRINT_FLOAT_INFO): Define.
12247 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12249 * win32-nat.c (_initialize_check_for_gdb_ini):
12250 Add typecast to sprintf argument to suppress a warning.
12252 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12254 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12255 to allow easier handling of pass state.
12256 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12257 that gives exception name and address.
12258 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12259 and set last_sig value to ourstatus->value.sig. Some missing
12261 (child_continue): Correctly report continue_status.
12262 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12263 TARGET_SIGNAL_0 (new default value).
12264 (child_resume): consider sig argument passed to decide if
12265 the exception should be passed to debuggee or not.
12267 2002-02-05 Michael Snyder <msnyder@redhat.com>
12269 * regcache.c (fetch_register): Call target_fetch_register
12270 only if we don't call FETCH_PSEUDO_REGISTER.
12271 (store_register): Call target_store_register only if we
12272 don't call STORE_PSEUDO_REGISTER.
12274 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12276 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12277 ELF_MAKE_MSYMBOL_SPECIAL.
12278 * gdbarch.c, gdbarch.h: Regenerate.
12279 * arch-utils.c (default_make_msymbol_special): New function.
12280 * arch-utils.h (default_make_msymbol_special): Export.
12281 * elfread.c (elf_symtab_read): Compile use of
12282 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12284 * coffread.c (coff_symtab_read): Ditto, for
12285 COFF_MAKE_MSYMBOL_SPECIAL.
12287 2002-02-05 Jim Blandy <jimb@redhat.com>
12289 * solib-svr4.c (svr4_truncate_ptr): New function.
12290 (svr4_relocate_section_addresses): Do the address arithmetic with
12291 the appropriate truncation for target addresses, even when
12292 CORE_ADDR is larger than a target address.
12294 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12296 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12299 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12301 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12304 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12306 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12308 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12310 * gdbserver/linux-low.c: Remove unused include files.
12312 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12314 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12315 (read_inferior_memory): Use it.
12316 (write_inferior_memory): Likewise.
12318 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12320 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12321 grubbing through sys_errlist.
12323 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12325 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12327 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12328 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12330 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12332 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12333 (do_sfunc, set_cmd_sfunc): New functions.
12335 * command.h (struct cmd_list_element): Add field func.
12336 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12337 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12338 * cli/cli-decode.h: Ditto.
12340 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12341 (help_all, help_cmd_list): Ditto.
12342 (find_cmd, complete_on_cmdlist): Ditto.
12343 * top.c (execute_command): Ditto.
12345 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12348 * infcmd.c (notice_args_read): Fix function signature.
12350 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12351 * cli/cli-decode.c (add_set_cmd): Ditto.
12352 * utils.c (initialize_utils): Ditto.
12353 * maint.c (_initialize_maint_cmds): Ditto.
12354 * infrun.c (_initialize_infrun): Ditto.
12355 * demangle.c (_initialize_demangler): Ditto.
12356 * remote.c (add_packet_config_cmd): Ditto.
12357 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12358 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12359 * proc-api.c (_initialize_proc_api): Ditto.
12360 * kod.c (_initialize_kod): Ditto.
12361 * valprint.c (_initialize_valprint): Ditto.
12362 * top.c (init_main): Ditto.
12363 * infcmd.c (_initialize_infcmd): Ditto.
12364 * corefile.c (_initialize_core): Ditto.
12365 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12366 * arch-utils.c (initialize_current_architecture): Ditto.
12367 (_initialize_gdbarch_utils): Ditto.
12368 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12370 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12371 * wince.c (_initialize_inftarg): Ditto.
12372 * symfile.c (_initialize_symfile): Ditto.
12373 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12374 * language.c (_initialize_language): Ditto.
12375 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12377 2002-02-04 Michael Snyder <msnyder@redhat.com>
12379 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12381 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12383 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12384 Add rules for building the register data files.
12386 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12388 * regformats/regdat.sh: Add braces to the definition of
12389 expedite_regs_${arch}.
12391 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12393 * regformats/regdef.h (struct reg): Add comment describing the
12394 requirements for offset and size fields.
12396 2002-02-04 Andreas Schwab <schwab@suse.de>
12398 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12399 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12401 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12403 * gdbarch.sh (copyright): Update years in generated header.
12404 (SMASH_TEXT_ADDRESS): Add rule.
12405 * gdbarch.h, gdbarch.c: Re-generate.
12406 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12407 * dbxread.c: Likewise.
12408 * dwarfread.c: Likewise.
12409 * elfread.c: Likewise.
12410 * somread.c: Likewise.
12412 * arm-tdep.c (arm_smash_text_address): New function.
12413 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12415 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12417 Add support for hardware watchpoints on win32 native.
12418 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12419 CONTEXT_DEBUG_REGISTERS.
12420 (dr variable): New variable. Static array containing a local copy
12421 of debug registers.
12422 (debug_registers_changed): New variable. Reflects when debug registers
12423 are changed and need to be written to inferior.
12424 (debug_registers_used): New variable. Reflects when any debug register
12425 was set, used when new threads are created.
12426 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12428 (thread_rec): Set dr array if id is the thread of current_event .
12429 (child_continue, child_resume): Change the debug registers for all
12430 threads if debug_registers_changed.
12431 (child_add_thread): Change the debug registers if debug_registers_used.
12432 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12433 Link nm.h to new nm-cygwin.h file.
12434 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12435 of hardware registers.
12437 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12439 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12440 Restore behavour broken by 2002-01-20 Andrew Cagney
12441 <ac131313@redhat.com> IEEE_FLOAT removal.
12443 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12445 * c-valprint.c (c_val_print): Pass a proper valaddr to
12446 cp_print_class_method.
12447 * valops.c (search_struct_method): If there is only one method
12448 and args is NULL, return that method.
12450 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12452 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12453 accessing tag_name directly.
12455 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12457 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12458 of accessing tag_name directly.
12460 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12463 * gdbtypes.c (replace_type): New function.
12464 * gdbtypes.h (replace_type): Add prototype.
12465 * stabsread.c (read_type): Use replace_type.
12467 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12469 * Makefile.in (memattr.o): Add missing dependencies rule.
12471 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12473 * breakpoint.c (break_at_finish_command): Really export.
12474 (break_at_finish_at_depth_command): Ditto.
12475 (tbreak_at_finish_command): Ditto.
12476 * hppa-tdep.c: Include completer.h.
12477 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12478 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12480 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12482 * utils.c (do_write): New function.
12483 (error_stream): Rewrite combining the code from error_begin and
12485 (verror): Rewrite using error_stream.
12486 (error_begin): Delete function.
12488 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12490 * utils.c (error_begin): Make static.
12491 * defs.h (error_begin): Delete declaration.
12493 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12494 (decode_line_1): Use cplusplus_error instead of error_begin,
12495 cplusplus_hint and return_to_top_level.
12496 * coffread.c (coff_symfile_read): Use error instead of error_begin
12497 and return_to_top_level.
12498 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12500 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12502 * language.h (type_error, range_error): Make string parameter
12504 * language.c (warning_pre_print): Delete extern declaration.
12505 * dwarfread.c (warning_pre_print): Ditto.
12506 * language.c (type_error, range_error): Rewrite to use verror and
12507 vwarning instead of warning_begin.
12509 2002-02-01 Michael Snyder <msnyder@redhat.com>
12511 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12512 (set_ignore_count): Move misplaced comment back where it belongs.
12514 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12516 * command.h (NO_FUNCTION): Delete macro.
12517 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12518 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12519 * tracepoint.c (_initialize_tracepoint): Ditto.
12520 * cli/cli-decode.c (add_set_cmd): Ditto.
12521 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12523 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12525 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12526 Update ``this'' pointer when calling virtual functions.
12528 2002-02-01 Michael Snyder <msnyder@redhat.com>
12530 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12531 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12533 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12535 * regformats/reg-arm.dat: New file.
12536 * regformats/reg-i386.dat: New file.
12537 * regformats/reg-ia64.dat: New file.
12538 * regformats/reg-m68k.dat: New file.
12539 * regformats/reg-mips.dat: New file.
12540 * regformats/reg-ppc.dat: New file.
12541 * regformats/reg-sh.dat: New file.
12542 * regformats/regdef.h: New file.
12543 * regformats/regdat.sh: New file.
12545 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12547 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12548 (arm_frame_args_address, arm_frame_locals_address): New functions.
12549 (arm_frame_num_args): New function.
12550 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12551 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12552 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12554 2002-01-31 Michael Snyder <msnyder@redhat.com>
12556 * breakpoint.c (break_at_finish_command): Export.
12557 (break_at_finish_at_depth_command): Export.
12558 (tbreak_at_finish_command): Export.
12559 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12560 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12561 "txbreak" commands, which are HPPA specific.
12563 * printcmd.c (disassemble_command): Remove an ancient
12564 artifact of an old merge.
12566 * symfile.h (enum overlay_debugging_state):
12567 Define enum constant values for overlay mode.
12568 * symfile.c (overlay_debugging): Use enums instead of literals.
12569 (overlay_is_mapped, overlay_auto_command,
12570 overlay_manual_command): Ditto.
12572 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12573 breakpoint_here_p, breakpoint_inserted_here_p,
12574 breakpoint_thread_match, bpstat_stop_status,
12575 describe_other_breakpoints, check_duplicates, clear_command):
12576 Coding standard fixes.
12578 * target.c (target_xfer_memory): Add spaces, coding standard.
12579 (do_xfer_memory): Add missing line to trust-readonly
12580 code: check bfd SEC_READONLY flag for section.
12582 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12584 * PROBLEMS: Fix typo, 5.1->5.1.1.
12586 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12588 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12589 data symbols, since we search based on textlow and texthigh.
12590 (find_pc_sect_symtab): Likewise.
12592 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12594 * defs.h (vwarning): Declare.
12595 * utils.c (vwarning): New function.
12596 (warning): Call vwarning.
12597 (warning_begin): Delete function.
12599 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12600 the warning message.
12601 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12604 2002-01-30 Michael Snyder <msnyder@redhat.com>
12606 * NEWS: Mention "set trust-readonly-sections" command.
12607 Mention generate-core-file command.
12609 2002-01-15 Michael Snyder <msnyder@redhat.com>
12611 * target.c: New command, "set trust-readonly-sections on".
12612 (do_xfer_memory): Honor the suggestion to trust readonly sections
12613 by reading them from the object file instead of from the target.
12614 (initialize_targets): Register command "set trust-readonly-sections".
12616 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12618 * parse.c (target_map_name_to_register): Simplify, search regs and
12619 pseudo-regs using a single loop.
12621 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12623 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12625 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12627 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12628 * config/i386/i386v42mp.mh: Add i387-nat.o .
12629 * i386v4-nat.c: Include i387-nat.h.
12630 (supply_fpregset): Use i387_supply_fsave.
12631 (fill_fpregset): Use i387_fill_fsave.
12633 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12635 * arm-tdep.c (arm_call_dummy_words): Define.
12636 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12637 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12638 (CALL_DUMMY_WORDS): Define.
12639 (arm_call_dummy_words): Declare.
12640 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12641 (arm_linux_call_dummy_words): Declare.
12643 2002-01-30 Andreas Schwab <schwab@suse.de>
12645 * m68klinux-nat.c: Fix last change to use regcache_collect
12646 instead of referencing registers[] directly.
12648 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12650 * parse.c (target_map_name_to_register): Delete code wrapped in
12651 #ifdef REGISTER_NAME_ALIAS_HOOK.
12653 2002-01-28 Michael Snyder <msnyder@redhat.com>
12655 * regcache.c (legacy_read_register_gen): Need to be able to
12656 read pseudo-register as well as real register.
12657 (legacy_write_register_gen): Ditto.
12659 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12661 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12662 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12663 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12664 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12665 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12666 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12667 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12668 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12669 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12670 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12671 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12672 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12673 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12674 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12675 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12676 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12677 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12678 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12679 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12680 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12682 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12684 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12685 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12686 (initialize_current_architecture): Update target_byte_order using
12687 information from BFD.
12688 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12689 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12691 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12693 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12694 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12696 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12697 #ifdef INVALID_FLOAT.
12698 * infcmd.c (do_registers_info): Ditto.
12699 * values.c (unpack_double): Ditto. Add comment.
12701 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12702 already commented out.
12704 2002-01-26 Andreas Schwab <schwab@suse.de>
12706 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12707 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12708 registers and add support for PTRACE_GETREGS.
12710 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12712 GDB 5.1.1 released from 5.1 branch.
12713 * NEWS: Add 5.1.1 news.
12714 * README: Sync with 5.1 branch.
12716 2002-01-23 Fred Fish <fnf@redhat.com>
12718 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12719 stabstring on initial malloc. Reallocing will copy it for us,
12722 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12724 * Makefile.in (hpread_h): Delete.
12725 (HFILES_NO_SRCDIR): Remove hpread.h.
12726 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12727 (hpread.o): Update dependencies.
12728 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12730 * hp-psymtab-read.c: Remove file.
12731 * hp-symtab-read.c: Remove file.
12732 * hpread.h: Remove file.
12734 * hpread.c: Merge all contents of hp-psymtab-read.c,
12735 hp-symtab-read.c and hpread.h into this file, as it was prior to
12738 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12739 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12740 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12741 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12743 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12745 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12746 fill_gregset): Call gdbarch_tdep() just once, assign result to
12747 variable and use that, instead of calling the function several
12750 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12752 * configure.host: Accept sparcv9 as alias for sparc64.
12753 * configure.tgt: Likewise.
12755 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12757 * solib-aix5.c (build_so_list_from_mapfile)
12758 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12759 arguments is not reversed.
12760 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12761 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12763 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12765 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12766 modified version of obsolete sh_fetch_pseudo_register.
12767 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12768 (sh4_register_read): New function.
12769 (sh_pseudo_register_write): New function. Renamed and modified
12770 version of obsolete sh_store_pseudo_register.
12771 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12772 (sh4_register_write): New function.
12773 (sh_gdbarch_init): Remove setting of gdbarch function
12774 fetch_pseudo_register and store_pseudo_register. Remove setting of
12775 register_convert_to_raw, register_convert_to_virtual,
12776 register_convertible.
12777 (sh_sh4_register_convertible): Delete. No longer needed. All is
12778 taken care by architecture specific functions
12779 register_read/register_write.
12780 (sh_sh4_register_convert_to_virtual): Make static.
12781 (sh_sh4_register_convert_to_raw): Ditto.
12783 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12785 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12786 (floatformat_is_nan, floatformat_mantissa): Ditto.
12788 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12789 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12790 builtin_type_ieee_double_little,
12791 builtin_type_ieee_double_littlebyte_bigword,
12792 builtin_type_m68881_ext, builtin_type_i960_ext,
12793 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12794 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12795 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12796 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12798 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12800 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12801 parameter. Set frameless flag if it exists and depended of
12802 whether the scanned function is frameless or not.
12803 (xstormy16_skip_prologue): If function is frameless, return
12804 result of xstormy16_scan_prologue().
12805 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12808 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12810 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12811 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12812 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12813 sh_sh4_register_byte, sh_sh4_register_raw_size,
12814 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12815 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12816 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12817 sh_store_pseudo_register, sh_do_pseudo_register): Call
12818 gdbarch_tdep() just once, assign result to variable and use that,
12819 instead of calling the function several times.
12821 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12823 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12824 macros instead of LAST_FPU_CTRL_REGNUM.
12825 (store_register): Likewise.
12827 2002-01-21 Jim Blandy <jimb@redhat.com>
12829 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12830 is up-to-date before running the program, not just when a program
12833 2002-01-21 Fred Fish <fnf@redhat.com>
12835 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12836 when we have found all instructions we are looking for.
12838 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12840 * arm-tdep.c (arm_register_name): New function.
12841 (arm_registers_names): Make static.
12842 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12843 (arm_register_name): Declare.
12844 (REGISTER_NAME): Use it.
12846 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12847 Kevin Buettner <kevinb@redhat.com>
12849 Convert arm targets to new FRAME interface.
12850 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12851 (arm_frame_find_save_regs): Delete.
12852 (arm_frame_init_saved_regs): New.
12853 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12854 Allocate extra_info as required. Convert all uses of fsr.regs
12855 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12857 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12858 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12859 (check_prologue_cache, save_prologue_cache): Likewise.
12860 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12861 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12862 (FRAME_FIND_SAVED_REGS): Delete.
12863 (arm_frame_find_saved_regs): Delete prototype.
12864 (arm_frame_init_saved_regs): New prototype.
12865 (FRAME_INIT_SAVED_REGS): Define.
12867 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12869 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12871 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12873 From Jeff Law <law@redhat.com>:
12874 * infttrace.c: Include <sys/pstat.h>.
12875 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12876 exec file if the ttrace equivalent fails.
12878 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12880 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12881 (closeLogFile): Ditto.
12883 2002-01-20 Michael Chastain <mec@shout.net>
12885 * top.c (print_gdb_version): Bump copyright year to 2002.
12887 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12889 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12890 Zannoni and Eli Zaretskii.
12892 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12894 * buildsym.c: Update copyright years.
12895 * c-typeprint.c: Likewise.
12896 * dwarf2read.c: Likewise.
12897 * f-typeprint.c: Likewise.
12898 * gdbtypes.c: Likewise.
12899 * gdbtypes.h: Likewise.
12900 * hp-symtab-read.c: Likewise.
12901 * hpread.c: Likewise.
12902 * mdebugread.c: Likewise.
12903 * p-typeprint.c: Likewise.
12905 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12907 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12908 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12909 byte-order selectable.
12910 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12911 * arch-utils.c: Ditto.
12912 (set_endian): Ditto.
12913 (set_endian_from_file): Ditto.
12914 * gdbserver/low-sim.c (create_inferior): Ditto.
12915 * gdbarch.sh: Ditto.
12916 * gdbarch.h: Re-generate.
12917 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12918 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12919 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12920 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12921 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12922 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12923 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12924 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12926 * config/mips/tm-wince.h: Remove #undef of macro
12927 TARGET_BYTE_ORDER_SELECTABLE.
12928 * config/sh/tm-wince.h: Ditto.
12930 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12932 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12933 member function fields. Add accessor macro
12934 TYPE_FN_FIELD_ARTIFICIAL.
12935 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12936 * c-typeprint.c (c_type_print_base): Skip artificial member
12939 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12941 * f-typeprint.c: Delete unused function f_type_print_args.
12942 * p-typeprint.c: Delete unused function pascal_type_print_args.
12944 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12946 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12947 comment. Add ``artificial'' to ``union field_location''.
12949 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12951 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12952 * mdebugread.c (parse_symbol): Likewise.
12953 * stabsread.c (define_symbol): Likewise.
12954 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12955 initializing TYPE_FIELD_BITPOS to n (obsolete).
12956 (hpread_doc_function_type): Likewise.
12957 * hpread.c (hpread_function_type): Likewise.
12959 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12961 * configure.in (host_makefile_frag): Only require a host makefile
12962 fragment when a native build.
12963 * configure: Re-generate.
12965 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12967 * doublest.h (floatformat_from_type): Declare.
12968 * doublest.c (floatformat_from_type): New function.
12969 (convert_typed_floating): Use.
12971 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12972 call to function floatformat_from_type.
12974 * gdbarch.sh (IEEE_FLOAT): Delete.
12975 * gdbarch.h, gdbarch.c: Re-generate.
12976 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12977 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12978 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12979 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12980 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12981 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12982 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12983 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12984 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12985 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12986 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12987 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12989 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12990 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12991 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12992 * sh-tdep.c (sh_gdbarch_init): Ditto.
12993 * mips-tdep.c (mips_gdbarch_init): Ditto.
12994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12995 * cris-tdep.c (cris_gdbarch_init): Ditto.
12997 2002-01-20 Jiri Smid <smid@suse.cz>
12999 * configure.host, configure.tgt: Support x86-64.
13000 * NEWS: Note new target x86-64.
13002 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13003 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13004 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13005 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13006 x86-64-linux-nat.o): Fix dependencies.
13008 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13010 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13011 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13012 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13013 * config/sparc/xm-sun4os4.h: Delete file.
13014 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13016 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13018 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13019 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13020 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13021 * config/i386/i386lynx.mh (XM_FILE): Delete.
13022 * config/rs6000/xm-rs6000ly.h: Delete file.
13023 * config/sparc/xm-sparclynx.h: Delete file.
13024 * config/m68k/xm-m68klynx.h: Delete file.
13025 * config/i386/xm-i386lynx.h: Delete file.
13026 * config/xm-lynx.h: Delete file.
13027 * config/djgpp/fnchange.lst: Update.
13029 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13031 * alpha-tdep.c (alpha_register_byte): New function.
13032 (alpha_register_raw_size): Ditto.
13033 (alpha_register_virtual_size): Ditto.
13034 (alpha_skip_prologue_internal): Renamed from
13035 alpha_skip_prologue.
13036 (alpha_skip_prologue): New version that calls
13037 alpha_skip_prologue_internal.
13038 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13039 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13040 second argument from alpha_skip_prologue.
13041 (REGISTER_BYTE): Use alpha_register_byte.
13042 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13043 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13044 (FRAMELESS_FUNCTION_INVOCATION): Use
13045 generic_frameless_function_invocation_not.
13046 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13047 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13049 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13051 * config/mips/xm-news-mips.h: Delete file.
13052 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13054 * config/m88k/xm-m88k.h: Delete file.
13055 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13056 * config/m88k/xm-delta88v4.h: Ditto.
13057 * config/m88k/xm-delta88.h: Ditto.
13059 * config/alpha/xm-fbsd.h: Delete file.
13060 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13062 * config/sparc/xm-sparc.h: Delete file.
13063 * Makefile.in (xm-sun4os4.h): Delete dependency.
13064 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13065 * config/sparc/xm-sun4os4.h: Ditto.
13066 * config/sparc/xm-linux.h: Ditto.
13068 * config/i386/xm-windows.h: Delete file.
13070 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13072 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13073 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13075 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13077 * alpha-tdep.c (alpha_call_dummy_words): New.
13078 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13079 (CALL_DUMMY_P): Define.
13080 (CALL_DUMMY_WORDS): Define.
13081 (SIZEOF_CALL_DUMMY_WORDS): Define.
13083 2002-01-19 Per Bothner <per@bothner.com>
13085 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13086 isn't NULL, which can happen with some gcj-3.x-produced code.
13088 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13090 * alpha-tdep.c (alpha_register_virtual_type): New function.
13091 (alpha_init_frame_pc_first): Ditto.
13092 (alpha_fix_call_dummy): Ditto.
13093 (alpha_store_struct_return): Ditto.
13094 (alpha_extract_struct_value_address): Ditto.
13095 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13096 alpha_register_virtual_type.
13097 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13098 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13099 alpha_extract_struct_value_address.
13100 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13101 (INIT_FRAME_PC): Use init_frame_pc_noop.
13102 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13104 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13106 * i386gnu-nat.c: Include "i386-tdep.h".
13107 (fetch_fpregs): Simplify code dealing with uninitialized floating
13108 point states such that it doesn't require FP7_REGNUM.
13110 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13112 * alpha-tdep.c (frame_extra_info): New.
13113 (alpha_find_saved_regs): Make static. Use
13115 (alpha_frame_init_saved_regs): New function.
13116 (alpha_frame_saved_pc): Use frame->extra_info.
13117 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13118 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13119 (init_extra_frame_info): Rename to...
13120 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13121 (alpha_print_extra_frame_info): New function.
13122 (alpha_frame_locals_address): Ditto.
13123 (alpha_frame_args_address): Ditto.
13124 (alpha_pop_frame): Use frame->extra_info.
13125 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13126 alpha_frame_args_address.
13127 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13128 (alpha_find_saved_regs): Remove prototype.
13129 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13130 (EXTRA_FRAME_INFO): Remove.
13131 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13132 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13134 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13136 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13137 (alpha_cannot_fetch_register): Ditto.
13138 (alpha_cannot_store_register): Ditto.
13139 (alpha_register_convertible): Ditto.
13140 (alpha_use_struct_convention): Ditto.
13141 * config/alpha/tm-alpha.h: Update copyright years.
13142 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13143 (INNER_THAN): Use core_addr_lessthan.
13144 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13145 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13146 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13147 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13148 (FRAME_CHAIN): Remove unnecessary cast.
13150 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13152 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13155 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13157 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13158 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13159 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13160 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13161 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13162 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13163 * x86-64-linux-nat.c: Ditto.
13165 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13167 * alpha-tdep.c (alpha_register_name): New function.
13168 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13169 (REGISTER_NAME): Define.
13171 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13173 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13175 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13177 * alpha-tdep.c: Update copyright years.
13178 (alpha_next_pc): New function.
13179 (alpha_software_single_step): Ditto.
13180 * config/alpha/tm-alpha.h: Add prototype for
13181 alpha_software_single_step.
13183 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13185 * alphabsd-nat.c: Update copyright years.
13186 (fill_gregset): Use regcache_collect.
13187 (fill_fpregset): Likewise.
13188 (fetch_inferior_registers): Only fetch integer registers
13189 if requested to do so.
13190 (store_inferior_registers): Only store integer registers
13191 if requested to do so.
13193 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13195 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13196 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13197 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13198 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13199 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13200 * config/arm/linux.mh (XDEPFILES): Delete.
13201 * config/arm/nbsd.mh (XDEPFILES): Delete.
13202 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13203 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13204 * config/i386/i386m3.mh (XDEPFILES): Delete.
13205 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13206 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13207 * config/i386/fbsd.mh (XDEPFILES): Delete.
13208 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13209 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13210 * config/i386/i386v4.mh (XDEPFILES): Delete.
13211 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13212 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13213 * config/i386/i386aix.mh (XDEPFILES): Delete.
13214 * config/i386/go32.mh (XDEPFILES): Delete.
13215 * config/i386/cygwin.mh (XDEPFILES): Delete.
13216 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13217 * config/i386/i386mach.mh (XDEPFILES): Delete.
13218 * config/i386/i386v32.mh (XDEPFILES): Delete.
13219 * config/i386/linux.mh (XDEPFILES): Delete.
13220 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13221 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13222 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13223 * config/i386/i386sco.mh (XDEPFILES): Delete.
13224 * config/i386/i386v.mh (XDEPFILES): Delete.
13225 * config/i386/nbsd.mh (XDEPFILES): Delete.
13226 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13227 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13228 * config/i386/symmetry.mh (XDEPFILES): Delete.
13229 * config/i386/obsd.mh (XDEPFILES): Delete.
13230 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13231 * config/ia64/linux.mh (XDEPFILES): Delete.
13232 * config/ia64/aix.mh (XDEPFILES): Delete.
13233 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13234 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13235 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13236 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13237 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13238 * config/m68k/linux.mh (XDEPFILES): Delete.
13239 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13240 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13241 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13242 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13243 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13244 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13245 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13246 * config/m88k/delta88.mh (XDEPFILES): Delete.
13247 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13248 * config/m88k/m88k.mh (XDEPFILES): Delete.
13249 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13250 * config/mips/linux.mh (XDEPFILES): Delete.
13251 * config/mips/irix6.mh (XDEPFILES): Delete.
13252 * config/mips/irix5.mh (XDEPFILES): Delete.
13253 * config/mips/irix4.mh (XDEPFILES): Delete.
13254 * config/mips/irix3.mh (XDEPFILES): Delete.
13255 * config/mips/decstation.mh (XDEPFILES): Delete.
13256 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13257 (NATDEPFILES): Move core-aout.o to here.
13258 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13259 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13260 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13261 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13262 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13263 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13264 * config/pa/hpux11.mh (XDEPFILES): Delete.
13265 * config/powerpc/aix.mh (XDEPFILES): Delete.
13266 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13267 * config/powerpc/linux.mh (XDEPFILES): Delete.
13268 * config/romp/rtbsd.mh: Rename XDEPFILES.
13269 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13270 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13271 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13272 * config/s390/s390.mh (XDEPFILES): Delete.
13273 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13274 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13275 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13276 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13277 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13278 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13279 * config/sparc/linux.mh (XDEPFILES): Delete.
13280 * config/vax/vaxult.mh (XDEPFILES): Delete.
13281 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13282 * Makefile.in (DEPFILES): Remove XDEPFILES.
13284 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13286 * utils.c (internal_verror): Fix comments, default is yes not no.
13287 Update queries to match. Default to quit and dump core.
13289 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13291 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13293 * defs.h, event-top.c, gdbcmd.h: Ditto.
13294 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13295 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13296 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13297 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13298 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13299 * mi/mi-main.c:Ditto.
13301 * stack.c, symfile.c: Update copyright.
13303 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13305 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13306 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13307 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13308 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13310 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13312 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13313 * gdbserver/low-lynx.c (myattach): Likewise.
13314 * gdbserver/low-nbsd.c (myattach): Likewise.
13315 * gdbserver/low-sim.c (myattach): Likewise.
13316 * gdbserver/low-sparc.c (myattach): Likewise.
13317 * gdbserver/low-sun3.c (myattach): Likewise.
13319 * gdbserver/low-linux.c (myattach): New function.
13321 * gdbserver/server.c (attach_inferior): New function.
13322 (main): Handle "--attach".
13324 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13326 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13329 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13331 * c-typeprint.c (is_type_conversion_operator): Add additional
13332 check for non-conversion operators.
13334 2002-01-15 Michael Snyder <msnyder@redhat.com>
13336 * linux-proc.c: Add "info proc" command, a la procfs.c.
13337 (read_mapping): New function, abstract and re-use code.
13338 (linux_find_memory_regions): Use new func read_mapping.
13339 (linux_info_proc_cmd): New function, implement "info proc".
13340 (_initialize_linux_proc): Add new command "info proc".
13342 2002-01-15 Michael Snyder <msnyder@redhat.com>
13344 * symfile.c (generic_load): Use bfd_map_over_sections method
13345 instead of manipulating bfd structure members directly.
13346 (add_section_size_callback): New function, bfd sections callback
13347 used by generic_load.
13348 (load_sections_callback): New function, bfd sections callback
13349 used by generic_load.
13351 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13353 [Based on work by Jim Blandy]
13354 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13355 (builtin_type_vec128): Export.
13356 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13358 (builtin_type_vec128): New builtin type for 128 bit vector
13360 (build_gdbtypes): Initialize builtin_type_v16qi and
13361 builtin_type_v8hi. Create the vec128 register builtin type
13363 (build_builtin_type_vec128): New function.
13364 (_initialize_gdbtypes): Register builtin_type_v16qi and
13365 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13366 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13367 AltiVec register to new builtin type.
13369 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13371 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13374 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13376 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13377 CLEAN_UP_REGISTER_VALUE.
13378 * regcache.c (supply_register): Update only call.
13380 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13382 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13383 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13384 a29k-*-vxworks* targets as obsolete.
13386 2002-01-14 Michael Snyder <msnyder@redhat.com>
13388 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13389 until we can resolve portability issues.
13390 * gregset.h: Remove references to fpxregs.
13391 * gcore.c (gcore_command): Initialize note_sec to NULL.
13393 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13395 * signals.c (target_signal_to_name): Rewrite. Only use
13396 signals[].name when in bounds and non-NULL.
13398 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13400 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13401 * signals.c (target_signal_to_name): Verify that SIG is within the
13402 bounds of the signals array.
13404 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13406 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13408 2002-01-13 Keith Seitz <keiths@redhat.com>
13410 * stack.c (print_frame_info_base): Print the frame's pc
13411 only if when print_frame_info_listing_hook is not defined.
13413 2002-01-13 Keith Seitz <keiths@redhat.com>
13415 * varobj.c (varobj_set_value): Make sure that there were no
13416 errors evaluating the object before attempting to set its
13418 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13419 so this offset adjustment is no longer necessary.
13420 (create_child): Don't set the error flag if the child is
13421 a CPLUS_FAKE_CHILD.
13422 (value_of_child): If value_fetch_lazy fails, return NULL
13423 so that callers will be notified that an error occurred.
13424 (c_value_of_variable): Delay check of variable's validity
13425 until later. We actually want all structs and unions to have
13427 Do not return "???" for variables which could not be evaluated.
13428 This error condition must be returned to the caller so that it
13429 can get the error condition from gdb.
13430 (cplus_name_of_child): Adjust index for vptr before figuring
13431 out the name of the child.
13432 (cplus_value_of_child): If a child's (real) parent is not valid,
13433 don't even bother trying to give a value for it. Just return
13434 an error. Change all instances in this function.
13435 (cplus_type_of_child): If our parent is one of the "fake"
13436 parents, we need to get at the type of the real parent, and
13437 derive the child's true type using this information.
13439 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13441 From 2002-01-09 John Marshall <johnm@falch.net>:
13442 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13443 sources.redhat.com, and tweak some related URLs which had
13444 suffered from linkrot.
13446 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13449 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13450 structures passed in registers.
13452 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13454 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13455 white space which prevented compilation. Reported by DSK
13456 <dsk@student.unsw.edu.au>.
13458 2002-01-11 Michael Snyder <msnyder@redhat.com>
13460 * symfile.c (build_section_addr_info_from_section_tab):
13461 Use bfd access method instead of manipulating bfd directly.
13462 (syms_from_objfile): Ditto.
13463 (simple_overlay_update_1): Ditto.
13464 (simple_overlay_update): Ditto.
13465 (generic_load): Ditto.
13466 (overlay_unmapped_address): FIXME comment, bfd access methods.
13467 (sections_overlap): FIXME comment, bfd access methods.
13468 (pc_in_mapped_range): FIXME comment, bfd access methods.
13469 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13470 (section_is_mapped): FIXME comment, bfd access methods.
13471 (section_is_overlay): FIXME comment, bfd access methods.
13473 * symfile.c (generic_load): Whitespace and long line cleanups.
13474 Remove duplicate variable, change several local variables to
13475 more appropriate data types.
13476 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13478 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13480 From Peter Schauer:
13481 * language.c (longest_local_hex_string_custom): Use phex_nz to
13482 convert NUM to a hex string.
13484 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13486 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13488 Update Copyright year.
13490 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13492 * language.c (longest_raw_hex_string): Delete unused function.
13494 2002-01-11 Petr Sorfa <petrs@caldera.com>
13496 * MAINTAINERS (write-after-approval): Add myself.
13497 * dwarf2read.c (read_tag_string_type): Handling of
13499 (read_tag_string_type): FORTRAN fix to prevent propagation of
13501 (set_cu_language): Handling of DW_LANG_Fortran95
13503 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13505 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13506 GETPID(inferior_ptid).
13507 (store_inferior_registers): Likewise.
13509 2002-01-10 Jason Merrill <jason@redhat.com>
13511 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13514 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13516 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13517 and bfd/elf32-sh-nbsd.c.
13519 2002-01-10 Michael Snyder <msnyder@redhat.com>
13521 * NEWS: Mention --pid and corefile/proc-id behavior change.
13523 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13524 * gcore.c: Include cli/cli-decode.h instead of command.h.
13526 * main.c (captured_main): Add new command line option "--pid".
13527 If the second command line argument (following the symbol-file)
13528 begins with a digit, try to attach to it before trying to open
13530 (print_gdb_help): Document the "--pid" argument.
13532 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13534 * completer.c (command_completer): New function.
13536 * completer.h <command_completer>: Add prototype.
13538 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13539 completer for the "help" command.
13541 2002-01-09 Jason Merrill <jason@redhat.com>
13543 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13545 2002-01-09 Michael Snyder <msnyder@redhat.com>
13547 * i386-linux-nat.c (fill_fpxregset): Make global.
13548 (store_fpxregset): Ditto.
13550 * gregset.h (gdb_fpxregset_t): Define.
13551 (supply_fpxregset): Prototype.
13552 (fill_fpxregset): Prototype.
13554 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13556 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13558 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13559 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13560 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13562 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13564 * MAINTAINERS: Update target maintainer rules so that any
13565 Maintainer can approve a tested patch for a maintenance-only
13568 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13570 * MAINTAINERS (write-after-approval): Add myself.
13572 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13575 2002-01-08 Michael Snyder <msnyder@redhat.com>
13577 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13578 real name of the executable, rather than the /proc name.
13580 2002-01-03 Michael Snyder <msnyder@redhat.com>
13582 Implement a "generate-core-file" command in gdb, save target state.
13583 * gcore.c: New file. Implement new command 'generate-core-file'.
13584 Save a corefile image of the current state of the inferior.
13585 * linux-proc.c: Add linux-specific code for saving corefiles.
13586 * target.h (struct target_ops): Add new target vectors for saving
13587 corefiles; to_find_memory_regions and to_make_corefile_notes.
13588 (target_find_memory_regions): New macro.
13589 (target_make_corefile_notes): New macro.
13590 * target.c (update_current_target): Inherit new target methods.
13591 (dummy_find_memory_regions): New place-holder method.
13592 (dummy_make_corefile_notes): New place-holder method.
13593 (init_dummy_target): Initialize new dummy target vectors.
13594 * exec.c (exec_set_find_memory_regions): New function.
13595 Allow the exec_ops vector for memory regions to be taken over.
13596 (exec_make_note_section): New function, target vector method.
13597 * defs.h (exec_set_find_memory_regions): Export prototype.
13598 * procfs.c (proc_find_memory_regions): New function, corefile method.
13599 (procfs_make_note_section): New function, corefile method.
13600 (init_procfs_ops): Set new target vector pointers.
13601 (find_memory_regions_callback): New function.
13602 (procfs_do_thread_registers): New function.
13603 (procfs_corefile_thread_callback): New function.
13604 * sol-thread.c (sol_find_memory_regions): New function.
13605 (sol_make_note_section): New function.
13606 (init_sol_thread_ops): Initialize new target vectors.
13607 * inftarg.c (inftarg_set_find_memory_regions): New function.
13608 Allow to_find_memory_regions vector to be taken over.
13609 (inftarg_set_make_corefile_notes): New function.
13610 Allow to_make_corefile_notes vector to be taken over.
13611 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13612 interface layer if not target_has_execution (may be a corefile).
13613 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13614 * config/sparc/sun4sol2.mh: Ditto.
13615 * config/alpha/alpha-linux.mh: Ditto.
13616 * config/arm/linux.mh: Ditto.
13617 * config/i386/x86-64linux.mh: Ditto.
13618 * config/ia64/linux.mh: Ditto.
13619 * config/m68k/linux.mh: Ditto.
13620 * config/mips/linux.mh: Ditto.
13621 * config/powerpc/linux.mh: Ditto.
13622 * config/sparc/linux.mh: Ditto.
13624 2002-01-07 Michael Snyder <msnyder@redhat.com>
13626 * arm-linux-nat.c: Remove references to regcache.c internal data
13627 (registers[] and register_valid[]).
13629 2002-01-07 Michael Snyder <msnyder@redhat.com>
13631 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13632 so that attaching to a pid will automatically read the process's
13633 symbol file and shlibs.
13634 * Makefile.in: Add rule for linux-proc.o.
13635 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13636 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13637 * config/arm/linux.mh: Ditto.
13638 * config/i386/linux.mh: Ditto.
13639 * config/i386/x86-64linux.mh: Ditto.
13640 * config/ia64/linux.mh: Ditto.
13641 * config/m68k/linux.mh: Ditto.
13642 * config/mips/linux.mh: Ditto.
13643 * config/powerpc/linux.mh: Ditto.
13644 * config/sparc/linux.mh: Ditto.
13646 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13648 * win32-nat.c: Add i386-tdep.h dependency.
13650 2002-01-07 Michael Snyder <msnyder@redhat.com>
13652 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13653 instead of bfd_get_arch_size. Don't bail out just because
13654 there's no exec_bfd.
13656 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13657 * p-valprint.c (pascal_object_print_value): Ditto.
13658 * somread.c (som_symtab_read): Ditto.
13659 * symfile.c (simple_free_overlay_region_table): Ditto.
13660 * valops.c (value_assign): Ditto.
13662 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13663 use tilde_expand and strerror for opening save-tracepoints file.
13665 * thread-db.c (thread_db_new_objfile): Indendation fix.
13667 * infptrace.c (GDB_MAX_ALLOCA): New define.
13668 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13669 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13670 can be overridden with whatever value is appropriate to the host).
13671 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13672 alloca to allocate potentially large buffer.
13673 * rs6000-nat.c (child_xfer_memory): Ditto.
13674 * symm-nat.c (child_xfer_memory): Ditto.
13675 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13677 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13679 From Nick Clifton <nickc@redhat.com>
13680 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13682 2002-01-07 Michael Snyder <msnyder@redhat.com>
13684 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13685 Don't use exec_bfd if it's NULL.
13687 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13689 * valops.c (value_arg_coerce): Fix formatting.
13691 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13693 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13694 * gnu-nat.c: Ditto.
13696 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13698 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13699 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13700 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13701 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13702 z8k-coff have not been multi-arched. Update z8k-coff build
13705 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13707 * MAINTAINERS: Mark a29k target as obsolete.
13708 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13709 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13711 * NEWS: Note that a29k targets are obsolete.
13712 * a29k-tdep.c: Mark as obsolete.
13713 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13714 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13715 a29k-*-vxworks* targets as obsolete.
13716 * remote-adapt.c: Obsolete.
13717 * remote-eb.c: Obsolete.
13718 * remote-mm.c: Obsolete.
13719 * remote-udi.c: Obsolete.
13720 * config/a29k/a29k-udi.mt: Obsolete.
13721 * config/a29k/a29k.mt: Obsolete.
13722 * config/a29k/tm-a29k.h: Obsolete.
13723 * config/a29k/tm-vx29k.h: Obsolete.
13724 * config/a29k/vx29k.mt: Obsolete.
13726 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13728 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13729 with BFD_ENDIAN_BIG.
13731 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13733 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13734 * configure, config.in: Re-generate.
13735 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13736 * defs.h: Do not include <endian.h>.
13738 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13740 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13741 * config.in: Regenerate.
13742 * configure.in: Update copyright years.
13743 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13744 * configure: Regenerate.
13745 * i386bsd-nat.c: Update copyright years.
13746 (fill_gregset): Use regcache_collect.
13747 (fetch_inferior_registers): Only fetch integer registers
13748 if requested to do so. Add support for XMM registers
13749 using PT_GETXMMREGS.
13750 (store_inferior_registers): Only store integer registers
13751 if requested to do so. Add support for XMM registers
13752 using PT_SETXMMREGS.
13753 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13754 (store_inferior_registers): Remove.
13755 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13756 (fetch_elfcore_registers): New function.
13757 (i386nbsd_elfcore_fns): New.
13758 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13759 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13761 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13762 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13763 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13764 * config/i386/tm-nbsd.h: Update copyright years.
13765 (HAVE_SSE_REGS): Define.
13766 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13767 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13768 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13769 (SIGCONTEXT_PC_OFFSET): Remove.
13770 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13772 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13774 * configure.tgt: Remove powerpc-*-macos* target.
13775 * config/m68k/xm-mpw.h: Delete file.
13776 * config/xm-mpw.h: Delete file.
13777 * ser-mac.c: Delete file.
13778 * mpw-make.sed: Delete file.
13779 * mpw-config.in: Delete file.
13780 * mac-xdep.c: Delete file.
13781 * mac-gdb.r: Delete file.
13782 * mac-defs.h: Delete file.
13783 * mac-nat.c: Delete file.
13784 * config/powerpc/macos.mh: Delete file.
13785 * config/powerpc/macos.mt: Delete file.
13786 * config/powerpc/nm-macos.h: Delete file.
13787 * config/powerpc/tm-macos.h: Delete file.
13788 * source.c (openp, open_source_file): Remove obsolete code.
13789 * top.c (gdb_readline): Ditto.
13790 * utils.c (query): Ditto.
13791 * event-top.c (display_gdb_prompt): Ditto.
13792 * Makefile.in (ser-mac.o): Delete obsolete target.
13795 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13797 * defs.h (BIG_ENDIAN): Delete macro definition.
13798 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13799 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13800 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13801 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13802 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13803 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13804 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13805 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13806 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13807 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13808 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13809 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13810 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13811 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13812 * gdbarch.c: Re-generate.
13814 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13816 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13819 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13821 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13823 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13825 * value.h (value_ptr): Delete typedef.
13827 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13829 * i386nbsd-nat.c: Update copyright years.
13830 Include i386-tdep.h.
13832 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13834 * stabsread.c: Update copyright years.
13836 From Debashis Mahata <debashis.mahata@wipro.com>:
13837 (read_struct_fields): Deal with Sun C compiler erroneous stab
13838 output for structs and unions.
13841 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13843 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13846 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13848 * cp-abi.c: Fix whitespace.
13849 (baseclass_offset): New wrapper function.
13850 * cp-abi.h (baseclass_offset): Add prototype.
13851 (struct cp_abi_ops): Add baseclass_offset pointer.
13853 * valops.c (vb_match): Move to...
13854 * gnu-v2-abi.c (vb_match): here.
13855 * valops.c (baseclass_offset): Move to...
13856 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13858 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13860 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13861 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13862 * hpacc-abi.c (init_hpacc_ops): Likewise.
13864 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13866 * valops.c (find_overload_match): Accept obj as a
13867 reference parameter. Update it before returning.
13868 * value.h (find_overload_match): Update prototype.
13869 * eval.c (evaluate_subexp_standard): Pass object to
13870 find_overload_match by reference.
13872 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13874 * valarith.c: Replace value_ptr with struct value pointer. Remove
13875 register attribute from value declarations.
13878 * scm-lang.c (scm_lookup_name): Ditto.
13880 2002-01-03 Michael Snyder <msnyder@redhat.com>
13882 Abstract the functionality of iterating over mapped memory
13883 regions into a general purpose iterator function.
13884 * procfs.c (iterate_over_mappings): New function, general purpose
13885 iterator for memory sections.
13886 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13887 (solib_mappings_callback): New function, callback for above.
13888 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13889 (info_mappings_callback): New function, callback for above.
13891 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13893 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13895 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13896 * i386-tdep.c: Include "elf-bfd.h".
13897 (process_note_abi_tag_sections): New function.
13898 (i386_gdbarch_init): Add code to recognize various OS/ABI
13901 * maint.c (_initialize_maint_cmds): Add missing \ in
13904 For older changes see ChangeLog-2001
13910 version-control: never