1 2002-12-03 Andrew Cagney <ac131313@redhat.com>
3 * frame.h (get_frame_id): Convert to a function.
4 (null_frame_id, frame_id_p): Declare.
5 (frame_id_eq, frame_id_inner): Declare.
6 (frame_id_build): New function.
7 * frame.c (get_frame_id): Update. Use null_frame_id.
8 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
10 (null_frame_id, frame_id_p): Define.
11 (frame_id_eq, frame_id_inner): Define.
12 (frame_id_build): New function.
13 * varobj.c (varobj_create): Update.
14 (varobj_update): Update.
15 * valops.c (value_assign): Update.
16 (new_root_variable): Update.
17 * infrun.c (save_inferior_status): Update.
18 * breakpoint.c (watch_command_1): Update.
20 2002-12-03 J. Brobecker <brobecker@gnat.com>
22 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
25 2002-12-03 Andrew Cagney <cagney@redhat.com>
27 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
30 * PROBLEMS: Mention PR gdb/725.
32 2002-12-03 Andreas Schwab <schwab@suse.de>
34 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
36 2002-12-02 Adam Fedor <fedor@gnu.org>
37 Klee Dienes <kdienes@apple.com>
39 * objc-lang.c (objc_printstr): Add width arg to match
41 (compare_selectors): Add 'const' to arg types.
42 (compare_classes): Likewise.
43 (find_imps): Cast msym pointer to avoid compiler warning.
44 (print_object_command): Validate the address before
45 passing it to the print routine.
46 (find_objc_msgcall_submethod): Change function argument to
48 * objc-lang.h: Add 'extern' to all function declarations.
49 (value_nsstring): Add declaration.
51 2002-12-02 J. Brobecker <brobecker@gnat.com>
53 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
54 Fixes a build failure on HP/UX.
56 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
58 (hpread_has_name): Advance declaration to avoid a compilation warning.
59 (pst_syms_count): Add missing variable type. By change, the compiler
60 was defaulting to int, which seems a good choice. Fixes a compilation
62 (pst_syms_size): Likewise.
64 2002-12-02 J. Brobecker <brobecker@gnat.com>
66 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
67 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
68 later to set the proper gdbarch methods depending on the osabi.
69 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
71 2002-12-02 J. Brobecker <brobecker@gnat.com>
73 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
74 * osabi.c (gdb_osabi_name): Add strings images for the two new
76 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
78 2002-12-02 Andrew Cagney <ac131313@redhat.com>
80 * MAINTAINERS (Java): Global maintainers are responible for Java.
81 (Past Maintainers): Mention both Anthony Green and Per Bothner as
82 part Java maintainers.
84 2002-12-02 J. Brobecker <brobecker@gnat.com>
86 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
87 Fixes a compilation failure on AiX.
89 2002-12-02 J. Brobecker <brobecker@gnat.com>
91 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
92 why aix-thread.o is not listed.
94 2002-12-01 Andrew Cagney <ac131313@redhat.com>
96 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
97 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
98 * gdbarch.h, gdbarch.c: Re-generate.
99 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
100 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
101 * config/pa/tm-hppa.h, frame.h: Update.
102 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
103 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
104 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
105 * cris-tdep.c, alpha-tdep.c: Update.
106 * frame.c (set_unwind_by_pc, create_new_frame): Use either
107 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
108 (get_prev_frame): Ditto.
110 2002-11-30 Andrew Cagney <cagney@redhat.com>
112 * exec.c (xfer_memory): Replace boolean with int.
113 * p-exp.y: Use 0 instead of false.
114 * corelow.c (gdb_check_format): Change return type to int from
116 * utils.c: Don't include <curses.h> or <term.h> first.
118 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
120 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
121 (m68hc11_register_byte): Remove.
122 (m68hc11_gdbarch_init): Don't set the above.
124 2002-11-29 Andrew Cagney <cagney@redhat.com>
126 * remote-mips.c (mips_initialize): Force a selected frame rebuild
127 by calling get_selected_frame.
128 * ocd.c (ocd_start_remote): Use get_selected frame instead of
129 set_current_frame, create_new_frame, select_frame and
131 * remote-e7000.c (e7000_start_remote): Ditto.
132 * remote-mips.c (common_open): Ditto
133 * remote-rdp.c (remote_rdp_open): Ditto.
135 2002-11-29 Andreas Schwab <schwab@suse.de>
137 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
138 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
139 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
140 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
141 read_memory_unsigned_integer instead of read_memory_integer when
142 dealing with addresses and instruction opcodes.
143 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
144 (m68k_linux_frame_saved_pc): Likewise.
146 2002-11-29 Andrew Cagney <ac131313@redhat.com>
148 * stack.c (selected_frame, select_frame): Move from here ...
149 * frame.c (selected_frame, select_frame): ... to here. Include
151 * Makefile.in (frame.o): Update dependencies.
152 * frame.c (get_selected_frame): New function.
153 * frame.h (get_selected_frame): Declare.
154 (deprecated_selected_frame): Rename selected_frame.
155 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
156 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
157 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
158 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
159 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
160 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
161 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
162 * z8k-tdep.c, cli/cli-cmds.c: Update.
164 2002-11-29 Andrew Cagney <ac131313@redhat.com>
166 * frame.h (get_selected_block): Add comments.
168 2002-11-28 Andrew Cagney <ac131313@redhat.com>
170 * frame.c (pc_notcurrent): New function.
171 (find_frame_sal): New function.
172 * frame.h (find_frame_sal): Declare.
173 (struct symtab_and_line): Add opaque declaration.
174 * stack.c (print_frame_info_base): Use find_frame_sal instead of
177 * ada-lang.c (find_printable_frame): Ditto.
179 2002-11-28 J. Brobecker <brobecker@gnat.com>
181 * configure.in: Check that the pthdebug library is recent enough
182 before enabling thread support on native AiX.
183 * configure: Regenerate.
185 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
186 from the list of object files as it is now appended by configure
187 if thread support is enabled.
188 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
189 if thread support is enabled.
191 2002-11-28 Andrew Cagney <cagney@redhat.com>
193 * stack.c (get_selected_block): In-line get_current_block.
194 * frame.h (get_current_block): Delete declaration.
195 * blockframe.c (get_current_block): Delete function.
197 2002-11-28 Andrew Cagney <ac131313@redhat.com>
199 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
200 USE_GENERIC_DUMMY_FRAMES.
201 * gdbarch.h, gdbarch.c: Regenerate.
202 * valops.c, frame.c: Update.
203 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
204 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
205 * config/pa/tm-hppa.h, blockframe.c: Update.
206 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
207 * m68k-tdep.c, alpha-tdep.c: Ditto.
209 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
210 * mips-tdep.c: Ditto.
212 2002-11-27 Andrew Cagney <ac131313@redhat.com>
214 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
215 (USE_GENERIC_DUMMY_FRAMES): Default to true.
216 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
217 * gdbarch.c, gdbarch.h: Re-generate.
218 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
219 (CALL_DUMMY_LOCATION): Delete macro definition.
220 (PC_IN_CALL_DUMMY): Delete macro definitions.
222 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
223 default is already generic_pc_in_call_dummy.
224 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
225 * v850-tdep.c (v850_gdbarch_init): Ditto.
226 * sh-tdep.c (sh_gdbarch_init): Ditto.
227 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
228 * mips-tdep.c (mips_gdbarch_init): Ditto.
229 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
231 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
232 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
233 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
234 * avr-tdep.c (avr_gdbarch_init): Ditto.
236 * arm-tdep.c (arm_gdbarch_init): Do not set
237 use_generic_dummy_frames, default is already 1.
238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
239 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
240 * v850-tdep.c (v850_gdbarch_init): Ditto.
241 * sh-tdep.c (sh_gdbarch_init): Ditto.
242 * s390-tdep.c (s390_gdbarch_init): Ditto.
243 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
244 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
245 * mips-tdep.c (mips_gdbarch_init): Ditto.
246 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
248 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
249 * i386-tdep.c (i386_gdbarch_init): Ditto.
250 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
251 * frv-tdep.c (frv_gdbarch_init): Ditto.
252 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
253 * cris-tdep.c (cris_gdbarch_init): Ditto.
254 * avr-tdep.c (avr_gdbarch_init): Ditto.
256 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
257 call_dummy_location, default is already AT_ENTRY_POINT.
258 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
259 * v850-tdep.c (v850_gdbarch_init): Ditto.
260 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
261 * sh-tdep.c (sh_gdbarch_init): Ditto.
262 * s390-tdep.c (s390_gdbarch_init): Ditto.
263 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
265 * mips-tdep.c (mips_gdbarch_init): Ditto.
266 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
268 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
269 * i386-tdep.c (i386_gdbarch_init): Ditto.
270 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
271 * frv-tdep.c (frv_gdbarch_init): Ditto.
272 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
273 * cris-tdep.c (cris_gdbarch_init): Ditto.
274 * avr-tdep.c (avr_gdbarch_init): Ditto.
275 * arm-tdep.c (arm_gdbarch_init): Ditto.
276 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
278 2002-11-28 Andrew Cagney <cagney@redhat.com>
280 * frame.h: Update comments on set_current_frame, create_new_frame,
281 flush_cached_frames, reinit_frame_cache, select_frame and
284 2002-11-27 Andrew Cagney <cagney@redhat.com>
286 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
287 deprecated pc_in_call_dummy function.
288 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
289 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
290 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
291 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
292 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
294 2002-11-26 Martin M. Hunt <hunt@redhat.com>
296 * Makefile.in: Remove Tix dependencies.
297 * acinclude.m4: Ditto.
299 * configure.in: Ditto.
300 * configure: Regenerated.
302 2002-11-26 Andrew Cagney <ac131313@redhat.com>
304 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
305 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
306 * gdbarch.c: Re-generate.
308 2002-11-26 Andrew Cagney <ac131313@redhat.com>
310 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
311 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
312 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
313 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
314 pc_in_call_dummy_at_entry_point.
315 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
316 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
317 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
318 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
319 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
320 pc_in_call_dummy_on_stack.
321 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
322 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
323 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
324 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
325 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
327 2002-11-26 Andrew Cagney <ac131313@redhat.com>
329 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
330 pc_in_call_dummy_before_text_end
331 (deprecated_pc_in_call_dummy_after_text_end): Rename
332 pc_in_call_dummy_after_text_end.
333 (deprecated_pc_in_call_dummy_on_stack): Rename
334 pc_in_call_dummy_on_stack.
335 (deprecated_pc_in_call_dummy_at_entry_point): Rename
336 pc_in_call_dummy_at_entry_point.
337 * m68k-tdep.c (m68k_gdbarch_init): Update.
338 * s390-tdep.c (s390_gdbarch_init): Update.
339 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
340 * vax-tdep.c (vax_gdbarch_init): Update.
341 * sparc-tdep.c (sparc_gdbarch_init): Update.
342 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
343 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
344 * i386-tdep.c (i386_gdbarch_init): Update.
345 * frv-tdep.c (frv_gdbarch_init): Update.
346 * cris-tdep.c (cris_gdbarch_init): Update.
347 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
348 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
349 (deprecated_pc_in_call_dummy_after_text_end)
350 (deprecated_pc_in_call_dummy_on_stack)
351 (deprecated_pc_in_call_dummy_at_entry_point): Update.
352 * alpha-tdep.c (alpha_gdbarch_init): Update.
354 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
356 * acconfig.h (HAVE_PREAD64): Add.
357 * configure.in: Check for pread64.
358 * config.in: Regenerated.
359 * configure: Regenerated.
360 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
361 * linux-proc.c (linux_proc_xfer_memory): New function.
362 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
364 2002-11-25 David Carlton <carlton@math.stanford.edu>
366 * dwarf2read.c (scan_partial_symbols): Descend into namespace
369 2002-11-25 Andrew Cagney <ac131313@redhat.com>
371 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
372 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
374 2002-11-25 Jim Blandy <jimb@redhat.com>
376 * symfile.c (init_objfile_sect_indices): New function.
377 (default_symfile_offsets): Move the section-index-initializing
378 stuff into init_objfile_sect_indices, and call that.
380 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
381 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
383 * symfile.c (syms_from_objfile): Adjust indentation.
385 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
386 || info_verbose isn't true.
388 2002-11-24 Andrew Cagney <ac131313@redhat.com>
390 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
391 default to get_frame_base.
392 * gdbarch.h, gdbarch.c: Regenerate.
393 * arch-utils.c (default_frame_address): Delete function.
394 * arch-utils.h (default_frame_address): Delete declaration
396 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
398 * varobj.c (find_frame_addr_in_frame_chain):
399 Use get_frame_base instead of FRAME_FP,
402 2002-11-19 Andrew Cagney <ac131313@redhat.com>
404 * frame.h (FRAME_FP): Delete macro.
405 (get_frame_base): New function declaration.
406 * frame.c (get_frame_base): New function.
407 (get_frame_id): Use ->frame.
408 (frame_find_by_id): Rewrite to use get_frame_id.
409 * blockframe.c: Use get_frame_base instead of FRAME_FP.
410 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
411 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
412 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
413 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
414 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
415 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
417 2002-11-24 Andrew Cagney <ac131313@redhat.com>
419 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
421 2002-11-24 Andrew Cagney <ac131313@redhat.com>
423 * frame.c (set_unwind_by_pc): Revert change below, use
425 (get_prev_frame): Ditto.
427 2002-11-24 Andrew Cagney <ac131313@redhat.com>
429 * dummy-frame.c (pc_in_dummy_frame): New function.
430 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
431 (find_dummy_frame): Update comment.
432 (generic_pop_current_frame): Use get_frame_type.
433 * dummy-frame.h (pc_in_dummy_frame): Declare.
434 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
435 (create_new_frame): Use pc_in_dummy_frame.
436 (get_prev_frame): Use pc_in_dummy_frame.
437 (frame_saved_regs_register_unwind): Use get_prev_frame.
438 (deprecated_generic_get_saved_register): Use get_prev_frame.
440 2002-11-23 Andrew Cagney <ac131313@redhat.com>
442 * blockframe.c (find_frame_addr_in_frame_chain): Move function
444 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
445 (varobj_create): Note that frame ID should be used.
446 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
448 2002-11-23 Andrew Cagney <ac131313@redhat.com>
450 * breakpoint.c: Include "gdb_assert.h".
451 (deprecated_frame_in_dummy): Assert that generic dummy frames are
453 * Makefile.in (breakpoint.o): Update dependencies.
454 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
455 deprecated_frame_in_dummy.
456 * stack.c (print_frame_info_base): Ditto.
458 (print_frame_info_base): Ditto. Delete dead code.
460 2002-11-23 Andreas Schwab <schwab@suse.de>
462 * Makefile.in (m68k_tdep_h): Define.
463 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
464 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
465 * m68k-tdep.c: Move register number enum ...
466 * m68k-tdep.h: ... to this new file and rename the constants from
467 E_* to M68K_*. All uses changed.
468 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
469 * abug-rom.c: Include "m68k-tdep.h". Use
470 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
471 * cpu32bug-rom.c: Likewise.
472 * dbug-rom.c: Likewise.
473 * m68k-tdep.c: Likewise.
474 * m68klinux-nat.c: Likewise.
475 * remote-est.c: Likewise.
476 * rom68k-rom.c: Likewise.
477 * config/m68k/tm-linux.h: Likewise.
479 2002-11-23 Andrew Cagney <ac131313@redhat.com>
481 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
482 dummy frame initialization code.
483 * mips-tdep.c (mips_gdbarch_init): Ditto.
485 2002-11-22 Christopher Faylor <cgf@redhat.com>
487 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
490 2002-11-22 Andrew Cagney <ac131313@redhat.com>
492 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
493 to default_frame_address.
494 * gdbarch.h, gdbarch.c: Re-generate.
496 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
497 or frame_locals_address to default_frame_address.
498 * m68k-tdep.c (m68k_gdbarch_init): Update.
499 * i386-tdep.c (i386_gdbarch_init): Update.
500 * frv-tdep.c (frv_gdbarch_init): Update.
501 * sh-tdep.c (sh_gdbarch_init): Update.
502 * v850-tdep.c (v850_gdbarch_init): Update.
503 * sparc-tdep.c (sparc_gdbarch_init): Update.
504 * mips-tdep.c (mips_gdbarch_init): Update.
505 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
506 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
509 * cris-tdep.c (cris_frame_args_address): Delete function.
510 (cris_frame_locals_address): Delete function.
511 (cris_gdbarch_init): Do not set frame_args_address or
512 frame_locals_address.
514 2002-11-22 Michael Snyder <msnyder@redhat.com>
516 * thread-db.c (thread_db_load): Tell the user what's going on
517 if dlopen fails on libthread_db.
519 2002-11-23 Andreas Schwab <schwab@suse.de>
521 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
522 invariant return values.
524 2002-11-22 Andreas Schwab <schwab@suse.de>
526 * valops.c (value_slice): Move declaration of `offset' to avoid
529 2002-11-22 Christopher Faylor <cgf@redhat.com>
531 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
532 (struct so_stuff): Add end_addr field.
533 (register_loaded_dll): Calculate and store end address of loaded dll.
534 (solib_address): New function.
535 (child_solib_loaded_library_pathname): Pass carefully constructed
536 section info to safe_symbol_file_add rather than ignoring it.
537 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
539 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
540 (child_create_inferior): Fix a compiler warning.
541 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
542 (solib_address): Declare new function.
544 2002-11-22 Andreas Schwab <schwab@suse.de>
546 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
549 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
551 * maint.c (_initialize_maint_cmds): Fix typo. From
552 Francesco Potorti` <pot@gnu.org>.
554 2002-11-21 Andrew Cagney <cagney@redhat.com>
556 * mips-tdep.c (mips_dump_tdep): Delete references to
557 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
558 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
559 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
560 * printcmd.c (build_address_symbolic): Delete calls to
561 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
562 (address_info): Ditto.
565 2002-11-19 Klee Dienes <kdienes@apple.com>
566 Adam Fedor <fedor@gnu.org>
568 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
569 the ability to explicitly specify the quote characters and word
570 break characters; if NULL is specified for either, use the old
571 behavior of using the characters used by the completer.
572 (skip_chars): New function. Convenience wrapper around
573 skip_quoted_chars to provide the original skip_chars behavior.
574 * completer.h (skip_quoted_chars): Add prototype.
576 2002-11-19 Andrew Cagney <ac131313@redhat.com>
578 Problems reported by Paul Eggert.
579 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
581 2002-11-19 Andreas Schwab <schwab@suse.de>
583 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
584 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
585 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
586 (m68k_linux_frame_saved_pc): Move to ...
587 * m68klinux-tdep.c: ... here. New file.
588 * Makefile.in (m68klinux-tdep.o): Add dependencies.
589 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
591 2002-11-19 Adam Fedor <fedor@gnu.org>
593 * objc-exp.y: Revert to old skip_quoted usage.
595 2002-11-19 Adam Fedor <fedor@gnu.org>
597 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
598 (objc_lang_h): Define.
599 (YYFILES): Add objc-exp.tab.c.
600 (local-maintainer-clean): Remove objc-exp.tab.c.
601 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
603 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
605 * p-exp.y (typecast rule): Add automatic dereference of
606 pascal classes if needed.
607 (THIS): Set current_type.
608 Automatically dereference pascal classes.
609 (typebase rule): Add ^typebase recognition.
611 2002-11-18 Adam Fedor <fedor@gnu.org>
613 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
614 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
615 (op_name): Handle OP_OBJC_SELF.
616 * Makefile.in (expprint.o): Add additional depends.
618 2002-11-18 Adam Fedor <fedor@gnu.org>
620 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
621 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
622 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
623 * objc-exp.y: Likewise.
625 2002-11-18 Adam Fedor <fedor@gnu.org>
627 * gdb/parser-defs.h: (struct objc_class_str): New structure
628 for parsing ObjC classes.
630 2002-11-18 Andrew Cagney <ac131313@redhat.com>
632 * stack.c (frame_relative_level): Copy function from here ...
633 * frame.c (frame_relative_level): ...to here.
635 2002-11-18 Andrew Cagney <ac131313@redhat.com>
637 * frame.h (enum frame_type): Define.
638 (get_frame_type): Declare.
639 (struct frame_info): Add field `type'. Delete field
640 signal_handler_caller.
641 (deprecated_set_frame_signal_handler_caller): Declare.
642 * frame.c (get_frame_type): New function.
643 (deprecated_set_frame_type): New function.
644 (create_new_frame): Set the frame's type.
645 (get_prev_frame): Similar.
646 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
647 * s390-tdep.c: Ditto.
648 * m68klinux-nat.c: Ditto.
649 * ns32k-tdep.c: Ditto.
650 * x86-64-linux-tdep.c: Ditto.
652 * rs6000-tdep.c: Ditto.
653 * ppc-linux-tdep.c: Ditto.
654 * i386-interix-tdep.c: Ditto.
655 * mips-tdep.c: Ditto.
656 * m68k-tdep.c: Ditto.
657 * hppa-tdep.c: Ditto.
658 * ia64-tdep.c: Ditto.
659 * cris-tdep.c: Ditto.
661 * alpha-tdep.c: Ditto.
662 * i386-tdep.c: Ditto.
665 * blockframe.c: Update.
666 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
667 deprecated_set_frame_type instead of signal_handler_caller.
668 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
669 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
670 * breakpoint.h: Delete FIXME suggesting get_frame_type.
672 2002-11-18 Klee Dienes <kdienes@apple.com>
674 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
676 2002-11-18 Klee Dienes <kdienes@apple.com>
678 * buildsym.c (pop_context): Add comment.
680 2002-11-18 Klee Dienes <kdienes@apple.com>
682 * buildsym.h (pop_context): Convert to function, defined in
684 * buildsym.c: Include gdb_assert.h.
685 (pop_context): Implement as C function. Add check for stack
687 * dbxread.c (process_one_symbol): Complain and stop processing
688 that symbol if we are already at the top of the context stack for
689 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
690 when processing N_RBRAC.
692 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
694 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
696 (struct target_waitstatus): Add opaque definition.
697 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
698 * exec.c (init_exec_ops): Likewise.
699 * fork-child.c (clone_and_follow_inferior): Remove.
700 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
701 * inferior.h (clone_and_follow_inferior): Remove prototype.
702 * infrun.c (follow_fork_mode_both): Remove.
703 (follow_fork_mode_kind_names): Remove commented out "both".
704 (follow_inferior_fork): Remove follow_fork_mode_both support.
705 * inftarg.c (child_clone_and_follow_inferior): Remove.
706 (child_post_follow_inferior_by_clone): Remove.
707 (init_child_ops): Don't set to_clone_and_follow_inferior
708 or to_post_follow_inferior_by_clone.
709 * target.c (default_clone_and_follow_inferior): Remove.
710 (cleanup_target): Don't set to_clone_and_follow_inferior
711 or to_post_follow_inferior_by_clone.
712 (find_default_clone_and_follow_inferior): Remove.
713 (init_dummy_target): Don't set to_clone_and_follow_inferior.
714 (debug_to_clone_and_follow_inferior): Remove.
715 (debug_to_post_follow_inferior_by_clone): Remove.
716 (setup_target_debug): Don't set to_clone_and_follow_inferior
717 or to_post_follow_inferior_by_clone.
718 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
719 and to_post_follow_inferior_by_clone.
720 (child_clone_and_follow_inferior): Remove prototype.
721 (child_post_follow_inferior_by_clone): Remove prototype.
722 (target_clone_and_follow_inferior): Remove macro.
723 (target_post_follow_inferior_by_clone): Remove macro.
724 (find_default_clone_and_follow_inferior): Remove prototype.
726 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
728 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
729 inferior_has_vforked, and inferior_has_execd instead of
730 target_has_forked, target_has_vforked, and target_has_execd.
731 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
732 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
733 (CHILD_WAIT): Define.
734 (child_wait): Add prototype.
735 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
737 (hpux_has_vforked): Likewise, from child_has_vforked.
738 (hpux_has_execd): Likewise, from child_has_execd.
739 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
740 (not_same_real_pid, child_wait): New, copied from inftarg.c.
741 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
742 and hpux_has_syscall_event instead of the target hooks.
743 * infrun.c (inferior_has_forked, inferior_has_vforked)
744 (inferior_has_execd): New functions.
745 * inftarg.c (not_same_real_pid): Remove.
746 (child_wait): Remove references to not_same_real_pid,
747 target_has_forked, target_has_vforked, target_has_execd,
748 and target_has_syscall_event.
749 (child_has_forked, child_has_vforked, child_has_execd)
750 (child_has_syscall_event): Remove.
751 (init_child_ops): Remove references to child_has_forked,
752 child_has_vforked, child_has_execd, and child_has_syscall_event.
753 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
754 (hpux_has_vforked): Likewise, from child_has_vforked.
755 (hpux_has_execd): Likewise, from child_has_execd.
756 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
757 * target.c (cleanup_target): Remove references to
758 to_has_forked, to_has_vforked, to_has_execd, and
759 to_has_syscall_event.
760 (update_current_target): Likewise.
761 (setup_target_debug): Likewise.
762 (debug_to_has_forked): Remove.
763 (debug_to_has_vforked): Remove.
764 (debug_to_has_execd): Remove.
765 (debug_to_has_syscall_event): Remove.
766 * target.h (struct target_ops): Remove to_has_forked.
767 to_has_vforked, to_has_execd, and to_has_syscall_event.
768 (child_has_forked, child_has_vforked, child_has_execd)
769 (child_has_syscall_event): Remove prototypes.
770 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
772 (target_has_forked, target_has_vforked, target_has_execd)
773 (target_has_syscall_event): Remove macros.
775 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
777 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
778 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
779 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
780 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
781 * target.c (cleanup_target): Remove reference to
782 to_can_follow_vfork_prior_to_exec.
783 (update_current_target): Likewise.
784 (debug_to_can_follow_vfork_prior_to_exec): Remove.
785 (setup_target_debug): Remove reference to
786 to_can_follow_vfork_prior_to_exec.
787 * target.h (struct target_ops): Remove
788 to_can_follow_vfork_prior_to_exec.
789 (child_can_follow_vfork_prior_to_exec): Remove prototype.
790 (target_can_follow_vfork_prior_to_exec): Remove definition.
791 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
793 * infrun.c (follow_vfork_when_exec): Remove.
794 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
795 (follow_exec): Likewise.
796 (handle_inferior_event): Likewise.
797 (keep_going): Likewise.
799 2002-11-15 Andrew Cagney <cagney@redhat.com>
801 * frame.c (generic_unwind_get_saved_register): Make static.
802 * frame.h (generic_unwind_get_saved_register): Delete declaration.
803 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
804 defaults to generic_unwind_get_saved_register.
805 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
806 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
807 * frv-tdep.c (frv_gdbarch_init): Ditto.
808 * i386-tdep.c (i386_gdbarch_init): Ditto.
809 * s390-tdep.c (s390_gdbarch_init): Ditto.
810 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
811 * v850-tdep.c (v850_gdbarch_init): Ditto.
812 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
813 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
814 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
816 2002-11-15 Andrew Cagney <cagney@redhat.com>
818 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
821 2002-11-15 Andrew Cagney <cagney@redhat.com>
823 * frame.h (sigtramp_saved_pc): Delete declaration.
824 * blockframe.c (sigtramp_saved_pc): Delete function.
825 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
826 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
827 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
828 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
830 2002-11-15 Andrew Cagney <ac131313@redhat.com>
832 * frame.c (frame_pc_unwind): New function.
833 (frame_saved_regs_pc_unwind): New function.
834 (frame_register_unwind): Pass unwind_cache instead of
835 register_unwind_cache.
836 (set_unwind_by_pc): Add unwind_pc parameter, set.
837 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
838 (get_prev_frame): Ditto.
839 * frame.h (frame_pc_unwind_ftype): Declare.
840 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
841 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
842 (frame_pc_unwind): Declare.
843 * dummy-frame.c (dummy_frame_pc_unwind): New function.
844 (struct dummy_frame): Add comment mentioning that values are for
846 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
847 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
848 (generic_file_frame_chain_valid): Ditto.
849 * stack.c (frame_info): Ditto.
851 2002-11-15 David Carlton <carlton@math.stanford.edu>
853 * linespec.c (locate_first_half): New function.
854 (decode_line_1): Move code into locate_first_half.
856 2002-11-15 Andrew Cagney <ac131313@redhat.com>
858 * complaints.h: Add comment explaining how to eliminate a
859 deprecated_complain call.
860 * complaints.h: Fix spelling errors.
862 2002-11-15 David Carlton <carlton@math.stanford.edu>
864 * printcmd.c: Remove #include "disasm.h".
866 2002-11-14 Andrew Cagney <ac131313@redhat.com>
868 * frame.h: Move the most relevant interface functions to the start
871 2002-11-14 Andrew Cagney <ac131313@redhat.com>
873 * regcache.h (deprecated_registers): Rename registers.
874 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
875 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
876 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
877 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
878 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
879 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
880 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
881 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
882 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
883 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
884 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
887 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
889 * utils.c (gdb_realpath): Add comment mentioning realpath with a
892 2002-11-13 Andrew Cagney <cagney@redhat.com>
894 * regcache.h (deprecated_read_register_bytes): Rename
896 (deprecated_write_register_bytes): Rename write_register_bytes.
897 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
898 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
899 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
900 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
901 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
902 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
903 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
904 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
905 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
906 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
907 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
908 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
909 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
910 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
912 2002-11-13 Jim Blandy <jimb@redhat.com>
914 * findvar.c (read_var_value): Doc fix.
916 2002-11-13 Andrew Cagney <cagney@redhat.com>
918 * regcache.c (struct regcache): Replace passthough_p with
920 (regcache_xmalloc): Initialize readonly_p.
921 (build_regcache): Initialize readonly_p.
922 (regcache_save): New function.
923 (regcache_restore): New function.
924 (regcache_cpy): Re-implement using regcache_save and
926 (regcache_raw_read): Update.
927 (regcache_cooked_read): When a read-only cache, checked for cached
928 pseudo register values.
929 (regcache_raw_write): Assert that the cache is not read-only.
930 Remove code handling a non-passthrough cache.
931 * regcache.h (regcache_save): Declare.
932 (regcache_restore): Declare.
934 2002-11-13 Andrew Cagney <cagney@redhat.com>
936 * regcache.c (struct regcache_descr): Add fields
937 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
938 (init_legacy_regcache_descr): Compute the size of a cooked
939 register cache and then assign that to sizeof_raw_registers. Set
940 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
941 (init_legacy_regcache_descr): Ditto.
943 2002-11-13 Andrew Cagney <cagney@redhat.com>
945 * regcache.c (register_buffer): Move to near start of file, update
947 (regcache_raw_read): Use.
948 (regcache_raw_write): Use.
949 (struct regcache): Rename raw_registers to registers and
950 raw_register_valid_p to register_valid_p.
951 (regcache_xmalloc): Update.
952 (regcache_xfree): Update.
953 (register_buffer): Update.
954 (regcache_cpy): Update.
955 (regcache_cpy_no_passthrough): Update.
956 (regcache_valid_p): Update.
957 (deprecated_grub_regcache_for_registers): Update.
958 (deprecated_grub_regcache_for_register_valid): Update.
959 (set_register_cached): Update.
960 (regcache_raw_write): Update.
962 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
964 * p-exp.y (name_not_typename): Use copy_name to
965 set current_type variable for fields of THIS.
967 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
969 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
970 * monitor.c (init_base_monitor_ops): Likewise.
971 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
972 * remote-array.c (init_array_ops): Likewise.
973 * remote-e7000.c (init_e7000_ops): Likewise.
974 * remote-es.c (init_es1800_ops): Likewise.
975 (init_es1800_child_ops): Likewise.
976 * remote-rdp.c (init_remote_rdp_ops): Likewise.
977 * remote-sim.c (init_gdbsim_ops): Likewise.
978 * remote-st.c (init_st2000_ops): Likewise.
979 * sol-thread.c (init_sol_core_ops): Likewise.
980 (init_sol_thread_ops): Likewise.
981 * v850ice.c (init_850ice_ops): Likewise.
982 * win32-nat.c (init_child_ops): Likewise.
983 * wince.c (init_child_ops): Likewise.
985 2002-11-12 Andrew Cagney <ac131313@redhat.com>
987 * utils.c (gdb_realpath): Make rp a constant pointer.
989 2002-11-12 Andrew Cagney <ac131313@redhat.com>
991 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
992 a constant buffer; cannonicalize_file_name(); realpath() with a
993 pathconf() defined buffer, xstrdup().
995 2002-11-12 Andrew Cagney <ac131313@redhat.com>
997 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
998 to hang2.C; hang3.c to hang3.C.
1000 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1002 * findvar.c (read_var_value): Reenable TLS code.
1004 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1005 Jim Blandy <jimb@redhat.com>
1007 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1008 * target.c (update_current_target): Add
1009 to_get_thread_local_address.
1010 * target.h (to_get_thread_local_address): Export.
1011 (target_get_thread_local_address): Define.
1012 (target_get_thread_local_address_p): Define.
1013 * thread-db.c: Include solib-svr4.h.
1014 (td_thr_tls_get_addr_p): Define.
1015 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1016 (thread_db_get_thread_local_address): New function.
1017 (init_thread_db_ops): Initialize to_get_thread_local_address.
1018 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1019 * configure: Regenerate.
1020 * config.in: Regenerate.
1022 2002-11-11 David Carlton <carlton@math.stanford.edu>
1024 * linespec.c (set_flags): New function.
1025 (decode_line_1): Move code into set_flags.
1027 2002-11-11 David Carlton <carlton@math.stanford.edu>
1029 * linespec.c (decode_line_1): Move chunks of code to separate
1031 (initialize_defaults): New function.
1032 (decode_indirect): New function.
1034 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1036 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1037 instead of void_code_ptr.
1038 (sigtramp_saved_pc): Ditto.
1040 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1043 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1045 * gdbtypes.h (struct main_type): Move artificial flag out of
1046 loc. New member of ``struct field'' named static_kind. Reduce
1047 overloaded meaning of bitsize.
1048 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1049 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1050 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1052 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1054 (template_to_fixed_record_type, template_to_static_fixed_type)
1055 (to_record_with_fixed_variant_part): Likewise.
1056 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1057 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1058 * dwarfread.c (struct_type, enum_type): Likewise.
1059 * hpread.c (hpread_read_enum_type)
1060 (hpread_read_function_type, hpread_read_doc_function_type)
1061 (hpread_read_struct_type): Likewise.
1062 * mdebugread.c (parse_symbol): Likewise.
1064 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1066 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1067 * stack.c (print_frame_info_base): Update.
1068 (print_frame_info_base, frame_info): Update.
1069 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1070 (sparc_frame_saved_pc): Update.
1071 * ada-lang.c (find_printable_frame): Update.
1072 * breakpoint.c (deprecated_frame_in_dummy): Update.
1074 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1076 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1078 (regmap): Extend to cover all registers.
1079 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1080 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1082 (fetch_register, sore_register): Simplify.
1083 (old_fetch_inferior_registers, old_store_inferior_registers):
1085 (cannot_fetch_register, cannot_store_register): Change
1086 implementation to use regmap array to decide which registers
1087 cannot be fetched/stored. This removes $orig_eax from the
1088 registers that cannot be fetched/stored.
1089 (fetch_inferior_registers): Call fetch_register directly instead
1090 of calling old_fetch_inferior_registers.
1091 (store_inferior_registers): Call store_register directly instead
1092 of calling old_store_inferior_registers.
1093 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1094 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1095 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1097 2002-11-09 Klee Dienes <kdienes@apple.com>
1099 * i387-tdep.c (i387_supply_register): When called with NULL as a
1100 buffer, mark the register as not provided (to mirror the behavior
1101 of supply_register).
1102 (i387_supply_fxsave): Ditto.
1103 (i387_supply_fsave): Ditto (inherits the behavior from
1104 i387_supply_register).
1106 2002-11-09 Klee Dienes <kdienes@apple.com>
1108 * blockframe.c (sigtramp_saved_pc): Use
1109 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1110 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1111 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1113 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1115 * frame.c (get_prev_frame): Test prev_p to identify a previously
1116 unwound frame. Initialize prev_p.
1117 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1120 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1122 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1123 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1124 more comments. Zap dead code.
1126 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1128 * infcmd.c (print_vector_info, print_float_info): Move code that
1129 checks whether the target has any registers and whether there is a
1130 selected frame up, such that it is also used if a target provides
1131 multi-arch definitions of these functions.
1133 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1135 * Makefile.in (DESTDIR): Define.
1136 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1139 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1140 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1142 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1144 * i386-linux-tdep.c: Include "reggroups.h".
1145 (i386_linux_register_reggroup_p): New function.
1146 (i386_linux_init_abi): Set register_reggroup_p to
1147 i386_linux_register_reggroup_p.
1148 * i386-tdep.h (i386_register_reggroup_p): Declare.
1149 * i386-tdep.c: Include "reggroups.h".
1150 (i386_init_reggroups): New function.
1151 (i386_add_reggroups): New function.
1152 (i386_register_reggroup_p): New function.
1153 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1154 (_initialize_i386_tdep): Call i386_init_reggroups.
1155 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1158 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1160 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1161 request that's available in *BSD.
1163 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1165 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1168 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1170 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1171 * dummy-frame.c (find_dummy_frame): Rename
1172 generic_find_dummy_frame, make static. Return the dummy frame
1173 instead of the regcache.
1174 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1175 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1176 (dummy_frame_register_unwind): Rename
1177 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1178 * dummy-frame.h (dummy_frame_register_unwind): Rename
1179 generic_call_dummy_register_unwind.
1181 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1183 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1184 except the inclusion of "i386/tm-i386.h", to...
1185 * config/i386/nm-i386v42mp.h: ...here.
1186 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1188 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1190 * Makefile.in (frame.o): Update dependencies.
1191 * blockframe.c (current_frame, frame_obstack_alloc)
1192 (frame_saved_regs_zalloc, get_current_frame)
1193 (set_current_frame, create_new_frame)
1194 (set_unwind_by_pc, get_next_frame)
1195 (flush_cached_frames, reinit_frame_cache)
1196 (frame_saved_regs_register_unwind)
1197 (deprecated_generic_get_saved_register)
1198 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1199 (_initialize_blockframe): Move frame code from here...
1200 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1201 "annotate.h" and "dummy-frame.h".
1202 (_initialize_frame): New function.
1204 2002-11-08 Jim Blandy <jimb@redhat.com>
1206 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1207 when we finish a function a context.
1208 * buildsym.h (outermost_context_p): New macro.
1209 (Bug analyzed by David Edelsohn.)
1211 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1213 * blockframe.c: Include "dummy-frame.h".
1214 (struct dummy_frame, dummy_frame_stack)
1215 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1216 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1217 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1218 (generic_save_call_dummy_addr, generic_pop_current_frame)
1219 (generic_pop_dummy_frame, generic_fix_call_dummy)
1220 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1221 dummy frame code from here...
1222 * dummy-frame.c: ...to here. New file.
1223 * dummy-frame.h: New file.
1224 (generic_call_dummy_register_unwind): Declare.
1225 (generic_find_dummy_frame): Declare.
1226 * Makefile.in (SFILES): Add dummy-frame.c.
1227 (dummy-frame.o): Specify dependencies.
1228 (dummy_frame_h): Define.
1229 (COMMON_OBS): Add dummy-frame.o.
1230 (blockframe.o): Update dependencies.
1232 2002-11-08 Jim Blandy <jimb@redhat.com>
1234 * dwarf2read.c (read_func_scope): Restore local_symbols and
1235 param_symbols after we finish the function context. (Based on a
1236 patch from David Edelsohn.)
1238 2002-11-08 David Carlton <carlton@math.stanford.edu>
1240 * linespec.c (symbol_found): New function.
1241 (minsym_found): New function.
1242 (decode_line_1): Separate out some code into separate functions.
1244 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1246 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1247 the benefit of the interix target.
1248 * i386-tdep.h (i386_frameless_signal_p): Declare.
1250 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1252 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1253 declaration that snuck in from change below.
1255 2002-11-06 Andrew Cagney <cagney@redhat.com>
1257 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1259 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1260 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1261 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1262 (i386_mxcsr_regnum_p): new function. Use instead of
1264 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1265 (i386_sse_regnum_p): Declare.
1266 (i386_mxcsr_regnum_p): Declare.
1267 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1268 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1269 (IS_FP_REGNUM): Update definition.
1270 (IS_FPU_CTRL_REGNUM): Update definition..
1271 (IS_SSE_REGNUM): Update definition..
1272 * i386v-nat.c (register_u_addr): Update.
1273 * go32-nat.c (fetch_register): Update.
1274 (store_register): Update.
1276 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1278 Preparation work to convert the hppa targets to multiarch partial.
1280 * hppa-tdep.c: Add new functions replacing macro bodies from
1281 config/pa/tm-hppa.h. These function will be used to initialize
1282 the gdbarch structure. Import some comments from tm-hppa.h,
1283 and place them where appropriate, to avoid loosing them when
1284 we cleanup this file.
1285 (hppa_reg_struct_has_addr): New function.
1286 (hppa_inner_than): New function.
1287 (hppa_stack_align): New function.
1288 (hppa_pc_requires_run_before_use): New function.
1289 (hppa_instruction_nullified): New function.
1290 (hppa_register_byte): New function.
1291 (hppa_register_virtual_type): New function.
1292 (hppa_store_struct_return): New function.
1293 (hppa_cannot_store_register): New function.
1294 (hppa_frame_args_address): New function.
1295 (hppa_frame_locals_address): New function.
1296 (hppa_smash_text_address): New function.
1297 (hppa_coerce_float_to_double): New function. Requires the inclusion
1300 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1302 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1303 gdbarch-eligible macro to a call to the new associated function
1304 created in hppa-tdep.c.
1305 (INNER_THAN): Likewise.
1306 (STACK_ALIGN): Likewise.
1307 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1308 (INSTRUCTION_NULLIFIED): Likewise.
1309 (REGISTER_BYTE): Likewise.
1310 (REGISTER_VIRTUAL_TYPE): Likewise.
1311 (STORE_STRUCT_RETURN): Likewise.
1312 (CANNOT_STORE_REGISTER): Likewise.
1313 (FRAME_ARGS_ADDRESS): Likewise.
1314 (FRAME_LOCALS_ADDRESS): Likewise.
1315 (SMASH_TEXT_ADDRESS): Likewise.
1316 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1317 (ABOUT_TO_RETURN): Delete, as no longer used.
1319 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1321 * printcmd.c (disassemble_command): Remove obsolete function.
1322 (_initialize_printcmd): Do not create disassemble command here.
1323 * cli/cli-cmds.c (disassemble_command): New function. Implements
1324 disassemble command.
1325 (init_cli_cmds): Create disassemble command here instead.
1327 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1329 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1331 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1333 * regcache.h (regcache_cooked_read_using_offset_hack)
1334 (regcache_cooked_write_using_offset_hack): Delete declarations.
1335 (register_changed): Delete declaration.
1336 * regcache.c (regcache_cooked_read_using_offset_hack)
1337 (regcache_cooked_write_using_offset_hack): Delete functions.
1338 (cooked_xfer_using_offset_hack): Delete function.
1339 (register_changed): Delete function.
1341 2002-11-07 Jim Blandy <jimb@redhat.com>
1343 * macroscope.c: #include "complaints.h".
1344 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1345 but not in the macro table.
1346 * Makefile.in (macroscope.o): Record dependency.
1348 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1350 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1352 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1354 * regcache.c (deprecated_registers_fetched): Update.
1355 * regcache.h (deprecated_registers_fetched): Rename
1357 * remote-vxsparc.c (vx_read_register): Update.
1358 * remote-vxmips.c (vx_read_register): Update.
1359 * remote-vx68.c (vx_read_register): Update.
1360 * irix5-nat.c (fetch_core_registers): Update.
1361 * mipsm3-nat.c (fetch_inferior_registers): Update.
1362 * sun3-nat.c (fetch_inferior_registers): Update.
1363 * symm-nat.c (fetch_inferior_registers): Update.
1364 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1365 (fetch_core_registers): Update.
1366 (fetch_kcore_registers): Update.
1367 * mips-nat.c (fetch_inferior_registers): Update.
1368 * corelow.c (get_core_registers): Update.
1369 * a68v-nat.c (fetch_inferior_registers): Update.
1371 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1373 Put in place the framework necessary for multiarching the hppa targets.
1374 * hppa-tdep.c (hppa_gdbarch_init): New function.
1375 (hppa_dump_tdep): New function.
1376 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1377 tdep structure dumper.
1378 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1379 until the multi-arching conversion has partially been completed.
1381 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1383 * valops.c (value_assign): Merge lval_register case into
1384 lval_reg_frame_relative. Use frame_register and
1385 regcache_cooked_write instead of get_saved_register and
1386 write_register_bytes. After flushing the register cache, try to
1387 re-select the selected frame.
1389 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1391 * regcache.h (deprecated_register_valid): Rename register_valid.
1392 * regcache.c: Update.
1393 * ia64-aix-nat.c: Update.
1394 * i386gnu-nat.c: Update.
1395 * alpha-nat.c: Update.
1396 * sparc-nat.c: Update.
1397 * lynx-nat.c: Update.
1398 * remote-mips.c: Update.
1400 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1402 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1403 to end of file, to be more consistent with the pratice followed
1406 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1408 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1409 (print_float_info): Print registers in float_reggroup.
1410 (print_vector_info): Print registers in vector_reggroup.
1411 (default_print_registers_info): When all, print registers in
1412 all_reggroup. Otherwize, print registers in general_reggroup.
1413 (registers_info): Rewrite. Add support for register groups.
1416 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1418 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1420 (symtab_symbol_info): Remove eons old ifdeffed out code.
1421 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1424 2002-11-06 Theodore A. Roth <troth@openavr.org>
1426 * c-exp.y: Add missing semi-colons.
1427 * f-exp.y: Add missing semi-colons.
1428 * m2-exp.y: Add missing semi-colons.
1429 * p-exp.y: Add missing semi-colons.
1430 Add empty action to start rule to avoid a type clash error when
1431 building with bison >= 1.50.
1433 2002-11-06 Jim Blandy <jimb@redhat.com>
1435 * macrotab.h (struct macro_source_file): Doc fix.
1437 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1439 * varobj.c (child_exists, cplus_number_of_children): Change
1440 STREQ macro references to strcmp.
1441 (cplus_name_of_child): Change code to handle the fact that
1442 fields are not necessarily contiguous with regards to their
1443 access control. This is a fix for PR gdb/792.
1445 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1447 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1448 * gdbarch.h, gdbarch.c: Regnerate.
1449 * frame.h (frame_register): Declare.
1450 * frame.c (frame_register): New function.
1451 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1452 GET_SAVED_REGISTER, otherwize call
1453 generic_unwind_get_saved_register.
1454 (frame_register_read): Use frame_register instead of
1457 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1459 From Jim Ingham <jingham@apple.com>:
1460 * event-top.c (gdb_disable_readline): New function.
1461 (_initialize_event_loop): Move comment.
1463 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1465 * event-loop.c (start_event_loop): Add comment.
1468 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1470 * infcmd.c (default_print_registers_info): Do not call
1471 PRINT_REGISTER_HOOK.
1473 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1475 * sparc-tdep.c (sparc_print_register_hook): Make static.
1476 (sparc_print_registers_info): New function.
1477 (sparc_do_registers_info): New function.
1478 (sparclet_print_registers_info): New function.
1479 (sparclet_do_registers_info): New function.
1480 (do_sparc_print_registers_info): New function.
1481 (sparc_print_registers): New static function, clone of infcmd.c's
1482 default_print_registers_info.
1483 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1484 (sparclet_do_registers_info): Declare.
1485 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1486 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1488 (sparc_do_registers_info): Declare.
1489 (PRINT_REGISTER_HOOK): Delete macro.
1490 (sparc_print_register_hook): Delete declaration.
1492 2002-11-05 David Carlton <carlton@math.stanford.edu>
1494 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1496 (lookup_symbol_aux_local): New function.
1497 (lookup_symbol_aux_symtabs): New function.
1498 (lookup_symbol_aux_psymtabs): New function.
1500 2002-11-05 David Carlton <carlton@math.stanford.edu>
1502 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1503 previous values of 'objfile' and 'block'.
1505 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1507 * values.c (value_change_enclosing_type): Set
1508 enclosing_type field correctly also for the case where
1509 more memory needs to be allocated.
1511 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1513 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1516 * i387-tdep.c (i387_print_float_info): Replace calls to
1517 register_read and deprecated_read_register_gen with calls to
1518 frame_register_read, and make the necessary adjustments to the
1521 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1523 * gdbarch.sh (register_reggroup_p): Allow default value.
1524 * gdbarch.h, gdbarch.c: Regenerate.
1526 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1528 * regcache.h: Add coment indicating replacements for deprecated
1531 2002-11-02 Andrew Cagney <cagney@redhat.com>
1533 * reggroups.h, reggroups.c: New files.
1534 * regcache.c: Include "reggroups.h".
1535 (enum regcache_dump_what): Add `regcache_dump_groups'.
1536 (regcache_dump): Contract size of the "Type" column. When
1537 specified, dump the register's groups.
1538 (maintenance_print_register_groups): New function.
1539 (_initialize_regcache): Add command `maint print register-groups'.
1540 * Makefile.in (COMMON_OBS): Add reggroups.o
1541 (SFILES): Add reggroups.c.
1542 (reggroups_h): Define.
1543 (regcache.o, gdbarch.o): Update dependencies.
1544 (reggroups.o): Specify dependencies.
1545 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1546 Add opaque declaration for `struct reggroup' in generated .h file.
1547 Include "reggroups.h" in generated .c file.
1548 gdbarch.h, gdbarch.c: Re-generate.
1550 2002-11-02 Andrew Cagney <cagney@redhat.com>
1552 * regcache.h (deprecated_read_register_gen): Rename
1554 (deprecated_write_register_gen): Rename write_register_gen.
1555 * i387-tdep.c: Update.
1556 * x86-64-linux-nat.c: Update
1558 * thread-db.c: Update.
1559 * win32-nat.c: Update.
1560 * mips-tdep.c: Update.
1561 * d10v-tdep.c: Update.
1562 * cris-tdep.c: Update.
1563 * remote-sim.c: Update.
1564 * remote-rdi.c: Update.
1565 * remote-rdp.c: Update.
1568 * blockframe.c: Update.
1569 * x86-64-tdep.c: Update.
1570 * xstormy16-tdep.c: Update.
1571 * sh-tdep.c: Update.
1572 * s390-tdep.c: Update.
1573 * rs6000-tdep.c: Update.
1574 * sparc-tdep.c: Update.
1575 * i386-tdep.c: Update.
1576 * dwarf2cfi.c: Update.
1577 * regcache.c: Update.
1579 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1581 New interix-specific files:
1582 * config/i386/nm-interix.h: New file.
1583 * config/i386/interix.mh: New file.
1584 * config/i386/interix.mt: New file.
1585 * i386-interix-nat.c: New file.
1586 * i386-interix-tdep.c: New file.
1588 2002-11-01 Andrew Cagney <cagney@redhat.com>
1590 * frame.h (deprecated_generic_get_saved_register): Rename
1591 generic_get_saved_register.
1592 * blockframe.c (deprecated_generic_get_saved_register): Update.
1593 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1594 (xstormy16_frame_saved_register): Update.
1595 * sh-tdep.c (sh_gdbarch_init): Update.
1596 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1597 * ia64-tdep.c (ia64_get_saved_register): Update.
1598 * cris-tdep.c (cris_gdbarch_init): Update.
1599 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1600 * arm-tdep.c (arm_gdbarch_init): Update.
1602 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1604 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1606 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1608 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1609 trampolines in sigaction.
1611 2002-10-31 Andrew Cagney <cagney@redhat.com>
1613 * h8300-tdep.c: Include "gdb_assert.h".
1614 (h8300_print_register): Add gdbarch, file and frame parameters.
1615 Use frame_read_unsigned_register to read the register's value.
1616 Use fprintf_filtered to display output.
1617 (h8300_print_registers_info): Replace h8300_do_registers_info.
1618 (h8300_gdbarch_init): Set print_registers_info.
1620 2002-10-31 Andrew Cagney <cagney@redhat.com>
1622 * frame.c (frame_read_unsigned_register): New function.
1623 (frame_read_signed_register): New function.
1624 * frame.h (frame_read_unsigned_register): Declare.
1625 (frame_read_signed_register): Declare.
1627 2002-10-31 Andrew Cagney <cagney@redhat.com>
1629 * h8500-tdep.c (h8500_print_registers_info): New static function,
1630 clone of infcmd.c's default_print_registers_info.
1631 (h8500_do_registers_info): New funtion.
1632 (h8500_print_register_hook): Rename print_register_hook, make
1635 * config/h8500/tm-h8500.h: Update copyright.
1636 (DEPRECATED_DO_REGISTERS_INFO): Define.
1637 (h8500_do_registers_info: Declare.
1638 (PRINT_REGISTER_HOOK): Delete macro.
1639 (print_register_hook): Delete function.
1641 2002-10-31 Andrew Cagney <cagney@redhat.com>
1643 * z8k-tdep.c (z8k_print_register_hook): Make static.
1644 (z8k_print_registers_info): New static function, clone of
1645 infcmd.c's default_print_registers_info.
1646 (z8k_do_registers_info): New function. Wrap
1647 z8k_print_registers_info.
1648 * config/z8k/tm-z8k.h: Update copyright.
1649 (PRINT_REGISTER_HOOK): Delete macro.
1650 (z8k_print_register_hook): Delete declaration.
1651 (DEPRECATED_DO_REGISTERS_INFO): Define.
1652 (z8k_do_registers_info): Declare.
1654 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1656 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1657 as this is already provided by value.h, and was actually causing
1658 a compilation error because of a conflict in parameter type
1659 declaration due to a missing const keyword.
1660 (low_text_segment_addres): Fix a compilation warning.
1662 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1664 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1665 registers without a name.
1666 (mips_linux_cannot_store_register): Don't store registers without
1669 2002-10-28 David Carlton <carlton@math.stanford.edu>
1671 * symtab.c (find_addr_symbol): Delete. (It was already commented
1673 * symtab.h: Delete prototype for find_addr_symbol.
1675 2002-10-26 Andrew Cagney <cagney@redhat.com>
1677 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1679 gdbarch.h, gdbarch.c: Re-generate.
1680 * infcmd.c (default_print_registers_info): Update reference.
1681 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1682 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1683 * sh-tdep.c (sh_gdbarch_init): Ditto.
1684 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1685 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1687 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1689 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1690 cfi_init_extra_frame_info.
1691 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1692 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1694 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1695 target where necessary. Add more comments and remove the ones
1696 that don't provide any useful information.
1698 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1699 deprecated_read_register_dummy with
1700 frame_unwind_unsigned_register.
1702 * i386-tdep.c (i386_extract_struct_value_address): Use
1703 regcache_raw_read_unsigned instead of
1704 regcache_cooked_read_unsigned since we know that the register
1705 we're reading isn't a pseudo register. Rename variable 'val' into
1706 the more descriptive 'addr'.
1708 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1709 (x86_64_push_return_address): Add comment.
1710 (x86_64_pop_frame): Make static.
1711 (examine_argument): Clarify comment.
1712 (x86_64_skip_prologue): Make prolog_expact variable static.
1714 * dwarf2cfi.c: Fix some formatting problems.
1715 (context_cpy, read_encoded_pointer): Clarify comments.
1717 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1718 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1719 i386 target back into x86_64_gdbarch_init. Add some comments and
1720 remove meaningless ones.
1722 2002-10-25 Andrew Cagney <cagney@redhat.com>
1724 * complaints.h (struct deprecated_complaint): Rename `struct
1726 * complaints.c (complain): Update.
1727 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1728 incorrect comment indicating that "symfile.h" was being included
1729 for the `struct complaint' definition.
1730 * remote-vx.c: Update.
1731 * objc-lang.c: Update.
1732 * xcoffread.c: Update.
1734 * mdebugread.c: Update.
1735 * stabsread.c: Update.
1736 * dwarf2read.c: Update.
1737 * dwarfread.c: Update.
1738 * elfread.c: Update.
1739 * coffread.c: Update.
1740 * stabsread.h: Update.
1741 * dbxread.c: Update.
1742 * buildsym.c: Update.
1743 * gdbtypes.c: Update.
1744 * macrotab.c: Update.
1746 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1748 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1749 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1750 (x86_64_init_abi): ...new function.
1752 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1753 * i386v-nat.c: Include "i386-tdep.h".
1755 2002-10-25 Andrew Cagney <cagney@redhat.com>
1757 * gdbtypes.c (address_space_name_to_int): Update.
1758 (address_space_int_to_name): Update.
1759 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1760 multi-arch predicate.
1761 (address_class_name_to_type_flags): Ditto.
1762 * gdbarch.h, gdbarch.c: Re-generate.
1764 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1766 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1768 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1770 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1772 * symtab.h (INIT_SAL): Delete macro.
1774 * symtab.c (init_sal): New function.
1776 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1777 to init_sal function call.
1778 (find_sal_from_funcs_and_line): Ditto.
1779 (all_sals_for_line): Ditto.
1780 * breakpoint.c (create_internal_breakpoint): Ditto.
1781 (create_fork_vfork_event_catchpoint): Ditto.
1782 (create_exec_event_catchpoint): Ditto.
1783 (parse_breakpoint_sals): Ditto.
1784 (watch_command_1): Ditto.
1785 (handle_gnu_4_16_catch_command): Ditto.
1786 (clear_command): Ditto.
1787 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1788 * infcmd.c (run_stack_dummy): Ditto.
1789 * infrun.c (process_event_stop_test): Ditto.
1790 (check_sigtramp2): Ditto.
1791 (step_over_function): Ditto.
1792 * linespec.c (decode_line_2): Ditto.
1793 (decode_line_1): Ditto.
1794 * source.c (line_info): Ditto.
1795 * symtab.c (find_pc_sect_line): Ditto.
1797 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1799 * dwarf2cfi.c (struct context)
1800 (struct context_reg): Moved to dwarf2cfi.h
1801 (context_alloc, frame_state_alloc, context_cpy):
1802 Made extern instead of static, removed prototypes.
1803 * dwarf2cfi.h (struct context)
1804 (struct context_reg): New, moved from dwarf2cfi.c
1805 (context_alloc, frame_state_alloc, context_cpy):
1807 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1808 Changed from static to extern.
1809 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1810 (LINUX_SIGCONTEXT_FP_OFFSET)
1811 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1812 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1813 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1814 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1815 set_gdbarch_*() calls now use x86-64 specific functions
1816 instead of DWARF2 CFI ones.
1817 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1818 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1819 (x86_64_init_extra_frame_info): New prototypes.
1821 2002-10-23 David Carlton <carlton@math.stanford.edu>
1823 * linespec.c: #include "parser-defs.h".
1824 Delete prototype for find_template_name_end.
1825 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1827 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1829 * NEWS: add recent mi fixes.
1830 * varobj.c (struct varobj): Add new "updated" flag.
1831 (new_variable): Default "updated" flag to 0.
1832 (varobj_set_value): Set "updated" flag to 1 if value
1834 (varobj_update): Check varobj "updated" flag before
1835 comparing old and refreshed values. Fix for
1838 2002-10-23 David Carlton <carlton@math.stanford.edu>
1840 * parse.c (parse_exp_1): Use BLOCK_START.
1841 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1843 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1845 2002-10-23 David Carlton <carlton@math.stanford.edu>
1847 * symtab.c: Delete cplusplus_hint.
1848 Delete prototype for find_template_name_end.
1850 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1852 * symtab.h: Update comment.
1854 2002-10-23 Michael Snyder <msnyder@redhat.com>
1856 * printcmd.c (address_info): Restore quotes in output.
1857 * valops.c (value_of_local): Restore quotes in error message.
1859 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1861 * symtab.c (symbol_demangled_name): New function.
1862 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1863 turning most of it into a function.
1864 (symbol_demangled_name): Export.
1866 2002-10-23 Michael Snyder <msnyder@redhat.com>
1868 * valops.c (value_of_local): Restore quotes in error message.
1870 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1872 * symtab.c (symbol_init_language_specific): New function.
1873 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1874 turning most of it into a function.
1875 (symbol_init_language_specific): Export.
1877 2002-10-23 David Carlton <carlton@math.stanford.edu>
1879 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1880 (dwarf_attr_name): Ditto.
1881 (dwarf_type_encoding_name): Ditto.
1882 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1883 (process_die): Handle DW_TAG_namespace,
1884 DW_TAG_imported_declaration, DW_TAG_imported_module.
1885 (read_namespace): New function.
1887 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1889 * configure.in: Define NEW_PROC_API on Interix too.
1890 * configure: Regenerate.
1892 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1894 * configure: Regenerate using the proper version of autoconf.
1896 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1898 * findvar.c (read_var_value): Temporarily disable TLS code, until
1899 complete TLS support is added.
1901 2002-10-21 Jim Blandy <jimb@redhat.com>
1902 Elena Zannoni <ezannoni@redhat.com>
1904 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1905 for thread local storage locations.
1906 (struct symbol): Add objfile field.
1907 (SYMBOL_OBJFILE): Define.
1908 * dwarf2read.c (is_thread_local): New static variable.
1909 (new_symbol): If variable is in thread local fill in address class
1910 and objfile appropriately.
1911 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1913 * printcmd.c (address_info): Print the information for thread
1914 local storage variable.
1915 * findvar.c (read_var_value): In case of thread local variable,
1916 defer to the target vector code to compute address.
1918 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1920 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1921 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1923 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1925 * symtab.h (address_class): Rename
1926 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1927 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1928 * printcmd.c (address_info): Ditto.
1929 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1931 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1933 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1934 DBREG_DRX macro to acces debug registers.
1936 * Makefile.in (i386obsd-tdep.o): New target.
1938 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1939 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1941 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1942 * config/i386/obsd.mt: New file.
1943 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1944 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1945 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1946 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1947 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1948 * i386obsd-tdep.c: New file.
1950 2002-10-19 Adam Fedor <fedor@gnu.org>
1952 * objc-exp.y (name_not_typename): Fix invalid comment.
1954 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1956 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1957 to allocate partial syms and macro byte caches.
1959 2002-10-18 David Carlton <carlton@math.stanford.edu>
1961 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1963 2002-10-18 Adam Fedor <fedor@gnu.org>
1965 * stabsread.c (find_name_end): New function.
1966 (define_symbol): Use it.
1968 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1970 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1971 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1972 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1973 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1975 2002-10-17 David Carlton <carlton@math.stanford.edu>
1977 * symfile.h: Add opaque declaration for struct obstack.
1978 Declare obsavestring to take a const char *.
1979 * symfile.c (obsavestring): Make first argument a const char *.
1981 2002-10-16 Adam Fedor <fedor@gnu.org>
1983 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1984 names when matching breakpoints in current file.
1986 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1988 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1989 (read_tag_pointer_type): Add address class support.
1990 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1991 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1993 * gdbarch.h, gdbarch.c: Regenerate.
1994 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1995 (make_type_with_address_space, recursive_type_dump): Add address
1997 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1998 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1999 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2001 2002-10-16 Klee Dienes <kdienes@apple.com>
2003 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2004 to get the last character of a char[] buffer, not
2005 name[sizeof(vptr_name)-1].
2007 2002-10-14 Adam Fedor <fedor@gnu.org>
2009 * symtab.h: New objc_specific struct.
2010 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2011 (SYMBOL_DEMANGLED_NAME): Likewise.
2013 2002-10-14 Adam Fedor <fedor@gnu.org>
2015 * symfile.c (init_filename_language_table): Add ObjC file extension.
2017 2002-10-14 Adam Fedor <fedor@gnu.org>
2019 * utils.c (puts_filtered_tabular): New function.
2020 (fprintf_symbol_filtered): Get ObjC demangled name.
2021 * defs.h (puts_filtered_tabular): Declared.
2023 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2025 * c-lang.h (c_type_print_varspec_prefix): Delete.
2026 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2027 ``need_post_space'' parameter. Adjust all callers.
2029 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2031 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2032 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2033 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2034 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2036 2002-10-13 Adam Fedor <fedor@gnu.org>
2038 * source.c (print_source_lines): Update comments.
2040 2002-10-13 Adam Fedor <fedor@gnu.org>
2042 * valops.c (value_of_local): New function.
2043 (value_of_this): Use it.
2044 * value.h (value_of_local): Declared.
2046 2002-10-13 Adam Fedor <fedor@gnu.org>
2048 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2049 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2051 2002-10-12 Adam Fedor <fedor@gnu.org>
2053 * language.c (binop_result_type): Add language_objc to case.
2054 (integral_type): Likewise.
2055 (character_type): Likewise.
2056 (string_type): Likewise.
2057 (boolean_type): Likewise.
2058 (structured_type): Likewise.
2059 (binop_type_check): Likewise.
2061 2002-10-11 Adam Fedor <fedor@gnu.org>
2063 * printcmd.c (address_info): Print 'self' for ObjC.
2065 2002-10-11 Adam Fedor <fedor@gnu.org>
2067 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2070 2002-10-11 Adam Fedor <fedor@gnu.org>
2072 * language.h (CAST_IS_CONVERSION): Add language_objc.
2074 2002-10-11 Adam Fedor <fedor@gnu.org>
2076 * defs.h (enum language): Add language_objc.
2078 2002-10-11 Klee Dienes <kdienes@apple.com>
2080 * corefile.c (read_memory_typed_address): New function.
2081 * gdbcore.h (read_memory_typed_address): Add prototype.
2082 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2083 to read a value destined for a CORE_ADDR, not read_memory_integer.
2084 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2085 (f77_get_dynamic_lowerbound): Ditto.
2087 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2089 * utils.c (string_to_core_addr): After turning string into
2090 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2091 which will do necessary sign-extension, etc.
2093 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2095 * c-exp.y (THIS): Delete token and grammar rule.
2096 (yylex): Don't return THIS.
2097 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2098 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2099 * demangle.c (cplus_markers): Update comment. Put '$'
2100 first. Remove CPLUS_MARKER.
2101 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2102 * jv-exp.y (THIS): Delete token and grammar rule.
2103 (yylex): Don't return THIS.
2104 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2105 * objc-exp.y (THIS): Delete token and grammar rule.
2106 (yylex): Don't return THIS.
2107 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2108 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2109 (read_member_functions): Likewise for opname.
2110 (read_tilde_fields): Use is_cplus_marker.
2112 * defs.h (CPLUS_MARKER): Don't define.
2113 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2114 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2115 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2116 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2117 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2119 * config/i386/tm-i386v4.h: Delete file.
2120 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2121 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2122 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2123 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2124 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2125 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2126 * config/i386/i386v4.mt (TM_FILE): Likewise.
2127 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2129 2002-10-10 Marko Mlinar <markom@opencores.org>
2131 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2132 accidentially not commited 2002-10-09
2133 * gdbarch.h, gdbarch.c: Re-generate.
2135 2002-10-09 Marko Mlinar <markom@opencores.org>
2137 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2138 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2139 * gdbarch.h, gdbarch.c: Re-generate.
2141 2002-10-08 Petr Sorfa <petrs@caldera.com>
2143 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2145 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2146 so we can work on more than one compilation unit at a time. This
2147 helps prepare GDB to handle inter-CU die references.
2148 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2149 the code to be defined before struct comp_unit_head.
2150 (comp_unit_head): Added new members - offset, cu_head,
2151 begin_die, next and dwarf2_abbrevs.
2152 (dwarf2_abbrevs): Removed single static var; now member of
2153 struct comp_unit_head.
2154 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2156 (psymtab_to_symtab_1): Changed to work with the new
2157 struct comp_unit_head.
2158 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2159 constructs the dwarf2_abbrevs[] inside the cu_header.
2160 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2161 dwarf2_abbrev table to clean up.
2162 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2163 handling of dwarf2_abbrevs inside the cu_header.
2164 (read_partial_die): Now supports the call to the new
2165 dwarf2_lookup_abbrev.
2166 (read_full_die): Now supports the call to the new
2167 dwarf2_lookup_abbrev.
2169 2002-10-06 Christopher Faylor <cgf@redhat.com>
2171 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2172 insure that shell variables, such as "transformed_name" are propagated
2173 to later shell statements in rule.
2175 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2177 * config/i386/nm-i386sco.h: Add protection against
2178 multiple-inclusion. Include "i386/nm-i386v.h".
2179 (REGISTER_U_ADDR): Remove define.
2180 (i386_register_u_addr): Remove prototype.
2182 2002-10-04 Michael Snyder <msnyder@redhat.com>
2184 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2185 before treating it as a single-step event.
2187 2002-10-03 Adam Fedor <fedor@gnu.org>
2189 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2190 (objc_demangle): Remove assignment in if statements, Replace
2192 (add_msglist): Likewise.
2193 (end_msglist): Likewise.
2194 (complare_selectors): Likewise.
2195 (selectors_info): Likewise.
2196 (compare_classes): Likewise.
2197 (classes_info): Likewise.
2198 (print_object_command): Likewise.
2199 (find_objc_msgcall_submethod): Replace PTR with void *.
2200 * objc-lang.h: Remove check for __STDC__.
2202 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2204 * ui-out.h (ui_out_field_fmt_int): New prototype.
2205 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2206 of field width and alignment.
2207 * stack.c (print_frame_info_base): When printing frame level, use
2208 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2211 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2213 * MAINTAINERS: Add self to Write After Approval list.
2215 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2217 * infcmd.c (interrupt_target_command_wrapper): Delete.
2218 (interrupt_target_command): Make non static.
2219 (nofp_registers_info): Make static.
2220 * stack.c (return_command_wrapper): Delete.
2221 (return_command): Make non static.
2223 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2225 * event-top.c (gdb_setup_readline): New function. Code moved from
2226 _initialize_event_loop().
2227 (_initialize_event_loop): Call gdb_setup_readline().
2229 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2231 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2232 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2233 * gdbarch.h, gdbarch.c: Re-generate.
2235 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2238 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2240 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2241 of fill_in_vptr_fieldno.
2243 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2245 * inferior.h (registers_info, stepi_command, nexti_command,
2246 continue_command, interrupt_target_command): Export from infcmd.c.
2247 * frame.h (args_info, selected_frame_level_changed_hook,
2248 return_command): Export from stack.c.
2249 * v850ice.c (stepi_command, nexti_command, continue_command): use
2250 prototypes from inferior.h.
2251 * tracepoint.c (registers_info, args_info, locals_info): Use
2252 prototypes from frame.h and inferior.h.
2253 * Makefile.in (mi-main.o): Add dependency on frame.h.
2255 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2257 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2258 value in register 3 adjusted by ppc_gp0_regnum.
2260 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2262 2002-10-02 Marko Mlinar <markom@opencores.org>
2264 * MAINTAINERS: Add myself to the Write After Approval list.
2266 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2268 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2269 of the section for the N64 ABI, fixed.
2271 * config/mips/tm-irix6.h: Include solib.h.
2273 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2275 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2278 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2280 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2281 and that "mi0" syntax has been removed.
2283 2002-09-30 David Carlton <carlton@math.stanford.edu>
2285 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2286 * ppc-sysv-tdep.c: #include "gdb_string.h".
2287 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2290 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2292 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2293 "vrsave"'s register number.
2295 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2297 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2298 use frame_unwind_signed_register to obtain the PC.
2299 (mips_frame_chain): Handle a generic dummy frame.
2300 (mips_init_extra_frame_info): When a generic dummy frame, don't
2301 re-compute the frame base.
2302 (mips_pop_frame): Handle generic dummy frames.
2303 (mips_gdbarch_init): When generic dummy frames, set
2304 use_generic_dummy_frames, push_dummy_frame to
2305 generic_push_dummy_frame, pc_in_call_dummy to
2306 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2307 generic_save_dummy_frame_tos.
2309 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2311 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2312 against TOP when TOP was explictly set.
2313 (generic_push_dummy_frame): Set TOP to zero.
2315 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2317 * event-loop.c (start_event_loop): Rename variable 'result' to
2318 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2320 2002-09-30 Keith Seitz <keiths@redhat.com>
2322 * gdb-events.sh (selected_thread_changed): New event.
2323 * gdb-events.c: Regenerated.
2324 * gdb-events.h: Regenerated.
2326 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2328 * MAINTAINERS: Add self to Write After Approval list.
2330 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2332 * disasm.c: New file.
2333 * disasm.h: New file.
2334 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2335 (compare_lines): Ditto.
2336 (dump_insns): Ditto.
2337 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2339 (do_assembly_only): Ditto.
2340 (do_disassembly): Renamed to gdb_disassembly and moved to
2341 disasm.c. Sdded uiout argument.
2342 * Makefile.in: Add new files. Reorder SFILES list. Update
2343 dependencies. Include libgdb.a later in the insight executable.
2345 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2347 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2348 bfd/elf64-alpha-fbsd.c.
2350 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2352 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2355 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2357 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2359 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2361 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2362 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2363 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2364 (S_msg_sig_post_reply): Ditto.
2366 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2368 * sh-tdep.c (sh_use_struct_convention): Use definition according
2370 (sh_push_arguments): Store in register with correct endianess.
2371 (sh_default_store_return_value): Ditto.
2372 (sh_gdbarch_init): Set sizeof long double to 8.
2374 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2376 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2377 Fix some whitespace problems.
2379 2002-09-27 David Carlton <carlton@math.stanford.edu>
2381 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2382 (mcore-tdep.o): Ditto.
2383 (ns32k-tdep.o): Ditto.
2384 (ns32knbsd-tdep.o): Ditto.
2386 (vax-tdep.o): Ditto.
2387 * cris-tdep.c: #include "gdb_string.h"
2388 * mcore-tdep.c: Ditto.
2389 * ns32k-tdep.c: Ditto.
2390 * ns32knbsd-tdep.c: Ditto.
2392 * vax-tdep.c: Ditto.
2394 2002-09-27 David Carlton <carlton@math.stanford.edu>
2396 * config/djgpp/fnchange.lst: Add entries for
2397 gdb/testsuite/gdb.c++/m-static files.
2399 2002-09-27 Jim Wilson <wilson@redhat.com>
2401 * MAINTAINERS: Add myself to the Write After Approval list.
2403 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2405 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2408 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2410 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2413 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2415 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2416 (rs6000_struct_return_address): Delete variable.
2417 (rs6000_store_struct_return): Update.
2418 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2419 deprecated_extract_struct_value_address.
2420 (rs6000_frame_align): New function.
2421 (rs6000_gdbarch_init): Set frame_align.
2423 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2425 From Grace Sainsbury <graces@redhat.com>:
2426 * Makefile.in (gdbtk-main.o): New target.
2427 (gdb.o): New target.
2429 (main.o): Update dependencies.
2430 (gdb$(EXEEXT)): Add gdb.o.
2431 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2432 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2433 (SUBDIR_GDBTK_CLEAN): Set.
2434 (install-gdbtk): Install the insight binary.
2435 (uninstall-gdbtk): New target.
2436 (all-gdbtk, clean-gdbtk): New rule.
2437 * top.c (use_windows): Default to zero.
2438 * main.c: Include "main.h".
2440 (struct captured_main_args): Delete.
2441 (gdb_main): New function.
2445 2002-09-25 Andrew Cagney <cagney@redhat.com>
2447 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2448 (frame_map_regnum_to_name): New function.
2449 (frame_map_name_to_regnum): New function.
2450 * frame.h (frame_map_name_to_regnum): Declare.
2451 (frame_map_regnum_to_name): Declare.
2452 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2453 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2454 * parse.c: Do not include "builtin-regs.h".
2455 (target_map_name_to_register): Delete function.
2456 (write_dollar_variable): Use frame_map_name_to_regnum.
2457 * parser-defs.h (target_map_name_to_register): Delete declaration.
2458 * expprint.c: Include "frame.h".
2459 (print_subexp): Use frame_map_regnum_to_name.
2460 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2461 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2463 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2465 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2466 wasn't saved, and the next innermost frame is a dummy, return the
2467 dummy frame's link register.
2469 2002-09-24 Jim Blandy <jimb@redhat.com>
2471 Fix from Paul Breed:
2472 * main.c (captured_main): Add a `break' after the case for 'b'.
2474 2002-09-24 Keith Seitz <keiths@redhat.com>
2476 * varobj.c (c_type_of_child): Use get_target_type instead
2477 of TYPE_TARGET_TYPE.
2479 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2481 * source.c (get_current_or_default_source_symtab_and_line): Remove
2483 (set_default_source_symtab_and_line): New function. Attempts to
2484 determine a source file to list lines from if one is not currently
2486 (get_current_source_symtab_and_line): Initialize sal.pc and
2488 (set_current_source_symtab_and_line): Mark argument as const.
2489 * source.h: Update declarations and comments.
2490 * linespec.c (decode_line_1): Replace call to removed routine above.
2491 * stack.c (print_frame_info_base): Ditto.
2492 * cli/cli-cmds.c (edit_command): Ditto.
2493 (list_command): Ditto.
2495 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2497 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2498 sal.pc and sal.end fields.
2499 (get_current_or_default_source_symtab_and_line): Ditto.
2500 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2501 so we do not cause a new source symtab to be searched for (reverting an
2502 unintentional change from the 2002-09-20 patch).
2503 * scm-lang.c (scm_unpac): Ditto.
2505 2002-09-21 Andrew Cagney <cagney@redhat.com>
2507 * complaints.c (symfile_explanations): Remove new-line from
2508 ``isolated_message''.
2509 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2510 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2512 2002-09-20 Nick Clifton <nickc@redhat.com>
2514 * NEWS: Announce that V850EA ISA is no longer supported.
2515 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2517 2002-09-20 David Carlton <carlton@math.stanford.edu>
2519 * Makefile.in (c-lang.o): Correct dependencies.
2520 (utils.o): Gather dependencies.
2522 * c-lang.c: #include "gdb_string.h"
2524 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2526 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2527 * cli/cli-cmds.c (list_command): New function. Implements the new
2529 (_init_cli_cmds): Add new command definition.
2530 * gdb.1: Document edit command.
2531 * doc/gdb.texinfo: Document edit command.
2533 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2535 * source.c: Make global variables current_source_symtab and
2536 current_source_line static.
2537 (list_command): Moved to cli/cli-cmds.c.
2538 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2539 (get_first_line_listed): New accessor function.
2540 (get_lines_to_list): New accessor function.
2541 (get_current_source_symtab_and_line): New function. Retrieves the
2542 position in the source code that we consider current.
2543 (get_current_or_default_source_symtab_and_line): New function.
2544 Like the above but attempts to determine a default position if one
2545 is not currently defined.
2546 (set_current_source_symtab_and_line): New function. Sets the source
2547 code position considered current and returns the previously set one.
2548 (clear_current_source_symtab_and_line): Reset stored information about
2549 a current source line.
2550 (_initialize_source): Remove registration for the "list" command and
2552 * source.h: Add declarations for the new functions above.
2553 * symtab.h: Remove declarations for the global variables mentioned
2555 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2556 obtain current source line.
2557 * linespec.c (decode_line_1): Ditto.
2558 * macroscope.c (default_macro_scope): Ditto.
2559 * scm-lang.c (scm_unpac): Ditto.
2560 * stack.c (print_frame_info_base): Ditto.
2561 * symfile.c (clear_symtab_users): Ditto.
2562 * symtab.c (decode_line_spec): Ditto.
2563 * cli/cli-cmds.c (list_command): Moved here from source.c.
2564 (ambiguous_line_spec): Moved here from source.c.
2565 (_init_cli_cmds): Add definition for "list" and its alias.
2566 * Makefile.in: Update dependencies.
2568 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2570 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2571 with what gcc thinks is correct.
2573 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2575 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2576 multiple register push instruction.
2578 2002-09-19 Jim Blandy <jimb@redhat.com>
2580 Add support for distinct host and target character sets.
2581 * charset.c, charset.h: New files.
2582 * c-exp.y: #include "charset.h".
2583 (yylex): Convert character and string literals to the target
2584 character set, before returning them as the semantic value of the
2586 * c-lang.c: #include "charset.h".
2587 (c_emit_char): Use charset-specific methods to recognize
2588 characters with backslash escape forms, to decide which characters
2589 to print literally and which to print using numeric escape
2590 sequences, and to convert target characters to host characters
2592 * utils.c: #include "charset.h".
2593 (no_control_char_error): New function.
2594 (parse_escape): Use charset-specific methods to recognize
2595 backslash escapes, parse `control character' notation, and convert
2596 characters from the host character set to the target character set.
2597 * configure.in: Set the default host character set.
2598 Check where to find iconv, and what its argument types might be.
2599 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2600 * Makefile.in (SFILES): List charset.c.
2601 (COMMON_OBS): List charset.o.
2602 (charset.o): New rule.
2603 (charset_h): New header dependency variable.
2604 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2605 (LIBICONV): New variable, set by configure.
2606 (CLIBS): Include $(LIBICONV) here.
2607 * aclocal.m4, config.in, configure: Regenerated.
2609 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2611 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2614 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2616 * gdb_mbuild.sh: New file.
2618 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2620 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2622 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2624 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2625 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2626 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2627 valops.c, value.h: Revert previous change.
2629 2002-09-18 Michael Snyder <msnyder@redhat.com>
2631 Preliminary support for Objective-C:
2632 * defs.h (language_objc): New enum value.
2633 (puts_filtered_tabular): Declaration only, exported from utils.c.
2634 (skip_quoted): Delete, declared in completer.h.
2635 * c-exp.y: Include completer.h.
2638 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2639 New operator enum values.
2640 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2641 * language.c (binop_result_type): Handle language_objc case.
2642 (integral_type, character_type, string_type, boolean_type,
2643 structured_type, binop_type_check): Ditto.
2644 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2645 (struct objc_specific): Add to general_symbol_info.
2646 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2647 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2648 * parser-defs.h (struct objc_class_str): New struct type.
2649 (start_msglist, end_msglist, add_msglist): Declaration only,
2650 exported from objc-lang.c.
2651 * value.h (value_of_local, value_nsstring,
2652 call_function_by_hand_expecting_type): Exported from valops.c.
2653 * valops.c (find_function_addr): Export.
2654 (call_function_by_hand_expecting_type): New function.
2655 (value_of_local): New function.
2656 * symfile.c (init_filename_language_table): Add ".m" extension
2658 * utils.c (puts_filtered_tabular): New function.
2659 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2660 (set/show demangle): Extend help-string to refer to ObjC.
2661 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2662 * stabsread.c (symbol_reference_defined): Objective-C symbols
2663 may contain colons: make allowances when scanning stabs strings
2665 (objc_find_colon): New function.
2666 * printcmd.c (address_info): If language == objc then print
2667 "self" instead of "this".
2668 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2669 OP_NSSTRING, and OP_SELF.
2670 (prefixify_subexp): Ditto.
2671 * source.c (print_source_lines): Mention objc in comment.
2672 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2675 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2677 * complaints.h: Update copyright.
2678 (struct complaints): Declare.
2679 (struct complaint): Make `message' constant.
2680 (internal_complaint): Declare.
2681 (complaint): Declare.
2682 (complaint_root): Delete declaration.
2683 (symfile_complaints): Delete declaration.
2684 (struct complaints): Add opaque declaration.
2685 (clear_complaints): Add a complaints parameter.
2686 * complaints.c: Update copyright.
2687 (enum complaint_series): Define.
2688 (complaint_root): Delete.
2689 (struct complaints): Define.
2690 (complaint_sentinel, symfile_complaint_book): New variables.
2691 (symfile_explanations, symfile_complaints): New variables.
2693 (get_complaints): New function.
2694 (vcomplaint): New function.
2695 (complaint): New function.
2696 (internal_complaint): New function.
2697 (complain): Call vcomplain with symfile_complaint.
2698 (clear_complaints): Rewrite.
2699 (_initialize_complaints): Use add_setshow_command.
2700 * Makefile.in (complaints.o): Update dependencies.
2701 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2702 to call to clear_complaints.
2703 (new_symfile_objfile, reread_symbols): Ditto.
2704 (oldsyms_complaint): Delete.
2705 (empty_symtab_complaint, unknown_option_complaint): Delete.
2706 (free_named_symtabs): Use complaint instead of complain.
2708 2002-09-18 Michael Snyder <msnyder@redhat.com>
2710 Contributed by Apple Computer, Inc. Merged with current sources
2711 by Adam Fedor <fedor@doc.com> [cagney].
2713 * objc-lang.c: First clean-up round: comments, indentation.
2714 * objc-lang.h: Ditto.
2715 * objc-lang.y: Ditto.
2717 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2719 * maint.c (maintenance_internal_error): Print the parameter as the
2721 (maintenance_internal_warning): New function.
2722 (_initialize_maint_cmds): Add command `maint internal-warning'.
2724 * defs.h (internal_warning, internal_vwarning): Declare.
2725 * utils.c (struct internal_problem): Define.
2726 (internal_vproblem): New function.
2727 (internal_warning): New function.
2728 (internal_vwarning): New function.
2729 (internal_warning_problem, internal_error_problem): New variables.
2730 (internal_verror): Just call internal_vproblem.
2732 2002-09-18 Michael Snyder <msnyder@redhat.com>
2734 * objc-lang.c: New file, support for Objective-C.
2735 Preliminary check-in, not yet integrated into gdb.
2736 * objc-lang.h: New file.
2737 * objc-exp.y: New file.
2739 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2741 * infrun.c (signal_stop_update): Convert definition to ISO C.
2742 (signal_print_update): Ditto.
2743 (signal_pass_update): Ditto.
2744 * inflow.c (terminal_save_ours): Ditto.
2746 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2749 * config/djgpp/fnchange.lst: Handle name clashes between
2750 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2753 * i386-linux-tdep.h: Fix tipo.
2755 2002-09-18 Adam Fedor <fedor@gnu.org>
2757 * MAINTAINERS: Add myself to the Write After Approval list.
2759 2002-09-18 Jim Blandy <jimb@redhat.com>
2761 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2762 texthigh and textlow to reader-specific structs caused
2763 objfile_relocate to miss them. This is fixable, but the work that
2764 the change was supposed to prepare GDB for never got done anyway.
2766 2002-09-18 David Carlton <carlton@math.stanford.edu>
2768 * MAINTAINERS: Alphabetize Write After Approval list.
2770 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2773 * values.c (value_static_field): Call read_var_value.
2775 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2777 * valops.c (hand_function_call): Align the initial stack pointer
2778 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2779 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2781 * mips-tdep.c (mips_frame_align): New function.
2782 (mips_gdbarch_init): Set frame_align.
2783 * gdbarch.sh (FRAME_ALIGN): New method.
2784 * gdbarch.h, gdbarch.c: Re-generate.
2786 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2788 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2791 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2793 * NEWS: Mention that MIPS $fp behavior changed.
2794 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2795 reference to FP_REGNUM.
2796 (mipsnbsd_cannot_store_register): Ditto.
2797 * mips-linux-nat.c: Update copyright.
2798 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2799 (mips_linux_cannot_store_register): Ditto.
2800 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2801 * config/mips/tm-mips.h: Update copyright.
2802 (FP_REGNUM): Delete macro.
2803 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2804 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2805 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2806 (mips_r3041_reg_names, mips_r3051_reg_names)
2807 (mips_r3081_reg_names): Replace "fp" with "".
2810 2002-09-17 Theodore A. Roth <troth@verinet.com>
2812 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2813 generic_read_register_dummy() (PR gdb/703).
2814 (avr_push_return_address): #if 0 out unused vars.
2815 (avr_gdbarch_init): Enable use of avr_push_return_address().
2817 2002-09-17 Michael Snyder <msnyder@redhat.com>
2819 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2820 RTE will take care of it.
2822 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2824 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2825 invalid, return SP_REGNUM.
2827 2002-09-17 Michael Snyder <msnyder@redhat.com>
2829 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2830 point registers without sign extension.
2832 2002-09-17 Andrew Cagney <cagney@redhat.com>
2834 * blockframe.c (deprecated_read_register_dummy): Rename
2835 generic_read_register_dummy.
2836 * frame.c (frame_unwind_signed_register): New function.
2837 (frame_unwind_unsigned_register): New function.
2838 * frame.h (frame_unwind_signed_register): Declare.
2839 (frame_unwind_unsigned_register): Declare.
2840 (deprecated_read_register_dummy): Rename
2841 generic_read_register_dummy.
2843 * h8300-tdep.c (h8300_frame_chain): Update.
2844 (h8300_frame_saved_pc): Update.
2845 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2846 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2847 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2848 (s390_frame_chain): Update.
2849 * v850-tdep.c (v850_find_callers_reg): Update.
2850 (v850_frame_saved_pc): Update.
2851 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2852 (m32r_find_callers_reg): Update.
2853 (m32r_frame_saved_pc): Update.
2854 * sh-tdep.c (sh_find_callers_reg): Update.
2855 (sh64_get_saved_pr): Update.
2856 (sh_init_extra_frame_info): Update.
2857 (sh_init_extra_frame_info): Update.
2858 (sh64_init_extra_frame_info): Update.
2859 (sh64_init_extra_frame_info): Update.
2860 * mcore-tdep.c (mcore_find_callers_reg): Update.
2861 (mcore_frame_saved_pc): Update.
2862 (mcore_init_extra_frame_info): Update.
2863 * i386-tdep.c (i386_frame_saved_pc): Update.
2864 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2865 (ia64_init_extra_frame_info): Update.
2866 (ia64_init_extra_frame_info): Update.
2867 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2868 * cris-tdep.c (cris_init_extra_frame_info): Update.
2869 * avr-tdep.c (avr_frame_chain): Update.
2870 (avr_init_extra_frame_info): Update.
2871 (avr_frame_saved_pc): Update.
2872 * arm-tdep.c (arm_find_callers_reg): Update.
2873 (arm_init_extra_frame_info): Update.
2874 (arm_frame_saved_pc): Update.
2876 2002-09-17 Tom Tromey <tromey@redhat.com>
2878 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2881 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2883 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2884 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2886 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2889 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2891 * osfsolib.c: Remove file, replaced by solib-osf.c.
2892 * Makefile.in: Remove compilation rules for osfsolib.c.
2894 2002-09-16 David Carlton <carlton@math.stanford.edu>
2896 * cp-valprint.c (cp_print_class_method): Correct args to
2897 check_stub_method_group.
2899 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2901 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2902 `set architecture'. Unify naming convention of functions.
2903 (h8300_skip_prologue): Improve prologue analysis.
2904 (h8300_push_arguments): Rewritten to more closely match GCC's
2905 bizarre argument-passing behavior, along with the comment describing
2907 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2908 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2909 sim, remote-e7000.c, remote-hms.c and remote.c
2911 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2913 * i386-tdep.c (gdb_print_insn_i386): Removed.
2914 (i386_print_insn): New function.
2915 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2916 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2919 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2921 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2924 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2926 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2927 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2928 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2930 2002-09-13 Christopher Faylor <cgf@redhat.com>
2932 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2934 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2936 * gdbtypes.c (check_stub_method): Make static.
2937 (check_stub_method_group): New function.
2938 * gdbtypes.h: Update prototypes.
2939 * cp-support.c: New file.
2940 * cp-support.h: New file.
2942 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2943 (update_method_name_from_physname): New function.
2944 (read_member_functions): Correct method names for operators
2945 and v3 constructors/destructors. Separate v2 constructors and
2947 * Makefile.in (stabsread.o): Update dependencies.
2948 (SFILES): Add cp-support.c.
2949 (COMMON_OBS): Add cp-support.o.
2950 (cp_support_h, cp-support.o): Add.
2952 * cp-valprint.c (cp_print_class_method): Call
2953 check_stub_method_group instead of check_stub_method. Remove
2955 * p-valprint.c (pascal_object_print_class_method): Likewise.
2956 * valops.c (search_struct_method): Likewise.
2957 (find_method_list, value_struct_elt_for_reference): Likewise.
2959 2002-09-13 Andrew Cagney <cagney@redhat.com>
2961 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2962 * gdbarch.h, gdbarch.c: Regenerate.
2964 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2966 * frame.c (find_saved_register): Delete function.
2967 * frame.h (find_saved_register): Delete declaration.
2970 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2972 * mips-tdep.c (read_next_frame_reg): Re-hack using
2973 frame_register_unwind.
2975 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2977 * mips-tdep.c (mips_get_saved_register): Re-hack using
2978 frame_register_unwind.
2980 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2982 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2983 vector. Will be useful for Interix.
2984 * gdbarch.h, gdbarch.c: Regenerate.
2986 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2987 name of the malloc function by NAME_OF_MALLOC.
2989 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2991 * value.h (find_function_in_inferior): Add const keyword to
2992 one of the parameters. Allows us to invoke this function with
2994 * valops.c (find_function_in_inferior): Likewise.
2996 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2998 * exec.c (xfer_memory): Fix compilation warning with old versions
3000 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3002 2002-09-12 David Carlton <carlton@math.stanford.edu>
3004 * symtab.h: Run through gdb_indent.h.
3005 Add 2002 to Copyright year list.
3007 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3009 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3011 * MAINTAINERS: Add myself to write after approval list.
3013 2002-09-11 J. Brobecker <brobecker@gnat.com>
3015 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3017 2002-09-11 J. Brobecker <brobecker@gnat.com>
3019 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3022 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3024 * procfs.c (do_detach): Clear current signal, not just fault.
3025 Corrects problem with breakpoint trap signal leaking to detached
3028 2002-09-10 Michael Snyder <msnyder@redhat.com>
3030 * buildsym.c (finish_block): Protect against null pointer.
3032 2002-09-10 Andrew Cagney <cagney@redhat.com>
3034 * infcmd.c (default_print_registers_info): Send all output to
3035 ``file'' instead of ``gdb_stdout''.
3037 2002-09-10 Michael Snyder <msnyder@redhat.com>
3039 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3040 LONGEST, and use signed register read (addresses are sign-
3043 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3045 * event-loop.c (gdb_do_one_event): Make public.
3046 * event-loop.h (gdb_do_one_event): Declare.
3048 2002-09-10 Jeff Law <law@redhat.com>
3050 * infttrace.c (child_resume): Simplify and rework to avoid
3053 2002-09-09 Fred Fish <fnf@intrinsity.com>
3055 * printcmd.c (print_scalar_formatted): "len" is the number of
3056 target bytes, NOT the number of target bits.
3058 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3060 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3061 * top.c (init_main): Set rl_terminal_name.
3063 2002-09-08 Aidan Skinner <aidan@velvet.net>
3065 * ada-lang.c (ada_array_bound, ada_type_match,
3066 _initialize_ada_language): Fix K&R definitions.
3067 * ada-tasks.c (get_current_task): Fix K&R definitions.
3068 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3070 2002-09-07 Christopher Faylor <cgf@redhat.com>
3072 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3075 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3077 * i386-tdep.c (i386_register_virtual_type,
3078 i386_register_convertible, i386_register_convert_to_virtual,
3079 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3080 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3081 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3082 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3083 Don't set push_arguments twice.
3085 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3086 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3087 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3088 sigtramp_end to NULL.
3089 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3091 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3093 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3096 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3097 * gdbarch.h, gdbarch.c: Re-generate.
3098 * blockframe.c (find_pc_sect_partial_function): Convert to use
3099 SIGTRAMP_START_P predicate.
3101 2002-09-05 Michael Snyder <msnyder@redhat.com>
3103 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3104 generic_dummy_frame method and old method. Also distinguish
3105 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3106 (arm_extract_return_value): Use new regcache method.
3108 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3109 adjustment that doesn't conform to the ABI.
3110 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3111 saved regcache, not from current regcache.
3113 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3115 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3118 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3120 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3121 if arm_apcs_32 is false.
3123 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3125 GDB 5.3 branch created.
3127 2002-09-03 Theodore A. Roth <troth@verinet.com>
3129 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3130 generic_unwind_get_saved_register.
3132 2002-09-03 David Carlton <carlton@math.stanford.edu>
3134 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3135 argument (PR gdb/653). Update call to smash_to_method_type.
3136 (read_structure_scope): Update call to dwarf2_add_member_fn.
3138 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3140 * x86-64-linux-tdep.c: Include gdb_string.h
3141 * x86-64-linux-nat.c: Ditto.
3143 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3145 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3146 when YYDEBUG is set to 1.
3147 * c-exp.y: Likewise.
3148 * f-exp.y: Likewise.
3149 * jv-exp.y: Likewise.
3150 * m2-exp.y: Likewise.
3151 * p-exp.y: Likewise.
3153 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3155 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3157 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3158 solib_svr4_fetch_link_map_offsets to
3159 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3160 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3161 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3162 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3163 solib-svr4.o, and solib-legacy.o.
3164 * config/i386/tm-nbsd.h: Include solib.h.
3166 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3168 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3169 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3170 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3171 comment noting that this needs its own target configuration.
3172 * config/i386/nbsd.mt: New file.
3173 * config/i386/nbsdaout.mt: Remove.
3174 * config/i386/nbsdelf.mt: Ditto.
3175 * config/i386/tm-nbsdaout.h: Ditto.
3177 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3179 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3180 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3181 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3183 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3184 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3185 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3187 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3189 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3190 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3191 * i386-tdep.h (i386bsd_init_abi): New prototype.
3192 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3193 function declaration.
3194 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3195 for NetBSD-a.out or NetBSD-ELF.
3196 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3197 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3198 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3199 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3201 (i386nbsd_pc_in_sigtramp): New function.
3202 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3203 i386nbsd_pc_in_sigtramp.
3204 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3205 and i386nbsdelf_init_abi OS ABI handlers.
3206 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3207 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3209 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3211 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3212 registers if the target really has them.
3214 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3216 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3219 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3221 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3223 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3224 (alphanbsd_skip_sigtramp_frame): New functions.
3225 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3226 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3227 to alphanbsd_sigcontext_addr.
3229 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3231 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3233 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3234 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3235 nbsd_pc_in_sigtramp.
3236 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3237 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3238 * nbsd-tdep.c: Include gdb_string.h.
3239 (nbsd_pc_in_sigtramp): New function.
3240 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3241 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3242 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3243 ppcnbsd_pc_in_sigtramp.
3244 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3245 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3246 shnbsd_pc_in_sigtramp.
3247 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3248 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3249 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3251 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3253 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3254 watchpoints to NULL.
3255 (insert_breakpoints): set val field of watchpoints if NULL.
3258 2002-08-29 Jim Blandy <jimb@redhat.com>
3260 * symtab.c (lookup_symbol_aux): In the cases where we find a
3261 minimal symbol of an appropriate name and use its address to
3262 select a symtab to read and search, use `name' (as passed to us)
3263 as the demangled name when searching the symtab's global and
3264 static blocks, not the minsym's name.
3266 2002-08-29 Keith Seitz <keiths@redhat.com>
3268 * stack.c (print_frame_info_base): Always set current_source_symtab
3269 and current_source_line.
3271 2002-08-29 Donn Terry <donnte@microsoft.com>
3273 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3275 2002-08-28 Keith Seitz <keiths@redhat.com>
3277 * stack.c (select_frame): Add FIXME concerning selected-frame
3279 (select_frame_command): Send selected-frame-level-changed
3280 event notification, but only if the level actually changed.
3281 (up_silently_base): Add selected-frame-level-changed event
3283 (down_silently_base): Likewise.
3285 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3287 * Makefile.in: Update dependencies for all gdb/*.c files.
3289 2002-08-27 Tom Tromey <tromey@redhat.com>
3291 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3292 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3293 Update dependencies.
3294 * i387-tdep.c: Include gdb_string.h.
3295 * osabi.c: Likewise.
3296 * i386-linux-nat.c: Likewise.
3297 * lin-lwp.c: Likewise.
3298 * ax-gdb.c: Likewise.
3299 * signals/signals.c: Likewise.
3300 * jv-valprint.c: Likewise.
3301 * p-lang.c: Likewise.
3302 * c-valprint.c: Likewise.
3303 * cp-abi.c: Likewise.
3305 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3307 * cli/cli-script.h (copy_command_lines): Export.
3308 * breakpoint.c: Include cli/cli-script.h.
3309 * Makefile.in (breakpoint.o): Update dependencies.
3311 2002-08-26 Michael Snyder <msnyder@redhat.com>
3313 * breakpoint.c (insert_breakpoints): Protect all references
3314 to 'process_warning'. Shorten long lines.
3316 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3318 * cli/cli-script.c (copy_command_lines): New function.
3319 * defs.h (copy_command_lines): Export.
3320 * testsuite/gdb.base/commands.exp: New tests for commands
3321 attached to a temporary breakpoint, and for commands that
3322 delete the breakpoint they are attached to.
3324 2002-08-26 Michael Snyder <msnyder@redhat.com>
3326 * breakpoint.c (bpstat_stop_status): Instead of copying the
3327 pointer to the breakpoint commands struct, make a new copy
3328 of the struct and point to that.
3329 (bpstat_clear): Free the commands struct.
3330 (bpstat_clear_actions): Free the commands struct.
3331 (bpstat_do_actions): Free the command actions. Also execute
3332 the local cleanups, instead of deleting them.
3333 (delete_breakpoint): Leave the commands field of the bpstat
3334 chain alone -- it will be freed later.
3336 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3338 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3339 deleted in 2002-08-20 commit. This function is still used by
3342 2002-08-26 Keith Seitz <keiths@redhat.com>
3344 * gdb-events.sh: Add selected-frame-level-changed event.
3345 * gdb-events.c: Regenerated.
3346 * gdb-events.h: Regenerated.
3348 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3351 * inflow.c (terminal_save_ours): New function to save terminal
3353 * inferior.h (terminal_save_ours): Declare.
3354 * target.c (debug_to_terminal_save_ours): New function.
3355 (cleanup_target): Defaults to_terminal_save_ours.
3356 (update_current_target): Inherit to_terminal_save_ours.
3357 (setup_target_debug): Set to_terminal_save_ours.
3358 * target.h (target_terminal_save_ours): New to save terminal settings.
3359 (target_ops): New member to_terminal_save_ours.
3360 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3361 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3362 * inftarg.c (init_child_ops): Likewise.
3363 * m3-nat.c (init_m3_ops): Likewise.
3364 * procfs.c (init_procfs_ops): Likewise.
3365 * wince.c (init_child_ops): Likewise.
3366 * win32-nat.c (init_child_ops): Likewise.
3367 * sol-thread.c (init_sol_thread_ops): Likewise.
3369 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3371 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3372 use regcache_* functions.
3373 (i386_gdbarch_init): Set store_return_value instead of
3374 deprecated_store_return_value.
3376 * regcache.c (regcache_raw_write_signed,
3377 regcache_raw_write_unsigned): New functions.
3378 * regcache.h (regcache_raw_write_signed,
3379 regcache_raw_write_unsigned): New prototypes.
3381 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3383 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3384 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3385 source file dependencies. Cleanup corresponding generator rules.
3387 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3389 * regcache.h (register_offset_hack): Declare.
3390 (regcache_cooked_read_using_offset_hack): Declare.
3391 (regcache_cooked_write_using_offset_hack): Declare.
3393 * regcache.c (register_offset_hack): New function.
3394 (regcache_cooked_read_using_offset_hack): New function.
3395 (regcache_cooked_write_using_offset_hack): New function.
3396 (regcache_dump): Check that the registers, according to their
3397 offset, are packed hard against each other.
3398 (cooked_xfer_using_offset_hack): New function.
3400 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3402 * regcache.c (struct regcache_descr): Add field register_type.
3403 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3405 (init_regcache_descr): Initialize register_type. Pass the descr
3406 to init_legacy_regcache_descr. Use register_type instead of
3407 REGISTER_VIRTUAL_TYPE.
3408 (register_type): New function.
3409 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3410 * regcache.h (register_type): Declare.
3412 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3414 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3415 instead of deprecated_store_return_value. Fix fallout from
3416 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3418 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3420 * regcache.c (max_register_size): New function.
3421 (init_legacy_regcache_descr): Ensure that max_register_size is
3422 large enough for REGISTER_VIRTUAL_SIZE.
3423 * regcache.h (max_register_size): Declare.
3425 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3427 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3429 (e500_extract_return_value): Change type of valbuf pointer to
3432 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3434 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3437 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3438 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3439 long long) to prevent compiler warning on 64-bit systems.
3441 2002-08-23 Andrew Cagney <cagney@redhat.com>
3443 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3444 (DEPRECATED_STORE_RETURN_VALUE): New method.
3445 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3446 * gdbarch.h, gdbarch.c: Re-generate.
3448 * values.c (set_return_value): Pass current_regcache to
3450 * arch-utils.h (legacy_store_return_value): Declare.
3451 * arch-utils.c (legacy_store_return_value): New function.
3452 (legacy_extract_return_value): Update parameters.
3454 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3456 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3457 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3458 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3459 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3460 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3461 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3462 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3463 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3464 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3465 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3468 * i386-tdep.c (i386_extract_return_value): Update.
3469 * arch-utils.c (legacy_extract_return_value): Update.
3470 * frv-tdep.c (frv_gdbarch_init): Update.
3471 * cris-tdep.c (cris_gdbarch_init): Update.
3472 * d10v-tdep.c (d10v_gdbarch_init): Update.
3473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3474 * m68k-tdep.c (m68k_gdbarch_init): Update.
3475 * mcore-tdep.c (mcore_gdbarch_init): Update.
3476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3477 * s390-tdep.c (s390_gdbarch_init): Update.
3478 * sparc-tdep.c (sparc_gdbarch_init): Update.
3479 * sh-tdep.c (sh_gdbarch_init): Update.
3480 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3481 * v850-tdep.c (v850_gdbarch_init): Update.
3482 * avr-tdep.c (avr_gdbarch_init): Update.
3483 * ia64-tdep.c (ia64_gdbarch_init): Update.
3484 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3485 * vax-tdep.c (vax_gdbarch_init): Update.
3486 * alpha-tdep.c (alpha_gdbarch_init): Update.
3487 * arm-tdep.c (arm_gdbarch_init): Update.
3488 * mips-tdep.c (mips_gdbarch_init): Update.
3489 * i386-tdep.c (i386_gdbarch_init): Update.
3491 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3493 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3494 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3496 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3498 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3501 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3503 * infrun.c (handle_inferior_event): Move a comment outside of a
3504 function call, in order to avoid indent reformatting this part
3505 of the code in an unreadable way.
3507 2002-08-23 Grace Sainsbury <graces@redhat.com>
3509 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3510 when breakpoints fail. Move general breakpoint error messages to
3512 * breakpoint.c (insert_breakpoints): Change warnings when
3513 breakpoints are nto inserted to specify the type. Remove call to
3514 memory_error when hardware breakpoints can't be inserted. Remove
3515 multiple calls to warning so all messages are sent to the user at
3517 (delete_breakpoints): Make insert error messsages more explicit.
3519 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3521 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3522 gdbserver/ChangeLog.
3524 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3526 * i386-tdep.c: Include "objfiles.h".
3527 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3528 skip_trampoline_code.
3529 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3530 (CPLUS_MARKER): Define to '.'.
3532 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3534 (linux_corefile_thread_callback): Increase args->num_notes.
3535 (linux_make_note_section): Initialize thread_args.num_notes, and
3536 use it to determine whether notes for any threads were created.
3538 2002-08-23 Donn Terry <donnte@microsoft.com>
3540 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3541 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3543 (write_with_trace): Conditionalize out the switch branch handling
3544 PCSHOLD if the corresponding macro is not defined. Likewise for
3545 PRSABORT and PRSTOP.
3546 This change will be needed by the Interix port.
3548 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3551 write_register wherever possible instead of manipulating the
3552 register bytes directly.
3553 Assign VALUE_CONTENTS to a variable and use that.
3554 The GPR numbers are now dependent on the architecture.
3556 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3558 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3560 (skip_prologue): Add support for BookE/e500 instructions.
3561 (e500_extract_return_value): New function.
3562 (frame_get_saved_regs): Add support for saving ev registers and
3564 (e500_store_return_value): New function.
3565 (rs6000_gdbarch_init): Move up default intializations of
3566 deprecated_extract_return_value and store_return_value. Overwrite
3567 init of store_return_value with e500 specific version.
3568 Set extract_return_value for e500.
3570 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3572 * blockframe.c (generic_call_dummy_register_unwind): Use
3573 regcache_cooked_read to catch cases in which the variable is
3574 stored in a pseudo register.
3576 2002-08-22 Andrew Cagney <cagney@redhat.com>
3578 * NEWS: Mention that the i960 has been made obsolete.
3579 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3581 (remote-nrom.o): Obsolete target.
3582 (remote-nindy.o, i960-tdep.o): Ditto.
3583 * remote-nrom.c: Make file obsolete.
3584 * remote-nindy.c, remote-vx960.c: Ditto.
3585 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3586 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3587 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3588 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3589 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3590 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3591 i960-*-vxworks* obsolete.
3592 * MAINTAINERS: Note that the i960 is obsolete.
3594 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3596 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3597 detach to allow reinitialization.
3599 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3601 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3604 2002-08-22 Jim Blandy <jimb@redhat.com>
3606 * coffread.c (coff_symfile_read): Don't try to read the line
3607 number table from disk if the image file doesn't have a symbol
3608 table; we'll never actually look at the info anyway, and Windows
3609 ships DLL's with bogus file offsets for the line number data.
3611 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3613 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3616 2002-08-21 Michael Snyder <msnyder@redhat.com>
3618 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3619 (MSYMBOL_SIZE): Replace macro with function.
3620 (DEFAULT_MIPS_TYPE): Delete unused macro.
3621 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3622 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3624 2002-08-21 Jim Blandy <jimb@redhat.com>
3626 * valops.c (value_cast): Simplify and correct logic for doing a
3627 static cast from a pointer to a base class to a pointer to a
3630 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3632 * infcmd.c (default_print_registers_info): Replace
3634 (registers_info): Use gdbarch_print_registers_info instead of
3636 * inferior.h (default_print_registers_info): Replace
3638 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3639 (DO_REGISTERS_INFO): Change to a predicate function.
3640 * gdbarch.h, gdbarch.c: Regenerate.
3642 2002-08-21 Keith Seitz <keiths@redhat.com>
3644 * gdb-events.sh: Add target-changed event.
3645 * gdb-events.c: Regenerated.
3646 * gdb-events.c: Regenerated.
3647 * valops.c (value_assign): Add target-changed event notification
3648 to inlval_register, lval_memory, and lval_reg_frame_relative.
3650 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3652 * NEWS: Add an entry regarding the improvement of the next/step
3653 operation on Alpha Tru64 multi-processor machines.
3655 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3657 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3659 * Makefile.in: Update all _h macro definitions.
3660 * Makefile.in (install-gdbtk): Move to install section.
3661 (rdi-share/libangsd.a): Move to end of file.
3663 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3665 * frame.c (frame_register_unwind): When a register, set addrp to
3666 the register's byte.
3668 2002-08-20 Michael Snyder <msnyder@redhat.com>
3670 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3671 used locally, so move them from the target machine header to here.
3672 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3673 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3675 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3677 2002-08-20 Andrew Cagney <cagney@redhat.com>
3679 * NEWS: Mention that the Apollo line was made obsolete.
3680 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3681 m68*-hp-hpux* obsolete.
3682 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3683 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3684 * buildsym.c (make_blockvector): Make static.
3685 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3686 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3687 (ALLDEPFILES): Remove dstread.c.
3688 (dstread.o): Obsolete make rule.
3689 * dstread.c: Makefile obsolete.
3691 * config/m68k/hp300hpux.mt: Ditto.
3692 * config/m68k/hp300hpux.mh: Ditto.
3693 * config/m68k/hp300bsd.mt: Ditto.
3694 * config/m68k/hp300bsd.mh: Ditto.
3695 * config/m68k/apollo68b.mt: Ditto.
3696 * config/m68k/apollo68v.mh: Ditto.
3697 * config/m68k/apollo68b.mh: Ditto.
3699 2002-08-20 Michael Snyder <msnyder@redhat.com>
3701 * mips-tdep.c (mips_in_return_stub): Make static.
3702 (mips_gdbarch_init): Set in_solib_return_trampoline.
3703 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3705 2002-08-20 Michael Snyder <msnyder@redhat.com>
3707 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3708 * gdbarch.c, gdbarch.h: Regenerate.
3709 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3711 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3713 2002-08-20 Michael Snyder <msnyder@redhat.com>
3715 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3716 (mips_gdbarch_init): Set skip_trampoline_code,
3717 in_solib_call_trampoline.
3718 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3719 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3721 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3723 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3725 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3726 vector type for ev registers.
3727 (e500_pseudo_register_read): New function.
3728 (e500_pseudo_register_write): New function.
3729 (e500_dwarf2_reg_to_regnum): New function.
3730 (PPC_UISA_NOFP_SPRS): New macro.
3731 (PPC_EV_REGS): New macro.
3732 (PPC_GPRS_PSEUDO_REGS): New macro.
3733 (registers_e500): New register set for e500.
3734 (variants): Add e500 variant.
3735 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3736 before setting architectural dependent variations. Initialize ev
3737 registers numbers. Add case for e500 architecture. Set the
3738 number of pseudo registers.
3740 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3742 * rs6000-tdep.c: Clean up comments.
3744 2002-08-20 Andrew Cagney <cagney@redhat.com>
3746 * h8300-tdep.c: Re-indent file.
3748 2002-08-20 Jim Blandy <jimb@redhat.com>
3750 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3753 2002-08-20 Keith Seitz <keiths@redhat.com>
3755 * breakpoints.c (watch_command_1): Use internal breakpoint
3756 when setting a watchpoint_scope breakpoint.
3758 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3760 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3761 (build_builtin_type_vec64i): Ditto.
3762 (build_builtin_type_vec128): Ditto.
3763 (build_builtin_type_vec128i): Ditto.
3765 2002-08-19 Michael Snyder <msnyder@redhat.com>
3767 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3768 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3769 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3770 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3771 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3772 CALL_DUMMY_ADDRESS): Delete.
3773 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3774 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3775 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3776 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3777 push_return_address.
3778 (mips_register_raw_size, mips_eabi_use_struct_convention,
3779 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3780 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3781 mips_init_extra_frame_info, mips_eabi_push_arguments,
3782 mips_n32n64_push_arguments, mips_push_return_address,
3783 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3784 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3786 2002-08-19 Michael Snyder <msnyder@redhat.com>
3788 * mips-tdep.c (mips_frame_num_args): New function.
3789 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3790 frame_saved_pc, frame_args_address, frame_locals_address,
3791 frame_num_args, and frame_args_skip.
3792 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3793 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3794 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3795 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3797 2002-08-20 Michael Snyder <msnyder@redhat.com>
3799 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3800 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3801 * mips-tdep.c (mips_store_struct_return): New function.
3802 (mips_extract_struct_value_address): New function.
3803 (mips_gdbarch_init): Set store_struct_return and
3804 extract_struct_value_address.
3806 2002-08-20 David Carlton <carlton@math.stanford.edu>
3808 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3809 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3810 (read_file_scope): Check that line_header is nonzero before
3811 decoding macro information.
3813 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3815 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3816 flag the general-purpose registers as floating-point on targets
3817 that don't support the floating-point registers.
3819 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3821 * rs6000-tdep.c (altivec_register_p): Delete.
3822 (rs6000_do_altivec_registers): Delete.
3823 (rs6000_altivec_registers_info): Delete.
3824 (rs6000_do_registers_info): Delete.
3825 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3826 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3828 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3830 * infcmd.c (do_registers_info): Print vector registers in hex
3832 (print_vector_info): Check that printing registers
3834 (print_float_info): Ditto.
3836 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3838 * mips-tdep.c (mips_gdbarch_init): Update.
3839 (mips_o32_extract_return_value): Rewrite.
3840 (mips_o32_store_return_value): Rewrite.
3841 (mips_o32_xfer_return_value): New function.
3842 (mips_xfer_register): Tweak debug print message. Allow for
3843 buf_offset when dumping the value transfered.
3845 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3847 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3848 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3849 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3850 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3851 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3853 2002-08-14 Michael Snyder <msnyder@redhat.com>
3855 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3857 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3859 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3861 (P): New macro to define a register as a pseudo register.
3862 (R, R4, R8, R16, FR32, R64, R0): Updated.
3863 (struct variant): Add new fields for number of pseudo registers
3864 and number of total registers.
3865 (tot_num_registers): New macro replacing....
3866 (num_registers): ...deleted macro.
3867 (num_registers): New function.
3868 (num_pseudo_registers): New function.
3869 (variants): Update all variants to intialize new fields correctly.
3870 Postpone initialization of number of pseudo regs and real regs.
3871 (init_variants): New function.
3872 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3875 2002-08-19 David Carlton <carlton@math.stanford.edu>
3877 * valops.c (search_struct_field): Change error message to treat
3878 return value of 0 from value_static_field as meaning that field is
3880 (value_struct_elt_for_reference): Ditto.
3881 * values.c (value_static_field): Treat an unresolved location the
3882 same as a nonexistent symbol. Fix PR gdb/635.
3883 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3884 enclosed. Fix PR gdb/574.
3885 * MAINTAINERS: Add self to Write After Approval list.
3887 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3889 * mips-tdep.c (mips_xfer_register): New function.
3890 (mips_n32n64_extract_return_value): Rewrite.
3891 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3892 instead of deprecated_extract_return_value.
3894 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3896 * rs6000-tdep.c (TDEP): Delete macro.
3897 (branch_dest): Replace use of TDEP macro with its body.
3898 (rs6000_pop_frame): Ditto.
3899 (rs6000_push_arguments): Ditto.
3900 (rs6000_skip_trampoline_code): Ditto.
3901 (rs6000_frame_saved_pc): Ditto.
3902 (rs6000_frame_chain): Ditto.
3903 (rs6000_register_name): Ditto.
3904 (rs6000_register_byte): Ditto.
3905 (rs6000_register_raw_size): Ditto.
3906 (rs6000_register_virtual_type): Ditto.
3907 (rs6000_register_convertible): Ditto.
3908 (rs6000_convert_from_func_ptr_addr): Ditto.
3910 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3912 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3914 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3915 MIPS_LINUX_JB_ELEMENT_SIZE.
3916 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3917 for MAX_REGISTER_RAW_SIZE arrays.
3918 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3919 MIPS_LINUX_JB_ELEMENT_SIZE.
3921 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3923 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3925 2002-08-19 Aidan Skinner <aidan@velvet.net>
3927 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3928 ada-valprint.c ada-tasks.c.
3929 (YYFILES): Add ada-exp.y.
3930 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3931 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3932 (ada-exp.tab.o): New target.
3934 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3936 * regcache.c (regcache_xfer_part): New function.
3937 (regcache_raw_read_part): New function.
3938 (regcache_raw_write_part): New function.
3939 (regcache_cooked_read_part): New function.
3940 (regcache_cooked_write_part): New function.
3941 * regcache.h (regcache_raw_read_part): Declare.
3942 (regcache_raw_write_part): Declare.
3943 (regcache_cooked_read_part): Declare.
3944 (regcache_cooked_write_part): Declare.
3946 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3948 * remote.c (remote_open_1): Add async_p.
3949 (remote_async_open_1): Delete.
3950 (open_remote_target): Delete.
3951 (remote_open, extended_remote_open): Update calls to remote_open_1.
3952 (remote_async_open, extended_remote_async_open): Call
3953 remote_open_1 instead of remote_async_open_1.
3955 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3957 * blockframe.c: Fix a few coding standard violations.
3959 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3961 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3963 * config/i386/tm-i386sco5.h: ... here. File removed.
3964 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3966 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3967 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3968 (TM_FILE): Set to tm-i386.h.
3969 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3970 * config/i386/tm-i386v.h: Remove file.
3971 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3972 instead of "i386/tm-i386v.h".
3973 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3974 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3976 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3977 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3980 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3982 * config/i386/nm-i386v.h: Add protection against
3984 (i386_register_u_addr): Remove prototype.
3985 (register_u_addr): New prototype.
3986 (REGISTER_U_ADDR): Redefine accordingly.
3987 * i386v-nat.c: Improve several comments.
3988 (i386_register_u_addr): Change signature and rename to
3989 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3992 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3994 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3995 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3996 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3997 deprecated_extract_return_value.
3998 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3999 rename mips_o32o64_push_arguments.
4000 (mips_gdbarch_init): Update.
4001 (mips_extract_return_value): Delete.
4002 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4003 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4004 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4005 (mips_n32n64_extract_return_value): Clone
4006 mips_extract_return_value.
4007 (mips_store_return_value): Delete.
4008 (mips_o32_store_return_value): Clone mips_store_return_value.
4009 (mips_o64_store_return_value): Clone mips_store_return_value.
4010 (mips_eabi_store_return_value): Clone mips_store_return_value.
4011 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4013 2002-08-18 Aidan Skinner <aidan@velvet.net>
4015 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4016 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4018 2002-08-18 Aidan Skinner <aidan@velvet.net>
4020 * ada-lang.c: Run through gdb_indent.sh.
4021 * ada-lang.h: Run through gdb_indent.sh.
4022 * ada-tasks.c: Run through gdb_indent.sh.
4023 * ada-typeprint.c: Run through gdb_indent.sh.
4024 * ada-valprint.c: Run through gdb_indent.sh.
4026 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4028 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4031 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4033 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4035 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4036 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4038 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4039 write_register_gen instead of write_register_bytes.
4041 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4042 i[3456]-*-osf1mk* configurations have been made obsolete.
4043 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4044 i[3456]86-*-osf1mk* hosts obsolete.
4045 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4047 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4048 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4049 config/i386/i386m3.mt, config/i386/nm-m3.h,
4050 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4051 config/i386/i386mk.mh, config/i386/i386mk.mt,
4052 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4054 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4055 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4056 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4058 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4060 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4061 (hppa_value_returned_from_stack): Declare.
4062 (hppa_extract_return_value): Declare.
4063 * config/pa/hppa.mt: New file.
4064 * configure.tgt: Recognize hppa*-*-*.
4065 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4067 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4069 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4072 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4074 * top.c (gdb_rl_operate_and_get_next): Make sure
4075 operate-and-get-next functions correctly even when the history
4076 list is completely filled.
4078 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4080 * MAINTAINERS (Target Instruction Set Architectures): Rename
4081 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4082 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4083 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4084 already listed under Host/Native.
4086 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4087 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4090 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4092 * config/ia64/ia64.mt: New file.
4093 * config/alpha/alpha.mt: New file.
4094 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4095 ia64-linux-gnu. Mention that ia64-elf is broken.
4096 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4098 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4100 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4101 generic_func_frame_valid instead of func_frame_valid.
4103 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4105 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4106 procfs appears to be broken when debugging on multi-processor
4107 machines. So enable software single stepping in order to avoid
4108 using the procfs interface to do next/step operations, using
4109 internal breakpoints instead.
4111 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4112 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4113 make this pc address equal to the value it would have if the
4114 system stepping capability was used. Also set a new flag used
4115 to ensure that we don't readjust the PC one more time later.
4117 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4118 address by DECR_PC_AFTER_BREAK when software single step is
4119 in use for this architecture, as this has already been taken
4120 care of in handle_inferior_event().
4122 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4124 * infrun.c (handle_inferior_event): Minor reformatting, to make
4125 a rather long condition expression easier to read.
4127 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4129 * Makefile.in (gdbtk.o): Move to end of file.
4130 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4131 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4132 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4133 (gdbtk-wrapper.o, gdbres.o): Ditto.
4135 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4137 * Makefile.in (copying.o): Separate out compile rule.
4138 (hpux-thread.o, procfs.o, signals.o): Ditto.
4139 (v850ice.o, z8k-tdep.o): Ditto.
4140 (tui-file.o): Move to TUI section.
4141 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4142 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4144 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4146 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4147 skip_trampoline_code, for better namespace-proofing.
4149 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4151 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4153 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4155 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4157 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4158 signal, check whether we hit a breakpoint before checking for a
4159 single step breakpoint. Otherwise, GDB fails to notice that a
4160 breakpoint has been hit when stepping onto a breakpoint.
4162 2002-08-16 Keith Seitz <keiths@redhat.com>
4164 * gdb-events.sh (clear_gdb_event_hooks): New function.
4165 * gdb-events.c: Regenerate.
4166 * gdb-events.h: Regenerate.
4168 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4170 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4171 not_a_sw_breakpoint.
4172 * breakpoint.h (bpstat_stop_status): Add parameter names.
4174 2002-08-16 Grace Sainsbury <graces@redhat.com>
4176 * remote.c (remote_insert_hw_breakpoint)
4177 (remote_remove_hw_breakpoint): Fix calculation of length field
4180 2002-08-15 Michael Snyder <msnyder@redhat.com>
4182 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4183 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4184 (supply_fpregset): Ditto.
4186 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4187 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4188 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4189 (TARGET_READ_SP): Delete.
4190 (DO_REGISTERS_INFO): Delete.
4191 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4193 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4194 from macros to functions.
4196 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4197 (mips_register_convertible, mips_register_convert_to_virtual,
4198 mips_register_convert_to_raw): Make static.
4199 (mips_read_sp): New function.
4200 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4201 (mips_do_registers_info): Make static.
4202 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4203 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4204 (mips_register_convert_from_type, mips_register_convert_to_type):
4206 (mips_gdbarch_init): Set up function_start_offset,
4207 register_virtual_size, pc_in_sigtramp.
4209 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4211 * infcmd.c (vector_info): New function.
4212 (_initialize_infcmd): Add command "info vector".
4213 (print_vector_info): New function.
4215 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4216 * gdbarch.h, gdbarch.c: Regenerate.
4218 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4220 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4221 ``print_all''. Only print vector registers when ``print_all''.
4223 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4225 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4226 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4228 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4229 Add `args' parameter.
4230 * gdbarch.h, gdbarch.c: Regenerate.
4232 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4234 * infcmd.c (float_info): Call print_float_info.
4235 (print_float_info): New function. By default, print the
4236 floating-point registers.
4238 * arch-utils.h (default_print_float_info): Delete declaration.
4239 * arch-utils.c (default_print_float_info): Delete function.
4241 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4243 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4246 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4249 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4250 * configure.host: Make i[3456]86-*-aix host obsolete.
4251 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4252 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4253 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4254 config/i386/xm-i386aix.h: Make files obsolete.
4255 * i386aix-nat.c: Make file obsolete.
4256 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4257 (i386aix-nat.o): Make target obsolete.
4259 * config/i386/nm-gnu.h: Removed.
4260 * config/i386/nm-i386gnu.h: New file.
4261 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4262 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4264 * config/i386/tm-i386gnu.h: ... here. Removed.
4265 * config/i386/xm-i386gnu.h: Removed.
4266 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4267 (NAT_FILE): Set to nm-i386gnu.h.
4268 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4269 * i386-tdep.c: New file.
4270 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4271 (i386gnu-tdep.o): Specify dependencies.
4273 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4275 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4276 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4277 Adjust a few comments to reflect reality a bit closer.
4278 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4279 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4280 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4281 target_insert_watchpoint, target_remove_watchpoint):
4283 * config/i386/nm-i386sco5.h: ... here.
4284 (kernel_u_size): Add prototype. Improve a few comments and add
4285 protection against multiple inclusion.
4287 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4290 * uw-thread.c (SP_ARG0): Define if not already defined.
4291 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4293 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4295 * config/i386/tm-i386.h: Don't include "regcache.h".
4297 * i387-tdep.h (i387_print_float_info): New prototype.
4298 * i387-tdep.c (print_i387_value, print_i387_ext,
4299 print_i387_status_word, print_i387_control_word): Add `struct
4300 ui_file *' argument and use it for output.
4301 (i387_print_float_info): Renamed from i387_float_info. Add
4302 `struct gdbarch *' and `struct ui_file *' arguments and use the
4304 * i386-tdep.c: Include "i387-tdep.h".
4305 (i386_gdbarch_init): Set print_float_info.
4306 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4307 (FLOAT_INFO): Remove define.
4309 2002-08-13 Michael Snyder <msnyder@redhat.com>
4311 * mips-tdep.c (mips_push_arguments): Rename to
4312 mips_eabi_push_arguments, and tune for EABI.
4313 (MIPS_REGS_HAVE_HOME_P): Delete.
4314 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4315 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4316 Delete references to mips_regs_have_home_p.
4318 2002-08-14 Keith Seitz <keiths@redhat.com>
4320 * Makefile.in (install-gdbtk): Create insight plugin directory.
4321 Install plugins.tcl file.
4323 2002-08-14 Keith Seitz <keiths@redhat.com>
4325 * configure.in: Move SUBDIRS to near top of the file so that
4326 --enable options may add things to it.
4327 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4328 * configure: Regenerate.
4330 2002-08-13 Michael Snyder <msnyder@redhat.com>
4332 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4333 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4334 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4336 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4338 * vax-tdep.c (vax_get_saved_register): Delete function.
4339 (vax_gdbarch_init): Update.
4340 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4341 (ns32k_gdbarch_init): Update.
4342 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4343 (alpha_gdbarch_init): Update.
4345 2002-08-13 Andrew Cagney <cagney@redhat.com>
4347 * regcache.c (init_regcache_descr): Overallocate the
4348 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4349 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4351 (set_register_cached): Add range checking assertions. Use
4354 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4356 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4357 numbers for MMX registers.
4359 2002-08-13 Andrew Cagney <cagney@redhat.com>
4361 * i386-tdep.c (i386_gdbarch_init): Use
4362 generic_unwind_get_saved_register.
4364 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4366 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4367 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4369 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4370 Delete. Add comment regarding this now-deleted target method.
4372 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4374 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4375 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4376 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4377 real PC and the page number (if it's within the memory bank window).
4378 (m68hc11_pseudo_register_write): Likewise when saving.
4379 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4380 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4381 (m68hc11_register_raw_size): And use 32-bit for it.
4382 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4383 16K memory bank is used by the prog; also use the virtual pc.
4385 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4387 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4388 (m68hc11_gdbarch_init): Install it in gdbarch.
4389 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4390 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4391 (MSYMBOL_SIZE): New for documentation.
4392 (insn_return_kind): Enum to specify how a function returns.
4393 (frame_extra_info): Cleanup and record the return mode.
4394 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4395 register in address computation.
4396 (m68hc11_get_return_insn): New to obtain the return instruction used
4398 (m68hc11_frame_init_saved_regs): Take into account the return
4399 instruction used by the function for far and interrupt functions.
4400 (m68hc11_init_extra_frame_info): Take into account page register.
4401 (m68hc11_frame_args_address): Adjust according to the return mode.
4402 (show_regs): Print page register only when it's used.
4404 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4406 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4407 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4408 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4410 (m68hc11_register_raw_size): Likewise.
4412 2002-08-13 Andrew Cagney <cagney@redhat.com>
4414 * i386-tdep.c (i386_register_name): Handle mmx registers.
4415 (mmx_regnum_p): New function.
4416 (i386_mmx_names): New array.
4417 (mmx_num_regs): New variable.
4418 (i386_pseudo_register_read): New function.
4419 (i386_pseudo_register_write): New function.
4420 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4422 * regcache.c (regcache_raw_read_unsigned): New function.
4423 (regcache_raw_read_signed): New function.
4424 * regcache.h (regcache_raw_read_unsigned): Declare.
4425 (regcache_raw_read_signed): Declare.
4427 2002-08-13 Andrew Cagney <cagney@redhat.com>
4429 * regcache.c (regcache_raw_read_as_address): Delete function.
4430 (regcache_cooked_read_signed): New function.
4431 (regcache_cooked_read_unsigned): New function.
4432 * regcache.h (regcache_cooked_read_signed): Declare.
4433 (regcache_cooked_read_unsigned): Declare.
4434 (regcache_raw_read_as_address): Delete declaration.
4436 * blockframe.c (generic_read_register_dummy): Use
4437 regcache_cooked_read_unsigned.
4438 * i386-tdep.c (i386_extract_struct_value_address): Use
4439 regcache_cooked_read_unsigned.
4441 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4444 double sizes according to ELF ABI flags.
4445 (gdbarch_tdep): Record elf_flags.
4447 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4449 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4450 (m6812_prolog): They can appear in 68HC12 function prologue.
4451 (m68hc11_frame_chain): Cleanup.
4453 2002-08-12 Andrew Cagney <cagney@redhat.com>
4455 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4457 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4458 (i386_linux_register_raw_size): Delete function.
4459 (i386_linux_init_abi): Update.
4460 * i386-tdep.c (i386_register_raw_size): Delete function.
4461 (i386_register_byte): Delete function.
4462 (i386_gdbarch_init): Update.
4463 (i386_register_size): Delete array.
4464 (i386_register_offset): Delete array.
4466 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4467 (REGISTER_RAW_SIZE): Delete macro.
4468 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4469 (REGISTER_BYTE): Delete macro.
4471 2002-08-11 Aidan Skinner <aidan@velvet.net>
4473 * ada-lang.c (ada_lookup_partial_symbol)
4474 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4475 prototype names so that grep ^func works properly.
4477 * ada-lang.c (ada_array_element_type)
4478 (ada_lookup_partial_symbol): Fix typos in parameter list.
4480 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4481 Fix prototype names so that grep ^func works properly.
4483 2002-08-10 Andrew Cagney <cagney@redhat.com>
4484 Elena Zannoni <ezannoni@redhat.com>
4485 Martin M. Hunt <hunt@redhat.com>
4487 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4488 (build_builtin_type_vec128i): Set the vector bit.
4489 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4490 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4491 (build_builtin_type_vec64): New function.
4492 (build_builtin_type_vec64i): New function.
4493 (build_gdbtypes): Initialize builtin_type_vec64 and
4494 builtin_type_vec64i.
4496 2002-08-09 Andrew Cagney <cagney@redhat.com>
4498 * regcache.c (regcache_dump): Compare the register offset
4500 * arch-utils.c (generic_register_byte): New function.
4501 * arch-utils.h (generic_register_byte): Declare.
4502 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4503 * gdbarch.h, gdbarch.c: Regenerate.
4505 2002-08-09 Andrew Cagney <cagney@redhat.com>
4507 * regcache.c: Include "gdbcmd.h"
4508 (_initialize_regcache): Add commands "maintenance print
4509 registers", "maintenance print raw-registers" and "maintenance
4510 print cooked-registers".
4511 (enum regcache_dump_what): Define.
4512 (dump_endian_bytes): New function.
4513 (regcache_dump): New function.
4514 (regcache_print): New function.
4515 (maintenance_print_registers): New function.
4516 (maintenance_print_raw_registers): New function.
4517 (maintenance_print_cooked_registers): New function.
4518 * Makefile.in (regcache.o): Update dependencies.
4520 2002-08-09 Michael Snyder <msnyder@redhat.com>
4522 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4523 (mips_push_arguments): Correct some comments. Use paddr_nz
4524 for printing addresses in debug output. Replace static
4525 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4526 (mips_n32n64_push_arguments): New function, cloned from
4527 mips_push_arguments and tuned for the n32/n64 ABI.
4528 (mips_push_register): Buffer needs dynamic allocation.
4529 (mips_print_register): Ditto.
4530 (do_gp_register_row): Ditto.
4531 (mips_store_return_value): Ditto.
4532 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4534 2002-08-09 Don Howard <dhoward@redhat.com>
4536 * memattr.c (mem_info_command): Print special case of upper bound
4537 as max CORE_ADDR + 1.
4539 2002-08-08 Michael Snyder <msnyder@redhat.com>
4541 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4542 returns structs by ref if they're too big to fit in two registers.
4544 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4546 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4548 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4549 mips_find_saved_regs().
4550 (mips_pop_frame): Likewise.
4552 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4554 * blockframe.c (frame_saved_regs_register_unwind): Revise
4555 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4558 2002-08-09 Grace Sainsbury <graces@redhat.com>
4560 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4561 T-packets; the 'a' is not taken as a register number.
4562 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4563 (remote_stopped_data_address): New functions; add to target
4565 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4566 prototypes to match other implementations of this
4567 function. replace integer argument with pointer -- the length
4568 field in the Z-packet is the length of what is pointed to or 1 if
4569 pointer is null. Add to target vector.
4570 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4574 * remote.c (remote_wait): Add support to extract optional
4575 watchpoint information from T-packet. Ignore unrecognized
4576 optional info in T-packet.
4577 (remote_async_wait): Ditto.
4579 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4581 * cli/cli-dump.c: Change fopen modes to use binary open modes
4582 as defined in include/fopen-bin.h throughout.
4584 2002-08-08 Michael Snyder <msnyder@redhat.com>
4586 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4588 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4590 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4591 assertion failure by returning early after a warning.
4593 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4595 * mips-tdep.c (mips_find_saved_regs): Make static.
4596 (mips_frame_init_saved_regs): New function.
4597 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4598 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4599 (mips_find_saved_regs): Delete declaration.
4601 2002-08-08 Grace Sainsbury <graces@redhat.com>
4603 * remote.c (remote_wait, remote_async_wait): Change
4604 thread_num from int to ULONGEST.
4605 (unpack_varlen_hex): Change result parameter from
4606 int * to ULONGEST *.
4608 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4610 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4611 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4613 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4615 2002-08-08 Andrew Cagney <cagney@redhat.com>
4617 * gcore.c (override_derive_stack_segment): Delete variable.
4618 (preempt_derive_stack_segment): Delete function.
4619 (derive_stack_segment): Delete function.
4620 (default_derive_stack_segment): Renamed to derive_stack_segment.
4621 (override_derive_heap_segment): Delete variable.
4622 (preempt_derive_heap_segment): Delete function.
4623 (derive_heap_segment): Delete function.
4624 (default_derive_heap_segment): Rename to derive_heap_segment.
4626 2002-08-06 Michael Snyder <msnyder@redhat.com>
4628 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4629 * mips-tdep.c (mips_EABI_use_struct_convention,
4630 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4631 New functions. (mips_use_struct_convention): Delete.
4632 (mips_gdbarch_init): set use_gdbarch_convention.
4634 2002-08-06 Michael Snyder <msnyder@redhat.com>
4636 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4637 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4638 mips_o32_reg_struct_has_addr): New functions.
4639 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4641 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4643 * regcache.c (pseudo_register): Delete function.
4644 (fetch_register): Delete function.
4645 (store_register): Delete function.
4646 (regcache_raw_read, legacy_read_register_gen): Use
4647 target_fetch_registers instead of fetch_register.
4648 (legacy_write_register_gen, regcache_raw_write): Use
4649 target_store_register instead of store_register.
4650 (write_register_bytes): Ditto.
4652 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4653 (STORE_PSEUDO_REGISTER): Delete.
4654 * gdbarch.h, gdbarch.c: Regenerate.
4656 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4658 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4659 write dump file binary.
4661 2002-08-05 Michael Snyder <msnyder@redhat.com>
4663 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4664 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4665 (mips_gdbarch_init): Set N32 target to be mips64.
4667 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4669 * frame.c (find_saved_register): Break out of loop once saved
4670 register address is found. Don't mention sparc in loop comment
4673 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4675 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4676 mips_default_saved_regsize to 8.
4678 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4680 * gcore.c: Do not include <sys/procfs.h>.
4681 * Makefile.in (gcore.o): Update dependencies.
4683 2002-08-06 Andrew Cagney <cagney@redhat.com>
4685 * configure.tgt: Make arc-*-* obsolete.
4686 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4687 * MAINTAINERS: Make arc-elf obsolete.
4688 * arc-tdep.c: Make file obsolete.
4689 * config/arc/arc.mt: Ditto.
4690 * config/arc/tm-arc.h: Ditto.
4692 2002-08-05 Theodore A. Roth <troth@verinet.com>
4694 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4696 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4698 * mcore-tdep.c (mcore_gdbarch_init): Use
4699 generic_unwind_get_saved_register instead of
4700 generic_get_saved_register.
4701 * v850-tdep.c (v850_gdbarch_init): Ditto.
4702 * frv-tdep.c (frv_gdbarch_init): Ditto.
4703 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4704 * s390-tdep.c (s390_gdbarch_init): Ditto.
4705 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4706 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4707 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4709 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4711 * objfiles.h: Add missing #include "symfile.h"
4713 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4715 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4717 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4718 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4721 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4723 * NEWS: Cleanup and nitpick.
4725 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4727 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4729 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4731 * Makefile.in (gdbtk-bp.o): Update dependencies.
4732 (gdbtk-register.o): Ditto.
4733 (gdbtk-varobj.o): Ditto.
4735 2002-08-03 Andrew Cagney <cagney@redhat.com>
4737 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4738 m68hc11_fetch_pseudo_register.
4739 (m68hc11_pseudo_register_write): Replace
4740 m68hc11_store_pseudo_register.
4741 (m68hc11_gdbarch_init): Update.
4743 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4745 * gdbarch.sh: Include "gdb_string.h".
4746 * gdbarch.c: Regenerate.
4748 * regcache.c: Include "gdb_string.h".
4749 * ax-general.c: Ditto.
4751 * std-regs.c: Ditto.
4752 * fbsd-proc.c: Ditto.
4755 * Makefile.in (regcache.o): Update dependencies.
4756 (thread.o, gdbarch.o): Ditto.
4757 (ax-general.o, gdbarch.o): Ditto.
4758 (varobj.o, std-regs.o): Ditto.
4759 (fbsd-proc.o): Specify dependencies.
4761 2002-08-02 Andrew Cagney <cagney@redhat.com>
4763 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4765 (regcache_cooked_write): Ditto.
4767 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4769 * regcache.c (regcache_cooked_read): New function.
4770 (regcache_cooked_write): New function.
4771 (read_register_gen): Rewrite using regcache_cooked_read.
4772 (write_register_gen): Rewrite using regcache_cooked_write.
4774 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4777 2002-08-02 Andrew Cagney <cagney@redhat.com>
4779 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4780 Replace the architecture methods register_read and register_write.
4781 * gdbarch.h, gdbarch.c: Regenerate.
4782 * regcache.c (init_regcache_descr): Update.
4783 (read_register_gen): Update.
4784 (write_register_gen): Update.
4785 (supply_register): Update comment.
4787 * sh-tdep.c (sh_gdbarch_init): Update.
4788 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4789 `regcache' and `gdbarch' parameters. Make `buffer' a void
4790 pointer. Update code.
4791 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4792 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4793 void pointer. Update code.
4794 (sh64_register_write): Delete.
4795 (sh4_register_read): Delete.
4796 (sh64_register_read): Delete.
4797 (sh4_register_write): Delete.
4798 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4799 void pointer, `to' parameter a void pointer.
4800 (sh_sh64_register_convert_to_raw): Ditto.
4802 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4804 * mips-tdep.c (mips_register_virtual_type): Use architecture
4805 invariant return values.
4807 2002-08-01 Andrew Cagney <cagney@redhat.com>
4809 * linux-proc.c: Include "gdb_string.h".
4810 * Makefile.in (linux-proc.o): Update dependency list.
4812 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4814 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4817 2002-08-01 Grace Sainsbury <graces@redhat.com>
4819 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4820 to_insert_watchpoint, to_remove_watchpoint,
4821 to_stopped_by_watchpoint, to_stopped_data_address,
4822 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4823 target vecctor. Define their corresponding macros so they call
4826 * target.c: Add default and debug versions of for
4827 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4828 to_insert_watchpoint, to_remove_watchpoint,
4829 to_stopped_by_watchpoint, to_stopped_data_address,
4830 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4832 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4834 * mips-tdep.c (mips_register_virtual_type): New function.
4835 (mips_gdbarch_init): Register mips_register_virtual_type()
4836 with gdbarch machinery.
4837 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4838 this file instead of tm-bigmips.h.
4839 (MIPS_REGSIZE): Delete this macro.
4840 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4841 multiarch version in mips-tdep.c will be found.
4843 2002-08-01 Andrew Cagney <cagney@redhat.com>
4845 * NEWS: Menion that CHILL has been made obsolete.
4847 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4848 * stabsread.c (read_range_type): Ditto.
4849 * gdbtypes.h: Ditto.
4850 * language.c (binop_type_check): Ditto.
4851 (binop_result_type): Ditto.
4852 (integral_type): Ditto.
4853 (character_type): Ditto.
4854 (string_type): Ditto.
4855 (boolean_type): Ditto.
4856 (structured_type): Ditto.
4857 (lang_bool_type): Ditto.
4858 (binop_type_check): Ditto.
4859 * language.h (_LANG_chill): Ditto.
4860 * dwarfread.c (set_cu_language): Ditto.
4861 * dwarfread.c (CHILL_PRODUCER): Ditto.
4862 * dwarfread.c (handle_producer): Ditto.
4863 * expression.h (enum exp_opcode): Ditto.
4864 * eval.c: Ditto for comments.
4865 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4866 * expprint.c (print_subexp): Ditto.
4867 (print_subexp): Ditto.
4868 * valops.c (value_cast): Ditto.
4869 (search_struct_field): Ditto.
4870 * value.h (COERCE_VARYING_ARRAY): Ditto.
4871 * symfile.c (init_filename_language_table): Ditto.
4872 (add_psymbol_with_dem_name_to_list): Ditto.
4873 * valarith.c (value_binop): Ditto.
4875 * valops.c (value_slice): Ditto.
4876 * symtab.h (union language_specific): Ditto.
4877 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4878 (SYMBOL_DEMANGLED_NAME): Ditto.
4879 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4880 * defs.h (enum language): Ditto.
4881 * symtab.c (got_symtab): Ditto.
4882 * utils.c (fprintf_symbol_filtered): Ditto.
4884 * ch-typeprint.c: Make file obsolete.
4885 * ch-valprint.c: Make file obsolete.
4886 * ch-lang.h: Make file obsolete.
4887 * ch-exp.c: Make file obsolete.
4888 * ch-lang.c: Make file obsolete.
4890 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4892 (TARGET_FLAGS_TO_PASS): Ditto.
4893 (CHILLFLAGS): Obsolete.
4895 (CHILL_FOR_TARGET): Obsolete.
4896 (CHILL_LIB): Obsolete.
4897 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4899 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4900 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4902 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4905 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4907 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4908 This does not change anything at the moment, but will be helpful
4909 later when full Ada support is integrated.
4911 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4913 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4916 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4918 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4919 and save it in a local variable. Use variable in later test.
4921 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4923 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4924 test. (Thanks to Daniel Jacobowitz.)
4926 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4928 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4929 (mips_abi_strings): Add "n64".
4930 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4932 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4934 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4935 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4937 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4939 * utils.c (host_pointer_to_address, address_to_host_pointer):
4940 Use gdb_assert() instead of explicit call to internal_error().
4942 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4944 * Makefile.in (rs6000-nat.o): Update dependencies.
4946 From Nicholas Duffek:
4947 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4948 (aix-thread.o): New rule.
4949 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4950 * config/powerpc/aix432.mh: New file.
4952 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4954 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4955 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4956 (fetch_core_registers, ppc_linux_supply_gregset)
4957 (ppc_linux_supply_fpregset): New functions.
4958 (ppc_linux_regset_core_fns): New.
4959 (_initialize_ppc_linux_tdep): Call add_core_fns.
4960 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4961 and ppc_linux_supply_gregset.
4962 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4963 (supply_fpregset): Call ppc_linux_supply_fpregset.
4964 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4966 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4968 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4970 * symtab.c (lookup_symbol): Demangle before lowercasing.
4972 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4974 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4976 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4977 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4978 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4979 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4981 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4982 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4983 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4984 (avr-tdep.o, mon960-rom.o): Ditto.
4985 (aout_stabs_gnu_h): Define.
4986 (symtab_h): Remove $(gdb_obstack_h).
4988 2002-07-30 Jim Blandy <jimb@redhat.com>
4990 Patch from David Carlton <carlton@math.stanford.edu>:
4991 * gdbinit.in: Move the `dir' commands that add GDB's own source
4992 directory to the search path to the end, so that the `gdb' source
4993 directory will be searched first.
4995 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4997 * gdb_obstack.h: New file.
4998 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4999 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5000 * objfiles.h: Include "gdb_obstack.h".
5001 * Makefile.in (gdb_obstack_h): Define.
5002 (symtab_h): Add $(gdb_obstack_h).
5003 (objfiles_h): Add $(gdb_obstack_h).
5005 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5006 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5007 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5008 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5009 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5010 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5011 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5012 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5014 * Makefile.in (bcache.o): Update dependencies.
5015 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5016 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5017 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5018 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5019 (stabsread.o, symfile.o, symmisc.o): Ditto.
5020 (symtab.o, typeprint.o, macroexp.o): Ditto.
5021 (macrotab.o, mdebugread.o): Ditto.
5022 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5023 (coff_ecoff_h, aout_aout64_h): Define.
5024 (aout_stabs_gnu_h, libaout_h): Define.
5026 2002-07-29 Andrew Cagney <cagney@redhat.com>
5028 * regcache.c (struct regcache_descr): Rename nr_registers to
5029 nr_cooked_registers. Revise comments describing the structure
5031 (init_regcache_descr): Update.
5032 (init_legacy_regcache_descr): Update.
5033 (read_register_gen, write_register_gen): When a cooked register in
5034 the raw register range, directly access the value from the raw
5037 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5039 * z8k-tdep.c: Do not include "obstack.h".
5040 * h8300-tdep.c, h8500-tdep.c: Ditto.
5041 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5042 * valprint.c, v850-tdep.c: Ditto.
5043 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5044 * mn10200-tdep.c: Ditto.
5046 * Makefile.in (z8k-tdep.o): Update dependencies.
5047 (m68hc11-tdep.o, valprint.o): Ditto.
5048 (v850-tdep.o, d10v-tdep.o): Ditto.
5049 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5050 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5051 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5052 (sh_opc_h, gdb_sim_sh_h): Define.
5053 (elf_sh_h, elf_bfd_h): Define.
5054 (opcode_m68hc11_h): Define.
5055 (OPCODES_SRC, OPCODES_DIR): define.
5056 (OPCODES): Use $(OPCODES_DIR).
5057 (gdb_sim_d10v_h): Rename sim_d10v_h.
5058 (gdb_sim_arm_h): Rename sim_arm_h.
5060 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5062 * utils.c (host_pointer_to_address, address_to_host_pointer):
5063 Change internal_error() message to indicate function responsible
5066 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5068 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5069 calls to local_hex_string_custom().
5071 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5073 * irix5-nat.c: Move IRIX shared library support from here...
5074 * solib-irix.c: ...to here. Revised substantially to work with
5075 generic solib framework.
5077 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5078 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5079 * mips-irix-tdep.c: New file.
5081 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5082 (mips-irix-tdep.o, solib-irix.o): New rules.
5083 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5085 * config/mips/irix6.mt (TDEPFILES): Likewise.
5086 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5088 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5090 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5091 disabled (via ``#if 0'') includes.
5093 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5095 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5096 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5097 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5098 Add support for the fpscr register.
5099 * rs6000-nat.c (regmap, fetch_inferior_registers)
5100 (store_inferior_registers, fetch_core_registers): Likewise.
5102 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5104 * rs6000-nat.c (language.h): Include.
5105 (special_regs): Delete this array.
5106 (regmap): New function.
5107 (fetch_register, store_register): Use regmap() to map gdb
5108 register numbers to ptrace register numbers. Also, use
5109 outputs from regmap() to make decisions regarding type of
5110 ptrace() call to make. In particular, don't compare against
5111 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5112 (fetch_inferior_registers, store_inferior_registers): Where
5113 possible, obtain register numbers from tdep struct. Don't
5114 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5115 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5116 (LAST_UISA_SP_REGNUM): Delete.
5118 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5120 * rs6000-nat.c (ppc-tdep.h): Include.
5121 (fetch_registers, store_register, fetch_core_registers): Don't
5122 access registers[] directly. Instead, use supply_register() or
5123 regcache_collect() as appropriate.
5124 (find_toc_address): Format hex address with local_hex_string().
5126 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5128 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5131 2002-07-24 Tom Tromey <tromey@redhat.com>
5133 * jv-exp.y: Marked all strings with _().
5134 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5136 (MethodInvocation, CastExpression, parse_number, yyerror,
5137 java_type_from_name, push_expression_name, yylex): Typo fixes.
5139 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5141 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5142 (tee_file_flush, tee_file_write, tee_file_fputs)
5143 (tee_file_isatty): New.
5144 * ui-file.h (tee_file_new): Add prototype.
5146 2002-07-24 Aidan Skinner <aidan@velvet.net>
5148 * ada-lang.c: Change k&r style function definitions to prototyped
5150 * ada-typeprint.c: Change k&r style function definitions to prototyped
5152 * ada-valprint.c: Change k&r style function definitions to prototyped
5155 2002-07-24 Andrew Cagney <cagney@redhat.com>
5157 * README: Remove reference to remote-bug.
5158 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5160 (m88k-nat.o): Delete rule.
5161 (m88k-tdep.o): Delete rule.
5162 (remote-bug.o): Delete rule.
5163 * MAINTAINERS: Mark as obsolete.
5164 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5165 * m88k-tdep.c: Make file obsolete.
5166 * config/m88k/m88k.mh: Ditto.
5167 * config/m88k/delta88v4.mh: Ditto.
5168 * config/m88k/delta88v4.mt: Ditto.
5169 * config/m88k/delta88.mt: Ditto.
5170 * config/m88k/delta88.mh: Ditto.
5171 * remote-bug.c: Ditto.
5172 * config/m88k/tm-delta88.h: Ditto.
5173 * config/m88k/nm-delta88v4.h: Ditto.
5174 * config/m88k/xm-delta88.h: Ditto.
5175 * config/m88k/xm-dgux.h: Ditto.
5176 * config/m88k/tm-m88k.h: Ditto.
5177 * config/m88k/nm-m88k.h: Ditto.
5178 * config/m88k/tm-delta88v4.h: Ditto.
5179 * m88k-nat.c: Ditto.
5180 * cxux-nat.c: Ditto.
5181 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5182 and m88*-*-* obsolete.
5183 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5186 2002-07-24 Andrew Cagney <cagney@redhat.com>
5188 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5189 constant. Same for local pointer variables.
5190 (extract_signed_integer): Ditto.
5191 * defs.h (extract_unsigned_integer): Update.
5192 (extract_signed_integer): Update.
5194 2002-07-24 Andrew Cagney <cagney@redhat.com>
5196 * regcache.c (regcache_raw_write): Change buf parameter to a
5197 constant void pointer.
5198 (regcache_raw_read): Change buf parameter to a void pointer.
5199 (legacy_write_register_gen): Change myaddr parameter a constant
5201 (supply_register): Change val parameter to a const void pointer.
5202 * regcache.h (regcache_raw_write): Update declaration.
5203 (regcache_raw_read): Update declaration.
5204 (supply_register): Update declaration.
5206 2002-07-24 Tom Tromey <tromey@redhat.com>
5208 * defs.h (gdb_readline_wrapper): Declare.
5209 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5210 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5211 * top.c (gdb_readline_wrapper): New function.
5212 (command_line_input): Use it.
5214 2002-07-24 Andrew Cagney <cagney@redhat.com>
5216 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5217 regcache_read and regcache_write.
5218 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5219 * regcache.c: Update.
5220 * sh-tdep.c (sh64_push_arguments): Update comment.
5221 (sh_pseudo_register_read): Update.
5222 (sh_pseudo_register_write): Update.
5223 (sh4_register_read): Update.
5224 (sh4_register_write): Update.
5225 (sh64_pseudo_register_read): Update.
5226 (sh64_pseudo_register_write): Update.
5227 (sh64_register_read): Update.
5228 (sh64_register_write): Update.
5229 * i386-tdep.c (i386_extract_return_value): Update.
5230 (i386_extract_struct_value_address): Update.
5231 (i386_extract_return_value): Update.
5232 * blockframe.c (generic_read_register_dummy): Update.
5233 (generic_call_dummy_register_unwind): Update
5234 * infrun.c (write_inferior_status_register): Update.
5236 2002-07-23 Jim Blandy <jimb@redhat.com>
5238 * parser-defs.h (expression_context_pc): Make this extern.
5239 (Thanks to Michael Snyder.)
5241 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5243 GDB 5.2.1 released from 5.2 branch.
5244 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5245 * README: Update to mention 5.2.1.
5247 2002-07-23 Mark Salter <msalter@redhat.com>
5249 * remote.c (remote_read_bytes): Fix check for error.
5251 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5253 * aix-thread.c (language.h): Include.
5254 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5255 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5256 Print newlines at end of debug messages.
5257 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5258 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5260 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5262 * aix-thread.c (ppc-tdep.h): Include.
5263 (special_register_p): New function.
5264 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5265 (store_regs_user_thread): Use register number information from
5266 gdbarch_tdep struct instead of hardcoded offsets relative to
5267 FIRST_UISA_SP_REGNUM.
5268 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5269 special_register_p() instead of using FPLAST_REGNUM and
5270 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5271 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5272 will be MQ's register number.
5274 2002-07-22 Michael Snyder <msnyder@redhat.com>
5276 * aix-thread.c (ops): Rename to aix_thread_ops.
5277 (base_ops): Rename to base_target.
5278 (ops_attach): Rename to aix_thread_attach.
5279 (ops_detach): Rename to aix_thread_detach.
5280 (ops_resume): Rename to aix_thread_detach.
5281 (ops_wait): Rename to aix_thread_wait.
5282 (ops_kill): Rename to aix_thread_kill.
5283 (init_ops): Rename to init_aix_thread_ops.
5284 (ops_fetch_register): Rename to aix_thread_fetch_register.
5285 (ops_store_register): Rename to aix_thread_store_register.
5286 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5287 (ops_thread_alive): Rename to aix_thread_thread_alive.
5288 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5289 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5290 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5291 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5292 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5293 (store_regs_lib): Rename to store_regs_user_thread.
5294 (store_regs_kern): Rename to store_regs_kernel_thread.
5296 2002-07-22 Michael Snyder <msnyder@redhat.com>
5298 * aix-thread.c (ops_prepare_to_store): Eliminate.
5299 (init_ops): Don't initialize ops.prepare_to_store.
5300 (store_regs_kern): Pre-fetch register buffers from child,
5301 because some registers may not be in the cache. Copy
5302 regs from register cache only if they are cached.
5303 (store_regs_lib): Copy regs from register cache only
5305 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5306 fill_gprs64): Ditto.
5308 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5310 * aix-thread.c (gdb_assert.h): Include.
5311 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5312 register sizes (from register cache) match size of buffer holding
5314 (fill_sprs32): Change parameter types to match those in the ptrace()
5316 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5317 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5319 2002-07-22 Michael Snyder <msnyder@redhat.com>
5321 * aix-thread.c (supply_sprs64): Cosmetic change.
5322 (supply_sprs32): Cosmetic change.
5323 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5324 (fill_sprs64): Use regcache_collect instead of read_register.
5325 (store_regs_lib): Use regcache_collect instead of
5326 read_register. Use fill_sprs32 instead of fill_sprs64,
5327 if debugging a 32-bit architecture.
5328 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5329 out of the register cache, instead of passing a pointer into
5330 the register cache directly to ptrace. Use regcache_collect
5331 insteaad of read_register.
5332 (ops_prepare_to_store): Use target_read_registers instead
5333 of read_register_bytes.
5335 2002-07-20 Aidan Skinner <aidan@velvet.net>
5337 * MAINTAINERS: Add self under write after approval.
5339 2002-07-20 Aidan Skinner <aidan@velvet.net>
5341 * ada-tasks.c: Change k&r style function definitions to prototyped
5344 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5346 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5347 * x86-64-tdep.c: Include "objfiles.h".
5348 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5349 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5351 2002-07-17 Michal Ludvig <michal@suse.cz>
5353 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5354 (update_context): Initialise cfa variable.
5356 2002-07-17 Michael Snyder <msnyder@redhat.com>
5358 * aix-thread.c: Shorten some long lines.
5359 Bring comments into line with code spec.
5361 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5363 * infrun.c: Re-indent using gdb_indent.sh.
5365 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5367 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5368 Leave the indentation temporarily untouched, to minimize the diffs.
5370 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5372 * stabsread.c: Make os9k sections of the code obsolete,
5374 * stabsread.h: Make os9k sections of the code obsolete.
5376 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5378 * linux-low.c (regsets_store_inferior_registers): Add free()
5379 at the end of a loop to prevent memory leak.
5380 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5381 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5382 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5384 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5386 2002-07-17 Jim Blandy <jimb@redhat.com>
5388 * macrocmd.c (info_macro_command): Remove newline from error
5391 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5393 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5394 (sh_gdbarch_init): Use it for sh-dsp.
5396 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5398 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5399 64-bit DWARF2 format.
5401 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5403 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5404 <sys/proc.h> when not available.
5406 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5408 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5409 * stabsread.c: Make os9k sections of the code obsolete.
5410 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5411 * config/i386/i386os9k.mt: Make file obsolete.
5412 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5413 (COMMON_OBS): Remove os9kread.o
5414 (SFILES): Remove os9kread.c.
5415 (os9kread.o, remote-os9k.o): Make target obsolete.
5416 * remote-os9k.c: Make file obsolete.
5417 * os9kread.c: Make file obsolete.
5420 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5422 * NEWS: Mention that the FR30 has been made obsolete.
5423 * fr30-tdep.c: Make file obsolete.
5424 * config/fr30/tm-fr30.h: Ditto.
5425 * config/fr30/fr30.mt: Ditto.
5426 * configure.tgt: Make fr30-*-elf obsolete.
5427 * MAINTAINERS: Make fr30-elf obsolete.
5429 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5431 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5432 found is not inside a section.
5434 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5436 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5438 (pdc_realloc): Use xrealloc() instead of realloc().
5440 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5442 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5443 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5444 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5447 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5449 * aix-thread.c (ptrace_check): Eliminate goto.
5450 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5453 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5455 * aix-thread.c (gdbcmd.h): Include.
5456 (DEBUG, DBG, DBG2, dbg): Eliminate.
5457 (debug_aix_thread): New static global.
5458 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5459 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5460 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5461 invocations to DBG and DBG2 macros to test against
5462 ``debug_aix_thread'' and call fprintf_unfiltered().
5463 (_initialize_aix_thread): Add new command "set debug aix-thread".
5465 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5467 From Gerhard Tonn <TON@de.ibm.com>:
5468 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5469 instead of supply_register.
5471 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5473 * dwarf2cfi.c: Include "gdb_assert.h".
5474 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5476 (update_context): Do not use __func__. Add missing ``break''.
5477 (update_context): Do not use __func__.
5479 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5481 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5482 and its setting. Set gdbarch instruction printing functions
5483 directly. For non-rs6000 case use new function
5484 gdb_print_insn_powerpc.
5485 (gdb_print_insn_powerpc): New function.
5487 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5489 * NEWS: Mention that the d30v has been marked obsolete.
5490 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5491 * configure.tgt: Mark d30v-*-* as obsolete.
5492 * d30v-tdep.c: Mark file as obsolete.
5493 * config/d30v/d30v.mt: Ditto.
5494 * config/d30v/tm-d30v.h: Ditto.
5496 2002-07-13 Aidan Skinner <aidan@velvet.net>
5498 * ada-tasks.c (add_task_entry): replace calls to
5499 malloc() with xmalloc
5500 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5502 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5503 ada_finish_decode_line_1, all_sals_for_line
5504 ada_breakpoint_rewrite): replace calls to free() with xfree()
5506 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5508 From Nicholas Duffek (with minor changes by Martin Hunt,
5509 Louis Hamilton, and Kevin Buettner):
5510 * aix-thread.c: New file.
5512 2002-07-12 Petr Sorfa <petrs@caldera.com>
5514 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5515 complaint for invalid attribute class or form.
5516 (read_func_scope): DW_AT_frame_base
5517 better handling of DW_AT_block*.
5518 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5519 better handling of DW_AT_block*.
5520 (read_common_block): DW_AT_location
5521 better handling of DW_AT_block*.
5522 (read_partial_die): DW_AT_location better handling
5524 (new_symbol): DW_AT_external better handling of
5525 DW_AT_block*. Proper initialization of variable
5527 (attr_form_is_block): New function that returns true
5528 if the attribute's form is of DW_FORM_block*.
5530 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5532 * valops.c (find_method_list): Remove comment about
5533 removed STATIC_MEMFUNCP argument.
5534 (value_find_oload_method_list): Likewise.
5536 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5538 From Nicholas Duffek:
5539 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5540 target_new_objfile_hook.
5542 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5544 From Nicholas Duffek:
5545 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5548 2002-07-12 Andrew Cagney <cagney@redhat.com>
5550 * MAINTAINERS: Mention --enable-sim-build-warnings.
5551 (m68hc11-elf): Disable sim build warnings.
5552 (m32r-elf): Mark as broken obsolete candidate.
5553 (x86_64-linux-gnu): Mark as buildable with -Werror.
5554 (arm-elf): Change -w to ``,'' which enables warnings but not
5557 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5559 * bcache.h: Update copyright.
5560 (struct bstring, struct bcache): Move definition to "bcache.c".
5561 Replaced by opaque declaration.
5562 (bcache_xfree): Replace free_bcache.
5563 (bcache_xmalloc, bcache_memory_used): Declare.
5565 * bcache.c: Update copyright.
5566 (struct bstring, struct bcache): Moved to here from "bcache.h".
5568 (bcache_xmalloc, bcache_memory_used): New functions.
5569 (bcache_xfree): Replace function free_bcache.
5571 * Makefile.in (objfiles.o): Add $(bcache_h).
5572 (objfiles_h): Remove $(bcache_h).
5573 (symfile.o): Add $(bcache_h).
5575 * symmisc.c: Update copyright.
5576 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5577 (print_objfile_statistics): Use bcache_memory_used.
5579 * symfile.c: Include "bcache.h".
5580 (reread_symbols): Use bcache_xfree.
5581 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5582 (add_psymbol_to_list): Pass psymbol_cache by value.
5583 (add_psymbol_with_dem_name_to_list): Ditto.
5585 * objfiles.h: Update copyright.
5586 (struct bcache): Declare opaque. Do not include "bcache.h".
5587 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5589 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5591 * objfiles.c: Include "bcache.h". Update copyright.
5592 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5594 (free_objfile): Use bcache_xfree.
5596 2002-07-11 Grace Sainsbury <graces@redhat.com>
5598 * monitor.c (monitor_fetch_register): Make name a constant.
5599 (monitor_store_register): Same.
5601 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5603 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5604 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5605 (finish_block) For non-function blocks, hash the symbol table. For
5606 function blocks, mark the symbol table as unhashed.
5607 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5608 (msymbol_hash_iw): Likewise.
5609 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5611 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5612 (lookup_minimal_symbol): Likewise for both.
5613 * symtab.h (struct block): Add `hashtable' flag. Comment the
5615 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5616 (ALL_BLOCK_SYMBOLS): Update.
5617 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5618 (struct symbol): Add `hash_next' pointer.
5619 * symtab.c (lookup_block_symbol): Search using the hash table when
5621 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5622 (search_symbols, find_addr_symbol): Likewise.
5624 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5625 (read_dst_symtab): Likewise.
5626 * jv-lang.c (get_java_class_symtab): Likewise.
5627 * mdebugread.c: Include "gdb_assert.h".
5628 (shrink_block): Assert that the block being modified is not hashed.
5629 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5630 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5632 (dump_symtab): Recognize hashed blocks.
5633 * printcmd.c (print_frame_args): Assert that function blocks do not
5634 have hashed symbol tables.
5635 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5636 (fill_in_ada_prototype, debug_print_block): Likewise.
5637 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5639 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5641 * stack.c (print_frame): Use result of frame_address_in_block()
5642 instead of fi->pc when evaluating symbols.
5643 (backtrace_command_1): Ditto.
5645 2002-07-11 Andrew Cagney <cagney@redhat.com>
5647 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5650 * arm-tdep.c (arm_register_name): Make return type constant.
5652 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5654 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5656 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5657 * s390-tdep.c (s390_fp_regnum): Ditto.
5658 (s390_read_fp): Ditto.
5659 (s390_pop_frame): Ditto.
5660 (_initialize_s390_tdep): Ditto.
5661 * remote.c (get_remote_state): Ditto.
5662 * procfs.c (mappingflags): Ditto.
5663 * memattr.c (_initialize_mem): Ditto.
5664 * mcore-tdep.c (mcore_pop_frame): Ditto.
5665 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5666 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5667 * language.c (set_case_str): Ditto.
5668 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5669 * frv-tdep.c (new_variant): Ditto.
5670 (frv_stopped_data_address): Ditto.
5671 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5672 (context_alloc): Ditto.
5673 (frame_state_alloc): Ditto.
5674 (unwind_tmp_obstack_init): Ditto.
5675 (unwind_tmp_obstack_free): Ditto.
5676 (cfi_read_fp): Ditto.
5677 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5678 (cris_pop_frame): Ditto.
5679 * c-lang.c (scanning_macro_expansion): Ditto.
5680 (finished_macro_expansion): Ditto.
5681 (c_preprocess_and_parse): Ditto.
5682 * gdbarch.sh: Ditto.
5683 * gdbarch.h, gdbarch.c: Regenerate.
5684 * config/mn10200/tm-mn10200.h: Adjust indentation.
5685 * target.c: Adjust indentation.
5686 * symtab.h: Adjust indentation.
5687 * stabsread.h: Adjust indentation.
5688 * remote-es.c: Adjust indentation.
5689 * os9kread.c: Adjust indentation.
5691 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5693 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5694 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5696 2002-07-10 Grace Sainsbury <graces@redhat.com>
5698 * NEWS: Mention m68k, mcore multi-arching.
5699 * MAINTAINERS: Change status of m68k, mcore to reflect
5702 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5704 * valops.c (find_overload_match): Free oload_syms.
5706 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5708 Define HAVE_SYS_PROC_H if sys/proc.h exists
5709 * configure.in: Add check for sys/proc.h
5710 * config.in: Regenerate.
5711 * configure: Regenerate.
5713 2002-07-09 Grace Sainsbury <graces@redhat.com>
5715 * config/m68k/tm-m68k.h: Remove macros wrapped in
5716 #if !GDB_MULTI_ARCH.
5718 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5720 * config.in, configure: Regenerate.
5722 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5724 * dwarf2cfi.c: Include "gcore.h".
5725 (execute_stack_op): Fix implementation of the
5726 DW_OP_deref and DW_OP_deref_size operators by letting do their
5727 lookup in the target.
5729 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5731 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5732 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5735 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5737 Fix PR gdb/595, gdb/602
5738 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5739 Don't call value_cast, just read the vtable pointer; update comments
5742 2002-07-05 Grace Sainsbury <graces@redhat.com>
5744 * config/mcore/tm-mcore.h: Remove file.
5745 * config/mcore/mcore.mt: Remove definition of TM_FILE
5746 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5748 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5750 * i386bsd-tdep.c: Include "gdb_string.h".
5752 2002-07-04 Grace Sainsbury <graces@redhat.com>
5754 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5755 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5757 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5758 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5759 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5760 (RETVAL_REGNUM): Move macros from tm-mcore.h
5761 (mcore_reg_struct_has_addr): New function.
5762 (mcore_gdbarch_init): Added initializations for the macros removed
5765 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5767 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5768 traditonal string branding within the ELF header.
5770 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5772 * symtab.c (remove_params): New function.
5773 (make_symbol_overload_list): Use it instead of cplus_demangle.
5774 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5776 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5778 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5780 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5782 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5783 and tdep->sigtramp_end.
5784 * i386obsd-nat.c: New file.
5785 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5787 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5788 Don't call get_current_frame().
5790 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5792 * i386-nat.c (child_post_startup_inferior): New function
5793 calling i386_cleanup_dregs if
5794 I386_USE_GENERIC_WATCHPOINTS is defined.
5795 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5796 conditional to acknowledge that i386-nat.c has its
5797 own child_post_startup_inferior function.
5799 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5801 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5802 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5803 instead of MAX_REGISTER_RAW_SIZE.
5804 (i386_extract_return_value, i386_extract_struct_value_address):
5805 Convert to use regcache.
5806 (i386_gdbarch_init): Set max_register_raw_size and
5807 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5808 Set extract_return_value and extract_struct_value_address instead
5809 of their deprecated variants.
5811 Convert i386 target to generic dummy frames.
5812 * i386-tdep.c: Include "symfile.h".
5813 (i386_frameless_signal_p): Consider a function to be frameless if
5814 the pc points at the first instruction of the function.
5815 (i386_frame_chain): Handle (generic) call dummies.
5816 (i386_frame_saved_pc): Likewise.
5817 (i386_frame_init_saved_regs): Remove code dealing with call
5818 dummies on the stack.
5819 (i386_push_dummy_frame): Removed.
5820 (i386_call_dummy_words): Removed.
5821 (i386_fix_call_dummy): Removed.
5822 (i386_push_return_address): New function.
5823 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5824 parameter, and don't call get_current_frame.
5825 (i386_pop_frame): New function.
5826 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5827 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5828 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5829 call_dummy_length to 0, set call_dummy_words to NULL, set
5830 sizeof_call_dummy_words to 0, set fix_call_dummy to
5831 generic_fix_call_dummy, set pc_in_call_dummy to
5832 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5833 generic_push_dummy_frame, set push_return_address to
5834 i386_push_return_address and set frame_chain_valid to
5835 generic_file_frame_chain_valid.
5837 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5839 * gdbarch.sh (struct regcache): Add opaque declaration.
5840 (EXTRACT_RETURN_VALUE): New architecture method.
5841 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5842 * gdbarch.h, gdbarch.c: Regenerate.
5843 * arch-utils.c (legacy_extract_return_value): New function.
5844 * arch-utils.h (legacy_extract_return_value): Declare.
5845 * values.c (value_being_returned): Re-enable code handling
5846 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5847 deprecated_grub_regcache_for_registers call to block handling
5848 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5849 (EXTRACT_RETURN_VALUE): Do not define.
5851 2002-07-03 Grace Sainsbury <graces@redhat.com>
5853 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5854 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5855 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5856 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5857 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5858 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5859 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5860 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5861 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5862 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5863 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5864 argument so the function fits the prototype in the architecture
5866 (mcore_pop_frame): Remove argument so the function fits the
5867 prototype. Use get_current_frame instead of the argument.
5868 (mcore_push_arguments): Change type of struct_return so the
5869 function can be used in the architecture vector.
5870 (mcore_store_struct_return): Add.
5871 (mcore_frame_init_saved_regs): Add.
5872 (mcore_gdbarch_init): Add function calls to replace the macros
5873 removed from tm-mcore.h
5875 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5877 * infcmd.c (print_return_value): Remove compatibility code calling
5878 deprecated_grub_regcache_for_registers.
5880 * values.c: Include "regcache.h".
5881 (value_being_returned): Update. Use
5882 deprecated_grub_regcache_for_registers to extract the register
5884 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5885 ``struct regcache''.
5886 * Makefile.in (values.o): Add dependency on $(regcache_h).
5888 * inferior.h (run_stack_dummy): Change type of second parameter to
5889 a ``struct regcache''.
5890 * valops.c (hand_function_call): Change type of retbuf to ``struct
5891 regcache''. Allocate using regcache_xmalloc, clean using
5892 make_cleanup_regcache_xfree.
5893 * infcmd.c (run_stack_dummy): Update. Use
5894 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5896 * regcache.c (do_regcache_xfree): New function.
5897 (make_cleanup_regcache_xfree): New function.
5898 * regcache.h (make_cleanup_regcache_xfree): Declare.
5900 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5902 * event-top.c (command_line_handler): Don't read past
5903 beginning of buffer.
5905 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5907 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5909 (varobj_create): Store frame_id for root.
5910 (varobj_gen_name): Use xasprintf.
5911 (varobj_update): Save and restore frame using get_frame_id() and
5913 (create_child): Use xasprintf.
5914 (new_root_variable): Initialize frame_id.
5915 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5916 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5917 to prevent memory leak.
5919 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5921 * valops.c (hand_function_call): Move declaration of retbuf to
5922 start of function, allocate using malloc, add a cleanup but before
5923 the inf_status cleanup, cleanup the buffer. Rename local variable
5924 old_chain to inf_status_cleanup.
5926 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5928 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5930 * cli/cli-decode.c (cmd_func_p): New function.
5931 (cmd_func): New function.
5933 * command.h: Add cmd_func() and cmd_func_p().
5935 2002-07-03 Grace Sainsbury <graces@redhat.com>
5937 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5938 (REGISTER_SIZE): Remove.
5939 (MAX_REGISTER_RAW_SIZE): Remove.
5940 (REGISTER_VIRTUAL_TYPE): Remove.
5941 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5942 (REGISTER_NAME): Remove.
5943 (USE_GENERIC_DUMMY_FRAMES): Remove.
5944 (CALL_DUMMY): Remove.
5945 (CALL_DUMMY_START_OFFSET): Remove.
5946 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5947 (CALL_DUMMY_LOCATION): Remove.
5948 (FIX_CALL_DUMMY): Remove.
5949 (CALL_DUMMY_ADDRESS): Remove.
5950 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5951 (SAVE_DUMMY_FRAME_TOS): Remove.
5952 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5953 (mcore_register_virtual_type): New function.
5954 (mcore_register_byte): New function.
5955 (mcore_register_size): New function.
5956 (mcore_register_name): New function.
5957 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5958 macros removed from tm-mcore.h.
5959 (mcore_dump_tdep): Add.
5960 (_initialize_mcore_tdep): Add gdbarch_register call.
5962 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5964 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5965 frameless_look_for_prologue, such that we actually call this
5968 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5970 * frame.h (frame_address_in_block): New function.
5972 * blockframe.c (frame_address_in_block): New function extracted
5973 from get_frame_block().
5974 (get_frame_block): Use frame_address_in_block().
5975 (block_innermost_frame): Use frame_address_in_block() to match
5976 the frame pc address against the block boundaries rather than
5977 the frame pc directly. This prevents a failure when a frame pc
5978 is actually a return-address pointing immediately after the end
5981 2002-07-02 Grace Sainsbury <graces@redhat.com>
5983 * MAINTAINERS: Add self under write after approval.
5985 2002-07-02 Grace Sainsbury <graces@redhat.com>
5987 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5988 used in architecture vector. The default is
5989 m68k_local_breakpoint_from_pc.
5990 (m68k_local_breakpoint_from_pc): Add.
5991 (enum): Add register numbers from tm-m68k.h.
5992 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5994 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5995 GDB_MULTI_ARCH_PARTIAL.
5996 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5997 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5999 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6000 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6001 to enum in m68k-tdep.c
6003 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6005 * solib-osf.c (open_map): Compute the list of shared libraries
6006 loaded by the inferior, rather than the list of libraries loaded
6007 by GDB itself. Otherwise, GDB ends up reading the symbols from
6008 the wrong shared libraries...
6010 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6012 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6013 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6015 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6017 (FRAMELESS_SIGNAL): Remove function.
6018 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6019 i386_linux_saved_pc_after_call): Removed.
6020 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6021 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6022 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6024 * i386-tdep.c (i386_frameless_signal_p): New function.
6025 (i386_frame_chain): Deal with frameless signals.
6026 (i386_sigtramp_saved_sp): New function.
6027 (i386_frame_saved_pc): Deal with frameless signals.
6028 (i386_saved_pc_after_call): Make sure the correct value is
6029 returned just after entry into a sigtramp.
6030 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6031 i386fbsd4_sc_sp_offset): New variables.
6032 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6033 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6034 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6035 similiar to what we already did for sc_pc_offset.
6036 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6039 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6041 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6043 * config/i386/tm-x86-64linux.h: New.
6044 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6046 * config/i386/nm-x86-64.h: Rename to ...
6047 * config/i386/nm-x86-64linux.h: ... this one.
6048 * config/i386/x86-64linux.mh: Reflect the above change.
6050 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6052 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6053 with sigcontext_addr. Add sc_sp_offset.
6054 (i386bsd_sigtramp_saved_pc): Remove prototype.
6055 (i386bsd_sicontext_addr): Add prototype.
6056 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6057 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6058 (i386_svr4_sigtramp_saved_pc): Removed.
6059 (i386_svr4_sigcontext_addr): New function.
6060 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6061 Initialize tdep->sigcontext_addr instead. Initialize
6062 tdep->sc_pc_offset and tdep->sc_sp_offset.
6063 (i386_gdbarch_init): Likewise.
6064 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6066 (i386bsd_sigtramp_saved_pc): Remove function.
6067 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6068 Initialize tdep->sigcontext_addr instead. Initialize
6070 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6071 of tdep->sigtramp_saved_pc.
6072 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6073 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6076 * i386-tdep.c (i386_frameless_function_invocation,
6077 i386_frame_num_args, i386_frame_init_saved_regs,
6078 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6079 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6080 i386_extract_return_value, i386_store_return_value,
6081 i386_extract_struct_value_address, i386_register_virtual_type,
6082 i386_register_convertible, i386_register_convert_to_virtual,
6083 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6084 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6087 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6089 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6091 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6092 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6093 this macro. Include "value.h".
6095 2002-06-30 Aidan Skinner <aidan@velvet.net>
6097 * ada-exp.tab.c: remove as it's a generated file
6098 * ada-lex.c: remove as it's a generated file
6100 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6102 * config/i386/tm-i386.h (struct frame_info, struct
6103 frame_saved_regs, struct value, struct type): Remove forward
6106 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6107 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6108 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6109 (FILL_FPXREGSET): Define.
6111 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6113 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6114 i[3456]86-*-netbsd* case.
6115 * config/i386/tm-obsd.h: Removed.
6116 * config/i386/obsd.mt: Removed.
6117 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6119 (MH_CFLAGS): Add -DYYDEBUG=0.
6121 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6122 i386nbsd_sc_pc_offset on OpenBSD too.
6124 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6125 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6126 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6128 * i386bsd-tdep.c: Include "arch-utils.h".
6129 (i386bsd_aout_in_solib_call_trampoline): New function.
6130 (i386bsd_init_abi): Set in_solib_call_trampoline to
6131 i386bsd_aout_in_solib_call_trampoline.
6132 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6133 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6135 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6137 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6138 (struct obstack, struct bcache): Add opaque declarations.
6139 * Makefile.in (macrotab_h): Update
6141 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6143 * blockframe.c (generic_find_dummy_frame): Change return type to
6144 ``struct regcache''.
6145 (struct dummy_frame): Replace field ``registers'' with regcache, a
6146 struct regcache object.
6147 (generic_find_dummy_frame): Update.
6148 (generic_push_dummy_frame): Update. Use regcache_xfree,
6149 regcache_xmalloc and regcache_cpy.
6150 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6152 (deprecated_generic_find_dummy_frame): Update.
6153 (generic_read_register_dummy): Update. Use
6154 regcache_read_as_address.
6155 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6156 (generic_get_saved_register): Update. Use regcache_read.
6158 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6160 * Makefile.in (objfiles_h): Add $(bcache_h).
6161 * objfiles.h: Include "bcache.h".
6163 * Makefile.in (symtab_h): Remove $(bcache_h).
6164 * symtab.h: Do not include "bcache.h".
6166 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6168 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6169 generic_func_frame_chain_valid.
6171 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6173 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6174 * config/i386/tm-fbsd.h: Likewise.
6176 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6178 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6179 generic_unwind_get_saved_register.
6181 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6183 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6184 * regcache.c (supply_register): Add missing argument to
6185 register_buffer call.
6187 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6189 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6190 Solaris /bin/grep does not not like it. From Peter Schauer.
6192 2002-06-26 Tom Tromey <tromey@redhat.com>
6194 * command.h (add_setshow_cmd): Declare.
6195 (add_setshow_cmd_full): Declare.
6196 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6197 returns void. Use add_setshow_cmd_full.
6198 (add_setshow_cmd_full): New function.
6199 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6200 (add_setshow_boolean_cmd): Likewise.
6202 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6204 * config/vax/tm-vax.h: Protect from multiple inclusion.
6205 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6206 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6207 * config/vax/tm-vaxbsd.h: ...here. New file.
6208 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6210 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6212 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6213 (BELIEVE_PCC_PROMOTION): Remove.
6214 (AP_REGNUM): Move to...
6215 * config/vax/nm-vax.h: ...here.
6216 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6217 (vax_breakpoint_from_pc): New function.
6218 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6219 and gdbarch_believe_pcc_promotion.
6221 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6223 * Makefile.in (vax_tdep_h): Define.
6224 (vax-tdep.o): Use $(vax_tdep_h).
6225 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6226 (vax_dump_tdep): New function.
6227 (_initialize_vax_tdep): Register vax_dump_tdep.
6228 * vax-tdep.h: Include osabi.h.
6229 (struct gdbarch_tdep): New.
6231 2002-06-26 Andrew Cagney <cagney@redhat.com>
6233 * frame.h (deprecated_generic_find_dummy_frame): Rename
6234 generic_find_dummy_frame.
6235 * blockframe.c (generic_find_dummy_frame): Make static.
6236 (deprecated_generic_find_dummy_frame): New function.
6237 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6238 generic_find_dummy_frame with deprecated_find_dummy_frame.
6239 (sh64_nofp_frame_init_saved_regs): Ditto.
6240 (sh_fp_frame_init_saved_regs): Ditto.
6241 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6242 (s390_frame_chain): Ditto.
6243 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6245 2002-06-26 Grace Sainsbury <graces@redhat.com>
6247 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6248 gdbarch vector are at the top.
6250 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6251 (FRAME_ARGS_ADDRESS): Remove.
6252 (FRAME_LOCALS_ADDRESS): Remove.
6253 (FRAME_NUM_ARGS): Remove.
6254 (FRAME_ARGS_SKIP): Remove.
6255 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6256 (m68k_gdbarch_init): Add gdbarch initializations for macros
6257 undefined in tm-m68k.h
6259 2002-06-26 Grace Sainsbury <graces@redhat.com>
6261 * monitor.h: Add the function regname to monitor_ops
6262 structure. This way NUM_REGS does not have to be a constant.
6263 * monitor.c (monitor_fetch_register): Added support for regname
6264 function. The function is called if the array regnames is NULL.
6265 (monitor_store_register): Same.
6266 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6268 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6269 cpu32bug_cmds.regname to point to new function.
6270 * abug-rom.c (abug_regname): Same as above.
6271 (init_abug_cmds): Same.
6272 * dbug-rom.c (dbug_regname): Same as above.
6273 (init_dbug_cmds): Same.
6274 * remote-est.c (est_regname): Same.
6275 (init_est_cmds): Same.
6276 * rom68k-rom.c (rom68k_regname): Same.
6277 (init_rom68k_cmds): Same.
6279 2002-06-25 Tom Tromey <tromey@redhat.com>
6281 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6283 2002-06-25 Andrew Cagney <cagney@redhat.com>
6285 * infrun.c (stop_registers): Change variable's type to ``struct
6287 (xmalloc_inferior_status): Delete function.
6288 (free_inferior_status): Delete function.
6289 (normal_stop): Use regcache_cpy.
6290 (struct inferior_status): Change type of fields ``stop_registers''
6291 and ``registers'' to ``struct regcache''.
6292 (write_inferior_status_register): Use regcache_write.
6293 (save_inferior_status): Instead of calling
6294 xmalloc_inferior_status, allocate the inf_status buffer directly.
6295 Use regcache_dup_no_passthrough and regcache_dup to save the
6297 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6298 Replace the stop_registers regcache instead of overriding it. Use
6299 regcache_xfree. Instead of calling free_inferior_status, xfree
6300 the buffer directly.
6301 (discard_inferior_status): Use regcache_xfree. Instead of calling
6302 free_inferior_status, xfree the buffer directly.
6303 (build_infrun): Use regcache_xmalloc.
6304 (_initialize_infrun): Delete redundant call to build_infrun.
6306 * Makefile.in (infcmd.o): Add $(regcache_h).
6308 * infcmd.c: Include "regcache.h".
6309 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6310 obtain the address of `stop_registers' register buffer.
6311 (print_return_value): Ditto.
6313 * inferior.h (struct regcache): Add opaque declaration.
6314 (stop_registers): Change variable's declared type to ``struct
6317 2002-06-24 Tom Tromey <tromey@redhat.com>
6319 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6320 * target.c (initialize_targets): Fixed typo in
6321 trust-readonly-sections `show' documentation.
6323 * main.c: Marked all strings with _().
6325 2002-06-24 Don Howard <dhoward@redhat.com>
6327 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6328 that means max CORE_ADDR+1.
6329 (lookup_mem_region): Ditto.
6330 (mem_info_command): Ditto.
6332 2002-06-24 Grace Sainsbury <graces@redhat.com>
6334 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6335 (REGISTER_BYTES_OK): Remove.
6336 (REGISTER_BYTES): Remove.
6337 (STORE_STRUCT_RETURN): Remove.
6338 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6339 (STORE_RETURN_VALUE): Remove.
6340 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6341 (FRAME_CHAIN): Remove.
6342 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6343 (FRAME_SAVED_PC): Remove.
6344 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6345 (m68k_store_struct_return): Add.
6346 (m68k_deprecated_extract_return_value): Add.
6347 (m68k_deprecated_extract_struct_value_address): Add.
6348 (m68k_store_return_value): Add.
6349 (m68k_frame_chain): Add.
6350 (m68k_frameless_function_invocation): Add.
6351 (m68k_frame_saved_pc): Add.
6352 (m68k_gdbarch_init): added set_gdbarch calls for new
6353 functions and deleted macros.
6355 2002-06-23 Tom Tromey <tromey@redhat.com>
6357 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6358 (ALLDEPFILES): Likewise.
6359 (udiheaders): Removed.
6360 (udip2soc.o): Likewise.
6361 (udi2go32.o): Likewise.
6363 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6365 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6367 * infrun.c (_initialize_infrun): Delete unnecessary call to
6370 * regcache.h: Update comments describing the regcache_cpy family
6372 (regcache_save, regcache_restore): Delete declaration.
6373 (regcache_save_no_passthrough): Delete declaration.
6374 (regcache_restore_no_passthrough): Delete declaration.
6375 * regcache.c (regcache_save): Delete function.
6376 (regcache_save_no_passthrough): Delete function.
6377 (regcache_restore): Delete function.
6378 (regcache_restore_no_passthrough): Delete function.
6380 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6382 * config/m68k/tm-m68k.h: Fix typo.
6383 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6384 (m68k_frame_init_saved_regs): Declare.
6386 2002-06-21 Jim Blandy <jimb@redhat.com>
6388 Remove some vestiges of Harris 88k support.
6389 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6390 register numbering quirk.
6391 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6392 odd symbols occurring in Harris 88k ELF targets.
6394 2002-06-21 Tom Tromey <tromey@redhat.com>
6396 * gdb_locale.h: New file.
6397 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6398 (defs_h): Added gdb_locale.h.
6399 * configure, config.in: Rebuilt.
6400 * configure.in (PACKAGE): Define.
6401 * defs.h: Include gdb_locale.h.
6402 * main.c (captured_main): Call setlocale, bindtextdomain,
6405 2002-06-21 Dave Brolley <brolley@redhat.com>
6407 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6408 * config/frv/frv.mt: New file.
6409 * config/frv/tm-frv.h: New file.
6410 * configure.tgt: Support frv-*-*.
6411 * Makefile.in (frv-tdep.o): New target.
6412 * frv-tdep.c: New file.
6413 * NEWS: Mention frv.
6415 2002-06-21 Dave Brolley <brolley@redhat.com>
6417 * MAINTAINERS: Add self to "Write After Approval" list.
6419 2002-06-21 Grace Sainsbury <graces@redhat.com>
6421 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6422 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6423 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6424 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6425 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6427 * m68k-tdep.c: Include arch-utils.h
6428 (m68k_register_raw_size): Add.
6429 (m68k_register_virtual_size): Add.
6430 (m68k_register_virtual_type): Add.
6431 (m68k_register_name): Add.
6432 (m68k_stack_align): Add.
6433 (m68k_register_byte): Add.
6434 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6437 2002-06-21 Grace Sainsbury <graces@redhat.com>
6439 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6440 m68k_find_saved_regs.
6441 (m68k_pop_frame): Removed saved_regs structure, and replaced
6442 references to it with frame->saved_regs.
6443 (m68k_gdbarch_init): Added function calls to initialize the
6445 (m68k_fix_call_dummy): Add.
6446 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6447 (CALL_DUMMY): Remove.
6448 (CALL_DUMMY_LENGTH): Remove.
6449 (CALL_DUMMY_START_OFFSET): Remove.
6450 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6451 (FIX_CALL_DUMMY): Remove.
6452 (PUSH_DUMMY_FRAME): Remove.
6453 (POP_FRAME): Remove.
6455 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6457 * parse.c (parse_fprintf): New function used to avoid calls to
6458 fprintf in bison parser generated debug code.
6459 * parser-defs.h: Declaration of new parse_fprintf function.
6460 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6461 Set YYDEBUG to 1 by default.
6462 Set YYFPRINTF as parse_fprintf.
6464 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6466 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6468 (pointer_encoding, enum ptr_encoding): New.
6469 (execute_cfa_program): Take care about pointer encoding.
6470 (dwarf2_build_frame_info): Only call parse_frame_info for
6471 .debug_frame and .eh_frame.
6472 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6473 fixed augmentation handling, added relative addressing,
6474 ignore duplicate FDEs. Added comments.
6475 * dwarf2cfi.c: Reindented.
6477 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6479 * event-top.c (command_handler): Don't use space_at_cmd_start
6480 unless there is sbrk() on the host. Assign time and space data
6481 to union fields of the appropriate length.
6483 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6485 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6486 x86_64_register_name. Return type changed to 'const char *'.
6487 (x86_64_register_name2nr): Rename to x86_64_register_number.
6488 (x86_64_gdbarch_init): Update to reflect the change.
6489 * x86-64-tdep.h: Ditto.
6490 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6491 (supply_fpregset): Ditto.
6493 2002-06-19 Andrew Cagney <cagney@redhat.com>
6495 * regcache.h: Update copyright.
6496 (struct regcache, struct gdbarch): Add opaque declarations.
6497 (current_regcache): Declare global variable.
6498 (regcache_read, regcache_write): Add gdbarch parameter.
6499 (regcache_save, regcache_save_no_passthrough)
6500 (regcache_restore, regcache_restore_no_passthrough)
6501 (regcache_dup, regcache_dup_no_passthrough)
6502 (regcache_cpy, regcache_cpy_no_passthrough)
6503 (deprecated_grub_regcache_for_registers)
6504 (deprecated_grub_regcache_for_register_valid)
6505 (regcache_valid_p): Add function declarations.
6507 * regcache.c: Update copyright.
6508 (regcache_descr_handle): New global variable.
6509 (struct regcache_descr): Define.
6510 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6511 (regcache_descr, xfree_regcache_descr): New functions.
6512 (struct regcache): Define.
6513 (regcache_xmalloc, regcache_xfree): New functions.
6514 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6515 (regcache_dup, regcache_dup_no_passthrough): New functions.
6516 (regcache_valid_p, regcache_read_as_address): New functions.
6517 (deprecated_grub_regcache_for_registers): New function.
6518 (deprecated_grub_regcache_for_register_valid): New function.
6519 (current_regcache): New global variable.
6520 (register_buffer): Add regcache parameter. Update calls.
6521 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6522 (read_register_gen, write_register_gen): Update register_buffer
6523 call. Test for legacy_p instead of gdbarch_register_read_p or
6524 gdbarch_register_write_p.
6525 (regcache_collect): Update register_buffer call.
6526 (build_regcache): Rewrite. Use deprecated grub functions.
6527 (regcache_save, regcache_save_no_passthrough): New functions.
6528 (regcache_restore, regcache_restore_no_passthrough): New
6530 (_initialize_regcache): Create the regcache_data_handle. Swap
6531 current_regcache global variable.
6533 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6534 parameter to regcache_read and regcache_write calls.
6535 (sh4_register_read): Ditto.
6536 (sh64_pseudo_register_read): Ditto.
6537 (sh64_register_read): Ditto.
6538 (sh_pseudo_register_write): Ditto.
6539 (sh4_register_write): Ditto.
6540 (sh64_pseudo_register_write): Ditto.
6541 (sh64_register_write): Ditto.
6543 * defs.h (XCALLOC): Define.
6545 2002-06-19 Grace Sainsbury <graces@redhat.com>
6547 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6548 * m68k-tdep.c (m68k_gdbarch_init): Added.
6549 (m68k_dump_tdep): Added.
6551 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6553 * ada-lang.c (fill_in_ada_prototype): Update comment.
6555 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6557 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6559 (mips_abi_string, mips_abi_strings): New.
6560 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6561 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6562 tdep->mips_abi_string. Honor mips_abi_string. Default to
6563 O32 if no ABI is found.
6564 (mips_dump_tdep): Use mips_abi_strings.
6565 (mips_abi_update): New function.
6566 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6567 ``set mips abi'' and ``show mips abi''. Check the size of
6570 2002-06-19 Andrew Cagney <cagney@redhat.com>
6572 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6575 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6577 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6578 current frame using only the first stack size adjustment. All
6579 subsequent size adjustments are not considered to be part of
6580 the "static" part of the current frame.
6581 Compute the address of the saved registers relative to the
6582 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6583 in use in this frame.
6585 2002-06-18 Don Howard <dhoward@redhat.com>
6587 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6588 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6589 suggesting this solution.
6591 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6593 * config/romp/xm-rtbsd.h: Delete file.
6594 * config/romp/rtbsd.mh: Delete file.
6596 2002-06-18 Keith Seitz <keiths@redhat.com>
6598 * breakpoint.c (condition_command): Post breakpoint_modify
6599 when a condition is added to an existing breakpoint.
6600 (commands_command): Likewise for commands.
6601 (set_ignore_count): Likewise for ignore counts.
6602 If no tty, do not simply return, still need to send event
6604 (ignore_command): Only print a newline if the command came
6606 Don't call breakpoints_changed, since this is now properly
6607 handled by set_ignore_count.
6609 2002-06-18 Andrew Cagney <cagney@redhat.com>
6611 * MAINTAINERS: Note that cris-elf target can be compiled with
6613 * cris-tdep.c (cris_register_name): Make return type constant.
6614 (cris_breakpoint_from_pc): Ditto.
6616 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6618 * frame.h (struct frame_info): Change type of context to
6621 2002-06-17 Andrew Cagney <cagney@redhat.com>
6623 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6625 * gdbarch.h, gdbarch.c: Regenerate.
6626 * config/mips/tm-mips.h (mips_register_name): Update.
6627 * i386-tdep.h (i386_register_name): Update.
6628 * mips-tdep.c (mips_register_name): Update
6629 * alpha-tdep.c (alpha_register_name): Update.
6630 * arch-utils.c (legacy_register_name): Update.
6631 * arch-utils.h (legacy_register_name): Update.
6632 * avr-tdep.c (avr_register_name): Update.
6633 * ia64-tdep.c (ia64_register_name): Update.
6634 * i386-tdep.c (i386_register_name): Update.
6635 * sparc-tdep.c (sparc32_register_name): Update.
6636 (sparc64_register_name): Update.
6637 (sparclite_register_name): Update.
6638 (sparclet_register_name): Update.
6639 * sh-tdep.c (sh_generic_register_name): Update.
6640 (sh_sh_register_name): Update.
6641 (sh_sh3_register_name): Update.
6642 (sh_sh3e_register_name): Update.
6643 (sh_sh_dsp_register_name): Update.
6644 (sh_sh3_dsp_register_name): Update.
6645 (sh_sh4_register_name): Update.
6646 (sh_sh64_register_name): Update.
6647 * s390-tdep.c (s390_register_name): Update.
6648 * rs6000-tdep.c (rs6000_register_name): Update.
6649 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6650 (ns32k_register_name_32382): Update.
6651 * d10v-tdep.c (d10v_ts2_register_name): Update.
6652 (d10v_ts3_register_name): Update.
6653 * xstormy16-tdep.c (xstormy16_register_name): Update.
6654 * vax-tdep.c (vax_register_name): Update.
6655 * v850-tdep.c (v850_register_name): Update.
6656 * m68hc11-tdep.c (m68hc11_register_name): Update.
6657 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6658 (am33_register_name): Update.
6660 2002-06-17 Grace Sainsbury <graces@redhat.com>
6662 * m68k-tdep.c: Reindented.
6664 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6666 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6667 list of predefined types.
6669 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6671 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6672 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6673 REGISTER_CONVERT_TO_RAW): Remove defines.
6674 (i386_register_virtual_type, i386_register_convertible,
6675 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6677 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6678 macros mentioned above.
6680 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6681 (i386lynx_saved_pc_after_call): Remove prototype.
6682 * i386ly-tdep.c: Include "i386-tdep.h".
6683 (i386lynx_saved_pc_after_call): Make static. Use
6684 read_memory_nobpt instead of read_memory. Use
6685 read_memory_unsigned_integer instead of read_memory_integer.
6686 (i386lynx_init_abi): New function.
6687 (i386lynx_coff_osabi_sniffer): New function.
6688 (_initialize_i386bsd_tdep): New function.
6690 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6691 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6692 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6693 (i386_fix_call_dummy): Remove prototype.
6694 * i386-tdep.c (i386_call_dummy_words): New variable.
6695 (i386_gdbarch_init): Adjust for removal of the
6696 macros mentioned above.
6698 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6700 * command.h (add_setshow_auto_boolean_cmd): Replace
6701 add_set_auto_boolean_cmd.
6702 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6703 add_set_auto_boolean_cmd.
6704 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6705 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6706 mask-address'' command.
6707 (show_mask_address): Add cmd parameter.
6708 * remote.c (add_packet_config_cmd): Update. Change type of
6709 set_func and show_func to cmd_sfunc_ftype.
6710 (_initialize_remote): Update `set remote Z-packet'
6711 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6712 (show_remote_protocol_e_packet_cmd): Ditto.
6713 (show_remote_protocol_E_packet_cmd): Ditto.
6714 (show_remote_protocol_P_packet_cmd): Ditto.
6715 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6716 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6717 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6718 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6719 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6720 (show_remote_protocol_Z_packet_cmd): Ditto.
6721 (show_remote_protocol_binary_download_cmd): Ditto.
6722 (show_remote_cmd): Pass NULL to all of above.
6724 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6726 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6727 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6728 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6729 POP_FRAME): Remove defines.
6730 (i386_push_arguments, i386_store_struct_return,
6731 i386_extract_return_value, i386_store_return_value,
6732 i386_extract_struct_value_address, i386_push_dummy_frame,
6733 i386_pop_frame): Renove prototypes.
6734 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6735 macros mentioned above.
6737 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6739 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6740 add_set_boolean_cmd.
6741 (add_setshow_cmd): New function.
6742 * command.h (add_setshow_boolean_cmd): Replace
6743 add_set_boolean_cmd.
6744 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6745 and ``set rdiromatzero''.
6746 * maint.c (_initialize_maint_cmds): Update commented out code.
6747 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6748 * target.c (initialize_targets): Update `set
6749 trust-readonly-sections'.
6750 * remote.c (_initialize_remote): Update `set remotebreak'.
6752 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6754 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6755 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6756 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6757 fit into multi-arch framework.
6758 (i386_breakpoint_from_pc): New function.
6759 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6762 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6763 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6764 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6765 (i386_frameless_function_invocation, i386_frame_num_args,
6766 i386_frame_init_saved_regs): Remove prototypes.
6767 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6768 macros mentioned above.
6770 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6772 * cli/cli-decode.c (set_cmd_cfunc): Update.
6773 (set_cmd_sfunc): Update.
6774 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6775 (set_cmd_sfunc, set_cmd_cfunc): Update.
6776 * cli/cli-decode.h: Update.
6778 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6780 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6781 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6783 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6785 * defs.h (auto_boolean): Declare enum.
6786 * command.h (cmd_auto_boolean): Delete enum.
6787 * mips-tdep.c (mask_address_var): Update.
6788 (mips_mask_address_p): Update.
6789 (show_mask_address): Update.
6790 * remote.c (struct packet_config): Update.
6791 (update_packet_config): Update.
6792 (show_packet_config_cmd): Update.
6793 (packet_ok): Update.
6794 (add_packet_config_cmd): Update.
6795 (_initialize_remote):
6796 * command.h: Update.
6797 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6798 (do_setshow_command): Update.
6799 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6800 * cli/cli-decode.h: Update.
6802 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6804 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6805 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6806 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6807 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6808 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6809 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6811 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6812 list of DJGPP COFF targets.
6814 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6815 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6816 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6817 (FP0_REGNUM): Remove define.
6818 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6819 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6820 (i386_register_virtual_size): Remove protoype.
6821 * i386-tdep.c (i386_register_virtual_size): Removed.
6822 (i386_extract_return_value, i386_store_return_value): Use
6823 FP0_REGNUM instead of NUM_FREGS to determine whether the
6824 floating-point registers are available.
6825 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6826 Adjust for removal of macros mentioned above.
6828 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6830 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6832 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6834 (supply_gregset, fill_gregset): Remove use of register keyword and
6835 remove declaration for regmap. Use I386_NUM_GREGS instead of
6836 NUM_REGS and NUM_FREGS.
6837 (FPREGSET_FSAVE_OFFSET): Remove.
6838 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6839 NUM_FREGS to determine whether the floating-point registers are
6842 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6843 gnu_store_registers): Replace usage of NUM_GREGS with
6846 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6847 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6848 usage of NUM_GREGS with I386_NUM_GREGS.
6850 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6852 * i386bsd-nat.c: Include "i386-tdep.h".
6853 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6856 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6857 and associated comment. They no longer make any sense, since we
6858 don't use this file anymore on Linux.
6860 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6861 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6862 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6863 elements in these arrays.
6864 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6867 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6869 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6870 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6872 2002-06-14 Andrew Cagney <cagney@redhat.com>
6874 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6875 EXTRACT_RETURN_VALUE.
6876 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6877 EXTRACT_STRUCT_VALUE_ADDRESS.
6878 * gdbarch.h, gdbarch.c: Regenerate.
6880 * values.c (value_being_returned): Handle
6881 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6882 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6884 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6885 * arm-tdep.c (arm_gdbarch_init): Update.
6886 * avr-tdep.c (avr_gdbarch_init): Update.
6887 * cris-tdep.c (cris_gdbarch_init): Update.
6888 * d10v-tdep.c (d10v_gdbarch_init): Update.
6889 * ia64-tdep.c (ia64_gdbarch_init): Update.
6890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6891 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6892 * s390-tdep.c (s390_gdbarch_init): Update.
6893 * sh-tdep.c (sh_gdbarch_init): Update.
6894 * s390-tdep.c (s390_gdbarch_init): Update.
6895 * sparc-tdep.c (sparc_gdbarch_init): Update.
6896 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6897 * v850-tdep.c (v850_gdbarch_init): Update.
6898 * vax-tdep.c (vax_gdbarch_init): Update.
6899 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6902 * config/arc/tm-arc.h: Update.
6903 * config/d30v/tm-d30v.h: Update.
6904 * config/fr30/tm-fr30.h: Update.
6905 * config/h8300/tm-h8300.h: Update.
6906 * config/h8500/tm-h8500.h: Update.
6907 * config/i386/tm-i386.h: Update.
6908 * config/i386/tm-ptx.h: Update.
6909 * config/i386/tm-symmetry.h: Update.
6910 * config/i960/tm-i960.h: Update.
6911 * config/m32r/tm-m32r.h: Update.
6912 * config/m68k/tm-delta68.h: Update.
6913 * config/m68k/tm-linux.h: Update.
6914 * config/m68k/tm-m68k.h: Update.
6915 * config/m88k/tm-m88k.h: Update.
6916 * config/mcore/tm-mcore.h: Update.
6917 * config/mips/tm-mips.h: Update.
6918 * config/mn10200/tm-mn10200.h: Update.
6919 * config/pa/tm-hppa.h: Update.
6920 * config/pa/tm-hppa64.h: Update.
6921 * config/sparc/tm-sp64.h: Update.
6922 * config/sparc/tm-sparc.h: Update.
6923 * config/sparc/tm-sparclet.h: Update.
6924 * config/z8k/tm-z8k.h: Update.
6926 2002-06-14 Andrew Cagney <cagney@redhat.com>
6928 * Makefile.in (i386_linux_tdep_h): Define.
6929 (i386_tdep_h, i387_tdep_h): Define.
6930 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6931 $(i386_tdep_h) and $(i387_tdep_h).
6932 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6934 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6936 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6937 Already covered by the default.
6939 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6940 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6941 (i386_gdbarch_init): Initialize long_double_format and long_double
6944 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6945 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6947 * config/i386/i386sol2.mh: ... here.
6948 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6949 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6950 (SIGCONTEXT_PC_OFFSET): Remove define.
6951 (IN_SIGTRAMP): Remove define.
6952 * i386-sol2-tdep.c: New file.
6954 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6955 * config/i386/tm-i386nw.h: Removed.
6957 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6958 USE_STRUCT_CONVENTION): Remove defines.
6959 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6960 (get_longjmp_target): Remove prototype.
6961 (IN_SIGTRAMP): Remove define.
6962 (i386bsd_in_sigtramp): Remove prototype.
6963 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6964 function. Update comment accordingly
6965 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6966 (FRAME_SAVED_PC): Remove define.
6967 (i386bsd_frame_saved_pc): Remove prototype.
6968 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6969 GET_LONGJMP_TARGET): Remove defines.
6970 (get_longjmp_target): Remove prototype.
6971 (IN_SIGTRAMP): Remove define.
6972 (i386bsd_in_sigtramp): Remove prototype.
6973 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6974 function. Update comment accordingly
6975 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6976 (FRAME_SAVED_PC): Remove define.
6977 (i386bsd_frame_saved_pc): Remove prototype.
6978 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6980 (USE_STRUCT_CONVENTION): Remove prototype.
6981 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6983 (_initialize_i386bsd_nat): Revise logic to determine some
6984 constants at compile time when compiling a native GDB. Warn if
6985 things don't match up with what we expect.
6986 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6988 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6989 to use date stored in `struct gdbarch_tdep'.
6990 (i386bsd_sigcontext_offset): Remove varaible.
6991 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6992 stored in `struct gdbarch_tdep'.
6993 (i386bsd_frame_saved_pc): Make static.
6994 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6995 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6996 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6997 i386fbsd4_sc_pc_offset): New variables.
6998 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6999 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7001 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7003 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7004 Modify the value of i386fbsd_sigtramp_start and
7005 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7006 i386fbsd_sigtramp_end.
7007 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7010 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7011 define to i386-linux-tdep.h.
7012 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7013 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7015 (i386_linux_register_name, i386_linux_register_byte,
7016 i386_linux_register_raw_size): Remove prototypes.
7017 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7018 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7019 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7020 TARGET_WRITE_PC): Remove defines.
7021 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7022 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7023 i386_linux_write_pc): Remove prototypes.
7024 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7025 (get_longjmp_target): Remove prototype.
7026 * i386-linux-tdep.h: New file.
7027 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7028 * i386-linux-tdep.c: Include "i386-tdep.h" and
7029 "i386-linux-tdep.h".
7030 (i386_linux_register_name, i386_linux_register_byte,
7031 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7032 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7034 (i386_linux_init_abi): New function.
7035 (_initialize_i386_linux_tdep): New function.
7037 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7038 (i386_saved_pc_after_call): Remove prototype.
7039 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7040 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7041 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7042 (i386_register_name, i386_stab_reg_to_regnum,
7043 i386_dwarf_reg_to_regnum): Remove prototypes.
7044 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7045 SIZEOF_SSE_REGS): Remove defines.
7046 (REGISTER_BYTES): Remove define.
7047 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7048 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7049 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7050 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7051 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7052 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7053 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7054 (get_longjmp_target): Remove prototype.
7055 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7056 (sigtramp_saved_pc): Remove define.
7057 (i386v4_sigtramp_saved_pc): Remove prototype.
7058 * config/i386/tm-go32.h (FRAME_CHAIN,
7059 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7060 (i386go32_frame_saved_pc): Remove prototype.
7061 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7062 (get_longjmp_target): Remove prototype.
7063 * i386-tdep.h: Include "osabi.h".
7064 (enum i386_abi): Removed.
7065 (enum struct_return): New enum.
7066 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7067 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7068 sc_pc_offset members.
7069 (i386_gdbarch_register_os_abi): Remove prototype.
7070 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7071 I386_SSE_NUM_REGS): New defines.
7072 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7073 I386_SSE_SIZEOF_REGS): New defines.
7074 (i386_register_name, i386_register_byte, i386_register_raw_size):
7076 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7077 (i386bsd_sigtramp_saved_pc): New prototype.
7078 * i386-tdep.c: Don't include "elf-bfd.h".
7079 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7080 i386_frame_chain, i386_saved_pc_after_call): Make static.
7081 (i386_frame_saved_pc): Rewrite to call architecture dependent
7082 function to deal with signal handlers. Make static.
7083 (i386go32_frame_saved_pc): Removed.
7084 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7086 (i386_get_longjmp_target): New function.
7087 (default_struct_convention, pcc_struct_convention,
7088 reg_struct_convention, valid_conventions, struct_convention): New
7090 (i386_use_struct_convention): New function.
7091 (i386v4_sigtramp_saved_pc): Renamed to
7092 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7093 (i386_pc_in_sigtramp): New function.
7094 (i386_abi_names): Removed.
7095 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7096 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7098 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7099 i386_gdbarch_register_os_abi): Removed.
7100 (struct i386_abi_handler): Removed.
7101 (i386_abi_handler_list): Removed.
7102 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7104 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7105 i386_nw_init_abi): New functions.
7106 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7107 Use set_gdbarch_xxx() calls instead of relying on macros for a
7109 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7110 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7111 Register the various architecture variants defined in this file.
7113 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7115 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7116 (struct main_type): Remove arg_types member. Update comments for
7118 (TYPE_ARG_TYPES): Remove.
7119 (TYPE_FN_FIELD_ARGS): Update.
7120 (smash_to_method_type): Update prototype.
7122 * c-typeprint.c (cp_type_print_method_args): Take method type
7123 instead of argument list. Use new argument layout. Simplify.
7124 (c_type_print_args): Use new argument layout. Simplify.
7125 (c_type_print_base): Update call to cp_type_print_method_args.
7126 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7127 argument; use die->type instead. Update call to
7128 smash_to_method_type.
7129 (read_structure_scope): Update call to dwarf2_add_member_fn.
7130 * gdbtypes.c (allocate_stub_method): Update comment.
7131 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7132 Use new argument layout.
7133 (check_stub_method): Use new argument layout. Don't count
7134 void as an argument.
7135 (print_arg_types): Update comments. Use new argument layout.
7136 (recursive_dump_type): Don't print arg_types member.
7137 * hpread.c (hpread_read_struct_type): Use new argument layout.
7138 (fixup_class_method_type): Likewise.
7139 (hpread_type_lookup): Likewise.
7140 * stabsread.c (read_type): Update calls to read_args and
7141 smash_to_method_type.
7142 (read_args): Use new argument layout. Simplify.
7143 * valops.c (typecmp): Use new argument layout. Update parameters
7144 and comments. Simplify.
7145 (hand_function_call): Use new argument layout.
7146 (search_struct_method): Update call to typecmp.
7147 (find_overload_match): Use new argument layout.
7149 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7151 * NEWS: Mention multithreaded debug support for gdbserver.
7153 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7155 * MAINTAINERS: Mention NEWS.
7157 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7159 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7160 (struct mips_objfile_private, compare_pdr_entries): New.
7161 (non_heuristic_proc_desc): Read the ".pdr" section if it
7164 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7166 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7167 (arm_debug): New static variable.
7168 (_initialize_arm_tdep): Add ``set debug arm'' command.
7170 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7172 * Makefile.in (sim_arm_h): Define.
7173 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7174 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7175 (arm_register_sim_regno): New function, map an internal REGNUM
7176 onto a simulator register number.
7177 (arm_gdbarch_init): Set register_sim_regno.
7179 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7181 * MAINTAINERS: Add self.
7183 2002-06-11 Jim Blandy <jimb@redhat.com>
7185 * source.c (source_info): Mention whether the symtab has
7186 information about preprocessor macros.
7188 Call the command `info macro', not `show macro'.
7189 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7191 (_initialize_macrocmd): Register `info_macro_command' in
7192 `infolist', not `showlist'.
7194 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7196 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7197 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7198 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7199 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7200 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7202 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7203 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7204 (_initialize_mips_tdep): Remove dead code.
7205 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7206 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7207 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7208 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7209 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7210 MIPS_LAST_FP_ARG_REGNUM): Remove.
7212 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7214 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7215 (unwind_tmp_obstack_free, parse_frame_info)
7216 (update_context, cfi_read_fp, cfi_write_fp)
7217 (cfi_frame_chain, cfi_init_extra_frame_info)
7218 (cfi_virtual_frame_pointer): Use the above function.
7219 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7221 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7223 * v850-tdep.c (v850_type_is_scalar): New function.
7224 (v850_use_struct_convention): Match current gcc implementation
7225 as close as possible.
7226 (v850_push_arguments): Fix stack_offset handling. Don't write
7227 struct_addr into register. This is done by v850_store_struct_return.
7228 (v850_extract_return_value): Care for structs.
7229 (v850_store_return_value): Ditto.
7230 (v850_store_struct_return): Actually write address.
7232 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7234 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7235 without debug information too.
7237 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7239 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7240 Make multi-arch pure.
7241 * gdbarch.h, gdbarch.c: Re-generate.
7242 * arm-tdep.c (arm_print_float_info): Update.
7243 * arch-utils.h (default_print_float_info): Update.
7244 * arch-utils.c (default_print_float_info): Update.
7245 * infcmd.c (float_info): Update call.
7247 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7249 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7250 the front of the initialize list.
7252 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7254 * infrun.c (struct inferior_status): Replace fields
7255 selected_frame_address and selected_level with field
7257 (save_inferior_status): Update. Use get_frame_id.
7258 (struct restore_selected_frame_args): Delete.
7259 (restore_selected_frame): Update. Use frame_find_by_id.
7260 (restore_inferior_status): Update.
7262 * breakpoint.h (struct breakpoint): Change type of
7263 watchpoint_frame to frame_id.
7264 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7265 call to get_current_frame.
7266 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7268 (watchpoint_check): Use frame_find_by_id.
7270 * frame.h (record_selected_frame): Delete declaration.
7271 * stack.c (record_selected_frame): Delete function.
7273 * frame.h (struct frame_id): Define.
7274 (get_frame_id): Declare.
7275 (frame_find_by_id): Declare.
7276 * frame.c (frame_find_by_id): New function.
7277 (get_frame_id): New function.
7279 2002-06-10 Andrey Volkov <avolkov@transas.com>
7281 * ser-e7kpc.c: Fix duplicated define and call of
7282 _initialize_ser_e7000pc
7284 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7286 * signals/signals.c (target_signal_from_host): Fix #ifdef
7288 (do_target_signal_to_host): Likewise.
7290 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7292 * mips-tdep.c (mips_find_abi_section): New function.
7293 (mips_gdbarch_init): Call it.
7295 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7297 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7298 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7299 after Andrew's 2002-06-08 gdbarch change.
7301 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7303 * i386-linux-nat.c (suppy_gregset): Don't supply
7304 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7306 (fill_gregset): Don't fetch it under the same circumstances.
7308 2002-06-09 Andrew Cagney <cagney@redhat.com>
7310 * Makefile.in (callback_h): Define.
7311 (remote_sim_h): Update path to remote-sim.h.
7312 (remote-rdp.o): Add $(callback_h).
7313 (remote-sim.o): Use $(callback_h).
7314 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7315 * remote-rdp.c: Include "gdb/callback.h".
7317 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7319 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7320 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7322 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7324 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7325 * rdi-share/serpardr.c: Ditto.
7326 * rdi-share/unixcomm.c: Ditto.
7327 * rdi-share/serdrv.c: Ditto.
7328 * rdi-share/hostchan.h: Ditto.
7329 * rdi-share/hostchan.c: Ditto.
7330 * rdi-share/host.h: Ditto.
7331 * rdi-share/devsw.c: Ditto.
7333 * objfiles.h: Change type of obj_private to void pointer.
7334 * pa64solib.c: Update copyright. Don't include "assert.h", use
7335 strcmp instead of STREQ, use LONGEST, do not use PTR
7336 * somsolib.c: Ditto.
7338 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7339 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7340 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7342 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7344 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7345 (default_get_saved_register): Delete function.
7346 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7347 generic_unwind_get_saved_register.
7348 * gdbarch.h, gdbarch.c: Re-generate.
7350 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7352 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7353 generic_func_frame_chain_valid.
7354 * gdbarch.h, gdbarch.c: Re-generate.
7355 * blockframe.c (generic_func_frame_chain_valid): Only check
7356 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7357 passing FP to PC_IN_CALL_DUMMY.
7360 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7362 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7363 (register_gdbarch_data): Initialize init_p.
7364 (gdbarch_data): Initialize data pointer using the init function.
7365 (init_gdbarch_data): Delete function.
7366 (gdbarch_update_p): Update.
7367 (initialize_non_multiarch): Update.
7368 (struct gdbarch): Add field initialized_p.
7369 * gdbarch.h, gdbarch.c: Re-generate.
7371 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7373 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7374 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7375 better do the things actually here.
7376 * x86-64-tdep.c (x86_64_register_name2nr): New.
7377 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7378 (x86_64_gdbarch_init): Respect the above change.
7379 * x86-64-tdep.h (x86_64_register_name2nr)
7380 (x86_64_register_nr2name): Add prototypes.
7381 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7383 2002-06-06 Michael Snyder <msnyder@redhat.com>
7385 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7386 Delete extra braces and re-indent.
7387 (d10v_store_return_value): Char return values
7388 must be shifted over by one byte in R0.
7389 (d10v_extract_return_value): Delete extra braces, re-indent.
7391 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7393 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7394 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7395 (d10v_integer_to_address): Rewrite.
7396 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7397 the d10v specific functions which take care of converting to the
7400 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7402 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7403 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7405 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7407 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7409 * config/tm-linux.h: Ditto.
7410 * config/alpha/tm-alphalinux.h: Ditto.
7411 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7412 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7413 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7414 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7415 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7416 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7417 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7418 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7419 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7420 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7421 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7422 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7423 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7424 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7425 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7426 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7427 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7428 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7429 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7430 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7431 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7432 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7433 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7434 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7435 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7436 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7437 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7438 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7439 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7440 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7441 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7442 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7443 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7444 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7445 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7446 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7447 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7449 2002-05-04 Aidan Skinner <aidan@velvet.net>
7451 * ada-exp.tab.c: New file
7452 * ada-exp.y: New file
7453 * ada-lang.c: New file
7454 * ada-lang.h: New file
7455 * ada-lex.c: New file
7456 * ada-lex.l: New file
7457 * ada-tasks.c: New file
7458 * ada-typeprint.c: New file
7459 * ada-valprint.c: New file
7461 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7463 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7464 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7466 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7468 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7469 insetead of ppc-linux-tdep.o.
7470 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7471 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7473 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7475 2002-05-07 Christian Groessler <chris@groessler.org>
7476 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7477 bit register contents for little endian hosts.
7479 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7481 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7484 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7486 * gdbarch.h: Regenerate.
7488 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7490 * MAINTAINERS: Add everyone to write-after-approval list.
7492 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7494 * stack.c (frame_info): Use frame_register_unwind instead of
7495 saved_regs. Mention when the SP is on the stack or in a register.
7497 * frame.h (frame_register_unwind_ftype): Define. Document.
7498 (struct frame_info): Add field register_unwind and
7499 register_unwind_cache.
7500 (frame_register_unwind): Declare.
7501 (generic_unwind_get_saved_register): Declare.
7503 * frame.c (frame_register_unwind): New function.
7504 (generic_unwind_get_saved_register): New function.
7506 * blockframe.c (generic_call_dummy_register_unwind): New function.
7507 (frame_saved_regs_register_unwind): New function.
7508 (set_unwind_by_pc): New function.
7509 (create_new_frame): New function.
7510 (get_prev_frame): New function.
7512 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7514 * a29k-share/: Delete directory.
7515 * remote-vx29k.c: Delete file.
7517 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7519 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7520 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7522 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7524 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7525 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7528 (sparcnbsd-tdep.o): New dependency lists.
7529 * NEWS: Note new UltraSPARC NetBSD native configuration.
7530 * configure.host (sparc64-*-netbsd*): New host.
7531 * configure.tgt (sparc-*-netbsdelf*)
7532 (sparc-*-netbsd*): Set gdb_target to nbsd.
7533 (sparc64-*-netbsd*): New target.
7534 * sparc64nbsd-nat.c: New file.
7535 * sparcnbsd-nat.c: New file.
7536 * sparcnbsd-tdep.c: New file.
7537 * sparcnbsd-tdep.h: New file.
7538 * config/sparc/nbsd.mt: New file.
7539 * config/sparc/nbsd64.mh: New file.
7540 * config/sparc/nbsd64.mt: New file.
7541 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7542 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7544 * config/sparc/nbsdaout.mt: Remove.
7545 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7546 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7548 * config/sparc/nbsdelf.mt: Remove.
7549 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7550 sparc-nat.c compatiblity defines.
7551 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7552 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7553 * config/sparc/tm-nbsd64.h: New file.
7554 * config/sparc/tm-nbsdaout.h: Remove.
7555 * config/sparc/xm-nbsd.h: Remove.
7557 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7559 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7560 * sparc-tdep.c: Include osabi.h.
7561 (gdbarch_tdep): Add osabi member.
7562 (_initialize_sparc_tdep): Use gdbarch_register.
7563 (sparc_gdbarch_init): Use generic OS ABI framework.
7564 (sparc_dump_tdep): New function.
7566 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7568 * corefile.c (do_captured_read_memory_integer): Return non-zero
7570 (safe_read_memory_integer): Copy result of memory read when
7571 status is non-zero. Also, add comments.
7573 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7575 * Makefile.in (ppc_tdep_h): Define.
7578 (rs6000-tdep.o): Use $(ppc_tdep_h).
7581 (ppcnbsd-tdep.o): New dependency lists.
7582 * ppc-tdep.h: Use generic OS ABI framework.
7583 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7584 (ppc_linux_init_abi): New functions.
7585 (ppc_sysv_abi_broken_use_struct_convention)
7586 (ppc_sysv_abi_use_struct_convention)
7587 (ppc_sysv_abi_push_arguments): Move to...
7588 * ppc-sysv-tdep.c: ...here.
7589 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7590 * rs6000-tdep.c (process_note_abi_tag_sections)
7591 (get_elfosabi): Remove.
7592 (rs6000_gdbarch_init): Use generic OS ABI framework.
7593 (rs6000_dump_tdep): New function.
7594 (_initialize_rs6000_tdep): Use gdbarch_register.
7595 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7596 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7597 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7598 of ppc-linux-tdep.o.
7599 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7600 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7601 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7602 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7603 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7604 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7606 2002-05-29 Jim Blandy <jimb@redhat.com>
7608 * macroscope.c (default_macro_scope): Put `void' in empty argument
7611 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7613 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7614 * arch-utils.c: Include "sim-regno.h".
7615 * gdbarch.sh: Don't include "sim-regno.h".
7616 * gdbarch.h, gdbarch.c: Regenerate.
7617 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7619 * arch-utils.h (legacy_register_sim_regno): To here.
7620 * remote-sim.c (legacy_register_sim_regno): Move function from
7622 * arch-utils.c (legacy_register_sim_regno): To here.
7624 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7626 * sim-regno.h: New file.
7627 * Makefile.in (sim_regno_h): Define.
7628 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7629 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7630 (legacy_register_sim_regno): New function.
7631 (one2one_register_sim_regno): New function.
7632 (gdbsim_fetch_register): Rewrite.
7633 (gdbsim_store_register): Only store a register when
7634 REGISTER_SIM_REGNO is valid.
7635 * d10v-tdep.c: Include "sim-regno.h".
7636 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7637 (d10v_ts3_register_sim_regno): Ditto.
7638 * gdbarch.sh: Include "sim-regno.h".
7639 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7640 * gdbarch.h, gdbarch.c: Regenerate.
7641 * arch-utils.h (default_register_sim_regno): Delete declaration.
7642 * arch-utils.c (default_register_sim_regno): Delete function.
7644 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7646 * ppcnbsd-nat.c: Rewrite.
7647 * ppcnbsd-tdep.c: New file.
7648 * ppcnbsd-tdep.h: New file.
7649 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7650 solib.o, and solib-svr4.o.
7651 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7652 nbsd-tdep.o, and corelow.o.
7654 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7656 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7657 `tr' and `sed'. Mention that `broken' targets are not expected to
7660 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7662 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7663 Let PC point right after the prologue before looking up symbols.
7665 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7667 * i386-tdep.c (i386_register_virtual_type): Return
7668 builtin_type_vec128i for SSE registers.
7670 * gdbtypes.h (builtin_type_vec128i): Declare.
7672 * gdbtypes.c (build_builtin_type_vec128i): New function.
7673 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7674 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7675 (build_gdbtypes): Initialize new builtin vector types.
7676 (_initialize_gdbtypes): Register new vector types with gdbarch.
7678 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7680 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7681 since it has been multi-arch'd.
7682 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7683 Move Alpha and VAX multi-arch news entries to same section
7684 as other multi-arch news.
7686 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7688 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7689 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7690 static. Rename some register numbers to put them in ns32k-tdep
7692 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7693 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7695 (_initialize_ns32k_tdep): Use gdbarch_register.
7696 * ns32k-tdep.h: New file.
7697 * ns32knbsd-tdep.c: New file.
7698 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7699 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7700 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7701 REGISTER_BYTES, REGISTER_BYTE): Remove.
7702 * config/ns32k/tm-ns32k.h: New file.
7703 * config/ns32k/tm-umax.h: Remove.
7705 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7707 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7708 ns32k_store_struct_return, ns32k_extract_return_value,
7709 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7711 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7712 ns32k_saved_pc_after_call.
7713 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7714 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7715 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7716 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7717 ns32k_extract_struct_value_address.
7719 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7721 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7722 ns32k_fix_call_dummy): New.
7723 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7724 ns32k_call_dummy_words.
7725 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7726 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7727 CALL_DUMMY_NARGS): Remove.
7728 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7730 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7732 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7733 ns32k_frame_saved_pc, ns32k_frame_args_address,
7734 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7735 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7736 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7737 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7738 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7739 (BREAKPOINT): Remove..
7740 (FRAME_CHAIN): Define as ns32k_frame_chain.
7741 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7742 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7743 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7744 (FRAME_FIND_SAVED_REGS): Remove.
7745 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7746 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7747 (POP_FRAME): Define as ns32k_pop_frame.
7749 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7751 * ns32k-tdep.c (ns32k_register_byte_32082,
7752 ns32k_register_byte_32382, ns32k_register_raw_size,
7753 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7755 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7756 ns32k_register_byte_32382.
7757 * config/ns32k/tm-umax.h: Update copyright years.
7758 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7759 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7760 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7761 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7762 (ns32k_get_enter_addr): Fix prototype.
7764 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7766 * ns32k-tdep.c: Update copyright years.
7767 (ns32k_register_name_32082): New function.
7768 (ns32k_register_name_32382): Ditto.
7769 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7770 (REGISTER_NAME): Define as ns32k_register_name_32382.
7771 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7772 (REGISTER_NAME): Define as ns32k_register_name_32082.
7774 2002-05-24 Jim Blandy <jimb@redhat.com>
7776 * dwarf2read.c (free_line_header): Use xfree, not free.
7778 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7780 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7781 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7783 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7785 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7787 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7789 From Ross Alexander at NEC Europe:
7790 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7792 2002-05-23 Michael Snyder <msnyder@redhat.com>
7794 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7795 for input, rather than parse_and_eval_address.
7797 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7799 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7800 * Makefile.in (sim_d10v_h): Update definition.
7802 2002-05-24 Andrew Cagney <cagney@redhat.com>
7804 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7805 change `2002-05-22 Michael Snyder' below.
7806 (d10v_push_arguments): Ditto.
7807 (d10v_extract_return_value): Ditto.
7809 2002-05-23 Jim Blandy <jimb@redhat.com>
7811 * macrotab.c (check_for_redefinition): Don't complain if the new
7812 definition is the same as the previous one. Take more arguments
7813 to allow the comparison.
7814 (macro_define_object, macro_define_function): Pass more arguments
7815 to check_for_redefinition.
7817 2002-05-22 Michael Snyder <msnyder@redhat.com>
7819 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7820 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7821 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7822 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7823 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7824 Add a temp variable to save a call (and a memory read).
7825 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7826 if possible (so that PC_IN_CALL_DUMMY will work).
7828 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7830 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7832 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7834 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7836 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7837 (dwarf2_build_frame_info): Add offset to fde->initial_location
7838 so that frames of shared libraries are mapped correctly.
7839 (execute_stack_op): Change type of 'result' from ULONGEST to
7842 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7844 * config/alpha/tm-nbsd.h: Include solib.h.
7846 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7848 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7849 assumptions about the host's byte order.
7851 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7853 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7855 * alphanbsd-tdep.c: Include solib-svr4.h.
7856 * shnbsd-tdep.c: Ditto.
7858 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7860 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7861 nbsd-tdep.h to dependency list.
7862 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7863 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7864 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7865 nbsdaout.mh and nbsdelf.mh consistently.
7866 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7867 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7868 nbsdaout.mt and nbsdelf.mh consistently.
7869 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7870 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7871 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7872 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7873 a.out shared library stuff from here...
7874 * config/nm-nbsdaout.h: ...to here.
7875 * config/tm-nbsd.h: Remove.
7876 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7877 * config/arm/nbsd.mh: Remove.
7878 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7880 * config/arm/nbsdaout.mh: New file.
7881 * config/arm/nbsdelf.mh: New file.
7882 * config/arm/nm-nbsdaout.h: New file.
7883 * config/i386/nbsd.mh: Remove.
7884 * config/i386/nbsd.mt: Remove.
7885 * config/i386/nbsdaout.mh: New file.
7886 * config/i386/nbsdaout.mt: New file.
7887 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7888 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7889 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7890 i386_register_u_addr): Remove.
7891 * config/i386/nm-nbsdaout.h: New file.
7892 * config/i386/nm-nbsdelf.h: Remove.
7893 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7894 (USE_STRUCT_CONVENTION): Remove.
7895 * config/i386/tm-nbsdaout.h: New file.
7896 * config/i386/tm-nbsdelf.h: Remove.
7897 * config/m68k/nbsd.mh: Remove.
7898 * config/m68k/nbsd.mt: Remove.
7899 * config/m68k/nbsdaout.mh: New file.
7900 * config/m68k/nbsdaout.mt: New file.
7901 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7902 * config/m68k/nm-nbsdaout.h: New file.
7903 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7904 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7905 * config/ns32k/nbsd.mh: Remove.
7906 * config/ns32k/nbsd.mt: Remove.
7907 * config/ns32k/nbsdaout.mh: New file.
7908 * config/ns32k/nbsdaout.mt: New file.
7909 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7910 * config/ns32k/nm-nbsdaout.h: New file.
7911 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7912 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7913 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7914 (SVR4_SHARED_LIBS): Remove.
7915 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7916 * config/sparc/nbsd.mh: Remove.
7917 * config/sparc/nbsd.mt: Remove.
7918 * config/sparc/nbsdaout.mh: New file.
7919 * config/sparc/nbsdaout.mt: New file.
7920 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7921 * config/sparc/nbsdelf.mt: New file.
7922 * config/sparc/nm-nbsdaout.h: New file.
7923 * config/sparc/nm-nbsdelf.h: Remove.
7924 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7925 * config/sparc/tm-nbsdaout.h: New file.
7927 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7929 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7931 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7933 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7935 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7937 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7939 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7941 * NEWS: Note new MIPS NetBSD native configuration.
7942 * configure.host (mips*-*-netbsd*): New host.
7943 * configure.tgt (mips*-*-netbsd*): New target.
7944 * mipsnbsd-nat.c: New file.
7945 * mipsnbsd-tdep.c: New file.
7946 * mipsnbsd-tdep.h: New file.
7947 * config/mips/nbsd.mh: New file.
7948 * config/mips/nbsd.mt: New file.
7949 * config/mips/nm-nbsd.h: New file.
7950 * config/mips/tm-nbsd.h: New file.
7952 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7954 * Makefile.in (SFILES): Add osabi.c.
7955 (COMMON_OBS): Add osabi.o.
7956 (osabi.o): New dependency list.
7957 * osabi.c: New file.
7958 * osabi.h: New file.
7959 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7961 * Makefile.in (alpha_tdep_h): Define and use instead of
7963 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7964 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7966 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7967 * alpha-tdep.h: Include osabi.h.
7968 (alpha_abi): Remove.
7969 (gdbarch_tdep): Use generic OS ABI framework.
7970 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7971 gdbarch_register_osabi.
7972 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7973 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7974 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7976 * Makefile.in (sh_tdep_h): Add osabi.h.
7977 * sh-tdep.h (sh_osabi): Remove.
7978 (gdbarch_tdep): Use generic OS ABI framework.
7979 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7980 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7981 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7982 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7984 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7985 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7986 gdbarch_register_osabi.
7987 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7988 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7989 (get_elfosabi): Rename to...
7990 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7991 ABI framework support routines.
7992 (arm_gdbarch_init): Use generic OS ABI framework.
7993 (arm_dump_tdep): Likewise.
7994 (_initialize_arm_tdep): Likewise.
7995 * arm-tdep.h: Include osabi.h.
7997 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7999 (arm_gdbarch_register_os_abi): Remove prototype.
8000 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8001 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8003 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8004 * mips-tdep.c: Include osabi.h.
8005 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8008 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8010 * h8300-tdep.c: Fix formatting.
8012 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8014 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8015 printing vector registers.
8017 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8019 From Fernando Nasser:
8020 * remote.c (remote_async_open_1): Re-throw the exception when the
8022 (remote_cisco_open): Ditto.
8023 (remote_open_1): Ditto.
8025 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8027 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8028 (remote_start_remote): Add uiout parameter. Pass through to
8029 remote_start_remote_dummy.
8030 (remote_open_1): Use catch_exception instead of catch_errors.
8031 (remote_async_open_1): Ditto.
8032 (remote_cisco_open): Ditto.
8034 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8036 * remote.c (remote_start_remote): Replace PTR with void pointer.
8037 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8040 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8042 * gdb_indent.sh: Allow the script to be run in the sim directory.
8044 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8046 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8047 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8049 * corelow.c (core_open): Only call set_gdbarch_from_file if
8052 2002-05-17 Andrey Volkov <avolkov@transas.com>
8054 * h8300-tdep.c: Add support of EXR register
8055 * config/h8300/tm-h8300.h: Ditto.
8057 2002-05-17 Andrey Volkov <avolkov@transas.com>
8059 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8061 2002-05-17 Andrey Volkov <avolkov@transas.com>
8063 * h8300-tdep.c: Change literal regnums to REGNO.
8065 2002-05-17 Jim Blandy <jimb@redhat.com>
8067 * NEWS: Note addition of macro support.
8069 Expand preprocessor macros in C expressions.
8070 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8071 (scan_macro_expansion, scanning_macro_expansion,
8072 finished_macro_expansion): New function declarations.
8073 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8074 variable declarations.
8075 * parser-defs.h (expression_context_pc): New declaration.
8076 * parse.c (expression_context_pc): New variable.
8077 (parse_exp_1): Set expression_context_pc, as well as
8078 expression_context_block.
8079 * c-exp.y (yylex): If we're not already reading the result of a
8080 macro expansion, try to macro-expand the next token. When we're
8081 done scanning a macro expansion, switch back to the mainline text.
8082 Commas and `if's in a macro's expansion don't terminate the input.
8083 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8084 (macro_original_text, macro_expanded_text,
8085 expression_macro_lookup_func, expression_macro_lookup_baton): New
8087 (scan_macro_expansion, scanning_macro_expansion,
8088 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8089 c_preprocess_and_parse): New functions.
8090 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8091 c_preprocess_and_parse, instead of c_parse.
8092 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8093 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8095 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8097 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8098 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8099 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8101 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8103 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8105 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8107 * Makefile.in (sh_tdep_h): Define and use.
8108 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8109 register enum): Move to...
8110 * * sh-tdep.h: ...here.
8111 * sh-tdep.c: Include sh-tdep.h.
8112 * sh3-rom.c: Likewise.
8113 * shnbsd-tdep.c: Likewise.
8115 2002-05-16 Michael Snyder <msnyder@redhat.com>
8117 * arm-tdep.c: Spelling fix in comment.
8119 2002-05-16 Jim Blandy <jimb@redhat.com>
8121 Add commands for manually expanding macros and showing their
8123 * macrocmd.c, macroscope.c, macroscope.h: New files.
8124 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8125 (macroscope_h): New variable.
8126 (HFILES_NO_SRCDIR): Add macroscope.h.
8127 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8128 (macroscope.o, macrocmd.o): New rules.
8130 Teach the Dwarf 2 reader to read macro information.
8131 * dwarf2read.c: #include "macrotab.h".
8132 (dwarf_macinfo_buffer): New variable.
8133 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8135 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8136 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8137 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8138 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8139 dwarf2_macro_spaces_in_definition): New complaints.
8140 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8141 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8142 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8143 the partial symbol table.
8144 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8145 from what's recorded in the partial symbol table.
8146 (read_file_scope): If the compilation unit has a
8147 `DW_AT_macro_info' attribute, read its macro information.
8148 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8150 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8153 * ser-tcp.c: Don't include <netinet/udp.h>.
8155 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8157 * MAINTAINERS: Update my email address.
8159 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8161 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8162 include file of the same name.
8164 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8166 * configure.tgt: Mark v850 as multi-arched.
8167 * config/v850/tm-v850.h: Remove file.
8168 * config/v850/v850.mt: Eliminate TM_FILE.
8170 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8172 * v850-tdep.c: Full multi-arch.
8173 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8174 Define GDB_MULTI_ARCH to 2.
8176 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8178 * p-exp.y (current_type): New static variable.
8179 Carries the type of the expression at the position that is parsed.
8180 (push_current_type, pop_current_type): Two new functions. Used
8181 to store/restore current_type in expression on specific tokens.
8182 (search_field): New static variable. Set to one after parsing a point
8183 as at that point only a FIELDNAME token should be searched.
8184 (FIELDNAME): New token. After a point only a token belonging to
8185 current_type type definition is allowed.
8186 (all over token rules): reset and change current_type according
8188 (exp '[' rule): insert implicit array index field if
8189 exp is a pascal string type.
8191 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8193 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8194 frame info. Use frame_info's saved_regs instead of matching member
8195 in extra_frame_info throughout.
8196 (v850_frame_init_saved_regs): New function.
8197 (v850_init_extra_frame_info): Move most functionality into
8198 v850_frame_init_saved_regs().
8199 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8200 (v850_frame_find_saved_regs): Remove declaration.
8201 (FRAME_FIND_SAVED_REGS): Remove definition.
8202 (v850_frame_init_saved_regs): Add declaration.
8203 (FRAME_INIT_SAVED_REGS): Add definition.
8205 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8207 * v850-tdep.c: Begin multi-arch'ing v850.
8208 (v850_target_architecture_hook): Remove function.
8209 (v850_gdbarch_init): New function. Add code previously in
8210 v850_target_architecture_hook().
8211 (_initialize_v850_tdep): Don't set target_architecture_hook.
8212 Call register_gdbarch_init() instead.
8214 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8216 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8217 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8218 (fixup_class_method_type): Likewise.
8220 2002-05-15 Jim Blandy <jimb@redhat.com>
8222 Add macro structures to GDB's symbol tables. Nobody puts anything
8224 * symtab.h (struct symtab): New member: `macro_table'.
8225 * buildsym.h (pending_macros): New global variable.
8226 * buildsym.c: #include "macrotab.h".
8227 (buildsym_init): Initialize `pending_macros'.
8228 (end_symtab): If we found macro information while reading a CU's
8229 debugging info, do build a symtab structure for it. Make the
8230 symtab point to the macro information, and clear the
8231 `pending_macros' pointer which held it while we were reading the
8233 (really_free_pendings): Free any pending macro table.
8234 * objfiles.h (struct objfile): New member: `macro_cache'.
8235 * objfiles.c (allocate_objfile): Set allocate and free functions
8236 for the macro cache's objstack.
8237 (free_objfile): Empty the macro cache's obstack.
8238 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8239 set new allocate and free functions for it.
8240 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8241 free functions for the macro cache's objstack. (Why is this
8242 function building its own objfile?)
8243 * symmisc.c (print_objfile_statistics): Print statistics on the
8245 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8247 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8249 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8250 (REGISTER_U_ADDR): Delete definition.
8251 (arm_register_u_addr): Delete declaration.
8253 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8255 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8256 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8258 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8260 * regcache.c (register_valid): Revise comments refering to "Not
8261 available" and "unavailable".
8262 * frame.c (frame_register_read): Ditto.
8263 * findvar.c (value_of_register): Ditto.
8265 2002-05-15 Andrew Cagney <cagney@redhat.com>
8267 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8268 (remote-sim.o): Update dependencies.
8269 (d10v-tdep.o): Specify dependencies.
8270 (sim_d10v_h): Define.
8272 2002-05-14 Jim Blandy <jimb@redhat.com>
8274 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8275 * macrotab.c (macro_lookup_inclusion, find_definition,
8276 new_macro_table): Same.
8278 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8279 not `! strcmp ()'. This is a dubious improvement.
8280 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8282 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8283 although it's not necessary, to avoid a warning.
8285 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8287 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8288 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8289 TYPE_INSTANCE_FLAGS.
8290 (struct main_type): New.
8291 (struct type): Move most members to struct main_type. Change
8292 cv_type and as_type to new type_chain member. Add instance_flags.
8293 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8294 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8295 (finish_cv_type): Remove prototype.
8296 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8298 (alloc_type_instance): New function.
8299 (smash_type): New function.
8300 (make_pointer_type, make_reference_type, make_function_type)
8301 (smash_to_member_type, smash_to_method_type): Call smash_type.
8302 (make_qualified_type): New function.
8303 (make_type_with_address_space): Call make_qualified_type.
8304 (make_cv_type): Likewise.
8305 (finish_cv_type): Remove unnecessary function.
8306 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8307 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8308 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8309 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8310 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8311 * hpread.c (hpread_read_struct_type): Likewise.
8312 * stabsread.c (read_struct_type): Likewise.
8314 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8316 * configure.tgt: Add a catch all sh* target, for cases like
8317 sh[2,3,4]-elf and sh-hms.
8319 2002-05-14 Keith Seitz <keiths@redhat.com>
8321 * event-loop.c (create_file_handler): Don't do anything but
8322 update data when we are given a fd which we are already
8325 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8327 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8328 (update_context): Use __func__ in warnings.
8330 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8332 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8333 and tcp_close to net_open and net_close.
8334 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8335 using UDP if requested. Don't try to disable Nagle on UDP
8337 * remote.c (remote_serial_open): New function. Warn about UDP.
8338 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8340 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8342 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8344 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8346 * configure.tgt: Remove sh-hms target.
8347 * MAINTAINERS: Don't list sh-hms as a separate target.
8349 2002-05-13 Jim Blandy <jimb@redhat.com>
8351 Add first preprocessor macro-expansion files.
8352 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8353 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8354 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8355 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8356 (COMMON_OBS): Add macrotab.o, macroexp.o.
8357 (macroexp.o, macrotab.o): New rules.
8359 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8361 * config/m88k/tm-m88k.h: Update copyright.
8362 (m88k_target_write_pc): Declare
8363 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8364 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8365 (SHIFT_INST_REGS): Update definition.
8366 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8367 using old definition of TARGET_WRITE_PC.
8368 * regcache.c (generic_target_write_pc): Delete code handling
8370 * gdbarch.sh (NNPC_REGNUM): Delete.
8371 * gdbarch.h, gdbarch.c: Regenerate.
8373 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8375 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8378 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8380 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8381 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8382 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8384 * c-typeprint.c (cp_type_print_method_args): Likewise.
8385 (c_type_print_args): Likewise.
8386 * d10v-tdep.c (d10v_push_arguments): Likewise.
8387 (d10v_extract_return_value): Likewise.
8388 * expprint.c (print_subexp): Likewise.
8389 * gdbtypes.c (lookup_primitive_typename): Likewise.
8390 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8391 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8392 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8393 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8394 (TYPE_VECTOR): Likewise.
8395 * hpread.c (hpread_read_struct_type)
8396 (fix_static_member_physnames, fixup_class_method_type)
8397 (hpread_type_lookup): Likewise.
8398 * mdebugread.c (parse_symbol, parse_type): Likewise.
8399 * p-lang.c (is_pascal_string_type): Likewise.
8400 * valops.c (hand_function_call): Likewise.
8401 * x86-64-tdep.c (classify_argument): Likewise.
8403 * hpread.c (hpread_read_function_type)
8404 (hpread_read_doc_function_type): Call replace_type.
8405 * dstread.c (create_new_type): Delete.
8406 (decode_dst_structure, process_dst_function): Call alloc_type.
8407 Use type access macros.
8409 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8411 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8412 the're not supported by the current architecture.
8413 (i387_fill_fxsave): Likewise.
8415 2002-05-12 Fred Fish <fnf@redhat.com>
8417 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8418 sect_index_xxx members to index the first slot in section_offsets
8419 if all of the section_offsets are zero.
8421 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8423 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8424 checked in with last change.
8426 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8428 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8429 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8432 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8434 * Makefile.in: Update dependencies.
8436 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8438 * language.c (local_hex_string_custom): Simplify. Do not depend
8439 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8441 * memattr.c (mem_info_command): Replace calls to
8442 longest_local_hex_string and longest_local_hex_string_custom.
8443 * buildsym.c (make_blockvector): Ditto.
8444 * solib.c (info_sharedlibrary_command): Ditto.
8445 * tracepoint.c (tracepoints_info): Ditto.
8446 * symtab.c (print_msymbol_info): Ditto.
8448 * language.c (local_hex_string): Delete.
8449 (local_hex_string_custom): Delete.
8450 (longest_local_hex_string): Rename to local_hex_string.
8451 (longest_local_hex_string_custom): Rename to
8452 local_hex_string_custom.
8453 * language.h (local_hex_string): Change parameter type to LONGEST.
8454 (local_hex_string_custom): Ditto.
8455 (longest_local_hex_string): Delete declaration.
8456 (longest_local_hex_string_custom): Ditto.
8458 * solib.c: Update copyright.
8459 * memattr.c: Update copyright.
8461 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8463 * arch-utils.h (legacy_register_to_value): Declare.
8464 (legacy_value_to_register): Declare.
8465 (legacy_convert_register_p): Declare.
8466 * arch-utils.c (legacy_register_to_value): New function.
8467 (legacy_value_to_register): New function.
8468 (legacy_convert_register_p): New function.
8470 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8471 (VALUE_TO_REGISTER): Define.
8472 (CONVERT_REGISTER_P): Define.
8473 * gdbarch.h, gdbarch.c: Regenerate.
8475 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8477 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8480 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8481 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8483 * Makefile.in: Update dependencies for valops.c.
8484 * valops.c: Include "gdb_assert.h".
8485 (typecmp): Skip THIS parameter to methods.
8486 (find_method_list): Remove static_memfuncp argument,
8487 update callers. Check for stub methods.
8488 (find_value_oload_method_list): Don't set *static_memfuncp.
8489 (find_overload_match): Don't check for stub methods. Assert
8490 that methods are not stubbed. Handle static methods.
8491 (value_find_oload_method_list): Remove static_memfuncp argument.
8492 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8493 to the argument list for static stub methods.
8494 * value.h (value_find_oload_method_list): Update prototype.
8496 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8498 * arch-utils.h (generic_register_size): Declare.
8499 (generic_register_raw_size, generic_register_virtual_size): Delete
8501 * arch-utils.c (generic_register_raw_size): Delete.
8502 (generic_register_size): New function.
8503 (generic_register_virtual_size): Delete.
8505 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8506 default generic_register_size.
8507 * gdbarch.h, gdbarch.c: Re-generate.
8509 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8510 register_virtual_size.
8511 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8512 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8514 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8516 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8517 * gdbarch.h, gdbarch.c: Regenerate.
8518 * gnu-v3-abi.c: Update copyright.
8519 (vtable_address_point_offset): Update.
8520 (gnuv3_rtti_type): Update.
8521 (gnuv3_baseclass_offset): Update.
8522 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8523 (init_fetch_link_map_offsets): Update.
8524 * remote.c (get_remote_state): Update.
8526 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8528 * TODO: Remove value_headof/value_from_vtable_info comment.
8529 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8530 * values.c (value_headof, value_from_vtable_info): Delete.
8531 * value.h (value_from_vtable_info): Delete prototype.
8533 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8535 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8536 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8538 (gdb_assert_h): Define.
8539 (gdb_wait_h): Define.
8540 (gdb_regex_h): Define.
8542 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8544 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8545 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8547 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8549 * nbsd-tdep.c: Fix comment.
8551 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8553 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8554 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8555 (nbsd-tdep.o): New dependency list.
8556 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8558 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8559 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8560 * nbsd-tdep.c: New file.
8561 * nbsd-tdep.h: New file.
8562 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8564 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8565 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8566 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8567 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8569 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8571 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8572 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8573 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8574 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8575 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8576 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8578 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8580 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8581 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8582 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8583 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8584 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8585 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8586 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8588 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8590 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8591 fetch_elfcore_registers to...
8592 * i386nbsd-tdep.c: ...here.
8593 (i386nbsd_use_struct_convention): Rename to...
8594 (i386nbsd_aout_use_struct_convention): ...this.
8595 (i386nbsd_supply_reg): New function.
8596 (i386nbsd_fill_reg): New function.
8597 (fetch_core_registers): Use i386nbsd_supply_reg.
8598 (fetch_elfcore_registers): Likewise.
8599 (_initialize_i386nbsd_tdep): New function.
8600 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8601 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8602 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8603 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8604 (i386nbsd_aout_use_struct_convention): ...this.
8606 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8608 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8609 (store_inferior_registers): Use shnbsd_fill_reg.
8610 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8611 sh_nbsd_supply_register): Collapse into...
8612 (shnbsd_supply_reg): ...this.
8613 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8614 (shnbsd_fill_reg): ...this.
8615 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8616 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8617 (fetch_core_registers): Use shnbsd_supply_reg.
8618 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8619 (sh_nbsd_core_fns): Rename to...
8620 (shnbsd_core_fns): ...this.
8621 (sh_nbsd_elfcore_fns): Rename to...
8622 (shnbsd_elfcore_fns): ...this.
8623 (sh_nbsd_init_abi): Rename to...
8624 (shnbsd_init_abi): ...this.
8625 (_initialize_sh_nbsd_tdep): Rename to...
8626 (_initialize_shnbsd_tdep): ...this.
8627 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8628 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8629 sh_nbsd_fill_register): Remove prototypes.
8630 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8632 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8634 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8635 (i387-nat.o): Delete dependency list.
8636 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8637 (x86-64-linux-nat.o): Likewise.
8638 * i387-nat.c: Delete file, moving contents to...
8639 * i387-tdep.c: ...here.
8640 * i387-nat.h: Rename...
8641 * i387-tdep.h: ...to this.
8642 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8643 * i386-linux-nat.c: Likewise.
8644 * i386bsd-nat.c: Likewise.
8645 * i386gnu-nat.c: Likewise.
8646 * i386nbsd-nat.c: Likewise.
8647 * i386v4-nat.c: Likewise.
8648 * x86-64-linux-nat.c: Likewise.
8649 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8650 * config/i386/go32.mh (NATDEPFILES): Likewise.
8651 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8652 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8653 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8654 * config/i386/linux.mh (NATDEPFILES): Likewise.
8655 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8656 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8657 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8658 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8660 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8662 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8663 (alphanbsd-nat.o): Remove dependency list.
8664 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8665 * alphanbsd-nat.c: Delete. Contents moved to...
8666 * alphanbsd-tdep.c: ...here.
8667 (_initialize_alphanbsd_tdep): Register core functions.
8668 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8670 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8672 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8673 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8674 (alphanbsd-nat.o): Likewise.
8675 (alphabsd-tdep.o): New dependency list.
8676 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8677 (fill_gregset): Use alphabsd_fill_reg.
8678 (supply_fpregset): Use alphabsd_supply_fpreg.
8679 (fill_fpregset): Use alphabsd_fill_fpreg.
8680 (fetch_inferior_registers): Use struct reg and struct fpreg
8681 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8682 and alphabsd_supply_fpreg.
8683 (store_inferior_registers): Use struct reg and struct fpreg
8684 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8685 and alphabsd_fill_fpreg.
8686 * alphabsd-tdep.c: New file.
8687 * alphabsd-tdep.h: New file.
8688 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8689 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8690 alphabsd_supply_fpreg.
8691 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8692 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8694 2002-05-11 Eric Christopher <echristo@redhat.com>
8696 * mips-tdep.c (mips_double_register_type): Fix thinko.
8697 (mips_single_register_type): Ditto.
8698 * MAINTAINERS: Add self.
8700 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8702 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8703 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8704 right thing on architectures with different endianness and/or
8707 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8709 From Christian Limpach <chris@Pin.LU>
8710 * configure.in: Change sed expression which comments out
8711 NATDEPFILES to also comment out continuation lines.
8712 * configure: Regenerate.
8714 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8716 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8719 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8721 * sh-tdep.c: Include correct file.
8723 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8725 New support for sh64-elf (sh5) target.
8727 * configure.tgt: For sh64-elf target, default to sh-elf.
8729 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8730 (struct gdbarch_tdep): Add new fields for new registers and ABI
8733 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8734 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8735 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8736 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8737 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8738 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8739 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8740 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8741 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8742 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8743 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8744 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8745 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8746 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8747 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8748 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8749 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8750 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8751 sign_extend, sh64_nofp_frame_init_saved_regs,
8752 sh64_init_extra_frame_info, sh64_get_saved_register,
8753 sh64_extract_struct_value_address, sh64_pop_frame,
8754 sh64_push_arguments, sh64_extract_return_value,
8755 sh64_store_return_value, sh64_show_media_regs,
8756 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8757 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8758 sh_sh64_register_virtual_type,
8759 sh_sh64_register_convert_to_virtual,
8760 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8761 sh64_register_read, sh64_pseudo_register_write,
8762 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8763 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8764 sh64_do_pseudo_register, sh_compact_do_registers_info,
8765 sh64_do_registers_info, sh_gdbarch_init): New functions.
8767 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8769 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8771 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8773 * linespec.c (decode_line_1): Check for a double quote after
8774 a filename correctly.
8776 2002-05-10 Jim Blandy <jimb@redhat.com>
8778 Properly track the size of the current objfile's .debug_line section.
8779 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8780 (DWARF_LINE_SIZE): New macro.
8781 (dwarf2_build_psymtabs_hard): Record the line section's size in
8782 the partial symbol table.
8783 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8786 2002-05-10 Petr Sorfa <petrs@caldera.com>
8788 * ia64-tdep.c: Handle breakpoints on L instruction type
8789 in MLX instruction bundle by moving the breakpoint to
8790 the third slot (X instruction type) as L holds only data.
8792 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8794 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8795 (process_one_symbol): Complain about discarding local symbols
8796 due to a misplaced N_LBRAC entry.
8798 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8800 From Daniel Berlin <dan@cgsoftware.com>
8801 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8802 decrease the depth we are at, in the case of templates.
8804 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8806 * mips-tdep.c (mips_float_register_type): New function.
8807 (mips_double_register_type): New function.
8808 (mips_print_register): Use them.
8809 (do_fp_register_row): Likewise.
8811 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8813 * signals/signals.c (signals): Remove conditional compilation around
8814 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8815 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8817 2002-05-09 Michael Snyder <msnyder@redhat.com>
8819 * remote-rdp.c (remote_rdp_can_run): Remove.
8821 2002-05-09 Tom Tromey <tromey@redhat.com>
8823 * jv-valprint.c (java_val_print): Handle `char' as a special case
8826 2002-05-09 Michael Snyder <msnyder@redhat.com>
8828 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8829 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8830 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8831 str r(0123),[sp,#nn].
8832 (arm_skip_prologue): Ditto. Also make disassembly
8833 order-independent by placing it in a loop.
8835 2002-05-06 Michael Snyder <msnyder@redhat.com>
8837 * stabsread.c (read_type): Add recognition for new attribute:
8838 "@V;" means that an array type is actually a vector.
8839 This is analogous to the vector flag that's been added to dwarf2.
8841 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8843 * i386-tdep.h (i386_abi): New enum.
8844 (struct gdbarch_tdep): Replace os_ident member with abi.
8845 (i386_gdbarch_register_os_abi): New prototype.
8846 * i386-tdep.c (i386_abi_names): New array.
8847 (process_note_abi_tag_sections): Removed.
8848 (process_note_sections): New function.
8849 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8850 (struct i386_abi_handler): New struct.
8851 (i386_abi_handler_list): New variable.
8852 (i386_gdbarch_register_os_abi): New function.
8853 (i386_gdbarch_init): Adapt for the changes given above.
8855 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8857 * gregset.h: Say "GNU/Linux".
8859 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8861 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8862 (build_gdbtypes): Build builtin_type_v2_float.
8863 (_initialize_gdbtypes): Register new builtin type.
8865 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8867 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8868 (clear_gdbarch_swap): New function.
8869 (initialize_non_multiarch): Call.
8870 (gdbarch_update_p): Before calling init(), swap out and clear the
8871 existing architecture.
8872 * gdbarch.c: Regenerate.
8874 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8876 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8879 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8881 * sh-nbsd-nat.c: Rename to...
8882 * shnbsd-nat.c: ...this.
8883 * sh-nbsd-tdep.c: Rename to...
8884 * shnbsd-tdep.c: ...this.
8885 * sh-nbsd-tdep.h: Rename to...
8886 * shnbsd-tdep.h: ...this.
8887 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8888 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8890 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8892 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8893 concatenation for command help messages.
8895 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8897 * NEWS: Note new sh*-*-netbsdelf* configuration.
8898 * configure.host: Set gdb_host_cpu to sh for all sh*.
8899 (sh*-*-netbsdelf*): New host.
8900 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8901 (sh*-*-netbsdelf*): New target.
8902 * sh-nbsd-nat.c: New file.
8903 * sh-nbsd-tdep.c: New file.
8904 * sh-nbsd-tdep.h: New file.
8905 * config/sh/nbsd.mh: New file.
8906 * config/sh/nbsd.mt: New file.
8907 * config/sh/nm-nbsd.h: New file.
8908 * config/sh/tm-nbsd.h: New file.
8910 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8912 * sh-tdep.c (sh_osabi_names): Declare.
8913 (process_note_abi_tag_sections): New function.
8914 (get_elfosabi): Ditto.
8915 (sh_gdbarch_register_os_abi): Ditto.
8916 (sh_dump_tdep): Ditto.
8917 _initialize_sh_tdep): Use gdbarch_register to register
8918 sh_gdbarch_init and sh_dump_tdep.
8919 * config/sh/tm-sh.h (sh_osabi): Declare.
8920 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8922 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8924 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8925 (thumb_scan_prologue): Ditto.
8926 (arm_find_callers_reg): Ditto.
8927 (arm_frame_chain): Ditto.
8928 (arm_init_extra_frame_info): Ditto.
8929 (arm_frame_saved_pc): Ditto.
8930 (arm_pop_frame): Ditto.
8931 (arm_push_return_address): New function.
8932 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8933 call_dummy_location, call_dummy_breakpoint_offset_p,
8934 call_dummy_breakpoint_offset, call_dummy_p,
8935 call_dummy_stack_adjust_p, call_dummy_words,
8936 sizeof_call_dummy_words, call_dummy_start_offset,
8937 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8938 call_dummy_address, push_return_address and push_dummy_frame for
8939 generic dummy frames.
8941 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8943 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8944 size computation for alloca.
8945 (sh_fp_frame_init_saved_regs): Likewise.
8947 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8949 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8950 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8951 * arm-tdep.c (arm_store_return_value): Use them.
8952 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8953 * remote-rdp.c (remote_rdp_fetch_register): Use
8954 ARM_MAX_REGISTER_RAW_SIZE.
8955 (remote_rdp_store_register): Likewise.
8957 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8959 * dwarf2cfi.c: Code cleanup, removed unused variables,
8960 added default labels to switch {} statements.
8961 * x86-64-tdep.c: Ditto.
8962 * x86-64-linux-nat.c: Ditto.
8964 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8966 * solib.h: Protect against multiple inclusion.
8968 2002-05-06 Jim Blandy <jimb@redhat.com>
8970 Add first preprocessor macro-expansion files.
8971 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8972 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8973 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8974 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8975 (COMMON_OBS): Add macrotab.o, macroexp.o.
8976 (macroexp.o, macrotab.o): New rules.
8978 Separate the job of reading the line number info statement program
8979 header (...expialidocious) out into its own function.
8980 * dwarf2read.c (struct line_head, struct filenames, struct
8981 directories): Replace with...
8982 (struct line_header): New structure, containing the full
8983 contents of the statement program header, including the
8984 include directory and file name tables.
8985 (read_file_scope): If we have line number info, instead of just
8986 calling dwarf_decode_lines to do all the work, call
8987 dwarf_decode_line_header first to get a `struct line_header'
8988 containing the data in the statement program header, and then
8989 pass that to dwarf_decode_lines, which will pick up where that
8990 left off. Be sure to clean up the `struct line_header' object.
8991 (dwarf_decode_line_header, free_line_header, add_include_dir,
8992 add_file_name): New functions.
8993 (dwarf_decode_lines): Move all the code to read the statement
8994 program header into dwarf_decode_line_header. Take the line
8995 header it built as the first argument, instead of the offset to
8996 the compilation unit's line number info. Use the new `struct
8997 line_header' type instead of the old structures. No need to do
8998 cleanups here now, since we don't allocate anything.
8999 (dwarf2_statement_list_fits_in_line_number_section,
9000 dwarf2_line_header_too_long): New complaints.
9002 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9004 * gdbtypes.c (init_vector_type): New function.
9005 (build_builtin_type_vec128): Simplify the representation of SIMD
9007 (build_gdbtypes): Initialize new builtin vector types.
9008 (_initialize_gdbtypes): Register new vector types with gdbarch.
9009 (builtin_type_v4_float, builtin_type_v4_int32,
9010 builtin_type_v8_int16, builtin_type_v16_int8,
9011 builtin_type_v2_int32, builtin_type_v4_int16,
9012 builtin_type_v8_int8): New (renamed) SIMD types.
9014 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9016 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9017 (i387_fill_fxsave): Likewise.
9019 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9021 * alpha-tdep.c (alpha_extract_return_value): Don't use
9022 non-constant array size in prototype.
9024 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9026 From Brian Taylor <briant at model dot com>:
9027 * ui-out.c (ui_out_field_core_addr): Use the function
9028 longest_local_hex_string_custom'to format addresses > 32 bits
9031 * ui-out.c (ui_out_field_core_addr): Update comment.
9033 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9035 * stack.c (select_and_print_frame): Make static. Delete the
9037 (func_command): Update call.
9038 (select_frame_command): Delete code computing the frame level.
9039 * frame.h (select_and_print_frame): Delete declaration.
9041 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9043 * sparc-tdep.c (sparc_get_saved_register): Comment why
9044 get_prev_frame call is safe.
9046 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9048 * frame.h (select_frame): Delete level parameter.
9049 * stack.c (select_frame): Update. Use frame_relative_level to
9050 obtain the frame's level.
9051 (select_and_print_frame): Update call.
9052 (select_frame_command): Ditto.
9053 (up_silently_base): Ditto.
9054 (down_silently_base): Ditto.
9055 * ocd.c (ocd_start_remote): Ditto.
9056 * remote-rdp.c (remote_rdp_open): Ditto.
9057 * remote-mips.c (mips_initialize): Ditto.
9058 (common_open): Ditto.
9059 * remote-e7000.c (e7000_start_remote): Ditto.
9060 * m3-nat.c (select_thread): Ditto.
9061 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9062 (child_get_current_exception_event): Ditto.
9063 * varobj.c (varobj_create): Ditto.
9064 (varobj_update): Ditto.
9065 (c_value_of_root): Ditto.
9066 * tracepoint.c (finish_tfind_command): Ditto.
9067 * corelow.c (core_open): Ditto.
9068 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9069 * thread.c (info_threads_command): Ditto.
9070 (switch_to_thread): Ditto.
9071 * infrun.c (normal_stop): Ditto.
9072 (restore_selected_frame): Ditto.
9073 (restore_inferior_status): Ditto.
9074 * breakpoint.c (insert_breakpoints): Ditto.
9075 (watchpoint_check): Ditto.
9076 (bpstat_stop_status): Ditto.
9077 (do_enable_breakpoint): Ditto.
9078 * blockframe.c (flush_cached_frames): Ditto.
9079 (reinit_frame_cache): Ditto.
9081 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9083 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9086 2002-05-04 Jim Blandy <jimb@redhat.com>
9088 * gdbtypes.c (replace_type): Doc fix.
9090 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9092 * valprint.c (strcat_longest): Delete commented out function.
9095 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9097 * MAINTAINERS: Mark a29k as deleted.
9098 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9099 Move new configurations to the top.
9100 * configure.tgt: Remove a29k.
9101 * config/a29k/tm-vx29k.h: Delete.
9102 * config/a29k/vx29k.mt: Delete.
9103 * config/a29k/tm-a29k.h: Delete.
9104 * config/a29k/a29k-udi.mt: Delete.
9105 * config/a29k/a29k.mt: Delete.
9106 * a29k-tdep.c: Delete.
9107 * remote-udi.c: Delete.
9108 * remote-mm.c: Delete.
9109 * remote-eb.c: Delete.
9110 * remote-adapt.c: Delete.
9111 * Makefile.in: Remove obsolete code.
9112 * config/s390/s390x.mt: Ditto.
9113 * config/s390/s390.mt: Ditto.
9114 * config/sparc/sparclynx.mh: Ditto.
9115 * config/sparc/linux.mh: Ditto.
9116 * config/pa/hppaosf.mh: Ditto.
9117 * config/pa/hppabsd.mh: Ditto.
9118 * config/ns32k/nbsd.mt: Ditto.
9119 * config/mips/vr5000.mt: Ditto.
9120 * config/m68k/sun3os4.mh: Ditto.
9121 * config/m68k/nbsd.mt: Ditto.
9122 * config/m68k/m68klynx.mh: Ditto.
9123 * config/m32r/m32r.mt: Ditto.
9124 * config/i386/x86-64linux.mt: Ditto.
9125 * config/i386/nbsdelf.mt: Ditto.
9126 * config/i386/nbsd.mt: Ditto.
9127 * config/i386/i386lynx.mh: Ditto.
9129 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9131 * target.c (debug_print_register): New function. Handle oversize
9133 (debug_to_fetch_registers): Call.
9134 (debug_to_store_registers): Call.
9136 2002-05-03 Jim Blandy <jimb@redhat.com>
9138 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9139 (read_type): Doc fix.
9140 * gdbtypes.c (replace_type): Doc fix.
9142 * stabsread.c (multiply_defined_struct): New complaint.
9143 (read_struct_type): If the type we were passed isn't empty, or
9144 incomplete, don't read the new struct type into it; complain,
9145 and return the original type unchanged. Take a new `type_code'
9146 argument, which is the type code for the new type.
9147 (read_type): Rather than storing the type's type code here, pass
9148 it as an argument to read_struct_type, and let that take care of
9149 storing it. That way, we don't overwrite the original type code,
9150 so read_struct_type can use it to decide whether we're overwriting
9151 something we shouldn't.
9152 (complain_about_struct_wipeout): New function.
9154 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9156 * gdbarch.sh: Assert that gdbarch is non-NULL.
9157 * gdbarch.c: Regenerate.
9159 2002-05-03 Jason Merrill <jason@redhat.com>
9161 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9164 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9166 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9167 (x86_64_dwarf2gdb_regno_map_length),
9168 (x86_64_dwarf2_reg_to_regnum): Added.
9169 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9170 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9171 (_initialize_x86_64_tdep): Synced with the change above.
9172 (x86_64_skip_prologue): Reformulated message.
9174 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9176 * f-exp.y: Also use new prev_lexptr variable
9177 to improve error reporting. Based on Michael Snyder
9178 2002-04-24 dated patch to c-exp.y.
9179 * jv-exp.y: Likewise.
9180 * m2-exp.y: Likewise.
9182 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9184 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9185 we are dealing with vectors.
9187 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9189 * config/m68k/tm-nbsd.h: Obvious fix,
9190 correct machine name.
9192 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9194 * p-typeprint.c (pascal_type_print_base): Add support
9195 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9197 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9199 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9200 for fondamental pascal 'char' type.
9202 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9204 * p-lang.h (is_pascal_string_type): Declaration changed,
9205 new sixth argument of type char ** added.
9206 * p-lang.c (is_pascal_string_type): Implementation
9207 changed. Args length_pos, length_size, string_pos, char_size
9208 can now be NULL. New argument arrayname set to the field
9209 name of the char array. Return value set to char array
9210 field index plus one.
9211 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9212 is_pascal_string_type function.
9214 2002-05-02 Andrew Cagney <cagney@redhat.com>
9216 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9217 <cagney@redhat.com> change.
9218 * gdbarch.c: Regenerate.
9220 2002-05-02 Andrew Cagney <cagney@redhat.com>
9222 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9223 before probing for a new one. Detect errorenous gdbarch_init
9225 * gdbarch.c: Regenerate.
9227 2002-05-01 Andrew Cagney <cagney@redhat.com>
9229 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9230 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9231 * config/v850/tm-v850.h: Ditto. Update copyright.
9233 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9235 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9238 2002-04-30 Michael Snyder <msnyder@redhat.com>
9240 * arm-tdep.c: Whitespace clean-ups.
9241 (arm_skip_prologue): Fix thinko; two lines
9242 should have been removed as part of 4/24 change.
9244 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9246 * rs6000-tdep.c: Added comment describing how fpscr register
9247 numbers were chosen.
9249 2002-04-30 Michael Snyder <msnyder@redhat.com>
9251 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9253 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9255 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9256 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9257 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9259 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9261 From Louis Hamilton <hamilton@redhat.com>:
9262 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9263 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9264 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9265 not bfd-private xcoff data, to determine wordsize.
9266 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9268 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9270 GDB 5.2 released from 5.2 branch.
9272 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9274 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9275 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9276 (x86_64_register_info_table): Added comments with register numbers.
9278 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9280 * rs6000-tdep.c (rs6000_extract_return_value,
9281 rs6000_store_return_value): Handle returning vectors.
9282 (rs6000_gdbarch_init): Use
9283 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9284 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9286 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9288 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9289 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9291 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9293 * hpread.c (hpread_psymtab_to_symtab_1,
9294 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9295 with fprintf_unfiltered (gdb_stderr,...).
9297 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9299 * remote-array.c (printf_monitor, write_monitor,
9300 array_insert_breakpoint, array_remove_breakpoint ):
9301 Replace fprintf (stderr,...
9302 with fprintf_unfiltered (gdb_stderr,....
9303 * remote-es.c: Likewise.
9304 * remote-os9k.c: Likewise.
9305 * remote-st.c: Likewise.
9307 2002-04-28 Andreas Schwab <schwab@suse.de>
9309 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9310 linux-proc.o and gcore.o.
9312 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9314 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9315 code without frame pointers.
9317 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9319 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9322 2002-04-26 Ben Elliston <bje@redhat.com>
9324 * target.c (do_xfer_memory): Correct reference to the new option
9325 "trust-readonly-sections".
9327 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9329 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9330 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9331 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9333 (read_array_type): Record the fact that this array type is really a
9334 vector (i.e. are passed in by value).
9336 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9338 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9339 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9340 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9341 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9342 * alpha-linux-tdep.c: Include frame.h.
9343 (alpha_linux_sigcontext_addr): New function.
9344 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9345 alpha_linux_sigcontext_addr.
9346 * alpha-osf1-tdep.c: Include gdbcore.h.
9347 (alpha_osf1_sigcontext_addr): New function.
9348 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9349 alpha_osf1_sigcontext_addr.
9350 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9351 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9353 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9355 * stack.c (selected_frame_level):
9356 (select_frame): Do not set selected_frame_level.
9357 * frame.h (selected_frame_level): Delete declaration.
9359 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9361 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9362 convert_from_func_ptr-addr when AIX / PowerOpen.
9364 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9366 * valops.c (hand_function_call): Call
9367 generic_save_call_dummy_addr.
9368 * frame.h (generic_save_call_dummy_addr): Declare.
9369 * blockframe.c (struct dummy_frame): Add fields call_lo and
9371 (generic_find_dummy_frame): Check for PC in range call_lo to
9372 call_hi instead of entry_point_address.
9373 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9374 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9375 (generic_save_call_dummy_addr): New function.
9377 2002-04-24 David S. Miller <davem@redhat.com>
9379 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9380 sparc_skip_prologue.
9381 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9382 information to find prologue when possible.
9383 (sparc_prologue_frameless_p): Call examine_prologue directly.
9384 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9385 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9387 (SKIP_PROLOGUE): Likewise.
9389 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9391 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9392 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9393 indicate that the condition it was testing is always true.
9394 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9395 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9396 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9398 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9400 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9401 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9402 tdep->jb_pc and tdep->jb_elt_size.
9403 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9404 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9405 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9406 * alpha-nat.c (get_longjmp_target): Remove.
9407 (JB_ELEMENT_SIZE): Ditto.
9409 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9410 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9411 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9412 to alpha_get_longjmp_target.
9413 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9414 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9415 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9417 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9419 * README: Update to GDB 5.2.
9421 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9423 * gdbarch.sh (LC_ALL): Set to `c'.
9425 2002-04-25 Theodore A. Roth <troth@verinet.com>
9427 * avr-tdep.c: Ran through gdb_indent.sh.
9429 2002-04-25 Theodore A. Roth <troth@verinet.com>
9431 * MAINTAINERS: Add myself as AVR maintainer.
9432 * NEWS: Note new target avr.
9434 2002-04-25 Theodore A. Roth <troth@verinet.com>
9436 * Makefile.in: Add support for AVR target.
9437 * configure.tgt: Add support for AVR target.
9438 * avr-tdep.c: New file
9439 * config/avr/avr.mt: New file.
9441 2002-04-25 Theodore A. Roth <troth@verinet.com>
9443 * MAINTAINERS: Add myself to write-after-approval.
9445 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9447 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9448 with fprintf_unfiltered (gdb_stderr,....
9450 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9453 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9455 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9457 * p-exp.y: Also use new prev_lexptr variable
9458 to improve error reporting. Based on Michael Snyder
9459 2002-04-24 dated patch to c-exp.y.
9461 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9463 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9464 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9465 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9467 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9469 (FUNCTION_START_OFFSET): Remove.
9470 (BREAKPOINT): Ditto.
9472 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9474 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9477 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9479 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9480 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9481 alpha_linux_pc_in_sigtramp.
9482 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9483 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9484 alpha_osf1_pc_in_sigtramp.
9485 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9486 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9487 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9488 alphafbsd_pc_in_sigtramp.
9489 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9490 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9491 alphanbsd_pc_in_sigtramp.
9492 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9493 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9495 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9497 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9499 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9501 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9503 (alphanbsd-nat.o): New dependency list.
9504 (alphanbsd-tdep.o): Ditto.
9505 * NEWS: Note new native NetBSD/alpha configuration.
9506 * alphanbsd-nat.c: New file.
9507 * alphanbsd-tdep.c: Ditto.
9508 * configure.host (alpha*-*-netbsd*): New host.
9509 * configure.tgt (alpha*-*-netbsd*): New target.
9510 * config/alpha/nbsd.mh: New file.
9511 * config/alpha/nbsd.mt: Ditto.
9512 * config/alpha/nm-nbsd.h: Ditto.
9513 * config/alpha/tm-nbsd.h: Ditto.
9515 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9517 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9518 (alpha-osf1-tdep.o): New dependency list.
9519 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9520 and skip_sigtramp_frame members.
9521 * alpha-linux-tdep.c: Include gdbcore.h.
9522 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9523 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9524 * alpha-osf1-tdep.c: New file.
9525 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9527 (alpha_frame_past_sigtramp_frame): New function.
9528 (alpha_dynamic_sigtramp_offset): Ditto.
9529 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9530 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9531 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9532 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9533 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9534 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9535 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9536 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9537 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9538 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9539 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9540 to find_solib_trampoline_target.
9541 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9542 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9543 (SKIP_TRAMPOLINE_CODE): Remove.
9544 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9545 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9546 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9547 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9548 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9549 (PROC_SIGTRAMP_MAGIC): Ditto.
9550 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9551 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9552 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9553 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9554 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9556 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9558 * NEWS: Note that Alpha targets are now multi-arch.
9560 2002-04-24 Michael Snyder <msnyder@redhat.com>
9562 * parser-defs.h (prev_lexptr): New external variable.
9563 * parse.c (parse_exp_1): Set prev_lexptr to null before
9564 calling the language-specific parser.
9565 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9566 (yyerror): Use prev_lexptr in error reporting.
9568 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9570 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9571 * gregset.h: If FILL_FPXREGSET is defined, provide
9572 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9573 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9574 is defined, call fill_fpxregset.
9576 2002-04-24 Roland McGrath <roland@frob.com>
9578 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9579 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9580 (supply_gregset, supply_fpregset): New functions.
9582 * gnu-nat.c (gnu_find_memory_regions): New function.
9583 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9584 (gnu_xfer_memory): Add a cast.
9586 2002-04-24 Michael Snyder <msnyder@redhat.com>
9588 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9589 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9590 of argument regs ("str r(0123), [r11, #-nn"]).
9591 (arm_skip_prologue): Better handling for frameless functions.
9592 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9593 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9595 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9597 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9598 NUM_PSEUDO_REGS can be used.
9600 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9602 * arch-utils.h: Update copyright.
9604 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9605 * gdbarch.h, gdbarch.c: Re-generate.
9607 * inferior.h (IN_SIGTRAMP): Delete definition.
9608 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9609 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9611 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9612 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9613 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9614 (find_proc_framesize): Ditto.
9615 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9616 (alpha_init_extra_frame_info): Ditto.
9617 * infrun.c (handle_inferior_event): Ditto.
9618 (handle_inferior_event): Ditto.
9619 (check_sigtramp2): Ditto.
9620 * blockframe.c (create_new_frame): Ditto.
9621 (get_prev_frame): Ditto.
9622 * ppc-linux-tdep.c: Update comments.
9623 * i386-linux-tdep.c: Update comments.
9624 * breakpoint.c (bpstat_what): Update comment.
9626 2002-04-24 David S. Miller <davem@redhat.com>
9628 * i960-tdep.c (register_in_window_p): New function.
9629 (i960_find_saved_register): Use it instead of
9630 REGISTER_IN_WINDOW_P.
9631 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9633 * symtab.h (find_stab_function_addr): Kill extern.
9634 * minsyms.c (find_stab_function_addr): Remove from here...
9635 * dbxread.c: ... to here, and mark it static.
9637 2002-04-20 David S. Miller <davem@redhat.com>
9639 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9640 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9642 2002-04-21 David S. Miller <davem@redhat.com>
9644 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9645 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9646 (vx_write_register): Likewise.
9648 2002-04-23 J. Brobecker <brobecker@gnat.com>
9650 * source.c (is_regular_file): New function.
9651 (openp): Check wether file to open is a regular file
9652 to avoid opening directories.
9654 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9656 * findvar.c (extract_signed_integer): Cast printf argument
9657 to suppress format warning.
9658 (extract_unsigned_integer): Likewise.
9659 * infcmd.c (registers_info): Likewise.
9660 * top.c (get_prompt_1): Likewise.
9661 * valops.c (value_assign): Likewise.
9662 * valprint.c (print_decimal): Likewise.
9664 2002-04-22 H.J. Lu (hjl@gnu.org)
9666 * c-exp.y (typebase): Support
9668 [long|long long|short] [signed|unsigned] [int|]
9672 signed [long|long long|short] int
9674 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9676 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9678 * vax-tdep.h: New file.
9679 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9680 Make several routines static.
9681 (vax_get_saved_register): New function.
9682 (vax_gdbarch_init): New function.
9683 (_initialize_vax_tdep): Register vax_gdbarch_init.
9684 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9685 Remove macros now under the control of gdbarch.
9687 2002-04-22 Michael Snyder <msnyder@redhat.com>
9689 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9690 Some whitespace and coding standards tweaks.
9692 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9694 * vax-tdep.c: Include regcache.h.
9695 (vax_call_dummy_words): New.
9696 (sizeof_vax_call_dummy_words): New.
9697 (vax_fix_call_dummy): New function.
9698 (vax_saved_pc_after_call): Ditto.
9699 * config/vax/tm-vax.h: Don't include regcache.h.
9700 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9701 (CALL_DUMMY): Remove.
9702 (CALL_DUMMY_WORDS): Define.
9703 (SIZEOF_CALL_DUMMY_WORDS): Define.
9704 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9706 2002-04-18 Michael Snyder <msnyder@redhat.com>
9708 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9710 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9712 * vax-tdep.c (vax_frame_chain): New function.
9713 (vax_push_dummy_frame): Ditto.
9714 (vax_pop_frame): Ditto.
9715 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9716 (FRAMELESS_FUNCTION_INVOCATION): Use
9717 generic_frameless_function_invocation_not.
9718 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9719 (POP_FRAME): Use vax_pop_frame.
9721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9723 * vax-tdep.c (vax_store_struct_return): New function.
9724 (vax_extract_return_value): Ditto.
9725 (vax_store_return_value): Ditto.
9726 (vax_extract_struct_value_address): Ditto.
9727 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9728 vax_store_struct_return.
9729 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9730 (STORE_RETURN_VALUE): Use vax_store_return_value.
9731 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9733 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9735 * vax-tdep.c (vax_frame_saved_pc): New function.
9736 (vax_frame_args_address_correct): Ditto.
9737 (vax_frame_args_address): Ditto.
9738 (vax_frame_locals_address): Ditto.
9739 (vax_frame_num_args): Move code to be in proximity to
9740 other frame-related functions.
9741 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9742 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9743 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9744 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9745 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9747 2002-04-22 H.J. Lu (hjl@gnu.org)
9749 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9752 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9754 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9755 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9756 (FRAME_INIT_SAVED_REGS): New macro.
9758 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9760 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9762 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9764 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9766 (fetch_osf_core_registers): Likewise.
9767 (supply_gregset): Likewise.
9769 2002-04-22 J. Brobecker <brobecker@gnat.com>
9771 * symfile.h (get_section_index): Define.
9772 * symfile.c (get_section_index): New function.
9773 * mdebugread.c (SC_IS_SBSS): New macro.
9774 (SC_IS_BSS): Return true for the scBss storage class only, as
9775 the scSBss storage class refers to the .sbss section.
9776 (parse_partial_symbols): Discard the symbols which associated
9777 section does not exist.
9778 Make sure to use the .sbss section index for symbols which
9779 storage class is scBss, rather than using the .bss section index.
9781 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9783 * vax-tdep.c: Update copyright years.
9784 (vax_register_name): New function.
9785 (vax_register_byte): Ditto.
9786 (vax_register_raw_size): Ditto.
9787 (vax_register_virtual_size): Ditto.
9788 (vax_register_virtual_type): Ditto.
9789 * config/vax/tm-vax.h: Update copyright years.
9790 (REGISTER_NAMES): Remove.
9791 (REGISTER_NAME): Define.
9792 (REGISTER_BYTE): Use vax_register_byte.
9793 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9794 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9795 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9797 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9799 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9801 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9803 2002-04-21 David S. Miller <davem@redhat.com>
9805 * arch-utils.c (generic_prologue_frameless_p): Kill
9806 SKIP_PROLOGUE_FRAMELESS_P code.
9807 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9809 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9810 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9811 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9813 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9814 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9815 (sparc_gdbarch_init): Pass it to
9816 set_gdbarch_prologue_frameless_p.
9818 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9820 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9821 (alphabsd-nat.o): New dependency list.
9823 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9825 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9827 (alpha-linux-tdep.o): New dependency list.
9828 (alphafbsd-tdep.o): Likewise.
9830 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9832 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9834 * alpha-tdep.c: ...from here.
9835 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9837 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9839 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9840 prototype from here...
9841 * alpha-tdep.h: ...to here.
9843 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9845 * frame.h (selected_frame_level): Document as deprecated.
9846 (frame_relative_level): Declare.
9847 * stack.c (frame_relative_level): New function.
9848 (selected_frame_level): Document as deprecated.
9849 (select_frame): Do not set the selected_frame_level.
9851 * stack.c (frame_info, record_selected_frame): Update.
9852 (frame_command, current_frame_command): Update.
9853 (up_silently_base, up_command, down_silently_base): Update.
9854 (down_command): Update.
9855 * inflow.c (kill_command): Update.
9856 * tracepoint.c (finish_tfind_command): Update.
9857 * corelow.c (core_open): Update.
9858 * thread.c (info_threads_command): Update.
9859 (do_captured_thread_select): Update.
9860 * infcmd.c (finish_command): Update.
9861 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9863 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9865 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9867 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9869 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9874 * alphafbsd-tdep.c: Update copyright years. Include
9876 (alphafbsd_use_struct_convention): Make static.
9877 (alphafbsd_init_abi): New function.
9878 (_initialize_alphafbsd_tdep): New function.
9879 * config/alpha/tm-fbsd.h: Update copyright years.
9880 (USE_STRUCT_CONVENTION): Remove.
9882 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9884 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9885 an Alpha ABI variant.
9886 (alpha_abi_handler_list): Declare.
9887 (alpha_gdbarch_register_os_abi): New function.
9888 (alpha_gdbarch_init): Give registered ABI variant handlers a
9889 chance to tweak the gdbarch once we have set up defaults.
9890 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9892 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9894 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9895 to standard_coerce_float_to_double.
9896 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9898 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9900 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9901 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9902 from gdbarch_tdep rather than a constant.
9903 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9904 the default text address for all Alpha Unix ABIs.
9905 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9906 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9908 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9910 * alpha-tdep.h: New file. Includes several Alpha target constants
9912 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9913 let gdbarch deal with.
9914 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9915 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9917 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9918 Alpha target register names.
9919 * alphabsd-nat.c: Likewise.
9920 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9921 Alpha target register names. Make serveral routines static.
9922 (alpha_get_saved_register): New function.
9923 (alpha_abi_names): New.
9924 (process_note_abi_tag_sections): New function.
9925 (get_elfosabi): New function.
9926 (alpha_gdbarch_init): New function.
9927 (alpha_dump_tdep): New function.
9928 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9930 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9932 * frame.c (find_saved_register): Delete #ifdef
9933 HAVE_REGISTER_WINDOWS code.
9934 * config/sparc/tm-sparc.h: Update comments.
9935 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9937 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9939 * i960-tdep.c (i960_find_saved_register): New function.
9940 (i960_get_saved_register): New function.
9941 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9942 (i960_get_saved_register): Declare.
9943 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9945 2002-04-20 David S. Miller <davem@redhat.com>
9947 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9949 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9951 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9952 instead of NUM_PSEUDO_REGS.
9954 2002-04-20 David S. Miller <davem@redhat.com>
9956 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9957 GDB_MULTI_ARCH_PARTIAL
9958 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9959 define, let tm-sp64.h do it.
9961 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9963 * frame.c (find_saved_register): Avoid a NULL pointer
9964 dereference and actually walk the frame list.
9966 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9968 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9969 sorted in most most-recent-used order. Document.
9970 * gdbarch.h, gdbarch.c: Regenerate.
9972 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9974 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9976 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9977 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9978 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9981 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9984 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9985 (build_builtin_type_vec128): Ditto.
9986 (append_composite_type_field): Fix calculation of type length in
9989 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9991 * config/djgpp/README: Update.
9993 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9996 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9998 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9999 (alpha_setup_arbitrary_frame): ...to this.
10000 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10001 for alpha_setup_arbitrary_frame.
10003 2002-04-18 Andrew Cagney <cagney@redhat.com>
10005 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10006 * gdbarch.h, gdbarch.c: Regenerate.
10008 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10009 * target.h (memory_breakpoint_from_pc): Update declaration.
10010 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10012 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10013 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10014 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10015 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10016 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10017 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10018 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10019 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10020 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10021 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10022 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10023 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10025 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10027 * monitor.c (monitor_insert_breakpoint): Ditto.
10028 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10030 * config/mcore/tm-mcore.h: Update copyright.
10031 * mem-break.c: Ditto.
10032 * xstormy16-tdep.c: Ditto.
10034 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10036 * p-exp.y: Add precedence rule for '^' token.
10037 This removes the shift/reduce conflicts.
10038 Remove the comment concerning these shift/reduce conflicts.
10040 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10042 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10043 (registers_powerpc_nofp): New register set for processors
10044 without floating point unit.
10046 2002-04-18 David S. Miller <davem@redhat.com>
10048 * MAINTAINERS: Add myself to write-after-approval.
10050 2002-04-17 Michael Snyder <msnyder@redhat.com>
10052 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10054 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10056 * rs6000-tdep.c (frame_initial_stack_address): Use
10057 frame_register_read to read the alloca_reg.
10059 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10061 * frame.c (find_saved_register): Find saved registers in the next
10065 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10067 * gdbarch.sh (LANG): Set to ``c''.
10069 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10071 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10073 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10075 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10078 * hpread.c (hpread_get_lntt): Add declaration.
10079 Also fix PR gdb/391.
10081 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10083 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10084 * aclocal.m4, configure: Re-generate.
10087 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10089 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10090 instead of tm_print_insn.
10092 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10094 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10096 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10098 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10099 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10100 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10102 2002-04-12 Don Howard <dhoward@redhat.com>
10104 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10105 max_user_call_depth.
10106 (init_cmd_lists): Initialize the new value;
10107 * cli/cli-script.c (execute_user_command): Limit the call depth of
10108 user defined commands. This avoids a core-dump when user commands
10109 are infinitly recursive.
10111 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10113 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10114 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10115 from tdep struct instead of DEFAULT_LR_SAVE.
10116 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10117 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10118 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10120 2002-04-12 Michael Snyder <msnyder@redhat.com>
10122 * Remote.c: Spelling fix.
10123 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10124 If no symbol found for "sbrk", try "_sbrk".
10125 (make_output_phdrs): Use bfd_section_name.
10126 (gcore_copy_callback): Use bfd_section_name.
10127 * eval.c: Indentation fix-ups.
10128 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10129 in case it gets applied to an address that is already
10130 in the instruction space.
10131 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10132 * symfile.c: Fix indentation, long lines.
10133 * source.c: White space fix-up.
10135 2002-04-12 Andrew Cagney <cagney@redhat.com>
10137 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10138 * frame.c (frame_register_read): New function. Return non-zero on
10140 (read_relative_register_raw_bytes_for_frame): Delete.
10141 (read_relative_register_raw_bytes): Delete.
10142 * frame.h (frame_register_read): Declare.
10143 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10144 * sh-tdep.c: Ditto.
10145 * infcmd.c (do_registers_info): Ditto.
10146 * hppa-tdep.c: Ditto.
10147 * rs6000-tdep.c: Ditto.
10148 * h8500-tdep.c: Ditto.
10149 * mips-tdep.c: Ditto.
10150 * h8300-tdep.c: Ditto.
10151 * z8k-tdep.c: Ditto.
10153 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10155 From Jimi X <jimix@watson.ibm.com>:
10156 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10159 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10161 From Jimi X <jimix@watson.ibm.com>:
10162 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10165 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10167 From Jimi X <jimix@watson.ibm.com>:
10168 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10169 register sets for these processor variants.
10171 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10173 * regformats/reg-ppc.dat: Support FPSCR.
10175 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10177 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10178 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10179 Add fpscr as an invalid/unfetchable register.
10180 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10181 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10182 (fill_fpregset): Add support for register fpscr.
10183 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10184 (fill_gregset): Account for the fact that register ``mq'' might
10186 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10187 (registers_power): Add fpscr to register set at slot 71.
10188 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10189 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10191 2002-04-11 Michael Snyder <msnyder@redhat.com>
10193 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10194 * configure: Regenerate.
10195 * config.in: Regenerate.
10196 * acconfig.h: Add define for _SYSCALL32.
10197 * core-sol2.c: Remove #define _SYSCALL32.
10198 * solib-legacy.c: Remove #define _SYSCALL32.
10200 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10202 * stack.c (select_frame): Cleanup internal error message, do not
10205 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10207 * stack.c (select_frame): Check that selected_frame and the
10208 specified level are as expected.
10209 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10211 * frame.h (struct frame_info): Add field `level'. Update
10213 Work-in-progress PR gdb/464.
10215 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10217 * maint.c (maint_print_section_info): Rename print_section_info.
10218 (print_bfd_section_info, print_objfile_section_info): Update.
10219 * inferior.h (struct gdbarch): Add opaque declaration.
10220 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10221 * gdbarch.h: Regenerate.
10223 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10225 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10226 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10227 (kernel_u_size): Added.
10228 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10229 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10231 2002-04-04 Jim Ingham <jingham@apple.com>
10233 * valarith.c (find_size_for_pointer_math): New function, either returns
10234 the size for a pointer's target, returns 1 for void *, or errors for
10236 (value_add, value_sub): use find_size_for_pointer_math.
10238 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10240 * linux-low.c (linux_look_up_symbols): New hook.
10241 (linux_target_ops): Add linux_look_up_symbols.
10242 * remote-utils.c (decode_address): New function.
10243 (look_up_one_symbol): New function.
10244 * server.c (handle_query): Call target look_up_symbols hook.
10245 * server.h (look_up_one_symbol): Add prototype.
10246 * target.h (struct target_ops): Add look_up_symbols hook.
10248 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10250 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10251 override FP_REGNUM with frame->fp. Update copyright.
10252 * parse.c (num_std_regs, std_regs): Delete.
10253 (target_map_name_to_register): Do not search std_regs. Update
10254 function description.
10255 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10256 declarations. Update copyright.
10259 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10261 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10262 after the last symbol in a block.
10264 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10266 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10267 is non zero as a found symbol.
10269 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10271 * findvar.c: Include "builtin-regs.h".
10272 (value_of_register): Call value_of_builtin_reg when applicable.
10273 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10274 (target_map_name_to_register): Call
10275 builtin_reg_map_name_to_regnum.
10276 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10277 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10278 (builtin_regs_h): Define.
10279 (builtin-regs.o): New target.
10280 (findvar.o): Add $(builtin_regs_h).
10281 * builtin-regs.c, builtin-regs.h: New files.
10282 * std-regs.c: New file.
10283 Partial fix for PR gdb/251.
10285 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10287 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10288 it's no longer required.
10290 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10292 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10294 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10296 From Jimi X <jimix@watson.ibm.com>:
10297 * rs6000-tdep.c (rs6000_software_single_step): Use
10298 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10299 and size. Use target_insert_breakpoint() and
10300 target_remove_breakpoint() to insert and remove breakpoints
10301 instead of explicit memory reads and writes.
10303 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10305 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10306 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10307 ELF_OBJECT_FORMAT ifdef.
10309 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10311 From Jimi X <jimix@watson.ibm.com>:
10312 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10314 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10316 From Jimi X <jimix@watson.ibm.com>:
10317 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10318 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10320 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10322 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10323 s/asprintf/xasprintf/.
10324 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10326 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10328 I believe Jeff Law denies responsability for this one:
10329 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10330 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10331 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10332 Work-around for PR gdb/366.
10334 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10336 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10337 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10338 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10340 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10342 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10343 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10346 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10348 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10351 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10353 * README (Reporting Bugs in GDB): Document the bug web page as the
10354 prefered way of submitting bugs.
10357 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10359 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10360 -1. Update comment.
10361 * gdbarch.h, gdbarch.c: Re-generate.
10363 2002-04-07 Andreas Schwab <schwab@suse.de>
10365 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10366 buffer to regcache_collect.
10368 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10370 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10371 * gdbarch.c, gdbarch.h: Re-generate.
10373 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10375 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10376 declaration. Fix -Werror.
10378 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10380 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10381 * gdbarch.c: Regenerate.
10383 2002-04-05 Michael Snyder <msnyder@redhat.com>
10385 * breakpoint.c (clear_command): Rewrite middle section to
10386 combine two loops with identical control conditions.
10387 Add a cleanup to eliminate a memory leak.
10388 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10390 2002-04-05 H.J. Lu (hjl@gnu.org)
10392 * solib-svr4.c (bkpt_names): Add "__start".
10394 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10396 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10397 as test for 64 bit target.
10399 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10401 * h8500-tdep.c (h8500_write_fp): Delete function.
10402 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10403 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10404 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10406 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10407 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10409 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10410 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10411 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10412 (d10v_write_fp): Delete function.
10413 * inferior.h (write_fp, generic_target_write_fp): Delete
10415 * regcache.c (generic_target_write_fp): Delete function.
10416 (write_fp): Delete function.
10417 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10418 * gdbarch.h, gdbarch.c: Regenerate.
10419 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10420 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10421 (sparc64_write_fp): Delete declaration.
10422 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10423 (h8500_write_fp): Delete declaration.
10425 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10427 * sparc-tdep.c (sparc64_write_fp): Delete.
10428 (sparc_push_dummy_frame): Replace write_fp call with code to store
10430 (sparc_gdbarch_init): Do not initialize write_fp.
10432 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10434 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10437 2002-03-29 Jim Blandy <jimb@redhat.com>
10439 * stack.c (get_selected_block): Add new argument `addr_in_block',
10440 used to return the exact code address we used to select the block,
10441 not just the block.
10442 * blockframe.c (get_frame_block, get_current_block): Same.
10443 * frame.h (get_frame_block, get_current_block,
10444 get_selected_block): Update declarations.
10445 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10446 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10448 2002-04-05 Michael Snyder <msnyder@redhat.com>
10450 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10453 2002-04-05 J. Brobecker <brobecker@gnat.com>
10455 * utils.c (xfullpath): New function.
10456 * defs.h (xfullpath): Add declaration.
10457 * source.c (openp): Use xfullpath in place of gdb_realpath to
10458 avoid resolving the basename part of filenames when the
10459 associated file is a symbolic link. This fixes a potential
10460 inconsistency between the filenames known to GDB and the
10461 filenames it prints in the annotations.
10462 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10463 to be able to match a filename with either the real filename, or
10464 the name of any symbolic link to this file.
10465 (lookup_partial_symtab): Ditto.
10467 2002-04-04 Michael Snyder <msnyder@redhat.com>
10469 * breakpoint.c: Add support for hardware breakpoints in overlays.
10470 (overlay_events_enabled): New state variable.
10471 (insert_breakpoints): Use overlay_events_enabled to decide
10472 whether to attempt to set a breakpoint at the overlay load addr.
10473 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10474 (remove_breakpoint): Use overlay_events_enabled to decide
10475 whether breakpoints need to be removed from overlay load addr.
10476 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10477 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10478 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10479 disable_overlay_breakpoints): Update overlay_events_enabled.
10481 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10483 * dwarf2read.c (struct function_range): New.
10484 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10485 (check_cu_functions): New.
10486 (read_file_scope): Initialize global function lists.
10487 Call dwarf_decode_line after processing children.
10488 (read_func_scope): Add to global function list.
10489 (dwarf_decode_lines): Call check_cu_functions everywhere
10490 record_line is called. Call record_line with a linenumber
10491 of 0 to mark sequence ends.
10493 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10495 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10496 change sync with glibc.
10498 2002-04-03 Jim Blandy <jimb@redhat.com>
10500 * configure.in: Call AC_C_INLINE.
10501 * configure: Regenerated.
10503 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10505 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10506 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10508 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10510 * NEWS: Mention gcore support on FreeBSD/i386.
10512 * fbsd-proc.c: New file.
10513 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10514 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10516 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10519 2002-03-29 Jim Blandy <jimb@redhat.com>
10521 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10522 unescaped newlines in string literals, but newer ones don't. So
10525 2002-03-26 Michael Snyder <msnyder@redhat.com>
10526 Andrew Cagney <cagney@redhat.com>
10528 * cli/cli-dump.c: New file. Dump memory to file,
10529 restore file to memory.
10530 * cli/cli-dump.h: New file.
10531 * Makefile.in: Add rules, dependencies for cli-dump.o.
10532 * NEWS: Mention new commands.
10534 2002-03-28 Michael Snyder <msnyder@redhat.com>
10536 * symfile.c (symbol_file_add): Move test for null symbols to later.
10538 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10540 From veksler at il.ibm.com:
10541 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10542 the xstrduped original path.
10545 2002-03-27 Michael Snyder <msnyder@redhat.com>
10547 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10548 * infcmd.c (_initialize_infcmd): Ditto.
10549 * language.c (_initialize_language): Ditto.
10550 * symfile.c (_initialize_symfile): Ditto.
10551 * top.c (_init_main): Ditto.
10552 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10554 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10556 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10557 vector registers handling.
10558 (skip_prologue): Handle new AltiVec instructions. Fill in new
10559 fields of frame data.
10560 (frame_get_saved_regs): Fill in information for AltiVec registers.
10562 2002-03-27 Jim Blandy <jimb@redhat.com>
10564 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10565 a function; leave this macro here to invoke that function.
10566 (symbol_init_mangled_name): Declaration for that function.
10567 * symtab.c (symbol_init_mangled_name): New function.
10569 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10571 * valarith.c: Replace strerror with safe_strerror.
10572 * tracepoint.c: Ditto.
10573 * lin-lwp.c: Ditto.
10574 * go32-nat.c: Ditto.
10576 * gnu-nat.c: Ditto.
10578 2002-03-27 Andreas Schwab <schwab@suse.de>
10580 * event-top.c (command_line_handler): Remove useless if.
10582 2002-03-27 Andreas Jaeger <aj@suse.de>
10584 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10587 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10589 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10590 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10591 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10592 (x86_64_linux_dr_get_status, supply_gregset),
10593 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10594 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10595 (x86_64_register_info_table): Add.
10596 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10597 (x86_64_register_raw_size, x86_64_register_virtual_type),
10598 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10599 general x86_64_register_info_table.
10600 (i386_gdbarch_init): gdbarch_register_bytes is now set
10601 dynamicaly during initialization.
10602 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10603 * gdbserver/linux-x86-64-low.c: Ditto.
10605 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10607 * gdbserver/server.c (main): Call target_signal_to_host_p
10608 and target_signal_to_host on signals received from the remote.
10609 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10610 target_signal_from_host on signals sent to the remote.
10611 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10612 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10614 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10616 * signals/signals.c: Include "server.h" in gdbserver build.
10617 (target_signal_from_name): Don't use STREQ.
10618 (_initialize_signals): Likewise. Don't include function in
10621 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10623 * signals.c: Moved to...
10624 * signals/signals.c: Here.
10625 * Makefile (signals.o): Update.
10627 2002-03-26 Jeff Law (law@redhat.com)
10629 * somread.c (som_symtab_read): Remove some commented out code and
10630 updated related comments. Do not set the minimal symbol table to
10631 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10632 in a dynamic executable.
10633 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10634 where we are unable to find the minimal symbol for the given
10637 2002-03-25 Jeff Law (law@redhat.com)
10639 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10641 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10643 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10645 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10647 * command.h: Update copyright.
10648 (struct cmd_list_element): Replace definition with opaque
10650 (enum cmd_types): Document that it will eventually be moved to
10652 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10653 (MALLOCED_REPLACEMENT): Delete macro.
10654 * Makefile.in (cli_decode_h): Add $(command_h).
10655 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10656 * top.c: Include "cli/cli-decode.h".
10657 * completer.c: Include "cli/cli-decode.h".
10658 * maint.c: Include "cli/cli-decode.h".
10659 * cli/cli-decode.h: Include "command.h".
10660 (enum command_class): Delete.
10661 (enum cmd_types): Comment out.
10662 (enum cmd_auto_boolean): Delete.
10663 (enum var_types): Delete.
10665 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10667 * cli/cli-decode.c: Include "gdb_assert.h".
10668 (add_set_or_show_cmd): New static function.
10669 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10670 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10671 all fields, such as func, from the set command.
10673 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10675 * MAINTAINERS (sh-elf): Change warning flag to -w.
10677 2002-03-23 Andrew Cagney <cagney@redhat.com>
10679 * defs.h (error): Add printf format attribute.
10680 * thread-db.c (thread_from_lwp): Fix error format string.
10681 * stack.c (parse_frame_specification): Ditto.
10682 * cli/cli-decode.c (undef_cmd_error): Ditto.
10683 * scm-lang.c (scm_lookup_name): Ditto.
10684 * tracepoint.c (trace_error): Ditto.
10685 * remote-utils.c (usage): Ditto.
10686 * remote.c (compare_sections_command): Ditto.
10689 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10691 * gdbtypes.c (append_composite_type_field): New function.
10692 (init_composite_type): New function.
10693 * gdbtypes.h (append_composite_type_field): Declare.
10694 (init_composite_type): Ditto.
10696 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10698 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10700 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10701 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10702 structure returning convention for SYSV ABI case, but not
10703 for GNU/Linux, FreeBSD, or NetBSD.
10705 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10707 * symtab.h (lookup_block_symbol): Add mangled_name argument
10710 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10711 with new mangled_name argument.
10712 * linespec.c (decode_line_1): Likewise.
10713 * valops (value_of_this): Likewise.
10714 * symtab.c (lookup_transparent_type): Likewise.
10715 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10716 (lookup_symbol): If we are given a mangled name, pass it down
10717 to lookup_symbol_aux.
10718 (lookup_block_symbol): If we are given a mangled name to check
10719 against, only return symbols which match it.
10721 2002-03-22 Christopher Faylor <cgf@redhat.com>
10723 * win32-nat.c (child_create_inferior): Check for proper shell to use
10724 here, in case the user changes it on the fly.
10725 (_initialize_inftarg): Remove shell path considerations.
10727 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10729 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10730 for gdbarch_max_register_raw_size and max_register_virtual_size.
10731 Adjust copyright year.
10733 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10735 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10736 in a function to cover the entire beginning of the function
10737 as well if it does not already.
10739 2002-03-21 Tom Rix <trix@redhat.com>
10741 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10742 (rs6000_ptrace64): Renamed from ptrace64.
10744 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10746 * gdbserver/remote-utils.c (remote_open): Don't call
10747 getprotobyname, we're all using TCP here so just use
10749 * gdbserver/gdbreplay.c (remote_open): Ditto.
10751 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10753 * regcache.c (_initialize_regcache): No need to call
10754 build_regcache() at this time; it gets called whenever
10755 the gdbarch changes.
10757 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10759 * sparc-nat.c: Include sys/param.h where possible.
10761 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10764 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10765 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10766 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10768 * stabsread.c (rs6000_builtin_type): Likewise.
10769 (read_sun_floating_type): Likewise.
10771 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10773 * stabsread.c (read_member_functions): Remove skip code for duplicate
10774 constructor/destructor methods. Use standard parsing for these
10775 methods and just do not chain them to the list of methods after
10778 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10780 * coffread.c: Remove redundant static declarations. Replace
10781 occurrences of `PTR' with `void *'.
10782 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10783 * top.h (quit_cover): Likewise.
10784 * defs.h (catch_errors): Likewise.
10786 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10788 * defs.h (XMALLOC): Define.
10789 * gdb-events.sh (XMALLOC): Delete macro.
10790 * gdb-events.c, gdb-events.h: Regenerate.
10791 * gdbarch.sh (XMALLOC): Delete macro.
10792 * gdbarch.c: Regenerate.
10793 * serial.c (XMALLOC): Delete macro.
10794 * ui-file.c (XMALLOC): Ditto.
10795 * ser-unix.h (XMALLOC): Ditto.
10796 * sh-tdep.c (XMALLOC): Ditto.
10797 * ui-out.c (XMALLOC): Ditto.
10798 * utils.c (XMALLOC): Ditto.
10799 * i386-tdep.c (XMALLOC): Ditto.
10800 * gdb-events.c (XMALLOC): Ditto.
10801 * d10v-tdep.c (XMALLOC): Ditto.
10802 * cli-out.c (XMALLOC): Ditto.
10804 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10805 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10806 * ui-file.c, ui-out.c: Ditto.
10808 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10810 * command.h (struct cmd_list_element): Add field context.
10811 (set_cmd_context, get_cmd_context): Declare.
10812 * cli/cli-decode.h: Ditto.
10813 * cli/cli-decode.c (get_cmd_context): New function.
10814 (set_cmd_context): New function.
10815 (add_cmd): Initialize context.
10816 Part of fixing PR gdb/145 and PR gdb/146.
10818 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10820 * cli/cli-decode.c (cmd_type): New function.
10821 * command.h (cmd_type): Declare.
10822 * infrun.c (set_schedlock_func): Call function cmd_type.
10823 * kod.c (kod_set_os): Call cmd_type.
10824 * cris-tdep.c (cris_version_update): Use function cmd_type.
10825 (cris_mode_update, cris_abi_update): Ditto.
10827 * command.h: (execute_cmd_post_hook): Declare.
10828 (execute_cmd_pre_hook): Declare.
10829 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10830 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10831 functions. Execute pre/post hook while ensuring that afterwords
10832 hook_in is cleared.
10833 * top.c (execute_command): Use execute_cmd_post_hook, and
10834 execute_cmd_pre_hook to execute pre/post commands.
10835 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10837 (hook_stop_stub): Call execute_cmd_pre_hook.
10839 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10841 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10842 set'' and this leads to a core dump. Move xstrdup of
10843 operating_system to after check that it is not NULL.
10845 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10847 * kod.c (kod_set_os): Remove unnecessary check that
10848 ``command->type'' is set_cmd.
10850 * valprint.c (set_input_radix): Use input_radix.
10851 (set_output_radix): Use output_radix.
10852 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10855 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10857 * value.h (struct value): Delete field ``substring_addr''. Change
10858 aligner fields to force_doublest_align, force_longest_align,
10859 force_core_addr_align and force_pointer_aligh.
10861 * value.h (struct value): Fix typo in above change.
10863 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10865 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10866 to fix internal_error from ``maintenance print architecture''.
10868 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10870 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10871 for gcc versions after gcc-2.8.1.
10873 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10875 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10876 for method resolution. Restore adjustment of ``this'' pointer after
10877 calling value_struct_elt, which was accidentally removed during the
10880 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10882 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10884 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10885 get_saved_register.
10886 * value.h (value_of_register): Update.
10888 2002-03-14 Richard Henderson <rth@redhat.com>
10890 * configure.in: Detect declaration for canonicalize_file_name.
10891 * utils.c (canonicalize_file_name): Declare, if needed.
10892 (gdb_realpath): Prefer realpath if available and usable.
10893 * config.in, configure: Rebuild.
10895 2002-03-14 Richard Henderson <rth@redhat.com>
10897 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10898 a constant array bound.
10900 * MAINTAINERS: Add myself to write-after-approval.
10902 2002-03-14 Michael Snyder <msnyder@redhat.com>
10904 * symfile.c (syms_from_objfile): Return immediately if no syms.
10905 (symbol_file_add): Return immediately if no syms.
10906 (find_sym_fns): Return immediately if no syms.
10908 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10910 * gdbserver/remote-util.c (remote_open): Print remote-side's
10911 IP address when remote debugging over the network.
10913 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10915 * config/sparc/fbsd.mh: Fix copyright.
10916 * config/sparc/fbsd.mt: Likewise.
10918 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10920 * MAINTAINERS: Fix typo in name of gdb warnings option.
10921 (x86-64): Fix formating so that this can be parsed by awk.
10923 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10925 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10926 * defs.h: Include "gdb/signals.h".
10927 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10929 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10931 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10932 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10935 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10936 Don Howard <dhoward@redhat.com>
10938 * mips-tdep.c (ST0_FR): Define.
10939 (mips2_fp_compat): New function, temporarily disabled.
10940 (mips_read_fp_register_single): New function.
10941 (mips_read_fp_register_double): New function.
10942 (mips_print_register): Use them.
10943 (do_fp_register_row): Likewise.
10945 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10947 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10950 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10952 * stabsread.c (read_member_functions): Fix is_stub test for
10953 static member functions, improve comment.
10955 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10957 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10958 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10959 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10960 commands that set boolean values.
10961 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10962 (arm_rdi_resume): Always initialize PC.
10963 (arm_rdi_open): Don't use rslt as a boolean.
10964 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10965 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10966 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10967 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10969 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10971 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10972 * configure: Rebuilt.
10974 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10976 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10977 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10979 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10981 * cli/cli-decode.c (set_cmd_completer): New function.
10982 * command.h (set_cmd_completer): Declare.
10983 * cli/cli-decode.h (set_cmd_completer): Ditto.
10985 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10986 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10987 * win32-nat.c (_initialize_inftarg): Ditto.
10988 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10989 * proc-api.c (_initialize_proc_api): Ditto.
10990 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10991 * source.c (_initialize_source): Ditto.
10992 * exec.c (_initialize_exec): Ditto.
10993 * solib.c (_initialize_solib): Ditto.
10994 * top.c (init_main): Ditto.
10995 * tracepoint.c (_initialize_tracepoint): Ditto.
10996 * symfile.c (_initialize_symfile): Ditto.
10997 * printcmd.c (_initialize_printcmd): Ditto.
10998 * infcmd.c (_initialize_infcmd): Ditto.
10999 * corefile.c (_initialize_core): Ditto.
11001 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11003 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11005 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11007 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11009 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11011 * NEWS: Update headings, 5.2 has branched.
11013 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11015 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11016 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11017 (register_addr, REGISTER_RAW_SIZE): Likewise.
11018 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11019 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11021 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11023 * MAINTAINERS (x86-64): Add myself.
11024 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11025 changed value_ptr -> struct value *
11027 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11029 * configure.host (sparc64-*-freebsd): Add.
11030 * configure.tgt: Likewise.
11031 * config/sparc/fbsd.mh: New file.
11032 * config/sparc/fbsd.mt: Likewise.
11033 * config/sparc/nm-fbsd.h: Likewise.
11034 * config/sparc/tm-fbsd.h: Likewise.
11036 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11038 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11039 regformats/reg-s390x.dat.
11041 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11043 * utils.c: Add FIXME explaining true/false problem.
11045 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11047 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11049 2002-02-28 Michael Chastain <mec@shout.net>
11051 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11053 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11055 * gdbserver/linux-s390-low.c: New file.
11056 * regformats/reg-s390.dat: New file.
11057 * regformats/reg-s390x.dat: New file.
11058 * gdbserver/configure.srv: Add S/390.
11059 * gdbserver/Makefile.in: Add S/390.
11060 * configure.tgt: Enable gdbserver for S/390.
11062 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11064 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11065 first line of the doc string for "info dos", except at the end of
11066 the sentence, since the short help stops at the first period.
11068 2002-02-28 Jason Merrill <jason@redhat.com>
11070 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11072 2002-02-27 Fred Fish <fnf@redhat.com>
11074 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11075 comment (dumy -> dummy).
11077 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11079 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11081 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11083 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11085 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11087 * gdbserver/acconfig.h: New file.
11088 * gdbserver/i387-fp.c: New file.
11089 * gdbserver/i387-fp.h: New file.
11090 * gdbserver/linux-x86-64.c: New file.
11091 * regformats/reg-x86-64.dat: New file.
11092 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11093 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11094 * gdbserver/configure.in: Add support for regsets.
11095 * gdbserver/config.in: Regenerate.
11096 * gdbserver/configure: Regenerate.
11097 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11098 * gdbserver/linux-low.h: New file.
11099 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11101 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11102 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11103 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11104 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11105 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11106 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11107 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11108 "i387-fp.h". Add PTRACE_GETREGS and friends.
11109 * gdbserver/regcache.c (supply_register): New function.
11110 (supply_register_by_name): New function.
11111 (collect_register): New function.
11112 (collect_register_by_name): New function.
11114 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11116 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11117 (config.status): Add configure.srv dependency.
11118 (server_h): Add config.h dependency.
11120 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11122 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11123 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11124 * gdbserver/configure.srv: Change i386-*-linux* to use
11127 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11129 * x86-64-tdep.c: Re-indent. Update copyright date.
11131 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11133 From Michal Ludvig <mludvig@suse.cz>:
11134 * x86-64-tdep.c (value.h): Delete.
11135 (gdb_assert.h): Include.
11136 (x86_64_register_convert_to_virtual,
11137 x86_64_register_convert_to_raw ): Add check which lets only
11138 floating-point values to be converted.
11139 (value_push): Delete.
11140 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11141 (i386_gdbarch_init): Number of register_bytes fixed.
11143 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11145 * MAINTAINERS: Add x86-64 target.
11147 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11149 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11150 * osfsolib.c (solib_map_sections): Ditto.
11151 * irix5-nat.c (solib_map_sections): Ditto.
11152 * corelow.c (gdb_check_format): Ditto.
11153 * symfile.c (symfile_bfd_open): Ditto.
11154 * solib.c (solib_map_sections): Ditto.
11157 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11159 * remote.c (_initialize_remote): By default, disable ``e'' and
11160 ``E'' step out-of-range packets.
11162 2002-02-26 Andreas Schwab <schwab@suse.de>
11164 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11165 m68k_linux_frame_saved_pc.
11166 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11168 (SIGCONTEXT_PC_OFFSET): Remove.
11169 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11170 m68k_linux_sigtramp_saved_pc): New functions.
11171 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11172 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11173 (UCONTEXT_PC_OFFSET): Define.
11174 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11175 non-RT and RT signal trampolines.
11177 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11179 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11180 (TARGET_NBPG, STACK_END_ADDR): Delete
11181 (VARIABLES_INSIDE_BLOCK): Delete.
11183 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11185 * utils.c (perror_with_name): Make string parameter constant.
11186 (print_sys_errmsg): Ditto.
11188 * defs.h (perror_with_name): Update.
11189 (print_sys_errmsg): Update.
11192 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11194 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11195 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11197 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11199 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11200 if it already matches the current architecture from the exec file.
11201 Include arch-utils.h for gdbarch_info_init prototype.
11202 * Makefile.in (rs6000-nat.o): Update dependencies.
11204 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11206 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11207 list of exported variables.
11209 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11211 * gdbserver/configure.srv: New file.
11212 * gdbserver/configure.in: Use configure.srv instead
11213 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11215 * gdbserver/configure: Regenerated.
11216 * gdbserver/terminal.h: New file.
11217 * gdbserver/Makefile.in: Update for configure changes. Remove
11218 more unneeded include paths.
11220 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11222 From wiz at danbala:
11223 * config/sparc/tm-sp64.h: Fix grammar and typos.
11226 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11228 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11229 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11230 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11231 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11232 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11233 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11234 * s390-tdep.c: Ditto.
11235 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11236 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11237 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11238 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11239 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11240 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11241 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11242 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11243 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11244 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11247 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11249 * lin-thread.c: Delete file.
11250 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11251 to gdb_proc_service.h.
11252 * configure: Re-generate.
11254 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11255 * serial.c (serial_open): Delete check for "ocd".
11258 * Makefile.in (linux-thread.o): Delete target.
11259 * linux-thread.c: Delete file.
11261 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11262 renamed SH files to be consistent.
11264 * symtab.c (sort_search_symbols): Use xfree.
11266 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11268 * arm-linux-tdep.c (arm_linux_init_abi): Register
11269 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11270 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11271 definition with undef, since we don't want the sysvr4 definition.
11272 (SKIP_TRAMPOLINE_CODE): Likewise.
11274 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11276 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11278 * configure.in: (AC_CHECK_FUNCS) Added test for
11279 canonicalize_file_name Regenerated.
11280 * config.in, configure: Regenerated.
11281 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11282 defined use canonicalize_file_name.
11284 2002-02-23 Michael Chastain <mec@shout.net>
11286 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11288 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11290 * README: Remove references to cygnus.com.
11291 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11292 dot com'' form. Remove references to cygnus.com and sourceware.
11294 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11296 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11297 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11298 1003.1-2001 no longer allows "head -1".
11299 * gdb/Makefile.in (version.c): Likewise.
11300 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11301 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11302 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11304 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11306 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11307 * command.h (cmd_cfunc_eq): Declare.
11308 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11310 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11311 ``struct cmd_list_element *''.
11312 * cli/cli-cmds.c (is_complete_command): Update. Use
11314 * top.c (execute_command): Pass the command to
11315 is_complete_command.
11316 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11318 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11320 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11321 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11322 architecture defines.
11323 * s390-tdep.c (s390_gdbarch_init): Likewise.
11325 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11327 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11328 (arm_linux_push_arguments): Likewise.
11329 (arm_linux_init_abi): Register them. Also register linux-specific
11331 (find_minsym_and_objfile): Use strcmp, not STREQ.
11332 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11333 (arm_linux_call_dummy_words): Delete declaration.
11334 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11335 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11337 (LOWEST_PC): Delete.
11339 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11341 * maint.c (print_section_info): Do not prepend `0x' to filepos
11342 output, it will be handled by local_hex_string_custom.
11344 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11346 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11347 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11348 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11350 2002-02-22 Jim Blandy <jimb@redhat.com>
11352 Indicate that the bcache functions don't change the strings
11354 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11355 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11357 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11359 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11361 2002-02-21 Christopher Faylor <cgf@redhat.com>
11363 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11364 find the complete path to a loaded DLL.
11366 2002-02-21 Fred Fish <fnf@redhat.com>
11368 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11369 that marks the end of the range of a function, enter a line number
11370 entry that has a line number of zero and a PC offset that matches
11371 the end of the function. This starts a range of PC's for which no
11372 line number information is known.
11373 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11374 PC's for which no line number info is found (line number is zero)
11375 then we didn't find any valid line information.
11376 * symtab.h: Document use of zero line number entry.
11378 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11380 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11381 (have_ptrace_getvrregs): Define for run time checks.
11382 (gdb_vrregset_t): New type for Altivec register handling.
11383 (fetch_register, store_register): Fetch/store altivec register
11385 (fetch_altivec_register, store_altivec_register): New functions.
11386 (supply_vrregset, fill_vrregset): New functions.
11387 (fetch_altivec_registers, store_altivec_registers): New functions.
11388 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11391 2002-02-21 Jiri Smid <smid@suse.cz>
11393 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11395 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11397 * Makefile.in (armnbsd-nat.o): Update dependencies.
11398 * armnbsd-nat.c (supply_gregset): New function. Common code to
11399 supply the integer register set.
11400 (supply_fparegset): New function. Similar for FPA registers.
11401 (fetch_regs, fetch_fp_regs): Use them.
11402 (fetch_core_registers): Likewise.
11403 (fetch_elfcore_registers): New function.
11404 (arm_netbsd_elfcore_fns): New core-file type specification.
11405 (_initialize_arm_netbsd_nat): Register it.
11407 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11409 * armnbsd-nat.c: Include gdbcore.h.
11410 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11411 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11412 'void' to declaration, to shut up ARI.
11413 (fetch_core_registers): Make static. Rewrite using supply_register.
11414 (arm_netbsd_core_fns): New core-file type specification.
11415 (_initialize_arm_netbsd_nat): New function.
11417 2002-02-21 Christopher Faylor <cgf@redhat.com>
11419 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11422 2002-02-20 Christopher Faylor <cgf@redhat.com>
11424 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11427 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11429 * jv-exp.y (parse_number): Change type of implicit longs
11430 to builtin_type_uint64.
11432 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11434 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11435 to be an integer instead of a `union wait'.
11437 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11439 * mips-linux-nat.c: Call the operating system GNU/Linux.
11440 * mips-linux-tdep.c: Likewise.
11441 * mips-tdep.c: Likewise.
11443 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11446 * jv-exp.y (parse_number): Handle 64-bit integers.
11448 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11450 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11451 AC_STDC_HEADERS to AC_HEADER_STDC.
11452 * gdbserver/configure: Regenerated.
11454 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11456 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11458 * sparc-tdep.c (get_longjmp_target): Likewise.
11460 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11462 * News: Add news about ARM and Multi-arch. Mention the new target
11465 2002-02-19 Jim Blandy <jimb@redhat.com>
11467 * stabsread.c (error_type_complaint): Improve error message.
11469 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11471 * gdbserver/README: Update documentation.
11472 * gdbserver/configure.in: Update configury to match documentation.
11473 * gdbserver/Makefile.in: Likewise.
11474 * gdbserver/configure: Regenerated.
11475 * gdbserver/aclocal.m4: New file, generated by aclocal.
11476 * gdbserver/config.in: New file, generated by autoheader.
11478 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11480 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11483 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11485 * arm-tdep.h (enum arm_float_model): New enum.
11486 (struct gdbarch_tdep): Add fp_model.
11487 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11488 up floating-point conversions until we know the floating-point model
11489 in use by the inferior. Don't complain about being unable to
11490 determine the ABI of the inferior when we don't have one.
11491 (arm_extract_return_value): Support different floating-point models.
11492 (arm_store_return_value): Likewise.
11493 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11495 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11497 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11499 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11500 of ``current_gdbarch''.
11502 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11504 * armnbsd-nat.c : ANSIfy all function declarations.
11505 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11506 (fetch_inferior_registers): Re-implement in terms of above.
11507 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11508 (store_inferior_registers): Re-implement in terms of above.
11510 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11512 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11514 * arm-linux-tdep.c: Likewise.
11515 * config/arm/tm-linux.h: Likewise.
11517 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11519 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11520 * config/arm/nbsd.mt (TM_FILE): Delete.
11521 * config/arm/tm-nbsd.h: Delete.
11523 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11525 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11526 Initialize CALL_DUMMY_LENGTH.
11528 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11530 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11532 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11533 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11534 defines one thing and that is incorrect for this port.
11535 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11537 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11539 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11541 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11543 * win32-nat.c (display_selector): New function. Displays information
11544 about the information returned by GetThreadSelectorEntry API function.
11545 (display_selectors): New function. Displays the infomation of
11546 the selector given as argument, or of CS, DS ans FS selectors
11547 if no argument is given.
11548 ( _initialize_inftarg): Add "w32" as info prefix command.
11549 Add "info w32 selector" as command calling display_selectors.
11551 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11553 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11554 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11557 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11559 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11561 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11563 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11564 (arm_fix_call_dummy): Call it.
11565 (arm_call_dummy_breakpoint_offset): Delete.
11566 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11567 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11569 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11571 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11572 Default to func_frame_chain_valid.
11573 * gdbarch.h, gdbarch.c: Re-generate.
11574 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11576 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11578 * ppc-linux-nat.c: Update copyright.
11579 (fetch_register, store_register): Add tid parameter, don't compute
11581 (fetch_ppc_registers, store_ppc_registers): Add tid
11582 parameter. Pass it along to callees.
11583 (fetch_inferior_registers, store_inferior_registers): Compute tid
11584 here, and pass it to calleed functions.
11585 (fill_gregset, supply_fpregset): Clean up formatting.
11587 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11589 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11590 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11592 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11594 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11595 * gdbarch.c gdbarch.h: Regenerate.
11596 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11598 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11599 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11600 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11602 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11603 * arm-tdep.c (arm_get_longjmp_target): New function.
11604 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11605 this to a positive value register arm_get_longjmp_target as the
11607 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11608 (arm_linux_init_abi): Set up longjmp description in tdep.
11609 * armnbsd-nat.c (get_longjmp_target): Delete.
11610 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11611 description in tdep.
11612 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11613 (get_longjmp_target): Delete declaration.
11614 (GET_LONGJMP_TARGET): Delete.
11615 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11616 (GET_LONGJMP_TARGET): Delete.
11618 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11620 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11621 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11622 of ``current_gdbarch''.
11624 2002-02-17 Tom Tromey <tromey@redhat.com>
11626 * cli/cli-cmds.c (compare_strings): New function.
11627 (complete_command): Only print each unique item once.
11628 * completer.h (complete_line): Declare.
11629 * completer.c (complete_line): New function.
11630 (line_completion_function): Use it.
11632 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11634 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11635 * gdbarch.h, gdbarch.c: Re-generate.
11637 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11639 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11641 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11643 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11644 * valops.c (value_arg_coerce): Don't take the address of a reference
11645 to convert an argument to a reference.
11647 2002-02-15 Christopher Faylor <cgf@redhat.com>
11649 * win32-nat.c (get_image_name): New function.
11650 (handle_load_dll): Use get_image_name function.
11651 (get_child_debug_event): Avoid registering debug events until possibly
11652 execed process is started.
11653 (child_create_inferior): Allow invocation via shell so that command
11654 line redirection, etc. works ok.
11655 (_initialize_inftarg): Add new command: "set shell" to control whether
11656 a shell is used to start a process.
11658 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11660 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11661 instead of find_register_by_number.
11662 (cannot_store_register): Likewise.
11664 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11666 * dwarf2read.c: Replace fprintf (stderr, ...) by
11667 fprintf_unfiltered (gdb_stderr, ...).
11669 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11671 * gdbserver/gdbserver.1: Document --attach.
11673 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11675 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11677 * arm-tdep.c (arm_default_arm_le_breakpoint)
11678 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11679 (arm_default_thumb_be_breakpoint): New. Initialize them from
11680 traditional breakpoint defines.
11681 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11682 (arm_gdbarch_init): Initialize new breakpoint variables.
11683 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11684 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11685 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11686 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11688 (arm_netbsd_init_abi_common): ... here; new function.
11689 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11690 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11691 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11692 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11694 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11696 * arm-tdep.h (enum arm_abi): New enum.
11697 (struct gdbarch_tdep): New structure.
11698 (LOWEST_PC): Provide a default.
11699 (arm_gdbarch_register_os_abi): Declare new function.
11700 * arm-tdep.c (arm_abi_names): New array.
11701 (process_note_abi_tag_sections): New function.
11702 (get_elfosabi): New function.
11703 (arm_gdbarch_register_os_abi): New function.
11704 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11705 support for that ABI has been built in, then call the appropriate
11706 configuration routine. Use gdbarch_num_regs() to get the number
11708 (arm_dump_tdep): New function.
11709 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11710 place-holder functions.
11711 (_initialize_arm_tdep): Register them.
11712 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11714 * armnbsd-tdep.c: New file.
11715 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11716 * config/arm/nbsd.mt (TDEPFILES): Add it.
11717 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11719 * armnbsd-nat.c: Include regcache.h.
11720 * Makefile.in (armnbsd-nat.o): Update dependency list.
11722 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11724 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11726 * gdbserver/Makefile.in: Fix typos in target rules.
11728 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11730 Fix part of PR gdb/267.
11731 * linespec.c (find_methods): Handle constructors specially for now.
11733 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11735 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11737 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11738 standard_coerce_float_to_double().
11740 2002-02-14 Christopher Faylor <cgf@redhat.com>
11742 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11745 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11747 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11748 find_variant_by_name, because it confuses the multiarch
11749 framework. Return NULL if there isn't an architecture with the
11750 user supplied name, instead of forcing a different one without
11751 recording the change with the multiarch machinery.
11752 (find_variant_by_name): Delete.
11754 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11756 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11757 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11759 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11761 * stack.c (print_frame_info_base): When calling
11762 print_frame_info_listing_hook, set current_source_symtab.
11764 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11766 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11767 and remove unused $(INCLUDE_DIR).
11768 Add regcache.c to OBS.
11769 Add generated register protocol files to clean target.
11770 Update dependencies for new objects, obsolete old target code.
11772 * gdbserver/linux-low.c: Remove all platform-specific code to
11773 new files. Remove various dead code. Update to use regcache
11775 * gdbserver/remote-utils.c (fromhex): Add return statement
11777 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11779 (input_interrupt): Add integer parameter to match prototype
11780 of a signal handler.
11781 (outreg): Use register_data ().
11782 (prepare_resume_reply): Use gdbserver_expedite_regs.
11783 * gdbserver/server.c (main): Dynamically allocate own_buf because
11784 PBUFSIZ is no longer constant. Use registers_to_string () and
11785 registers_from_string ().
11786 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11787 for error (), fatal (), and warning (). Update definition of
11788 PBUFSIZ to use regcache functionality. Add include guard.
11789 * gdbserver/utils.c (fatal): Add missing ``const''.
11790 (warning): New function.
11792 * regformats/regdat.sh: Include "regcache.h" in generated files.
11793 Provide init_registers () function.
11794 * regformats/regdef.h: Add prototype for set_register_cache ().
11797 * gdbserver/linux-arm-low.c: New file.
11798 * gdbserver/linux-i386-low.c: New file.
11799 * gdbserver/linux-ia64-low.c: New file.
11800 * gdbserver/linux-m68k-low.c: New file.
11801 * gdbserver/linux-mips-low.c: New file.
11802 * gdbserver/linux-ppc-low.c: New file.
11803 * gdbserver/linux-sh-low.c: New file.
11805 * gdbserver/regcache.c: New file.
11806 * gdbserver/regcache.h: New file.
11808 * gdbserver/low-linux.c: Removed obsolete file.
11810 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11812 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11813 * config/i386/linux.mt: Likewise.
11814 * config/ia64/linux.mt: Likewise.
11815 * config/m68k/linux.mh: Likewise.
11816 * config/powerpc/linux.mh: Likewise.
11817 * config/mips/linux.mt: Likewise.
11819 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11821 * config/i386/i386lynx.mh: Mark gdbserver variables
11822 as (currently) obsolete for this target.
11823 * config/i386/nbsd.mt: Likewise.
11824 * config/i386/nbsdelf.mt: Likewise.
11825 * config/m32r/m32r.mt: Likewise.
11826 * config/m68k/m68klynx.mh: Likewise.
11827 * config/m68k/nbsd.mt: Likewise.
11828 * config/m68k/sun3os4.mh: Likewise.
11829 * config/mips/vr5000.mt: Likewise.
11830 * config/ns32k/nbsd.mt: Likewise.
11831 * config/pa/hppabsd.mh: Likewise.
11832 * config/pa/hppaosf.mh: Likewise.
11833 * config/powerpc/nbsd.mt: Likewise.
11834 * config/rs6000/rs6000lynx.mh: Likewise.
11835 * config/s390/s390.mt: Likewise.
11836 * config/s390/s390x.mt: Likewise.
11837 * config/sparc/sparclynx.mh: Likewise.
11838 * config/sparc/sun4os4.mh: Likewise.
11839 * config/i386/x86-64linux.mt: Likewise.
11840 * config/sparc/linux.mh: Likewise.
11842 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11844 * configure.tgt: Configure gdbserver only for known working
11845 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11846 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11847 SUBDIRS if it is configured. Update comment for ${nativefile}.
11848 * configure: Regenerated.
11850 2002-02-13 Michael Snyder <msnyder@redhat.com>
11852 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11854 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11855 (default_gcore_mach): Just return 0, work around a problem in bfd.
11856 (default_gcore_target): OK to return NULL if exec_bfd is null.
11857 (make_mem_sec): Use a cast, avoid a warning.
11859 * procfs.c (find_memory_regions_callback): Use a cast instead of
11860 calling host_pointer_to_address (which complains if
11861 sizeof (host pointer) != sizeof (target pointer)).
11862 (procfs_make_note_section): Avoid overflow in psargs string.
11864 * procfs.c (procfs_make_note_section): Make the default
11865 implementation return an error.
11867 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11869 * procfs.c (procfs_make_note_section): Provide a default definition
11870 (for alpha-dec-osf4.0f). Fix typos.
11872 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11874 * linux-proc.c: Add include of regcache.h.
11875 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11877 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11879 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11880 * memattr.c (create_mem_region): Disallow useless empty region.
11881 Regions are half-open intervals, so allow [A..B) [B..C) as
11884 2002-02-13 Michael Chastain <mec@shout.net>
11886 * defs.h: Kill CONST_PTR.
11887 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11888 * c-lang.c (c_builtin_types): Likewise.
11889 * ch-lang.c (ch_builtin_types): Likewise.
11890 * f-lang.c (f_builtin_types): Likewise.
11891 * language.c (unknown_builtin_types): Likewise.
11892 * m2-lang.c (m2_builtin_types): Likewise.
11893 * p-lang.c (pascal_builtin_types): Likewise.
11894 * scm-lang.c (c_builtin_types): Likewise.
11896 2002-02-13 Keith Seitz <keiths@redhat.com>
11898 * arm-tdep.h (arm_get_next_pc): Add declaration.
11900 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11902 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11903 with other related struct-returning functions.
11904 (arm_extract_struct_value_address): New function.
11905 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11906 initialize float_format, double_format and long_double_format as
11907 appropriate to the endianness of the target.
11908 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11909 (arm_use_struct_convention): Delete declaration.
11910 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11912 2002-02-13 Keith Seitz <keiths@redhat.com>
11914 * defs.h (core_addr_to_string_nz): New function.
11916 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11918 Apply missing bits of 2002-01-15 patch.
11919 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11920 (fill_fpregset): Use i387_fill_fsave.
11922 2002-02-12 Keith Seitz <keiths@redhat.com>
11924 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11925 (core_addr_to_string_nz): New function.
11927 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11929 * arm-linux-nat.c: Really include arm-tdep.h.
11930 * config/arm/tm-linux.h (struct type, struct value): Declare.
11932 2002-02-11 Michael Snyder <msnyder@redhat.com>
11934 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11935 (gcore section): Ifdef for Solaris and Unixware only.
11936 (procfs_do_thread_registers): Unixware needs one lwpstatus
11937 per thread (not one prstatus or pstatus).
11938 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11939 not over all gdb threads. For unixware, call elfcore_write_pstatus
11940 once before iterating over threads.
11942 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11944 * arm-tdep.h: New file.
11945 * arm-tdep.c: Include arm-tdep.h.
11946 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11947 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11948 (arm_print_float_info, arm_register_type, convert_to_extended)
11949 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11950 (arm_extract_return_value, arm_register_name): Make static.
11951 (arm_software_single_step): Similarly. Fix types in declaration.
11952 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11953 (arm_store_return_value, arm_store_struct_return): New functions.
11954 (arm_gdbarch_init): Register the above functions. Also register
11955 call_dummy_start_offset, sizeof_call_dummy_words,
11956 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11957 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11958 max_register_virtual_size, register_size. Set up
11959 prologue_cache.saved_regs here, rather than ...
11960 (_initialize_arm_tdep): ... here.
11961 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11963 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11964 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11965 (arm_print_float_info, arm_register_type, convert_to_extended)
11966 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11967 (arm_extract_return_value, arm_register_name): Delete declarations.
11968 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11969 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11970 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11971 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11972 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11973 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11974 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11975 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11976 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11977 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11978 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11979 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11981 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11982 * remote-rdi.c remote-rdp.c: Likewise.
11983 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11984 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11985 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11988 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11989 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11990 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11991 from non-ARM_ prefixed definitions.
11992 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11994 * remote-rdi.c remote-rdp.c: Likewise.
11995 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11997 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11999 * arm-tdep.c (arm_frameless_function_invocation)
12000 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12001 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12002 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12003 (arm_pop_frame, arm_get_next_pc): Make static.
12004 (arm_gdbarch_init): Register above in gdbarch structure.
12005 (arm_read_fp): Renamed from arm_target_read_fp.
12006 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12007 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12008 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12009 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12010 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12011 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12012 (arm_pc_is_thumb_dummy): Delete declarations.
12013 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12014 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12015 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12016 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12018 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12020 * symtab.c (compare_search_syms): New function.
12021 (sort_search_symbols): New function.
12022 (search_symbols): Sort symbols after searching rather than
12025 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12027 * NEWS: Linux -> GNU/Linux.
12029 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12031 * gdbarch.sh: For for level one methods, disallow a definition
12032 when partially multi-arched. Add comments explaining rationale.
12033 * gdbarch.h: Re-generate.
12035 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12037 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12038 multi-arch partial.
12040 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12042 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12043 field. Use diff -u.
12044 * gdbarch.c: Re-generate.
12046 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12048 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12049 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12052 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12054 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12055 multi-arch partial.
12056 (PUSH_ARGUMENTS): Switch to using predefault.
12057 * gdbarch.c: Regenerate.
12059 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12061 * valops.c (PUSH_ARGUMENTS): Delete definition.
12062 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12063 partial. Default to default_push_arguments.
12064 * gdbarch.h, gdbarch.c: Regenerate.
12066 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12068 * defs.h (throw_exception): Rename return_to_top_level. Update
12070 * utils.c (error_stream, internal_verror, quit): Ditto.
12071 * top.c (throw_exception, catcher): Ditto.
12072 * sparclet-rom.c (sparclet_load): Ditto.
12073 * remote.c (interrupt_query, minitelnet): Ditto.
12074 * remote-sds.c (interrupt_query): Ditto.
12075 * remote-mips.c (mips_error, mips_kill): Ditto.
12076 * ocd.c (interrupt_query): Ditto.
12077 * monitor.c (monitor_interrupt_query): Ditto.
12078 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12079 * target.h: Update comment.
12081 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12083 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12085 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12086 default_double_format.
12087 * gdbarch.h, gdbarch.c: Re-generate.
12088 * findvar.c (floatformat_unknown): Delete variable definition.
12089 * doublest.h (floatformat_unknown): Delete variable declaration.
12091 2002-02-09 Jim Blandy <jimb@redhat.com>
12093 * stabsread.c (read_type): Add code to parse Sun's syntax for
12094 prototyped function types.
12096 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12098 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12099 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12101 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12103 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12104 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12105 now _initialize_xcoffsolib gets called again and overrides the
12106 commands from solib.c in a native configuration.
12108 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12110 * doublest.c (store_typed_floating): Don't try to return a value.
12113 2002-02-08 Jim Blandy <jimb@redhat.com>
12115 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12116 is prototyped and has no arguments, print its argument list as
12119 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12121 * MAINTAINERS (write-after-approval): Add myself.
12122 (paper-trail): I've escaped!
12124 2002-02-08 Christopher Faylor <cgf@redhat.com>
12126 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12128 (_initialize_check_for_gdb_ini): Ditto.
12130 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12132 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12133 xaprintf -> xasprintf.
12135 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12137 * win32-nat.c: Remove use of printf and sprintf functions.
12139 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12141 * arm-tdep.c (arm_frame_chain_valid): Make static.
12142 (arm_push_arguments): Likewise.
12143 (arm_gdbarch_init): New function.
12144 (_initialize_arm_tdep): Call it.
12145 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12146 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12147 (FRAME_CHAIN_VALID): Delete.
12148 (arm_frame_chain_valid): Delete declaration.
12149 (PUSH_ARGUMENTS): Delete.
12150 (arm_push_arguments): Delete declaration.
12151 (CALL_DUMMY_P): Delete.
12153 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12154 Corinna Vinschen <vinschen@redhat.com>
12156 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12157 on builtin float types.
12159 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12161 * utils.c: Include <curses.h> before "bfd.h".
12162 * tui/tui-hooks.c: Likewise.
12163 * tui/tui.c: Likewise.
12164 * tui/tuiCommand.c: Likewise.
12165 * tui/tuiData.c: Likewise.
12166 * tui/tuiDataWin.c: Likewise.
12167 * tui/tuiDisassem.c: Likewise.
12168 * tui/tuiGeneralWin.c: Likewise.
12169 * tui/tuiIO.c: Likewise.
12170 * tui/tuiLayout.c: Likewise.
12171 * tui/tuiRegs.c: Likewise.
12172 * tui/tuiSource.c: Likewise.
12173 * tui/tuiSourceWin.c: Likewise.
12174 * tui/tuiStack.c: Likewise.
12175 * tui/tuiWin.c: Likewise.
12177 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12179 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12180 to include space for pseudoregs as well. Update loops accordingly.
12181 (sh_fp_frame_init_saved_regs): Ditto.
12182 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12184 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12186 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12187 Add Richard Earnshaw to Arm maintainers.
12189 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12191 * defs.h (warning_begin): Delete declaration.
12193 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12196 2002-02-07 Michael Snyder <msnyder@redhat.com>
12198 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12199 Logic bug, remove misplaced else.
12201 2002-02-07 Klee Dienes <klee@apple.com>
12203 * fork-inferior.c (fork_inferior): Add '!' to the list of
12204 characters that need to be quoted when building a string for the
12205 shell. Quote '!' specifically with a backslash, since CSH chokes
12206 when trying to evaluate "str!str".
12208 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12210 * rdi-share/host.h: Only provide a typedef for bool if it is not
12213 2002-02-04 Michael Snyder <msnyder@redhat.com>
12215 * breakpoint.h (enum bptype): Add new overlay event bp type.
12216 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12218 * breakpoint.c (create_internal_breakpoint): New function.
12219 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12220 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12221 (create_thread_event_breakpoint): Ditto.
12222 (create_solib_event_breakpoint): Ditto.
12223 (create_overlay_event_breakpoint): New function.
12224 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12225 (update_breakpoints_after_exec): Delete and re-initialize
12226 overlay event breakpoints after an exec. Add FIXME comment
12227 about longjmp breakpoint.
12228 (print_it_typical): Ignore overlay event breakpoints.
12229 (print_one_breakpoint): Ditto.
12231 (bpstat_what): Do not stop for overlay event breakpoints.
12232 (delete_breakpoint): Don't delete overlay event breakpoints.
12233 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12234 (breakpoint_re_set): Re-create overlay event breakpoint.
12236 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12237 (overlay_manual_command): Disable overlay breakpoints.
12238 (overlay_off_command): Disable overlay breakpoints.
12240 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12242 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12243 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12244 to here from config/tm-arm.h.
12245 (coff_sym_is_thumb): Make static.
12246 (arm_elf_make_msymbol_special): New function.
12247 (arm_coff_make_msymbol_special): New function.
12248 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12249 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12250 (coff_sym_is_thumb): Delete declaration.
12251 (arm_elf_make_msymbol_special): Declare.
12252 (arm_coff_make_msymbol_special): Declare.
12253 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12254 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12256 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12258 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12260 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12262 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12263 * gdbarch.c gdbarch.h: Regenerate.
12264 * arch-utils.c (default_print_float_info): New function.
12265 * arch-utils.h (default_print_float_info): Prototype it.
12266 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12267 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12268 (PRINT_FLOAT_INFO): Document it.
12270 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12271 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12272 (PRINT_FLOAT_INFO): Define.
12274 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12276 * win32-nat.c (_initialize_check_for_gdb_ini):
12277 Add typecast to sprintf argument to suppress a warning.
12279 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12281 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12282 to allow easier handling of pass state.
12283 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12284 that gives exception name and address.
12285 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12286 and set last_sig value to ourstatus->value.sig. Some missing
12288 (child_continue): Correctly report continue_status.
12289 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12290 TARGET_SIGNAL_0 (new default value).
12291 (child_resume): consider sig argument passed to decide if
12292 the exception should be passed to debuggee or not.
12294 2002-02-05 Michael Snyder <msnyder@redhat.com>
12296 * regcache.c (fetch_register): Call target_fetch_register
12297 only if we don't call FETCH_PSEUDO_REGISTER.
12298 (store_register): Call target_store_register only if we
12299 don't call STORE_PSEUDO_REGISTER.
12301 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12303 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12304 ELF_MAKE_MSYMBOL_SPECIAL.
12305 * gdbarch.c, gdbarch.h: Regenerate.
12306 * arch-utils.c (default_make_msymbol_special): New function.
12307 * arch-utils.h (default_make_msymbol_special): Export.
12308 * elfread.c (elf_symtab_read): Compile use of
12309 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12311 * coffread.c (coff_symtab_read): Ditto, for
12312 COFF_MAKE_MSYMBOL_SPECIAL.
12314 2002-02-05 Jim Blandy <jimb@redhat.com>
12316 * solib-svr4.c (svr4_truncate_ptr): New function.
12317 (svr4_relocate_section_addresses): Do the address arithmetic with
12318 the appropriate truncation for target addresses, even when
12319 CORE_ADDR is larger than a target address.
12321 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12323 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12326 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12328 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12331 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12333 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12335 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12337 * gdbserver/linux-low.c: Remove unused include files.
12339 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12341 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12342 (read_inferior_memory): Use it.
12343 (write_inferior_memory): Likewise.
12345 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12347 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12348 grubbing through sys_errlist.
12350 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12352 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12354 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12355 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12357 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12359 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12360 (do_sfunc, set_cmd_sfunc): New functions.
12362 * command.h (struct cmd_list_element): Add field func.
12363 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12364 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12365 * cli/cli-decode.h: Ditto.
12367 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12368 (help_all, help_cmd_list): Ditto.
12369 (find_cmd, complete_on_cmdlist): Ditto.
12370 * top.c (execute_command): Ditto.
12372 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12375 * infcmd.c (notice_args_read): Fix function signature.
12377 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12378 * cli/cli-decode.c (add_set_cmd): Ditto.
12379 * utils.c (initialize_utils): Ditto.
12380 * maint.c (_initialize_maint_cmds): Ditto.
12381 * infrun.c (_initialize_infrun): Ditto.
12382 * demangle.c (_initialize_demangler): Ditto.
12383 * remote.c (add_packet_config_cmd): Ditto.
12384 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12385 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12386 * proc-api.c (_initialize_proc_api): Ditto.
12387 * kod.c (_initialize_kod): Ditto.
12388 * valprint.c (_initialize_valprint): Ditto.
12389 * top.c (init_main): Ditto.
12390 * infcmd.c (_initialize_infcmd): Ditto.
12391 * corefile.c (_initialize_core): Ditto.
12392 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12393 * arch-utils.c (initialize_current_architecture): Ditto.
12394 (_initialize_gdbarch_utils): Ditto.
12395 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12397 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12398 * wince.c (_initialize_inftarg): Ditto.
12399 * symfile.c (_initialize_symfile): Ditto.
12400 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12401 * language.c (_initialize_language): Ditto.
12402 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12404 2002-02-04 Michael Snyder <msnyder@redhat.com>
12406 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12408 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12410 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12411 Add rules for building the register data files.
12413 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12415 * regformats/regdat.sh: Add braces to the definition of
12416 expedite_regs_${arch}.
12418 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12420 * regformats/regdef.h (struct reg): Add comment describing the
12421 requirements for offset and size fields.
12423 2002-02-04 Andreas Schwab <schwab@suse.de>
12425 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12426 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12428 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12430 * gdbarch.sh (copyright): Update years in generated header.
12431 (SMASH_TEXT_ADDRESS): Add rule.
12432 * gdbarch.h, gdbarch.c: Re-generate.
12433 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12434 * dbxread.c: Likewise.
12435 * dwarfread.c: Likewise.
12436 * elfread.c: Likewise.
12437 * somread.c: Likewise.
12439 * arm-tdep.c (arm_smash_text_address): New function.
12440 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12442 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12444 Add support for hardware watchpoints on win32 native.
12445 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12446 CONTEXT_DEBUG_REGISTERS.
12447 (dr variable): New variable. Static array containing a local copy
12448 of debug registers.
12449 (debug_registers_changed): New variable. Reflects when debug registers
12450 are changed and need to be written to inferior.
12451 (debug_registers_used): New variable. Reflects when any debug register
12452 was set, used when new threads are created.
12453 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12455 (thread_rec): Set dr array if id is the thread of current_event .
12456 (child_continue, child_resume): Change the debug registers for all
12457 threads if debug_registers_changed.
12458 (child_add_thread): Change the debug registers if debug_registers_used.
12459 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12460 Link nm.h to new nm-cygwin.h file.
12461 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12462 of hardware registers.
12464 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12466 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12467 Restore behavour broken by 2002-01-20 Andrew Cagney
12468 <ac131313@redhat.com> IEEE_FLOAT removal.
12470 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12472 * c-valprint.c (c_val_print): Pass a proper valaddr to
12473 cp_print_class_method.
12474 * valops.c (search_struct_method): If there is only one method
12475 and args is NULL, return that method.
12477 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12479 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12480 accessing tag_name directly.
12482 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12484 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12485 of accessing tag_name directly.
12487 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12490 * gdbtypes.c (replace_type): New function.
12491 * gdbtypes.h (replace_type): Add prototype.
12492 * stabsread.c (read_type): Use replace_type.
12494 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12496 * Makefile.in (memattr.o): Add missing dependencies rule.
12498 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12500 * breakpoint.c (break_at_finish_command): Really export.
12501 (break_at_finish_at_depth_command): Ditto.
12502 (tbreak_at_finish_command): Ditto.
12503 * hppa-tdep.c: Include completer.h.
12504 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12505 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12507 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12509 * utils.c (do_write): New function.
12510 (error_stream): Rewrite combining the code from error_begin and
12512 (verror): Rewrite using error_stream.
12513 (error_begin): Delete function.
12515 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12517 * utils.c (error_begin): Make static.
12518 * defs.h (error_begin): Delete declaration.
12520 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12521 (decode_line_1): Use cplusplus_error instead of error_begin,
12522 cplusplus_hint and return_to_top_level.
12523 * coffread.c (coff_symfile_read): Use error instead of error_begin
12524 and return_to_top_level.
12525 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12527 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12529 * language.h (type_error, range_error): Make string parameter
12531 * language.c (warning_pre_print): Delete extern declaration.
12532 * dwarfread.c (warning_pre_print): Ditto.
12533 * language.c (type_error, range_error): Rewrite to use verror and
12534 vwarning instead of warning_begin.
12536 2002-02-01 Michael Snyder <msnyder@redhat.com>
12538 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12539 (set_ignore_count): Move misplaced comment back where it belongs.
12541 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12543 * command.h (NO_FUNCTION): Delete macro.
12544 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12545 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12546 * tracepoint.c (_initialize_tracepoint): Ditto.
12547 * cli/cli-decode.c (add_set_cmd): Ditto.
12548 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12550 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12552 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12553 Update ``this'' pointer when calling virtual functions.
12555 2002-02-01 Michael Snyder <msnyder@redhat.com>
12557 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12558 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12560 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12562 * regformats/reg-arm.dat: New file.
12563 * regformats/reg-i386.dat: New file.
12564 * regformats/reg-ia64.dat: New file.
12565 * regformats/reg-m68k.dat: New file.
12566 * regformats/reg-mips.dat: New file.
12567 * regformats/reg-ppc.dat: New file.
12568 * regformats/reg-sh.dat: New file.
12569 * regformats/regdef.h: New file.
12570 * regformats/regdat.sh: New file.
12572 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12574 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12575 (arm_frame_args_address, arm_frame_locals_address): New functions.
12576 (arm_frame_num_args): New function.
12577 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12578 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12579 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12581 2002-01-31 Michael Snyder <msnyder@redhat.com>
12583 * breakpoint.c (break_at_finish_command): Export.
12584 (break_at_finish_at_depth_command): Export.
12585 (tbreak_at_finish_command): Export.
12586 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12587 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12588 "txbreak" commands, which are HPPA specific.
12590 * printcmd.c (disassemble_command): Remove an ancient
12591 artifact of an old merge.
12593 * symfile.h (enum overlay_debugging_state):
12594 Define enum constant values for overlay mode.
12595 * symfile.c (overlay_debugging): Use enums instead of literals.
12596 (overlay_is_mapped, overlay_auto_command,
12597 overlay_manual_command): Ditto.
12599 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12600 breakpoint_here_p, breakpoint_inserted_here_p,
12601 breakpoint_thread_match, bpstat_stop_status,
12602 describe_other_breakpoints, check_duplicates, clear_command):
12603 Coding standard fixes.
12605 * target.c (target_xfer_memory): Add spaces, coding standard.
12606 (do_xfer_memory): Add missing line to trust-readonly
12607 code: check bfd SEC_READONLY flag for section.
12609 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12611 * PROBLEMS: Fix typo, 5.1->5.1.1.
12613 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12615 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12616 data symbols, since we search based on textlow and texthigh.
12617 (find_pc_sect_symtab): Likewise.
12619 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12621 * defs.h (vwarning): Declare.
12622 * utils.c (vwarning): New function.
12623 (warning): Call vwarning.
12624 (warning_begin): Delete function.
12626 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12627 the warning message.
12628 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12631 2002-01-30 Michael Snyder <msnyder@redhat.com>
12633 * NEWS: Mention "set trust-readonly-sections" command.
12634 Mention generate-core-file command.
12636 2002-01-15 Michael Snyder <msnyder@redhat.com>
12638 * target.c: New command, "set trust-readonly-sections on".
12639 (do_xfer_memory): Honor the suggestion to trust readonly sections
12640 by reading them from the object file instead of from the target.
12641 (initialize_targets): Register command "set trust-readonly-sections".
12643 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12645 * parse.c (target_map_name_to_register): Simplify, search regs and
12646 pseudo-regs using a single loop.
12648 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12650 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12652 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12654 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12655 * config/i386/i386v42mp.mh: Add i387-nat.o .
12656 * i386v4-nat.c: Include i387-nat.h.
12657 (supply_fpregset): Use i387_supply_fsave.
12658 (fill_fpregset): Use i387_fill_fsave.
12660 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12662 * arm-tdep.c (arm_call_dummy_words): Define.
12663 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12664 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12665 (CALL_DUMMY_WORDS): Define.
12666 (arm_call_dummy_words): Declare.
12667 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12668 (arm_linux_call_dummy_words): Declare.
12670 2002-01-30 Andreas Schwab <schwab@suse.de>
12672 * m68klinux-nat.c: Fix last change to use regcache_collect
12673 instead of referencing registers[] directly.
12675 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12677 * parse.c (target_map_name_to_register): Delete code wrapped in
12678 #ifdef REGISTER_NAME_ALIAS_HOOK.
12680 2002-01-28 Michael Snyder <msnyder@redhat.com>
12682 * regcache.c (legacy_read_register_gen): Need to be able to
12683 read pseudo-register as well as real register.
12684 (legacy_write_register_gen): Ditto.
12686 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12688 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12689 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12690 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12691 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12692 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12693 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12694 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12695 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12696 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12697 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12698 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12699 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12700 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12701 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12702 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12703 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12704 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12705 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12706 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12707 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12709 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12711 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12712 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12713 (initialize_current_architecture): Update target_byte_order using
12714 information from BFD.
12715 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12716 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12718 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12720 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12721 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12723 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12724 #ifdef INVALID_FLOAT.
12725 * infcmd.c (do_registers_info): Ditto.
12726 * values.c (unpack_double): Ditto. Add comment.
12728 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12729 already commented out.
12731 2002-01-26 Andreas Schwab <schwab@suse.de>
12733 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12734 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12735 registers and add support for PTRACE_GETREGS.
12737 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12739 GDB 5.1.1 released from 5.1 branch.
12740 * NEWS: Add 5.1.1 news.
12741 * README: Sync with 5.1 branch.
12743 2002-01-23 Fred Fish <fnf@redhat.com>
12745 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12746 stabstring on initial malloc. Reallocing will copy it for us,
12749 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12751 * Makefile.in (hpread_h): Delete.
12752 (HFILES_NO_SRCDIR): Remove hpread.h.
12753 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12754 (hpread.o): Update dependencies.
12755 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12757 * hp-psymtab-read.c: Remove file.
12758 * hp-symtab-read.c: Remove file.
12759 * hpread.h: Remove file.
12761 * hpread.c: Merge all contents of hp-psymtab-read.c,
12762 hp-symtab-read.c and hpread.h into this file, as it was prior to
12765 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12766 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12767 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12768 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12770 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12772 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12773 fill_gregset): Call gdbarch_tdep() just once, assign result to
12774 variable and use that, instead of calling the function several
12777 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12779 * configure.host: Accept sparcv9 as alias for sparc64.
12780 * configure.tgt: Likewise.
12782 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12784 * solib-aix5.c (build_so_list_from_mapfile)
12785 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12786 arguments is not reversed.
12787 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12788 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12790 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12792 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12793 modified version of obsolete sh_fetch_pseudo_register.
12794 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12795 (sh4_register_read): New function.
12796 (sh_pseudo_register_write): New function. Renamed and modified
12797 version of obsolete sh_store_pseudo_register.
12798 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12799 (sh4_register_write): New function.
12800 (sh_gdbarch_init): Remove setting of gdbarch function
12801 fetch_pseudo_register and store_pseudo_register. Remove setting of
12802 register_convert_to_raw, register_convert_to_virtual,
12803 register_convertible.
12804 (sh_sh4_register_convertible): Delete. No longer needed. All is
12805 taken care by architecture specific functions
12806 register_read/register_write.
12807 (sh_sh4_register_convert_to_virtual): Make static.
12808 (sh_sh4_register_convert_to_raw): Ditto.
12810 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12812 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12813 (floatformat_is_nan, floatformat_mantissa): Ditto.
12815 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12816 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12817 builtin_type_ieee_double_little,
12818 builtin_type_ieee_double_littlebyte_bigword,
12819 builtin_type_m68881_ext, builtin_type_i960_ext,
12820 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12821 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12822 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12823 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12825 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12827 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12828 parameter. Set frameless flag if it exists and depended of
12829 whether the scanned function is frameless or not.
12830 (xstormy16_skip_prologue): If function is frameless, return
12831 result of xstormy16_scan_prologue().
12832 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12835 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12837 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12838 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12839 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12840 sh_sh4_register_byte, sh_sh4_register_raw_size,
12841 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12842 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12843 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12844 sh_store_pseudo_register, sh_do_pseudo_register): Call
12845 gdbarch_tdep() just once, assign result to variable and use that,
12846 instead of calling the function several times.
12848 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12850 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12851 macros instead of LAST_FPU_CTRL_REGNUM.
12852 (store_register): Likewise.
12854 2002-01-21 Jim Blandy <jimb@redhat.com>
12856 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12857 is up-to-date before running the program, not just when a program
12860 2002-01-21 Fred Fish <fnf@redhat.com>
12862 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12863 when we have found all instructions we are looking for.
12865 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12867 * arm-tdep.c (arm_register_name): New function.
12868 (arm_registers_names): Make static.
12869 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12870 (arm_register_name): Declare.
12871 (REGISTER_NAME): Use it.
12873 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12874 Kevin Buettner <kevinb@redhat.com>
12876 Convert arm targets to new FRAME interface.
12877 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12878 (arm_frame_find_save_regs): Delete.
12879 (arm_frame_init_saved_regs): New.
12880 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12881 Allocate extra_info as required. Convert all uses of fsr.regs
12882 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12884 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12885 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12886 (check_prologue_cache, save_prologue_cache): Likewise.
12887 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12888 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12889 (FRAME_FIND_SAVED_REGS): Delete.
12890 (arm_frame_find_saved_regs): Delete prototype.
12891 (arm_frame_init_saved_regs): New prototype.
12892 (FRAME_INIT_SAVED_REGS): Define.
12894 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12896 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12898 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12900 From Jeff Law <law@redhat.com>:
12901 * infttrace.c: Include <sys/pstat.h>.
12902 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12903 exec file if the ttrace equivalent fails.
12905 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12907 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12908 (closeLogFile): Ditto.
12910 2002-01-20 Michael Chastain <mec@shout.net>
12912 * top.c (print_gdb_version): Bump copyright year to 2002.
12914 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12916 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12917 Zannoni and Eli Zaretskii.
12919 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12921 * buildsym.c: Update copyright years.
12922 * c-typeprint.c: Likewise.
12923 * dwarf2read.c: Likewise.
12924 * f-typeprint.c: Likewise.
12925 * gdbtypes.c: Likewise.
12926 * gdbtypes.h: Likewise.
12927 * hp-symtab-read.c: Likewise.
12928 * hpread.c: Likewise.
12929 * mdebugread.c: Likewise.
12930 * p-typeprint.c: Likewise.
12932 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12934 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12935 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12936 byte-order selectable.
12937 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12938 * arch-utils.c: Ditto.
12939 (set_endian): Ditto.
12940 (set_endian_from_file): Ditto.
12941 * gdbserver/low-sim.c (create_inferior): Ditto.
12942 * gdbarch.sh: Ditto.
12943 * gdbarch.h: Re-generate.
12944 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12945 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12946 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12947 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12948 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12949 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12950 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12951 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12953 * config/mips/tm-wince.h: Remove #undef of macro
12954 TARGET_BYTE_ORDER_SELECTABLE.
12955 * config/sh/tm-wince.h: Ditto.
12957 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12959 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12960 member function fields. Add accessor macro
12961 TYPE_FN_FIELD_ARTIFICIAL.
12962 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12963 * c-typeprint.c (c_type_print_base): Skip artificial member
12966 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12968 * f-typeprint.c: Delete unused function f_type_print_args.
12969 * p-typeprint.c: Delete unused function pascal_type_print_args.
12971 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12973 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12974 comment. Add ``artificial'' to ``union field_location''.
12976 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12978 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12979 * mdebugread.c (parse_symbol): Likewise.
12980 * stabsread.c (define_symbol): Likewise.
12981 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12982 initializing TYPE_FIELD_BITPOS to n (obsolete).
12983 (hpread_doc_function_type): Likewise.
12984 * hpread.c (hpread_function_type): Likewise.
12986 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12988 * configure.in (host_makefile_frag): Only require a host makefile
12989 fragment when a native build.
12990 * configure: Re-generate.
12992 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12994 * doublest.h (floatformat_from_type): Declare.
12995 * doublest.c (floatformat_from_type): New function.
12996 (convert_typed_floating): Use.
12998 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12999 call to function floatformat_from_type.
13001 * gdbarch.sh (IEEE_FLOAT): Delete.
13002 * gdbarch.h, gdbarch.c: Re-generate.
13003 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13004 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13005 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13006 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13007 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13008 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13009 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13010 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13011 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13012 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13013 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13014 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13016 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13017 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13018 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13019 * sh-tdep.c (sh_gdbarch_init): Ditto.
13020 * mips-tdep.c (mips_gdbarch_init): Ditto.
13021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13022 * cris-tdep.c (cris_gdbarch_init): Ditto.
13024 2002-01-20 Jiri Smid <smid@suse.cz>
13026 * configure.host, configure.tgt: Support x86-64.
13027 * NEWS: Note new target x86-64.
13029 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13030 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13031 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13032 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13033 x86-64-linux-nat.o): Fix dependencies.
13035 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13037 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13038 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13039 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13040 * config/sparc/xm-sun4os4.h: Delete file.
13041 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13043 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13045 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13046 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13047 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13048 * config/i386/i386lynx.mh (XM_FILE): Delete.
13049 * config/rs6000/xm-rs6000ly.h: Delete file.
13050 * config/sparc/xm-sparclynx.h: Delete file.
13051 * config/m68k/xm-m68klynx.h: Delete file.
13052 * config/i386/xm-i386lynx.h: Delete file.
13053 * config/xm-lynx.h: Delete file.
13054 * config/djgpp/fnchange.lst: Update.
13056 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13058 * alpha-tdep.c (alpha_register_byte): New function.
13059 (alpha_register_raw_size): Ditto.
13060 (alpha_register_virtual_size): Ditto.
13061 (alpha_skip_prologue_internal): Renamed from
13062 alpha_skip_prologue.
13063 (alpha_skip_prologue): New version that calls
13064 alpha_skip_prologue_internal.
13065 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13066 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13067 second argument from alpha_skip_prologue.
13068 (REGISTER_BYTE): Use alpha_register_byte.
13069 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13070 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13071 (FRAMELESS_FUNCTION_INVOCATION): Use
13072 generic_frameless_function_invocation_not.
13073 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13074 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13076 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13078 * config/mips/xm-news-mips.h: Delete file.
13079 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13081 * config/m88k/xm-m88k.h: Delete file.
13082 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13083 * config/m88k/xm-delta88v4.h: Ditto.
13084 * config/m88k/xm-delta88.h: Ditto.
13086 * config/alpha/xm-fbsd.h: Delete file.
13087 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13089 * config/sparc/xm-sparc.h: Delete file.
13090 * Makefile.in (xm-sun4os4.h): Delete dependency.
13091 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13092 * config/sparc/xm-sun4os4.h: Ditto.
13093 * config/sparc/xm-linux.h: Ditto.
13095 * config/i386/xm-windows.h: Delete file.
13097 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13099 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13100 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13102 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13104 * alpha-tdep.c (alpha_call_dummy_words): New.
13105 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13106 (CALL_DUMMY_P): Define.
13107 (CALL_DUMMY_WORDS): Define.
13108 (SIZEOF_CALL_DUMMY_WORDS): Define.
13110 2002-01-19 Per Bothner <per@bothner.com>
13112 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13113 isn't NULL, which can happen with some gcj-3.x-produced code.
13115 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13117 * alpha-tdep.c (alpha_register_virtual_type): New function.
13118 (alpha_init_frame_pc_first): Ditto.
13119 (alpha_fix_call_dummy): Ditto.
13120 (alpha_store_struct_return): Ditto.
13121 (alpha_extract_struct_value_address): Ditto.
13122 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13123 alpha_register_virtual_type.
13124 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13125 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13126 alpha_extract_struct_value_address.
13127 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13128 (INIT_FRAME_PC): Use init_frame_pc_noop.
13129 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13131 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13133 * i386gnu-nat.c: Include "i386-tdep.h".
13134 (fetch_fpregs): Simplify code dealing with uninitialized floating
13135 point states such that it doesn't require FP7_REGNUM.
13137 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13139 * alpha-tdep.c (frame_extra_info): New.
13140 (alpha_find_saved_regs): Make static. Use
13142 (alpha_frame_init_saved_regs): New function.
13143 (alpha_frame_saved_pc): Use frame->extra_info.
13144 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13145 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13146 (init_extra_frame_info): Rename to...
13147 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13148 (alpha_print_extra_frame_info): New function.
13149 (alpha_frame_locals_address): Ditto.
13150 (alpha_frame_args_address): Ditto.
13151 (alpha_pop_frame): Use frame->extra_info.
13152 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13153 alpha_frame_args_address.
13154 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13155 (alpha_find_saved_regs): Remove prototype.
13156 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13157 (EXTRA_FRAME_INFO): Remove.
13158 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13159 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13161 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13163 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13164 (alpha_cannot_fetch_register): Ditto.
13165 (alpha_cannot_store_register): Ditto.
13166 (alpha_register_convertible): Ditto.
13167 (alpha_use_struct_convention): Ditto.
13168 * config/alpha/tm-alpha.h: Update copyright years.
13169 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13170 (INNER_THAN): Use core_addr_lessthan.
13171 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13172 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13173 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13174 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13175 (FRAME_CHAIN): Remove unnecessary cast.
13177 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13179 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13182 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13184 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13185 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13186 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13187 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13188 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13189 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13190 * x86-64-linux-nat.c: Ditto.
13192 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13194 * alpha-tdep.c (alpha_register_name): New function.
13195 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13196 (REGISTER_NAME): Define.
13198 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13200 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13202 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13204 * alpha-tdep.c: Update copyright years.
13205 (alpha_next_pc): New function.
13206 (alpha_software_single_step): Ditto.
13207 * config/alpha/tm-alpha.h: Add prototype for
13208 alpha_software_single_step.
13210 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13212 * alphabsd-nat.c: Update copyright years.
13213 (fill_gregset): Use regcache_collect.
13214 (fill_fpregset): Likewise.
13215 (fetch_inferior_registers): Only fetch integer registers
13216 if requested to do so.
13217 (store_inferior_registers): Only store integer registers
13218 if requested to do so.
13220 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13222 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13223 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13224 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13225 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13226 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13227 * config/arm/linux.mh (XDEPFILES): Delete.
13228 * config/arm/nbsd.mh (XDEPFILES): Delete.
13229 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13230 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13231 * config/i386/i386m3.mh (XDEPFILES): Delete.
13232 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13233 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13234 * config/i386/fbsd.mh (XDEPFILES): Delete.
13235 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13236 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13237 * config/i386/i386v4.mh (XDEPFILES): Delete.
13238 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13239 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13240 * config/i386/i386aix.mh (XDEPFILES): Delete.
13241 * config/i386/go32.mh (XDEPFILES): Delete.
13242 * config/i386/cygwin.mh (XDEPFILES): Delete.
13243 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13244 * config/i386/i386mach.mh (XDEPFILES): Delete.
13245 * config/i386/i386v32.mh (XDEPFILES): Delete.
13246 * config/i386/linux.mh (XDEPFILES): Delete.
13247 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13248 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13249 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13250 * config/i386/i386sco.mh (XDEPFILES): Delete.
13251 * config/i386/i386v.mh (XDEPFILES): Delete.
13252 * config/i386/nbsd.mh (XDEPFILES): Delete.
13253 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13254 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13255 * config/i386/symmetry.mh (XDEPFILES): Delete.
13256 * config/i386/obsd.mh (XDEPFILES): Delete.
13257 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13258 * config/ia64/linux.mh (XDEPFILES): Delete.
13259 * config/ia64/aix.mh (XDEPFILES): Delete.
13260 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13261 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13262 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13263 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13264 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13265 * config/m68k/linux.mh (XDEPFILES): Delete.
13266 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13267 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13268 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13269 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13270 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13271 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13272 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13273 * config/m88k/delta88.mh (XDEPFILES): Delete.
13274 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13275 * config/m88k/m88k.mh (XDEPFILES): Delete.
13276 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13277 * config/mips/linux.mh (XDEPFILES): Delete.
13278 * config/mips/irix6.mh (XDEPFILES): Delete.
13279 * config/mips/irix5.mh (XDEPFILES): Delete.
13280 * config/mips/irix4.mh (XDEPFILES): Delete.
13281 * config/mips/irix3.mh (XDEPFILES): Delete.
13282 * config/mips/decstation.mh (XDEPFILES): Delete.
13283 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13284 (NATDEPFILES): Move core-aout.o to here.
13285 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13286 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13287 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13288 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13289 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13290 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13291 * config/pa/hpux11.mh (XDEPFILES): Delete.
13292 * config/powerpc/aix.mh (XDEPFILES): Delete.
13293 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13294 * config/powerpc/linux.mh (XDEPFILES): Delete.
13295 * config/romp/rtbsd.mh: Rename XDEPFILES.
13296 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13297 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13298 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13299 * config/s390/s390.mh (XDEPFILES): Delete.
13300 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13301 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13302 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13303 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13304 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13305 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13306 * config/sparc/linux.mh (XDEPFILES): Delete.
13307 * config/vax/vaxult.mh (XDEPFILES): Delete.
13308 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13309 * Makefile.in (DEPFILES): Remove XDEPFILES.
13311 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13313 * utils.c (internal_verror): Fix comments, default is yes not no.
13314 Update queries to match. Default to quit and dump core.
13316 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13318 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13320 * defs.h, event-top.c, gdbcmd.h: Ditto.
13321 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13322 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13323 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13324 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13325 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13326 * mi/mi-main.c:Ditto.
13328 * stack.c, symfile.c: Update copyright.
13330 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13332 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13333 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13334 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13335 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13337 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13339 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13340 * gdbserver/low-lynx.c (myattach): Likewise.
13341 * gdbserver/low-nbsd.c (myattach): Likewise.
13342 * gdbserver/low-sim.c (myattach): Likewise.
13343 * gdbserver/low-sparc.c (myattach): Likewise.
13344 * gdbserver/low-sun3.c (myattach): Likewise.
13346 * gdbserver/low-linux.c (myattach): New function.
13348 * gdbserver/server.c (attach_inferior): New function.
13349 (main): Handle "--attach".
13351 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13353 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13356 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13358 * c-typeprint.c (is_type_conversion_operator): Add additional
13359 check for non-conversion operators.
13361 2002-01-15 Michael Snyder <msnyder@redhat.com>
13363 * linux-proc.c: Add "info proc" command, a la procfs.c.
13364 (read_mapping): New function, abstract and re-use code.
13365 (linux_find_memory_regions): Use new func read_mapping.
13366 (linux_info_proc_cmd): New function, implement "info proc".
13367 (_initialize_linux_proc): Add new command "info proc".
13369 2002-01-15 Michael Snyder <msnyder@redhat.com>
13371 * symfile.c (generic_load): Use bfd_map_over_sections method
13372 instead of manipulating bfd structure members directly.
13373 (add_section_size_callback): New function, bfd sections callback
13374 used by generic_load.
13375 (load_sections_callback): New function, bfd sections callback
13376 used by generic_load.
13378 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13380 [Based on work by Jim Blandy]
13381 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13382 (builtin_type_vec128): Export.
13383 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13385 (builtin_type_vec128): New builtin type for 128 bit vector
13387 (build_gdbtypes): Initialize builtin_type_v16qi and
13388 builtin_type_v8hi. Create the vec128 register builtin type
13390 (build_builtin_type_vec128): New function.
13391 (_initialize_gdbtypes): Register builtin_type_v16qi and
13392 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13393 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13394 AltiVec register to new builtin type.
13396 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13398 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13401 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13403 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13404 CLEAN_UP_REGISTER_VALUE.
13405 * regcache.c (supply_register): Update only call.
13407 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13409 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13410 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13411 a29k-*-vxworks* targets as obsolete.
13413 2002-01-14 Michael Snyder <msnyder@redhat.com>
13415 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13416 until we can resolve portability issues.
13417 * gregset.h: Remove references to fpxregs.
13418 * gcore.c (gcore_command): Initialize note_sec to NULL.
13420 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13422 * signals.c (target_signal_to_name): Rewrite. Only use
13423 signals[].name when in bounds and non-NULL.
13425 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13427 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13428 * signals.c (target_signal_to_name): Verify that SIG is within the
13429 bounds of the signals array.
13431 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13433 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13435 2002-01-13 Keith Seitz <keiths@redhat.com>
13437 * stack.c (print_frame_info_base): Print the frame's pc
13438 only if when print_frame_info_listing_hook is not defined.
13440 2002-01-13 Keith Seitz <keiths@redhat.com>
13442 * varobj.c (varobj_set_value): Make sure that there were no
13443 errors evaluating the object before attempting to set its
13445 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13446 so this offset adjustment is no longer necessary.
13447 (create_child): Don't set the error flag if the child is
13448 a CPLUS_FAKE_CHILD.
13449 (value_of_child): If value_fetch_lazy fails, return NULL
13450 so that callers will be notified that an error occurred.
13451 (c_value_of_variable): Delay check of variable's validity
13452 until later. We actually want all structs and unions to have
13454 Do not return "???" for variables which could not be evaluated.
13455 This error condition must be returned to the caller so that it
13456 can get the error condition from gdb.
13457 (cplus_name_of_child): Adjust index for vptr before figuring
13458 out the name of the child.
13459 (cplus_value_of_child): If a child's (real) parent is not valid,
13460 don't even bother trying to give a value for it. Just return
13461 an error. Change all instances in this function.
13462 (cplus_type_of_child): If our parent is one of the "fake"
13463 parents, we need to get at the type of the real parent, and
13464 derive the child's true type using this information.
13466 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13468 From 2002-01-09 John Marshall <johnm@falch.net>:
13469 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13470 sources.redhat.com, and tweak some related URLs which had
13471 suffered from linkrot.
13473 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13476 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13477 structures passed in registers.
13479 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13481 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13482 white space which prevented compilation. Reported by DSK
13483 <dsk@student.unsw.edu.au>.
13485 2002-01-11 Michael Snyder <msnyder@redhat.com>
13487 * symfile.c (build_section_addr_info_from_section_tab):
13488 Use bfd access method instead of manipulating bfd directly.
13489 (syms_from_objfile): Ditto.
13490 (simple_overlay_update_1): Ditto.
13491 (simple_overlay_update): Ditto.
13492 (generic_load): Ditto.
13493 (overlay_unmapped_address): FIXME comment, bfd access methods.
13494 (sections_overlap): FIXME comment, bfd access methods.
13495 (pc_in_mapped_range): FIXME comment, bfd access methods.
13496 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13497 (section_is_mapped): FIXME comment, bfd access methods.
13498 (section_is_overlay): FIXME comment, bfd access methods.
13500 * symfile.c (generic_load): Whitespace and long line cleanups.
13501 Remove duplicate variable, change several local variables to
13502 more appropriate data types.
13503 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13505 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13507 From Peter Schauer:
13508 * language.c (longest_local_hex_string_custom): Use phex_nz to
13509 convert NUM to a hex string.
13511 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13513 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13515 Update Copyright year.
13517 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13519 * language.c (longest_raw_hex_string): Delete unused function.
13521 2002-01-11 Petr Sorfa <petrs@caldera.com>
13523 * MAINTAINERS (write-after-approval): Add myself.
13524 * dwarf2read.c (read_tag_string_type): Handling of
13526 (read_tag_string_type): FORTRAN fix to prevent propagation of
13528 (set_cu_language): Handling of DW_LANG_Fortran95
13530 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13532 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13533 GETPID(inferior_ptid).
13534 (store_inferior_registers): Likewise.
13536 2002-01-10 Jason Merrill <jason@redhat.com>
13538 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13541 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13543 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13544 and bfd/elf32-sh-nbsd.c.
13546 2002-01-10 Michael Snyder <msnyder@redhat.com>
13548 * NEWS: Mention --pid and corefile/proc-id behavior change.
13550 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13551 * gcore.c: Include cli/cli-decode.h instead of command.h.
13553 * main.c (captured_main): Add new command line option "--pid".
13554 If the second command line argument (following the symbol-file)
13555 begins with a digit, try to attach to it before trying to open
13557 (print_gdb_help): Document the "--pid" argument.
13559 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13561 * completer.c (command_completer): New function.
13563 * completer.h <command_completer>: Add prototype.
13565 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13566 completer for the "help" command.
13568 2002-01-09 Jason Merrill <jason@redhat.com>
13570 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13572 2002-01-09 Michael Snyder <msnyder@redhat.com>
13574 * i386-linux-nat.c (fill_fpxregset): Make global.
13575 (store_fpxregset): Ditto.
13577 * gregset.h (gdb_fpxregset_t): Define.
13578 (supply_fpxregset): Prototype.
13579 (fill_fpxregset): Prototype.
13581 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13583 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13585 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13586 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13587 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13589 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13591 * MAINTAINERS: Update target maintainer rules so that any
13592 Maintainer can approve a tested patch for a maintenance-only
13595 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13597 * MAINTAINERS (write-after-approval): Add myself.
13599 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13602 2002-01-08 Michael Snyder <msnyder@redhat.com>
13604 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13605 real name of the executable, rather than the /proc name.
13607 2002-01-03 Michael Snyder <msnyder@redhat.com>
13609 Implement a "generate-core-file" command in gdb, save target state.
13610 * gcore.c: New file. Implement new command 'generate-core-file'.
13611 Save a corefile image of the current state of the inferior.
13612 * linux-proc.c: Add linux-specific code for saving corefiles.
13613 * target.h (struct target_ops): Add new target vectors for saving
13614 corefiles; to_find_memory_regions and to_make_corefile_notes.
13615 (target_find_memory_regions): New macro.
13616 (target_make_corefile_notes): New macro.
13617 * target.c (update_current_target): Inherit new target methods.
13618 (dummy_find_memory_regions): New place-holder method.
13619 (dummy_make_corefile_notes): New place-holder method.
13620 (init_dummy_target): Initialize new dummy target vectors.
13621 * exec.c (exec_set_find_memory_regions): New function.
13622 Allow the exec_ops vector for memory regions to be taken over.
13623 (exec_make_note_section): New function, target vector method.
13624 * defs.h (exec_set_find_memory_regions): Export prototype.
13625 * procfs.c (proc_find_memory_regions): New function, corefile method.
13626 (procfs_make_note_section): New function, corefile method.
13627 (init_procfs_ops): Set new target vector pointers.
13628 (find_memory_regions_callback): New function.
13629 (procfs_do_thread_registers): New function.
13630 (procfs_corefile_thread_callback): New function.
13631 * sol-thread.c (sol_find_memory_regions): New function.
13632 (sol_make_note_section): New function.
13633 (init_sol_thread_ops): Initialize new target vectors.
13634 * inftarg.c (inftarg_set_find_memory_regions): New function.
13635 Allow to_find_memory_regions vector to be taken over.
13636 (inftarg_set_make_corefile_notes): New function.
13637 Allow to_make_corefile_notes vector to be taken over.
13638 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13639 interface layer if not target_has_execution (may be a corefile).
13640 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13641 * config/sparc/sun4sol2.mh: Ditto.
13642 * config/alpha/alpha-linux.mh: Ditto.
13643 * config/arm/linux.mh: Ditto.
13644 * config/i386/x86-64linux.mh: Ditto.
13645 * config/ia64/linux.mh: Ditto.
13646 * config/m68k/linux.mh: Ditto.
13647 * config/mips/linux.mh: Ditto.
13648 * config/powerpc/linux.mh: Ditto.
13649 * config/sparc/linux.mh: Ditto.
13651 2002-01-07 Michael Snyder <msnyder@redhat.com>
13653 * arm-linux-nat.c: Remove references to regcache.c internal data
13654 (registers[] and register_valid[]).
13656 2002-01-07 Michael Snyder <msnyder@redhat.com>
13658 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13659 so that attaching to a pid will automatically read the process's
13660 symbol file and shlibs.
13661 * Makefile.in: Add rule for linux-proc.o.
13662 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13663 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13664 * config/arm/linux.mh: Ditto.
13665 * config/i386/linux.mh: Ditto.
13666 * config/i386/x86-64linux.mh: Ditto.
13667 * config/ia64/linux.mh: Ditto.
13668 * config/m68k/linux.mh: Ditto.
13669 * config/mips/linux.mh: Ditto.
13670 * config/powerpc/linux.mh: Ditto.
13671 * config/sparc/linux.mh: Ditto.
13673 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13675 * win32-nat.c: Add i386-tdep.h dependency.
13677 2002-01-07 Michael Snyder <msnyder@redhat.com>
13679 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13680 instead of bfd_get_arch_size. Don't bail out just because
13681 there's no exec_bfd.
13683 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13684 * p-valprint.c (pascal_object_print_value): Ditto.
13685 * somread.c (som_symtab_read): Ditto.
13686 * symfile.c (simple_free_overlay_region_table): Ditto.
13687 * valops.c (value_assign): Ditto.
13689 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13690 use tilde_expand and strerror for opening save-tracepoints file.
13692 * thread-db.c (thread_db_new_objfile): Indendation fix.
13694 * infptrace.c (GDB_MAX_ALLOCA): New define.
13695 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13696 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13697 can be overridden with whatever value is appropriate to the host).
13698 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13699 alloca to allocate potentially large buffer.
13700 * rs6000-nat.c (child_xfer_memory): Ditto.
13701 * symm-nat.c (child_xfer_memory): Ditto.
13702 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13704 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13706 From Nick Clifton <nickc@redhat.com>
13707 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13709 2002-01-07 Michael Snyder <msnyder@redhat.com>
13711 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13712 Don't use exec_bfd if it's NULL.
13714 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13716 * valops.c (value_arg_coerce): Fix formatting.
13718 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13720 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13721 * gnu-nat.c: Ditto.
13723 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13725 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13726 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13727 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13728 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13729 z8k-coff have not been multi-arched. Update z8k-coff build
13732 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13734 * MAINTAINERS: Mark a29k target as obsolete.
13735 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13736 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13738 * NEWS: Note that a29k targets are obsolete.
13739 * a29k-tdep.c: Mark as obsolete.
13740 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13741 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13742 a29k-*-vxworks* targets as obsolete.
13743 * remote-adapt.c: Obsolete.
13744 * remote-eb.c: Obsolete.
13745 * remote-mm.c: Obsolete.
13746 * remote-udi.c: Obsolete.
13747 * config/a29k/a29k-udi.mt: Obsolete.
13748 * config/a29k/a29k.mt: Obsolete.
13749 * config/a29k/tm-a29k.h: Obsolete.
13750 * config/a29k/tm-vx29k.h: Obsolete.
13751 * config/a29k/vx29k.mt: Obsolete.
13753 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13755 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13756 with BFD_ENDIAN_BIG.
13758 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13760 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13761 * configure, config.in: Re-generate.
13762 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13763 * defs.h: Do not include <endian.h>.
13765 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13767 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13768 * config.in: Regenerate.
13769 * configure.in: Update copyright years.
13770 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13771 * configure: Regenerate.
13772 * i386bsd-nat.c: Update copyright years.
13773 (fill_gregset): Use regcache_collect.
13774 (fetch_inferior_registers): Only fetch integer registers
13775 if requested to do so. Add support for XMM registers
13776 using PT_GETXMMREGS.
13777 (store_inferior_registers): Only store integer registers
13778 if requested to do so. Add support for XMM registers
13779 using PT_SETXMMREGS.
13780 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13781 (store_inferior_registers): Remove.
13782 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13783 (fetch_elfcore_registers): New function.
13784 (i386nbsd_elfcore_fns): New.
13785 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13786 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13788 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13789 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13790 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13791 * config/i386/tm-nbsd.h: Update copyright years.
13792 (HAVE_SSE_REGS): Define.
13793 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13794 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13795 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13796 (SIGCONTEXT_PC_OFFSET): Remove.
13797 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13799 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13801 * configure.tgt: Remove powerpc-*-macos* target.
13802 * config/m68k/xm-mpw.h: Delete file.
13803 * config/xm-mpw.h: Delete file.
13804 * ser-mac.c: Delete file.
13805 * mpw-make.sed: Delete file.
13806 * mpw-config.in: Delete file.
13807 * mac-xdep.c: Delete file.
13808 * mac-gdb.r: Delete file.
13809 * mac-defs.h: Delete file.
13810 * mac-nat.c: Delete file.
13811 * config/powerpc/macos.mh: Delete file.
13812 * config/powerpc/macos.mt: Delete file.
13813 * config/powerpc/nm-macos.h: Delete file.
13814 * config/powerpc/tm-macos.h: Delete file.
13815 * source.c (openp, open_source_file): Remove obsolete code.
13816 * top.c (gdb_readline): Ditto.
13817 * utils.c (query): Ditto.
13818 * event-top.c (display_gdb_prompt): Ditto.
13819 * Makefile.in (ser-mac.o): Delete obsolete target.
13822 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13824 * defs.h (BIG_ENDIAN): Delete macro definition.
13825 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13826 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13827 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13828 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13829 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13830 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13831 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13832 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13833 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13834 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13835 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13836 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13837 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13838 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13839 * gdbarch.c: Re-generate.
13841 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13843 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13846 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13848 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13850 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13852 * value.h (value_ptr): Delete typedef.
13854 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13856 * i386nbsd-nat.c: Update copyright years.
13857 Include i386-tdep.h.
13859 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13861 * stabsread.c: Update copyright years.
13863 From Debashis Mahata <debashis.mahata@wipro.com>:
13864 (read_struct_fields): Deal with Sun C compiler erroneous stab
13865 output for structs and unions.
13868 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13870 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13873 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13875 * cp-abi.c: Fix whitespace.
13876 (baseclass_offset): New wrapper function.
13877 * cp-abi.h (baseclass_offset): Add prototype.
13878 (struct cp_abi_ops): Add baseclass_offset pointer.
13880 * valops.c (vb_match): Move to...
13881 * gnu-v2-abi.c (vb_match): here.
13882 * valops.c (baseclass_offset): Move to...
13883 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13885 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13887 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13888 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13889 * hpacc-abi.c (init_hpacc_ops): Likewise.
13891 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13893 * valops.c (find_overload_match): Accept obj as a
13894 reference parameter. Update it before returning.
13895 * value.h (find_overload_match): Update prototype.
13896 * eval.c (evaluate_subexp_standard): Pass object to
13897 find_overload_match by reference.
13899 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13901 * valarith.c: Replace value_ptr with struct value pointer. Remove
13902 register attribute from value declarations.
13905 * scm-lang.c (scm_lookup_name): Ditto.
13907 2002-01-03 Michael Snyder <msnyder@redhat.com>
13909 Abstract the functionality of iterating over mapped memory
13910 regions into a general purpose iterator function.
13911 * procfs.c (iterate_over_mappings): New function, general purpose
13912 iterator for memory sections.
13913 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13914 (solib_mappings_callback): New function, callback for above.
13915 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13916 (info_mappings_callback): New function, callback for above.
13918 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13920 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13922 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13923 * i386-tdep.c: Include "elf-bfd.h".
13924 (process_note_abi_tag_sections): New function.
13925 (i386_gdbarch_init): Add code to recognize various OS/ABI
13928 * maint.c (_initialize_maint_cmds): Add missing \ in
13931 For older changes see ChangeLog-2001
13937 version-control: never