1 2002-12-02 J. Brobecker <brobecker@gnat.com>
3 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
4 * osabi.c (gdb_osabi_name): Add strings images for the two new
6 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
8 2002-12-02 Andrew Cagney <ac131313@redhat.com>
10 * MAINTAINERS (Java): Global maintainers are responible for Java.
11 (Past Maintainers): Mention both Anthony Green and Per Bothner as
12 part Java maintainers.
14 2002-12-02 J. Brobecker <brobecker@gnat.com>
16 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
17 Fixes a compilation failure on AiX.
19 2002-12-02 J. Brobecker <brobecker@gnat.com>
21 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
22 why aix-thread.o is not listed.
24 2002-12-01 Andrew Cagney <ac131313@redhat.com>
26 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
27 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
28 * gdbarch.h, gdbarch.c: Re-generate.
29 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
30 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
31 * config/pa/tm-hppa.h, frame.h: Update.
32 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
33 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
34 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
35 * cris-tdep.c, alpha-tdep.c: Update.
36 * frame.c (set_unwind_by_pc, create_new_frame): Use either
37 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
38 (get_prev_frame): Ditto.
40 2002-11-30 Andrew Cagney <cagney@redhat.com>
42 * exec.c (xfer_memory): Replace boolean with int.
43 * p-exp.y: Use 0 instead of false.
44 * corelow.c (gdb_check_format): Change return type to int from
46 * utils.c: Don't include <curses.h> or <term.h> first.
48 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
50 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
51 (m68hc11_register_byte): Remove.
52 (m68hc11_gdbarch_init): Don't set the above.
54 2002-11-29 Andrew Cagney <cagney@redhat.com>
56 * remote-mips.c (mips_initialize): Force a selected frame rebuild
57 by calling get_selected_frame.
58 * ocd.c (ocd_start_remote): Use get_selected frame instead of
59 set_current_frame, create_new_frame, select_frame and
61 * remote-e7000.c (e7000_start_remote): Ditto.
62 * remote-mips.c (common_open): Ditto
63 * remote-rdp.c (remote_rdp_open): Ditto.
65 2002-11-29 Andreas Schwab <schwab@suse.de>
67 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
68 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
69 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
70 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
71 read_memory_unsigned_integer instead of read_memory_integer when
72 dealing with addresses and instruction opcodes.
73 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
74 (m68k_linux_frame_saved_pc): Likewise.
76 2002-11-29 Andrew Cagney <ac131313@redhat.com>
78 * stack.c (selected_frame, select_frame): Move from here ...
79 * frame.c (selected_frame, select_frame): ... to here. Include
81 * Makefile.in (frame.o): Update dependencies.
82 * frame.c (get_selected_frame): New function.
83 * frame.h (get_selected_frame): Declare.
84 (deprecated_selected_frame): Rename selected_frame.
85 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
86 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
87 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
88 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
89 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
90 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
91 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
92 * z8k-tdep.c, cli/cli-cmds.c: Update.
94 2002-11-29 Andrew Cagney <ac131313@redhat.com>
96 * frame.h (get_selected_block): Add comments.
98 2002-11-28 Andrew Cagney <ac131313@redhat.com>
100 * frame.c (pc_notcurrent): New function.
101 (find_frame_sal): New function.
102 * frame.h (find_frame_sal): Declare.
103 (struct symtab_and_line): Add opaque declaration.
104 * stack.c (print_frame_info_base): Use find_frame_sal instead of
107 * ada-lang.c (find_printable_frame): Ditto.
109 2002-11-28 J. Brobecker <brobecker@gnat.com>
111 * configure.in: Check that the pthdebug library is recent enough
112 before enabling thread support on native AiX.
113 * configure: Regenerate.
115 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
116 from the list of object files as it is now appended by configure
117 if thread support is enabled.
118 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
119 if thread support is enabled.
121 2002-11-28 Andrew Cagney <cagney@redhat.com>
123 * stack.c (get_selected_block): In-line get_current_block.
124 * frame.h (get_current_block): Delete declaration.
125 * blockframe.c (get_current_block): Delete function.
127 2002-11-28 Andrew Cagney <ac131313@redhat.com>
129 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
130 USE_GENERIC_DUMMY_FRAMES.
131 * gdbarch.h, gdbarch.c: Regenerate.
132 * valops.c, frame.c: Update.
133 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
134 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
135 * config/pa/tm-hppa.h, blockframe.c: Update.
136 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
137 * m68k-tdep.c, alpha-tdep.c: Ditto.
139 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
140 * mips-tdep.c: Ditto.
142 2002-11-27 Andrew Cagney <ac131313@redhat.com>
144 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
145 (USE_GENERIC_DUMMY_FRAMES): Default to true.
146 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
147 * gdbarch.c, gdbarch.h: Re-generate.
148 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
149 (CALL_DUMMY_LOCATION): Delete macro definition.
150 (PC_IN_CALL_DUMMY): Delete macro definitions.
152 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
153 default is already generic_pc_in_call_dummy.
154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
155 * v850-tdep.c (v850_gdbarch_init): Ditto.
156 * sh-tdep.c (sh_gdbarch_init): Ditto.
157 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
158 * mips-tdep.c (mips_gdbarch_init): Ditto.
159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
161 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
162 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
163 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
164 * avr-tdep.c (avr_gdbarch_init): Ditto.
166 * arm-tdep.c (arm_gdbarch_init): Do not set
167 use_generic_dummy_frames, default is already 1.
168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
169 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
170 * v850-tdep.c (v850_gdbarch_init): Ditto.
171 * sh-tdep.c (sh_gdbarch_init): Ditto.
172 * s390-tdep.c (s390_gdbarch_init): Ditto.
173 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
174 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
175 * mips-tdep.c (mips_gdbarch_init): Ditto.
176 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
179 * i386-tdep.c (i386_gdbarch_init): Ditto.
180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
181 * frv-tdep.c (frv_gdbarch_init): Ditto.
182 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
183 * cris-tdep.c (cris_gdbarch_init): Ditto.
184 * avr-tdep.c (avr_gdbarch_init): Ditto.
186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
187 call_dummy_location, default is already AT_ENTRY_POINT.
188 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
189 * v850-tdep.c (v850_gdbarch_init): Ditto.
190 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
191 * sh-tdep.c (sh_gdbarch_init): Ditto.
192 * s390-tdep.c (s390_gdbarch_init): Ditto.
193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
195 * mips-tdep.c (mips_gdbarch_init): Ditto.
196 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
198 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
199 * i386-tdep.c (i386_gdbarch_init): Ditto.
200 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
201 * frv-tdep.c (frv_gdbarch_init): Ditto.
202 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
203 * cris-tdep.c (cris_gdbarch_init): Ditto.
204 * avr-tdep.c (avr_gdbarch_init): Ditto.
205 * arm-tdep.c (arm_gdbarch_init): Ditto.
206 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
208 2002-11-28 Andrew Cagney <cagney@redhat.com>
210 * frame.h: Update comments on set_current_frame, create_new_frame,
211 flush_cached_frames, reinit_frame_cache, select_frame and
214 2002-11-27 Andrew Cagney <cagney@redhat.com>
216 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
217 deprecated pc_in_call_dummy function.
218 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
219 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
220 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
221 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
222 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
224 2002-11-26 Martin M. Hunt <hunt@redhat.com>
226 * Makefile.in: Remove Tix dependencies.
227 * acinclude.m4: Ditto.
229 * configure.in: Ditto.
230 * configure: Regenerated.
232 2002-11-26 Andrew Cagney <ac131313@redhat.com>
234 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
235 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
236 * gdbarch.c: Re-generate.
238 2002-11-26 Andrew Cagney <ac131313@redhat.com>
240 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
241 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
242 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
243 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
244 pc_in_call_dummy_at_entry_point.
245 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
246 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
247 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
248 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
249 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
250 pc_in_call_dummy_on_stack.
251 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
252 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
253 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
254 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
255 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
257 2002-11-26 Andrew Cagney <ac131313@redhat.com>
259 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
260 pc_in_call_dummy_before_text_end
261 (deprecated_pc_in_call_dummy_after_text_end): Rename
262 pc_in_call_dummy_after_text_end.
263 (deprecated_pc_in_call_dummy_on_stack): Rename
264 pc_in_call_dummy_on_stack.
265 (deprecated_pc_in_call_dummy_at_entry_point): Rename
266 pc_in_call_dummy_at_entry_point.
267 * m68k-tdep.c (m68k_gdbarch_init): Update.
268 * s390-tdep.c (s390_gdbarch_init): Update.
269 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
270 * vax-tdep.c (vax_gdbarch_init): Update.
271 * sparc-tdep.c (sparc_gdbarch_init): Update.
272 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
273 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
274 * i386-tdep.c (i386_gdbarch_init): Update.
275 * frv-tdep.c (frv_gdbarch_init): Update.
276 * cris-tdep.c (cris_gdbarch_init): Update.
277 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
278 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
279 (deprecated_pc_in_call_dummy_after_text_end)
280 (deprecated_pc_in_call_dummy_on_stack)
281 (deprecated_pc_in_call_dummy_at_entry_point): Update.
282 * alpha-tdep.c (alpha_gdbarch_init): Update.
284 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
286 * acconfig.h (HAVE_PREAD64): Add.
287 * configure.in: Check for pread64.
288 * config.in: Regenerated.
289 * configure: Regenerated.
290 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
291 * linux-proc.c (linux_proc_xfer_memory): New function.
292 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
294 2002-11-25 David Carlton <carlton@math.stanford.edu>
296 * dwarf2read.c (scan_partial_symbols): Descend into namespace
299 2002-11-25 Andrew Cagney <ac131313@redhat.com>
301 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
302 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
304 2002-11-25 Jim Blandy <jimb@redhat.com>
306 * symfile.c (init_objfile_sect_indices): New function.
307 (default_symfile_offsets): Move the section-index-initializing
308 stuff into init_objfile_sect_indices, and call that.
310 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
311 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
313 * symfile.c (syms_from_objfile): Adjust indentation.
315 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
316 || info_verbose isn't true.
318 2002-11-24 Andrew Cagney <ac131313@redhat.com>
320 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
321 default to get_frame_base.
322 * gdbarch.h, gdbarch.c: Regenerate.
323 * arch-utils.c (default_frame_address): Delete function.
324 * arch-utils.h (default_frame_address): Delete declaration
326 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
328 * varobj.c (find_frame_addr_in_frame_chain):
329 Use get_frame_base instead of FRAME_FP,
332 2002-11-19 Andrew Cagney <ac131313@redhat.com>
334 * frame.h (FRAME_FP): Delete macro.
335 (get_frame_base): New function declaration.
336 * frame.c (get_frame_base): New function.
337 (get_frame_id): Use ->frame.
338 (frame_find_by_id): Rewrite to use get_frame_id.
339 * blockframe.c: Use get_frame_base instead of FRAME_FP.
340 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
341 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
342 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
343 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
344 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
345 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
347 2002-11-24 Andrew Cagney <ac131313@redhat.com>
349 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
351 2002-11-24 Andrew Cagney <ac131313@redhat.com>
353 * frame.c (set_unwind_by_pc): Revert change below, use
355 (get_prev_frame): Ditto.
357 2002-11-24 Andrew Cagney <ac131313@redhat.com>
359 * dummy-frame.c (pc_in_dummy_frame): New function.
360 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
361 (find_dummy_frame): Update comment.
362 (generic_pop_current_frame): Use get_frame_type.
363 * dummy-frame.h (pc_in_dummy_frame): Declare.
364 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
365 (create_new_frame): Use pc_in_dummy_frame.
366 (get_prev_frame): Use pc_in_dummy_frame.
367 (frame_saved_regs_register_unwind): Use get_prev_frame.
368 (deprecated_generic_get_saved_register): Use get_prev_frame.
370 2002-11-23 Andrew Cagney <ac131313@redhat.com>
372 * blockframe.c (find_frame_addr_in_frame_chain): Move function
374 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
375 (varobj_create): Note that frame ID should be used.
376 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
378 2002-11-23 Andrew Cagney <ac131313@redhat.com>
380 * breakpoint.c: Include "gdb_assert.h".
381 (deprecated_frame_in_dummy): Assert that generic dummy frames are
383 * Makefile.in (breakpoint.o): Update dependencies.
384 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
385 deprecated_frame_in_dummy.
386 * stack.c (print_frame_info_base): Ditto.
388 (print_frame_info_base): Ditto. Delete dead code.
390 2002-11-23 Andreas Schwab <schwab@suse.de>
392 * Makefile.in (m68k_tdep_h): Define.
393 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
394 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
395 * m68k-tdep.c: Move register number enum ...
396 * m68k-tdep.h: ... to this new file and rename the constants from
397 E_* to M68K_*. All uses changed.
398 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
399 * abug-rom.c: Include "m68k-tdep.h". Use
400 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
401 * cpu32bug-rom.c: Likewise.
402 * dbug-rom.c: Likewise.
403 * m68k-tdep.c: Likewise.
404 * m68klinux-nat.c: Likewise.
405 * remote-est.c: Likewise.
406 * rom68k-rom.c: Likewise.
407 * config/m68k/tm-linux.h: Likewise.
409 2002-11-23 Andrew Cagney <ac131313@redhat.com>
411 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
412 dummy frame initialization code.
413 * mips-tdep.c (mips_gdbarch_init): Ditto.
415 2002-11-22 Christopher Faylor <cgf@redhat.com>
417 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
420 2002-11-22 Andrew Cagney <ac131313@redhat.com>
422 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
423 to default_frame_address.
424 * gdbarch.h, gdbarch.c: Re-generate.
426 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
427 or frame_locals_address to default_frame_address.
428 * m68k-tdep.c (m68k_gdbarch_init): Update.
429 * i386-tdep.c (i386_gdbarch_init): Update.
430 * frv-tdep.c (frv_gdbarch_init): Update.
431 * sh-tdep.c (sh_gdbarch_init): Update.
432 * v850-tdep.c (v850_gdbarch_init): Update.
433 * sparc-tdep.c (sparc_gdbarch_init): Update.
434 * mips-tdep.c (mips_gdbarch_init): Update.
435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
436 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
439 * cris-tdep.c (cris_frame_args_address): Delete function.
440 (cris_frame_locals_address): Delete function.
441 (cris_gdbarch_init): Do not set frame_args_address or
442 frame_locals_address.
444 2002-11-22 Michael Snyder <msnyder@redhat.com>
446 * thread-db.c (thread_db_load): Tell the user what's going on
447 if dlopen fails on libthread_db.
449 2002-11-23 Andreas Schwab <schwab@suse.de>
451 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
452 invariant return values.
454 2002-11-22 Andreas Schwab <schwab@suse.de>
456 * valops.c (value_slice): Move declaration of `offset' to avoid
459 2002-11-22 Christopher Faylor <cgf@redhat.com>
461 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
462 (struct so_stuff): Add end_addr field.
463 (register_loaded_dll): Calculate and store end address of loaded dll.
464 (solib_address): New function.
465 (child_solib_loaded_library_pathname): Pass carefully constructed
466 section info to safe_symbol_file_add rather than ignoring it.
467 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
469 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
470 (child_create_inferior): Fix a compiler warning.
471 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
472 (solib_address): Declare new function.
474 2002-11-22 Andreas Schwab <schwab@suse.de>
476 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
479 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
481 * maint.c (_initialize_maint_cmds): Fix typo. From
482 Francesco Potorti` <pot@gnu.org>.
484 2002-11-21 Andrew Cagney <cagney@redhat.com>
486 * mips-tdep.c (mips_dump_tdep): Delete references to
487 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
488 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
489 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
490 * printcmd.c (build_address_symbolic): Delete calls to
491 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
492 (address_info): Ditto.
495 2002-11-19 Klee Dienes <kdienes@apple.com>
496 Adam Fedor <fedor@gnu.org>
498 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
499 the ability to explicitly specify the quote characters and word
500 break characters; if NULL is specified for either, use the old
501 behavior of using the characters used by the completer.
502 (skip_chars): New function. Convenience wrapper around
503 skip_quoted_chars to provide the original skip_chars behavior.
504 * completer.h (skip_quoted_chars): Add prototype.
506 2002-11-19 Andrew Cagney <ac131313@redhat.com>
508 Problems reported by Paul Eggert.
509 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
511 2002-11-19 Andreas Schwab <schwab@suse.de>
513 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
514 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
515 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
516 (m68k_linux_frame_saved_pc): Move to ...
517 * m68klinux-tdep.c: ... here. New file.
518 * Makefile.in (m68klinux-tdep.o): Add dependencies.
519 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
521 2002-11-19 Adam Fedor <fedor@gnu.org>
523 * objc-exp.y: Revert to old skip_quoted usage.
525 2002-11-19 Adam Fedor <fedor@gnu.org>
527 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
528 (objc_lang_h): Define.
529 (YYFILES): Add objc-exp.tab.c.
530 (local-maintainer-clean): Remove objc-exp.tab.c.
531 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
533 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
535 * p-exp.y (typecast rule): Add automatic dereference of
536 pascal classes if needed.
537 (THIS): Set current_type.
538 Automatically dereference pascal classes.
539 (typebase rule): Add ^typebase recognition.
541 2002-11-18 Adam Fedor <fedor@gnu.org>
543 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
544 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
545 (op_name): Handle OP_OBJC_SELF.
546 * Makefile.in (expprint.o): Add additional depends.
548 2002-11-18 Adam Fedor <fedor@gnu.org>
550 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
551 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
552 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
553 * objc-exp.y: Likewise.
555 2002-11-18 Adam Fedor <fedor@gnu.org>
557 * gdb/parser-defs.h: (struct objc_class_str): New structure
558 for parsing ObjC classes.
560 2002-11-18 Andrew Cagney <ac131313@redhat.com>
562 * stack.c (frame_relative_level): Copy function from here ...
563 * frame.c (frame_relative_level): ...to here.
565 2002-11-18 Andrew Cagney <ac131313@redhat.com>
567 * frame.h (enum frame_type): Define.
568 (get_frame_type): Declare.
569 (struct frame_info): Add field `type'. Delete field
570 signal_handler_caller.
571 (deprecated_set_frame_signal_handler_caller): Declare.
572 * frame.c (get_frame_type): New function.
573 (deprecated_set_frame_type): New function.
574 (create_new_frame): Set the frame's type.
575 (get_prev_frame): Similar.
576 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
577 * s390-tdep.c: Ditto.
578 * m68klinux-nat.c: Ditto.
579 * ns32k-tdep.c: Ditto.
580 * x86-64-linux-tdep.c: Ditto.
582 * rs6000-tdep.c: Ditto.
583 * ppc-linux-tdep.c: Ditto.
584 * i386-interix-tdep.c: Ditto.
585 * mips-tdep.c: Ditto.
586 * m68k-tdep.c: Ditto.
587 * hppa-tdep.c: Ditto.
588 * ia64-tdep.c: Ditto.
589 * cris-tdep.c: Ditto.
591 * alpha-tdep.c: Ditto.
592 * i386-tdep.c: Ditto.
595 * blockframe.c: Update.
596 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
597 deprecated_set_frame_type instead of signal_handler_caller.
598 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
599 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
600 * breakpoint.h: Delete FIXME suggesting get_frame_type.
602 2002-11-18 Klee Dienes <kdienes@apple.com>
604 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
606 2002-11-18 Klee Dienes <kdienes@apple.com>
608 * buildsym.c (pop_context): Add comment.
610 2002-11-18 Klee Dienes <kdienes@apple.com>
612 * buildsym.h (pop_context): Convert to function, defined in
614 * buildsym.c: Include gdb_assert.h.
615 (pop_context): Implement as C function. Add check for stack
617 * dbxread.c (process_one_symbol): Complain and stop processing
618 that symbol if we are already at the top of the context stack for
619 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
620 when processing N_RBRAC.
622 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
624 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
626 (struct target_waitstatus): Add opaque definition.
627 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
628 * exec.c (init_exec_ops): Likewise.
629 * fork-child.c (clone_and_follow_inferior): Remove.
630 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
631 * inferior.h (clone_and_follow_inferior): Remove prototype.
632 * infrun.c (follow_fork_mode_both): Remove.
633 (follow_fork_mode_kind_names): Remove commented out "both".
634 (follow_inferior_fork): Remove follow_fork_mode_both support.
635 * inftarg.c (child_clone_and_follow_inferior): Remove.
636 (child_post_follow_inferior_by_clone): Remove.
637 (init_child_ops): Don't set to_clone_and_follow_inferior
638 or to_post_follow_inferior_by_clone.
639 * target.c (default_clone_and_follow_inferior): Remove.
640 (cleanup_target): Don't set to_clone_and_follow_inferior
641 or to_post_follow_inferior_by_clone.
642 (find_default_clone_and_follow_inferior): Remove.
643 (init_dummy_target): Don't set to_clone_and_follow_inferior.
644 (debug_to_clone_and_follow_inferior): Remove.
645 (debug_to_post_follow_inferior_by_clone): Remove.
646 (setup_target_debug): Don't set to_clone_and_follow_inferior
647 or to_post_follow_inferior_by_clone.
648 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
649 and to_post_follow_inferior_by_clone.
650 (child_clone_and_follow_inferior): Remove prototype.
651 (child_post_follow_inferior_by_clone): Remove prototype.
652 (target_clone_and_follow_inferior): Remove macro.
653 (target_post_follow_inferior_by_clone): Remove macro.
654 (find_default_clone_and_follow_inferior): Remove prototype.
656 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
658 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
659 inferior_has_vforked, and inferior_has_execd instead of
660 target_has_forked, target_has_vforked, and target_has_execd.
661 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
662 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
663 (CHILD_WAIT): Define.
664 (child_wait): Add prototype.
665 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
667 (hpux_has_vforked): Likewise, from child_has_vforked.
668 (hpux_has_execd): Likewise, from child_has_execd.
669 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
670 (not_same_real_pid, child_wait): New, copied from inftarg.c.
671 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
672 and hpux_has_syscall_event instead of the target hooks.
673 * infrun.c (inferior_has_forked, inferior_has_vforked)
674 (inferior_has_execd): New functions.
675 * inftarg.c (not_same_real_pid): Remove.
676 (child_wait): Remove references to not_same_real_pid,
677 target_has_forked, target_has_vforked, target_has_execd,
678 and target_has_syscall_event.
679 (child_has_forked, child_has_vforked, child_has_execd)
680 (child_has_syscall_event): Remove.
681 (init_child_ops): Remove references to child_has_forked,
682 child_has_vforked, child_has_execd, and child_has_syscall_event.
683 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
684 (hpux_has_vforked): Likewise, from child_has_vforked.
685 (hpux_has_execd): Likewise, from child_has_execd.
686 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
687 * target.c (cleanup_target): Remove references to
688 to_has_forked, to_has_vforked, to_has_execd, and
689 to_has_syscall_event.
690 (update_current_target): Likewise.
691 (setup_target_debug): Likewise.
692 (debug_to_has_forked): Remove.
693 (debug_to_has_vforked): Remove.
694 (debug_to_has_execd): Remove.
695 (debug_to_has_syscall_event): Remove.
696 * target.h (struct target_ops): Remove to_has_forked.
697 to_has_vforked, to_has_execd, and to_has_syscall_event.
698 (child_has_forked, child_has_vforked, child_has_execd)
699 (child_has_syscall_event): Remove prototypes.
700 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
702 (target_has_forked, target_has_vforked, target_has_execd)
703 (target_has_syscall_event): Remove macros.
705 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
707 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
708 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
709 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
710 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
711 * target.c (cleanup_target): Remove reference to
712 to_can_follow_vfork_prior_to_exec.
713 (update_current_target): Likewise.
714 (debug_to_can_follow_vfork_prior_to_exec): Remove.
715 (setup_target_debug): Remove reference to
716 to_can_follow_vfork_prior_to_exec.
717 * target.h (struct target_ops): Remove
718 to_can_follow_vfork_prior_to_exec.
719 (child_can_follow_vfork_prior_to_exec): Remove prototype.
720 (target_can_follow_vfork_prior_to_exec): Remove definition.
721 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
723 * infrun.c (follow_vfork_when_exec): Remove.
724 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
725 (follow_exec): Likewise.
726 (handle_inferior_event): Likewise.
727 (keep_going): Likewise.
729 2002-11-15 Andrew Cagney <cagney@redhat.com>
731 * frame.c (generic_unwind_get_saved_register): Make static.
732 * frame.h (generic_unwind_get_saved_register): Delete declaration.
733 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
734 defaults to generic_unwind_get_saved_register.
735 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
736 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
737 * frv-tdep.c (frv_gdbarch_init): Ditto.
738 * i386-tdep.c (i386_gdbarch_init): Ditto.
739 * s390-tdep.c (s390_gdbarch_init): Ditto.
740 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
741 * v850-tdep.c (v850_gdbarch_init): Ditto.
742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
743 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
744 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
746 2002-11-15 Andrew Cagney <cagney@redhat.com>
748 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
751 2002-11-15 Andrew Cagney <cagney@redhat.com>
753 * frame.h (sigtramp_saved_pc): Delete declaration.
754 * blockframe.c (sigtramp_saved_pc): Delete function.
755 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
756 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
757 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
758 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
760 2002-11-15 Andrew Cagney <ac131313@redhat.com>
762 * frame.c (frame_pc_unwind): New function.
763 (frame_saved_regs_pc_unwind): New function.
764 (frame_register_unwind): Pass unwind_cache instead of
765 register_unwind_cache.
766 (set_unwind_by_pc): Add unwind_pc parameter, set.
767 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
768 (get_prev_frame): Ditto.
769 * frame.h (frame_pc_unwind_ftype): Declare.
770 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
771 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
772 (frame_pc_unwind): Declare.
773 * dummy-frame.c (dummy_frame_pc_unwind): New function.
774 (struct dummy_frame): Add comment mentioning that values are for
776 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
777 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
778 (generic_file_frame_chain_valid): Ditto.
779 * stack.c (frame_info): Ditto.
781 2002-11-15 David Carlton <carlton@math.stanford.edu>
783 * linespec.c (locate_first_half): New function.
784 (decode_line_1): Move code into locate_first_half.
786 2002-11-15 Andrew Cagney <ac131313@redhat.com>
788 * complaints.h: Add comment explaining how to eliminate a
789 deprecated_complain call.
790 * complaints.h: Fix spelling errors.
792 2002-11-15 David Carlton <carlton@math.stanford.edu>
794 * printcmd.c: Remove #include "disasm.h".
796 2002-11-14 Andrew Cagney <ac131313@redhat.com>
798 * frame.h: Move the most relevant interface functions to the start
801 2002-11-14 Andrew Cagney <ac131313@redhat.com>
803 * regcache.h (deprecated_registers): Rename registers.
804 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
805 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
806 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
807 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
808 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
809 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
810 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
811 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
812 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
813 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
814 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
817 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
819 * utils.c (gdb_realpath): Add comment mentioning realpath with a
822 2002-11-13 Andrew Cagney <cagney@redhat.com>
824 * regcache.h (deprecated_read_register_bytes): Rename
826 (deprecated_write_register_bytes): Rename write_register_bytes.
827 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
828 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
829 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
830 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
831 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
832 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
833 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
834 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
835 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
836 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
837 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
838 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
839 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
840 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
842 2002-11-13 Jim Blandy <jimb@redhat.com>
844 * findvar.c (read_var_value): Doc fix.
846 2002-11-13 Andrew Cagney <cagney@redhat.com>
848 * regcache.c (struct regcache): Replace passthough_p with
850 (regcache_xmalloc): Initialize readonly_p.
851 (build_regcache): Initialize readonly_p.
852 (regcache_save): New function.
853 (regcache_restore): New function.
854 (regcache_cpy): Re-implement using regcache_save and
856 (regcache_raw_read): Update.
857 (regcache_cooked_read): When a read-only cache, checked for cached
858 pseudo register values.
859 (regcache_raw_write): Assert that the cache is not read-only.
860 Remove code handling a non-passthrough cache.
861 * regcache.h (regcache_save): Declare.
862 (regcache_restore): Declare.
864 2002-11-13 Andrew Cagney <cagney@redhat.com>
866 * regcache.c (struct regcache_descr): Add fields
867 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
868 (init_legacy_regcache_descr): Compute the size of a cooked
869 register cache and then assign that to sizeof_raw_registers. Set
870 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
871 (init_legacy_regcache_descr): Ditto.
873 2002-11-13 Andrew Cagney <cagney@redhat.com>
875 * regcache.c (register_buffer): Move to near start of file, update
877 (regcache_raw_read): Use.
878 (regcache_raw_write): Use.
879 (struct regcache): Rename raw_registers to registers and
880 raw_register_valid_p to register_valid_p.
881 (regcache_xmalloc): Update.
882 (regcache_xfree): Update.
883 (register_buffer): Update.
884 (regcache_cpy): Update.
885 (regcache_cpy_no_passthrough): Update.
886 (regcache_valid_p): Update.
887 (deprecated_grub_regcache_for_registers): Update.
888 (deprecated_grub_regcache_for_register_valid): Update.
889 (set_register_cached): Update.
890 (regcache_raw_write): Update.
892 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
894 * p-exp.y (name_not_typename): Use copy_name to
895 set current_type variable for fields of THIS.
897 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
899 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
900 * monitor.c (init_base_monitor_ops): Likewise.
901 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
902 * remote-array.c (init_array_ops): Likewise.
903 * remote-e7000.c (init_e7000_ops): Likewise.
904 * remote-es.c (init_es1800_ops): Likewise.
905 (init_es1800_child_ops): Likewise.
906 * remote-rdp.c (init_remote_rdp_ops): Likewise.
907 * remote-sim.c (init_gdbsim_ops): Likewise.
908 * remote-st.c (init_st2000_ops): Likewise.
909 * sol-thread.c (init_sol_core_ops): Likewise.
910 (init_sol_thread_ops): Likewise.
911 * v850ice.c (init_850ice_ops): Likewise.
912 * win32-nat.c (init_child_ops): Likewise.
913 * wince.c (init_child_ops): Likewise.
915 2002-11-12 Andrew Cagney <ac131313@redhat.com>
917 * utils.c (gdb_realpath): Make rp a constant pointer.
919 2002-11-12 Andrew Cagney <ac131313@redhat.com>
921 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
922 a constant buffer; cannonicalize_file_name(); realpath() with a
923 pathconf() defined buffer, xstrdup().
925 2002-11-12 Andrew Cagney <ac131313@redhat.com>
927 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
928 to hang2.C; hang3.c to hang3.C.
930 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
932 * findvar.c (read_var_value): Reenable TLS code.
934 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
935 Jim Blandy <jimb@redhat.com>
937 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
938 * target.c (update_current_target): Add
939 to_get_thread_local_address.
940 * target.h (to_get_thread_local_address): Export.
941 (target_get_thread_local_address): Define.
942 (target_get_thread_local_address_p): Define.
943 * thread-db.c: Include solib-svr4.h.
944 (td_thr_tls_get_addr_p): Define.
945 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
946 (thread_db_get_thread_local_address): New function.
947 (init_thread_db_ops): Initialize to_get_thread_local_address.
948 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
949 * configure: Regenerate.
950 * config.in: Regenerate.
952 2002-11-11 David Carlton <carlton@math.stanford.edu>
954 * linespec.c (set_flags): New function.
955 (decode_line_1): Move code into set_flags.
957 2002-11-11 David Carlton <carlton@math.stanford.edu>
959 * linespec.c (decode_line_1): Move chunks of code to separate
961 (initialize_defaults): New function.
962 (decode_indirect): New function.
964 2002-11-11 Andrew Cagney <ac131313@redhat.com>
966 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
967 instead of void_code_ptr.
968 (sigtramp_saved_pc): Ditto.
970 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
973 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
975 * gdbtypes.h (struct main_type): Move artificial flag out of
976 loc. New member of ``struct field'' named static_kind. Reduce
977 overloaded meaning of bitsize.
978 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
979 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
980 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
982 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
984 (template_to_fixed_record_type, template_to_static_fixed_type)
985 (to_record_with_fixed_variant_part): Likewise.
986 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
987 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
988 * dwarfread.c (struct_type, enum_type): Likewise.
989 * hpread.c (hpread_read_enum_type)
990 (hpread_read_function_type, hpread_read_doc_function_type)
991 (hpread_read_struct_type): Likewise.
992 * mdebugread.c (parse_symbol): Likewise.
994 2002-11-10 Andrew Cagney <ac131313@redhat.com>
996 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
997 * stack.c (print_frame_info_base): Update.
998 (print_frame_info_base, frame_info): Update.
999 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1000 (sparc_frame_saved_pc): Update.
1001 * ada-lang.c (find_printable_frame): Update.
1002 * breakpoint.c (deprecated_frame_in_dummy): Update.
1004 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1006 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1008 (regmap): Extend to cover all registers.
1009 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1010 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1012 (fetch_register, sore_register): Simplify.
1013 (old_fetch_inferior_registers, old_store_inferior_registers):
1015 (cannot_fetch_register, cannot_store_register): Change
1016 implementation to use regmap array to decide which registers
1017 cannot be fetched/stored. This removes $orig_eax from the
1018 registers that cannot be fetched/stored.
1019 (fetch_inferior_registers): Call fetch_register directly instead
1020 of calling old_fetch_inferior_registers.
1021 (store_inferior_registers): Call store_register directly instead
1022 of calling old_store_inferior_registers.
1023 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1024 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1025 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1027 2002-11-09 Klee Dienes <kdienes@apple.com>
1029 * i387-tdep.c (i387_supply_register): When called with NULL as a
1030 buffer, mark the register as not provided (to mirror the behavior
1031 of supply_register).
1032 (i387_supply_fxsave): Ditto.
1033 (i387_supply_fsave): Ditto (inherits the behavior from
1034 i387_supply_register).
1036 2002-11-09 Klee Dienes <kdienes@apple.com>
1038 * blockframe.c (sigtramp_saved_pc): Use
1039 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1040 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1041 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1043 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1045 * frame.c (get_prev_frame): Test prev_p to identify a previously
1046 unwound frame. Initialize prev_p.
1047 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1050 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1052 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1053 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1054 more comments. Zap dead code.
1056 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1058 * infcmd.c (print_vector_info, print_float_info): Move code that
1059 checks whether the target has any registers and whether there is a
1060 selected frame up, such that it is also used if a target provides
1061 multi-arch definitions of these functions.
1063 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1065 * Makefile.in (DESTDIR): Define.
1066 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1069 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1070 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1072 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1074 * i386-linux-tdep.c: Include "reggroups.h".
1075 (i386_linux_register_reggroup_p): New function.
1076 (i386_linux_init_abi): Set register_reggroup_p to
1077 i386_linux_register_reggroup_p.
1078 * i386-tdep.h (i386_register_reggroup_p): Declare.
1079 * i386-tdep.c: Include "reggroups.h".
1080 (i386_init_reggroups): New function.
1081 (i386_add_reggroups): New function.
1082 (i386_register_reggroup_p): New function.
1083 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1084 (_initialize_i386_tdep): Call i386_init_reggroups.
1085 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1088 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1090 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1091 request that's available in *BSD.
1093 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1095 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1098 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1100 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1101 * dummy-frame.c (find_dummy_frame): Rename
1102 generic_find_dummy_frame, make static. Return the dummy frame
1103 instead of the regcache.
1104 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1105 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1106 (dummy_frame_register_unwind): Rename
1107 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1108 * dummy-frame.h (dummy_frame_register_unwind): Rename
1109 generic_call_dummy_register_unwind.
1111 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1113 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1114 except the inclusion of "i386/tm-i386.h", to...
1115 * config/i386/nm-i386v42mp.h: ...here.
1116 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1118 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1120 * Makefile.in (frame.o): Update dependencies.
1121 * blockframe.c (current_frame, frame_obstack_alloc)
1122 (frame_saved_regs_zalloc, get_current_frame)
1123 (set_current_frame, create_new_frame)
1124 (set_unwind_by_pc, get_next_frame)
1125 (flush_cached_frames, reinit_frame_cache)
1126 (frame_saved_regs_register_unwind)
1127 (deprecated_generic_get_saved_register)
1128 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1129 (_initialize_blockframe): Move frame code from here...
1130 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1131 "annotate.h" and "dummy-frame.h".
1132 (_initialize_frame): New function.
1134 2002-11-08 Jim Blandy <jimb@redhat.com>
1136 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1137 when we finish a function a context.
1138 * buildsym.h (outermost_context_p): New macro.
1139 (Bug analyzed by David Edelsohn.)
1141 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1143 * blockframe.c: Include "dummy-frame.h".
1144 (struct dummy_frame, dummy_frame_stack)
1145 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1146 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1147 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1148 (generic_save_call_dummy_addr, generic_pop_current_frame)
1149 (generic_pop_dummy_frame, generic_fix_call_dummy)
1150 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1151 dummy frame code from here...
1152 * dummy-frame.c: ...to here. New file.
1153 * dummy-frame.h: New file.
1154 (generic_call_dummy_register_unwind): Declare.
1155 (generic_find_dummy_frame): Declare.
1156 * Makefile.in (SFILES): Add dummy-frame.c.
1157 (dummy-frame.o): Specify dependencies.
1158 (dummy_frame_h): Define.
1159 (COMMON_OBS): Add dummy-frame.o.
1160 (blockframe.o): Update dependencies.
1162 2002-11-08 Jim Blandy <jimb@redhat.com>
1164 * dwarf2read.c (read_func_scope): Restore local_symbols and
1165 param_symbols after we finish the function context. (Based on a
1166 patch from David Edelsohn.)
1168 2002-11-08 David Carlton <carlton@math.stanford.edu>
1170 * linespec.c (symbol_found): New function.
1171 (minsym_found): New function.
1172 (decode_line_1): Separate out some code into separate functions.
1174 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1176 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1177 the benefit of the interix target.
1178 * i386-tdep.h (i386_frameless_signal_p): Declare.
1180 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1182 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1183 declaration that snuck in from change below.
1185 2002-11-06 Andrew Cagney <cagney@redhat.com>
1187 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1189 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1190 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1191 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1192 (i386_mxcsr_regnum_p): new function. Use instead of
1194 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1195 (i386_sse_regnum_p): Declare.
1196 (i386_mxcsr_regnum_p): Declare.
1197 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1198 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1199 (IS_FP_REGNUM): Update definition.
1200 (IS_FPU_CTRL_REGNUM): Update definition..
1201 (IS_SSE_REGNUM): Update definition..
1202 * i386v-nat.c (register_u_addr): Update.
1203 * go32-nat.c (fetch_register): Update.
1204 (store_register): Update.
1206 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1208 Preparation work to convert the hppa targets to multiarch partial.
1210 * hppa-tdep.c: Add new functions replacing macro bodies from
1211 config/pa/tm-hppa.h. These function will be used to initialize
1212 the gdbarch structure. Import some comments from tm-hppa.h,
1213 and place them where appropriate, to avoid loosing them when
1214 we cleanup this file.
1215 (hppa_reg_struct_has_addr): New function.
1216 (hppa_inner_than): New function.
1217 (hppa_stack_align): New function.
1218 (hppa_pc_requires_run_before_use): New function.
1219 (hppa_instruction_nullified): New function.
1220 (hppa_register_byte): New function.
1221 (hppa_register_virtual_type): New function.
1222 (hppa_store_struct_return): New function.
1223 (hppa_cannot_store_register): New function.
1224 (hppa_frame_args_address): New function.
1225 (hppa_frame_locals_address): New function.
1226 (hppa_smash_text_address): New function.
1227 (hppa_coerce_float_to_double): New function. Requires the inclusion
1230 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1232 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1233 gdbarch-eligible macro to a call to the new associated function
1234 created in hppa-tdep.c.
1235 (INNER_THAN): Likewise.
1236 (STACK_ALIGN): Likewise.
1237 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1238 (INSTRUCTION_NULLIFIED): Likewise.
1239 (REGISTER_BYTE): Likewise.
1240 (REGISTER_VIRTUAL_TYPE): Likewise.
1241 (STORE_STRUCT_RETURN): Likewise.
1242 (CANNOT_STORE_REGISTER): Likewise.
1243 (FRAME_ARGS_ADDRESS): Likewise.
1244 (FRAME_LOCALS_ADDRESS): Likewise.
1245 (SMASH_TEXT_ADDRESS): Likewise.
1246 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1247 (ABOUT_TO_RETURN): Delete, as no longer used.
1249 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1251 * printcmd.c (disassemble_command): Remove obsolete function.
1252 (_initialize_printcmd): Do not create disassemble command here.
1253 * cli/cli-cmds.c (disassemble_command): New function. Implements
1254 disassemble command.
1255 (init_cli_cmds): Create disassemble command here instead.
1257 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1259 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1261 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1263 * regcache.h (regcache_cooked_read_using_offset_hack)
1264 (regcache_cooked_write_using_offset_hack): Delete declarations.
1265 (register_changed): Delete declaration.
1266 * regcache.c (regcache_cooked_read_using_offset_hack)
1267 (regcache_cooked_write_using_offset_hack): Delete functions.
1268 (cooked_xfer_using_offset_hack): Delete function.
1269 (register_changed): Delete function.
1271 2002-11-07 Jim Blandy <jimb@redhat.com>
1273 * macroscope.c: #include "complaints.h".
1274 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1275 but not in the macro table.
1276 * Makefile.in (macroscope.o): Record dependency.
1278 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1280 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1282 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1284 * regcache.c (deprecated_registers_fetched): Update.
1285 * regcache.h (deprecated_registers_fetched): Rename
1287 * remote-vxsparc.c (vx_read_register): Update.
1288 * remote-vxmips.c (vx_read_register): Update.
1289 * remote-vx68.c (vx_read_register): Update.
1290 * irix5-nat.c (fetch_core_registers): Update.
1291 * mipsm3-nat.c (fetch_inferior_registers): Update.
1292 * sun3-nat.c (fetch_inferior_registers): Update.
1293 * symm-nat.c (fetch_inferior_registers): Update.
1294 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1295 (fetch_core_registers): Update.
1296 (fetch_kcore_registers): Update.
1297 * mips-nat.c (fetch_inferior_registers): Update.
1298 * corelow.c (get_core_registers): Update.
1299 * a68v-nat.c (fetch_inferior_registers): Update.
1301 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1303 Put in place the framework necessary for multiarching the hppa targets.
1304 * hppa-tdep.c (hppa_gdbarch_init): New function.
1305 (hppa_dump_tdep): New function.
1306 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1307 tdep structure dumper.
1308 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1309 until the multi-arching conversion has partially been completed.
1311 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1313 * valops.c (value_assign): Merge lval_register case into
1314 lval_reg_frame_relative. Use frame_register and
1315 regcache_cooked_write instead of get_saved_register and
1316 write_register_bytes. After flushing the register cache, try to
1317 re-select the selected frame.
1319 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1321 * regcache.h (deprecated_register_valid): Rename register_valid.
1322 * regcache.c: Update.
1323 * ia64-aix-nat.c: Update.
1324 * i386gnu-nat.c: Update.
1325 * alpha-nat.c: Update.
1326 * sparc-nat.c: Update.
1327 * lynx-nat.c: Update.
1328 * remote-mips.c: Update.
1330 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1332 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1333 to end of file, to be more consistent with the pratice followed
1336 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1338 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1339 (print_float_info): Print registers in float_reggroup.
1340 (print_vector_info): Print registers in vector_reggroup.
1341 (default_print_registers_info): When all, print registers in
1342 all_reggroup. Otherwize, print registers in general_reggroup.
1343 (registers_info): Rewrite. Add support for register groups.
1346 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1348 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1350 (symtab_symbol_info): Remove eons old ifdeffed out code.
1351 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1354 2002-11-06 Theodore A. Roth <troth@openavr.org>
1356 * c-exp.y: Add missing semi-colons.
1357 * f-exp.y: Add missing semi-colons.
1358 * m2-exp.y: Add missing semi-colons.
1359 * p-exp.y: Add missing semi-colons.
1360 Add empty action to start rule to avoid a type clash error when
1361 building with bison >= 1.50.
1363 2002-11-06 Jim Blandy <jimb@redhat.com>
1365 * macrotab.h (struct macro_source_file): Doc fix.
1367 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1369 * varobj.c (child_exists, cplus_number_of_children): Change
1370 STREQ macro references to strcmp.
1371 (cplus_name_of_child): Change code to handle the fact that
1372 fields are not necessarily contiguous with regards to their
1373 access control. This is a fix for PR gdb/792.
1375 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1377 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1378 * gdbarch.h, gdbarch.c: Regnerate.
1379 * frame.h (frame_register): Declare.
1380 * frame.c (frame_register): New function.
1381 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1382 GET_SAVED_REGISTER, otherwize call
1383 generic_unwind_get_saved_register.
1384 (frame_register_read): Use frame_register instead of
1387 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1389 From Jim Ingham <jingham@apple.com>:
1390 * event-top.c (gdb_disable_readline): New function.
1391 (_initialize_event_loop): Move comment.
1393 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1395 * event-loop.c (start_event_loop): Add comment.
1398 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1400 * infcmd.c (default_print_registers_info): Do not call
1401 PRINT_REGISTER_HOOK.
1403 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1405 * sparc-tdep.c (sparc_print_register_hook): Make static.
1406 (sparc_print_registers_info): New function.
1407 (sparc_do_registers_info): New function.
1408 (sparclet_print_registers_info): New function.
1409 (sparclet_do_registers_info): New function.
1410 (do_sparc_print_registers_info): New function.
1411 (sparc_print_registers): New static function, clone of infcmd.c's
1412 default_print_registers_info.
1413 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1414 (sparclet_do_registers_info): Declare.
1415 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1416 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1418 (sparc_do_registers_info): Declare.
1419 (PRINT_REGISTER_HOOK): Delete macro.
1420 (sparc_print_register_hook): Delete declaration.
1422 2002-11-05 David Carlton <carlton@math.stanford.edu>
1424 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1426 (lookup_symbol_aux_local): New function.
1427 (lookup_symbol_aux_symtabs): New function.
1428 (lookup_symbol_aux_psymtabs): New function.
1430 2002-11-05 David Carlton <carlton@math.stanford.edu>
1432 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1433 previous values of 'objfile' and 'block'.
1435 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1437 * values.c (value_change_enclosing_type): Set
1438 enclosing_type field correctly also for the case where
1439 more memory needs to be allocated.
1441 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1443 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1446 * i387-tdep.c (i387_print_float_info): Replace calls to
1447 register_read and deprecated_read_register_gen with calls to
1448 frame_register_read, and make the necessary adjustments to the
1451 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1453 * gdbarch.sh (register_reggroup_p): Allow default value.
1454 * gdbarch.h, gdbarch.c: Regenerate.
1456 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1458 * regcache.h: Add coment indicating replacements for deprecated
1461 2002-11-02 Andrew Cagney <cagney@redhat.com>
1463 * reggroups.h, reggroups.c: New files.
1464 * regcache.c: Include "reggroups.h".
1465 (enum regcache_dump_what): Add `regcache_dump_groups'.
1466 (regcache_dump): Contract size of the "Type" column. When
1467 specified, dump the register's groups.
1468 (maintenance_print_register_groups): New function.
1469 (_initialize_regcache): Add command `maint print register-groups'.
1470 * Makefile.in (COMMON_OBS): Add reggroups.o
1471 (SFILES): Add reggroups.c.
1472 (reggroups_h): Define.
1473 (regcache.o, gdbarch.o): Update dependencies.
1474 (reggroups.o): Specify dependencies.
1475 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1476 Add opaque declaration for `struct reggroup' in generated .h file.
1477 Include "reggroups.h" in generated .c file.
1478 gdbarch.h, gdbarch.c: Re-generate.
1480 2002-11-02 Andrew Cagney <cagney@redhat.com>
1482 * regcache.h (deprecated_read_register_gen): Rename
1484 (deprecated_write_register_gen): Rename write_register_gen.
1485 * i387-tdep.c: Update.
1486 * x86-64-linux-nat.c: Update
1488 * thread-db.c: Update.
1489 * win32-nat.c: Update.
1490 * mips-tdep.c: Update.
1491 * d10v-tdep.c: Update.
1492 * cris-tdep.c: Update.
1493 * remote-sim.c: Update.
1494 * remote-rdi.c: Update.
1495 * remote-rdp.c: Update.
1498 * blockframe.c: Update.
1499 * x86-64-tdep.c: Update.
1500 * xstormy16-tdep.c: Update.
1501 * sh-tdep.c: Update.
1502 * s390-tdep.c: Update.
1503 * rs6000-tdep.c: Update.
1504 * sparc-tdep.c: Update.
1505 * i386-tdep.c: Update.
1506 * dwarf2cfi.c: Update.
1507 * regcache.c: Update.
1509 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1511 New interix-specific files:
1512 * config/i386/nm-interix.h: New file.
1513 * config/i386/interix.mh: New file.
1514 * config/i386/interix.mt: New file.
1515 * i386-interix-nat.c: New file.
1516 * i386-interix-tdep.c: New file.
1518 2002-11-01 Andrew Cagney <cagney@redhat.com>
1520 * frame.h (deprecated_generic_get_saved_register): Rename
1521 generic_get_saved_register.
1522 * blockframe.c (deprecated_generic_get_saved_register): Update.
1523 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1524 (xstormy16_frame_saved_register): Update.
1525 * sh-tdep.c (sh_gdbarch_init): Update.
1526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1527 * ia64-tdep.c (ia64_get_saved_register): Update.
1528 * cris-tdep.c (cris_gdbarch_init): Update.
1529 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1530 * arm-tdep.c (arm_gdbarch_init): Update.
1532 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1534 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1536 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1538 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1539 trampolines in sigaction.
1541 2002-10-31 Andrew Cagney <cagney@redhat.com>
1543 * h8300-tdep.c: Include "gdb_assert.h".
1544 (h8300_print_register): Add gdbarch, file and frame parameters.
1545 Use frame_read_unsigned_register to read the register's value.
1546 Use fprintf_filtered to display output.
1547 (h8300_print_registers_info): Replace h8300_do_registers_info.
1548 (h8300_gdbarch_init): Set print_registers_info.
1550 2002-10-31 Andrew Cagney <cagney@redhat.com>
1552 * frame.c (frame_read_unsigned_register): New function.
1553 (frame_read_signed_register): New function.
1554 * frame.h (frame_read_unsigned_register): Declare.
1555 (frame_read_signed_register): Declare.
1557 2002-10-31 Andrew Cagney <cagney@redhat.com>
1559 * h8500-tdep.c (h8500_print_registers_info): New static function,
1560 clone of infcmd.c's default_print_registers_info.
1561 (h8500_do_registers_info): New funtion.
1562 (h8500_print_register_hook): Rename print_register_hook, make
1565 * config/h8500/tm-h8500.h: Update copyright.
1566 (DEPRECATED_DO_REGISTERS_INFO): Define.
1567 (h8500_do_registers_info: Declare.
1568 (PRINT_REGISTER_HOOK): Delete macro.
1569 (print_register_hook): Delete function.
1571 2002-10-31 Andrew Cagney <cagney@redhat.com>
1573 * z8k-tdep.c (z8k_print_register_hook): Make static.
1574 (z8k_print_registers_info): New static function, clone of
1575 infcmd.c's default_print_registers_info.
1576 (z8k_do_registers_info): New function. Wrap
1577 z8k_print_registers_info.
1578 * config/z8k/tm-z8k.h: Update copyright.
1579 (PRINT_REGISTER_HOOK): Delete macro.
1580 (z8k_print_register_hook): Delete declaration.
1581 (DEPRECATED_DO_REGISTERS_INFO): Define.
1582 (z8k_do_registers_info): Declare.
1584 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1586 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1587 as this is already provided by value.h, and was actually causing
1588 a compilation error because of a conflict in parameter type
1589 declaration due to a missing const keyword.
1590 (low_text_segment_addres): Fix a compilation warning.
1592 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1594 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1595 registers without a name.
1596 (mips_linux_cannot_store_register): Don't store registers without
1599 2002-10-28 David Carlton <carlton@math.stanford.edu>
1601 * symtab.c (find_addr_symbol): Delete. (It was already commented
1603 * symtab.h: Delete prototype for find_addr_symbol.
1605 2002-10-26 Andrew Cagney <cagney@redhat.com>
1607 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1609 gdbarch.h, gdbarch.c: Re-generate.
1610 * infcmd.c (default_print_registers_info): Update reference.
1611 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1612 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1613 * sh-tdep.c (sh_gdbarch_init): Ditto.
1614 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1615 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1617 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1619 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1620 cfi_init_extra_frame_info.
1621 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1622 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1624 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1625 target where necessary. Add more comments and remove the ones
1626 that don't provide any useful information.
1628 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1629 deprecated_read_register_dummy with
1630 frame_unwind_unsigned_register.
1632 * i386-tdep.c (i386_extract_struct_value_address): Use
1633 regcache_raw_read_unsigned instead of
1634 regcache_cooked_read_unsigned since we know that the register
1635 we're reading isn't a pseudo register. Rename variable 'val' into
1636 the more descriptive 'addr'.
1638 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1639 (x86_64_push_return_address): Add comment.
1640 (x86_64_pop_frame): Make static.
1641 (examine_argument): Clarify comment.
1642 (x86_64_skip_prologue): Make prolog_expact variable static.
1644 * dwarf2cfi.c: Fix some formatting problems.
1645 (context_cpy, read_encoded_pointer): Clarify comments.
1647 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1648 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1649 i386 target back into x86_64_gdbarch_init. Add some comments and
1650 remove meaningless ones.
1652 2002-10-25 Andrew Cagney <cagney@redhat.com>
1654 * complaints.h (struct deprecated_complaint): Rename `struct
1656 * complaints.c (complain): Update.
1657 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1658 incorrect comment indicating that "symfile.h" was being included
1659 for the `struct complaint' definition.
1660 * remote-vx.c: Update.
1661 * objc-lang.c: Update.
1662 * xcoffread.c: Update.
1664 * mdebugread.c: Update.
1665 * stabsread.c: Update.
1666 * dwarf2read.c: Update.
1667 * dwarfread.c: Update.
1668 * elfread.c: Update.
1669 * coffread.c: Update.
1670 * stabsread.h: Update.
1671 * dbxread.c: Update.
1672 * buildsym.c: Update.
1673 * gdbtypes.c: Update.
1674 * macrotab.c: Update.
1676 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1678 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1679 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1680 (x86_64_init_abi): ...new function.
1682 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1683 * i386v-nat.c: Include "i386-tdep.h".
1685 2002-10-25 Andrew Cagney <cagney@redhat.com>
1687 * gdbtypes.c (address_space_name_to_int): Update.
1688 (address_space_int_to_name): Update.
1689 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1690 multi-arch predicate.
1691 (address_class_name_to_type_flags): Ditto.
1692 * gdbarch.h, gdbarch.c: Re-generate.
1694 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1696 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1698 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1700 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1702 * symtab.h (INIT_SAL): Delete macro.
1704 * symtab.c (init_sal): New function.
1706 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1707 to init_sal function call.
1708 (find_sal_from_funcs_and_line): Ditto.
1709 (all_sals_for_line): Ditto.
1710 * breakpoint.c (create_internal_breakpoint): Ditto.
1711 (create_fork_vfork_event_catchpoint): Ditto.
1712 (create_exec_event_catchpoint): Ditto.
1713 (parse_breakpoint_sals): Ditto.
1714 (watch_command_1): Ditto.
1715 (handle_gnu_4_16_catch_command): Ditto.
1716 (clear_command): Ditto.
1717 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1718 * infcmd.c (run_stack_dummy): Ditto.
1719 * infrun.c (process_event_stop_test): Ditto.
1720 (check_sigtramp2): Ditto.
1721 (step_over_function): Ditto.
1722 * linespec.c (decode_line_2): Ditto.
1723 (decode_line_1): Ditto.
1724 * source.c (line_info): Ditto.
1725 * symtab.c (find_pc_sect_line): Ditto.
1727 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1729 * dwarf2cfi.c (struct context)
1730 (struct context_reg): Moved to dwarf2cfi.h
1731 (context_alloc, frame_state_alloc, context_cpy):
1732 Made extern instead of static, removed prototypes.
1733 * dwarf2cfi.h (struct context)
1734 (struct context_reg): New, moved from dwarf2cfi.c
1735 (context_alloc, frame_state_alloc, context_cpy):
1737 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1738 Changed from static to extern.
1739 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1740 (LINUX_SIGCONTEXT_FP_OFFSET)
1741 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1742 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1743 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1744 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1745 set_gdbarch_*() calls now use x86-64 specific functions
1746 instead of DWARF2 CFI ones.
1747 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1748 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1749 (x86_64_init_extra_frame_info): New prototypes.
1751 2002-10-23 David Carlton <carlton@math.stanford.edu>
1753 * linespec.c: #include "parser-defs.h".
1754 Delete prototype for find_template_name_end.
1755 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1757 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1759 * NEWS: add recent mi fixes.
1760 * varobj.c (struct varobj): Add new "updated" flag.
1761 (new_variable): Default "updated" flag to 0.
1762 (varobj_set_value): Set "updated" flag to 1 if value
1764 (varobj_update): Check varobj "updated" flag before
1765 comparing old and refreshed values. Fix for
1768 2002-10-23 David Carlton <carlton@math.stanford.edu>
1770 * parse.c (parse_exp_1): Use BLOCK_START.
1771 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1773 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1775 2002-10-23 David Carlton <carlton@math.stanford.edu>
1777 * symtab.c: Delete cplusplus_hint.
1778 Delete prototype for find_template_name_end.
1780 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1782 * symtab.h: Update comment.
1784 2002-10-23 Michael Snyder <msnyder@redhat.com>
1786 * printcmd.c (address_info): Restore quotes in output.
1787 * valops.c (value_of_local): Restore quotes in error message.
1789 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1791 * symtab.c (symbol_demangled_name): New function.
1792 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1793 turning most of it into a function.
1794 (symbol_demangled_name): Export.
1796 2002-10-23 Michael Snyder <msnyder@redhat.com>
1798 * valops.c (value_of_local): Restore quotes in error message.
1800 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1802 * symtab.c (symbol_init_language_specific): New function.
1803 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1804 turning most of it into a function.
1805 (symbol_init_language_specific): Export.
1807 2002-10-23 David Carlton <carlton@math.stanford.edu>
1809 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1810 (dwarf_attr_name): Ditto.
1811 (dwarf_type_encoding_name): Ditto.
1812 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1813 (process_die): Handle DW_TAG_namespace,
1814 DW_TAG_imported_declaration, DW_TAG_imported_module.
1815 (read_namespace): New function.
1817 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1819 * configure.in: Define NEW_PROC_API on Interix too.
1820 * configure: Regenerate.
1822 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1824 * configure: Regenerate using the proper version of autoconf.
1826 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1828 * findvar.c (read_var_value): Temporarily disable TLS code, until
1829 complete TLS support is added.
1831 2002-10-21 Jim Blandy <jimb@redhat.com>
1832 Elena Zannoni <ezannoni@redhat.com>
1834 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1835 for thread local storage locations.
1836 (struct symbol): Add objfile field.
1837 (SYMBOL_OBJFILE): Define.
1838 * dwarf2read.c (is_thread_local): New static variable.
1839 (new_symbol): If variable is in thread local fill in address class
1840 and objfile appropriately.
1841 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1843 * printcmd.c (address_info): Print the information for thread
1844 local storage variable.
1845 * findvar.c (read_var_value): In case of thread local variable,
1846 defer to the target vector code to compute address.
1848 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1850 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1851 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1853 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1855 * symtab.h (address_class): Rename
1856 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1857 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1858 * printcmd.c (address_info): Ditto.
1859 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1861 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1863 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1864 DBREG_DRX macro to acces debug registers.
1866 * Makefile.in (i386obsd-tdep.o): New target.
1868 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1869 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1871 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1872 * config/i386/obsd.mt: New file.
1873 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1874 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1875 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1876 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1877 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1878 * i386obsd-tdep.c: New file.
1880 2002-10-19 Adam Fedor <fedor@gnu.org>
1882 * objc-exp.y (name_not_typename): Fix invalid comment.
1884 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1886 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1887 to allocate partial syms and macro byte caches.
1889 2002-10-18 David Carlton <carlton@math.stanford.edu>
1891 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1893 2002-10-18 Adam Fedor <fedor@gnu.org>
1895 * stabsread.c (find_name_end): New function.
1896 (define_symbol): Use it.
1898 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1900 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1901 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1902 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1903 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1905 2002-10-17 David Carlton <carlton@math.stanford.edu>
1907 * symfile.h: Add opaque declaration for struct obstack.
1908 Declare obsavestring to take a const char *.
1909 * symfile.c (obsavestring): Make first argument a const char *.
1911 2002-10-16 Adam Fedor <fedor@gnu.org>
1913 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1914 names when matching breakpoints in current file.
1916 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1918 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1919 (read_tag_pointer_type): Add address class support.
1920 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1921 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1923 * gdbarch.h, gdbarch.c: Regenerate.
1924 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1925 (make_type_with_address_space, recursive_type_dump): Add address
1927 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1928 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1929 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1931 2002-10-16 Klee Dienes <kdienes@apple.com>
1933 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1934 to get the last character of a char[] buffer, not
1935 name[sizeof(vptr_name)-1].
1937 2002-10-14 Adam Fedor <fedor@gnu.org>
1939 * symtab.h: New objc_specific struct.
1940 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1941 (SYMBOL_DEMANGLED_NAME): Likewise.
1943 2002-10-14 Adam Fedor <fedor@gnu.org>
1945 * symfile.c (init_filename_language_table): Add ObjC file extension.
1947 2002-10-14 Adam Fedor <fedor@gnu.org>
1949 * utils.c (puts_filtered_tabular): New function.
1950 (fprintf_symbol_filtered): Get ObjC demangled name.
1951 * defs.h (puts_filtered_tabular): Declared.
1953 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1955 * c-lang.h (c_type_print_varspec_prefix): Delete.
1956 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1957 ``need_post_space'' parameter. Adjust all callers.
1959 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1961 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1962 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1963 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1964 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1966 2002-10-13 Adam Fedor <fedor@gnu.org>
1968 * source.c (print_source_lines): Update comments.
1970 2002-10-13 Adam Fedor <fedor@gnu.org>
1972 * valops.c (value_of_local): New function.
1973 (value_of_this): Use it.
1974 * value.h (value_of_local): Declared.
1976 2002-10-13 Adam Fedor <fedor@gnu.org>
1978 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1979 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1981 2002-10-12 Adam Fedor <fedor@gnu.org>
1983 * language.c (binop_result_type): Add language_objc to case.
1984 (integral_type): Likewise.
1985 (character_type): Likewise.
1986 (string_type): Likewise.
1987 (boolean_type): Likewise.
1988 (structured_type): Likewise.
1989 (binop_type_check): Likewise.
1991 2002-10-11 Adam Fedor <fedor@gnu.org>
1993 * printcmd.c (address_info): Print 'self' for ObjC.
1995 2002-10-11 Adam Fedor <fedor@gnu.org>
1997 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2000 2002-10-11 Adam Fedor <fedor@gnu.org>
2002 * language.h (CAST_IS_CONVERSION): Add language_objc.
2004 2002-10-11 Adam Fedor <fedor@gnu.org>
2006 * defs.h (enum language): Add language_objc.
2008 2002-10-11 Klee Dienes <kdienes@apple.com>
2010 * corefile.c (read_memory_typed_address): New function.
2011 * gdbcore.h (read_memory_typed_address): Add prototype.
2012 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2013 to read a value destined for a CORE_ADDR, not read_memory_integer.
2014 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2015 (f77_get_dynamic_lowerbound): Ditto.
2017 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2019 * utils.c (string_to_core_addr): After turning string into
2020 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2021 which will do necessary sign-extension, etc.
2023 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2025 * c-exp.y (THIS): Delete token and grammar rule.
2026 (yylex): Don't return THIS.
2027 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2028 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2029 * demangle.c (cplus_markers): Update comment. Put '$'
2030 first. Remove CPLUS_MARKER.
2031 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2032 * jv-exp.y (THIS): Delete token and grammar rule.
2033 (yylex): Don't return THIS.
2034 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2035 * objc-exp.y (THIS): Delete token and grammar rule.
2036 (yylex): Don't return THIS.
2037 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2038 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2039 (read_member_functions): Likewise for opname.
2040 (read_tilde_fields): Use is_cplus_marker.
2042 * defs.h (CPLUS_MARKER): Don't define.
2043 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2044 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2045 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2046 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2047 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2049 * config/i386/tm-i386v4.h: Delete file.
2050 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2051 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2052 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2053 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2054 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2055 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2056 * config/i386/i386v4.mt (TM_FILE): Likewise.
2057 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2059 2002-10-10 Marko Mlinar <markom@opencores.org>
2061 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2062 accidentially not commited 2002-10-09
2063 * gdbarch.h, gdbarch.c: Re-generate.
2065 2002-10-09 Marko Mlinar <markom@opencores.org>
2067 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2068 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2069 * gdbarch.h, gdbarch.c: Re-generate.
2071 2002-10-08 Petr Sorfa <petrs@caldera.com>
2073 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2075 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2076 so we can work on more than one compilation unit at a time. This
2077 helps prepare GDB to handle inter-CU die references.
2078 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2079 the code to be defined before struct comp_unit_head.
2080 (comp_unit_head): Added new members - offset, cu_head,
2081 begin_die, next and dwarf2_abbrevs.
2082 (dwarf2_abbrevs): Removed single static var; now member of
2083 struct comp_unit_head.
2084 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2086 (psymtab_to_symtab_1): Changed to work with the new
2087 struct comp_unit_head.
2088 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2089 constructs the dwarf2_abbrevs[] inside the cu_header.
2090 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2091 dwarf2_abbrev table to clean up.
2092 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2093 handling of dwarf2_abbrevs inside the cu_header.
2094 (read_partial_die): Now supports the call to the new
2095 dwarf2_lookup_abbrev.
2096 (read_full_die): Now supports the call to the new
2097 dwarf2_lookup_abbrev.
2099 2002-10-06 Christopher Faylor <cgf@redhat.com>
2101 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2102 insure that shell variables, such as "transformed_name" are propagated
2103 to later shell statements in rule.
2105 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2107 * config/i386/nm-i386sco.h: Add protection against
2108 multiple-inclusion. Include "i386/nm-i386v.h".
2109 (REGISTER_U_ADDR): Remove define.
2110 (i386_register_u_addr): Remove prototype.
2112 2002-10-04 Michael Snyder <msnyder@redhat.com>
2114 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2115 before treating it as a single-step event.
2117 2002-10-03 Adam Fedor <fedor@gnu.org>
2119 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2120 (objc_demangle): Remove assignment in if statements, Replace
2122 (add_msglist): Likewise.
2123 (end_msglist): Likewise.
2124 (complare_selectors): Likewise.
2125 (selectors_info): Likewise.
2126 (compare_classes): Likewise.
2127 (classes_info): Likewise.
2128 (print_object_command): Likewise.
2129 (find_objc_msgcall_submethod): Replace PTR with void *.
2130 * objc-lang.h: Remove check for __STDC__.
2132 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2134 * ui-out.h (ui_out_field_fmt_int): New prototype.
2135 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2136 of field width and alignment.
2137 * stack.c (print_frame_info_base): When printing frame level, use
2138 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2141 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2143 * MAINTAINERS: Add self to Write After Approval list.
2145 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2147 * infcmd.c (interrupt_target_command_wrapper): Delete.
2148 (interrupt_target_command): Make non static.
2149 (nofp_registers_info): Make static.
2150 * stack.c (return_command_wrapper): Delete.
2151 (return_command): Make non static.
2153 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2155 * event-top.c (gdb_setup_readline): New function. Code moved from
2156 _initialize_event_loop().
2157 (_initialize_event_loop): Call gdb_setup_readline().
2159 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2161 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2162 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2163 * gdbarch.h, gdbarch.c: Re-generate.
2165 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2168 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2170 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2171 of fill_in_vptr_fieldno.
2173 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2175 * inferior.h (registers_info, stepi_command, nexti_command,
2176 continue_command, interrupt_target_command): Export from infcmd.c.
2177 * frame.h (args_info, selected_frame_level_changed_hook,
2178 return_command): Export from stack.c.
2179 * v850ice.c (stepi_command, nexti_command, continue_command): use
2180 prototypes from inferior.h.
2181 * tracepoint.c (registers_info, args_info, locals_info): Use
2182 prototypes from frame.h and inferior.h.
2183 * Makefile.in (mi-main.o): Add dependency on frame.h.
2185 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2187 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2188 value in register 3 adjusted by ppc_gp0_regnum.
2190 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2192 2002-10-02 Marko Mlinar <markom@opencores.org>
2194 * MAINTAINERS: Add myself to the Write After Approval list.
2196 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2198 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2199 of the section for the N64 ABI, fixed.
2201 * config/mips/tm-irix6.h: Include solib.h.
2203 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2205 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2208 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2210 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2211 and that "mi0" syntax has been removed.
2213 2002-09-30 David Carlton <carlton@math.stanford.edu>
2215 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2216 * ppc-sysv-tdep.c: #include "gdb_string.h".
2217 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2220 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2222 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2223 "vrsave"'s register number.
2225 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2227 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2228 use frame_unwind_signed_register to obtain the PC.
2229 (mips_frame_chain): Handle a generic dummy frame.
2230 (mips_init_extra_frame_info): When a generic dummy frame, don't
2231 re-compute the frame base.
2232 (mips_pop_frame): Handle generic dummy frames.
2233 (mips_gdbarch_init): When generic dummy frames, set
2234 use_generic_dummy_frames, push_dummy_frame to
2235 generic_push_dummy_frame, pc_in_call_dummy to
2236 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2237 generic_save_dummy_frame_tos.
2239 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2241 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2242 against TOP when TOP was explictly set.
2243 (generic_push_dummy_frame): Set TOP to zero.
2245 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2247 * event-loop.c (start_event_loop): Rename variable 'result' to
2248 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2250 2002-09-30 Keith Seitz <keiths@redhat.com>
2252 * gdb-events.sh (selected_thread_changed): New event.
2253 * gdb-events.c: Regenerated.
2254 * gdb-events.h: Regenerated.
2256 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2258 * MAINTAINERS: Add self to Write After Approval list.
2260 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2262 * disasm.c: New file.
2263 * disasm.h: New file.
2264 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2265 (compare_lines): Ditto.
2266 (dump_insns): Ditto.
2267 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2269 (do_assembly_only): Ditto.
2270 (do_disassembly): Renamed to gdb_disassembly and moved to
2271 disasm.c. Sdded uiout argument.
2272 * Makefile.in: Add new files. Reorder SFILES list. Update
2273 dependencies. Include libgdb.a later in the insight executable.
2275 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2277 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2278 bfd/elf64-alpha-fbsd.c.
2280 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2282 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2285 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2287 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2289 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2291 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2292 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2293 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2294 (S_msg_sig_post_reply): Ditto.
2296 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2298 * sh-tdep.c (sh_use_struct_convention): Use definition according
2300 (sh_push_arguments): Store in register with correct endianess.
2301 (sh_default_store_return_value): Ditto.
2302 (sh_gdbarch_init): Set sizeof long double to 8.
2304 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2306 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2307 Fix some whitespace problems.
2309 2002-09-27 David Carlton <carlton@math.stanford.edu>
2311 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2312 (mcore-tdep.o): Ditto.
2313 (ns32k-tdep.o): Ditto.
2314 (ns32knbsd-tdep.o): Ditto.
2316 (vax-tdep.o): Ditto.
2317 * cris-tdep.c: #include "gdb_string.h"
2318 * mcore-tdep.c: Ditto.
2319 * ns32k-tdep.c: Ditto.
2320 * ns32knbsd-tdep.c: Ditto.
2322 * vax-tdep.c: Ditto.
2324 2002-09-27 David Carlton <carlton@math.stanford.edu>
2326 * config/djgpp/fnchange.lst: Add entries for
2327 gdb/testsuite/gdb.c++/m-static files.
2329 2002-09-27 Jim Wilson <wilson@redhat.com>
2331 * MAINTAINERS: Add myself to the Write After Approval list.
2333 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2335 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2338 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2340 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2343 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2345 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2346 (rs6000_struct_return_address): Delete variable.
2347 (rs6000_store_struct_return): Update.
2348 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2349 deprecated_extract_struct_value_address.
2350 (rs6000_frame_align): New function.
2351 (rs6000_gdbarch_init): Set frame_align.
2353 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2355 From Grace Sainsbury <graces@redhat.com>:
2356 * Makefile.in (gdbtk-main.o): New target.
2357 (gdb.o): New target.
2359 (main.o): Update dependencies.
2360 (gdb$(EXEEXT)): Add gdb.o.
2361 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2362 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2363 (SUBDIR_GDBTK_CLEAN): Set.
2364 (install-gdbtk): Install the insight binary.
2365 (uninstall-gdbtk): New target.
2366 (all-gdbtk, clean-gdbtk): New rule.
2367 * top.c (use_windows): Default to zero.
2368 * main.c: Include "main.h".
2370 (struct captured_main_args): Delete.
2371 (gdb_main): New function.
2375 2002-09-25 Andrew Cagney <cagney@redhat.com>
2377 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2378 (frame_map_regnum_to_name): New function.
2379 (frame_map_name_to_regnum): New function.
2380 * frame.h (frame_map_name_to_regnum): Declare.
2381 (frame_map_regnum_to_name): Declare.
2382 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2383 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2384 * parse.c: Do not include "builtin-regs.h".
2385 (target_map_name_to_register): Delete function.
2386 (write_dollar_variable): Use frame_map_name_to_regnum.
2387 * parser-defs.h (target_map_name_to_register): Delete declaration.
2388 * expprint.c: Include "frame.h".
2389 (print_subexp): Use frame_map_regnum_to_name.
2390 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2391 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2393 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2395 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2396 wasn't saved, and the next innermost frame is a dummy, return the
2397 dummy frame's link register.
2399 2002-09-24 Jim Blandy <jimb@redhat.com>
2401 Fix from Paul Breed:
2402 * main.c (captured_main): Add a `break' after the case for 'b'.
2404 2002-09-24 Keith Seitz <keiths@redhat.com>
2406 * varobj.c (c_type_of_child): Use get_target_type instead
2407 of TYPE_TARGET_TYPE.
2409 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2411 * source.c (get_current_or_default_source_symtab_and_line): Remove
2413 (set_default_source_symtab_and_line): New function. Attempts to
2414 determine a source file to list lines from if one is not currently
2416 (get_current_source_symtab_and_line): Initialize sal.pc and
2418 (set_current_source_symtab_and_line): Mark argument as const.
2419 * source.h: Update declarations and comments.
2420 * linespec.c (decode_line_1): Replace call to removed routine above.
2421 * stack.c (print_frame_info_base): Ditto.
2422 * cli/cli-cmds.c (edit_command): Ditto.
2423 (list_command): Ditto.
2425 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2427 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2428 sal.pc and sal.end fields.
2429 (get_current_or_default_source_symtab_and_line): Ditto.
2430 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2431 so we do not cause a new source symtab to be searched for (reverting an
2432 unintentional change from the 2002-09-20 patch).
2433 * scm-lang.c (scm_unpac): Ditto.
2435 2002-09-21 Andrew Cagney <cagney@redhat.com>
2437 * complaints.c (symfile_explanations): Remove new-line from
2438 ``isolated_message''.
2439 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2440 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2442 2002-09-20 Nick Clifton <nickc@redhat.com>
2444 * NEWS: Announce that V850EA ISA is no longer supported.
2445 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2447 2002-09-20 David Carlton <carlton@math.stanford.edu>
2449 * Makefile.in (c-lang.o): Correct dependencies.
2450 (utils.o): Gather dependencies.
2452 * c-lang.c: #include "gdb_string.h"
2454 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2456 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2457 * cli/cli-cmds.c (list_command): New function. Implements the new
2459 (_init_cli_cmds): Add new command definition.
2460 * gdb.1: Document edit command.
2461 * doc/gdb.texinfo: Document edit command.
2463 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2465 * source.c: Make global variables current_source_symtab and
2466 current_source_line static.
2467 (list_command): Moved to cli/cli-cmds.c.
2468 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2469 (get_first_line_listed): New accessor function.
2470 (get_lines_to_list): New accessor function.
2471 (get_current_source_symtab_and_line): New function. Retrieves the
2472 position in the source code that we consider current.
2473 (get_current_or_default_source_symtab_and_line): New function.
2474 Like the above but attempts to determine a default position if one
2475 is not currently defined.
2476 (set_current_source_symtab_and_line): New function. Sets the source
2477 code position considered current and returns the previously set one.
2478 (clear_current_source_symtab_and_line): Reset stored information about
2479 a current source line.
2480 (_initialize_source): Remove registration for the "list" command and
2482 * source.h: Add declarations for the new functions above.
2483 * symtab.h: Remove declarations for the global variables mentioned
2485 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2486 obtain current source line.
2487 * linespec.c (decode_line_1): Ditto.
2488 * macroscope.c (default_macro_scope): Ditto.
2489 * scm-lang.c (scm_unpac): Ditto.
2490 * stack.c (print_frame_info_base): Ditto.
2491 * symfile.c (clear_symtab_users): Ditto.
2492 * symtab.c (decode_line_spec): Ditto.
2493 * cli/cli-cmds.c (list_command): Moved here from source.c.
2494 (ambiguous_line_spec): Moved here from source.c.
2495 (_init_cli_cmds): Add definition for "list" and its alias.
2496 * Makefile.in: Update dependencies.
2498 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2500 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2501 with what gcc thinks is correct.
2503 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2505 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2506 multiple register push instruction.
2508 2002-09-19 Jim Blandy <jimb@redhat.com>
2510 Add support for distinct host and target character sets.
2511 * charset.c, charset.h: New files.
2512 * c-exp.y: #include "charset.h".
2513 (yylex): Convert character and string literals to the target
2514 character set, before returning them as the semantic value of the
2516 * c-lang.c: #include "charset.h".
2517 (c_emit_char): Use charset-specific methods to recognize
2518 characters with backslash escape forms, to decide which characters
2519 to print literally and which to print using numeric escape
2520 sequences, and to convert target characters to host characters
2522 * utils.c: #include "charset.h".
2523 (no_control_char_error): New function.
2524 (parse_escape): Use charset-specific methods to recognize
2525 backslash escapes, parse `control character' notation, and convert
2526 characters from the host character set to the target character set.
2527 * configure.in: Set the default host character set.
2528 Check where to find iconv, and what its argument types might be.
2529 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2530 * Makefile.in (SFILES): List charset.c.
2531 (COMMON_OBS): List charset.o.
2532 (charset.o): New rule.
2533 (charset_h): New header dependency variable.
2534 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2535 (LIBICONV): New variable, set by configure.
2536 (CLIBS): Include $(LIBICONV) here.
2537 * aclocal.m4, config.in, configure: Regenerated.
2539 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2541 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2544 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2546 * gdb_mbuild.sh: New file.
2548 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2550 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2552 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2554 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2555 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2556 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2557 valops.c, value.h: Revert previous change.
2559 2002-09-18 Michael Snyder <msnyder@redhat.com>
2561 Preliminary support for Objective-C:
2562 * defs.h (language_objc): New enum value.
2563 (puts_filtered_tabular): Declaration only, exported from utils.c.
2564 (skip_quoted): Delete, declared in completer.h.
2565 * c-exp.y: Include completer.h.
2568 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2569 New operator enum values.
2570 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2571 * language.c (binop_result_type): Handle language_objc case.
2572 (integral_type, character_type, string_type, boolean_type,
2573 structured_type, binop_type_check): Ditto.
2574 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2575 (struct objc_specific): Add to general_symbol_info.
2576 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2577 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2578 * parser-defs.h (struct objc_class_str): New struct type.
2579 (start_msglist, end_msglist, add_msglist): Declaration only,
2580 exported from objc-lang.c.
2581 * value.h (value_of_local, value_nsstring,
2582 call_function_by_hand_expecting_type): Exported from valops.c.
2583 * valops.c (find_function_addr): Export.
2584 (call_function_by_hand_expecting_type): New function.
2585 (value_of_local): New function.
2586 * symfile.c (init_filename_language_table): Add ".m" extension
2588 * utils.c (puts_filtered_tabular): New function.
2589 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2590 (set/show demangle): Extend help-string to refer to ObjC.
2591 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2592 * stabsread.c (symbol_reference_defined): Objective-C symbols
2593 may contain colons: make allowances when scanning stabs strings
2595 (objc_find_colon): New function.
2596 * printcmd.c (address_info): If language == objc then print
2597 "self" instead of "this".
2598 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2599 OP_NSSTRING, and OP_SELF.
2600 (prefixify_subexp): Ditto.
2601 * source.c (print_source_lines): Mention objc in comment.
2602 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2605 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2607 * complaints.h: Update copyright.
2608 (struct complaints): Declare.
2609 (struct complaint): Make `message' constant.
2610 (internal_complaint): Declare.
2611 (complaint): Declare.
2612 (complaint_root): Delete declaration.
2613 (symfile_complaints): Delete declaration.
2614 (struct complaints): Add opaque declaration.
2615 (clear_complaints): Add a complaints parameter.
2616 * complaints.c: Update copyright.
2617 (enum complaint_series): Define.
2618 (complaint_root): Delete.
2619 (struct complaints): Define.
2620 (complaint_sentinel, symfile_complaint_book): New variables.
2621 (symfile_explanations, symfile_complaints): New variables.
2623 (get_complaints): New function.
2624 (vcomplaint): New function.
2625 (complaint): New function.
2626 (internal_complaint): New function.
2627 (complain): Call vcomplain with symfile_complaint.
2628 (clear_complaints): Rewrite.
2629 (_initialize_complaints): Use add_setshow_command.
2630 * Makefile.in (complaints.o): Update dependencies.
2631 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2632 to call to clear_complaints.
2633 (new_symfile_objfile, reread_symbols): Ditto.
2634 (oldsyms_complaint): Delete.
2635 (empty_symtab_complaint, unknown_option_complaint): Delete.
2636 (free_named_symtabs): Use complaint instead of complain.
2638 2002-09-18 Michael Snyder <msnyder@redhat.com>
2640 Contributed by Apple Computer, Inc. Merged with current sources
2641 by Adam Fedor <fedor@doc.com> [cagney].
2643 * objc-lang.c: First clean-up round: comments, indentation.
2644 * objc-lang.h: Ditto.
2645 * objc-lang.y: Ditto.
2647 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2649 * maint.c (maintenance_internal_error): Print the parameter as the
2651 (maintenance_internal_warning): New function.
2652 (_initialize_maint_cmds): Add command `maint internal-warning'.
2654 * defs.h (internal_warning, internal_vwarning): Declare.
2655 * utils.c (struct internal_problem): Define.
2656 (internal_vproblem): New function.
2657 (internal_warning): New function.
2658 (internal_vwarning): New function.
2659 (internal_warning_problem, internal_error_problem): New variables.
2660 (internal_verror): Just call internal_vproblem.
2662 2002-09-18 Michael Snyder <msnyder@redhat.com>
2664 * objc-lang.c: New file, support for Objective-C.
2665 Preliminary check-in, not yet integrated into gdb.
2666 * objc-lang.h: New file.
2667 * objc-exp.y: New file.
2669 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2671 * infrun.c (signal_stop_update): Convert definition to ISO C.
2672 (signal_print_update): Ditto.
2673 (signal_pass_update): Ditto.
2674 * inflow.c (terminal_save_ours): Ditto.
2676 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2679 * config/djgpp/fnchange.lst: Handle name clashes between
2680 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2683 * i386-linux-tdep.h: Fix tipo.
2685 2002-09-18 Adam Fedor <fedor@gnu.org>
2687 * MAINTAINERS: Add myself to the Write After Approval list.
2689 2002-09-18 Jim Blandy <jimb@redhat.com>
2691 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2692 texthigh and textlow to reader-specific structs caused
2693 objfile_relocate to miss them. This is fixable, but the work that
2694 the change was supposed to prepare GDB for never got done anyway.
2696 2002-09-18 David Carlton <carlton@math.stanford.edu>
2698 * MAINTAINERS: Alphabetize Write After Approval list.
2700 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2703 * values.c (value_static_field): Call read_var_value.
2705 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2707 * valops.c (hand_function_call): Align the initial stack pointer
2708 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2709 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2711 * mips-tdep.c (mips_frame_align): New function.
2712 (mips_gdbarch_init): Set frame_align.
2713 * gdbarch.sh (FRAME_ALIGN): New method.
2714 * gdbarch.h, gdbarch.c: Re-generate.
2716 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2718 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2721 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2723 * NEWS: Mention that MIPS $fp behavior changed.
2724 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2725 reference to FP_REGNUM.
2726 (mipsnbsd_cannot_store_register): Ditto.
2727 * mips-linux-nat.c: Update copyright.
2728 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2729 (mips_linux_cannot_store_register): Ditto.
2730 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2731 * config/mips/tm-mips.h: Update copyright.
2732 (FP_REGNUM): Delete macro.
2733 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2734 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2735 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2736 (mips_r3041_reg_names, mips_r3051_reg_names)
2737 (mips_r3081_reg_names): Replace "fp" with "".
2740 2002-09-17 Theodore A. Roth <troth@verinet.com>
2742 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2743 generic_read_register_dummy() (PR gdb/703).
2744 (avr_push_return_address): #if 0 out unused vars.
2745 (avr_gdbarch_init): Enable use of avr_push_return_address().
2747 2002-09-17 Michael Snyder <msnyder@redhat.com>
2749 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2750 RTE will take care of it.
2752 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2754 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2755 invalid, return SP_REGNUM.
2757 2002-09-17 Michael Snyder <msnyder@redhat.com>
2759 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2760 point registers without sign extension.
2762 2002-09-17 Andrew Cagney <cagney@redhat.com>
2764 * blockframe.c (deprecated_read_register_dummy): Rename
2765 generic_read_register_dummy.
2766 * frame.c (frame_unwind_signed_register): New function.
2767 (frame_unwind_unsigned_register): New function.
2768 * frame.h (frame_unwind_signed_register): Declare.
2769 (frame_unwind_unsigned_register): Declare.
2770 (deprecated_read_register_dummy): Rename
2771 generic_read_register_dummy.
2773 * h8300-tdep.c (h8300_frame_chain): Update.
2774 (h8300_frame_saved_pc): Update.
2775 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2776 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2777 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2778 (s390_frame_chain): Update.
2779 * v850-tdep.c (v850_find_callers_reg): Update.
2780 (v850_frame_saved_pc): Update.
2781 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2782 (m32r_find_callers_reg): Update.
2783 (m32r_frame_saved_pc): Update.
2784 * sh-tdep.c (sh_find_callers_reg): Update.
2785 (sh64_get_saved_pr): Update.
2786 (sh_init_extra_frame_info): Update.
2787 (sh_init_extra_frame_info): Update.
2788 (sh64_init_extra_frame_info): Update.
2789 (sh64_init_extra_frame_info): Update.
2790 * mcore-tdep.c (mcore_find_callers_reg): Update.
2791 (mcore_frame_saved_pc): Update.
2792 (mcore_init_extra_frame_info): Update.
2793 * i386-tdep.c (i386_frame_saved_pc): Update.
2794 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2795 (ia64_init_extra_frame_info): Update.
2796 (ia64_init_extra_frame_info): Update.
2797 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2798 * cris-tdep.c (cris_init_extra_frame_info): Update.
2799 * avr-tdep.c (avr_frame_chain): Update.
2800 (avr_init_extra_frame_info): Update.
2801 (avr_frame_saved_pc): Update.
2802 * arm-tdep.c (arm_find_callers_reg): Update.
2803 (arm_init_extra_frame_info): Update.
2804 (arm_frame_saved_pc): Update.
2806 2002-09-17 Tom Tromey <tromey@redhat.com>
2808 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2811 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2813 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2814 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2816 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2819 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2821 * osfsolib.c: Remove file, replaced by solib-osf.c.
2822 * Makefile.in: Remove compilation rules for osfsolib.c.
2824 2002-09-16 David Carlton <carlton@math.stanford.edu>
2826 * cp-valprint.c (cp_print_class_method): Correct args to
2827 check_stub_method_group.
2829 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2831 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2832 `set architecture'. Unify naming convention of functions.
2833 (h8300_skip_prologue): Improve prologue analysis.
2834 (h8300_push_arguments): Rewritten to more closely match GCC's
2835 bizarre argument-passing behavior, along with the comment describing
2837 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2838 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2839 sim, remote-e7000.c, remote-hms.c and remote.c
2841 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2843 * i386-tdep.c (gdb_print_insn_i386): Removed.
2844 (i386_print_insn): New function.
2845 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2846 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2849 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2851 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2854 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2856 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2857 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2858 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2860 2002-09-13 Christopher Faylor <cgf@redhat.com>
2862 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2864 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2866 * gdbtypes.c (check_stub_method): Make static.
2867 (check_stub_method_group): New function.
2868 * gdbtypes.h: Update prototypes.
2869 * cp-support.c: New file.
2870 * cp-support.h: New file.
2872 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2873 (update_method_name_from_physname): New function.
2874 (read_member_functions): Correct method names for operators
2875 and v3 constructors/destructors. Separate v2 constructors and
2877 * Makefile.in (stabsread.o): Update dependencies.
2878 (SFILES): Add cp-support.c.
2879 (COMMON_OBS): Add cp-support.o.
2880 (cp_support_h, cp-support.o): Add.
2882 * cp-valprint.c (cp_print_class_method): Call
2883 check_stub_method_group instead of check_stub_method. Remove
2885 * p-valprint.c (pascal_object_print_class_method): Likewise.
2886 * valops.c (search_struct_method): Likewise.
2887 (find_method_list, value_struct_elt_for_reference): Likewise.
2889 2002-09-13 Andrew Cagney <cagney@redhat.com>
2891 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2892 * gdbarch.h, gdbarch.c: Regenerate.
2894 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2896 * frame.c (find_saved_register): Delete function.
2897 * frame.h (find_saved_register): Delete declaration.
2900 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2902 * mips-tdep.c (read_next_frame_reg): Re-hack using
2903 frame_register_unwind.
2905 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2907 * mips-tdep.c (mips_get_saved_register): Re-hack using
2908 frame_register_unwind.
2910 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2912 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2913 vector. Will be useful for Interix.
2914 * gdbarch.h, gdbarch.c: Regenerate.
2916 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2917 name of the malloc function by NAME_OF_MALLOC.
2919 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2921 * value.h (find_function_in_inferior): Add const keyword to
2922 one of the parameters. Allows us to invoke this function with
2924 * valops.c (find_function_in_inferior): Likewise.
2926 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2928 * exec.c (xfer_memory): Fix compilation warning with old versions
2930 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2932 2002-09-12 David Carlton <carlton@math.stanford.edu>
2934 * symtab.h: Run through gdb_indent.h.
2935 Add 2002 to Copyright year list.
2937 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2939 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2941 * MAINTAINERS: Add myself to write after approval list.
2943 2002-09-11 J. Brobecker <brobecker@gnat.com>
2945 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2947 2002-09-11 J. Brobecker <brobecker@gnat.com>
2949 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2952 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2954 * procfs.c (do_detach): Clear current signal, not just fault.
2955 Corrects problem with breakpoint trap signal leaking to detached
2958 2002-09-10 Michael Snyder <msnyder@redhat.com>
2960 * buildsym.c (finish_block): Protect against null pointer.
2962 2002-09-10 Andrew Cagney <cagney@redhat.com>
2964 * infcmd.c (default_print_registers_info): Send all output to
2965 ``file'' instead of ``gdb_stdout''.
2967 2002-09-10 Michael Snyder <msnyder@redhat.com>
2969 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2970 LONGEST, and use signed register read (addresses are sign-
2973 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2975 * event-loop.c (gdb_do_one_event): Make public.
2976 * event-loop.h (gdb_do_one_event): Declare.
2978 2002-09-10 Jeff Law <law@redhat.com>
2980 * infttrace.c (child_resume): Simplify and rework to avoid
2983 2002-09-09 Fred Fish <fnf@intrinsity.com>
2985 * printcmd.c (print_scalar_formatted): "len" is the number of
2986 target bytes, NOT the number of target bits.
2988 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2990 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2991 * top.c (init_main): Set rl_terminal_name.
2993 2002-09-08 Aidan Skinner <aidan@velvet.net>
2995 * ada-lang.c (ada_array_bound, ada_type_match,
2996 _initialize_ada_language): Fix K&R definitions.
2997 * ada-tasks.c (get_current_task): Fix K&R definitions.
2998 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3000 2002-09-07 Christopher Faylor <cgf@redhat.com>
3002 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3005 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3007 * i386-tdep.c (i386_register_virtual_type,
3008 i386_register_convertible, i386_register_convert_to_virtual,
3009 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3010 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3011 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3012 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3013 Don't set push_arguments twice.
3015 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3016 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3017 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3018 sigtramp_end to NULL.
3019 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3021 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3023 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3026 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3027 * gdbarch.h, gdbarch.c: Re-generate.
3028 * blockframe.c (find_pc_sect_partial_function): Convert to use
3029 SIGTRAMP_START_P predicate.
3031 2002-09-05 Michael Snyder <msnyder@redhat.com>
3033 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3034 generic_dummy_frame method and old method. Also distinguish
3035 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3036 (arm_extract_return_value): Use new regcache method.
3038 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3039 adjustment that doesn't conform to the ABI.
3040 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3041 saved regcache, not from current regcache.
3043 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3045 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3048 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3050 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3051 if arm_apcs_32 is false.
3053 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3055 GDB 5.3 branch created.
3057 2002-09-03 Theodore A. Roth <troth@verinet.com>
3059 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3060 generic_unwind_get_saved_register.
3062 2002-09-03 David Carlton <carlton@math.stanford.edu>
3064 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3065 argument (PR gdb/653). Update call to smash_to_method_type.
3066 (read_structure_scope): Update call to dwarf2_add_member_fn.
3068 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3070 * x86-64-linux-tdep.c: Include gdb_string.h
3071 * x86-64-linux-nat.c: Ditto.
3073 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3075 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3076 when YYDEBUG is set to 1.
3077 * c-exp.y: Likewise.
3078 * f-exp.y: Likewise.
3079 * jv-exp.y: Likewise.
3080 * m2-exp.y: Likewise.
3081 * p-exp.y: Likewise.
3083 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3085 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3087 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3088 solib_svr4_fetch_link_map_offsets to
3089 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3090 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3091 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3092 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3093 solib-svr4.o, and solib-legacy.o.
3094 * config/i386/tm-nbsd.h: Include solib.h.
3096 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3098 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3099 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3100 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3101 comment noting that this needs its own target configuration.
3102 * config/i386/nbsd.mt: New file.
3103 * config/i386/nbsdaout.mt: Remove.
3104 * config/i386/nbsdelf.mt: Ditto.
3105 * config/i386/tm-nbsdaout.h: Ditto.
3107 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3109 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3110 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3111 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3113 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3114 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3115 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3117 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3119 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3120 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3121 * i386-tdep.h (i386bsd_init_abi): New prototype.
3122 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3123 function declaration.
3124 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3125 for NetBSD-a.out or NetBSD-ELF.
3126 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3127 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3128 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3129 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3131 (i386nbsd_pc_in_sigtramp): New function.
3132 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3133 i386nbsd_pc_in_sigtramp.
3134 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3135 and i386nbsdelf_init_abi OS ABI handlers.
3136 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3137 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3139 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3141 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3142 registers if the target really has them.
3144 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3146 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3149 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3151 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3153 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3154 (alphanbsd_skip_sigtramp_frame): New functions.
3155 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3156 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3157 to alphanbsd_sigcontext_addr.
3159 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3161 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3163 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3164 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3165 nbsd_pc_in_sigtramp.
3166 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3167 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3168 * nbsd-tdep.c: Include gdb_string.h.
3169 (nbsd_pc_in_sigtramp): New function.
3170 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3171 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3172 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3173 ppcnbsd_pc_in_sigtramp.
3174 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3175 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3176 shnbsd_pc_in_sigtramp.
3177 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3178 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3179 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3181 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3183 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3184 watchpoints to NULL.
3185 (insert_breakpoints): set val field of watchpoints if NULL.
3188 2002-08-29 Jim Blandy <jimb@redhat.com>
3190 * symtab.c (lookup_symbol_aux): In the cases where we find a
3191 minimal symbol of an appropriate name and use its address to
3192 select a symtab to read and search, use `name' (as passed to us)
3193 as the demangled name when searching the symtab's global and
3194 static blocks, not the minsym's name.
3196 2002-08-29 Keith Seitz <keiths@redhat.com>
3198 * stack.c (print_frame_info_base): Always set current_source_symtab
3199 and current_source_line.
3201 2002-08-29 Donn Terry <donnte@microsoft.com>
3203 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3205 2002-08-28 Keith Seitz <keiths@redhat.com>
3207 * stack.c (select_frame): Add FIXME concerning selected-frame
3209 (select_frame_command): Send selected-frame-level-changed
3210 event notification, but only if the level actually changed.
3211 (up_silently_base): Add selected-frame-level-changed event
3213 (down_silently_base): Likewise.
3215 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3217 * Makefile.in: Update dependencies for all gdb/*.c files.
3219 2002-08-27 Tom Tromey <tromey@redhat.com>
3221 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3222 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3223 Update dependencies.
3224 * i387-tdep.c: Include gdb_string.h.
3225 * osabi.c: Likewise.
3226 * i386-linux-nat.c: Likewise.
3227 * lin-lwp.c: Likewise.
3228 * ax-gdb.c: Likewise.
3229 * signals/signals.c: Likewise.
3230 * jv-valprint.c: Likewise.
3231 * p-lang.c: Likewise.
3232 * c-valprint.c: Likewise.
3233 * cp-abi.c: Likewise.
3235 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3237 * cli/cli-script.h (copy_command_lines): Export.
3238 * breakpoint.c: Include cli/cli-script.h.
3239 * Makefile.in (breakpoint.o): Update dependencies.
3241 2002-08-26 Michael Snyder <msnyder@redhat.com>
3243 * breakpoint.c (insert_breakpoints): Protect all references
3244 to 'process_warning'. Shorten long lines.
3246 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3248 * cli/cli-script.c (copy_command_lines): New function.
3249 * defs.h (copy_command_lines): Export.
3250 * testsuite/gdb.base/commands.exp: New tests for commands
3251 attached to a temporary breakpoint, and for commands that
3252 delete the breakpoint they are attached to.
3254 2002-08-26 Michael Snyder <msnyder@redhat.com>
3256 * breakpoint.c (bpstat_stop_status): Instead of copying the
3257 pointer to the breakpoint commands struct, make a new copy
3258 of the struct and point to that.
3259 (bpstat_clear): Free the commands struct.
3260 (bpstat_clear_actions): Free the commands struct.
3261 (bpstat_do_actions): Free the command actions. Also execute
3262 the local cleanups, instead of deleting them.
3263 (delete_breakpoint): Leave the commands field of the bpstat
3264 chain alone -- it will be freed later.
3266 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3268 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3269 deleted in 2002-08-20 commit. This function is still used by
3272 2002-08-26 Keith Seitz <keiths@redhat.com>
3274 * gdb-events.sh: Add selected-frame-level-changed event.
3275 * gdb-events.c: Regenerated.
3276 * gdb-events.h: Regenerated.
3278 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3281 * inflow.c (terminal_save_ours): New function to save terminal
3283 * inferior.h (terminal_save_ours): Declare.
3284 * target.c (debug_to_terminal_save_ours): New function.
3285 (cleanup_target): Defaults to_terminal_save_ours.
3286 (update_current_target): Inherit to_terminal_save_ours.
3287 (setup_target_debug): Set to_terminal_save_ours.
3288 * target.h (target_terminal_save_ours): New to save terminal settings.
3289 (target_ops): New member to_terminal_save_ours.
3290 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3291 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3292 * inftarg.c (init_child_ops): Likewise.
3293 * m3-nat.c (init_m3_ops): Likewise.
3294 * procfs.c (init_procfs_ops): Likewise.
3295 * wince.c (init_child_ops): Likewise.
3296 * win32-nat.c (init_child_ops): Likewise.
3297 * sol-thread.c (init_sol_thread_ops): Likewise.
3299 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3301 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3302 use regcache_* functions.
3303 (i386_gdbarch_init): Set store_return_value instead of
3304 deprecated_store_return_value.
3306 * regcache.c (regcache_raw_write_signed,
3307 regcache_raw_write_unsigned): New functions.
3308 * regcache.h (regcache_raw_write_signed,
3309 regcache_raw_write_unsigned): New prototypes.
3311 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3313 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3314 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3315 source file dependencies. Cleanup corresponding generator rules.
3317 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3319 * regcache.h (register_offset_hack): Declare.
3320 (regcache_cooked_read_using_offset_hack): Declare.
3321 (regcache_cooked_write_using_offset_hack): Declare.
3323 * regcache.c (register_offset_hack): New function.
3324 (regcache_cooked_read_using_offset_hack): New function.
3325 (regcache_cooked_write_using_offset_hack): New function.
3326 (regcache_dump): Check that the registers, according to their
3327 offset, are packed hard against each other.
3328 (cooked_xfer_using_offset_hack): New function.
3330 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3332 * regcache.c (struct regcache_descr): Add field register_type.
3333 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3335 (init_regcache_descr): Initialize register_type. Pass the descr
3336 to init_legacy_regcache_descr. Use register_type instead of
3337 REGISTER_VIRTUAL_TYPE.
3338 (register_type): New function.
3339 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3340 * regcache.h (register_type): Declare.
3342 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3344 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3345 instead of deprecated_store_return_value. Fix fallout from
3346 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3348 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3350 * regcache.c (max_register_size): New function.
3351 (init_legacy_regcache_descr): Ensure that max_register_size is
3352 large enough for REGISTER_VIRTUAL_SIZE.
3353 * regcache.h (max_register_size): Declare.
3355 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3357 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3359 (e500_extract_return_value): Change type of valbuf pointer to
3362 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3364 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3367 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3368 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3369 long long) to prevent compiler warning on 64-bit systems.
3371 2002-08-23 Andrew Cagney <cagney@redhat.com>
3373 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3374 (DEPRECATED_STORE_RETURN_VALUE): New method.
3375 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3376 * gdbarch.h, gdbarch.c: Re-generate.
3378 * values.c (set_return_value): Pass current_regcache to
3380 * arch-utils.h (legacy_store_return_value): Declare.
3381 * arch-utils.c (legacy_store_return_value): New function.
3382 (legacy_extract_return_value): Update parameters.
3384 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3386 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3387 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3388 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3389 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3390 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3391 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3392 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3393 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3394 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3395 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3398 * i386-tdep.c (i386_extract_return_value): Update.
3399 * arch-utils.c (legacy_extract_return_value): Update.
3400 * frv-tdep.c (frv_gdbarch_init): Update.
3401 * cris-tdep.c (cris_gdbarch_init): Update.
3402 * d10v-tdep.c (d10v_gdbarch_init): Update.
3403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3404 * m68k-tdep.c (m68k_gdbarch_init): Update.
3405 * mcore-tdep.c (mcore_gdbarch_init): Update.
3406 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3407 * s390-tdep.c (s390_gdbarch_init): Update.
3408 * sparc-tdep.c (sparc_gdbarch_init): Update.
3409 * sh-tdep.c (sh_gdbarch_init): Update.
3410 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3411 * v850-tdep.c (v850_gdbarch_init): Update.
3412 * avr-tdep.c (avr_gdbarch_init): Update.
3413 * ia64-tdep.c (ia64_gdbarch_init): Update.
3414 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3415 * vax-tdep.c (vax_gdbarch_init): Update.
3416 * alpha-tdep.c (alpha_gdbarch_init): Update.
3417 * arm-tdep.c (arm_gdbarch_init): Update.
3418 * mips-tdep.c (mips_gdbarch_init): Update.
3419 * i386-tdep.c (i386_gdbarch_init): Update.
3421 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3423 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3424 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3426 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3428 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3431 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3433 * infrun.c (handle_inferior_event): Move a comment outside of a
3434 function call, in order to avoid indent reformatting this part
3435 of the code in an unreadable way.
3437 2002-08-23 Grace Sainsbury <graces@redhat.com>
3439 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3440 when breakpoints fail. Move general breakpoint error messages to
3442 * breakpoint.c (insert_breakpoints): Change warnings when
3443 breakpoints are nto inserted to specify the type. Remove call to
3444 memory_error when hardware breakpoints can't be inserted. Remove
3445 multiple calls to warning so all messages are sent to the user at
3447 (delete_breakpoints): Make insert error messsages more explicit.
3449 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3451 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3452 gdbserver/ChangeLog.
3454 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3456 * i386-tdep.c: Include "objfiles.h".
3457 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3458 skip_trampoline_code.
3459 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3460 (CPLUS_MARKER): Define to '.'.
3462 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3464 (linux_corefile_thread_callback): Increase args->num_notes.
3465 (linux_make_note_section): Initialize thread_args.num_notes, and
3466 use it to determine whether notes for any threads were created.
3468 2002-08-23 Donn Terry <donnte@microsoft.com>
3470 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3471 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3473 (write_with_trace): Conditionalize out the switch branch handling
3474 PCSHOLD if the corresponding macro is not defined. Likewise for
3475 PRSABORT and PRSTOP.
3476 This change will be needed by the Interix port.
3478 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3480 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3481 write_register wherever possible instead of manipulating the
3482 register bytes directly.
3483 Assign VALUE_CONTENTS to a variable and use that.
3484 The GPR numbers are now dependent on the architecture.
3486 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3488 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3490 (skip_prologue): Add support for BookE/e500 instructions.
3491 (e500_extract_return_value): New function.
3492 (frame_get_saved_regs): Add support for saving ev registers and
3494 (e500_store_return_value): New function.
3495 (rs6000_gdbarch_init): Move up default intializations of
3496 deprecated_extract_return_value and store_return_value. Overwrite
3497 init of store_return_value with e500 specific version.
3498 Set extract_return_value for e500.
3500 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3502 * blockframe.c (generic_call_dummy_register_unwind): Use
3503 regcache_cooked_read to catch cases in which the variable is
3504 stored in a pseudo register.
3506 2002-08-22 Andrew Cagney <cagney@redhat.com>
3508 * NEWS: Mention that the i960 has been made obsolete.
3509 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3511 (remote-nrom.o): Obsolete target.
3512 (remote-nindy.o, i960-tdep.o): Ditto.
3513 * remote-nrom.c: Make file obsolete.
3514 * remote-nindy.c, remote-vx960.c: Ditto.
3515 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3516 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3517 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3518 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3519 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3520 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3521 i960-*-vxworks* obsolete.
3522 * MAINTAINERS: Note that the i960 is obsolete.
3524 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3526 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3527 detach to allow reinitialization.
3529 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3531 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3534 2002-08-22 Jim Blandy <jimb@redhat.com>
3536 * coffread.c (coff_symfile_read): Don't try to read the line
3537 number table from disk if the image file doesn't have a symbol
3538 table; we'll never actually look at the info anyway, and Windows
3539 ships DLL's with bogus file offsets for the line number data.
3541 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3543 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3546 2002-08-21 Michael Snyder <msnyder@redhat.com>
3548 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3549 (MSYMBOL_SIZE): Replace macro with function.
3550 (DEFAULT_MIPS_TYPE): Delete unused macro.
3551 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3552 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3554 2002-08-21 Jim Blandy <jimb@redhat.com>
3556 * valops.c (value_cast): Simplify and correct logic for doing a
3557 static cast from a pointer to a base class to a pointer to a
3560 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3562 * infcmd.c (default_print_registers_info): Replace
3564 (registers_info): Use gdbarch_print_registers_info instead of
3566 * inferior.h (default_print_registers_info): Replace
3568 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3569 (DO_REGISTERS_INFO): Change to a predicate function.
3570 * gdbarch.h, gdbarch.c: Regenerate.
3572 2002-08-21 Keith Seitz <keiths@redhat.com>
3574 * gdb-events.sh: Add target-changed event.
3575 * gdb-events.c: Regenerated.
3576 * gdb-events.c: Regenerated.
3577 * valops.c (value_assign): Add target-changed event notification
3578 to inlval_register, lval_memory, and lval_reg_frame_relative.
3580 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3582 * NEWS: Add an entry regarding the improvement of the next/step
3583 operation on Alpha Tru64 multi-processor machines.
3585 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3587 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3589 * Makefile.in: Update all _h macro definitions.
3590 * Makefile.in (install-gdbtk): Move to install section.
3591 (rdi-share/libangsd.a): Move to end of file.
3593 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3595 * frame.c (frame_register_unwind): When a register, set addrp to
3596 the register's byte.
3598 2002-08-20 Michael Snyder <msnyder@redhat.com>
3600 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3601 used locally, so move them from the target machine header to here.
3602 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3603 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3605 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3607 2002-08-20 Andrew Cagney <cagney@redhat.com>
3609 * NEWS: Mention that the Apollo line was made obsolete.
3610 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3611 m68*-hp-hpux* obsolete.
3612 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3613 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3614 * buildsym.c (make_blockvector): Make static.
3615 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3616 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3617 (ALLDEPFILES): Remove dstread.c.
3618 (dstread.o): Obsolete make rule.
3619 * dstread.c: Makefile obsolete.
3621 * config/m68k/hp300hpux.mt: Ditto.
3622 * config/m68k/hp300hpux.mh: Ditto.
3623 * config/m68k/hp300bsd.mt: Ditto.
3624 * config/m68k/hp300bsd.mh: Ditto.
3625 * config/m68k/apollo68b.mt: Ditto.
3626 * config/m68k/apollo68v.mh: Ditto.
3627 * config/m68k/apollo68b.mh: Ditto.
3629 2002-08-20 Michael Snyder <msnyder@redhat.com>
3631 * mips-tdep.c (mips_in_return_stub): Make static.
3632 (mips_gdbarch_init): Set in_solib_return_trampoline.
3633 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3635 2002-08-20 Michael Snyder <msnyder@redhat.com>
3637 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3638 * gdbarch.c, gdbarch.h: Regenerate.
3639 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3641 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3643 2002-08-20 Michael Snyder <msnyder@redhat.com>
3645 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3646 (mips_gdbarch_init): Set skip_trampoline_code,
3647 in_solib_call_trampoline.
3648 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3649 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3651 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3653 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3655 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3656 vector type for ev registers.
3657 (e500_pseudo_register_read): New function.
3658 (e500_pseudo_register_write): New function.
3659 (e500_dwarf2_reg_to_regnum): New function.
3660 (PPC_UISA_NOFP_SPRS): New macro.
3661 (PPC_EV_REGS): New macro.
3662 (PPC_GPRS_PSEUDO_REGS): New macro.
3663 (registers_e500): New register set for e500.
3664 (variants): Add e500 variant.
3665 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3666 before setting architectural dependent variations. Initialize ev
3667 registers numbers. Add case for e500 architecture. Set the
3668 number of pseudo registers.
3670 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3672 * rs6000-tdep.c: Clean up comments.
3674 2002-08-20 Andrew Cagney <cagney@redhat.com>
3676 * h8300-tdep.c: Re-indent file.
3678 2002-08-20 Jim Blandy <jimb@redhat.com>
3680 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3683 2002-08-20 Keith Seitz <keiths@redhat.com>
3685 * breakpoints.c (watch_command_1): Use internal breakpoint
3686 when setting a watchpoint_scope breakpoint.
3688 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3690 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3691 (build_builtin_type_vec64i): Ditto.
3692 (build_builtin_type_vec128): Ditto.
3693 (build_builtin_type_vec128i): Ditto.
3695 2002-08-19 Michael Snyder <msnyder@redhat.com>
3697 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3698 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3699 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3700 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3701 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3702 CALL_DUMMY_ADDRESS): Delete.
3703 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3704 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3705 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3706 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3707 push_return_address.
3708 (mips_register_raw_size, mips_eabi_use_struct_convention,
3709 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3710 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3711 mips_init_extra_frame_info, mips_eabi_push_arguments,
3712 mips_n32n64_push_arguments, mips_push_return_address,
3713 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3714 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3716 2002-08-19 Michael Snyder <msnyder@redhat.com>
3718 * mips-tdep.c (mips_frame_num_args): New function.
3719 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3720 frame_saved_pc, frame_args_address, frame_locals_address,
3721 frame_num_args, and frame_args_skip.
3722 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3723 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3724 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3725 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3727 2002-08-20 Michael Snyder <msnyder@redhat.com>
3729 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3730 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3731 * mips-tdep.c (mips_store_struct_return): New function.
3732 (mips_extract_struct_value_address): New function.
3733 (mips_gdbarch_init): Set store_struct_return and
3734 extract_struct_value_address.
3736 2002-08-20 David Carlton <carlton@math.stanford.edu>
3738 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3739 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3740 (read_file_scope): Check that line_header is nonzero before
3741 decoding macro information.
3743 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3745 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3746 flag the general-purpose registers as floating-point on targets
3747 that don't support the floating-point registers.
3749 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3751 * rs6000-tdep.c (altivec_register_p): Delete.
3752 (rs6000_do_altivec_registers): Delete.
3753 (rs6000_altivec_registers_info): Delete.
3754 (rs6000_do_registers_info): Delete.
3755 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3756 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3758 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3760 * infcmd.c (do_registers_info): Print vector registers in hex
3762 (print_vector_info): Check that printing registers
3764 (print_float_info): Ditto.
3766 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3768 * mips-tdep.c (mips_gdbarch_init): Update.
3769 (mips_o32_extract_return_value): Rewrite.
3770 (mips_o32_store_return_value): Rewrite.
3771 (mips_o32_xfer_return_value): New function.
3772 (mips_xfer_register): Tweak debug print message. Allow for
3773 buf_offset when dumping the value transfered.
3775 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3777 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3778 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3779 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3780 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3781 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3783 2002-08-14 Michael Snyder <msnyder@redhat.com>
3785 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3787 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3789 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3791 (P): New macro to define a register as a pseudo register.
3792 (R, R4, R8, R16, FR32, R64, R0): Updated.
3793 (struct variant): Add new fields for number of pseudo registers
3794 and number of total registers.
3795 (tot_num_registers): New macro replacing....
3796 (num_registers): ...deleted macro.
3797 (num_registers): New function.
3798 (num_pseudo_registers): New function.
3799 (variants): Update all variants to intialize new fields correctly.
3800 Postpone initialization of number of pseudo regs and real regs.
3801 (init_variants): New function.
3802 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3805 2002-08-19 David Carlton <carlton@math.stanford.edu>
3807 * valops.c (search_struct_field): Change error message to treat
3808 return value of 0 from value_static_field as meaning that field is
3810 (value_struct_elt_for_reference): Ditto.
3811 * values.c (value_static_field): Treat an unresolved location the
3812 same as a nonexistent symbol. Fix PR gdb/635.
3813 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3814 enclosed. Fix PR gdb/574.
3815 * MAINTAINERS: Add self to Write After Approval list.
3817 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3819 * mips-tdep.c (mips_xfer_register): New function.
3820 (mips_n32n64_extract_return_value): Rewrite.
3821 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3822 instead of deprecated_extract_return_value.
3824 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3826 * rs6000-tdep.c (TDEP): Delete macro.
3827 (branch_dest): Replace use of TDEP macro with its body.
3828 (rs6000_pop_frame): Ditto.
3829 (rs6000_push_arguments): Ditto.
3830 (rs6000_skip_trampoline_code): Ditto.
3831 (rs6000_frame_saved_pc): Ditto.
3832 (rs6000_frame_chain): Ditto.
3833 (rs6000_register_name): Ditto.
3834 (rs6000_register_byte): Ditto.
3835 (rs6000_register_raw_size): Ditto.
3836 (rs6000_register_virtual_type): Ditto.
3837 (rs6000_register_convertible): Ditto.
3838 (rs6000_convert_from_func_ptr_addr): Ditto.
3840 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3842 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3844 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3845 MIPS_LINUX_JB_ELEMENT_SIZE.
3846 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3847 for MAX_REGISTER_RAW_SIZE arrays.
3848 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3849 MIPS_LINUX_JB_ELEMENT_SIZE.
3851 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3853 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3855 2002-08-19 Aidan Skinner <aidan@velvet.net>
3857 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3858 ada-valprint.c ada-tasks.c.
3859 (YYFILES): Add ada-exp.y.
3860 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3861 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3862 (ada-exp.tab.o): New target.
3864 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3866 * regcache.c (regcache_xfer_part): New function.
3867 (regcache_raw_read_part): New function.
3868 (regcache_raw_write_part): New function.
3869 (regcache_cooked_read_part): New function.
3870 (regcache_cooked_write_part): New function.
3871 * regcache.h (regcache_raw_read_part): Declare.
3872 (regcache_raw_write_part): Declare.
3873 (regcache_cooked_read_part): Declare.
3874 (regcache_cooked_write_part): Declare.
3876 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3878 * remote.c (remote_open_1): Add async_p.
3879 (remote_async_open_1): Delete.
3880 (open_remote_target): Delete.
3881 (remote_open, extended_remote_open): Update calls to remote_open_1.
3882 (remote_async_open, extended_remote_async_open): Call
3883 remote_open_1 instead of remote_async_open_1.
3885 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3887 * blockframe.c: Fix a few coding standard violations.
3889 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3891 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3893 * config/i386/tm-i386sco5.h: ... here. File removed.
3894 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3896 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3897 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3898 (TM_FILE): Set to tm-i386.h.
3899 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3900 * config/i386/tm-i386v.h: Remove file.
3901 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3902 instead of "i386/tm-i386v.h".
3903 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3904 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3906 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3907 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3910 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3912 * config/i386/nm-i386v.h: Add protection against
3914 (i386_register_u_addr): Remove prototype.
3915 (register_u_addr): New prototype.
3916 (REGISTER_U_ADDR): Redefine accordingly.
3917 * i386v-nat.c: Improve several comments.
3918 (i386_register_u_addr): Change signature and rename to
3919 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3922 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3924 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3925 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3926 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3927 deprecated_extract_return_value.
3928 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3929 rename mips_o32o64_push_arguments.
3930 (mips_gdbarch_init): Update.
3931 (mips_extract_return_value): Delete.
3932 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3933 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3934 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3935 (mips_n32n64_extract_return_value): Clone
3936 mips_extract_return_value.
3937 (mips_store_return_value): Delete.
3938 (mips_o32_store_return_value): Clone mips_store_return_value.
3939 (mips_o64_store_return_value): Clone mips_store_return_value.
3940 (mips_eabi_store_return_value): Clone mips_store_return_value.
3941 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3943 2002-08-18 Aidan Skinner <aidan@velvet.net>
3945 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3946 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3948 2002-08-18 Aidan Skinner <aidan@velvet.net>
3950 * ada-lang.c: Run through gdb_indent.sh.
3951 * ada-lang.h: Run through gdb_indent.sh.
3952 * ada-tasks.c: Run through gdb_indent.sh.
3953 * ada-typeprint.c: Run through gdb_indent.sh.
3954 * ada-valprint.c: Run through gdb_indent.sh.
3956 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3958 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3961 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3963 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3965 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3966 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3968 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3969 write_register_gen instead of write_register_bytes.
3971 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3972 i[3456]-*-osf1mk* configurations have been made obsolete.
3973 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3974 i[3456]86-*-osf1mk* hosts obsolete.
3975 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3977 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3978 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3979 config/i386/i386m3.mt, config/i386/nm-m3.h,
3980 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3981 config/i386/i386mk.mh, config/i386/i386mk.mt,
3982 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3984 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3985 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3986 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3988 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3990 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3991 (hppa_value_returned_from_stack): Declare.
3992 (hppa_extract_return_value): Declare.
3993 * config/pa/hppa.mt: New file.
3994 * configure.tgt: Recognize hppa*-*-*.
3995 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3997 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3999 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4002 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4004 * top.c (gdb_rl_operate_and_get_next): Make sure
4005 operate-and-get-next functions correctly even when the history
4006 list is completely filled.
4008 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4010 * MAINTAINERS (Target Instruction Set Architectures): Rename
4011 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4012 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4013 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4014 already listed under Host/Native.
4016 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4017 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4020 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4022 * config/ia64/ia64.mt: New file.
4023 * config/alpha/alpha.mt: New file.
4024 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4025 ia64-linux-gnu. Mention that ia64-elf is broken.
4026 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4028 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4030 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4031 generic_func_frame_valid instead of func_frame_valid.
4033 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4035 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4036 procfs appears to be broken when debugging on multi-processor
4037 machines. So enable software single stepping in order to avoid
4038 using the procfs interface to do next/step operations, using
4039 internal breakpoints instead.
4041 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4042 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4043 make this pc address equal to the value it would have if the
4044 system stepping capability was used. Also set a new flag used
4045 to ensure that we don't readjust the PC one more time later.
4047 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4048 address by DECR_PC_AFTER_BREAK when software single step is
4049 in use for this architecture, as this has already been taken
4050 care of in handle_inferior_event().
4052 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4054 * infrun.c (handle_inferior_event): Minor reformatting, to make
4055 a rather long condition expression easier to read.
4057 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4059 * Makefile.in (gdbtk.o): Move to end of file.
4060 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4061 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4062 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4063 (gdbtk-wrapper.o, gdbres.o): Ditto.
4065 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4067 * Makefile.in (copying.o): Separate out compile rule.
4068 (hpux-thread.o, procfs.o, signals.o): Ditto.
4069 (v850ice.o, z8k-tdep.o): Ditto.
4070 (tui-file.o): Move to TUI section.
4071 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4072 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4074 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4076 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4077 skip_trampoline_code, for better namespace-proofing.
4079 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4081 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4083 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4085 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4087 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4088 signal, check whether we hit a breakpoint before checking for a
4089 single step breakpoint. Otherwise, GDB fails to notice that a
4090 breakpoint has been hit when stepping onto a breakpoint.
4092 2002-08-16 Keith Seitz <keiths@redhat.com>
4094 * gdb-events.sh (clear_gdb_event_hooks): New function.
4095 * gdb-events.c: Regenerate.
4096 * gdb-events.h: Regenerate.
4098 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4100 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4101 not_a_sw_breakpoint.
4102 * breakpoint.h (bpstat_stop_status): Add parameter names.
4104 2002-08-16 Grace Sainsbury <graces@redhat.com>
4106 * remote.c (remote_insert_hw_breakpoint)
4107 (remote_remove_hw_breakpoint): Fix calculation of length field
4110 2002-08-15 Michael Snyder <msnyder@redhat.com>
4112 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4113 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4114 (supply_fpregset): Ditto.
4116 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4117 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4118 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4119 (TARGET_READ_SP): Delete.
4120 (DO_REGISTERS_INFO): Delete.
4121 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4123 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4124 from macros to functions.
4126 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4127 (mips_register_convertible, mips_register_convert_to_virtual,
4128 mips_register_convert_to_raw): Make static.
4129 (mips_read_sp): New function.
4130 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4131 (mips_do_registers_info): Make static.
4132 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4133 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4134 (mips_register_convert_from_type, mips_register_convert_to_type):
4136 (mips_gdbarch_init): Set up function_start_offset,
4137 register_virtual_size, pc_in_sigtramp.
4139 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4141 * infcmd.c (vector_info): New function.
4142 (_initialize_infcmd): Add command "info vector".
4143 (print_vector_info): New function.
4145 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4146 * gdbarch.h, gdbarch.c: Regenerate.
4148 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4150 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4151 ``print_all''. Only print vector registers when ``print_all''.
4153 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4155 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4156 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4158 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4159 Add `args' parameter.
4160 * gdbarch.h, gdbarch.c: Regenerate.
4162 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4164 * infcmd.c (float_info): Call print_float_info.
4165 (print_float_info): New function. By default, print the
4166 floating-point registers.
4168 * arch-utils.h (default_print_float_info): Delete declaration.
4169 * arch-utils.c (default_print_float_info): Delete function.
4171 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4173 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4176 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4179 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4180 * configure.host: Make i[3456]86-*-aix host obsolete.
4181 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4182 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4183 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4184 config/i386/xm-i386aix.h: Make files obsolete.
4185 * i386aix-nat.c: Make file obsolete.
4186 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4187 (i386aix-nat.o): Make target obsolete.
4189 * config/i386/nm-gnu.h: Removed.
4190 * config/i386/nm-i386gnu.h: New file.
4191 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4192 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4194 * config/i386/tm-i386gnu.h: ... here. Removed.
4195 * config/i386/xm-i386gnu.h: Removed.
4196 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4197 (NAT_FILE): Set to nm-i386gnu.h.
4198 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4199 * i386-tdep.c: New file.
4200 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4201 (i386gnu-tdep.o): Specify dependencies.
4203 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4205 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4206 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4207 Adjust a few comments to reflect reality a bit closer.
4208 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4209 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4210 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4211 target_insert_watchpoint, target_remove_watchpoint):
4213 * config/i386/nm-i386sco5.h: ... here.
4214 (kernel_u_size): Add prototype. Improve a few comments and add
4215 protection against multiple inclusion.
4217 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4220 * uw-thread.c (SP_ARG0): Define if not already defined.
4221 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4223 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4225 * config/i386/tm-i386.h: Don't include "regcache.h".
4227 * i387-tdep.h (i387_print_float_info): New prototype.
4228 * i387-tdep.c (print_i387_value, print_i387_ext,
4229 print_i387_status_word, print_i387_control_word): Add `struct
4230 ui_file *' argument and use it for output.
4231 (i387_print_float_info): Renamed from i387_float_info. Add
4232 `struct gdbarch *' and `struct ui_file *' arguments and use the
4234 * i386-tdep.c: Include "i387-tdep.h".
4235 (i386_gdbarch_init): Set print_float_info.
4236 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4237 (FLOAT_INFO): Remove define.
4239 2002-08-13 Michael Snyder <msnyder@redhat.com>
4241 * mips-tdep.c (mips_push_arguments): Rename to
4242 mips_eabi_push_arguments, and tune for EABI.
4243 (MIPS_REGS_HAVE_HOME_P): Delete.
4244 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4245 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4246 Delete references to mips_regs_have_home_p.
4248 2002-08-14 Keith Seitz <keiths@redhat.com>
4250 * Makefile.in (install-gdbtk): Create insight plugin directory.
4251 Install plugins.tcl file.
4253 2002-08-14 Keith Seitz <keiths@redhat.com>
4255 * configure.in: Move SUBDIRS to near top of the file so that
4256 --enable options may add things to it.
4257 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4258 * configure: Regenerate.
4260 2002-08-13 Michael Snyder <msnyder@redhat.com>
4262 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4263 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4264 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4266 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4268 * vax-tdep.c (vax_get_saved_register): Delete function.
4269 (vax_gdbarch_init): Update.
4270 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4271 (ns32k_gdbarch_init): Update.
4272 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4273 (alpha_gdbarch_init): Update.
4275 2002-08-13 Andrew Cagney <cagney@redhat.com>
4277 * regcache.c (init_regcache_descr): Overallocate the
4278 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4279 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4281 (set_register_cached): Add range checking assertions. Use
4284 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4286 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4287 numbers for MMX registers.
4289 2002-08-13 Andrew Cagney <cagney@redhat.com>
4291 * i386-tdep.c (i386_gdbarch_init): Use
4292 generic_unwind_get_saved_register.
4294 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4296 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4297 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4299 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4300 Delete. Add comment regarding this now-deleted target method.
4302 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4304 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4305 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4306 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4307 real PC and the page number (if it's within the memory bank window).
4308 (m68hc11_pseudo_register_write): Likewise when saving.
4309 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4310 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4311 (m68hc11_register_raw_size): And use 32-bit for it.
4312 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4313 16K memory bank is used by the prog; also use the virtual pc.
4315 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4317 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4318 (m68hc11_gdbarch_init): Install it in gdbarch.
4319 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4320 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4321 (MSYMBOL_SIZE): New for documentation.
4322 (insn_return_kind): Enum to specify how a function returns.
4323 (frame_extra_info): Cleanup and record the return mode.
4324 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4325 register in address computation.
4326 (m68hc11_get_return_insn): New to obtain the return instruction used
4328 (m68hc11_frame_init_saved_regs): Take into account the return
4329 instruction used by the function for far and interrupt functions.
4330 (m68hc11_init_extra_frame_info): Take into account page register.
4331 (m68hc11_frame_args_address): Adjust according to the return mode.
4332 (show_regs): Print page register only when it's used.
4334 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4336 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4337 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4338 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4340 (m68hc11_register_raw_size): Likewise.
4342 2002-08-13 Andrew Cagney <cagney@redhat.com>
4344 * i386-tdep.c (i386_register_name): Handle mmx registers.
4345 (mmx_regnum_p): New function.
4346 (i386_mmx_names): New array.
4347 (mmx_num_regs): New variable.
4348 (i386_pseudo_register_read): New function.
4349 (i386_pseudo_register_write): New function.
4350 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4352 * regcache.c (regcache_raw_read_unsigned): New function.
4353 (regcache_raw_read_signed): New function.
4354 * regcache.h (regcache_raw_read_unsigned): Declare.
4355 (regcache_raw_read_signed): Declare.
4357 2002-08-13 Andrew Cagney <cagney@redhat.com>
4359 * regcache.c (regcache_raw_read_as_address): Delete function.
4360 (regcache_cooked_read_signed): New function.
4361 (regcache_cooked_read_unsigned): New function.
4362 * regcache.h (regcache_cooked_read_signed): Declare.
4363 (regcache_cooked_read_unsigned): Declare.
4364 (regcache_raw_read_as_address): Delete declaration.
4366 * blockframe.c (generic_read_register_dummy): Use
4367 regcache_cooked_read_unsigned.
4368 * i386-tdep.c (i386_extract_struct_value_address): Use
4369 regcache_cooked_read_unsigned.
4371 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4374 double sizes according to ELF ABI flags.
4375 (gdbarch_tdep): Record elf_flags.
4377 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4379 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4380 (m6812_prolog): They can appear in 68HC12 function prologue.
4381 (m68hc11_frame_chain): Cleanup.
4383 2002-08-12 Andrew Cagney <cagney@redhat.com>
4385 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4387 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4388 (i386_linux_register_raw_size): Delete function.
4389 (i386_linux_init_abi): Update.
4390 * i386-tdep.c (i386_register_raw_size): Delete function.
4391 (i386_register_byte): Delete function.
4392 (i386_gdbarch_init): Update.
4393 (i386_register_size): Delete array.
4394 (i386_register_offset): Delete array.
4396 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4397 (REGISTER_RAW_SIZE): Delete macro.
4398 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4399 (REGISTER_BYTE): Delete macro.
4401 2002-08-11 Aidan Skinner <aidan@velvet.net>
4403 * ada-lang.c (ada_lookup_partial_symbol)
4404 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4405 prototype names so that grep ^func works properly.
4407 * ada-lang.c (ada_array_element_type)
4408 (ada_lookup_partial_symbol): Fix typos in parameter list.
4410 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4411 Fix prototype names so that grep ^func works properly.
4413 2002-08-10 Andrew Cagney <cagney@redhat.com>
4414 Elena Zannoni <ezannoni@redhat.com>
4415 Martin M. Hunt <hunt@redhat.com>
4417 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4418 (build_builtin_type_vec128i): Set the vector bit.
4419 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4420 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4421 (build_builtin_type_vec64): New function.
4422 (build_builtin_type_vec64i): New function.
4423 (build_gdbtypes): Initialize builtin_type_vec64 and
4424 builtin_type_vec64i.
4426 2002-08-09 Andrew Cagney <cagney@redhat.com>
4428 * regcache.c (regcache_dump): Compare the register offset
4430 * arch-utils.c (generic_register_byte): New function.
4431 * arch-utils.h (generic_register_byte): Declare.
4432 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4433 * gdbarch.h, gdbarch.c: Regenerate.
4435 2002-08-09 Andrew Cagney <cagney@redhat.com>
4437 * regcache.c: Include "gdbcmd.h"
4438 (_initialize_regcache): Add commands "maintenance print
4439 registers", "maintenance print raw-registers" and "maintenance
4440 print cooked-registers".
4441 (enum regcache_dump_what): Define.
4442 (dump_endian_bytes): New function.
4443 (regcache_dump): New function.
4444 (regcache_print): New function.
4445 (maintenance_print_registers): New function.
4446 (maintenance_print_raw_registers): New function.
4447 (maintenance_print_cooked_registers): New function.
4448 * Makefile.in (regcache.o): Update dependencies.
4450 2002-08-09 Michael Snyder <msnyder@redhat.com>
4452 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4453 (mips_push_arguments): Correct some comments. Use paddr_nz
4454 for printing addresses in debug output. Replace static
4455 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4456 (mips_n32n64_push_arguments): New function, cloned from
4457 mips_push_arguments and tuned for the n32/n64 ABI.
4458 (mips_push_register): Buffer needs dynamic allocation.
4459 (mips_print_register): Ditto.
4460 (do_gp_register_row): Ditto.
4461 (mips_store_return_value): Ditto.
4462 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4464 2002-08-09 Don Howard <dhoward@redhat.com>
4466 * memattr.c (mem_info_command): Print special case of upper bound
4467 as max CORE_ADDR + 1.
4469 2002-08-08 Michael Snyder <msnyder@redhat.com>
4471 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4472 returns structs by ref if they're too big to fit in two registers.
4474 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4476 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4478 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4479 mips_find_saved_regs().
4480 (mips_pop_frame): Likewise.
4482 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4484 * blockframe.c (frame_saved_regs_register_unwind): Revise
4485 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4488 2002-08-09 Grace Sainsbury <graces@redhat.com>
4490 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4491 T-packets; the 'a' is not taken as a register number.
4492 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4493 (remote_stopped_data_address): New functions; add to target
4495 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4496 prototypes to match other implementations of this
4497 function. replace integer argument with pointer -- the length
4498 field in the Z-packet is the length of what is pointed to or 1 if
4499 pointer is null. Add to target vector.
4500 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4504 * remote.c (remote_wait): Add support to extract optional
4505 watchpoint information from T-packet. Ignore unrecognized
4506 optional info in T-packet.
4507 (remote_async_wait): Ditto.
4509 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4511 * cli/cli-dump.c: Change fopen modes to use binary open modes
4512 as defined in include/fopen-bin.h throughout.
4514 2002-08-08 Michael Snyder <msnyder@redhat.com>
4516 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4518 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4520 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4521 assertion failure by returning early after a warning.
4523 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4525 * mips-tdep.c (mips_find_saved_regs): Make static.
4526 (mips_frame_init_saved_regs): New function.
4527 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4528 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4529 (mips_find_saved_regs): Delete declaration.
4531 2002-08-08 Grace Sainsbury <graces@redhat.com>
4533 * remote.c (remote_wait, remote_async_wait): Change
4534 thread_num from int to ULONGEST.
4535 (unpack_varlen_hex): Change result parameter from
4536 int * to ULONGEST *.
4538 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4540 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4541 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4543 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4545 2002-08-08 Andrew Cagney <cagney@redhat.com>
4547 * gcore.c (override_derive_stack_segment): Delete variable.
4548 (preempt_derive_stack_segment): Delete function.
4549 (derive_stack_segment): Delete function.
4550 (default_derive_stack_segment): Renamed to derive_stack_segment.
4551 (override_derive_heap_segment): Delete variable.
4552 (preempt_derive_heap_segment): Delete function.
4553 (derive_heap_segment): Delete function.
4554 (default_derive_heap_segment): Rename to derive_heap_segment.
4556 2002-08-06 Michael Snyder <msnyder@redhat.com>
4558 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4559 * mips-tdep.c (mips_EABI_use_struct_convention,
4560 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4561 New functions. (mips_use_struct_convention): Delete.
4562 (mips_gdbarch_init): set use_gdbarch_convention.
4564 2002-08-06 Michael Snyder <msnyder@redhat.com>
4566 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4567 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4568 mips_o32_reg_struct_has_addr): New functions.
4569 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4571 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4573 * regcache.c (pseudo_register): Delete function.
4574 (fetch_register): Delete function.
4575 (store_register): Delete function.
4576 (regcache_raw_read, legacy_read_register_gen): Use
4577 target_fetch_registers instead of fetch_register.
4578 (legacy_write_register_gen, regcache_raw_write): Use
4579 target_store_register instead of store_register.
4580 (write_register_bytes): Ditto.
4582 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4583 (STORE_PSEUDO_REGISTER): Delete.
4584 * gdbarch.h, gdbarch.c: Regenerate.
4586 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4588 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4589 write dump file binary.
4591 2002-08-05 Michael Snyder <msnyder@redhat.com>
4593 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4594 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4595 (mips_gdbarch_init): Set N32 target to be mips64.
4597 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4599 * frame.c (find_saved_register): Break out of loop once saved
4600 register address is found. Don't mention sparc in loop comment
4603 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4605 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4606 mips_default_saved_regsize to 8.
4608 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4610 * gcore.c: Do not include <sys/procfs.h>.
4611 * Makefile.in (gcore.o): Update dependencies.
4613 2002-08-06 Andrew Cagney <cagney@redhat.com>
4615 * configure.tgt: Make arc-*-* obsolete.
4616 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4617 * MAINTAINERS: Make arc-elf obsolete.
4618 * arc-tdep.c: Make file obsolete.
4619 * config/arc/arc.mt: Ditto.
4620 * config/arc/tm-arc.h: Ditto.
4622 2002-08-05 Theodore A. Roth <troth@verinet.com>
4624 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4626 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4628 * mcore-tdep.c (mcore_gdbarch_init): Use
4629 generic_unwind_get_saved_register instead of
4630 generic_get_saved_register.
4631 * v850-tdep.c (v850_gdbarch_init): Ditto.
4632 * frv-tdep.c (frv_gdbarch_init): Ditto.
4633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4634 * s390-tdep.c (s390_gdbarch_init): Ditto.
4635 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4636 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4637 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4639 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4641 * objfiles.h: Add missing #include "symfile.h"
4643 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4645 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4647 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4648 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4651 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4653 * NEWS: Cleanup and nitpick.
4655 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4657 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4659 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4661 * Makefile.in (gdbtk-bp.o): Update dependencies.
4662 (gdbtk-register.o): Ditto.
4663 (gdbtk-varobj.o): Ditto.
4665 2002-08-03 Andrew Cagney <cagney@redhat.com>
4667 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4668 m68hc11_fetch_pseudo_register.
4669 (m68hc11_pseudo_register_write): Replace
4670 m68hc11_store_pseudo_register.
4671 (m68hc11_gdbarch_init): Update.
4673 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4675 * gdbarch.sh: Include "gdb_string.h".
4676 * gdbarch.c: Regenerate.
4678 * regcache.c: Include "gdb_string.h".
4679 * ax-general.c: Ditto.
4681 * std-regs.c: Ditto.
4682 * fbsd-proc.c: Ditto.
4685 * Makefile.in (regcache.o): Update dependencies.
4686 (thread.o, gdbarch.o): Ditto.
4687 (ax-general.o, gdbarch.o): Ditto.
4688 (varobj.o, std-regs.o): Ditto.
4689 (fbsd-proc.o): Specify dependencies.
4691 2002-08-02 Andrew Cagney <cagney@redhat.com>
4693 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4695 (regcache_cooked_write): Ditto.
4697 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4699 * regcache.c (regcache_cooked_read): New function.
4700 (regcache_cooked_write): New function.
4701 (read_register_gen): Rewrite using regcache_cooked_read.
4702 (write_register_gen): Rewrite using regcache_cooked_write.
4704 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4707 2002-08-02 Andrew Cagney <cagney@redhat.com>
4709 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4710 Replace the architecture methods register_read and register_write.
4711 * gdbarch.h, gdbarch.c: Regenerate.
4712 * regcache.c (init_regcache_descr): Update.
4713 (read_register_gen): Update.
4714 (write_register_gen): Update.
4715 (supply_register): Update comment.
4717 * sh-tdep.c (sh_gdbarch_init): Update.
4718 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4719 `regcache' and `gdbarch' parameters. Make `buffer' a void
4720 pointer. Update code.
4721 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4722 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4723 void pointer. Update code.
4724 (sh64_register_write): Delete.
4725 (sh4_register_read): Delete.
4726 (sh64_register_read): Delete.
4727 (sh4_register_write): Delete.
4728 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4729 void pointer, `to' parameter a void pointer.
4730 (sh_sh64_register_convert_to_raw): Ditto.
4732 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4734 * mips-tdep.c (mips_register_virtual_type): Use architecture
4735 invariant return values.
4737 2002-08-01 Andrew Cagney <cagney@redhat.com>
4739 * linux-proc.c: Include "gdb_string.h".
4740 * Makefile.in (linux-proc.o): Update dependency list.
4742 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4744 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4747 2002-08-01 Grace Sainsbury <graces@redhat.com>
4749 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4750 to_insert_watchpoint, to_remove_watchpoint,
4751 to_stopped_by_watchpoint, to_stopped_data_address,
4752 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4753 target vecctor. Define their corresponding macros so they call
4756 * target.c: Add default and debug versions of for
4757 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4758 to_insert_watchpoint, to_remove_watchpoint,
4759 to_stopped_by_watchpoint, to_stopped_data_address,
4760 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4762 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4764 * mips-tdep.c (mips_register_virtual_type): New function.
4765 (mips_gdbarch_init): Register mips_register_virtual_type()
4766 with gdbarch machinery.
4767 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4768 this file instead of tm-bigmips.h.
4769 (MIPS_REGSIZE): Delete this macro.
4770 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4771 multiarch version in mips-tdep.c will be found.
4773 2002-08-01 Andrew Cagney <cagney@redhat.com>
4775 * NEWS: Menion that CHILL has been made obsolete.
4777 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4778 * stabsread.c (read_range_type): Ditto.
4779 * gdbtypes.h: Ditto.
4780 * language.c (binop_type_check): Ditto.
4781 (binop_result_type): Ditto.
4782 (integral_type): Ditto.
4783 (character_type): Ditto.
4784 (string_type): Ditto.
4785 (boolean_type): Ditto.
4786 (structured_type): Ditto.
4787 (lang_bool_type): Ditto.
4788 (binop_type_check): Ditto.
4789 * language.h (_LANG_chill): Ditto.
4790 * dwarfread.c (set_cu_language): Ditto.
4791 * dwarfread.c (CHILL_PRODUCER): Ditto.
4792 * dwarfread.c (handle_producer): Ditto.
4793 * expression.h (enum exp_opcode): Ditto.
4794 * eval.c: Ditto for comments.
4795 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4796 * expprint.c (print_subexp): Ditto.
4797 (print_subexp): Ditto.
4798 * valops.c (value_cast): Ditto.
4799 (search_struct_field): Ditto.
4800 * value.h (COERCE_VARYING_ARRAY): Ditto.
4801 * symfile.c (init_filename_language_table): Ditto.
4802 (add_psymbol_with_dem_name_to_list): Ditto.
4803 * valarith.c (value_binop): Ditto.
4805 * valops.c (value_slice): Ditto.
4806 * symtab.h (union language_specific): Ditto.
4807 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4808 (SYMBOL_DEMANGLED_NAME): Ditto.
4809 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4810 * defs.h (enum language): Ditto.
4811 * symtab.c (got_symtab): Ditto.
4812 * utils.c (fprintf_symbol_filtered): Ditto.
4814 * ch-typeprint.c: Make file obsolete.
4815 * ch-valprint.c: Make file obsolete.
4816 * ch-lang.h: Make file obsolete.
4817 * ch-exp.c: Make file obsolete.
4818 * ch-lang.c: Make file obsolete.
4820 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4822 (TARGET_FLAGS_TO_PASS): Ditto.
4823 (CHILLFLAGS): Obsolete.
4825 (CHILL_FOR_TARGET): Obsolete.
4826 (CHILL_LIB): Obsolete.
4827 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4829 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4830 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4832 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4835 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4837 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4838 This does not change anything at the moment, but will be helpful
4839 later when full Ada support is integrated.
4841 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4843 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4846 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4848 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4849 and save it in a local variable. Use variable in later test.
4851 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4853 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4854 test. (Thanks to Daniel Jacobowitz.)
4856 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4858 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4859 (mips_abi_strings): Add "n64".
4860 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4862 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4864 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4865 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4867 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4869 * utils.c (host_pointer_to_address, address_to_host_pointer):
4870 Use gdb_assert() instead of explicit call to internal_error().
4872 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4874 * Makefile.in (rs6000-nat.o): Update dependencies.
4876 From Nicholas Duffek:
4877 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4878 (aix-thread.o): New rule.
4879 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4880 * config/powerpc/aix432.mh: New file.
4882 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4884 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4885 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4886 (fetch_core_registers, ppc_linux_supply_gregset)
4887 (ppc_linux_supply_fpregset): New functions.
4888 (ppc_linux_regset_core_fns): New.
4889 (_initialize_ppc_linux_tdep): Call add_core_fns.
4890 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4891 and ppc_linux_supply_gregset.
4892 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4893 (supply_fpregset): Call ppc_linux_supply_fpregset.
4894 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4896 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4898 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4900 * symtab.c (lookup_symbol): Demangle before lowercasing.
4902 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4904 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4906 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4907 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4908 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4909 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4911 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4912 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4913 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4914 (avr-tdep.o, mon960-rom.o): Ditto.
4915 (aout_stabs_gnu_h): Define.
4916 (symtab_h): Remove $(gdb_obstack_h).
4918 2002-07-30 Jim Blandy <jimb@redhat.com>
4920 Patch from David Carlton <carlton@math.stanford.edu>:
4921 * gdbinit.in: Move the `dir' commands that add GDB's own source
4922 directory to the search path to the end, so that the `gdb' source
4923 directory will be searched first.
4925 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4927 * gdb_obstack.h: New file.
4928 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4929 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4930 * objfiles.h: Include "gdb_obstack.h".
4931 * Makefile.in (gdb_obstack_h): Define.
4932 (symtab_h): Add $(gdb_obstack_h).
4933 (objfiles_h): Add $(gdb_obstack_h).
4935 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4936 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4937 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4938 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4939 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4940 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4941 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4942 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4944 * Makefile.in (bcache.o): Update dependencies.
4945 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4946 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4947 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4948 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4949 (stabsread.o, symfile.o, symmisc.o): Ditto.
4950 (symtab.o, typeprint.o, macroexp.o): Ditto.
4951 (macrotab.o, mdebugread.o): Ditto.
4952 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4953 (coff_ecoff_h, aout_aout64_h): Define.
4954 (aout_stabs_gnu_h, libaout_h): Define.
4956 2002-07-29 Andrew Cagney <cagney@redhat.com>
4958 * regcache.c (struct regcache_descr): Rename nr_registers to
4959 nr_cooked_registers. Revise comments describing the structure
4961 (init_regcache_descr): Update.
4962 (init_legacy_regcache_descr): Update.
4963 (read_register_gen, write_register_gen): When a cooked register in
4964 the raw register range, directly access the value from the raw
4967 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4969 * z8k-tdep.c: Do not include "obstack.h".
4970 * h8300-tdep.c, h8500-tdep.c: Ditto.
4971 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4972 * valprint.c, v850-tdep.c: Ditto.
4973 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4974 * mn10200-tdep.c: Ditto.
4976 * Makefile.in (z8k-tdep.o): Update dependencies.
4977 (m68hc11-tdep.o, valprint.o): Ditto.
4978 (v850-tdep.o, d10v-tdep.o): Ditto.
4979 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4980 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4981 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4982 (sh_opc_h, gdb_sim_sh_h): Define.
4983 (elf_sh_h, elf_bfd_h): Define.
4984 (opcode_m68hc11_h): Define.
4985 (OPCODES_SRC, OPCODES_DIR): define.
4986 (OPCODES): Use $(OPCODES_DIR).
4987 (gdb_sim_d10v_h): Rename sim_d10v_h.
4988 (gdb_sim_arm_h): Rename sim_arm_h.
4990 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4992 * utils.c (host_pointer_to_address, address_to_host_pointer):
4993 Change internal_error() message to indicate function responsible
4996 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4998 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4999 calls to local_hex_string_custom().
5001 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5003 * irix5-nat.c: Move IRIX shared library support from here...
5004 * solib-irix.c: ...to here. Revised substantially to work with
5005 generic solib framework.
5007 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5008 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5009 * mips-irix-tdep.c: New file.
5011 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5012 (mips-irix-tdep.o, solib-irix.o): New rules.
5013 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5015 * config/mips/irix6.mt (TDEPFILES): Likewise.
5016 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5018 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5020 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5021 disabled (via ``#if 0'') includes.
5023 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5025 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5026 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5027 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5028 Add support for the fpscr register.
5029 * rs6000-nat.c (regmap, fetch_inferior_registers)
5030 (store_inferior_registers, fetch_core_registers): Likewise.
5032 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5034 * rs6000-nat.c (language.h): Include.
5035 (special_regs): Delete this array.
5036 (regmap): New function.
5037 (fetch_register, store_register): Use regmap() to map gdb
5038 register numbers to ptrace register numbers. Also, use
5039 outputs from regmap() to make decisions regarding type of
5040 ptrace() call to make. In particular, don't compare against
5041 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5042 (fetch_inferior_registers, store_inferior_registers): Where
5043 possible, obtain register numbers from tdep struct. Don't
5044 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5045 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5046 (LAST_UISA_SP_REGNUM): Delete.
5048 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5050 * rs6000-nat.c (ppc-tdep.h): Include.
5051 (fetch_registers, store_register, fetch_core_registers): Don't
5052 access registers[] directly. Instead, use supply_register() or
5053 regcache_collect() as appropriate.
5054 (find_toc_address): Format hex address with local_hex_string().
5056 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5058 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5061 2002-07-24 Tom Tromey <tromey@redhat.com>
5063 * jv-exp.y: Marked all strings with _().
5064 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5066 (MethodInvocation, CastExpression, parse_number, yyerror,
5067 java_type_from_name, push_expression_name, yylex): Typo fixes.
5069 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5071 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5072 (tee_file_flush, tee_file_write, tee_file_fputs)
5073 (tee_file_isatty): New.
5074 * ui-file.h (tee_file_new): Add prototype.
5076 2002-07-24 Aidan Skinner <aidan@velvet.net>
5078 * ada-lang.c: Change k&r style function definitions to prototyped
5080 * ada-typeprint.c: Change k&r style function definitions to prototyped
5082 * ada-valprint.c: Change k&r style function definitions to prototyped
5085 2002-07-24 Andrew Cagney <cagney@redhat.com>
5087 * README: Remove reference to remote-bug.
5088 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5090 (m88k-nat.o): Delete rule.
5091 (m88k-tdep.o): Delete rule.
5092 (remote-bug.o): Delete rule.
5093 * MAINTAINERS: Mark as obsolete.
5094 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5095 * m88k-tdep.c: Make file obsolete.
5096 * config/m88k/m88k.mh: Ditto.
5097 * config/m88k/delta88v4.mh: Ditto.
5098 * config/m88k/delta88v4.mt: Ditto.
5099 * config/m88k/delta88.mt: Ditto.
5100 * config/m88k/delta88.mh: Ditto.
5101 * remote-bug.c: Ditto.
5102 * config/m88k/tm-delta88.h: Ditto.
5103 * config/m88k/nm-delta88v4.h: Ditto.
5104 * config/m88k/xm-delta88.h: Ditto.
5105 * config/m88k/xm-dgux.h: Ditto.
5106 * config/m88k/tm-m88k.h: Ditto.
5107 * config/m88k/nm-m88k.h: Ditto.
5108 * config/m88k/tm-delta88v4.h: Ditto.
5109 * m88k-nat.c: Ditto.
5110 * cxux-nat.c: Ditto.
5111 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5112 and m88*-*-* obsolete.
5113 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5116 2002-07-24 Andrew Cagney <cagney@redhat.com>
5118 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5119 constant. Same for local pointer variables.
5120 (extract_signed_integer): Ditto.
5121 * defs.h (extract_unsigned_integer): Update.
5122 (extract_signed_integer): Update.
5124 2002-07-24 Andrew Cagney <cagney@redhat.com>
5126 * regcache.c (regcache_raw_write): Change buf parameter to a
5127 constant void pointer.
5128 (regcache_raw_read): Change buf parameter to a void pointer.
5129 (legacy_write_register_gen): Change myaddr parameter a constant
5131 (supply_register): Change val parameter to a const void pointer.
5132 * regcache.h (regcache_raw_write): Update declaration.
5133 (regcache_raw_read): Update declaration.
5134 (supply_register): Update declaration.
5136 2002-07-24 Tom Tromey <tromey@redhat.com>
5138 * defs.h (gdb_readline_wrapper): Declare.
5139 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5140 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5141 * top.c (gdb_readline_wrapper): New function.
5142 (command_line_input): Use it.
5144 2002-07-24 Andrew Cagney <cagney@redhat.com>
5146 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5147 regcache_read and regcache_write.
5148 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5149 * regcache.c: Update.
5150 * sh-tdep.c (sh64_push_arguments): Update comment.
5151 (sh_pseudo_register_read): Update.
5152 (sh_pseudo_register_write): Update.
5153 (sh4_register_read): Update.
5154 (sh4_register_write): Update.
5155 (sh64_pseudo_register_read): Update.
5156 (sh64_pseudo_register_write): Update.
5157 (sh64_register_read): Update.
5158 (sh64_register_write): Update.
5159 * i386-tdep.c (i386_extract_return_value): Update.
5160 (i386_extract_struct_value_address): Update.
5161 (i386_extract_return_value): Update.
5162 * blockframe.c (generic_read_register_dummy): Update.
5163 (generic_call_dummy_register_unwind): Update
5164 * infrun.c (write_inferior_status_register): Update.
5166 2002-07-23 Jim Blandy <jimb@redhat.com>
5168 * parser-defs.h (expression_context_pc): Make this extern.
5169 (Thanks to Michael Snyder.)
5171 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5173 GDB 5.2.1 released from 5.2 branch.
5174 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5175 * README: Update to mention 5.2.1.
5177 2002-07-23 Mark Salter <msalter@redhat.com>
5179 * remote.c (remote_read_bytes): Fix check for error.
5181 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5183 * aix-thread.c (language.h): Include.
5184 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5185 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5186 Print newlines at end of debug messages.
5187 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5188 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5190 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5192 * aix-thread.c (ppc-tdep.h): Include.
5193 (special_register_p): New function.
5194 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5195 (store_regs_user_thread): Use register number information from
5196 gdbarch_tdep struct instead of hardcoded offsets relative to
5197 FIRST_UISA_SP_REGNUM.
5198 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5199 special_register_p() instead of using FPLAST_REGNUM and
5200 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5201 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5202 will be MQ's register number.
5204 2002-07-22 Michael Snyder <msnyder@redhat.com>
5206 * aix-thread.c (ops): Rename to aix_thread_ops.
5207 (base_ops): Rename to base_target.
5208 (ops_attach): Rename to aix_thread_attach.
5209 (ops_detach): Rename to aix_thread_detach.
5210 (ops_resume): Rename to aix_thread_detach.
5211 (ops_wait): Rename to aix_thread_wait.
5212 (ops_kill): Rename to aix_thread_kill.
5213 (init_ops): Rename to init_aix_thread_ops.
5214 (ops_fetch_register): Rename to aix_thread_fetch_register.
5215 (ops_store_register): Rename to aix_thread_store_register.
5216 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5217 (ops_thread_alive): Rename to aix_thread_thread_alive.
5218 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5219 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5220 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5221 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5222 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5223 (store_regs_lib): Rename to store_regs_user_thread.
5224 (store_regs_kern): Rename to store_regs_kernel_thread.
5226 2002-07-22 Michael Snyder <msnyder@redhat.com>
5228 * aix-thread.c (ops_prepare_to_store): Eliminate.
5229 (init_ops): Don't initialize ops.prepare_to_store.
5230 (store_regs_kern): Pre-fetch register buffers from child,
5231 because some registers may not be in the cache. Copy
5232 regs from register cache only if they are cached.
5233 (store_regs_lib): Copy regs from register cache only
5235 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5236 fill_gprs64): Ditto.
5238 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5240 * aix-thread.c (gdb_assert.h): Include.
5241 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5242 register sizes (from register cache) match size of buffer holding
5244 (fill_sprs32): Change parameter types to match those in the ptrace()
5246 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5247 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5249 2002-07-22 Michael Snyder <msnyder@redhat.com>
5251 * aix-thread.c (supply_sprs64): Cosmetic change.
5252 (supply_sprs32): Cosmetic change.
5253 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5254 (fill_sprs64): Use regcache_collect instead of read_register.
5255 (store_regs_lib): Use regcache_collect instead of
5256 read_register. Use fill_sprs32 instead of fill_sprs64,
5257 if debugging a 32-bit architecture.
5258 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5259 out of the register cache, instead of passing a pointer into
5260 the register cache directly to ptrace. Use regcache_collect
5261 insteaad of read_register.
5262 (ops_prepare_to_store): Use target_read_registers instead
5263 of read_register_bytes.
5265 2002-07-20 Aidan Skinner <aidan@velvet.net>
5267 * MAINTAINERS: Add self under write after approval.
5269 2002-07-20 Aidan Skinner <aidan@velvet.net>
5271 * ada-tasks.c: Change k&r style function definitions to prototyped
5274 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5276 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5277 * x86-64-tdep.c: Include "objfiles.h".
5278 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5279 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5281 2002-07-17 Michal Ludvig <michal@suse.cz>
5283 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5284 (update_context): Initialise cfa variable.
5286 2002-07-17 Michael Snyder <msnyder@redhat.com>
5288 * aix-thread.c: Shorten some long lines.
5289 Bring comments into line with code spec.
5291 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5293 * infrun.c: Re-indent using gdb_indent.sh.
5295 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5297 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5298 Leave the indentation temporarily untouched, to minimize the diffs.
5300 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5302 * stabsread.c: Make os9k sections of the code obsolete,
5304 * stabsread.h: Make os9k sections of the code obsolete.
5306 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5308 * linux-low.c (regsets_store_inferior_registers): Add free()
5309 at the end of a loop to prevent memory leak.
5310 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5311 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5312 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5314 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5316 2002-07-17 Jim Blandy <jimb@redhat.com>
5318 * macrocmd.c (info_macro_command): Remove newline from error
5321 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5323 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5324 (sh_gdbarch_init): Use it for sh-dsp.
5326 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5328 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5329 64-bit DWARF2 format.
5331 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5333 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5334 <sys/proc.h> when not available.
5336 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5338 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5339 * stabsread.c: Make os9k sections of the code obsolete.
5340 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5341 * config/i386/i386os9k.mt: Make file obsolete.
5342 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5343 (COMMON_OBS): Remove os9kread.o
5344 (SFILES): Remove os9kread.c.
5345 (os9kread.o, remote-os9k.o): Make target obsolete.
5346 * remote-os9k.c: Make file obsolete.
5347 * os9kread.c: Make file obsolete.
5350 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5352 * NEWS: Mention that the FR30 has been made obsolete.
5353 * fr30-tdep.c: Make file obsolete.
5354 * config/fr30/tm-fr30.h: Ditto.
5355 * config/fr30/fr30.mt: Ditto.
5356 * configure.tgt: Make fr30-*-elf obsolete.
5357 * MAINTAINERS: Make fr30-elf obsolete.
5359 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5361 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5362 found is not inside a section.
5364 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5366 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5368 (pdc_realloc): Use xrealloc() instead of realloc().
5370 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5372 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5373 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5374 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5377 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5379 * aix-thread.c (ptrace_check): Eliminate goto.
5380 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5383 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5385 * aix-thread.c (gdbcmd.h): Include.
5386 (DEBUG, DBG, DBG2, dbg): Eliminate.
5387 (debug_aix_thread): New static global.
5388 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5389 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5390 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5391 invocations to DBG and DBG2 macros to test against
5392 ``debug_aix_thread'' and call fprintf_unfiltered().
5393 (_initialize_aix_thread): Add new command "set debug aix-thread".
5395 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5397 From Gerhard Tonn <TON@de.ibm.com>:
5398 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5399 instead of supply_register.
5401 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5403 * dwarf2cfi.c: Include "gdb_assert.h".
5404 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5406 (update_context): Do not use __func__. Add missing ``break''.
5407 (update_context): Do not use __func__.
5409 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5411 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5412 and its setting. Set gdbarch instruction printing functions
5413 directly. For non-rs6000 case use new function
5414 gdb_print_insn_powerpc.
5415 (gdb_print_insn_powerpc): New function.
5417 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5419 * NEWS: Mention that the d30v has been marked obsolete.
5420 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5421 * configure.tgt: Mark d30v-*-* as obsolete.
5422 * d30v-tdep.c: Mark file as obsolete.
5423 * config/d30v/d30v.mt: Ditto.
5424 * config/d30v/tm-d30v.h: Ditto.
5426 2002-07-13 Aidan Skinner <aidan@velvet.net>
5428 * ada-tasks.c (add_task_entry): replace calls to
5429 malloc() with xmalloc
5430 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5432 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5433 ada_finish_decode_line_1, all_sals_for_line
5434 ada_breakpoint_rewrite): replace calls to free() with xfree()
5436 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5438 From Nicholas Duffek (with minor changes by Martin Hunt,
5439 Louis Hamilton, and Kevin Buettner):
5440 * aix-thread.c: New file.
5442 2002-07-12 Petr Sorfa <petrs@caldera.com>
5444 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5445 complaint for invalid attribute class or form.
5446 (read_func_scope): DW_AT_frame_base
5447 better handling of DW_AT_block*.
5448 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5449 better handling of DW_AT_block*.
5450 (read_common_block): DW_AT_location
5451 better handling of DW_AT_block*.
5452 (read_partial_die): DW_AT_location better handling
5454 (new_symbol): DW_AT_external better handling of
5455 DW_AT_block*. Proper initialization of variable
5457 (attr_form_is_block): New function that returns true
5458 if the attribute's form is of DW_FORM_block*.
5460 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5462 * valops.c (find_method_list): Remove comment about
5463 removed STATIC_MEMFUNCP argument.
5464 (value_find_oload_method_list): Likewise.
5466 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5468 From Nicholas Duffek:
5469 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5470 target_new_objfile_hook.
5472 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5474 From Nicholas Duffek:
5475 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5478 2002-07-12 Andrew Cagney <cagney@redhat.com>
5480 * MAINTAINERS: Mention --enable-sim-build-warnings.
5481 (m68hc11-elf): Disable sim build warnings.
5482 (m32r-elf): Mark as broken obsolete candidate.
5483 (x86_64-linux-gnu): Mark as buildable with -Werror.
5484 (arm-elf): Change -w to ``,'' which enables warnings but not
5487 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5489 * bcache.h: Update copyright.
5490 (struct bstring, struct bcache): Move definition to "bcache.c".
5491 Replaced by opaque declaration.
5492 (bcache_xfree): Replace free_bcache.
5493 (bcache_xmalloc, bcache_memory_used): Declare.
5495 * bcache.c: Update copyright.
5496 (struct bstring, struct bcache): Moved to here from "bcache.h".
5498 (bcache_xmalloc, bcache_memory_used): New functions.
5499 (bcache_xfree): Replace function free_bcache.
5501 * Makefile.in (objfiles.o): Add $(bcache_h).
5502 (objfiles_h): Remove $(bcache_h).
5503 (symfile.o): Add $(bcache_h).
5505 * symmisc.c: Update copyright.
5506 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5507 (print_objfile_statistics): Use bcache_memory_used.
5509 * symfile.c: Include "bcache.h".
5510 (reread_symbols): Use bcache_xfree.
5511 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5512 (add_psymbol_to_list): Pass psymbol_cache by value.
5513 (add_psymbol_with_dem_name_to_list): Ditto.
5515 * objfiles.h: Update copyright.
5516 (struct bcache): Declare opaque. Do not include "bcache.h".
5517 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5519 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5521 * objfiles.c: Include "bcache.h". Update copyright.
5522 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5524 (free_objfile): Use bcache_xfree.
5526 2002-07-11 Grace Sainsbury <graces@redhat.com>
5528 * monitor.c (monitor_fetch_register): Make name a constant.
5529 (monitor_store_register): Same.
5531 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5533 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5534 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5535 (finish_block) For non-function blocks, hash the symbol table. For
5536 function blocks, mark the symbol table as unhashed.
5537 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5538 (msymbol_hash_iw): Likewise.
5539 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5541 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5542 (lookup_minimal_symbol): Likewise for both.
5543 * symtab.h (struct block): Add `hashtable' flag. Comment the
5545 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5546 (ALL_BLOCK_SYMBOLS): Update.
5547 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5548 (struct symbol): Add `hash_next' pointer.
5549 * symtab.c (lookup_block_symbol): Search using the hash table when
5551 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5552 (search_symbols, find_addr_symbol): Likewise.
5554 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5555 (read_dst_symtab): Likewise.
5556 * jv-lang.c (get_java_class_symtab): Likewise.
5557 * mdebugread.c: Include "gdb_assert.h".
5558 (shrink_block): Assert that the block being modified is not hashed.
5559 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5560 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5562 (dump_symtab): Recognize hashed blocks.
5563 * printcmd.c (print_frame_args): Assert that function blocks do not
5564 have hashed symbol tables.
5565 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5566 (fill_in_ada_prototype, debug_print_block): Likewise.
5567 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5569 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5571 * stack.c (print_frame): Use result of frame_address_in_block()
5572 instead of fi->pc when evaluating symbols.
5573 (backtrace_command_1): Ditto.
5575 2002-07-11 Andrew Cagney <cagney@redhat.com>
5577 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5580 * arm-tdep.c (arm_register_name): Make return type constant.
5582 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5584 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5586 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5587 * s390-tdep.c (s390_fp_regnum): Ditto.
5588 (s390_read_fp): Ditto.
5589 (s390_pop_frame): Ditto.
5590 (_initialize_s390_tdep): Ditto.
5591 * remote.c (get_remote_state): Ditto.
5592 * procfs.c (mappingflags): Ditto.
5593 * memattr.c (_initialize_mem): Ditto.
5594 * mcore-tdep.c (mcore_pop_frame): Ditto.
5595 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5596 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5597 * language.c (set_case_str): Ditto.
5598 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5599 * frv-tdep.c (new_variant): Ditto.
5600 (frv_stopped_data_address): Ditto.
5601 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5602 (context_alloc): Ditto.
5603 (frame_state_alloc): Ditto.
5604 (unwind_tmp_obstack_init): Ditto.
5605 (unwind_tmp_obstack_free): Ditto.
5606 (cfi_read_fp): Ditto.
5607 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5608 (cris_pop_frame): Ditto.
5609 * c-lang.c (scanning_macro_expansion): Ditto.
5610 (finished_macro_expansion): Ditto.
5611 (c_preprocess_and_parse): Ditto.
5612 * gdbarch.sh: Ditto.
5613 * gdbarch.h, gdbarch.c: Regenerate.
5614 * config/mn10200/tm-mn10200.h: Adjust indentation.
5615 * target.c: Adjust indentation.
5616 * symtab.h: Adjust indentation.
5617 * stabsread.h: Adjust indentation.
5618 * remote-es.c: Adjust indentation.
5619 * os9kread.c: Adjust indentation.
5621 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5623 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5624 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5626 2002-07-10 Grace Sainsbury <graces@redhat.com>
5628 * NEWS: Mention m68k, mcore multi-arching.
5629 * MAINTAINERS: Change status of m68k, mcore to reflect
5632 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5634 * valops.c (find_overload_match): Free oload_syms.
5636 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5638 Define HAVE_SYS_PROC_H if sys/proc.h exists
5639 * configure.in: Add check for sys/proc.h
5640 * config.in: Regenerate.
5641 * configure: Regenerate.
5643 2002-07-09 Grace Sainsbury <graces@redhat.com>
5645 * config/m68k/tm-m68k.h: Remove macros wrapped in
5646 #if !GDB_MULTI_ARCH.
5648 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5650 * config.in, configure: Regenerate.
5652 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5654 * dwarf2cfi.c: Include "gcore.h".
5655 (execute_stack_op): Fix implementation of the
5656 DW_OP_deref and DW_OP_deref_size operators by letting do their
5657 lookup in the target.
5659 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5661 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5662 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5665 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5667 Fix PR gdb/595, gdb/602
5668 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5669 Don't call value_cast, just read the vtable pointer; update comments
5672 2002-07-05 Grace Sainsbury <graces@redhat.com>
5674 * config/mcore/tm-mcore.h: Remove file.
5675 * config/mcore/mcore.mt: Remove definition of TM_FILE
5676 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5678 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5680 * i386bsd-tdep.c: Include "gdb_string.h".
5682 2002-07-04 Grace Sainsbury <graces@redhat.com>
5684 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5685 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5687 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5688 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5689 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5690 (RETVAL_REGNUM): Move macros from tm-mcore.h
5691 (mcore_reg_struct_has_addr): New function.
5692 (mcore_gdbarch_init): Added initializations for the macros removed
5695 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5697 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5698 traditonal string branding within the ELF header.
5700 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5702 * symtab.c (remove_params): New function.
5703 (make_symbol_overload_list): Use it instead of cplus_demangle.
5704 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5706 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5708 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5710 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5712 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5713 and tdep->sigtramp_end.
5714 * i386obsd-nat.c: New file.
5715 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5717 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5718 Don't call get_current_frame().
5720 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5722 * i386-nat.c (child_post_startup_inferior): New function
5723 calling i386_cleanup_dregs if
5724 I386_USE_GENERIC_WATCHPOINTS is defined.
5725 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5726 conditional to acknowledge that i386-nat.c has its
5727 own child_post_startup_inferior function.
5729 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5731 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5732 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5733 instead of MAX_REGISTER_RAW_SIZE.
5734 (i386_extract_return_value, i386_extract_struct_value_address):
5735 Convert to use regcache.
5736 (i386_gdbarch_init): Set max_register_raw_size and
5737 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5738 Set extract_return_value and extract_struct_value_address instead
5739 of their deprecated variants.
5741 Convert i386 target to generic dummy frames.
5742 * i386-tdep.c: Include "symfile.h".
5743 (i386_frameless_signal_p): Consider a function to be frameless if
5744 the pc points at the first instruction of the function.
5745 (i386_frame_chain): Handle (generic) call dummies.
5746 (i386_frame_saved_pc): Likewise.
5747 (i386_frame_init_saved_regs): Remove code dealing with call
5748 dummies on the stack.
5749 (i386_push_dummy_frame): Removed.
5750 (i386_call_dummy_words): Removed.
5751 (i386_fix_call_dummy): Removed.
5752 (i386_push_return_address): New function.
5753 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5754 parameter, and don't call get_current_frame.
5755 (i386_pop_frame): New function.
5756 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5757 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5758 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5759 call_dummy_length to 0, set call_dummy_words to NULL, set
5760 sizeof_call_dummy_words to 0, set fix_call_dummy to
5761 generic_fix_call_dummy, set pc_in_call_dummy to
5762 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5763 generic_push_dummy_frame, set push_return_address to
5764 i386_push_return_address and set frame_chain_valid to
5765 generic_file_frame_chain_valid.
5767 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5769 * gdbarch.sh (struct regcache): Add opaque declaration.
5770 (EXTRACT_RETURN_VALUE): New architecture method.
5771 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5772 * gdbarch.h, gdbarch.c: Regenerate.
5773 * arch-utils.c (legacy_extract_return_value): New function.
5774 * arch-utils.h (legacy_extract_return_value): Declare.
5775 * values.c (value_being_returned): Re-enable code handling
5776 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5777 deprecated_grub_regcache_for_registers call to block handling
5778 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5779 (EXTRACT_RETURN_VALUE): Do not define.
5781 2002-07-03 Grace Sainsbury <graces@redhat.com>
5783 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5784 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5785 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5786 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5787 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5788 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5789 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5790 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5791 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5792 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5793 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5794 argument so the function fits the prototype in the architecture
5796 (mcore_pop_frame): Remove argument so the function fits the
5797 prototype. Use get_current_frame instead of the argument.
5798 (mcore_push_arguments): Change type of struct_return so the
5799 function can be used in the architecture vector.
5800 (mcore_store_struct_return): Add.
5801 (mcore_frame_init_saved_regs): Add.
5802 (mcore_gdbarch_init): Add function calls to replace the macros
5803 removed from tm-mcore.h
5805 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5807 * infcmd.c (print_return_value): Remove compatibility code calling
5808 deprecated_grub_regcache_for_registers.
5810 * values.c: Include "regcache.h".
5811 (value_being_returned): Update. Use
5812 deprecated_grub_regcache_for_registers to extract the register
5814 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5815 ``struct regcache''.
5816 * Makefile.in (values.o): Add dependency on $(regcache_h).
5818 * inferior.h (run_stack_dummy): Change type of second parameter to
5819 a ``struct regcache''.
5820 * valops.c (hand_function_call): Change type of retbuf to ``struct
5821 regcache''. Allocate using regcache_xmalloc, clean using
5822 make_cleanup_regcache_xfree.
5823 * infcmd.c (run_stack_dummy): Update. Use
5824 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5826 * regcache.c (do_regcache_xfree): New function.
5827 (make_cleanup_regcache_xfree): New function.
5828 * regcache.h (make_cleanup_regcache_xfree): Declare.
5830 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5832 * event-top.c (command_line_handler): Don't read past
5833 beginning of buffer.
5835 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5837 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5839 (varobj_create): Store frame_id for root.
5840 (varobj_gen_name): Use xasprintf.
5841 (varobj_update): Save and restore frame using get_frame_id() and
5843 (create_child): Use xasprintf.
5844 (new_root_variable): Initialize frame_id.
5845 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5846 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5847 to prevent memory leak.
5849 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5851 * valops.c (hand_function_call): Move declaration of retbuf to
5852 start of function, allocate using malloc, add a cleanup but before
5853 the inf_status cleanup, cleanup the buffer. Rename local variable
5854 old_chain to inf_status_cleanup.
5856 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5858 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5860 * cli/cli-decode.c (cmd_func_p): New function.
5861 (cmd_func): New function.
5863 * command.h: Add cmd_func() and cmd_func_p().
5865 2002-07-03 Grace Sainsbury <graces@redhat.com>
5867 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5868 (REGISTER_SIZE): Remove.
5869 (MAX_REGISTER_RAW_SIZE): Remove.
5870 (REGISTER_VIRTUAL_TYPE): Remove.
5871 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5872 (REGISTER_NAME): Remove.
5873 (USE_GENERIC_DUMMY_FRAMES): Remove.
5874 (CALL_DUMMY): Remove.
5875 (CALL_DUMMY_START_OFFSET): Remove.
5876 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5877 (CALL_DUMMY_LOCATION): Remove.
5878 (FIX_CALL_DUMMY): Remove.
5879 (CALL_DUMMY_ADDRESS): Remove.
5880 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5881 (SAVE_DUMMY_FRAME_TOS): Remove.
5882 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5883 (mcore_register_virtual_type): New function.
5884 (mcore_register_byte): New function.
5885 (mcore_register_size): New function.
5886 (mcore_register_name): New function.
5887 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5888 macros removed from tm-mcore.h.
5889 (mcore_dump_tdep): Add.
5890 (_initialize_mcore_tdep): Add gdbarch_register call.
5892 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5894 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5895 frameless_look_for_prologue, such that we actually call this
5898 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5900 * frame.h (frame_address_in_block): New function.
5902 * blockframe.c (frame_address_in_block): New function extracted
5903 from get_frame_block().
5904 (get_frame_block): Use frame_address_in_block().
5905 (block_innermost_frame): Use frame_address_in_block() to match
5906 the frame pc address against the block boundaries rather than
5907 the frame pc directly. This prevents a failure when a frame pc
5908 is actually a return-address pointing immediately after the end
5911 2002-07-02 Grace Sainsbury <graces@redhat.com>
5913 * MAINTAINERS: Add self under write after approval.
5915 2002-07-02 Grace Sainsbury <graces@redhat.com>
5917 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5918 used in architecture vector. The default is
5919 m68k_local_breakpoint_from_pc.
5920 (m68k_local_breakpoint_from_pc): Add.
5921 (enum): Add register numbers from tm-m68k.h.
5922 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5924 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5925 GDB_MULTI_ARCH_PARTIAL.
5926 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5927 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5929 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5930 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5931 to enum in m68k-tdep.c
5933 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5935 * solib-osf.c (open_map): Compute the list of shared libraries
5936 loaded by the inferior, rather than the list of libraries loaded
5937 by GDB itself. Otherwise, GDB ends up reading the symbols from
5938 the wrong shared libraries...
5940 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5942 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5943 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5945 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5947 (FRAMELESS_SIGNAL): Remove function.
5948 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5949 i386_linux_saved_pc_after_call): Removed.
5950 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5951 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5952 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5954 * i386-tdep.c (i386_frameless_signal_p): New function.
5955 (i386_frame_chain): Deal with frameless signals.
5956 (i386_sigtramp_saved_sp): New function.
5957 (i386_frame_saved_pc): Deal with frameless signals.
5958 (i386_saved_pc_after_call): Make sure the correct value is
5959 returned just after entry into a sigtramp.
5960 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5961 i386fbsd4_sc_sp_offset): New variables.
5962 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5963 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5964 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5965 similiar to what we already did for sc_pc_offset.
5966 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5969 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5971 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5973 * config/i386/tm-x86-64linux.h: New.
5974 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5976 * config/i386/nm-x86-64.h: Rename to ...
5977 * config/i386/nm-x86-64linux.h: ... this one.
5978 * config/i386/x86-64linux.mh: Reflect the above change.
5980 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5982 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5983 with sigcontext_addr. Add sc_sp_offset.
5984 (i386bsd_sigtramp_saved_pc): Remove prototype.
5985 (i386bsd_sicontext_addr): Add prototype.
5986 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5987 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5988 (i386_svr4_sigtramp_saved_pc): Removed.
5989 (i386_svr4_sigcontext_addr): New function.
5990 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5991 Initialize tdep->sigcontext_addr instead. Initialize
5992 tdep->sc_pc_offset and tdep->sc_sp_offset.
5993 (i386_gdbarch_init): Likewise.
5994 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5996 (i386bsd_sigtramp_saved_pc): Remove function.
5997 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5998 Initialize tdep->sigcontext_addr instead. Initialize
6000 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6001 of tdep->sigtramp_saved_pc.
6002 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6003 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6006 * i386-tdep.c (i386_frameless_function_invocation,
6007 i386_frame_num_args, i386_frame_init_saved_regs,
6008 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6009 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6010 i386_extract_return_value, i386_store_return_value,
6011 i386_extract_struct_value_address, i386_register_virtual_type,
6012 i386_register_convertible, i386_register_convert_to_virtual,
6013 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6014 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6017 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6019 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6021 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6022 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6023 this macro. Include "value.h".
6025 2002-06-30 Aidan Skinner <aidan@velvet.net>
6027 * ada-exp.tab.c: remove as it's a generated file
6028 * ada-lex.c: remove as it's a generated file
6030 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6032 * config/i386/tm-i386.h (struct frame_info, struct
6033 frame_saved_regs, struct value, struct type): Remove forward
6036 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6037 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6038 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6039 (FILL_FPXREGSET): Define.
6041 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6043 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6044 i[3456]86-*-netbsd* case.
6045 * config/i386/tm-obsd.h: Removed.
6046 * config/i386/obsd.mt: Removed.
6047 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6049 (MH_CFLAGS): Add -DYYDEBUG=0.
6051 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6052 i386nbsd_sc_pc_offset on OpenBSD too.
6054 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6055 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6056 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6058 * i386bsd-tdep.c: Include "arch-utils.h".
6059 (i386bsd_aout_in_solib_call_trampoline): New function.
6060 (i386bsd_init_abi): Set in_solib_call_trampoline to
6061 i386bsd_aout_in_solib_call_trampoline.
6062 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6063 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6065 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6067 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6068 (struct obstack, struct bcache): Add opaque declarations.
6069 * Makefile.in (macrotab_h): Update
6071 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6073 * blockframe.c (generic_find_dummy_frame): Change return type to
6074 ``struct regcache''.
6075 (struct dummy_frame): Replace field ``registers'' with regcache, a
6076 struct regcache object.
6077 (generic_find_dummy_frame): Update.
6078 (generic_push_dummy_frame): Update. Use regcache_xfree,
6079 regcache_xmalloc and regcache_cpy.
6080 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6082 (deprecated_generic_find_dummy_frame): Update.
6083 (generic_read_register_dummy): Update. Use
6084 regcache_read_as_address.
6085 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6086 (generic_get_saved_register): Update. Use regcache_read.
6088 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6090 * Makefile.in (objfiles_h): Add $(bcache_h).
6091 * objfiles.h: Include "bcache.h".
6093 * Makefile.in (symtab_h): Remove $(bcache_h).
6094 * symtab.h: Do not include "bcache.h".
6096 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6098 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6099 generic_func_frame_chain_valid.
6101 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6103 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6104 * config/i386/tm-fbsd.h: Likewise.
6106 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6108 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6109 generic_unwind_get_saved_register.
6111 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6113 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6114 * regcache.c (supply_register): Add missing argument to
6115 register_buffer call.
6117 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6119 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6120 Solaris /bin/grep does not not like it. From Peter Schauer.
6122 2002-06-26 Tom Tromey <tromey@redhat.com>
6124 * command.h (add_setshow_cmd): Declare.
6125 (add_setshow_cmd_full): Declare.
6126 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6127 returns void. Use add_setshow_cmd_full.
6128 (add_setshow_cmd_full): New function.
6129 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6130 (add_setshow_boolean_cmd): Likewise.
6132 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6134 * config/vax/tm-vax.h: Protect from multiple inclusion.
6135 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6136 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6137 * config/vax/tm-vaxbsd.h: ...here. New file.
6138 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6140 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6142 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6143 (BELIEVE_PCC_PROMOTION): Remove.
6144 (AP_REGNUM): Move to...
6145 * config/vax/nm-vax.h: ...here.
6146 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6147 (vax_breakpoint_from_pc): New function.
6148 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6149 and gdbarch_believe_pcc_promotion.
6151 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6153 * Makefile.in (vax_tdep_h): Define.
6154 (vax-tdep.o): Use $(vax_tdep_h).
6155 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6156 (vax_dump_tdep): New function.
6157 (_initialize_vax_tdep): Register vax_dump_tdep.
6158 * vax-tdep.h: Include osabi.h.
6159 (struct gdbarch_tdep): New.
6161 2002-06-26 Andrew Cagney <cagney@redhat.com>
6163 * frame.h (deprecated_generic_find_dummy_frame): Rename
6164 generic_find_dummy_frame.
6165 * blockframe.c (generic_find_dummy_frame): Make static.
6166 (deprecated_generic_find_dummy_frame): New function.
6167 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6168 generic_find_dummy_frame with deprecated_find_dummy_frame.
6169 (sh64_nofp_frame_init_saved_regs): Ditto.
6170 (sh_fp_frame_init_saved_regs): Ditto.
6171 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6172 (s390_frame_chain): Ditto.
6173 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6175 2002-06-26 Grace Sainsbury <graces@redhat.com>
6177 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6178 gdbarch vector are at the top.
6180 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6181 (FRAME_ARGS_ADDRESS): Remove.
6182 (FRAME_LOCALS_ADDRESS): Remove.
6183 (FRAME_NUM_ARGS): Remove.
6184 (FRAME_ARGS_SKIP): Remove.
6185 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6186 (m68k_gdbarch_init): Add gdbarch initializations for macros
6187 undefined in tm-m68k.h
6189 2002-06-26 Grace Sainsbury <graces@redhat.com>
6191 * monitor.h: Add the function regname to monitor_ops
6192 structure. This way NUM_REGS does not have to be a constant.
6193 * monitor.c (monitor_fetch_register): Added support for regname
6194 function. The function is called if the array regnames is NULL.
6195 (monitor_store_register): Same.
6196 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6198 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6199 cpu32bug_cmds.regname to point to new function.
6200 * abug-rom.c (abug_regname): Same as above.
6201 (init_abug_cmds): Same.
6202 * dbug-rom.c (dbug_regname): Same as above.
6203 (init_dbug_cmds): Same.
6204 * remote-est.c (est_regname): Same.
6205 (init_est_cmds): Same.
6206 * rom68k-rom.c (rom68k_regname): Same.
6207 (init_rom68k_cmds): Same.
6209 2002-06-25 Tom Tromey <tromey@redhat.com>
6211 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6213 2002-06-25 Andrew Cagney <cagney@redhat.com>
6215 * infrun.c (stop_registers): Change variable's type to ``struct
6217 (xmalloc_inferior_status): Delete function.
6218 (free_inferior_status): Delete function.
6219 (normal_stop): Use regcache_cpy.
6220 (struct inferior_status): Change type of fields ``stop_registers''
6221 and ``registers'' to ``struct regcache''.
6222 (write_inferior_status_register): Use regcache_write.
6223 (save_inferior_status): Instead of calling
6224 xmalloc_inferior_status, allocate the inf_status buffer directly.
6225 Use regcache_dup_no_passthrough and regcache_dup to save the
6227 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6228 Replace the stop_registers regcache instead of overriding it. Use
6229 regcache_xfree. Instead of calling free_inferior_status, xfree
6230 the buffer directly.
6231 (discard_inferior_status): Use regcache_xfree. Instead of calling
6232 free_inferior_status, xfree the buffer directly.
6233 (build_infrun): Use regcache_xmalloc.
6234 (_initialize_infrun): Delete redundant call to build_infrun.
6236 * Makefile.in (infcmd.o): Add $(regcache_h).
6238 * infcmd.c: Include "regcache.h".
6239 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6240 obtain the address of `stop_registers' register buffer.
6241 (print_return_value): Ditto.
6243 * inferior.h (struct regcache): Add opaque declaration.
6244 (stop_registers): Change variable's declared type to ``struct
6247 2002-06-24 Tom Tromey <tromey@redhat.com>
6249 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6250 * target.c (initialize_targets): Fixed typo in
6251 trust-readonly-sections `show' documentation.
6253 * main.c: Marked all strings with _().
6255 2002-06-24 Don Howard <dhoward@redhat.com>
6257 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6258 that means max CORE_ADDR+1.
6259 (lookup_mem_region): Ditto.
6260 (mem_info_command): Ditto.
6262 2002-06-24 Grace Sainsbury <graces@redhat.com>
6264 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6265 (REGISTER_BYTES_OK): Remove.
6266 (REGISTER_BYTES): Remove.
6267 (STORE_STRUCT_RETURN): Remove.
6268 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6269 (STORE_RETURN_VALUE): Remove.
6270 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6271 (FRAME_CHAIN): Remove.
6272 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6273 (FRAME_SAVED_PC): Remove.
6274 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6275 (m68k_store_struct_return): Add.
6276 (m68k_deprecated_extract_return_value): Add.
6277 (m68k_deprecated_extract_struct_value_address): Add.
6278 (m68k_store_return_value): Add.
6279 (m68k_frame_chain): Add.
6280 (m68k_frameless_function_invocation): Add.
6281 (m68k_frame_saved_pc): Add.
6282 (m68k_gdbarch_init): added set_gdbarch calls for new
6283 functions and deleted macros.
6285 2002-06-23 Tom Tromey <tromey@redhat.com>
6287 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6288 (ALLDEPFILES): Likewise.
6289 (udiheaders): Removed.
6290 (udip2soc.o): Likewise.
6291 (udi2go32.o): Likewise.
6293 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6295 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6297 * infrun.c (_initialize_infrun): Delete unnecessary call to
6300 * regcache.h: Update comments describing the regcache_cpy family
6302 (regcache_save, regcache_restore): Delete declaration.
6303 (regcache_save_no_passthrough): Delete declaration.
6304 (regcache_restore_no_passthrough): Delete declaration.
6305 * regcache.c (regcache_save): Delete function.
6306 (regcache_save_no_passthrough): Delete function.
6307 (regcache_restore): Delete function.
6308 (regcache_restore_no_passthrough): Delete function.
6310 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6312 * config/m68k/tm-m68k.h: Fix typo.
6313 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6314 (m68k_frame_init_saved_regs): Declare.
6316 2002-06-21 Jim Blandy <jimb@redhat.com>
6318 Remove some vestiges of Harris 88k support.
6319 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6320 register numbering quirk.
6321 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6322 odd symbols occurring in Harris 88k ELF targets.
6324 2002-06-21 Tom Tromey <tromey@redhat.com>
6326 * gdb_locale.h: New file.
6327 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6328 (defs_h): Added gdb_locale.h.
6329 * configure, config.in: Rebuilt.
6330 * configure.in (PACKAGE): Define.
6331 * defs.h: Include gdb_locale.h.
6332 * main.c (captured_main): Call setlocale, bindtextdomain,
6335 2002-06-21 Dave Brolley <brolley@redhat.com>
6337 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6338 * config/frv/frv.mt: New file.
6339 * config/frv/tm-frv.h: New file.
6340 * configure.tgt: Support frv-*-*.
6341 * Makefile.in (frv-tdep.o): New target.
6342 * frv-tdep.c: New file.
6343 * NEWS: Mention frv.
6345 2002-06-21 Dave Brolley <brolley@redhat.com>
6347 * MAINTAINERS: Add self to "Write After Approval" list.
6349 2002-06-21 Grace Sainsbury <graces@redhat.com>
6351 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6352 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6353 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6354 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6355 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6357 * m68k-tdep.c: Include arch-utils.h
6358 (m68k_register_raw_size): Add.
6359 (m68k_register_virtual_size): Add.
6360 (m68k_register_virtual_type): Add.
6361 (m68k_register_name): Add.
6362 (m68k_stack_align): Add.
6363 (m68k_register_byte): Add.
6364 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6367 2002-06-21 Grace Sainsbury <graces@redhat.com>
6369 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6370 m68k_find_saved_regs.
6371 (m68k_pop_frame): Removed saved_regs structure, and replaced
6372 references to it with frame->saved_regs.
6373 (m68k_gdbarch_init): Added function calls to initialize the
6375 (m68k_fix_call_dummy): Add.
6376 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6377 (CALL_DUMMY): Remove.
6378 (CALL_DUMMY_LENGTH): Remove.
6379 (CALL_DUMMY_START_OFFSET): Remove.
6380 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6381 (FIX_CALL_DUMMY): Remove.
6382 (PUSH_DUMMY_FRAME): Remove.
6383 (POP_FRAME): Remove.
6385 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6387 * parse.c (parse_fprintf): New function used to avoid calls to
6388 fprintf in bison parser generated debug code.
6389 * parser-defs.h: Declaration of new parse_fprintf function.
6390 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6391 Set YYDEBUG to 1 by default.
6392 Set YYFPRINTF as parse_fprintf.
6394 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6396 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6398 (pointer_encoding, enum ptr_encoding): New.
6399 (execute_cfa_program): Take care about pointer encoding.
6400 (dwarf2_build_frame_info): Only call parse_frame_info for
6401 .debug_frame and .eh_frame.
6402 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6403 fixed augmentation handling, added relative addressing,
6404 ignore duplicate FDEs. Added comments.
6405 * dwarf2cfi.c: Reindented.
6407 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6409 * event-top.c (command_handler): Don't use space_at_cmd_start
6410 unless there is sbrk() on the host. Assign time and space data
6411 to union fields of the appropriate length.
6413 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6415 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6416 x86_64_register_name. Return type changed to 'const char *'.
6417 (x86_64_register_name2nr): Rename to x86_64_register_number.
6418 (x86_64_gdbarch_init): Update to reflect the change.
6419 * x86-64-tdep.h: Ditto.
6420 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6421 (supply_fpregset): Ditto.
6423 2002-06-19 Andrew Cagney <cagney@redhat.com>
6425 * regcache.h: Update copyright.
6426 (struct regcache, struct gdbarch): Add opaque declarations.
6427 (current_regcache): Declare global variable.
6428 (regcache_read, regcache_write): Add gdbarch parameter.
6429 (regcache_save, regcache_save_no_passthrough)
6430 (regcache_restore, regcache_restore_no_passthrough)
6431 (regcache_dup, regcache_dup_no_passthrough)
6432 (regcache_cpy, regcache_cpy_no_passthrough)
6433 (deprecated_grub_regcache_for_registers)
6434 (deprecated_grub_regcache_for_register_valid)
6435 (regcache_valid_p): Add function declarations.
6437 * regcache.c: Update copyright.
6438 (regcache_descr_handle): New global variable.
6439 (struct regcache_descr): Define.
6440 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6441 (regcache_descr, xfree_regcache_descr): New functions.
6442 (struct regcache): Define.
6443 (regcache_xmalloc, regcache_xfree): New functions.
6444 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6445 (regcache_dup, regcache_dup_no_passthrough): New functions.
6446 (regcache_valid_p, regcache_read_as_address): New functions.
6447 (deprecated_grub_regcache_for_registers): New function.
6448 (deprecated_grub_regcache_for_register_valid): New function.
6449 (current_regcache): New global variable.
6450 (register_buffer): Add regcache parameter. Update calls.
6451 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6452 (read_register_gen, write_register_gen): Update register_buffer
6453 call. Test for legacy_p instead of gdbarch_register_read_p or
6454 gdbarch_register_write_p.
6455 (regcache_collect): Update register_buffer call.
6456 (build_regcache): Rewrite. Use deprecated grub functions.
6457 (regcache_save, regcache_save_no_passthrough): New functions.
6458 (regcache_restore, regcache_restore_no_passthrough): New
6460 (_initialize_regcache): Create the regcache_data_handle. Swap
6461 current_regcache global variable.
6463 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6464 parameter to regcache_read and regcache_write calls.
6465 (sh4_register_read): Ditto.
6466 (sh64_pseudo_register_read): Ditto.
6467 (sh64_register_read): Ditto.
6468 (sh_pseudo_register_write): Ditto.
6469 (sh4_register_write): Ditto.
6470 (sh64_pseudo_register_write): Ditto.
6471 (sh64_register_write): Ditto.
6473 * defs.h (XCALLOC): Define.
6475 2002-06-19 Grace Sainsbury <graces@redhat.com>
6477 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6478 * m68k-tdep.c (m68k_gdbarch_init): Added.
6479 (m68k_dump_tdep): Added.
6481 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6483 * ada-lang.c (fill_in_ada_prototype): Update comment.
6485 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6487 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6489 (mips_abi_string, mips_abi_strings): New.
6490 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6491 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6492 tdep->mips_abi_string. Honor mips_abi_string. Default to
6493 O32 if no ABI is found.
6494 (mips_dump_tdep): Use mips_abi_strings.
6495 (mips_abi_update): New function.
6496 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6497 ``set mips abi'' and ``show mips abi''. Check the size of
6500 2002-06-19 Andrew Cagney <cagney@redhat.com>
6502 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6505 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6507 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6508 current frame using only the first stack size adjustment. All
6509 subsequent size adjustments are not considered to be part of
6510 the "static" part of the current frame.
6511 Compute the address of the saved registers relative to the
6512 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6513 in use in this frame.
6515 2002-06-18 Don Howard <dhoward@redhat.com>
6517 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6518 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6519 suggesting this solution.
6521 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6523 * config/romp/xm-rtbsd.h: Delete file.
6524 * config/romp/rtbsd.mh: Delete file.
6526 2002-06-18 Keith Seitz <keiths@redhat.com>
6528 * breakpoint.c (condition_command): Post breakpoint_modify
6529 when a condition is added to an existing breakpoint.
6530 (commands_command): Likewise for commands.
6531 (set_ignore_count): Likewise for ignore counts.
6532 If no tty, do not simply return, still need to send event
6534 (ignore_command): Only print a newline if the command came
6536 Don't call breakpoints_changed, since this is now properly
6537 handled by set_ignore_count.
6539 2002-06-18 Andrew Cagney <cagney@redhat.com>
6541 * MAINTAINERS: Note that cris-elf target can be compiled with
6543 * cris-tdep.c (cris_register_name): Make return type constant.
6544 (cris_breakpoint_from_pc): Ditto.
6546 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6548 * frame.h (struct frame_info): Change type of context to
6551 2002-06-17 Andrew Cagney <cagney@redhat.com>
6553 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6555 * gdbarch.h, gdbarch.c: Regenerate.
6556 * config/mips/tm-mips.h (mips_register_name): Update.
6557 * i386-tdep.h (i386_register_name): Update.
6558 * mips-tdep.c (mips_register_name): Update
6559 * alpha-tdep.c (alpha_register_name): Update.
6560 * arch-utils.c (legacy_register_name): Update.
6561 * arch-utils.h (legacy_register_name): Update.
6562 * avr-tdep.c (avr_register_name): Update.
6563 * ia64-tdep.c (ia64_register_name): Update.
6564 * i386-tdep.c (i386_register_name): Update.
6565 * sparc-tdep.c (sparc32_register_name): Update.
6566 (sparc64_register_name): Update.
6567 (sparclite_register_name): Update.
6568 (sparclet_register_name): Update.
6569 * sh-tdep.c (sh_generic_register_name): Update.
6570 (sh_sh_register_name): Update.
6571 (sh_sh3_register_name): Update.
6572 (sh_sh3e_register_name): Update.
6573 (sh_sh_dsp_register_name): Update.
6574 (sh_sh3_dsp_register_name): Update.
6575 (sh_sh4_register_name): Update.
6576 (sh_sh64_register_name): Update.
6577 * s390-tdep.c (s390_register_name): Update.
6578 * rs6000-tdep.c (rs6000_register_name): Update.
6579 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6580 (ns32k_register_name_32382): Update.
6581 * d10v-tdep.c (d10v_ts2_register_name): Update.
6582 (d10v_ts3_register_name): Update.
6583 * xstormy16-tdep.c (xstormy16_register_name): Update.
6584 * vax-tdep.c (vax_register_name): Update.
6585 * v850-tdep.c (v850_register_name): Update.
6586 * m68hc11-tdep.c (m68hc11_register_name): Update.
6587 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6588 (am33_register_name): Update.
6590 2002-06-17 Grace Sainsbury <graces@redhat.com>
6592 * m68k-tdep.c: Reindented.
6594 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6596 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6597 list of predefined types.
6599 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6601 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6602 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6603 REGISTER_CONVERT_TO_RAW): Remove defines.
6604 (i386_register_virtual_type, i386_register_convertible,
6605 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6607 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6608 macros mentioned above.
6610 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6611 (i386lynx_saved_pc_after_call): Remove prototype.
6612 * i386ly-tdep.c: Include "i386-tdep.h".
6613 (i386lynx_saved_pc_after_call): Make static. Use
6614 read_memory_nobpt instead of read_memory. Use
6615 read_memory_unsigned_integer instead of read_memory_integer.
6616 (i386lynx_init_abi): New function.
6617 (i386lynx_coff_osabi_sniffer): New function.
6618 (_initialize_i386bsd_tdep): New function.
6620 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6621 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6622 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6623 (i386_fix_call_dummy): Remove prototype.
6624 * i386-tdep.c (i386_call_dummy_words): New variable.
6625 (i386_gdbarch_init): Adjust for removal of the
6626 macros mentioned above.
6628 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6630 * command.h (add_setshow_auto_boolean_cmd): Replace
6631 add_set_auto_boolean_cmd.
6632 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6633 add_set_auto_boolean_cmd.
6634 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6635 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6636 mask-address'' command.
6637 (show_mask_address): Add cmd parameter.
6638 * remote.c (add_packet_config_cmd): Update. Change type of
6639 set_func and show_func to cmd_sfunc_ftype.
6640 (_initialize_remote): Update `set remote Z-packet'
6641 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6642 (show_remote_protocol_e_packet_cmd): Ditto.
6643 (show_remote_protocol_E_packet_cmd): Ditto.
6644 (show_remote_protocol_P_packet_cmd): Ditto.
6645 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6646 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6647 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6648 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6649 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6650 (show_remote_protocol_Z_packet_cmd): Ditto.
6651 (show_remote_protocol_binary_download_cmd): Ditto.
6652 (show_remote_cmd): Pass NULL to all of above.
6654 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6656 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6657 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6658 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6659 POP_FRAME): Remove defines.
6660 (i386_push_arguments, i386_store_struct_return,
6661 i386_extract_return_value, i386_store_return_value,
6662 i386_extract_struct_value_address, i386_push_dummy_frame,
6663 i386_pop_frame): Renove prototypes.
6664 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6665 macros mentioned above.
6667 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6669 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6670 add_set_boolean_cmd.
6671 (add_setshow_cmd): New function.
6672 * command.h (add_setshow_boolean_cmd): Replace
6673 add_set_boolean_cmd.
6674 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6675 and ``set rdiromatzero''.
6676 * maint.c (_initialize_maint_cmds): Update commented out code.
6677 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6678 * target.c (initialize_targets): Update `set
6679 trust-readonly-sections'.
6680 * remote.c (_initialize_remote): Update `set remotebreak'.
6682 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6684 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6685 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6686 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6687 fit into multi-arch framework.
6688 (i386_breakpoint_from_pc): New function.
6689 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6692 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6693 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6694 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6695 (i386_frameless_function_invocation, i386_frame_num_args,
6696 i386_frame_init_saved_regs): Remove prototypes.
6697 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6698 macros mentioned above.
6700 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6702 * cli/cli-decode.c (set_cmd_cfunc): Update.
6703 (set_cmd_sfunc): Update.
6704 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6705 (set_cmd_sfunc, set_cmd_cfunc): Update.
6706 * cli/cli-decode.h: Update.
6708 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6710 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6711 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6713 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6715 * defs.h (auto_boolean): Declare enum.
6716 * command.h (cmd_auto_boolean): Delete enum.
6717 * mips-tdep.c (mask_address_var): Update.
6718 (mips_mask_address_p): Update.
6719 (show_mask_address): Update.
6720 * remote.c (struct packet_config): Update.
6721 (update_packet_config): Update.
6722 (show_packet_config_cmd): Update.
6723 (packet_ok): Update.
6724 (add_packet_config_cmd): Update.
6725 (_initialize_remote):
6726 * command.h: Update.
6727 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6728 (do_setshow_command): Update.
6729 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6730 * cli/cli-decode.h: Update.
6732 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6734 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6735 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6736 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6737 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6738 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6739 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6741 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6742 list of DJGPP COFF targets.
6744 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6745 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6746 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6747 (FP0_REGNUM): Remove define.
6748 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6749 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6750 (i386_register_virtual_size): Remove protoype.
6751 * i386-tdep.c (i386_register_virtual_size): Removed.
6752 (i386_extract_return_value, i386_store_return_value): Use
6753 FP0_REGNUM instead of NUM_FREGS to determine whether the
6754 floating-point registers are available.
6755 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6756 Adjust for removal of macros mentioned above.
6758 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6760 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6762 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6764 (supply_gregset, fill_gregset): Remove use of register keyword and
6765 remove declaration for regmap. Use I386_NUM_GREGS instead of
6766 NUM_REGS and NUM_FREGS.
6767 (FPREGSET_FSAVE_OFFSET): Remove.
6768 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6769 NUM_FREGS to determine whether the floating-point registers are
6772 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6773 gnu_store_registers): Replace usage of NUM_GREGS with
6776 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6777 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6778 usage of NUM_GREGS with I386_NUM_GREGS.
6780 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6782 * i386bsd-nat.c: Include "i386-tdep.h".
6783 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6786 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6787 and associated comment. They no longer make any sense, since we
6788 don't use this file anymore on Linux.
6790 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6791 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6792 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6793 elements in these arrays.
6794 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6797 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6799 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6800 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6802 2002-06-14 Andrew Cagney <cagney@redhat.com>
6804 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6805 EXTRACT_RETURN_VALUE.
6806 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6807 EXTRACT_STRUCT_VALUE_ADDRESS.
6808 * gdbarch.h, gdbarch.c: Regenerate.
6810 * values.c (value_being_returned): Handle
6811 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6812 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6814 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6815 * arm-tdep.c (arm_gdbarch_init): Update.
6816 * avr-tdep.c (avr_gdbarch_init): Update.
6817 * cris-tdep.c (cris_gdbarch_init): Update.
6818 * d10v-tdep.c (d10v_gdbarch_init): Update.
6819 * ia64-tdep.c (ia64_gdbarch_init): Update.
6820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6822 * s390-tdep.c (s390_gdbarch_init): Update.
6823 * sh-tdep.c (sh_gdbarch_init): Update.
6824 * s390-tdep.c (s390_gdbarch_init): Update.
6825 * sparc-tdep.c (sparc_gdbarch_init): Update.
6826 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6827 * v850-tdep.c (v850_gdbarch_init): Update.
6828 * vax-tdep.c (vax_gdbarch_init): Update.
6829 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6832 * config/arc/tm-arc.h: Update.
6833 * config/d30v/tm-d30v.h: Update.
6834 * config/fr30/tm-fr30.h: Update.
6835 * config/h8300/tm-h8300.h: Update.
6836 * config/h8500/tm-h8500.h: Update.
6837 * config/i386/tm-i386.h: Update.
6838 * config/i386/tm-ptx.h: Update.
6839 * config/i386/tm-symmetry.h: Update.
6840 * config/i960/tm-i960.h: Update.
6841 * config/m32r/tm-m32r.h: Update.
6842 * config/m68k/tm-delta68.h: Update.
6843 * config/m68k/tm-linux.h: Update.
6844 * config/m68k/tm-m68k.h: Update.
6845 * config/m88k/tm-m88k.h: Update.
6846 * config/mcore/tm-mcore.h: Update.
6847 * config/mips/tm-mips.h: Update.
6848 * config/mn10200/tm-mn10200.h: Update.
6849 * config/pa/tm-hppa.h: Update.
6850 * config/pa/tm-hppa64.h: Update.
6851 * config/sparc/tm-sp64.h: Update.
6852 * config/sparc/tm-sparc.h: Update.
6853 * config/sparc/tm-sparclet.h: Update.
6854 * config/z8k/tm-z8k.h: Update.
6856 2002-06-14 Andrew Cagney <cagney@redhat.com>
6858 * Makefile.in (i386_linux_tdep_h): Define.
6859 (i386_tdep_h, i387_tdep_h): Define.
6860 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6861 $(i386_tdep_h) and $(i387_tdep_h).
6862 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6864 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6866 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6867 Already covered by the default.
6869 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6870 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6871 (i386_gdbarch_init): Initialize long_double_format and long_double
6874 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6875 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6877 * config/i386/i386sol2.mh: ... here.
6878 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6879 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6880 (SIGCONTEXT_PC_OFFSET): Remove define.
6881 (IN_SIGTRAMP): Remove define.
6882 * i386-sol2-tdep.c: New file.
6884 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6885 * config/i386/tm-i386nw.h: Removed.
6887 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6888 USE_STRUCT_CONVENTION): Remove defines.
6889 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6890 (get_longjmp_target): Remove prototype.
6891 (IN_SIGTRAMP): Remove define.
6892 (i386bsd_in_sigtramp): Remove prototype.
6893 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6894 function. Update comment accordingly
6895 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6896 (FRAME_SAVED_PC): Remove define.
6897 (i386bsd_frame_saved_pc): Remove prototype.
6898 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6899 GET_LONGJMP_TARGET): Remove defines.
6900 (get_longjmp_target): Remove prototype.
6901 (IN_SIGTRAMP): Remove define.
6902 (i386bsd_in_sigtramp): Remove prototype.
6903 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6904 function. Update comment accordingly
6905 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6906 (FRAME_SAVED_PC): Remove define.
6907 (i386bsd_frame_saved_pc): Remove prototype.
6908 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6910 (USE_STRUCT_CONVENTION): Remove prototype.
6911 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6913 (_initialize_i386bsd_nat): Revise logic to determine some
6914 constants at compile time when compiling a native GDB. Warn if
6915 things don't match up with what we expect.
6916 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6918 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6919 to use date stored in `struct gdbarch_tdep'.
6920 (i386bsd_sigcontext_offset): Remove varaible.
6921 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6922 stored in `struct gdbarch_tdep'.
6923 (i386bsd_frame_saved_pc): Make static.
6924 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6925 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6926 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6927 i386fbsd4_sc_pc_offset): New variables.
6928 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6929 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6931 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6933 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6934 Modify the value of i386fbsd_sigtramp_start and
6935 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6936 i386fbsd_sigtramp_end.
6937 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6940 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6941 define to i386-linux-tdep.h.
6942 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6943 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6945 (i386_linux_register_name, i386_linux_register_byte,
6946 i386_linux_register_raw_size): Remove prototypes.
6947 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6948 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6949 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6950 TARGET_WRITE_PC): Remove defines.
6951 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6952 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6953 i386_linux_write_pc): Remove prototypes.
6954 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6955 (get_longjmp_target): Remove prototype.
6956 * i386-linux-tdep.h: New file.
6957 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6958 * i386-linux-tdep.c: Include "i386-tdep.h" and
6959 "i386-linux-tdep.h".
6960 (i386_linux_register_name, i386_linux_register_byte,
6961 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6962 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6964 (i386_linux_init_abi): New function.
6965 (_initialize_i386_linux_tdep): New function.
6967 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6968 (i386_saved_pc_after_call): Remove prototype.
6969 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6970 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6971 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6972 (i386_register_name, i386_stab_reg_to_regnum,
6973 i386_dwarf_reg_to_regnum): Remove prototypes.
6974 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6975 SIZEOF_SSE_REGS): Remove defines.
6976 (REGISTER_BYTES): Remove define.
6977 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6978 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6979 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6980 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6981 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6982 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6983 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6984 (get_longjmp_target): Remove prototype.
6985 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6986 (sigtramp_saved_pc): Remove define.
6987 (i386v4_sigtramp_saved_pc): Remove prototype.
6988 * config/i386/tm-go32.h (FRAME_CHAIN,
6989 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6990 (i386go32_frame_saved_pc): Remove prototype.
6991 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6992 (get_longjmp_target): Remove prototype.
6993 * i386-tdep.h: Include "osabi.h".
6994 (enum i386_abi): Removed.
6995 (enum struct_return): New enum.
6996 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6997 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6998 sc_pc_offset members.
6999 (i386_gdbarch_register_os_abi): Remove prototype.
7000 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7001 I386_SSE_NUM_REGS): New defines.
7002 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7003 I386_SSE_SIZEOF_REGS): New defines.
7004 (i386_register_name, i386_register_byte, i386_register_raw_size):
7006 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7007 (i386bsd_sigtramp_saved_pc): New prototype.
7008 * i386-tdep.c: Don't include "elf-bfd.h".
7009 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7010 i386_frame_chain, i386_saved_pc_after_call): Make static.
7011 (i386_frame_saved_pc): Rewrite to call architecture dependent
7012 function to deal with signal handlers. Make static.
7013 (i386go32_frame_saved_pc): Removed.
7014 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7016 (i386_get_longjmp_target): New function.
7017 (default_struct_convention, pcc_struct_convention,
7018 reg_struct_convention, valid_conventions, struct_convention): New
7020 (i386_use_struct_convention): New function.
7021 (i386v4_sigtramp_saved_pc): Renamed to
7022 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7023 (i386_pc_in_sigtramp): New function.
7024 (i386_abi_names): Removed.
7025 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7026 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7028 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7029 i386_gdbarch_register_os_abi): Removed.
7030 (struct i386_abi_handler): Removed.
7031 (i386_abi_handler_list): Removed.
7032 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7034 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7035 i386_nw_init_abi): New functions.
7036 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7037 Use set_gdbarch_xxx() calls instead of relying on macros for a
7039 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7040 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7041 Register the various architecture variants defined in this file.
7043 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7045 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7046 (struct main_type): Remove arg_types member. Update comments for
7048 (TYPE_ARG_TYPES): Remove.
7049 (TYPE_FN_FIELD_ARGS): Update.
7050 (smash_to_method_type): Update prototype.
7052 * c-typeprint.c (cp_type_print_method_args): Take method type
7053 instead of argument list. Use new argument layout. Simplify.
7054 (c_type_print_args): Use new argument layout. Simplify.
7055 (c_type_print_base): Update call to cp_type_print_method_args.
7056 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7057 argument; use die->type instead. Update call to
7058 smash_to_method_type.
7059 (read_structure_scope): Update call to dwarf2_add_member_fn.
7060 * gdbtypes.c (allocate_stub_method): Update comment.
7061 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7062 Use new argument layout.
7063 (check_stub_method): Use new argument layout. Don't count
7064 void as an argument.
7065 (print_arg_types): Update comments. Use new argument layout.
7066 (recursive_dump_type): Don't print arg_types member.
7067 * hpread.c (hpread_read_struct_type): Use new argument layout.
7068 (fixup_class_method_type): Likewise.
7069 (hpread_type_lookup): Likewise.
7070 * stabsread.c (read_type): Update calls to read_args and
7071 smash_to_method_type.
7072 (read_args): Use new argument layout. Simplify.
7073 * valops.c (typecmp): Use new argument layout. Update parameters
7074 and comments. Simplify.
7075 (hand_function_call): Use new argument layout.
7076 (search_struct_method): Update call to typecmp.
7077 (find_overload_match): Use new argument layout.
7079 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7081 * NEWS: Mention multithreaded debug support for gdbserver.
7083 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7085 * MAINTAINERS: Mention NEWS.
7087 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7089 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7090 (struct mips_objfile_private, compare_pdr_entries): New.
7091 (non_heuristic_proc_desc): Read the ".pdr" section if it
7094 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7096 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7097 (arm_debug): New static variable.
7098 (_initialize_arm_tdep): Add ``set debug arm'' command.
7100 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7102 * Makefile.in (sim_arm_h): Define.
7103 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7104 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7105 (arm_register_sim_regno): New function, map an internal REGNUM
7106 onto a simulator register number.
7107 (arm_gdbarch_init): Set register_sim_regno.
7109 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7111 * MAINTAINERS: Add self.
7113 2002-06-11 Jim Blandy <jimb@redhat.com>
7115 * source.c (source_info): Mention whether the symtab has
7116 information about preprocessor macros.
7118 Call the command `info macro', not `show macro'.
7119 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7121 (_initialize_macrocmd): Register `info_macro_command' in
7122 `infolist', not `showlist'.
7124 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7126 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7127 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7128 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7129 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7130 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7132 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7133 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7134 (_initialize_mips_tdep): Remove dead code.
7135 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7136 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7137 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7138 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7139 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7140 MIPS_LAST_FP_ARG_REGNUM): Remove.
7142 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7144 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7145 (unwind_tmp_obstack_free, parse_frame_info)
7146 (update_context, cfi_read_fp, cfi_write_fp)
7147 (cfi_frame_chain, cfi_init_extra_frame_info)
7148 (cfi_virtual_frame_pointer): Use the above function.
7149 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7151 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7153 * v850-tdep.c (v850_type_is_scalar): New function.
7154 (v850_use_struct_convention): Match current gcc implementation
7155 as close as possible.
7156 (v850_push_arguments): Fix stack_offset handling. Don't write
7157 struct_addr into register. This is done by v850_store_struct_return.
7158 (v850_extract_return_value): Care for structs.
7159 (v850_store_return_value): Ditto.
7160 (v850_store_struct_return): Actually write address.
7162 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7164 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7165 without debug information too.
7167 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7169 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7170 Make multi-arch pure.
7171 * gdbarch.h, gdbarch.c: Re-generate.
7172 * arm-tdep.c (arm_print_float_info): Update.
7173 * arch-utils.h (default_print_float_info): Update.
7174 * arch-utils.c (default_print_float_info): Update.
7175 * infcmd.c (float_info): Update call.
7177 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7179 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7180 the front of the initialize list.
7182 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7184 * infrun.c (struct inferior_status): Replace fields
7185 selected_frame_address and selected_level with field
7187 (save_inferior_status): Update. Use get_frame_id.
7188 (struct restore_selected_frame_args): Delete.
7189 (restore_selected_frame): Update. Use frame_find_by_id.
7190 (restore_inferior_status): Update.
7192 * breakpoint.h (struct breakpoint): Change type of
7193 watchpoint_frame to frame_id.
7194 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7195 call to get_current_frame.
7196 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7198 (watchpoint_check): Use frame_find_by_id.
7200 * frame.h (record_selected_frame): Delete declaration.
7201 * stack.c (record_selected_frame): Delete function.
7203 * frame.h (struct frame_id): Define.
7204 (get_frame_id): Declare.
7205 (frame_find_by_id): Declare.
7206 * frame.c (frame_find_by_id): New function.
7207 (get_frame_id): New function.
7209 2002-06-10 Andrey Volkov <avolkov@transas.com>
7211 * ser-e7kpc.c: Fix duplicated define and call of
7212 _initialize_ser_e7000pc
7214 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7216 * signals/signals.c (target_signal_from_host): Fix #ifdef
7218 (do_target_signal_to_host): Likewise.
7220 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7222 * mips-tdep.c (mips_find_abi_section): New function.
7223 (mips_gdbarch_init): Call it.
7225 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7227 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7228 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7229 after Andrew's 2002-06-08 gdbarch change.
7231 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7233 * i386-linux-nat.c (suppy_gregset): Don't supply
7234 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7236 (fill_gregset): Don't fetch it under the same circumstances.
7238 2002-06-09 Andrew Cagney <cagney@redhat.com>
7240 * Makefile.in (callback_h): Define.
7241 (remote_sim_h): Update path to remote-sim.h.
7242 (remote-rdp.o): Add $(callback_h).
7243 (remote-sim.o): Use $(callback_h).
7244 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7245 * remote-rdp.c: Include "gdb/callback.h".
7247 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7249 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7250 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7252 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7254 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7255 * rdi-share/serpardr.c: Ditto.
7256 * rdi-share/unixcomm.c: Ditto.
7257 * rdi-share/serdrv.c: Ditto.
7258 * rdi-share/hostchan.h: Ditto.
7259 * rdi-share/hostchan.c: Ditto.
7260 * rdi-share/host.h: Ditto.
7261 * rdi-share/devsw.c: Ditto.
7263 * objfiles.h: Change type of obj_private to void pointer.
7264 * pa64solib.c: Update copyright. Don't include "assert.h", use
7265 strcmp instead of STREQ, use LONGEST, do not use PTR
7266 * somsolib.c: Ditto.
7268 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7269 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7270 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7272 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7274 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7275 (default_get_saved_register): Delete function.
7276 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7277 generic_unwind_get_saved_register.
7278 * gdbarch.h, gdbarch.c: Re-generate.
7280 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7282 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7283 generic_func_frame_chain_valid.
7284 * gdbarch.h, gdbarch.c: Re-generate.
7285 * blockframe.c (generic_func_frame_chain_valid): Only check
7286 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7287 passing FP to PC_IN_CALL_DUMMY.
7290 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7292 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7293 (register_gdbarch_data): Initialize init_p.
7294 (gdbarch_data): Initialize data pointer using the init function.
7295 (init_gdbarch_data): Delete function.
7296 (gdbarch_update_p): Update.
7297 (initialize_non_multiarch): Update.
7298 (struct gdbarch): Add field initialized_p.
7299 * gdbarch.h, gdbarch.c: Re-generate.
7301 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7303 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7304 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7305 better do the things actually here.
7306 * x86-64-tdep.c (x86_64_register_name2nr): New.
7307 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7308 (x86_64_gdbarch_init): Respect the above change.
7309 * x86-64-tdep.h (x86_64_register_name2nr)
7310 (x86_64_register_nr2name): Add prototypes.
7311 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7313 2002-06-06 Michael Snyder <msnyder@redhat.com>
7315 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7316 Delete extra braces and re-indent.
7317 (d10v_store_return_value): Char return values
7318 must be shifted over by one byte in R0.
7319 (d10v_extract_return_value): Delete extra braces, re-indent.
7321 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7323 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7324 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7325 (d10v_integer_to_address): Rewrite.
7326 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7327 the d10v specific functions which take care of converting to the
7330 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7332 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7333 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7335 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7337 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7339 * config/tm-linux.h: Ditto.
7340 * config/alpha/tm-alphalinux.h: Ditto.
7341 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7342 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7343 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7344 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7345 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7346 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7347 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7348 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7349 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7350 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7351 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7352 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7353 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7354 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7355 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7356 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7357 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7358 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7359 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7360 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7361 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7362 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7363 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7364 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7365 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7366 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7367 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7368 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7369 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7370 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7371 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7372 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7373 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7374 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7375 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7376 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7377 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7379 2002-05-04 Aidan Skinner <aidan@velvet.net>
7381 * ada-exp.tab.c: New file
7382 * ada-exp.y: New file
7383 * ada-lang.c: New file
7384 * ada-lang.h: New file
7385 * ada-lex.c: New file
7386 * ada-lex.l: New file
7387 * ada-tasks.c: New file
7388 * ada-typeprint.c: New file
7389 * ada-valprint.c: New file
7391 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7393 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7394 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7396 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7398 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7399 insetead of ppc-linux-tdep.o.
7400 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7401 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7403 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7405 2002-05-07 Christian Groessler <chris@groessler.org>
7406 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7407 bit register contents for little endian hosts.
7409 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7411 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7414 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7416 * gdbarch.h: Regenerate.
7418 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7420 * MAINTAINERS: Add everyone to write-after-approval list.
7422 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7424 * stack.c (frame_info): Use frame_register_unwind instead of
7425 saved_regs. Mention when the SP is on the stack or in a register.
7427 * frame.h (frame_register_unwind_ftype): Define. Document.
7428 (struct frame_info): Add field register_unwind and
7429 register_unwind_cache.
7430 (frame_register_unwind): Declare.
7431 (generic_unwind_get_saved_register): Declare.
7433 * frame.c (frame_register_unwind): New function.
7434 (generic_unwind_get_saved_register): New function.
7436 * blockframe.c (generic_call_dummy_register_unwind): New function.
7437 (frame_saved_regs_register_unwind): New function.
7438 (set_unwind_by_pc): New function.
7439 (create_new_frame): New function.
7440 (get_prev_frame): New function.
7442 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7444 * a29k-share/: Delete directory.
7445 * remote-vx29k.c: Delete file.
7447 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7449 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7450 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7452 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7454 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7455 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7458 (sparcnbsd-tdep.o): New dependency lists.
7459 * NEWS: Note new UltraSPARC NetBSD native configuration.
7460 * configure.host (sparc64-*-netbsd*): New host.
7461 * configure.tgt (sparc-*-netbsdelf*)
7462 (sparc-*-netbsd*): Set gdb_target to nbsd.
7463 (sparc64-*-netbsd*): New target.
7464 * sparc64nbsd-nat.c: New file.
7465 * sparcnbsd-nat.c: New file.
7466 * sparcnbsd-tdep.c: New file.
7467 * sparcnbsd-tdep.h: New file.
7468 * config/sparc/nbsd.mt: New file.
7469 * config/sparc/nbsd64.mh: New file.
7470 * config/sparc/nbsd64.mt: New file.
7471 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7472 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7474 * config/sparc/nbsdaout.mt: Remove.
7475 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7476 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7478 * config/sparc/nbsdelf.mt: Remove.
7479 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7480 sparc-nat.c compatiblity defines.
7481 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7482 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7483 * config/sparc/tm-nbsd64.h: New file.
7484 * config/sparc/tm-nbsdaout.h: Remove.
7485 * config/sparc/xm-nbsd.h: Remove.
7487 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7489 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7490 * sparc-tdep.c: Include osabi.h.
7491 (gdbarch_tdep): Add osabi member.
7492 (_initialize_sparc_tdep): Use gdbarch_register.
7493 (sparc_gdbarch_init): Use generic OS ABI framework.
7494 (sparc_dump_tdep): New function.
7496 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7498 * corefile.c (do_captured_read_memory_integer): Return non-zero
7500 (safe_read_memory_integer): Copy result of memory read when
7501 status is non-zero. Also, add comments.
7503 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7505 * Makefile.in (ppc_tdep_h): Define.
7508 (rs6000-tdep.o): Use $(ppc_tdep_h).
7511 (ppcnbsd-tdep.o): New dependency lists.
7512 * ppc-tdep.h: Use generic OS ABI framework.
7513 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7514 (ppc_linux_init_abi): New functions.
7515 (ppc_sysv_abi_broken_use_struct_convention)
7516 (ppc_sysv_abi_use_struct_convention)
7517 (ppc_sysv_abi_push_arguments): Move to...
7518 * ppc-sysv-tdep.c: ...here.
7519 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7520 * rs6000-tdep.c (process_note_abi_tag_sections)
7521 (get_elfosabi): Remove.
7522 (rs6000_gdbarch_init): Use generic OS ABI framework.
7523 (rs6000_dump_tdep): New function.
7524 (_initialize_rs6000_tdep): Use gdbarch_register.
7525 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7526 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7527 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7528 of ppc-linux-tdep.o.
7529 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7530 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7531 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7532 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7533 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7534 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7536 2002-05-29 Jim Blandy <jimb@redhat.com>
7538 * macroscope.c (default_macro_scope): Put `void' in empty argument
7541 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7543 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7544 * arch-utils.c: Include "sim-regno.h".
7545 * gdbarch.sh: Don't include "sim-regno.h".
7546 * gdbarch.h, gdbarch.c: Regenerate.
7547 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7549 * arch-utils.h (legacy_register_sim_regno): To here.
7550 * remote-sim.c (legacy_register_sim_regno): Move function from
7552 * arch-utils.c (legacy_register_sim_regno): To here.
7554 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7556 * sim-regno.h: New file.
7557 * Makefile.in (sim_regno_h): Define.
7558 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7559 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7560 (legacy_register_sim_regno): New function.
7561 (one2one_register_sim_regno): New function.
7562 (gdbsim_fetch_register): Rewrite.
7563 (gdbsim_store_register): Only store a register when
7564 REGISTER_SIM_REGNO is valid.
7565 * d10v-tdep.c: Include "sim-regno.h".
7566 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7567 (d10v_ts3_register_sim_regno): Ditto.
7568 * gdbarch.sh: Include "sim-regno.h".
7569 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7570 * gdbarch.h, gdbarch.c: Regenerate.
7571 * arch-utils.h (default_register_sim_regno): Delete declaration.
7572 * arch-utils.c (default_register_sim_regno): Delete function.
7574 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7576 * ppcnbsd-nat.c: Rewrite.
7577 * ppcnbsd-tdep.c: New file.
7578 * ppcnbsd-tdep.h: New file.
7579 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7580 solib.o, and solib-svr4.o.
7581 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7582 nbsd-tdep.o, and corelow.o.
7584 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7586 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7587 `tr' and `sed'. Mention that `broken' targets are not expected to
7590 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7592 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7593 Let PC point right after the prologue before looking up symbols.
7595 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7597 * i386-tdep.c (i386_register_virtual_type): Return
7598 builtin_type_vec128i for SSE registers.
7600 * gdbtypes.h (builtin_type_vec128i): Declare.
7602 * gdbtypes.c (build_builtin_type_vec128i): New function.
7603 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7604 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7605 (build_gdbtypes): Initialize new builtin vector types.
7606 (_initialize_gdbtypes): Register new vector types with gdbarch.
7608 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7610 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7611 since it has been multi-arch'd.
7612 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7613 Move Alpha and VAX multi-arch news entries to same section
7614 as other multi-arch news.
7616 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7618 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7619 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7620 static. Rename some register numbers to put them in ns32k-tdep
7622 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7623 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7625 (_initialize_ns32k_tdep): Use gdbarch_register.
7626 * ns32k-tdep.h: New file.
7627 * ns32knbsd-tdep.c: New file.
7628 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7629 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7630 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7631 REGISTER_BYTES, REGISTER_BYTE): Remove.
7632 * config/ns32k/tm-ns32k.h: New file.
7633 * config/ns32k/tm-umax.h: Remove.
7635 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7637 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7638 ns32k_store_struct_return, ns32k_extract_return_value,
7639 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7641 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7642 ns32k_saved_pc_after_call.
7643 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7644 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7645 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7646 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7647 ns32k_extract_struct_value_address.
7649 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7651 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7652 ns32k_fix_call_dummy): New.
7653 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7654 ns32k_call_dummy_words.
7655 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7656 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7657 CALL_DUMMY_NARGS): Remove.
7658 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7660 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7662 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7663 ns32k_frame_saved_pc, ns32k_frame_args_address,
7664 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7665 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7666 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7667 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7668 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7669 (BREAKPOINT): Remove..
7670 (FRAME_CHAIN): Define as ns32k_frame_chain.
7671 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7672 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7673 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7674 (FRAME_FIND_SAVED_REGS): Remove.
7675 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7676 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7677 (POP_FRAME): Define as ns32k_pop_frame.
7679 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7681 * ns32k-tdep.c (ns32k_register_byte_32082,
7682 ns32k_register_byte_32382, ns32k_register_raw_size,
7683 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7685 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7686 ns32k_register_byte_32382.
7687 * config/ns32k/tm-umax.h: Update copyright years.
7688 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7689 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7690 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7691 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7692 (ns32k_get_enter_addr): Fix prototype.
7694 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7696 * ns32k-tdep.c: Update copyright years.
7697 (ns32k_register_name_32082): New function.
7698 (ns32k_register_name_32382): Ditto.
7699 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7700 (REGISTER_NAME): Define as ns32k_register_name_32382.
7701 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7702 (REGISTER_NAME): Define as ns32k_register_name_32082.
7704 2002-05-24 Jim Blandy <jimb@redhat.com>
7706 * dwarf2read.c (free_line_header): Use xfree, not free.
7708 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7710 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7711 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7713 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7715 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7717 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7719 From Ross Alexander at NEC Europe:
7720 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7722 2002-05-23 Michael Snyder <msnyder@redhat.com>
7724 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7725 for input, rather than parse_and_eval_address.
7727 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7729 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7730 * Makefile.in (sim_d10v_h): Update definition.
7732 2002-05-24 Andrew Cagney <cagney@redhat.com>
7734 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7735 change `2002-05-22 Michael Snyder' below.
7736 (d10v_push_arguments): Ditto.
7737 (d10v_extract_return_value): Ditto.
7739 2002-05-23 Jim Blandy <jimb@redhat.com>
7741 * macrotab.c (check_for_redefinition): Don't complain if the new
7742 definition is the same as the previous one. Take more arguments
7743 to allow the comparison.
7744 (macro_define_object, macro_define_function): Pass more arguments
7745 to check_for_redefinition.
7747 2002-05-22 Michael Snyder <msnyder@redhat.com>
7749 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7750 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7751 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7752 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7753 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7754 Add a temp variable to save a call (and a memory read).
7755 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7756 if possible (so that PC_IN_CALL_DUMMY will work).
7758 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7760 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7762 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7764 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7766 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7767 (dwarf2_build_frame_info): Add offset to fde->initial_location
7768 so that frames of shared libraries are mapped correctly.
7769 (execute_stack_op): Change type of 'result' from ULONGEST to
7772 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7774 * config/alpha/tm-nbsd.h: Include solib.h.
7776 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7778 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7779 assumptions about the host's byte order.
7781 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7783 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7785 * alphanbsd-tdep.c: Include solib-svr4.h.
7786 * shnbsd-tdep.c: Ditto.
7788 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7790 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7791 nbsd-tdep.h to dependency list.
7792 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7793 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7794 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7795 nbsdaout.mh and nbsdelf.mh consistently.
7796 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7797 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7798 nbsdaout.mt and nbsdelf.mh consistently.
7799 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7800 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7801 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7802 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7803 a.out shared library stuff from here...
7804 * config/nm-nbsdaout.h: ...to here.
7805 * config/tm-nbsd.h: Remove.
7806 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7807 * config/arm/nbsd.mh: Remove.
7808 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7810 * config/arm/nbsdaout.mh: New file.
7811 * config/arm/nbsdelf.mh: New file.
7812 * config/arm/nm-nbsdaout.h: New file.
7813 * config/i386/nbsd.mh: Remove.
7814 * config/i386/nbsd.mt: Remove.
7815 * config/i386/nbsdaout.mh: New file.
7816 * config/i386/nbsdaout.mt: New file.
7817 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7818 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7819 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7820 i386_register_u_addr): Remove.
7821 * config/i386/nm-nbsdaout.h: New file.
7822 * config/i386/nm-nbsdelf.h: Remove.
7823 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7824 (USE_STRUCT_CONVENTION): Remove.
7825 * config/i386/tm-nbsdaout.h: New file.
7826 * config/i386/tm-nbsdelf.h: Remove.
7827 * config/m68k/nbsd.mh: Remove.
7828 * config/m68k/nbsd.mt: Remove.
7829 * config/m68k/nbsdaout.mh: New file.
7830 * config/m68k/nbsdaout.mt: New file.
7831 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7832 * config/m68k/nm-nbsdaout.h: New file.
7833 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7834 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7835 * config/ns32k/nbsd.mh: Remove.
7836 * config/ns32k/nbsd.mt: Remove.
7837 * config/ns32k/nbsdaout.mh: New file.
7838 * config/ns32k/nbsdaout.mt: New file.
7839 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7840 * config/ns32k/nm-nbsdaout.h: New file.
7841 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7842 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7843 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7844 (SVR4_SHARED_LIBS): Remove.
7845 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7846 * config/sparc/nbsd.mh: Remove.
7847 * config/sparc/nbsd.mt: Remove.
7848 * config/sparc/nbsdaout.mh: New file.
7849 * config/sparc/nbsdaout.mt: New file.
7850 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7851 * config/sparc/nbsdelf.mt: New file.
7852 * config/sparc/nm-nbsdaout.h: New file.
7853 * config/sparc/nm-nbsdelf.h: Remove.
7854 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7855 * config/sparc/tm-nbsdaout.h: New file.
7857 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7859 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7861 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7863 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7865 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7867 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7869 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7871 * NEWS: Note new MIPS NetBSD native configuration.
7872 * configure.host (mips*-*-netbsd*): New host.
7873 * configure.tgt (mips*-*-netbsd*): New target.
7874 * mipsnbsd-nat.c: New file.
7875 * mipsnbsd-tdep.c: New file.
7876 * mipsnbsd-tdep.h: New file.
7877 * config/mips/nbsd.mh: New file.
7878 * config/mips/nbsd.mt: New file.
7879 * config/mips/nm-nbsd.h: New file.
7880 * config/mips/tm-nbsd.h: New file.
7882 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7884 * Makefile.in (SFILES): Add osabi.c.
7885 (COMMON_OBS): Add osabi.o.
7886 (osabi.o): New dependency list.
7887 * osabi.c: New file.
7888 * osabi.h: New file.
7889 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7891 * Makefile.in (alpha_tdep_h): Define and use instead of
7893 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7894 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7896 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7897 * alpha-tdep.h: Include osabi.h.
7898 (alpha_abi): Remove.
7899 (gdbarch_tdep): Use generic OS ABI framework.
7900 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7901 gdbarch_register_osabi.
7902 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7903 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7904 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7906 * Makefile.in (sh_tdep_h): Add osabi.h.
7907 * sh-tdep.h (sh_osabi): Remove.
7908 (gdbarch_tdep): Use generic OS ABI framework.
7909 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7910 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7911 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7912 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7914 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7915 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7916 gdbarch_register_osabi.
7917 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7918 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7919 (get_elfosabi): Rename to...
7920 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7921 ABI framework support routines.
7922 (arm_gdbarch_init): Use generic OS ABI framework.
7923 (arm_dump_tdep): Likewise.
7924 (_initialize_arm_tdep): Likewise.
7925 * arm-tdep.h: Include osabi.h.
7927 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7929 (arm_gdbarch_register_os_abi): Remove prototype.
7930 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7931 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7933 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7934 * mips-tdep.c: Include osabi.h.
7935 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7938 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7940 * h8300-tdep.c: Fix formatting.
7942 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7944 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7945 printing vector registers.
7947 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7949 From Fernando Nasser:
7950 * remote.c (remote_async_open_1): Re-throw the exception when the
7952 (remote_cisco_open): Ditto.
7953 (remote_open_1): Ditto.
7955 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7957 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7958 (remote_start_remote): Add uiout parameter. Pass through to
7959 remote_start_remote_dummy.
7960 (remote_open_1): Use catch_exception instead of catch_errors.
7961 (remote_async_open_1): Ditto.
7962 (remote_cisco_open): Ditto.
7964 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7966 * remote.c (remote_start_remote): Replace PTR with void pointer.
7967 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7970 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7972 * gdb_indent.sh: Allow the script to be run in the sim directory.
7974 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7976 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7977 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7979 * corelow.c (core_open): Only call set_gdbarch_from_file if
7982 2002-05-17 Andrey Volkov <avolkov@transas.com>
7984 * h8300-tdep.c: Add support of EXR register
7985 * config/h8300/tm-h8300.h: Ditto.
7987 2002-05-17 Andrey Volkov <avolkov@transas.com>
7989 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7991 2002-05-17 Andrey Volkov <avolkov@transas.com>
7993 * h8300-tdep.c: Change literal regnums to REGNO.
7995 2002-05-17 Jim Blandy <jimb@redhat.com>
7997 * NEWS: Note addition of macro support.
7999 Expand preprocessor macros in C expressions.
8000 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8001 (scan_macro_expansion, scanning_macro_expansion,
8002 finished_macro_expansion): New function declarations.
8003 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8004 variable declarations.
8005 * parser-defs.h (expression_context_pc): New declaration.
8006 * parse.c (expression_context_pc): New variable.
8007 (parse_exp_1): Set expression_context_pc, as well as
8008 expression_context_block.
8009 * c-exp.y (yylex): If we're not already reading the result of a
8010 macro expansion, try to macro-expand the next token. When we're
8011 done scanning a macro expansion, switch back to the mainline text.
8012 Commas and `if's in a macro's expansion don't terminate the input.
8013 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8014 (macro_original_text, macro_expanded_text,
8015 expression_macro_lookup_func, expression_macro_lookup_baton): New
8017 (scan_macro_expansion, scanning_macro_expansion,
8018 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8019 c_preprocess_and_parse): New functions.
8020 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8021 c_preprocess_and_parse, instead of c_parse.
8022 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8023 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8025 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8027 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8028 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8029 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8031 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8033 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8035 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8037 * Makefile.in (sh_tdep_h): Define and use.
8038 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8039 register enum): Move to...
8040 * * sh-tdep.h: ...here.
8041 * sh-tdep.c: Include sh-tdep.h.
8042 * sh3-rom.c: Likewise.
8043 * shnbsd-tdep.c: Likewise.
8045 2002-05-16 Michael Snyder <msnyder@redhat.com>
8047 * arm-tdep.c: Spelling fix in comment.
8049 2002-05-16 Jim Blandy <jimb@redhat.com>
8051 Add commands for manually expanding macros and showing their
8053 * macrocmd.c, macroscope.c, macroscope.h: New files.
8054 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8055 (macroscope_h): New variable.
8056 (HFILES_NO_SRCDIR): Add macroscope.h.
8057 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8058 (macroscope.o, macrocmd.o): New rules.
8060 Teach the Dwarf 2 reader to read macro information.
8061 * dwarf2read.c: #include "macrotab.h".
8062 (dwarf_macinfo_buffer): New variable.
8063 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8065 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8066 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8067 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8068 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8069 dwarf2_macro_spaces_in_definition): New complaints.
8070 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8071 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8072 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8073 the partial symbol table.
8074 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8075 from what's recorded in the partial symbol table.
8076 (read_file_scope): If the compilation unit has a
8077 `DW_AT_macro_info' attribute, read its macro information.
8078 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8080 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8083 * ser-tcp.c: Don't include <netinet/udp.h>.
8085 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8087 * MAINTAINERS: Update my email address.
8089 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8091 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8092 include file of the same name.
8094 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8096 * configure.tgt: Mark v850 as multi-arched.
8097 * config/v850/tm-v850.h: Remove file.
8098 * config/v850/v850.mt: Eliminate TM_FILE.
8100 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8102 * v850-tdep.c: Full multi-arch.
8103 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8104 Define GDB_MULTI_ARCH to 2.
8106 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8108 * p-exp.y (current_type): New static variable.
8109 Carries the type of the expression at the position that is parsed.
8110 (push_current_type, pop_current_type): Two new functions. Used
8111 to store/restore current_type in expression on specific tokens.
8112 (search_field): New static variable. Set to one after parsing a point
8113 as at that point only a FIELDNAME token should be searched.
8114 (FIELDNAME): New token. After a point only a token belonging to
8115 current_type type definition is allowed.
8116 (all over token rules): reset and change current_type according
8118 (exp '[' rule): insert implicit array index field if
8119 exp is a pascal string type.
8121 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8123 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8124 frame info. Use frame_info's saved_regs instead of matching member
8125 in extra_frame_info throughout.
8126 (v850_frame_init_saved_regs): New function.
8127 (v850_init_extra_frame_info): Move most functionality into
8128 v850_frame_init_saved_regs().
8129 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8130 (v850_frame_find_saved_regs): Remove declaration.
8131 (FRAME_FIND_SAVED_REGS): Remove definition.
8132 (v850_frame_init_saved_regs): Add declaration.
8133 (FRAME_INIT_SAVED_REGS): Add definition.
8135 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8137 * v850-tdep.c: Begin multi-arch'ing v850.
8138 (v850_target_architecture_hook): Remove function.
8139 (v850_gdbarch_init): New function. Add code previously in
8140 v850_target_architecture_hook().
8141 (_initialize_v850_tdep): Don't set target_architecture_hook.
8142 Call register_gdbarch_init() instead.
8144 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8146 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8147 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8148 (fixup_class_method_type): Likewise.
8150 2002-05-15 Jim Blandy <jimb@redhat.com>
8152 Add macro structures to GDB's symbol tables. Nobody puts anything
8154 * symtab.h (struct symtab): New member: `macro_table'.
8155 * buildsym.h (pending_macros): New global variable.
8156 * buildsym.c: #include "macrotab.h".
8157 (buildsym_init): Initialize `pending_macros'.
8158 (end_symtab): If we found macro information while reading a CU's
8159 debugging info, do build a symtab structure for it. Make the
8160 symtab point to the macro information, and clear the
8161 `pending_macros' pointer which held it while we were reading the
8163 (really_free_pendings): Free any pending macro table.
8164 * objfiles.h (struct objfile): New member: `macro_cache'.
8165 * objfiles.c (allocate_objfile): Set allocate and free functions
8166 for the macro cache's objstack.
8167 (free_objfile): Empty the macro cache's obstack.
8168 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8169 set new allocate and free functions for it.
8170 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8171 free functions for the macro cache's objstack. (Why is this
8172 function building its own objfile?)
8173 * symmisc.c (print_objfile_statistics): Print statistics on the
8175 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8177 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8179 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8180 (REGISTER_U_ADDR): Delete definition.
8181 (arm_register_u_addr): Delete declaration.
8183 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8185 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8186 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8188 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8190 * regcache.c (register_valid): Revise comments refering to "Not
8191 available" and "unavailable".
8192 * frame.c (frame_register_read): Ditto.
8193 * findvar.c (value_of_register): Ditto.
8195 2002-05-15 Andrew Cagney <cagney@redhat.com>
8197 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8198 (remote-sim.o): Update dependencies.
8199 (d10v-tdep.o): Specify dependencies.
8200 (sim_d10v_h): Define.
8202 2002-05-14 Jim Blandy <jimb@redhat.com>
8204 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8205 * macrotab.c (macro_lookup_inclusion, find_definition,
8206 new_macro_table): Same.
8208 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8209 not `! strcmp ()'. This is a dubious improvement.
8210 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8212 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8213 although it's not necessary, to avoid a warning.
8215 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8217 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8218 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8219 TYPE_INSTANCE_FLAGS.
8220 (struct main_type): New.
8221 (struct type): Move most members to struct main_type. Change
8222 cv_type and as_type to new type_chain member. Add instance_flags.
8223 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8224 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8225 (finish_cv_type): Remove prototype.
8226 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8228 (alloc_type_instance): New function.
8229 (smash_type): New function.
8230 (make_pointer_type, make_reference_type, make_function_type)
8231 (smash_to_member_type, smash_to_method_type): Call smash_type.
8232 (make_qualified_type): New function.
8233 (make_type_with_address_space): Call make_qualified_type.
8234 (make_cv_type): Likewise.
8235 (finish_cv_type): Remove unnecessary function.
8236 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8237 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8238 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8239 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8240 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8241 * hpread.c (hpread_read_struct_type): Likewise.
8242 * stabsread.c (read_struct_type): Likewise.
8244 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8246 * configure.tgt: Add a catch all sh* target, for cases like
8247 sh[2,3,4]-elf and sh-hms.
8249 2002-05-14 Keith Seitz <keiths@redhat.com>
8251 * event-loop.c (create_file_handler): Don't do anything but
8252 update data when we are given a fd which we are already
8255 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8257 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8258 (update_context): Use __func__ in warnings.
8260 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8262 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8263 and tcp_close to net_open and net_close.
8264 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8265 using UDP if requested. Don't try to disable Nagle on UDP
8267 * remote.c (remote_serial_open): New function. Warn about UDP.
8268 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8270 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8272 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8274 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8276 * configure.tgt: Remove sh-hms target.
8277 * MAINTAINERS: Don't list sh-hms as a separate target.
8279 2002-05-13 Jim Blandy <jimb@redhat.com>
8281 Add first preprocessor macro-expansion files.
8282 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8283 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8284 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8285 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8286 (COMMON_OBS): Add macrotab.o, macroexp.o.
8287 (macroexp.o, macrotab.o): New rules.
8289 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8291 * config/m88k/tm-m88k.h: Update copyright.
8292 (m88k_target_write_pc): Declare
8293 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8294 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8295 (SHIFT_INST_REGS): Update definition.
8296 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8297 using old definition of TARGET_WRITE_PC.
8298 * regcache.c (generic_target_write_pc): Delete code handling
8300 * gdbarch.sh (NNPC_REGNUM): Delete.
8301 * gdbarch.h, gdbarch.c: Regenerate.
8303 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8305 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8308 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8310 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8311 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8312 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8314 * c-typeprint.c (cp_type_print_method_args): Likewise.
8315 (c_type_print_args): Likewise.
8316 * d10v-tdep.c (d10v_push_arguments): Likewise.
8317 (d10v_extract_return_value): Likewise.
8318 * expprint.c (print_subexp): Likewise.
8319 * gdbtypes.c (lookup_primitive_typename): Likewise.
8320 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8321 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8322 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8323 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8324 (TYPE_VECTOR): Likewise.
8325 * hpread.c (hpread_read_struct_type)
8326 (fix_static_member_physnames, fixup_class_method_type)
8327 (hpread_type_lookup): Likewise.
8328 * mdebugread.c (parse_symbol, parse_type): Likewise.
8329 * p-lang.c (is_pascal_string_type): Likewise.
8330 * valops.c (hand_function_call): Likewise.
8331 * x86-64-tdep.c (classify_argument): Likewise.
8333 * hpread.c (hpread_read_function_type)
8334 (hpread_read_doc_function_type): Call replace_type.
8335 * dstread.c (create_new_type): Delete.
8336 (decode_dst_structure, process_dst_function): Call alloc_type.
8337 Use type access macros.
8339 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8341 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8342 the're not supported by the current architecture.
8343 (i387_fill_fxsave): Likewise.
8345 2002-05-12 Fred Fish <fnf@redhat.com>
8347 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8348 sect_index_xxx members to index the first slot in section_offsets
8349 if all of the section_offsets are zero.
8351 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8353 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8354 checked in with last change.
8356 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8358 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8359 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8362 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8364 * Makefile.in: Update dependencies.
8366 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8368 * language.c (local_hex_string_custom): Simplify. Do not depend
8369 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8371 * memattr.c (mem_info_command): Replace calls to
8372 longest_local_hex_string and longest_local_hex_string_custom.
8373 * buildsym.c (make_blockvector): Ditto.
8374 * solib.c (info_sharedlibrary_command): Ditto.
8375 * tracepoint.c (tracepoints_info): Ditto.
8376 * symtab.c (print_msymbol_info): Ditto.
8378 * language.c (local_hex_string): Delete.
8379 (local_hex_string_custom): Delete.
8380 (longest_local_hex_string): Rename to local_hex_string.
8381 (longest_local_hex_string_custom): Rename to
8382 local_hex_string_custom.
8383 * language.h (local_hex_string): Change parameter type to LONGEST.
8384 (local_hex_string_custom): Ditto.
8385 (longest_local_hex_string): Delete declaration.
8386 (longest_local_hex_string_custom): Ditto.
8388 * solib.c: Update copyright.
8389 * memattr.c: Update copyright.
8391 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8393 * arch-utils.h (legacy_register_to_value): Declare.
8394 (legacy_value_to_register): Declare.
8395 (legacy_convert_register_p): Declare.
8396 * arch-utils.c (legacy_register_to_value): New function.
8397 (legacy_value_to_register): New function.
8398 (legacy_convert_register_p): New function.
8400 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8401 (VALUE_TO_REGISTER): Define.
8402 (CONVERT_REGISTER_P): Define.
8403 * gdbarch.h, gdbarch.c: Regenerate.
8405 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8407 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8410 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8411 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8413 * Makefile.in: Update dependencies for valops.c.
8414 * valops.c: Include "gdb_assert.h".
8415 (typecmp): Skip THIS parameter to methods.
8416 (find_method_list): Remove static_memfuncp argument,
8417 update callers. Check for stub methods.
8418 (find_value_oload_method_list): Don't set *static_memfuncp.
8419 (find_overload_match): Don't check for stub methods. Assert
8420 that methods are not stubbed. Handle static methods.
8421 (value_find_oload_method_list): Remove static_memfuncp argument.
8422 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8423 to the argument list for static stub methods.
8424 * value.h (value_find_oload_method_list): Update prototype.
8426 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8428 * arch-utils.h (generic_register_size): Declare.
8429 (generic_register_raw_size, generic_register_virtual_size): Delete
8431 * arch-utils.c (generic_register_raw_size): Delete.
8432 (generic_register_size): New function.
8433 (generic_register_virtual_size): Delete.
8435 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8436 default generic_register_size.
8437 * gdbarch.h, gdbarch.c: Re-generate.
8439 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8440 register_virtual_size.
8441 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8442 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8444 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8446 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8447 * gdbarch.h, gdbarch.c: Regenerate.
8448 * gnu-v3-abi.c: Update copyright.
8449 (vtable_address_point_offset): Update.
8450 (gnuv3_rtti_type): Update.
8451 (gnuv3_baseclass_offset): Update.
8452 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8453 (init_fetch_link_map_offsets): Update.
8454 * remote.c (get_remote_state): Update.
8456 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8458 * TODO: Remove value_headof/value_from_vtable_info comment.
8459 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8460 * values.c (value_headof, value_from_vtable_info): Delete.
8461 * value.h (value_from_vtable_info): Delete prototype.
8463 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8465 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8466 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8468 (gdb_assert_h): Define.
8469 (gdb_wait_h): Define.
8470 (gdb_regex_h): Define.
8472 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8474 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8475 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8477 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8479 * nbsd-tdep.c: Fix comment.
8481 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8483 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8484 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8485 (nbsd-tdep.o): New dependency list.
8486 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8488 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8489 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8490 * nbsd-tdep.c: New file.
8491 * nbsd-tdep.h: New file.
8492 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8494 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8495 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8496 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8497 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8499 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8501 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8502 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8503 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8504 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8505 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8506 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8508 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8510 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8511 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8512 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8513 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8514 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8515 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8516 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8518 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8520 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8521 fetch_elfcore_registers to...
8522 * i386nbsd-tdep.c: ...here.
8523 (i386nbsd_use_struct_convention): Rename to...
8524 (i386nbsd_aout_use_struct_convention): ...this.
8525 (i386nbsd_supply_reg): New function.
8526 (i386nbsd_fill_reg): New function.
8527 (fetch_core_registers): Use i386nbsd_supply_reg.
8528 (fetch_elfcore_registers): Likewise.
8529 (_initialize_i386nbsd_tdep): New function.
8530 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8531 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8532 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8533 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8534 (i386nbsd_aout_use_struct_convention): ...this.
8536 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8538 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8539 (store_inferior_registers): Use shnbsd_fill_reg.
8540 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8541 sh_nbsd_supply_register): Collapse into...
8542 (shnbsd_supply_reg): ...this.
8543 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8544 (shnbsd_fill_reg): ...this.
8545 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8546 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8547 (fetch_core_registers): Use shnbsd_supply_reg.
8548 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8549 (sh_nbsd_core_fns): Rename to...
8550 (shnbsd_core_fns): ...this.
8551 (sh_nbsd_elfcore_fns): Rename to...
8552 (shnbsd_elfcore_fns): ...this.
8553 (sh_nbsd_init_abi): Rename to...
8554 (shnbsd_init_abi): ...this.
8555 (_initialize_sh_nbsd_tdep): Rename to...
8556 (_initialize_shnbsd_tdep): ...this.
8557 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8558 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8559 sh_nbsd_fill_register): Remove prototypes.
8560 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8562 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8564 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8565 (i387-nat.o): Delete dependency list.
8566 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8567 (x86-64-linux-nat.o): Likewise.
8568 * i387-nat.c: Delete file, moving contents to...
8569 * i387-tdep.c: ...here.
8570 * i387-nat.h: Rename...
8571 * i387-tdep.h: ...to this.
8572 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8573 * i386-linux-nat.c: Likewise.
8574 * i386bsd-nat.c: Likewise.
8575 * i386gnu-nat.c: Likewise.
8576 * i386nbsd-nat.c: Likewise.
8577 * i386v4-nat.c: Likewise.
8578 * x86-64-linux-nat.c: Likewise.
8579 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8580 * config/i386/go32.mh (NATDEPFILES): Likewise.
8581 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8582 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8583 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8584 * config/i386/linux.mh (NATDEPFILES): Likewise.
8585 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8586 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8587 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8588 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8590 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8592 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8593 (alphanbsd-nat.o): Remove dependency list.
8594 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8595 * alphanbsd-nat.c: Delete. Contents moved to...
8596 * alphanbsd-tdep.c: ...here.
8597 (_initialize_alphanbsd_tdep): Register core functions.
8598 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8600 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8602 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8603 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8604 (alphanbsd-nat.o): Likewise.
8605 (alphabsd-tdep.o): New dependency list.
8606 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8607 (fill_gregset): Use alphabsd_fill_reg.
8608 (supply_fpregset): Use alphabsd_supply_fpreg.
8609 (fill_fpregset): Use alphabsd_fill_fpreg.
8610 (fetch_inferior_registers): Use struct reg and struct fpreg
8611 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8612 and alphabsd_supply_fpreg.
8613 (store_inferior_registers): Use struct reg and struct fpreg
8614 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8615 and alphabsd_fill_fpreg.
8616 * alphabsd-tdep.c: New file.
8617 * alphabsd-tdep.h: New file.
8618 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8619 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8620 alphabsd_supply_fpreg.
8621 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8622 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8624 2002-05-11 Eric Christopher <echristo@redhat.com>
8626 * mips-tdep.c (mips_double_register_type): Fix thinko.
8627 (mips_single_register_type): Ditto.
8628 * MAINTAINERS: Add self.
8630 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8632 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8633 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8634 right thing on architectures with different endianness and/or
8637 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8639 From Christian Limpach <chris@Pin.LU>
8640 * configure.in: Change sed expression which comments out
8641 NATDEPFILES to also comment out continuation lines.
8642 * configure: Regenerate.
8644 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8646 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8649 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8651 * sh-tdep.c: Include correct file.
8653 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8655 New support for sh64-elf (sh5) target.
8657 * configure.tgt: For sh64-elf target, default to sh-elf.
8659 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8660 (struct gdbarch_tdep): Add new fields for new registers and ABI
8663 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8664 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8665 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8666 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8667 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8668 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8669 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8670 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8671 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8672 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8673 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8674 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8675 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8676 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8677 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8678 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8679 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8680 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8681 sign_extend, sh64_nofp_frame_init_saved_regs,
8682 sh64_init_extra_frame_info, sh64_get_saved_register,
8683 sh64_extract_struct_value_address, sh64_pop_frame,
8684 sh64_push_arguments, sh64_extract_return_value,
8685 sh64_store_return_value, sh64_show_media_regs,
8686 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8687 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8688 sh_sh64_register_virtual_type,
8689 sh_sh64_register_convert_to_virtual,
8690 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8691 sh64_register_read, sh64_pseudo_register_write,
8692 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8693 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8694 sh64_do_pseudo_register, sh_compact_do_registers_info,
8695 sh64_do_registers_info, sh_gdbarch_init): New functions.
8697 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8699 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8701 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8703 * linespec.c (decode_line_1): Check for a double quote after
8704 a filename correctly.
8706 2002-05-10 Jim Blandy <jimb@redhat.com>
8708 Properly track the size of the current objfile's .debug_line section.
8709 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8710 (DWARF_LINE_SIZE): New macro.
8711 (dwarf2_build_psymtabs_hard): Record the line section's size in
8712 the partial symbol table.
8713 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8716 2002-05-10 Petr Sorfa <petrs@caldera.com>
8718 * ia64-tdep.c: Handle breakpoints on L instruction type
8719 in MLX instruction bundle by moving the breakpoint to
8720 the third slot (X instruction type) as L holds only data.
8722 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8724 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8725 (process_one_symbol): Complain about discarding local symbols
8726 due to a misplaced N_LBRAC entry.
8728 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8730 From Daniel Berlin <dan@cgsoftware.com>
8731 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8732 decrease the depth we are at, in the case of templates.
8734 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8736 * mips-tdep.c (mips_float_register_type): New function.
8737 (mips_double_register_type): New function.
8738 (mips_print_register): Use them.
8739 (do_fp_register_row): Likewise.
8741 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8743 * signals/signals.c (signals): Remove conditional compilation around
8744 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8745 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8747 2002-05-09 Michael Snyder <msnyder@redhat.com>
8749 * remote-rdp.c (remote_rdp_can_run): Remove.
8751 2002-05-09 Tom Tromey <tromey@redhat.com>
8753 * jv-valprint.c (java_val_print): Handle `char' as a special case
8756 2002-05-09 Michael Snyder <msnyder@redhat.com>
8758 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8759 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8760 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8761 str r(0123),[sp,#nn].
8762 (arm_skip_prologue): Ditto. Also make disassembly
8763 order-independent by placing it in a loop.
8765 2002-05-06 Michael Snyder <msnyder@redhat.com>
8767 * stabsread.c (read_type): Add recognition for new attribute:
8768 "@V;" means that an array type is actually a vector.
8769 This is analogous to the vector flag that's been added to dwarf2.
8771 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8773 * i386-tdep.h (i386_abi): New enum.
8774 (struct gdbarch_tdep): Replace os_ident member with abi.
8775 (i386_gdbarch_register_os_abi): New prototype.
8776 * i386-tdep.c (i386_abi_names): New array.
8777 (process_note_abi_tag_sections): Removed.
8778 (process_note_sections): New function.
8779 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8780 (struct i386_abi_handler): New struct.
8781 (i386_abi_handler_list): New variable.
8782 (i386_gdbarch_register_os_abi): New function.
8783 (i386_gdbarch_init): Adapt for the changes given above.
8785 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8787 * gregset.h: Say "GNU/Linux".
8789 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8791 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8792 (build_gdbtypes): Build builtin_type_v2_float.
8793 (_initialize_gdbtypes): Register new builtin type.
8795 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8797 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8798 (clear_gdbarch_swap): New function.
8799 (initialize_non_multiarch): Call.
8800 (gdbarch_update_p): Before calling init(), swap out and clear the
8801 existing architecture.
8802 * gdbarch.c: Regenerate.
8804 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8806 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8809 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8811 * sh-nbsd-nat.c: Rename to...
8812 * shnbsd-nat.c: ...this.
8813 * sh-nbsd-tdep.c: Rename to...
8814 * shnbsd-tdep.c: ...this.
8815 * sh-nbsd-tdep.h: Rename to...
8816 * shnbsd-tdep.h: ...this.
8817 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8818 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8820 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8822 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8823 concatenation for command help messages.
8825 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8827 * NEWS: Note new sh*-*-netbsdelf* configuration.
8828 * configure.host: Set gdb_host_cpu to sh for all sh*.
8829 (sh*-*-netbsdelf*): New host.
8830 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8831 (sh*-*-netbsdelf*): New target.
8832 * sh-nbsd-nat.c: New file.
8833 * sh-nbsd-tdep.c: New file.
8834 * sh-nbsd-tdep.h: New file.
8835 * config/sh/nbsd.mh: New file.
8836 * config/sh/nbsd.mt: New file.
8837 * config/sh/nm-nbsd.h: New file.
8838 * config/sh/tm-nbsd.h: New file.
8840 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8842 * sh-tdep.c (sh_osabi_names): Declare.
8843 (process_note_abi_tag_sections): New function.
8844 (get_elfosabi): Ditto.
8845 (sh_gdbarch_register_os_abi): Ditto.
8846 (sh_dump_tdep): Ditto.
8847 _initialize_sh_tdep): Use gdbarch_register to register
8848 sh_gdbarch_init and sh_dump_tdep.
8849 * config/sh/tm-sh.h (sh_osabi): Declare.
8850 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8852 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8854 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8855 (thumb_scan_prologue): Ditto.
8856 (arm_find_callers_reg): Ditto.
8857 (arm_frame_chain): Ditto.
8858 (arm_init_extra_frame_info): Ditto.
8859 (arm_frame_saved_pc): Ditto.
8860 (arm_pop_frame): Ditto.
8861 (arm_push_return_address): New function.
8862 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8863 call_dummy_location, call_dummy_breakpoint_offset_p,
8864 call_dummy_breakpoint_offset, call_dummy_p,
8865 call_dummy_stack_adjust_p, call_dummy_words,
8866 sizeof_call_dummy_words, call_dummy_start_offset,
8867 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8868 call_dummy_address, push_return_address and push_dummy_frame for
8869 generic dummy frames.
8871 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8873 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8874 size computation for alloca.
8875 (sh_fp_frame_init_saved_regs): Likewise.
8877 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8879 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8880 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8881 * arm-tdep.c (arm_store_return_value): Use them.
8882 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8883 * remote-rdp.c (remote_rdp_fetch_register): Use
8884 ARM_MAX_REGISTER_RAW_SIZE.
8885 (remote_rdp_store_register): Likewise.
8887 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8889 * dwarf2cfi.c: Code cleanup, removed unused variables,
8890 added default labels to switch {} statements.
8891 * x86-64-tdep.c: Ditto.
8892 * x86-64-linux-nat.c: Ditto.
8894 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8896 * solib.h: Protect against multiple inclusion.
8898 2002-05-06 Jim Blandy <jimb@redhat.com>
8900 Add first preprocessor macro-expansion files.
8901 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8902 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8903 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8904 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8905 (COMMON_OBS): Add macrotab.o, macroexp.o.
8906 (macroexp.o, macrotab.o): New rules.
8908 Separate the job of reading the line number info statement program
8909 header (...expialidocious) out into its own function.
8910 * dwarf2read.c (struct line_head, struct filenames, struct
8911 directories): Replace with...
8912 (struct line_header): New structure, containing the full
8913 contents of the statement program header, including the
8914 include directory and file name tables.
8915 (read_file_scope): If we have line number info, instead of just
8916 calling dwarf_decode_lines to do all the work, call
8917 dwarf_decode_line_header first to get a `struct line_header'
8918 containing the data in the statement program header, and then
8919 pass that to dwarf_decode_lines, which will pick up where that
8920 left off. Be sure to clean up the `struct line_header' object.
8921 (dwarf_decode_line_header, free_line_header, add_include_dir,
8922 add_file_name): New functions.
8923 (dwarf_decode_lines): Move all the code to read the statement
8924 program header into dwarf_decode_line_header. Take the line
8925 header it built as the first argument, instead of the offset to
8926 the compilation unit's line number info. Use the new `struct
8927 line_header' type instead of the old structures. No need to do
8928 cleanups here now, since we don't allocate anything.
8929 (dwarf2_statement_list_fits_in_line_number_section,
8930 dwarf2_line_header_too_long): New complaints.
8932 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8934 * gdbtypes.c (init_vector_type): New function.
8935 (build_builtin_type_vec128): Simplify the representation of SIMD
8937 (build_gdbtypes): Initialize new builtin vector types.
8938 (_initialize_gdbtypes): Register new vector types with gdbarch.
8939 (builtin_type_v4_float, builtin_type_v4_int32,
8940 builtin_type_v8_int16, builtin_type_v16_int8,
8941 builtin_type_v2_int32, builtin_type_v4_int16,
8942 builtin_type_v8_int8): New (renamed) SIMD types.
8944 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8946 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8947 (i387_fill_fxsave): Likewise.
8949 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8951 * alpha-tdep.c (alpha_extract_return_value): Don't use
8952 non-constant array size in prototype.
8954 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8956 From Brian Taylor <briant at model dot com>:
8957 * ui-out.c (ui_out_field_core_addr): Use the function
8958 longest_local_hex_string_custom'to format addresses > 32 bits
8961 * ui-out.c (ui_out_field_core_addr): Update comment.
8963 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8965 * stack.c (select_and_print_frame): Make static. Delete the
8967 (func_command): Update call.
8968 (select_frame_command): Delete code computing the frame level.
8969 * frame.h (select_and_print_frame): Delete declaration.
8971 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8973 * sparc-tdep.c (sparc_get_saved_register): Comment why
8974 get_prev_frame call is safe.
8976 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8978 * frame.h (select_frame): Delete level parameter.
8979 * stack.c (select_frame): Update. Use frame_relative_level to
8980 obtain the frame's level.
8981 (select_and_print_frame): Update call.
8982 (select_frame_command): Ditto.
8983 (up_silently_base): Ditto.
8984 (down_silently_base): Ditto.
8985 * ocd.c (ocd_start_remote): Ditto.
8986 * remote-rdp.c (remote_rdp_open): Ditto.
8987 * remote-mips.c (mips_initialize): Ditto.
8988 (common_open): Ditto.
8989 * remote-e7000.c (e7000_start_remote): Ditto.
8990 * m3-nat.c (select_thread): Ditto.
8991 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8992 (child_get_current_exception_event): Ditto.
8993 * varobj.c (varobj_create): Ditto.
8994 (varobj_update): Ditto.
8995 (c_value_of_root): Ditto.
8996 * tracepoint.c (finish_tfind_command): Ditto.
8997 * corelow.c (core_open): Ditto.
8998 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8999 * thread.c (info_threads_command): Ditto.
9000 (switch_to_thread): Ditto.
9001 * infrun.c (normal_stop): Ditto.
9002 (restore_selected_frame): Ditto.
9003 (restore_inferior_status): Ditto.
9004 * breakpoint.c (insert_breakpoints): Ditto.
9005 (watchpoint_check): Ditto.
9006 (bpstat_stop_status): Ditto.
9007 (do_enable_breakpoint): Ditto.
9008 * blockframe.c (flush_cached_frames): Ditto.
9009 (reinit_frame_cache): Ditto.
9011 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9013 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9016 2002-05-04 Jim Blandy <jimb@redhat.com>
9018 * gdbtypes.c (replace_type): Doc fix.
9020 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9022 * valprint.c (strcat_longest): Delete commented out function.
9025 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9027 * MAINTAINERS: Mark a29k as deleted.
9028 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9029 Move new configurations to the top.
9030 * configure.tgt: Remove a29k.
9031 * config/a29k/tm-vx29k.h: Delete.
9032 * config/a29k/vx29k.mt: Delete.
9033 * config/a29k/tm-a29k.h: Delete.
9034 * config/a29k/a29k-udi.mt: Delete.
9035 * config/a29k/a29k.mt: Delete.
9036 * a29k-tdep.c: Delete.
9037 * remote-udi.c: Delete.
9038 * remote-mm.c: Delete.
9039 * remote-eb.c: Delete.
9040 * remote-adapt.c: Delete.
9041 * Makefile.in: Remove obsolete code.
9042 * config/s390/s390x.mt: Ditto.
9043 * config/s390/s390.mt: Ditto.
9044 * config/sparc/sparclynx.mh: Ditto.
9045 * config/sparc/linux.mh: Ditto.
9046 * config/pa/hppaosf.mh: Ditto.
9047 * config/pa/hppabsd.mh: Ditto.
9048 * config/ns32k/nbsd.mt: Ditto.
9049 * config/mips/vr5000.mt: Ditto.
9050 * config/m68k/sun3os4.mh: Ditto.
9051 * config/m68k/nbsd.mt: Ditto.
9052 * config/m68k/m68klynx.mh: Ditto.
9053 * config/m32r/m32r.mt: Ditto.
9054 * config/i386/x86-64linux.mt: Ditto.
9055 * config/i386/nbsdelf.mt: Ditto.
9056 * config/i386/nbsd.mt: Ditto.
9057 * config/i386/i386lynx.mh: Ditto.
9059 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9061 * target.c (debug_print_register): New function. Handle oversize
9063 (debug_to_fetch_registers): Call.
9064 (debug_to_store_registers): Call.
9066 2002-05-03 Jim Blandy <jimb@redhat.com>
9068 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9069 (read_type): Doc fix.
9070 * gdbtypes.c (replace_type): Doc fix.
9072 * stabsread.c (multiply_defined_struct): New complaint.
9073 (read_struct_type): If the type we were passed isn't empty, or
9074 incomplete, don't read the new struct type into it; complain,
9075 and return the original type unchanged. Take a new `type_code'
9076 argument, which is the type code for the new type.
9077 (read_type): Rather than storing the type's type code here, pass
9078 it as an argument to read_struct_type, and let that take care of
9079 storing it. That way, we don't overwrite the original type code,
9080 so read_struct_type can use it to decide whether we're overwriting
9081 something we shouldn't.
9082 (complain_about_struct_wipeout): New function.
9084 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9086 * gdbarch.sh: Assert that gdbarch is non-NULL.
9087 * gdbarch.c: Regenerate.
9089 2002-05-03 Jason Merrill <jason@redhat.com>
9091 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9094 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9096 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9097 (x86_64_dwarf2gdb_regno_map_length),
9098 (x86_64_dwarf2_reg_to_regnum): Added.
9099 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9100 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9101 (_initialize_x86_64_tdep): Synced with the change above.
9102 (x86_64_skip_prologue): Reformulated message.
9104 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9106 * f-exp.y: Also use new prev_lexptr variable
9107 to improve error reporting. Based on Michael Snyder
9108 2002-04-24 dated patch to c-exp.y.
9109 * jv-exp.y: Likewise.
9110 * m2-exp.y: Likewise.
9112 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9114 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9115 we are dealing with vectors.
9117 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9119 * config/m68k/tm-nbsd.h: Obvious fix,
9120 correct machine name.
9122 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9124 * p-typeprint.c (pascal_type_print_base): Add support
9125 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9127 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9129 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9130 for fondamental pascal 'char' type.
9132 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9134 * p-lang.h (is_pascal_string_type): Declaration changed,
9135 new sixth argument of type char ** added.
9136 * p-lang.c (is_pascal_string_type): Implementation
9137 changed. Args length_pos, length_size, string_pos, char_size
9138 can now be NULL. New argument arrayname set to the field
9139 name of the char array. Return value set to char array
9140 field index plus one.
9141 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9142 is_pascal_string_type function.
9144 2002-05-02 Andrew Cagney <cagney@redhat.com>
9146 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9147 <cagney@redhat.com> change.
9148 * gdbarch.c: Regenerate.
9150 2002-05-02 Andrew Cagney <cagney@redhat.com>
9152 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9153 before probing for a new one. Detect errorenous gdbarch_init
9155 * gdbarch.c: Regenerate.
9157 2002-05-01 Andrew Cagney <cagney@redhat.com>
9159 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9160 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9161 * config/v850/tm-v850.h: Ditto. Update copyright.
9163 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9165 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9168 2002-04-30 Michael Snyder <msnyder@redhat.com>
9170 * arm-tdep.c: Whitespace clean-ups.
9171 (arm_skip_prologue): Fix thinko; two lines
9172 should have been removed as part of 4/24 change.
9174 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9176 * rs6000-tdep.c: Added comment describing how fpscr register
9177 numbers were chosen.
9179 2002-04-30 Michael Snyder <msnyder@redhat.com>
9181 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9183 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9185 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9186 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9187 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9189 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9191 From Louis Hamilton <hamilton@redhat.com>:
9192 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9193 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9194 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9195 not bfd-private xcoff data, to determine wordsize.
9196 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9198 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9200 GDB 5.2 released from 5.2 branch.
9202 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9204 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9205 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9206 (x86_64_register_info_table): Added comments with register numbers.
9208 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9210 * rs6000-tdep.c (rs6000_extract_return_value,
9211 rs6000_store_return_value): Handle returning vectors.
9212 (rs6000_gdbarch_init): Use
9213 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9214 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9216 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9218 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9219 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9221 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9223 * hpread.c (hpread_psymtab_to_symtab_1,
9224 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9225 with fprintf_unfiltered (gdb_stderr,...).
9227 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9229 * remote-array.c (printf_monitor, write_monitor,
9230 array_insert_breakpoint, array_remove_breakpoint ):
9231 Replace fprintf (stderr,...
9232 with fprintf_unfiltered (gdb_stderr,....
9233 * remote-es.c: Likewise.
9234 * remote-os9k.c: Likewise.
9235 * remote-st.c: Likewise.
9237 2002-04-28 Andreas Schwab <schwab@suse.de>
9239 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9240 linux-proc.o and gcore.o.
9242 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9244 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9245 code without frame pointers.
9247 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9249 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9252 2002-04-26 Ben Elliston <bje@redhat.com>
9254 * target.c (do_xfer_memory): Correct reference to the new option
9255 "trust-readonly-sections".
9257 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9259 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9260 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9261 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9263 (read_array_type): Record the fact that this array type is really a
9264 vector (i.e. are passed in by value).
9266 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9268 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9269 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9270 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9271 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9272 * alpha-linux-tdep.c: Include frame.h.
9273 (alpha_linux_sigcontext_addr): New function.
9274 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9275 alpha_linux_sigcontext_addr.
9276 * alpha-osf1-tdep.c: Include gdbcore.h.
9277 (alpha_osf1_sigcontext_addr): New function.
9278 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9279 alpha_osf1_sigcontext_addr.
9280 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9281 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9283 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9285 * stack.c (selected_frame_level):
9286 (select_frame): Do not set selected_frame_level.
9287 * frame.h (selected_frame_level): Delete declaration.
9289 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9291 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9292 convert_from_func_ptr-addr when AIX / PowerOpen.
9294 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9296 * valops.c (hand_function_call): Call
9297 generic_save_call_dummy_addr.
9298 * frame.h (generic_save_call_dummy_addr): Declare.
9299 * blockframe.c (struct dummy_frame): Add fields call_lo and
9301 (generic_find_dummy_frame): Check for PC in range call_lo to
9302 call_hi instead of entry_point_address.
9303 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9304 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9305 (generic_save_call_dummy_addr): New function.
9307 2002-04-24 David S. Miller <davem@redhat.com>
9309 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9310 sparc_skip_prologue.
9311 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9312 information to find prologue when possible.
9313 (sparc_prologue_frameless_p): Call examine_prologue directly.
9314 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9315 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9317 (SKIP_PROLOGUE): Likewise.
9319 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9321 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9322 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9323 indicate that the condition it was testing is always true.
9324 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9325 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9326 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9328 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9330 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9331 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9332 tdep->jb_pc and tdep->jb_elt_size.
9333 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9334 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9335 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9336 * alpha-nat.c (get_longjmp_target): Remove.
9337 (JB_ELEMENT_SIZE): Ditto.
9339 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9340 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9341 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9342 to alpha_get_longjmp_target.
9343 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9344 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9345 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9347 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9349 * README: Update to GDB 5.2.
9351 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9353 * gdbarch.sh (LC_ALL): Set to `c'.
9355 2002-04-25 Theodore A. Roth <troth@verinet.com>
9357 * avr-tdep.c: Ran through gdb_indent.sh.
9359 2002-04-25 Theodore A. Roth <troth@verinet.com>
9361 * MAINTAINERS: Add myself as AVR maintainer.
9362 * NEWS: Note new target avr.
9364 2002-04-25 Theodore A. Roth <troth@verinet.com>
9366 * Makefile.in: Add support for AVR target.
9367 * configure.tgt: Add support for AVR target.
9368 * avr-tdep.c: New file
9369 * config/avr/avr.mt: New file.
9371 2002-04-25 Theodore A. Roth <troth@verinet.com>
9373 * MAINTAINERS: Add myself to write-after-approval.
9375 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9377 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9378 with fprintf_unfiltered (gdb_stderr,....
9380 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9383 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9385 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9387 * p-exp.y: Also use new prev_lexptr variable
9388 to improve error reporting. Based on Michael Snyder
9389 2002-04-24 dated patch to c-exp.y.
9391 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9393 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9394 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9395 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9397 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9399 (FUNCTION_START_OFFSET): Remove.
9400 (BREAKPOINT): Ditto.
9402 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9404 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9407 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9409 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9410 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9411 alpha_linux_pc_in_sigtramp.
9412 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9413 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9414 alpha_osf1_pc_in_sigtramp.
9415 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9416 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9417 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9418 alphafbsd_pc_in_sigtramp.
9419 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9420 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9421 alphanbsd_pc_in_sigtramp.
9422 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9423 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9425 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9427 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9429 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9431 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9433 (alphanbsd-nat.o): New dependency list.
9434 (alphanbsd-tdep.o): Ditto.
9435 * NEWS: Note new native NetBSD/alpha configuration.
9436 * alphanbsd-nat.c: New file.
9437 * alphanbsd-tdep.c: Ditto.
9438 * configure.host (alpha*-*-netbsd*): New host.
9439 * configure.tgt (alpha*-*-netbsd*): New target.
9440 * config/alpha/nbsd.mh: New file.
9441 * config/alpha/nbsd.mt: Ditto.
9442 * config/alpha/nm-nbsd.h: Ditto.
9443 * config/alpha/tm-nbsd.h: Ditto.
9445 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9447 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9448 (alpha-osf1-tdep.o): New dependency list.
9449 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9450 and skip_sigtramp_frame members.
9451 * alpha-linux-tdep.c: Include gdbcore.h.
9452 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9453 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9454 * alpha-osf1-tdep.c: New file.
9455 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9457 (alpha_frame_past_sigtramp_frame): New function.
9458 (alpha_dynamic_sigtramp_offset): Ditto.
9459 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9460 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9461 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9462 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9463 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9464 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9465 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9466 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9467 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9468 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9469 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9470 to find_solib_trampoline_target.
9471 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9472 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9473 (SKIP_TRAMPOLINE_CODE): Remove.
9474 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9475 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9476 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9477 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9478 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9479 (PROC_SIGTRAMP_MAGIC): Ditto.
9480 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9481 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9482 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9483 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9484 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9486 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9488 * NEWS: Note that Alpha targets are now multi-arch.
9490 2002-04-24 Michael Snyder <msnyder@redhat.com>
9492 * parser-defs.h (prev_lexptr): New external variable.
9493 * parse.c (parse_exp_1): Set prev_lexptr to null before
9494 calling the language-specific parser.
9495 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9496 (yyerror): Use prev_lexptr in error reporting.
9498 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9500 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9501 * gregset.h: If FILL_FPXREGSET is defined, provide
9502 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9503 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9504 is defined, call fill_fpxregset.
9506 2002-04-24 Roland McGrath <roland@frob.com>
9508 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9509 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9510 (supply_gregset, supply_fpregset): New functions.
9512 * gnu-nat.c (gnu_find_memory_regions): New function.
9513 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9514 (gnu_xfer_memory): Add a cast.
9516 2002-04-24 Michael Snyder <msnyder@redhat.com>
9518 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9519 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9520 of argument regs ("str r(0123), [r11, #-nn"]).
9521 (arm_skip_prologue): Better handling for frameless functions.
9522 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9523 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9525 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9527 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9528 NUM_PSEUDO_REGS can be used.
9530 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9532 * arch-utils.h: Update copyright.
9534 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9535 * gdbarch.h, gdbarch.c: Re-generate.
9537 * inferior.h (IN_SIGTRAMP): Delete definition.
9538 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9539 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9541 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9542 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9543 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9544 (find_proc_framesize): Ditto.
9545 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9546 (alpha_init_extra_frame_info): Ditto.
9547 * infrun.c (handle_inferior_event): Ditto.
9548 (handle_inferior_event): Ditto.
9549 (check_sigtramp2): Ditto.
9550 * blockframe.c (create_new_frame): Ditto.
9551 (get_prev_frame): Ditto.
9552 * ppc-linux-tdep.c: Update comments.
9553 * i386-linux-tdep.c: Update comments.
9554 * breakpoint.c (bpstat_what): Update comment.
9556 2002-04-24 David S. Miller <davem@redhat.com>
9558 * i960-tdep.c (register_in_window_p): New function.
9559 (i960_find_saved_register): Use it instead of
9560 REGISTER_IN_WINDOW_P.
9561 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9563 * symtab.h (find_stab_function_addr): Kill extern.
9564 * minsyms.c (find_stab_function_addr): Remove from here...
9565 * dbxread.c: ... to here, and mark it static.
9567 2002-04-20 David S. Miller <davem@redhat.com>
9569 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9570 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9572 2002-04-21 David S. Miller <davem@redhat.com>
9574 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9575 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9576 (vx_write_register): Likewise.
9578 2002-04-23 J. Brobecker <brobecker@gnat.com>
9580 * source.c (is_regular_file): New function.
9581 (openp): Check wether file to open is a regular file
9582 to avoid opening directories.
9584 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9586 * findvar.c (extract_signed_integer): Cast printf argument
9587 to suppress format warning.
9588 (extract_unsigned_integer): Likewise.
9589 * infcmd.c (registers_info): Likewise.
9590 * top.c (get_prompt_1): Likewise.
9591 * valops.c (value_assign): Likewise.
9592 * valprint.c (print_decimal): Likewise.
9594 2002-04-22 H.J. Lu (hjl@gnu.org)
9596 * c-exp.y (typebase): Support
9598 [long|long long|short] [signed|unsigned] [int|]
9602 signed [long|long long|short] int
9604 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9606 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9608 * vax-tdep.h: New file.
9609 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9610 Make several routines static.
9611 (vax_get_saved_register): New function.
9612 (vax_gdbarch_init): New function.
9613 (_initialize_vax_tdep): Register vax_gdbarch_init.
9614 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9615 Remove macros now under the control of gdbarch.
9617 2002-04-22 Michael Snyder <msnyder@redhat.com>
9619 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9620 Some whitespace and coding standards tweaks.
9622 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9624 * vax-tdep.c: Include regcache.h.
9625 (vax_call_dummy_words): New.
9626 (sizeof_vax_call_dummy_words): New.
9627 (vax_fix_call_dummy): New function.
9628 (vax_saved_pc_after_call): Ditto.
9629 * config/vax/tm-vax.h: Don't include regcache.h.
9630 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9631 (CALL_DUMMY): Remove.
9632 (CALL_DUMMY_WORDS): Define.
9633 (SIZEOF_CALL_DUMMY_WORDS): Define.
9634 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9636 2002-04-18 Michael Snyder <msnyder@redhat.com>
9638 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9640 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9642 * vax-tdep.c (vax_frame_chain): New function.
9643 (vax_push_dummy_frame): Ditto.
9644 (vax_pop_frame): Ditto.
9645 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9646 (FRAMELESS_FUNCTION_INVOCATION): Use
9647 generic_frameless_function_invocation_not.
9648 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9649 (POP_FRAME): Use vax_pop_frame.
9651 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9653 * vax-tdep.c (vax_store_struct_return): New function.
9654 (vax_extract_return_value): Ditto.
9655 (vax_store_return_value): Ditto.
9656 (vax_extract_struct_value_address): Ditto.
9657 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9658 vax_store_struct_return.
9659 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9660 (STORE_RETURN_VALUE): Use vax_store_return_value.
9661 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9663 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9665 * vax-tdep.c (vax_frame_saved_pc): New function.
9666 (vax_frame_args_address_correct): Ditto.
9667 (vax_frame_args_address): Ditto.
9668 (vax_frame_locals_address): Ditto.
9669 (vax_frame_num_args): Move code to be in proximity to
9670 other frame-related functions.
9671 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9672 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9673 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9674 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9675 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9677 2002-04-22 H.J. Lu (hjl@gnu.org)
9679 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9682 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9684 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9685 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9686 (FRAME_INIT_SAVED_REGS): New macro.
9688 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9690 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9692 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9694 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9696 (fetch_osf_core_registers): Likewise.
9697 (supply_gregset): Likewise.
9699 2002-04-22 J. Brobecker <brobecker@gnat.com>
9701 * symfile.h (get_section_index): Define.
9702 * symfile.c (get_section_index): New function.
9703 * mdebugread.c (SC_IS_SBSS): New macro.
9704 (SC_IS_BSS): Return true for the scBss storage class only, as
9705 the scSBss storage class refers to the .sbss section.
9706 (parse_partial_symbols): Discard the symbols which associated
9707 section does not exist.
9708 Make sure to use the .sbss section index for symbols which
9709 storage class is scBss, rather than using the .bss section index.
9711 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9713 * vax-tdep.c: Update copyright years.
9714 (vax_register_name): New function.
9715 (vax_register_byte): Ditto.
9716 (vax_register_raw_size): Ditto.
9717 (vax_register_virtual_size): Ditto.
9718 (vax_register_virtual_type): Ditto.
9719 * config/vax/tm-vax.h: Update copyright years.
9720 (REGISTER_NAMES): Remove.
9721 (REGISTER_NAME): Define.
9722 (REGISTER_BYTE): Use vax_register_byte.
9723 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9724 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9725 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9727 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9729 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9731 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9733 2002-04-21 David S. Miller <davem@redhat.com>
9735 * arch-utils.c (generic_prologue_frameless_p): Kill
9736 SKIP_PROLOGUE_FRAMELESS_P code.
9737 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9739 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9740 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9741 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9743 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9744 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9745 (sparc_gdbarch_init): Pass it to
9746 set_gdbarch_prologue_frameless_p.
9748 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9750 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9751 (alphabsd-nat.o): New dependency list.
9753 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9755 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9757 (alpha-linux-tdep.o): New dependency list.
9758 (alphafbsd-tdep.o): Likewise.
9760 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9762 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9764 * alpha-tdep.c: ...from here.
9765 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9767 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9769 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9770 prototype from here...
9771 * alpha-tdep.h: ...to here.
9773 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9775 * frame.h (selected_frame_level): Document as deprecated.
9776 (frame_relative_level): Declare.
9777 * stack.c (frame_relative_level): New function.
9778 (selected_frame_level): Document as deprecated.
9779 (select_frame): Do not set the selected_frame_level.
9781 * stack.c (frame_info, record_selected_frame): Update.
9782 (frame_command, current_frame_command): Update.
9783 (up_silently_base, up_command, down_silently_base): Update.
9784 (down_command): Update.
9785 * inflow.c (kill_command): Update.
9786 * tracepoint.c (finish_tfind_command): Update.
9787 * corelow.c (core_open): Update.
9788 * thread.c (info_threads_command): Update.
9789 (do_captured_thread_select): Update.
9790 * infcmd.c (finish_command): Update.
9791 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9793 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9795 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9797 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9799 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9802 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9804 * alphafbsd-tdep.c: Update copyright years. Include
9806 (alphafbsd_use_struct_convention): Make static.
9807 (alphafbsd_init_abi): New function.
9808 (_initialize_alphafbsd_tdep): New function.
9809 * config/alpha/tm-fbsd.h: Update copyright years.
9810 (USE_STRUCT_CONVENTION): Remove.
9812 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9814 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9815 an Alpha ABI variant.
9816 (alpha_abi_handler_list): Declare.
9817 (alpha_gdbarch_register_os_abi): New function.
9818 (alpha_gdbarch_init): Give registered ABI variant handlers a
9819 chance to tweak the gdbarch once we have set up defaults.
9820 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9822 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9824 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9825 to standard_coerce_float_to_double.
9826 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9828 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9830 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9831 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9832 from gdbarch_tdep rather than a constant.
9833 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9834 the default text address for all Alpha Unix ABIs.
9835 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9836 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9838 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9840 * alpha-tdep.h: New file. Includes several Alpha target constants
9842 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9843 let gdbarch deal with.
9844 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9845 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9847 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9848 Alpha target register names.
9849 * alphabsd-nat.c: Likewise.
9850 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9851 Alpha target register names. Make serveral routines static.
9852 (alpha_get_saved_register): New function.
9853 (alpha_abi_names): New.
9854 (process_note_abi_tag_sections): New function.
9855 (get_elfosabi): New function.
9856 (alpha_gdbarch_init): New function.
9857 (alpha_dump_tdep): New function.
9858 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9860 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9862 * frame.c (find_saved_register): Delete #ifdef
9863 HAVE_REGISTER_WINDOWS code.
9864 * config/sparc/tm-sparc.h: Update comments.
9865 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9867 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9869 * i960-tdep.c (i960_find_saved_register): New function.
9870 (i960_get_saved_register): New function.
9871 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9872 (i960_get_saved_register): Declare.
9873 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9875 2002-04-20 David S. Miller <davem@redhat.com>
9877 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9879 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9881 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9882 instead of NUM_PSEUDO_REGS.
9884 2002-04-20 David S. Miller <davem@redhat.com>
9886 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9887 GDB_MULTI_ARCH_PARTIAL
9888 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9889 define, let tm-sp64.h do it.
9891 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9893 * frame.c (find_saved_register): Avoid a NULL pointer
9894 dereference and actually walk the frame list.
9896 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9898 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9899 sorted in most most-recent-used order. Document.
9900 * gdbarch.h, gdbarch.c: Regenerate.
9902 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9904 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9906 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9907 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9908 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9911 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9914 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9915 (build_builtin_type_vec128): Ditto.
9916 (append_composite_type_field): Fix calculation of type length in
9919 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9921 * config/djgpp/README: Update.
9923 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9926 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9928 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9929 (alpha_setup_arbitrary_frame): ...to this.
9930 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9931 for alpha_setup_arbitrary_frame.
9933 2002-04-18 Andrew Cagney <cagney@redhat.com>
9935 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9936 * gdbarch.h, gdbarch.c: Regenerate.
9938 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9939 * target.h (memory_breakpoint_from_pc): Update declaration.
9940 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9942 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9943 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9944 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9945 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9946 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9947 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9948 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9949 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9950 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9951 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9952 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9953 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9955 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9957 * monitor.c (monitor_insert_breakpoint): Ditto.
9958 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9960 * config/mcore/tm-mcore.h: Update copyright.
9961 * mem-break.c: Ditto.
9962 * xstormy16-tdep.c: Ditto.
9964 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9966 * p-exp.y: Add precedence rule for '^' token.
9967 This removes the shift/reduce conflicts.
9968 Remove the comment concerning these shift/reduce conflicts.
9970 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9972 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9973 (registers_powerpc_nofp): New register set for processors
9974 without floating point unit.
9976 2002-04-18 David S. Miller <davem@redhat.com>
9978 * MAINTAINERS: Add myself to write-after-approval.
9980 2002-04-17 Michael Snyder <msnyder@redhat.com>
9982 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9984 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9986 * rs6000-tdep.c (frame_initial_stack_address): Use
9987 frame_register_read to read the alloca_reg.
9989 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9991 * frame.c (find_saved_register): Find saved registers in the next
9995 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9997 * gdbarch.sh (LANG): Set to ``c''.
9999 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10001 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10003 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10005 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10008 * hpread.c (hpread_get_lntt): Add declaration.
10009 Also fix PR gdb/391.
10011 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10013 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10014 * aclocal.m4, configure: Re-generate.
10017 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10019 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10020 instead of tm_print_insn.
10022 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10024 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10026 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10028 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10029 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10030 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10032 2002-04-12 Don Howard <dhoward@redhat.com>
10034 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10035 max_user_call_depth.
10036 (init_cmd_lists): Initialize the new value;
10037 * cli/cli-script.c (execute_user_command): Limit the call depth of
10038 user defined commands. This avoids a core-dump when user commands
10039 are infinitly recursive.
10041 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10043 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10044 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10045 from tdep struct instead of DEFAULT_LR_SAVE.
10046 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10047 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10048 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10050 2002-04-12 Michael Snyder <msnyder@redhat.com>
10052 * Remote.c: Spelling fix.
10053 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10054 If no symbol found for "sbrk", try "_sbrk".
10055 (make_output_phdrs): Use bfd_section_name.
10056 (gcore_copy_callback): Use bfd_section_name.
10057 * eval.c: Indentation fix-ups.
10058 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10059 in case it gets applied to an address that is already
10060 in the instruction space.
10061 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10062 * symfile.c: Fix indentation, long lines.
10063 * source.c: White space fix-up.
10065 2002-04-12 Andrew Cagney <cagney@redhat.com>
10067 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10068 * frame.c (frame_register_read): New function. Return non-zero on
10070 (read_relative_register_raw_bytes_for_frame): Delete.
10071 (read_relative_register_raw_bytes): Delete.
10072 * frame.h (frame_register_read): Declare.
10073 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10074 * sh-tdep.c: Ditto.
10075 * infcmd.c (do_registers_info): Ditto.
10076 * hppa-tdep.c: Ditto.
10077 * rs6000-tdep.c: Ditto.
10078 * h8500-tdep.c: Ditto.
10079 * mips-tdep.c: Ditto.
10080 * h8300-tdep.c: Ditto.
10081 * z8k-tdep.c: Ditto.
10083 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10085 From Jimi X <jimix@watson.ibm.com>:
10086 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10089 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10091 From Jimi X <jimix@watson.ibm.com>:
10092 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10095 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10097 From Jimi X <jimix@watson.ibm.com>:
10098 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10099 register sets for these processor variants.
10101 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10103 * regformats/reg-ppc.dat: Support FPSCR.
10105 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10107 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10108 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10109 Add fpscr as an invalid/unfetchable register.
10110 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10111 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10112 (fill_fpregset): Add support for register fpscr.
10113 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10114 (fill_gregset): Account for the fact that register ``mq'' might
10116 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10117 (registers_power): Add fpscr to register set at slot 71.
10118 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10119 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10121 2002-04-11 Michael Snyder <msnyder@redhat.com>
10123 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10124 * configure: Regenerate.
10125 * config.in: Regenerate.
10126 * acconfig.h: Add define for _SYSCALL32.
10127 * core-sol2.c: Remove #define _SYSCALL32.
10128 * solib-legacy.c: Remove #define _SYSCALL32.
10130 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10132 * stack.c (select_frame): Cleanup internal error message, do not
10135 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10137 * stack.c (select_frame): Check that selected_frame and the
10138 specified level are as expected.
10139 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10141 * frame.h (struct frame_info): Add field `level'. Update
10143 Work-in-progress PR gdb/464.
10145 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10147 * maint.c (maint_print_section_info): Rename print_section_info.
10148 (print_bfd_section_info, print_objfile_section_info): Update.
10149 * inferior.h (struct gdbarch): Add opaque declaration.
10150 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10151 * gdbarch.h: Regenerate.
10153 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10155 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10156 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10157 (kernel_u_size): Added.
10158 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10159 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10161 2002-04-04 Jim Ingham <jingham@apple.com>
10163 * valarith.c (find_size_for_pointer_math): New function, either returns
10164 the size for a pointer's target, returns 1 for void *, or errors for
10166 (value_add, value_sub): use find_size_for_pointer_math.
10168 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10170 * linux-low.c (linux_look_up_symbols): New hook.
10171 (linux_target_ops): Add linux_look_up_symbols.
10172 * remote-utils.c (decode_address): New function.
10173 (look_up_one_symbol): New function.
10174 * server.c (handle_query): Call target look_up_symbols hook.
10175 * server.h (look_up_one_symbol): Add prototype.
10176 * target.h (struct target_ops): Add look_up_symbols hook.
10178 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10180 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10181 override FP_REGNUM with frame->fp. Update copyright.
10182 * parse.c (num_std_regs, std_regs): Delete.
10183 (target_map_name_to_register): Do not search std_regs. Update
10184 function description.
10185 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10186 declarations. Update copyright.
10189 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10191 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10192 after the last symbol in a block.
10194 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10196 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10197 is non zero as a found symbol.
10199 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10201 * findvar.c: Include "builtin-regs.h".
10202 (value_of_register): Call value_of_builtin_reg when applicable.
10203 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10204 (target_map_name_to_register): Call
10205 builtin_reg_map_name_to_regnum.
10206 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10207 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10208 (builtin_regs_h): Define.
10209 (builtin-regs.o): New target.
10210 (findvar.o): Add $(builtin_regs_h).
10211 * builtin-regs.c, builtin-regs.h: New files.
10212 * std-regs.c: New file.
10213 Partial fix for PR gdb/251.
10215 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10217 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10218 it's no longer required.
10220 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10222 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10224 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10226 From Jimi X <jimix@watson.ibm.com>:
10227 * rs6000-tdep.c (rs6000_software_single_step): Use
10228 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10229 and size. Use target_insert_breakpoint() and
10230 target_remove_breakpoint() to insert and remove breakpoints
10231 instead of explicit memory reads and writes.
10233 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10235 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10236 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10237 ELF_OBJECT_FORMAT ifdef.
10239 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10241 From Jimi X <jimix@watson.ibm.com>:
10242 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10244 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10246 From Jimi X <jimix@watson.ibm.com>:
10247 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10248 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10250 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10252 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10253 s/asprintf/xasprintf/.
10254 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10256 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10258 I believe Jeff Law denies responsability for this one:
10259 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10260 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10261 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10262 Work-around for PR gdb/366.
10264 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10266 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10267 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10268 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10270 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10272 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10273 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10276 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10278 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10281 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10283 * README (Reporting Bugs in GDB): Document the bug web page as the
10284 prefered way of submitting bugs.
10287 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10289 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10290 -1. Update comment.
10291 * gdbarch.h, gdbarch.c: Re-generate.
10293 2002-04-07 Andreas Schwab <schwab@suse.de>
10295 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10296 buffer to regcache_collect.
10298 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10300 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10301 * gdbarch.c, gdbarch.h: Re-generate.
10303 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10305 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10306 declaration. Fix -Werror.
10308 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10310 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10311 * gdbarch.c: Regenerate.
10313 2002-04-05 Michael Snyder <msnyder@redhat.com>
10315 * breakpoint.c (clear_command): Rewrite middle section to
10316 combine two loops with identical control conditions.
10317 Add a cleanup to eliminate a memory leak.
10318 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10320 2002-04-05 H.J. Lu (hjl@gnu.org)
10322 * solib-svr4.c (bkpt_names): Add "__start".
10324 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10326 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10327 as test for 64 bit target.
10329 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10331 * h8500-tdep.c (h8500_write_fp): Delete function.
10332 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10333 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10334 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10336 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10337 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10339 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10340 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10341 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10342 (d10v_write_fp): Delete function.
10343 * inferior.h (write_fp, generic_target_write_fp): Delete
10345 * regcache.c (generic_target_write_fp): Delete function.
10346 (write_fp): Delete function.
10347 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10348 * gdbarch.h, gdbarch.c: Regenerate.
10349 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10350 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10351 (sparc64_write_fp): Delete declaration.
10352 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10353 (h8500_write_fp): Delete declaration.
10355 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10357 * sparc-tdep.c (sparc64_write_fp): Delete.
10358 (sparc_push_dummy_frame): Replace write_fp call with code to store
10360 (sparc_gdbarch_init): Do not initialize write_fp.
10362 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10364 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10367 2002-03-29 Jim Blandy <jimb@redhat.com>
10369 * stack.c (get_selected_block): Add new argument `addr_in_block',
10370 used to return the exact code address we used to select the block,
10371 not just the block.
10372 * blockframe.c (get_frame_block, get_current_block): Same.
10373 * frame.h (get_frame_block, get_current_block,
10374 get_selected_block): Update declarations.
10375 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10376 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10378 2002-04-05 Michael Snyder <msnyder@redhat.com>
10380 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10383 2002-04-05 J. Brobecker <brobecker@gnat.com>
10385 * utils.c (xfullpath): New function.
10386 * defs.h (xfullpath): Add declaration.
10387 * source.c (openp): Use xfullpath in place of gdb_realpath to
10388 avoid resolving the basename part of filenames when the
10389 associated file is a symbolic link. This fixes a potential
10390 inconsistency between the filenames known to GDB and the
10391 filenames it prints in the annotations.
10392 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10393 to be able to match a filename with either the real filename, or
10394 the name of any symbolic link to this file.
10395 (lookup_partial_symtab): Ditto.
10397 2002-04-04 Michael Snyder <msnyder@redhat.com>
10399 * breakpoint.c: Add support for hardware breakpoints in overlays.
10400 (overlay_events_enabled): New state variable.
10401 (insert_breakpoints): Use overlay_events_enabled to decide
10402 whether to attempt to set a breakpoint at the overlay load addr.
10403 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10404 (remove_breakpoint): Use overlay_events_enabled to decide
10405 whether breakpoints need to be removed from overlay load addr.
10406 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10407 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10408 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10409 disable_overlay_breakpoints): Update overlay_events_enabled.
10411 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10413 * dwarf2read.c (struct function_range): New.
10414 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10415 (check_cu_functions): New.
10416 (read_file_scope): Initialize global function lists.
10417 Call dwarf_decode_line after processing children.
10418 (read_func_scope): Add to global function list.
10419 (dwarf_decode_lines): Call check_cu_functions everywhere
10420 record_line is called. Call record_line with a linenumber
10421 of 0 to mark sequence ends.
10423 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10425 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10426 change sync with glibc.
10428 2002-04-03 Jim Blandy <jimb@redhat.com>
10430 * configure.in: Call AC_C_INLINE.
10431 * configure: Regenerated.
10433 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10435 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10436 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10438 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10440 * NEWS: Mention gcore support on FreeBSD/i386.
10442 * fbsd-proc.c: New file.
10443 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10444 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10446 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10449 2002-03-29 Jim Blandy <jimb@redhat.com>
10451 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10452 unescaped newlines in string literals, but newer ones don't. So
10455 2002-03-26 Michael Snyder <msnyder@redhat.com>
10456 Andrew Cagney <cagney@redhat.com>
10458 * cli/cli-dump.c: New file. Dump memory to file,
10459 restore file to memory.
10460 * cli/cli-dump.h: New file.
10461 * Makefile.in: Add rules, dependencies for cli-dump.o.
10462 * NEWS: Mention new commands.
10464 2002-03-28 Michael Snyder <msnyder@redhat.com>
10466 * symfile.c (symbol_file_add): Move test for null symbols to later.
10468 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10470 From veksler at il.ibm.com:
10471 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10472 the xstrduped original path.
10475 2002-03-27 Michael Snyder <msnyder@redhat.com>
10477 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10478 * infcmd.c (_initialize_infcmd): Ditto.
10479 * language.c (_initialize_language): Ditto.
10480 * symfile.c (_initialize_symfile): Ditto.
10481 * top.c (_init_main): Ditto.
10482 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10484 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10486 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10487 vector registers handling.
10488 (skip_prologue): Handle new AltiVec instructions. Fill in new
10489 fields of frame data.
10490 (frame_get_saved_regs): Fill in information for AltiVec registers.
10492 2002-03-27 Jim Blandy <jimb@redhat.com>
10494 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10495 a function; leave this macro here to invoke that function.
10496 (symbol_init_mangled_name): Declaration for that function.
10497 * symtab.c (symbol_init_mangled_name): New function.
10499 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10501 * valarith.c: Replace strerror with safe_strerror.
10502 * tracepoint.c: Ditto.
10503 * lin-lwp.c: Ditto.
10504 * go32-nat.c: Ditto.
10506 * gnu-nat.c: Ditto.
10508 2002-03-27 Andreas Schwab <schwab@suse.de>
10510 * event-top.c (command_line_handler): Remove useless if.
10512 2002-03-27 Andreas Jaeger <aj@suse.de>
10514 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10517 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10519 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10520 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10521 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10522 (x86_64_linux_dr_get_status, supply_gregset),
10523 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10524 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10525 (x86_64_register_info_table): Add.
10526 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10527 (x86_64_register_raw_size, x86_64_register_virtual_type),
10528 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10529 general x86_64_register_info_table.
10530 (i386_gdbarch_init): gdbarch_register_bytes is now set
10531 dynamicaly during initialization.
10532 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10533 * gdbserver/linux-x86-64-low.c: Ditto.
10535 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10537 * gdbserver/server.c (main): Call target_signal_to_host_p
10538 and target_signal_to_host on signals received from the remote.
10539 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10540 target_signal_from_host on signals sent to the remote.
10541 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10542 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10544 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10546 * signals/signals.c: Include "server.h" in gdbserver build.
10547 (target_signal_from_name): Don't use STREQ.
10548 (_initialize_signals): Likewise. Don't include function in
10551 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10553 * signals.c: Moved to...
10554 * signals/signals.c: Here.
10555 * Makefile (signals.o): Update.
10557 2002-03-26 Jeff Law (law@redhat.com)
10559 * somread.c (som_symtab_read): Remove some commented out code and
10560 updated related comments. Do not set the minimal symbol table to
10561 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10562 in a dynamic executable.
10563 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10564 where we are unable to find the minimal symbol for the given
10567 2002-03-25 Jeff Law (law@redhat.com)
10569 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10571 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10573 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10575 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10577 * command.h: Update copyright.
10578 (struct cmd_list_element): Replace definition with opaque
10580 (enum cmd_types): Document that it will eventually be moved to
10582 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10583 (MALLOCED_REPLACEMENT): Delete macro.
10584 * Makefile.in (cli_decode_h): Add $(command_h).
10585 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10586 * top.c: Include "cli/cli-decode.h".
10587 * completer.c: Include "cli/cli-decode.h".
10588 * maint.c: Include "cli/cli-decode.h".
10589 * cli/cli-decode.h: Include "command.h".
10590 (enum command_class): Delete.
10591 (enum cmd_types): Comment out.
10592 (enum cmd_auto_boolean): Delete.
10593 (enum var_types): Delete.
10595 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10597 * cli/cli-decode.c: Include "gdb_assert.h".
10598 (add_set_or_show_cmd): New static function.
10599 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10600 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10601 all fields, such as func, from the set command.
10603 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10605 * MAINTAINERS (sh-elf): Change warning flag to -w.
10607 2002-03-23 Andrew Cagney <cagney@redhat.com>
10609 * defs.h (error): Add printf format attribute.
10610 * thread-db.c (thread_from_lwp): Fix error format string.
10611 * stack.c (parse_frame_specification): Ditto.
10612 * cli/cli-decode.c (undef_cmd_error): Ditto.
10613 * scm-lang.c (scm_lookup_name): Ditto.
10614 * tracepoint.c (trace_error): Ditto.
10615 * remote-utils.c (usage): Ditto.
10616 * remote.c (compare_sections_command): Ditto.
10619 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10621 * gdbtypes.c (append_composite_type_field): New function.
10622 (init_composite_type): New function.
10623 * gdbtypes.h (append_composite_type_field): Declare.
10624 (init_composite_type): Ditto.
10626 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10628 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10630 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10631 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10632 structure returning convention for SYSV ABI case, but not
10633 for GNU/Linux, FreeBSD, or NetBSD.
10635 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10637 * symtab.h (lookup_block_symbol): Add mangled_name argument
10640 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10641 with new mangled_name argument.
10642 * linespec.c (decode_line_1): Likewise.
10643 * valops (value_of_this): Likewise.
10644 * symtab.c (lookup_transparent_type): Likewise.
10645 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10646 (lookup_symbol): If we are given a mangled name, pass it down
10647 to lookup_symbol_aux.
10648 (lookup_block_symbol): If we are given a mangled name to check
10649 against, only return symbols which match it.
10651 2002-03-22 Christopher Faylor <cgf@redhat.com>
10653 * win32-nat.c (child_create_inferior): Check for proper shell to use
10654 here, in case the user changes it on the fly.
10655 (_initialize_inftarg): Remove shell path considerations.
10657 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10659 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10660 for gdbarch_max_register_raw_size and max_register_virtual_size.
10661 Adjust copyright year.
10663 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10665 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10666 in a function to cover the entire beginning of the function
10667 as well if it does not already.
10669 2002-03-21 Tom Rix <trix@redhat.com>
10671 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10672 (rs6000_ptrace64): Renamed from ptrace64.
10674 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10676 * gdbserver/remote-utils.c (remote_open): Don't call
10677 getprotobyname, we're all using TCP here so just use
10679 * gdbserver/gdbreplay.c (remote_open): Ditto.
10681 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10683 * regcache.c (_initialize_regcache): No need to call
10684 build_regcache() at this time; it gets called whenever
10685 the gdbarch changes.
10687 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10689 * sparc-nat.c: Include sys/param.h where possible.
10691 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10694 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10695 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10696 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10698 * stabsread.c (rs6000_builtin_type): Likewise.
10699 (read_sun_floating_type): Likewise.
10701 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10703 * stabsread.c (read_member_functions): Remove skip code for duplicate
10704 constructor/destructor methods. Use standard parsing for these
10705 methods and just do not chain them to the list of methods after
10708 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10710 * coffread.c: Remove redundant static declarations. Replace
10711 occurrences of `PTR' with `void *'.
10712 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10713 * top.h (quit_cover): Likewise.
10714 * defs.h (catch_errors): Likewise.
10716 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10718 * defs.h (XMALLOC): Define.
10719 * gdb-events.sh (XMALLOC): Delete macro.
10720 * gdb-events.c, gdb-events.h: Regenerate.
10721 * gdbarch.sh (XMALLOC): Delete macro.
10722 * gdbarch.c: Regenerate.
10723 * serial.c (XMALLOC): Delete macro.
10724 * ui-file.c (XMALLOC): Ditto.
10725 * ser-unix.h (XMALLOC): Ditto.
10726 * sh-tdep.c (XMALLOC): Ditto.
10727 * ui-out.c (XMALLOC): Ditto.
10728 * utils.c (XMALLOC): Ditto.
10729 * i386-tdep.c (XMALLOC): Ditto.
10730 * gdb-events.c (XMALLOC): Ditto.
10731 * d10v-tdep.c (XMALLOC): Ditto.
10732 * cli-out.c (XMALLOC): Ditto.
10734 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10735 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10736 * ui-file.c, ui-out.c: Ditto.
10738 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10740 * command.h (struct cmd_list_element): Add field context.
10741 (set_cmd_context, get_cmd_context): Declare.
10742 * cli/cli-decode.h: Ditto.
10743 * cli/cli-decode.c (get_cmd_context): New function.
10744 (set_cmd_context): New function.
10745 (add_cmd): Initialize context.
10746 Part of fixing PR gdb/145 and PR gdb/146.
10748 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10750 * cli/cli-decode.c (cmd_type): New function.
10751 * command.h (cmd_type): Declare.
10752 * infrun.c (set_schedlock_func): Call function cmd_type.
10753 * kod.c (kod_set_os): Call cmd_type.
10754 * cris-tdep.c (cris_version_update): Use function cmd_type.
10755 (cris_mode_update, cris_abi_update): Ditto.
10757 * command.h: (execute_cmd_post_hook): Declare.
10758 (execute_cmd_pre_hook): Declare.
10759 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10760 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10761 functions. Execute pre/post hook while ensuring that afterwords
10762 hook_in is cleared.
10763 * top.c (execute_command): Use execute_cmd_post_hook, and
10764 execute_cmd_pre_hook to execute pre/post commands.
10765 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10767 (hook_stop_stub): Call execute_cmd_pre_hook.
10769 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10771 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10772 set'' and this leads to a core dump. Move xstrdup of
10773 operating_system to after check that it is not NULL.
10775 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10777 * kod.c (kod_set_os): Remove unnecessary check that
10778 ``command->type'' is set_cmd.
10780 * valprint.c (set_input_radix): Use input_radix.
10781 (set_output_radix): Use output_radix.
10782 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10785 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10787 * value.h (struct value): Delete field ``substring_addr''. Change
10788 aligner fields to force_doublest_align, force_longest_align,
10789 force_core_addr_align and force_pointer_aligh.
10791 * value.h (struct value): Fix typo in above change.
10793 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10795 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10796 to fix internal_error from ``maintenance print architecture''.
10798 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10800 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10801 for gcc versions after gcc-2.8.1.
10803 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10805 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10806 for method resolution. Restore adjustment of ``this'' pointer after
10807 calling value_struct_elt, which was accidentally removed during the
10810 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10812 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10814 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10815 get_saved_register.
10816 * value.h (value_of_register): Update.
10818 2002-03-14 Richard Henderson <rth@redhat.com>
10820 * configure.in: Detect declaration for canonicalize_file_name.
10821 * utils.c (canonicalize_file_name): Declare, if needed.
10822 (gdb_realpath): Prefer realpath if available and usable.
10823 * config.in, configure: Rebuild.
10825 2002-03-14 Richard Henderson <rth@redhat.com>
10827 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10828 a constant array bound.
10830 * MAINTAINERS: Add myself to write-after-approval.
10832 2002-03-14 Michael Snyder <msnyder@redhat.com>
10834 * symfile.c (syms_from_objfile): Return immediately if no syms.
10835 (symbol_file_add): Return immediately if no syms.
10836 (find_sym_fns): Return immediately if no syms.
10838 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10840 * gdbserver/remote-util.c (remote_open): Print remote-side's
10841 IP address when remote debugging over the network.
10843 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10845 * config/sparc/fbsd.mh: Fix copyright.
10846 * config/sparc/fbsd.mt: Likewise.
10848 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10850 * MAINTAINERS: Fix typo in name of gdb warnings option.
10851 (x86-64): Fix formating so that this can be parsed by awk.
10853 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10855 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10856 * defs.h: Include "gdb/signals.h".
10857 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10859 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10861 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10862 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10865 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10866 Don Howard <dhoward@redhat.com>
10868 * mips-tdep.c (ST0_FR): Define.
10869 (mips2_fp_compat): New function, temporarily disabled.
10870 (mips_read_fp_register_single): New function.
10871 (mips_read_fp_register_double): New function.
10872 (mips_print_register): Use them.
10873 (do_fp_register_row): Likewise.
10875 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10877 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10880 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10882 * stabsread.c (read_member_functions): Fix is_stub test for
10883 static member functions, improve comment.
10885 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10887 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10888 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10889 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10890 commands that set boolean values.
10891 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10892 (arm_rdi_resume): Always initialize PC.
10893 (arm_rdi_open): Don't use rslt as a boolean.
10894 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10895 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10896 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10897 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10899 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10901 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10902 * configure: Rebuilt.
10904 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10906 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10907 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10909 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10911 * cli/cli-decode.c (set_cmd_completer): New function.
10912 * command.h (set_cmd_completer): Declare.
10913 * cli/cli-decode.h (set_cmd_completer): Ditto.
10915 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10916 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10917 * win32-nat.c (_initialize_inftarg): Ditto.
10918 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10919 * proc-api.c (_initialize_proc_api): Ditto.
10920 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10921 * source.c (_initialize_source): Ditto.
10922 * exec.c (_initialize_exec): Ditto.
10923 * solib.c (_initialize_solib): Ditto.
10924 * top.c (init_main): Ditto.
10925 * tracepoint.c (_initialize_tracepoint): Ditto.
10926 * symfile.c (_initialize_symfile): Ditto.
10927 * printcmd.c (_initialize_printcmd): Ditto.
10928 * infcmd.c (_initialize_infcmd): Ditto.
10929 * corefile.c (_initialize_core): Ditto.
10931 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10933 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10935 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10937 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10939 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10941 * NEWS: Update headings, 5.2 has branched.
10943 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10945 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10946 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10947 (register_addr, REGISTER_RAW_SIZE): Likewise.
10948 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10949 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10951 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10953 * MAINTAINERS (x86-64): Add myself.
10954 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10955 changed value_ptr -> struct value *
10957 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10959 * configure.host (sparc64-*-freebsd): Add.
10960 * configure.tgt: Likewise.
10961 * config/sparc/fbsd.mh: New file.
10962 * config/sparc/fbsd.mt: Likewise.
10963 * config/sparc/nm-fbsd.h: Likewise.
10964 * config/sparc/tm-fbsd.h: Likewise.
10966 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10968 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10969 regformats/reg-s390x.dat.
10971 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10973 * utils.c: Add FIXME explaining true/false problem.
10975 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10977 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10979 2002-02-28 Michael Chastain <mec@shout.net>
10981 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10983 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10985 * gdbserver/linux-s390-low.c: New file.
10986 * regformats/reg-s390.dat: New file.
10987 * regformats/reg-s390x.dat: New file.
10988 * gdbserver/configure.srv: Add S/390.
10989 * gdbserver/Makefile.in: Add S/390.
10990 * configure.tgt: Enable gdbserver for S/390.
10992 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10994 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10995 first line of the doc string for "info dos", except at the end of
10996 the sentence, since the short help stops at the first period.
10998 2002-02-28 Jason Merrill <jason@redhat.com>
11000 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11002 2002-02-27 Fred Fish <fnf@redhat.com>
11004 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11005 comment (dumy -> dummy).
11007 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11009 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11011 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11013 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11015 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11017 * gdbserver/acconfig.h: New file.
11018 * gdbserver/i387-fp.c: New file.
11019 * gdbserver/i387-fp.h: New file.
11020 * gdbserver/linux-x86-64.c: New file.
11021 * regformats/reg-x86-64.dat: New file.
11022 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11023 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11024 * gdbserver/configure.in: Add support for regsets.
11025 * gdbserver/config.in: Regenerate.
11026 * gdbserver/configure: Regenerate.
11027 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11028 * gdbserver/linux-low.h: New file.
11029 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11031 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11032 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11033 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11034 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11035 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11036 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11037 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11038 "i387-fp.h". Add PTRACE_GETREGS and friends.
11039 * gdbserver/regcache.c (supply_register): New function.
11040 (supply_register_by_name): New function.
11041 (collect_register): New function.
11042 (collect_register_by_name): New function.
11044 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11046 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11047 (config.status): Add configure.srv dependency.
11048 (server_h): Add config.h dependency.
11050 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11052 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11053 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11054 * gdbserver/configure.srv: Change i386-*-linux* to use
11057 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11059 * x86-64-tdep.c: Re-indent. Update copyright date.
11061 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11063 From Michal Ludvig <mludvig@suse.cz>:
11064 * x86-64-tdep.c (value.h): Delete.
11065 (gdb_assert.h): Include.
11066 (x86_64_register_convert_to_virtual,
11067 x86_64_register_convert_to_raw ): Add check which lets only
11068 floating-point values to be converted.
11069 (value_push): Delete.
11070 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11071 (i386_gdbarch_init): Number of register_bytes fixed.
11073 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11075 * MAINTAINERS: Add x86-64 target.
11077 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11079 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11080 * osfsolib.c (solib_map_sections): Ditto.
11081 * irix5-nat.c (solib_map_sections): Ditto.
11082 * corelow.c (gdb_check_format): Ditto.
11083 * symfile.c (symfile_bfd_open): Ditto.
11084 * solib.c (solib_map_sections): Ditto.
11087 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11089 * remote.c (_initialize_remote): By default, disable ``e'' and
11090 ``E'' step out-of-range packets.
11092 2002-02-26 Andreas Schwab <schwab@suse.de>
11094 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11095 m68k_linux_frame_saved_pc.
11096 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11098 (SIGCONTEXT_PC_OFFSET): Remove.
11099 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11100 m68k_linux_sigtramp_saved_pc): New functions.
11101 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11102 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11103 (UCONTEXT_PC_OFFSET): Define.
11104 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11105 non-RT and RT signal trampolines.
11107 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11109 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11110 (TARGET_NBPG, STACK_END_ADDR): Delete
11111 (VARIABLES_INSIDE_BLOCK): Delete.
11113 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11115 * utils.c (perror_with_name): Make string parameter constant.
11116 (print_sys_errmsg): Ditto.
11118 * defs.h (perror_with_name): Update.
11119 (print_sys_errmsg): Update.
11122 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11124 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11125 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11127 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11129 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11130 if it already matches the current architecture from the exec file.
11131 Include arch-utils.h for gdbarch_info_init prototype.
11132 * Makefile.in (rs6000-nat.o): Update dependencies.
11134 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11136 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11137 list of exported variables.
11139 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11141 * gdbserver/configure.srv: New file.
11142 * gdbserver/configure.in: Use configure.srv instead
11143 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11145 * gdbserver/configure: Regenerated.
11146 * gdbserver/terminal.h: New file.
11147 * gdbserver/Makefile.in: Update for configure changes. Remove
11148 more unneeded include paths.
11150 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11152 From wiz at danbala:
11153 * config/sparc/tm-sp64.h: Fix grammar and typos.
11156 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11158 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11159 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11160 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11161 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11162 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11163 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11164 * s390-tdep.c: Ditto.
11165 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11166 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11167 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11168 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11169 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11170 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11171 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11172 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11173 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11174 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11177 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11179 * lin-thread.c: Delete file.
11180 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11181 to gdb_proc_service.h.
11182 * configure: Re-generate.
11184 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11185 * serial.c (serial_open): Delete check for "ocd".
11188 * Makefile.in (linux-thread.o): Delete target.
11189 * linux-thread.c: Delete file.
11191 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11192 renamed SH files to be consistent.
11194 * symtab.c (sort_search_symbols): Use xfree.
11196 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11198 * arm-linux-tdep.c (arm_linux_init_abi): Register
11199 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11200 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11201 definition with undef, since we don't want the sysvr4 definition.
11202 (SKIP_TRAMPOLINE_CODE): Likewise.
11204 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11206 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11208 * configure.in: (AC_CHECK_FUNCS) Added test for
11209 canonicalize_file_name Regenerated.
11210 * config.in, configure: Regenerated.
11211 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11212 defined use canonicalize_file_name.
11214 2002-02-23 Michael Chastain <mec@shout.net>
11216 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11218 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11220 * README: Remove references to cygnus.com.
11221 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11222 dot com'' form. Remove references to cygnus.com and sourceware.
11224 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11226 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11227 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11228 1003.1-2001 no longer allows "head -1".
11229 * gdb/Makefile.in (version.c): Likewise.
11230 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11231 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11232 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11234 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11236 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11237 * command.h (cmd_cfunc_eq): Declare.
11238 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11240 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11241 ``struct cmd_list_element *''.
11242 * cli/cli-cmds.c (is_complete_command): Update. Use
11244 * top.c (execute_command): Pass the command to
11245 is_complete_command.
11246 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11248 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11250 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11251 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11252 architecture defines.
11253 * s390-tdep.c (s390_gdbarch_init): Likewise.
11255 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11257 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11258 (arm_linux_push_arguments): Likewise.
11259 (arm_linux_init_abi): Register them. Also register linux-specific
11261 (find_minsym_and_objfile): Use strcmp, not STREQ.
11262 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11263 (arm_linux_call_dummy_words): Delete declaration.
11264 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11265 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11267 (LOWEST_PC): Delete.
11269 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11271 * maint.c (print_section_info): Do not prepend `0x' to filepos
11272 output, it will be handled by local_hex_string_custom.
11274 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11276 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11277 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11278 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11280 2002-02-22 Jim Blandy <jimb@redhat.com>
11282 Indicate that the bcache functions don't change the strings
11284 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11285 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11287 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11289 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11291 2002-02-21 Christopher Faylor <cgf@redhat.com>
11293 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11294 find the complete path to a loaded DLL.
11296 2002-02-21 Fred Fish <fnf@redhat.com>
11298 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11299 that marks the end of the range of a function, enter a line number
11300 entry that has a line number of zero and a PC offset that matches
11301 the end of the function. This starts a range of PC's for which no
11302 line number information is known.
11303 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11304 PC's for which no line number info is found (line number is zero)
11305 then we didn't find any valid line information.
11306 * symtab.h: Document use of zero line number entry.
11308 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11310 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11311 (have_ptrace_getvrregs): Define for run time checks.
11312 (gdb_vrregset_t): New type for Altivec register handling.
11313 (fetch_register, store_register): Fetch/store altivec register
11315 (fetch_altivec_register, store_altivec_register): New functions.
11316 (supply_vrregset, fill_vrregset): New functions.
11317 (fetch_altivec_registers, store_altivec_registers): New functions.
11318 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11321 2002-02-21 Jiri Smid <smid@suse.cz>
11323 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11325 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11327 * Makefile.in (armnbsd-nat.o): Update dependencies.
11328 * armnbsd-nat.c (supply_gregset): New function. Common code to
11329 supply the integer register set.
11330 (supply_fparegset): New function. Similar for FPA registers.
11331 (fetch_regs, fetch_fp_regs): Use them.
11332 (fetch_core_registers): Likewise.
11333 (fetch_elfcore_registers): New function.
11334 (arm_netbsd_elfcore_fns): New core-file type specification.
11335 (_initialize_arm_netbsd_nat): Register it.
11337 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11339 * armnbsd-nat.c: Include gdbcore.h.
11340 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11341 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11342 'void' to declaration, to shut up ARI.
11343 (fetch_core_registers): Make static. Rewrite using supply_register.
11344 (arm_netbsd_core_fns): New core-file type specification.
11345 (_initialize_arm_netbsd_nat): New function.
11347 2002-02-21 Christopher Faylor <cgf@redhat.com>
11349 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11352 2002-02-20 Christopher Faylor <cgf@redhat.com>
11354 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11357 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11359 * jv-exp.y (parse_number): Change type of implicit longs
11360 to builtin_type_uint64.
11362 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11364 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11365 to be an integer instead of a `union wait'.
11367 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11369 * mips-linux-nat.c: Call the operating system GNU/Linux.
11370 * mips-linux-tdep.c: Likewise.
11371 * mips-tdep.c: Likewise.
11373 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11376 * jv-exp.y (parse_number): Handle 64-bit integers.
11378 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11380 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11381 AC_STDC_HEADERS to AC_HEADER_STDC.
11382 * gdbserver/configure: Regenerated.
11384 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11386 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11388 * sparc-tdep.c (get_longjmp_target): Likewise.
11390 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11392 * News: Add news about ARM and Multi-arch. Mention the new target
11395 2002-02-19 Jim Blandy <jimb@redhat.com>
11397 * stabsread.c (error_type_complaint): Improve error message.
11399 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11401 * gdbserver/README: Update documentation.
11402 * gdbserver/configure.in: Update configury to match documentation.
11403 * gdbserver/Makefile.in: Likewise.
11404 * gdbserver/configure: Regenerated.
11405 * gdbserver/aclocal.m4: New file, generated by aclocal.
11406 * gdbserver/config.in: New file, generated by autoheader.
11408 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11410 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11413 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11415 * arm-tdep.h (enum arm_float_model): New enum.
11416 (struct gdbarch_tdep): Add fp_model.
11417 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11418 up floating-point conversions until we know the floating-point model
11419 in use by the inferior. Don't complain about being unable to
11420 determine the ABI of the inferior when we don't have one.
11421 (arm_extract_return_value): Support different floating-point models.
11422 (arm_store_return_value): Likewise.
11423 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11425 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11427 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11429 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11430 of ``current_gdbarch''.
11432 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11434 * armnbsd-nat.c : ANSIfy all function declarations.
11435 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11436 (fetch_inferior_registers): Re-implement in terms of above.
11437 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11438 (store_inferior_registers): Re-implement in terms of above.
11440 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11442 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11444 * arm-linux-tdep.c: Likewise.
11445 * config/arm/tm-linux.h: Likewise.
11447 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11449 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11450 * config/arm/nbsd.mt (TM_FILE): Delete.
11451 * config/arm/tm-nbsd.h: Delete.
11453 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11455 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11456 Initialize CALL_DUMMY_LENGTH.
11458 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11460 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11462 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11463 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11464 defines one thing and that is incorrect for this port.
11465 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11467 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11469 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11471 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11473 * win32-nat.c (display_selector): New function. Displays information
11474 about the information returned by GetThreadSelectorEntry API function.
11475 (display_selectors): New function. Displays the infomation of
11476 the selector given as argument, or of CS, DS ans FS selectors
11477 if no argument is given.
11478 ( _initialize_inftarg): Add "w32" as info prefix command.
11479 Add "info w32 selector" as command calling display_selectors.
11481 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11483 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11484 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11487 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11489 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11491 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11493 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11494 (arm_fix_call_dummy): Call it.
11495 (arm_call_dummy_breakpoint_offset): Delete.
11496 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11497 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11499 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11501 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11502 Default to func_frame_chain_valid.
11503 * gdbarch.h, gdbarch.c: Re-generate.
11504 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11506 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11508 * ppc-linux-nat.c: Update copyright.
11509 (fetch_register, store_register): Add tid parameter, don't compute
11511 (fetch_ppc_registers, store_ppc_registers): Add tid
11512 parameter. Pass it along to callees.
11513 (fetch_inferior_registers, store_inferior_registers): Compute tid
11514 here, and pass it to calleed functions.
11515 (fill_gregset, supply_fpregset): Clean up formatting.
11517 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11519 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11520 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11522 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11524 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11525 * gdbarch.c gdbarch.h: Regenerate.
11526 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11528 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11529 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11530 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11532 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11533 * arm-tdep.c (arm_get_longjmp_target): New function.
11534 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11535 this to a positive value register arm_get_longjmp_target as the
11537 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11538 (arm_linux_init_abi): Set up longjmp description in tdep.
11539 * armnbsd-nat.c (get_longjmp_target): Delete.
11540 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11541 description in tdep.
11542 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11543 (get_longjmp_target): Delete declaration.
11544 (GET_LONGJMP_TARGET): Delete.
11545 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11546 (GET_LONGJMP_TARGET): Delete.
11548 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11550 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11551 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11552 of ``current_gdbarch''.
11554 2002-02-17 Tom Tromey <tromey@redhat.com>
11556 * cli/cli-cmds.c (compare_strings): New function.
11557 (complete_command): Only print each unique item once.
11558 * completer.h (complete_line): Declare.
11559 * completer.c (complete_line): New function.
11560 (line_completion_function): Use it.
11562 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11564 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11565 * gdbarch.h, gdbarch.c: Re-generate.
11567 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11569 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11571 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11573 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11574 * valops.c (value_arg_coerce): Don't take the address of a reference
11575 to convert an argument to a reference.
11577 2002-02-15 Christopher Faylor <cgf@redhat.com>
11579 * win32-nat.c (get_image_name): New function.
11580 (handle_load_dll): Use get_image_name function.
11581 (get_child_debug_event): Avoid registering debug events until possibly
11582 execed process is started.
11583 (child_create_inferior): Allow invocation via shell so that command
11584 line redirection, etc. works ok.
11585 (_initialize_inftarg): Add new command: "set shell" to control whether
11586 a shell is used to start a process.
11588 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11590 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11591 instead of find_register_by_number.
11592 (cannot_store_register): Likewise.
11594 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11596 * dwarf2read.c: Replace fprintf (stderr, ...) by
11597 fprintf_unfiltered (gdb_stderr, ...).
11599 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11601 * gdbserver/gdbserver.1: Document --attach.
11603 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11605 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11607 * arm-tdep.c (arm_default_arm_le_breakpoint)
11608 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11609 (arm_default_thumb_be_breakpoint): New. Initialize them from
11610 traditional breakpoint defines.
11611 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11612 (arm_gdbarch_init): Initialize new breakpoint variables.
11613 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11614 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11615 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11616 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11618 (arm_netbsd_init_abi_common): ... here; new function.
11619 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11620 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11621 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11622 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11624 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11626 * arm-tdep.h (enum arm_abi): New enum.
11627 (struct gdbarch_tdep): New structure.
11628 (LOWEST_PC): Provide a default.
11629 (arm_gdbarch_register_os_abi): Declare new function.
11630 * arm-tdep.c (arm_abi_names): New array.
11631 (process_note_abi_tag_sections): New function.
11632 (get_elfosabi): New function.
11633 (arm_gdbarch_register_os_abi): New function.
11634 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11635 support for that ABI has been built in, then call the appropriate
11636 configuration routine. Use gdbarch_num_regs() to get the number
11638 (arm_dump_tdep): New function.
11639 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11640 place-holder functions.
11641 (_initialize_arm_tdep): Register them.
11642 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11644 * armnbsd-tdep.c: New file.
11645 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11646 * config/arm/nbsd.mt (TDEPFILES): Add it.
11647 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11649 * armnbsd-nat.c: Include regcache.h.
11650 * Makefile.in (armnbsd-nat.o): Update dependency list.
11652 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11654 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11656 * gdbserver/Makefile.in: Fix typos in target rules.
11658 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11660 Fix part of PR gdb/267.
11661 * linespec.c (find_methods): Handle constructors specially for now.
11663 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11665 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11667 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11668 standard_coerce_float_to_double().
11670 2002-02-14 Christopher Faylor <cgf@redhat.com>
11672 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11675 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11677 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11678 find_variant_by_name, because it confuses the multiarch
11679 framework. Return NULL if there isn't an architecture with the
11680 user supplied name, instead of forcing a different one without
11681 recording the change with the multiarch machinery.
11682 (find_variant_by_name): Delete.
11684 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11686 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11687 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11689 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11691 * stack.c (print_frame_info_base): When calling
11692 print_frame_info_listing_hook, set current_source_symtab.
11694 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11696 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11697 and remove unused $(INCLUDE_DIR).
11698 Add regcache.c to OBS.
11699 Add generated register protocol files to clean target.
11700 Update dependencies for new objects, obsolete old target code.
11702 * gdbserver/linux-low.c: Remove all platform-specific code to
11703 new files. Remove various dead code. Update to use regcache
11705 * gdbserver/remote-utils.c (fromhex): Add return statement
11707 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11709 (input_interrupt): Add integer parameter to match prototype
11710 of a signal handler.
11711 (outreg): Use register_data ().
11712 (prepare_resume_reply): Use gdbserver_expedite_regs.
11713 * gdbserver/server.c (main): Dynamically allocate own_buf because
11714 PBUFSIZ is no longer constant. Use registers_to_string () and
11715 registers_from_string ().
11716 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11717 for error (), fatal (), and warning (). Update definition of
11718 PBUFSIZ to use regcache functionality. Add include guard.
11719 * gdbserver/utils.c (fatal): Add missing ``const''.
11720 (warning): New function.
11722 * regformats/regdat.sh: Include "regcache.h" in generated files.
11723 Provide init_registers () function.
11724 * regformats/regdef.h: Add prototype for set_register_cache ().
11727 * gdbserver/linux-arm-low.c: New file.
11728 * gdbserver/linux-i386-low.c: New file.
11729 * gdbserver/linux-ia64-low.c: New file.
11730 * gdbserver/linux-m68k-low.c: New file.
11731 * gdbserver/linux-mips-low.c: New file.
11732 * gdbserver/linux-ppc-low.c: New file.
11733 * gdbserver/linux-sh-low.c: New file.
11735 * gdbserver/regcache.c: New file.
11736 * gdbserver/regcache.h: New file.
11738 * gdbserver/low-linux.c: Removed obsolete file.
11740 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11742 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11743 * config/i386/linux.mt: Likewise.
11744 * config/ia64/linux.mt: Likewise.
11745 * config/m68k/linux.mh: Likewise.
11746 * config/powerpc/linux.mh: Likewise.
11747 * config/mips/linux.mt: Likewise.
11749 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11751 * config/i386/i386lynx.mh: Mark gdbserver variables
11752 as (currently) obsolete for this target.
11753 * config/i386/nbsd.mt: Likewise.
11754 * config/i386/nbsdelf.mt: Likewise.
11755 * config/m32r/m32r.mt: Likewise.
11756 * config/m68k/m68klynx.mh: Likewise.
11757 * config/m68k/nbsd.mt: Likewise.
11758 * config/m68k/sun3os4.mh: Likewise.
11759 * config/mips/vr5000.mt: Likewise.
11760 * config/ns32k/nbsd.mt: Likewise.
11761 * config/pa/hppabsd.mh: Likewise.
11762 * config/pa/hppaosf.mh: Likewise.
11763 * config/powerpc/nbsd.mt: Likewise.
11764 * config/rs6000/rs6000lynx.mh: Likewise.
11765 * config/s390/s390.mt: Likewise.
11766 * config/s390/s390x.mt: Likewise.
11767 * config/sparc/sparclynx.mh: Likewise.
11768 * config/sparc/sun4os4.mh: Likewise.
11769 * config/i386/x86-64linux.mt: Likewise.
11770 * config/sparc/linux.mh: Likewise.
11772 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11774 * configure.tgt: Configure gdbserver only for known working
11775 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11776 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11777 SUBDIRS if it is configured. Update comment for ${nativefile}.
11778 * configure: Regenerated.
11780 2002-02-13 Michael Snyder <msnyder@redhat.com>
11782 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11784 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11785 (default_gcore_mach): Just return 0, work around a problem in bfd.
11786 (default_gcore_target): OK to return NULL if exec_bfd is null.
11787 (make_mem_sec): Use a cast, avoid a warning.
11789 * procfs.c (find_memory_regions_callback): Use a cast instead of
11790 calling host_pointer_to_address (which complains if
11791 sizeof (host pointer) != sizeof (target pointer)).
11792 (procfs_make_note_section): Avoid overflow in psargs string.
11794 * procfs.c (procfs_make_note_section): Make the default
11795 implementation return an error.
11797 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11799 * procfs.c (procfs_make_note_section): Provide a default definition
11800 (for alpha-dec-osf4.0f). Fix typos.
11802 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11804 * linux-proc.c: Add include of regcache.h.
11805 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11807 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11809 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11810 * memattr.c (create_mem_region): Disallow useless empty region.
11811 Regions are half-open intervals, so allow [A..B) [B..C) as
11814 2002-02-13 Michael Chastain <mec@shout.net>
11816 * defs.h: Kill CONST_PTR.
11817 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11818 * c-lang.c (c_builtin_types): Likewise.
11819 * ch-lang.c (ch_builtin_types): Likewise.
11820 * f-lang.c (f_builtin_types): Likewise.
11821 * language.c (unknown_builtin_types): Likewise.
11822 * m2-lang.c (m2_builtin_types): Likewise.
11823 * p-lang.c (pascal_builtin_types): Likewise.
11824 * scm-lang.c (c_builtin_types): Likewise.
11826 2002-02-13 Keith Seitz <keiths@redhat.com>
11828 * arm-tdep.h (arm_get_next_pc): Add declaration.
11830 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11832 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11833 with other related struct-returning functions.
11834 (arm_extract_struct_value_address): New function.
11835 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11836 initialize float_format, double_format and long_double_format as
11837 appropriate to the endianness of the target.
11838 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11839 (arm_use_struct_convention): Delete declaration.
11840 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11842 2002-02-13 Keith Seitz <keiths@redhat.com>
11844 * defs.h (core_addr_to_string_nz): New function.
11846 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11848 Apply missing bits of 2002-01-15 patch.
11849 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11850 (fill_fpregset): Use i387_fill_fsave.
11852 2002-02-12 Keith Seitz <keiths@redhat.com>
11854 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11855 (core_addr_to_string_nz): New function.
11857 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11859 * arm-linux-nat.c: Really include arm-tdep.h.
11860 * config/arm/tm-linux.h (struct type, struct value): Declare.
11862 2002-02-11 Michael Snyder <msnyder@redhat.com>
11864 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11865 (gcore section): Ifdef for Solaris and Unixware only.
11866 (procfs_do_thread_registers): Unixware needs one lwpstatus
11867 per thread (not one prstatus or pstatus).
11868 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11869 not over all gdb threads. For unixware, call elfcore_write_pstatus
11870 once before iterating over threads.
11872 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11874 * arm-tdep.h: New file.
11875 * arm-tdep.c: Include arm-tdep.h.
11876 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11877 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11878 (arm_print_float_info, arm_register_type, convert_to_extended)
11879 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11880 (arm_extract_return_value, arm_register_name): Make static.
11881 (arm_software_single_step): Similarly. Fix types in declaration.
11882 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11883 (arm_store_return_value, arm_store_struct_return): New functions.
11884 (arm_gdbarch_init): Register the above functions. Also register
11885 call_dummy_start_offset, sizeof_call_dummy_words,
11886 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11887 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11888 max_register_virtual_size, register_size. Set up
11889 prologue_cache.saved_regs here, rather than ...
11890 (_initialize_arm_tdep): ... here.
11891 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11893 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11894 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11895 (arm_print_float_info, arm_register_type, convert_to_extended)
11896 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11897 (arm_extract_return_value, arm_register_name): Delete declarations.
11898 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11899 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11900 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11901 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11902 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11903 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11904 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11905 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11906 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11907 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11908 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11909 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11911 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11912 * remote-rdi.c remote-rdp.c: Likewise.
11913 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11914 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11915 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11918 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11919 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11920 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11921 from non-ARM_ prefixed definitions.
11922 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11924 * remote-rdi.c remote-rdp.c: Likewise.
11925 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11927 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11929 * arm-tdep.c (arm_frameless_function_invocation)
11930 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11931 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11932 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11933 (arm_pop_frame, arm_get_next_pc): Make static.
11934 (arm_gdbarch_init): Register above in gdbarch structure.
11935 (arm_read_fp): Renamed from arm_target_read_fp.
11936 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11937 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11938 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11939 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11940 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11941 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11942 (arm_pc_is_thumb_dummy): Delete declarations.
11943 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11944 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11945 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11946 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11948 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11950 * symtab.c (compare_search_syms): New function.
11951 (sort_search_symbols): New function.
11952 (search_symbols): Sort symbols after searching rather than
11955 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11957 * NEWS: Linux -> GNU/Linux.
11959 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11961 * gdbarch.sh: For for level one methods, disallow a definition
11962 when partially multi-arched. Add comments explaining rationale.
11963 * gdbarch.h: Re-generate.
11965 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11967 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11968 multi-arch partial.
11970 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11972 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11973 field. Use diff -u.
11974 * gdbarch.c: Re-generate.
11976 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11978 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11979 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11982 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11984 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11985 multi-arch partial.
11986 (PUSH_ARGUMENTS): Switch to using predefault.
11987 * gdbarch.c: Regenerate.
11989 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11991 * valops.c (PUSH_ARGUMENTS): Delete definition.
11992 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11993 partial. Default to default_push_arguments.
11994 * gdbarch.h, gdbarch.c: Regenerate.
11996 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11998 * defs.h (throw_exception): Rename return_to_top_level. Update
12000 * utils.c (error_stream, internal_verror, quit): Ditto.
12001 * top.c (throw_exception, catcher): Ditto.
12002 * sparclet-rom.c (sparclet_load): Ditto.
12003 * remote.c (interrupt_query, minitelnet): Ditto.
12004 * remote-sds.c (interrupt_query): Ditto.
12005 * remote-mips.c (mips_error, mips_kill): Ditto.
12006 * ocd.c (interrupt_query): Ditto.
12007 * monitor.c (monitor_interrupt_query): Ditto.
12008 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12009 * target.h: Update comment.
12011 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12013 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12015 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12016 default_double_format.
12017 * gdbarch.h, gdbarch.c: Re-generate.
12018 * findvar.c (floatformat_unknown): Delete variable definition.
12019 * doublest.h (floatformat_unknown): Delete variable declaration.
12021 2002-02-09 Jim Blandy <jimb@redhat.com>
12023 * stabsread.c (read_type): Add code to parse Sun's syntax for
12024 prototyped function types.
12026 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12028 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12029 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12031 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12033 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12034 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12035 now _initialize_xcoffsolib gets called again and overrides the
12036 commands from solib.c in a native configuration.
12038 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12040 * doublest.c (store_typed_floating): Don't try to return a value.
12043 2002-02-08 Jim Blandy <jimb@redhat.com>
12045 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12046 is prototyped and has no arguments, print its argument list as
12049 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12051 * MAINTAINERS (write-after-approval): Add myself.
12052 (paper-trail): I've escaped!
12054 2002-02-08 Christopher Faylor <cgf@redhat.com>
12056 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12058 (_initialize_check_for_gdb_ini): Ditto.
12060 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12062 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12063 xaprintf -> xasprintf.
12065 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12067 * win32-nat.c: Remove use of printf and sprintf functions.
12069 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12071 * arm-tdep.c (arm_frame_chain_valid): Make static.
12072 (arm_push_arguments): Likewise.
12073 (arm_gdbarch_init): New function.
12074 (_initialize_arm_tdep): Call it.
12075 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12076 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12077 (FRAME_CHAIN_VALID): Delete.
12078 (arm_frame_chain_valid): Delete declaration.
12079 (PUSH_ARGUMENTS): Delete.
12080 (arm_push_arguments): Delete declaration.
12081 (CALL_DUMMY_P): Delete.
12083 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12084 Corinna Vinschen <vinschen@redhat.com>
12086 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12087 on builtin float types.
12089 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12091 * utils.c: Include <curses.h> before "bfd.h".
12092 * tui/tui-hooks.c: Likewise.
12093 * tui/tui.c: Likewise.
12094 * tui/tuiCommand.c: Likewise.
12095 * tui/tuiData.c: Likewise.
12096 * tui/tuiDataWin.c: Likewise.
12097 * tui/tuiDisassem.c: Likewise.
12098 * tui/tuiGeneralWin.c: Likewise.
12099 * tui/tuiIO.c: Likewise.
12100 * tui/tuiLayout.c: Likewise.
12101 * tui/tuiRegs.c: Likewise.
12102 * tui/tuiSource.c: Likewise.
12103 * tui/tuiSourceWin.c: Likewise.
12104 * tui/tuiStack.c: Likewise.
12105 * tui/tuiWin.c: Likewise.
12107 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12109 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12110 to include space for pseudoregs as well. Update loops accordingly.
12111 (sh_fp_frame_init_saved_regs): Ditto.
12112 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12114 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12116 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12117 Add Richard Earnshaw to Arm maintainers.
12119 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12121 * defs.h (warning_begin): Delete declaration.
12123 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12126 2002-02-07 Michael Snyder <msnyder@redhat.com>
12128 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12129 Logic bug, remove misplaced else.
12131 2002-02-07 Klee Dienes <klee@apple.com>
12133 * fork-inferior.c (fork_inferior): Add '!' to the list of
12134 characters that need to be quoted when building a string for the
12135 shell. Quote '!' specifically with a backslash, since CSH chokes
12136 when trying to evaluate "str!str".
12138 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12140 * rdi-share/host.h: Only provide a typedef for bool if it is not
12143 2002-02-04 Michael Snyder <msnyder@redhat.com>
12145 * breakpoint.h (enum bptype): Add new overlay event bp type.
12146 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12148 * breakpoint.c (create_internal_breakpoint): New function.
12149 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12150 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12151 (create_thread_event_breakpoint): Ditto.
12152 (create_solib_event_breakpoint): Ditto.
12153 (create_overlay_event_breakpoint): New function.
12154 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12155 (update_breakpoints_after_exec): Delete and re-initialize
12156 overlay event breakpoints after an exec. Add FIXME comment
12157 about longjmp breakpoint.
12158 (print_it_typical): Ignore overlay event breakpoints.
12159 (print_one_breakpoint): Ditto.
12161 (bpstat_what): Do not stop for overlay event breakpoints.
12162 (delete_breakpoint): Don't delete overlay event breakpoints.
12163 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12164 (breakpoint_re_set): Re-create overlay event breakpoint.
12166 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12167 (overlay_manual_command): Disable overlay breakpoints.
12168 (overlay_off_command): Disable overlay breakpoints.
12170 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12172 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12173 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12174 to here from config/tm-arm.h.
12175 (coff_sym_is_thumb): Make static.
12176 (arm_elf_make_msymbol_special): New function.
12177 (arm_coff_make_msymbol_special): New function.
12178 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12179 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12180 (coff_sym_is_thumb): Delete declaration.
12181 (arm_elf_make_msymbol_special): Declare.
12182 (arm_coff_make_msymbol_special): Declare.
12183 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12184 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12186 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12188 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12190 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12192 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12193 * gdbarch.c gdbarch.h: Regenerate.
12194 * arch-utils.c (default_print_float_info): New function.
12195 * arch-utils.h (default_print_float_info): Prototype it.
12196 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12197 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12198 (PRINT_FLOAT_INFO): Document it.
12200 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12201 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12202 (PRINT_FLOAT_INFO): Define.
12204 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12206 * win32-nat.c (_initialize_check_for_gdb_ini):
12207 Add typecast to sprintf argument to suppress a warning.
12209 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12211 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12212 to allow easier handling of pass state.
12213 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12214 that gives exception name and address.
12215 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12216 and set last_sig value to ourstatus->value.sig. Some missing
12218 (child_continue): Correctly report continue_status.
12219 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12220 TARGET_SIGNAL_0 (new default value).
12221 (child_resume): consider sig argument passed to decide if
12222 the exception should be passed to debuggee or not.
12224 2002-02-05 Michael Snyder <msnyder@redhat.com>
12226 * regcache.c (fetch_register): Call target_fetch_register
12227 only if we don't call FETCH_PSEUDO_REGISTER.
12228 (store_register): Call target_store_register only if we
12229 don't call STORE_PSEUDO_REGISTER.
12231 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12233 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12234 ELF_MAKE_MSYMBOL_SPECIAL.
12235 * gdbarch.c, gdbarch.h: Regenerate.
12236 * arch-utils.c (default_make_msymbol_special): New function.
12237 * arch-utils.h (default_make_msymbol_special): Export.
12238 * elfread.c (elf_symtab_read): Compile use of
12239 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12241 * coffread.c (coff_symtab_read): Ditto, for
12242 COFF_MAKE_MSYMBOL_SPECIAL.
12244 2002-02-05 Jim Blandy <jimb@redhat.com>
12246 * solib-svr4.c (svr4_truncate_ptr): New function.
12247 (svr4_relocate_section_addresses): Do the address arithmetic with
12248 the appropriate truncation for target addresses, even when
12249 CORE_ADDR is larger than a target address.
12251 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12253 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12256 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12258 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12261 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12263 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12265 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12267 * gdbserver/linux-low.c: Remove unused include files.
12269 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12271 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12272 (read_inferior_memory): Use it.
12273 (write_inferior_memory): Likewise.
12275 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12277 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12278 grubbing through sys_errlist.
12280 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12282 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12284 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12285 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12287 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12289 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12290 (do_sfunc, set_cmd_sfunc): New functions.
12292 * command.h (struct cmd_list_element): Add field func.
12293 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12294 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12295 * cli/cli-decode.h: Ditto.
12297 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12298 (help_all, help_cmd_list): Ditto.
12299 (find_cmd, complete_on_cmdlist): Ditto.
12300 * top.c (execute_command): Ditto.
12302 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12305 * infcmd.c (notice_args_read): Fix function signature.
12307 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12308 * cli/cli-decode.c (add_set_cmd): Ditto.
12309 * utils.c (initialize_utils): Ditto.
12310 * maint.c (_initialize_maint_cmds): Ditto.
12311 * infrun.c (_initialize_infrun): Ditto.
12312 * demangle.c (_initialize_demangler): Ditto.
12313 * remote.c (add_packet_config_cmd): Ditto.
12314 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12315 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12316 * proc-api.c (_initialize_proc_api): Ditto.
12317 * kod.c (_initialize_kod): Ditto.
12318 * valprint.c (_initialize_valprint): Ditto.
12319 * top.c (init_main): Ditto.
12320 * infcmd.c (_initialize_infcmd): Ditto.
12321 * corefile.c (_initialize_core): Ditto.
12322 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12323 * arch-utils.c (initialize_current_architecture): Ditto.
12324 (_initialize_gdbarch_utils): Ditto.
12325 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12327 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12328 * wince.c (_initialize_inftarg): Ditto.
12329 * symfile.c (_initialize_symfile): Ditto.
12330 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12331 * language.c (_initialize_language): Ditto.
12332 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12334 2002-02-04 Michael Snyder <msnyder@redhat.com>
12336 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12338 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12340 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12341 Add rules for building the register data files.
12343 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12345 * regformats/regdat.sh: Add braces to the definition of
12346 expedite_regs_${arch}.
12348 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12350 * regformats/regdef.h (struct reg): Add comment describing the
12351 requirements for offset and size fields.
12353 2002-02-04 Andreas Schwab <schwab@suse.de>
12355 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12356 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12358 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12360 * gdbarch.sh (copyright): Update years in generated header.
12361 (SMASH_TEXT_ADDRESS): Add rule.
12362 * gdbarch.h, gdbarch.c: Re-generate.
12363 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12364 * dbxread.c: Likewise.
12365 * dwarfread.c: Likewise.
12366 * elfread.c: Likewise.
12367 * somread.c: Likewise.
12369 * arm-tdep.c (arm_smash_text_address): New function.
12370 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12372 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12374 Add support for hardware watchpoints on win32 native.
12375 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12376 CONTEXT_DEBUG_REGISTERS.
12377 (dr variable): New variable. Static array containing a local copy
12378 of debug registers.
12379 (debug_registers_changed): New variable. Reflects when debug registers
12380 are changed and need to be written to inferior.
12381 (debug_registers_used): New variable. Reflects when any debug register
12382 was set, used when new threads are created.
12383 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12385 (thread_rec): Set dr array if id is the thread of current_event .
12386 (child_continue, child_resume): Change the debug registers for all
12387 threads if debug_registers_changed.
12388 (child_add_thread): Change the debug registers if debug_registers_used.
12389 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12390 Link nm.h to new nm-cygwin.h file.
12391 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12392 of hardware registers.
12394 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12396 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12397 Restore behavour broken by 2002-01-20 Andrew Cagney
12398 <ac131313@redhat.com> IEEE_FLOAT removal.
12400 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12402 * c-valprint.c (c_val_print): Pass a proper valaddr to
12403 cp_print_class_method.
12404 * valops.c (search_struct_method): If there is only one method
12405 and args is NULL, return that method.
12407 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12409 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12410 accessing tag_name directly.
12412 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12414 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12415 of accessing tag_name directly.
12417 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12420 * gdbtypes.c (replace_type): New function.
12421 * gdbtypes.h (replace_type): Add prototype.
12422 * stabsread.c (read_type): Use replace_type.
12424 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12426 * Makefile.in (memattr.o): Add missing dependencies rule.
12428 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12430 * breakpoint.c (break_at_finish_command): Really export.
12431 (break_at_finish_at_depth_command): Ditto.
12432 (tbreak_at_finish_command): Ditto.
12433 * hppa-tdep.c: Include completer.h.
12434 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12435 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12437 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12439 * utils.c (do_write): New function.
12440 (error_stream): Rewrite combining the code from error_begin and
12442 (verror): Rewrite using error_stream.
12443 (error_begin): Delete function.
12445 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12447 * utils.c (error_begin): Make static.
12448 * defs.h (error_begin): Delete declaration.
12450 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12451 (decode_line_1): Use cplusplus_error instead of error_begin,
12452 cplusplus_hint and return_to_top_level.
12453 * coffread.c (coff_symfile_read): Use error instead of error_begin
12454 and return_to_top_level.
12455 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12457 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12459 * language.h (type_error, range_error): Make string parameter
12461 * language.c (warning_pre_print): Delete extern declaration.
12462 * dwarfread.c (warning_pre_print): Ditto.
12463 * language.c (type_error, range_error): Rewrite to use verror and
12464 vwarning instead of warning_begin.
12466 2002-02-01 Michael Snyder <msnyder@redhat.com>
12468 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12469 (set_ignore_count): Move misplaced comment back where it belongs.
12471 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12473 * command.h (NO_FUNCTION): Delete macro.
12474 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12475 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12476 * tracepoint.c (_initialize_tracepoint): Ditto.
12477 * cli/cli-decode.c (add_set_cmd): Ditto.
12478 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12480 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12482 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12483 Update ``this'' pointer when calling virtual functions.
12485 2002-02-01 Michael Snyder <msnyder@redhat.com>
12487 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12488 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12490 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12492 * regformats/reg-arm.dat: New file.
12493 * regformats/reg-i386.dat: New file.
12494 * regformats/reg-ia64.dat: New file.
12495 * regformats/reg-m68k.dat: New file.
12496 * regformats/reg-mips.dat: New file.
12497 * regformats/reg-ppc.dat: New file.
12498 * regformats/reg-sh.dat: New file.
12499 * regformats/regdef.h: New file.
12500 * regformats/regdat.sh: New file.
12502 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12504 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12505 (arm_frame_args_address, arm_frame_locals_address): New functions.
12506 (arm_frame_num_args): New function.
12507 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12508 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12509 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12511 2002-01-31 Michael Snyder <msnyder@redhat.com>
12513 * breakpoint.c (break_at_finish_command): Export.
12514 (break_at_finish_at_depth_command): Export.
12515 (tbreak_at_finish_command): Export.
12516 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12517 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12518 "txbreak" commands, which are HPPA specific.
12520 * printcmd.c (disassemble_command): Remove an ancient
12521 artifact of an old merge.
12523 * symfile.h (enum overlay_debugging_state):
12524 Define enum constant values for overlay mode.
12525 * symfile.c (overlay_debugging): Use enums instead of literals.
12526 (overlay_is_mapped, overlay_auto_command,
12527 overlay_manual_command): Ditto.
12529 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12530 breakpoint_here_p, breakpoint_inserted_here_p,
12531 breakpoint_thread_match, bpstat_stop_status,
12532 describe_other_breakpoints, check_duplicates, clear_command):
12533 Coding standard fixes.
12535 * target.c (target_xfer_memory): Add spaces, coding standard.
12536 (do_xfer_memory): Add missing line to trust-readonly
12537 code: check bfd SEC_READONLY flag for section.
12539 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12541 * PROBLEMS: Fix typo, 5.1->5.1.1.
12543 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12545 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12546 data symbols, since we search based on textlow and texthigh.
12547 (find_pc_sect_symtab): Likewise.
12549 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12551 * defs.h (vwarning): Declare.
12552 * utils.c (vwarning): New function.
12553 (warning): Call vwarning.
12554 (warning_begin): Delete function.
12556 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12557 the warning message.
12558 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12561 2002-01-30 Michael Snyder <msnyder@redhat.com>
12563 * NEWS: Mention "set trust-readonly-sections" command.
12564 Mention generate-core-file command.
12566 2002-01-15 Michael Snyder <msnyder@redhat.com>
12568 * target.c: New command, "set trust-readonly-sections on".
12569 (do_xfer_memory): Honor the suggestion to trust readonly sections
12570 by reading them from the object file instead of from the target.
12571 (initialize_targets): Register command "set trust-readonly-sections".
12573 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12575 * parse.c (target_map_name_to_register): Simplify, search regs and
12576 pseudo-regs using a single loop.
12578 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12580 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12582 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12584 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12585 * config/i386/i386v42mp.mh: Add i387-nat.o .
12586 * i386v4-nat.c: Include i387-nat.h.
12587 (supply_fpregset): Use i387_supply_fsave.
12588 (fill_fpregset): Use i387_fill_fsave.
12590 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12592 * arm-tdep.c (arm_call_dummy_words): Define.
12593 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12594 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12595 (CALL_DUMMY_WORDS): Define.
12596 (arm_call_dummy_words): Declare.
12597 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12598 (arm_linux_call_dummy_words): Declare.
12600 2002-01-30 Andreas Schwab <schwab@suse.de>
12602 * m68klinux-nat.c: Fix last change to use regcache_collect
12603 instead of referencing registers[] directly.
12605 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12607 * parse.c (target_map_name_to_register): Delete code wrapped in
12608 #ifdef REGISTER_NAME_ALIAS_HOOK.
12610 2002-01-28 Michael Snyder <msnyder@redhat.com>
12612 * regcache.c (legacy_read_register_gen): Need to be able to
12613 read pseudo-register as well as real register.
12614 (legacy_write_register_gen): Ditto.
12616 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12618 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12619 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12620 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12621 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12622 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12623 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12624 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12625 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12626 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12627 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12628 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12629 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12630 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12631 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12632 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12633 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12634 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12635 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12636 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12637 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12639 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12641 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12642 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12643 (initialize_current_architecture): Update target_byte_order using
12644 information from BFD.
12645 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12646 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12648 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12650 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12651 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12653 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12654 #ifdef INVALID_FLOAT.
12655 * infcmd.c (do_registers_info): Ditto.
12656 * values.c (unpack_double): Ditto. Add comment.
12658 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12659 already commented out.
12661 2002-01-26 Andreas Schwab <schwab@suse.de>
12663 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12664 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12665 registers and add support for PTRACE_GETREGS.
12667 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12669 GDB 5.1.1 released from 5.1 branch.
12670 * NEWS: Add 5.1.1 news.
12671 * README: Sync with 5.1 branch.
12673 2002-01-23 Fred Fish <fnf@redhat.com>
12675 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12676 stabstring on initial malloc. Reallocing will copy it for us,
12679 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12681 * Makefile.in (hpread_h): Delete.
12682 (HFILES_NO_SRCDIR): Remove hpread.h.
12683 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12684 (hpread.o): Update dependencies.
12685 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12687 * hp-psymtab-read.c: Remove file.
12688 * hp-symtab-read.c: Remove file.
12689 * hpread.h: Remove file.
12691 * hpread.c: Merge all contents of hp-psymtab-read.c,
12692 hp-symtab-read.c and hpread.h into this file, as it was prior to
12695 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12696 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12697 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12698 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12700 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12702 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12703 fill_gregset): Call gdbarch_tdep() just once, assign result to
12704 variable and use that, instead of calling the function several
12707 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12709 * configure.host: Accept sparcv9 as alias for sparc64.
12710 * configure.tgt: Likewise.
12712 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12714 * solib-aix5.c (build_so_list_from_mapfile)
12715 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12716 arguments is not reversed.
12717 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12718 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12720 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12722 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12723 modified version of obsolete sh_fetch_pseudo_register.
12724 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12725 (sh4_register_read): New function.
12726 (sh_pseudo_register_write): New function. Renamed and modified
12727 version of obsolete sh_store_pseudo_register.
12728 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12729 (sh4_register_write): New function.
12730 (sh_gdbarch_init): Remove setting of gdbarch function
12731 fetch_pseudo_register and store_pseudo_register. Remove setting of
12732 register_convert_to_raw, register_convert_to_virtual,
12733 register_convertible.
12734 (sh_sh4_register_convertible): Delete. No longer needed. All is
12735 taken care by architecture specific functions
12736 register_read/register_write.
12737 (sh_sh4_register_convert_to_virtual): Make static.
12738 (sh_sh4_register_convert_to_raw): Ditto.
12740 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12742 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12743 (floatformat_is_nan, floatformat_mantissa): Ditto.
12745 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12746 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12747 builtin_type_ieee_double_little,
12748 builtin_type_ieee_double_littlebyte_bigword,
12749 builtin_type_m68881_ext, builtin_type_i960_ext,
12750 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12751 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12752 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12753 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12755 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12757 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12758 parameter. Set frameless flag if it exists and depended of
12759 whether the scanned function is frameless or not.
12760 (xstormy16_skip_prologue): If function is frameless, return
12761 result of xstormy16_scan_prologue().
12762 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12765 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12767 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12768 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12769 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12770 sh_sh4_register_byte, sh_sh4_register_raw_size,
12771 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12772 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12773 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12774 sh_store_pseudo_register, sh_do_pseudo_register): Call
12775 gdbarch_tdep() just once, assign result to variable and use that,
12776 instead of calling the function several times.
12778 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12780 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12781 macros instead of LAST_FPU_CTRL_REGNUM.
12782 (store_register): Likewise.
12784 2002-01-21 Jim Blandy <jimb@redhat.com>
12786 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12787 is up-to-date before running the program, not just when a program
12790 2002-01-21 Fred Fish <fnf@redhat.com>
12792 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12793 when we have found all instructions we are looking for.
12795 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12797 * arm-tdep.c (arm_register_name): New function.
12798 (arm_registers_names): Make static.
12799 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12800 (arm_register_name): Declare.
12801 (REGISTER_NAME): Use it.
12803 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12804 Kevin Buettner <kevinb@redhat.com>
12806 Convert arm targets to new FRAME interface.
12807 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12808 (arm_frame_find_save_regs): Delete.
12809 (arm_frame_init_saved_regs): New.
12810 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12811 Allocate extra_info as required. Convert all uses of fsr.regs
12812 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12814 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12815 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12816 (check_prologue_cache, save_prologue_cache): Likewise.
12817 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12818 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12819 (FRAME_FIND_SAVED_REGS): Delete.
12820 (arm_frame_find_saved_regs): Delete prototype.
12821 (arm_frame_init_saved_regs): New prototype.
12822 (FRAME_INIT_SAVED_REGS): Define.
12824 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12826 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12828 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12830 From Jeff Law <law@redhat.com>:
12831 * infttrace.c: Include <sys/pstat.h>.
12832 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12833 exec file if the ttrace equivalent fails.
12835 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12837 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12838 (closeLogFile): Ditto.
12840 2002-01-20 Michael Chastain <mec@shout.net>
12842 * top.c (print_gdb_version): Bump copyright year to 2002.
12844 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12846 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12847 Zannoni and Eli Zaretskii.
12849 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12851 * buildsym.c: Update copyright years.
12852 * c-typeprint.c: Likewise.
12853 * dwarf2read.c: Likewise.
12854 * f-typeprint.c: Likewise.
12855 * gdbtypes.c: Likewise.
12856 * gdbtypes.h: Likewise.
12857 * hp-symtab-read.c: Likewise.
12858 * hpread.c: Likewise.
12859 * mdebugread.c: Likewise.
12860 * p-typeprint.c: Likewise.
12862 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12864 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12865 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12866 byte-order selectable.
12867 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12868 * arch-utils.c: Ditto.
12869 (set_endian): Ditto.
12870 (set_endian_from_file): Ditto.
12871 * gdbserver/low-sim.c (create_inferior): Ditto.
12872 * gdbarch.sh: Ditto.
12873 * gdbarch.h: Re-generate.
12874 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12875 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12876 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12877 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12878 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12879 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12880 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12881 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12883 * config/mips/tm-wince.h: Remove #undef of macro
12884 TARGET_BYTE_ORDER_SELECTABLE.
12885 * config/sh/tm-wince.h: Ditto.
12887 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12889 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12890 member function fields. Add accessor macro
12891 TYPE_FN_FIELD_ARTIFICIAL.
12892 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12893 * c-typeprint.c (c_type_print_base): Skip artificial member
12896 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12898 * f-typeprint.c: Delete unused function f_type_print_args.
12899 * p-typeprint.c: Delete unused function pascal_type_print_args.
12901 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12903 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12904 comment. Add ``artificial'' to ``union field_location''.
12906 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12908 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12909 * mdebugread.c (parse_symbol): Likewise.
12910 * stabsread.c (define_symbol): Likewise.
12911 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12912 initializing TYPE_FIELD_BITPOS to n (obsolete).
12913 (hpread_doc_function_type): Likewise.
12914 * hpread.c (hpread_function_type): Likewise.
12916 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12918 * configure.in (host_makefile_frag): Only require a host makefile
12919 fragment when a native build.
12920 * configure: Re-generate.
12922 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12924 * doublest.h (floatformat_from_type): Declare.
12925 * doublest.c (floatformat_from_type): New function.
12926 (convert_typed_floating): Use.
12928 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12929 call to function floatformat_from_type.
12931 * gdbarch.sh (IEEE_FLOAT): Delete.
12932 * gdbarch.h, gdbarch.c: Re-generate.
12933 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12934 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12935 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12936 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12937 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12938 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12939 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12940 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12941 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12942 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12943 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12944 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12946 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12947 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12948 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12949 * sh-tdep.c (sh_gdbarch_init): Ditto.
12950 * mips-tdep.c (mips_gdbarch_init): Ditto.
12951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12952 * cris-tdep.c (cris_gdbarch_init): Ditto.
12954 2002-01-20 Jiri Smid <smid@suse.cz>
12956 * configure.host, configure.tgt: Support x86-64.
12957 * NEWS: Note new target x86-64.
12959 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12960 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12961 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12962 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12963 x86-64-linux-nat.o): Fix dependencies.
12965 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12967 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12968 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12969 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12970 * config/sparc/xm-sun4os4.h: Delete file.
12971 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12973 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12975 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12976 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12977 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12978 * config/i386/i386lynx.mh (XM_FILE): Delete.
12979 * config/rs6000/xm-rs6000ly.h: Delete file.
12980 * config/sparc/xm-sparclynx.h: Delete file.
12981 * config/m68k/xm-m68klynx.h: Delete file.
12982 * config/i386/xm-i386lynx.h: Delete file.
12983 * config/xm-lynx.h: Delete file.
12984 * config/djgpp/fnchange.lst: Update.
12986 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12988 * alpha-tdep.c (alpha_register_byte): New function.
12989 (alpha_register_raw_size): Ditto.
12990 (alpha_register_virtual_size): Ditto.
12991 (alpha_skip_prologue_internal): Renamed from
12992 alpha_skip_prologue.
12993 (alpha_skip_prologue): New version that calls
12994 alpha_skip_prologue_internal.
12995 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12996 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12997 second argument from alpha_skip_prologue.
12998 (REGISTER_BYTE): Use alpha_register_byte.
12999 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13000 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13001 (FRAMELESS_FUNCTION_INVOCATION): Use
13002 generic_frameless_function_invocation_not.
13003 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13004 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13006 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13008 * config/mips/xm-news-mips.h: Delete file.
13009 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13011 * config/m88k/xm-m88k.h: Delete file.
13012 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13013 * config/m88k/xm-delta88v4.h: Ditto.
13014 * config/m88k/xm-delta88.h: Ditto.
13016 * config/alpha/xm-fbsd.h: Delete file.
13017 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13019 * config/sparc/xm-sparc.h: Delete file.
13020 * Makefile.in (xm-sun4os4.h): Delete dependency.
13021 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13022 * config/sparc/xm-sun4os4.h: Ditto.
13023 * config/sparc/xm-linux.h: Ditto.
13025 * config/i386/xm-windows.h: Delete file.
13027 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13029 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13030 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13032 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13034 * alpha-tdep.c (alpha_call_dummy_words): New.
13035 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13036 (CALL_DUMMY_P): Define.
13037 (CALL_DUMMY_WORDS): Define.
13038 (SIZEOF_CALL_DUMMY_WORDS): Define.
13040 2002-01-19 Per Bothner <per@bothner.com>
13042 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13043 isn't NULL, which can happen with some gcj-3.x-produced code.
13045 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13047 * alpha-tdep.c (alpha_register_virtual_type): New function.
13048 (alpha_init_frame_pc_first): Ditto.
13049 (alpha_fix_call_dummy): Ditto.
13050 (alpha_store_struct_return): Ditto.
13051 (alpha_extract_struct_value_address): Ditto.
13052 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13053 alpha_register_virtual_type.
13054 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13055 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13056 alpha_extract_struct_value_address.
13057 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13058 (INIT_FRAME_PC): Use init_frame_pc_noop.
13059 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13061 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13063 * i386gnu-nat.c: Include "i386-tdep.h".
13064 (fetch_fpregs): Simplify code dealing with uninitialized floating
13065 point states such that it doesn't require FP7_REGNUM.
13067 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13069 * alpha-tdep.c (frame_extra_info): New.
13070 (alpha_find_saved_regs): Make static. Use
13072 (alpha_frame_init_saved_regs): New function.
13073 (alpha_frame_saved_pc): Use frame->extra_info.
13074 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13075 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13076 (init_extra_frame_info): Rename to...
13077 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13078 (alpha_print_extra_frame_info): New function.
13079 (alpha_frame_locals_address): Ditto.
13080 (alpha_frame_args_address): Ditto.
13081 (alpha_pop_frame): Use frame->extra_info.
13082 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13083 alpha_frame_args_address.
13084 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13085 (alpha_find_saved_regs): Remove prototype.
13086 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13087 (EXTRA_FRAME_INFO): Remove.
13088 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13089 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13091 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13093 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13094 (alpha_cannot_fetch_register): Ditto.
13095 (alpha_cannot_store_register): Ditto.
13096 (alpha_register_convertible): Ditto.
13097 (alpha_use_struct_convention): Ditto.
13098 * config/alpha/tm-alpha.h: Update copyright years.
13099 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13100 (INNER_THAN): Use core_addr_lessthan.
13101 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13102 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13103 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13104 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13105 (FRAME_CHAIN): Remove unnecessary cast.
13107 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13109 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13112 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13114 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13115 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13116 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13117 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13118 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13119 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13120 * x86-64-linux-nat.c: Ditto.
13122 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13124 * alpha-tdep.c (alpha_register_name): New function.
13125 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13126 (REGISTER_NAME): Define.
13128 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13130 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13132 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13134 * alpha-tdep.c: Update copyright years.
13135 (alpha_next_pc): New function.
13136 (alpha_software_single_step): Ditto.
13137 * config/alpha/tm-alpha.h: Add prototype for
13138 alpha_software_single_step.
13140 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13142 * alphabsd-nat.c: Update copyright years.
13143 (fill_gregset): Use regcache_collect.
13144 (fill_fpregset): Likewise.
13145 (fetch_inferior_registers): Only fetch integer registers
13146 if requested to do so.
13147 (store_inferior_registers): Only store integer registers
13148 if requested to do so.
13150 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13152 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13153 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13154 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13155 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13156 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13157 * config/arm/linux.mh (XDEPFILES): Delete.
13158 * config/arm/nbsd.mh (XDEPFILES): Delete.
13159 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13160 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13161 * config/i386/i386m3.mh (XDEPFILES): Delete.
13162 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13163 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13164 * config/i386/fbsd.mh (XDEPFILES): Delete.
13165 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13166 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13167 * config/i386/i386v4.mh (XDEPFILES): Delete.
13168 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13169 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13170 * config/i386/i386aix.mh (XDEPFILES): Delete.
13171 * config/i386/go32.mh (XDEPFILES): Delete.
13172 * config/i386/cygwin.mh (XDEPFILES): Delete.
13173 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13174 * config/i386/i386mach.mh (XDEPFILES): Delete.
13175 * config/i386/i386v32.mh (XDEPFILES): Delete.
13176 * config/i386/linux.mh (XDEPFILES): Delete.
13177 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13178 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13179 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13180 * config/i386/i386sco.mh (XDEPFILES): Delete.
13181 * config/i386/i386v.mh (XDEPFILES): Delete.
13182 * config/i386/nbsd.mh (XDEPFILES): Delete.
13183 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13184 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13185 * config/i386/symmetry.mh (XDEPFILES): Delete.
13186 * config/i386/obsd.mh (XDEPFILES): Delete.
13187 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13188 * config/ia64/linux.mh (XDEPFILES): Delete.
13189 * config/ia64/aix.mh (XDEPFILES): Delete.
13190 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13191 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13192 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13193 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13194 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13195 * config/m68k/linux.mh (XDEPFILES): Delete.
13196 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13197 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13198 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13199 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13200 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13201 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13202 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13203 * config/m88k/delta88.mh (XDEPFILES): Delete.
13204 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13205 * config/m88k/m88k.mh (XDEPFILES): Delete.
13206 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13207 * config/mips/linux.mh (XDEPFILES): Delete.
13208 * config/mips/irix6.mh (XDEPFILES): Delete.
13209 * config/mips/irix5.mh (XDEPFILES): Delete.
13210 * config/mips/irix4.mh (XDEPFILES): Delete.
13211 * config/mips/irix3.mh (XDEPFILES): Delete.
13212 * config/mips/decstation.mh (XDEPFILES): Delete.
13213 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13214 (NATDEPFILES): Move core-aout.o to here.
13215 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13216 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13217 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13218 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13219 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13220 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13221 * config/pa/hpux11.mh (XDEPFILES): Delete.
13222 * config/powerpc/aix.mh (XDEPFILES): Delete.
13223 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13224 * config/powerpc/linux.mh (XDEPFILES): Delete.
13225 * config/romp/rtbsd.mh: Rename XDEPFILES.
13226 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13227 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13228 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13229 * config/s390/s390.mh (XDEPFILES): Delete.
13230 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13231 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13232 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13233 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13234 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13235 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13236 * config/sparc/linux.mh (XDEPFILES): Delete.
13237 * config/vax/vaxult.mh (XDEPFILES): Delete.
13238 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13239 * Makefile.in (DEPFILES): Remove XDEPFILES.
13241 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13243 * utils.c (internal_verror): Fix comments, default is yes not no.
13244 Update queries to match. Default to quit and dump core.
13246 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13248 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13250 * defs.h, event-top.c, gdbcmd.h: Ditto.
13251 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13252 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13253 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13254 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13255 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13256 * mi/mi-main.c:Ditto.
13258 * stack.c, symfile.c: Update copyright.
13260 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13262 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13263 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13264 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13265 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13267 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13269 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13270 * gdbserver/low-lynx.c (myattach): Likewise.
13271 * gdbserver/low-nbsd.c (myattach): Likewise.
13272 * gdbserver/low-sim.c (myattach): Likewise.
13273 * gdbserver/low-sparc.c (myattach): Likewise.
13274 * gdbserver/low-sun3.c (myattach): Likewise.
13276 * gdbserver/low-linux.c (myattach): New function.
13278 * gdbserver/server.c (attach_inferior): New function.
13279 (main): Handle "--attach".
13281 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13283 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13286 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13288 * c-typeprint.c (is_type_conversion_operator): Add additional
13289 check for non-conversion operators.
13291 2002-01-15 Michael Snyder <msnyder@redhat.com>
13293 * linux-proc.c: Add "info proc" command, a la procfs.c.
13294 (read_mapping): New function, abstract and re-use code.
13295 (linux_find_memory_regions): Use new func read_mapping.
13296 (linux_info_proc_cmd): New function, implement "info proc".
13297 (_initialize_linux_proc): Add new command "info proc".
13299 2002-01-15 Michael Snyder <msnyder@redhat.com>
13301 * symfile.c (generic_load): Use bfd_map_over_sections method
13302 instead of manipulating bfd structure members directly.
13303 (add_section_size_callback): New function, bfd sections callback
13304 used by generic_load.
13305 (load_sections_callback): New function, bfd sections callback
13306 used by generic_load.
13308 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13310 [Based on work by Jim Blandy]
13311 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13312 (builtin_type_vec128): Export.
13313 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13315 (builtin_type_vec128): New builtin type for 128 bit vector
13317 (build_gdbtypes): Initialize builtin_type_v16qi and
13318 builtin_type_v8hi. Create the vec128 register builtin type
13320 (build_builtin_type_vec128): New function.
13321 (_initialize_gdbtypes): Register builtin_type_v16qi and
13322 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13323 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13324 AltiVec register to new builtin type.
13326 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13328 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13331 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13333 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13334 CLEAN_UP_REGISTER_VALUE.
13335 * regcache.c (supply_register): Update only call.
13337 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13339 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13340 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13341 a29k-*-vxworks* targets as obsolete.
13343 2002-01-14 Michael Snyder <msnyder@redhat.com>
13345 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13346 until we can resolve portability issues.
13347 * gregset.h: Remove references to fpxregs.
13348 * gcore.c (gcore_command): Initialize note_sec to NULL.
13350 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13352 * signals.c (target_signal_to_name): Rewrite. Only use
13353 signals[].name when in bounds and non-NULL.
13355 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13357 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13358 * signals.c (target_signal_to_name): Verify that SIG is within the
13359 bounds of the signals array.
13361 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13363 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13365 2002-01-13 Keith Seitz <keiths@redhat.com>
13367 * stack.c (print_frame_info_base): Print the frame's pc
13368 only if when print_frame_info_listing_hook is not defined.
13370 2002-01-13 Keith Seitz <keiths@redhat.com>
13372 * varobj.c (varobj_set_value): Make sure that there were no
13373 errors evaluating the object before attempting to set its
13375 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13376 so this offset adjustment is no longer necessary.
13377 (create_child): Don't set the error flag if the child is
13378 a CPLUS_FAKE_CHILD.
13379 (value_of_child): If value_fetch_lazy fails, return NULL
13380 so that callers will be notified that an error occurred.
13381 (c_value_of_variable): Delay check of variable's validity
13382 until later. We actually want all structs and unions to have
13384 Do not return "???" for variables which could not be evaluated.
13385 This error condition must be returned to the caller so that it
13386 can get the error condition from gdb.
13387 (cplus_name_of_child): Adjust index for vptr before figuring
13388 out the name of the child.
13389 (cplus_value_of_child): If a child's (real) parent is not valid,
13390 don't even bother trying to give a value for it. Just return
13391 an error. Change all instances in this function.
13392 (cplus_type_of_child): If our parent is one of the "fake"
13393 parents, we need to get at the type of the real parent, and
13394 derive the child's true type using this information.
13396 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13398 From 2002-01-09 John Marshall <johnm@falch.net>:
13399 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13400 sources.redhat.com, and tweak some related URLs which had
13401 suffered from linkrot.
13403 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13406 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13407 structures passed in registers.
13409 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13411 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13412 white space which prevented compilation. Reported by DSK
13413 <dsk@student.unsw.edu.au>.
13415 2002-01-11 Michael Snyder <msnyder@redhat.com>
13417 * symfile.c (build_section_addr_info_from_section_tab):
13418 Use bfd access method instead of manipulating bfd directly.
13419 (syms_from_objfile): Ditto.
13420 (simple_overlay_update_1): Ditto.
13421 (simple_overlay_update): Ditto.
13422 (generic_load): Ditto.
13423 (overlay_unmapped_address): FIXME comment, bfd access methods.
13424 (sections_overlap): FIXME comment, bfd access methods.
13425 (pc_in_mapped_range): FIXME comment, bfd access methods.
13426 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13427 (section_is_mapped): FIXME comment, bfd access methods.
13428 (section_is_overlay): FIXME comment, bfd access methods.
13430 * symfile.c (generic_load): Whitespace and long line cleanups.
13431 Remove duplicate variable, change several local variables to
13432 more appropriate data types.
13433 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13435 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13437 From Peter Schauer:
13438 * language.c (longest_local_hex_string_custom): Use phex_nz to
13439 convert NUM to a hex string.
13441 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13443 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13445 Update Copyright year.
13447 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13449 * language.c (longest_raw_hex_string): Delete unused function.
13451 2002-01-11 Petr Sorfa <petrs@caldera.com>
13453 * MAINTAINERS (write-after-approval): Add myself.
13454 * dwarf2read.c (read_tag_string_type): Handling of
13456 (read_tag_string_type): FORTRAN fix to prevent propagation of
13458 (set_cu_language): Handling of DW_LANG_Fortran95
13460 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13462 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13463 GETPID(inferior_ptid).
13464 (store_inferior_registers): Likewise.
13466 2002-01-10 Jason Merrill <jason@redhat.com>
13468 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13471 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13473 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13474 and bfd/elf32-sh-nbsd.c.
13476 2002-01-10 Michael Snyder <msnyder@redhat.com>
13478 * NEWS: Mention --pid and corefile/proc-id behavior change.
13480 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13481 * gcore.c: Include cli/cli-decode.h instead of command.h.
13483 * main.c (captured_main): Add new command line option "--pid".
13484 If the second command line argument (following the symbol-file)
13485 begins with a digit, try to attach to it before trying to open
13487 (print_gdb_help): Document the "--pid" argument.
13489 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13491 * completer.c (command_completer): New function.
13493 * completer.h <command_completer>: Add prototype.
13495 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13496 completer for the "help" command.
13498 2002-01-09 Jason Merrill <jason@redhat.com>
13500 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13502 2002-01-09 Michael Snyder <msnyder@redhat.com>
13504 * i386-linux-nat.c (fill_fpxregset): Make global.
13505 (store_fpxregset): Ditto.
13507 * gregset.h (gdb_fpxregset_t): Define.
13508 (supply_fpxregset): Prototype.
13509 (fill_fpxregset): Prototype.
13511 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13513 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13515 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13516 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13517 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13519 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13521 * MAINTAINERS: Update target maintainer rules so that any
13522 Maintainer can approve a tested patch for a maintenance-only
13525 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13527 * MAINTAINERS (write-after-approval): Add myself.
13529 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13532 2002-01-08 Michael Snyder <msnyder@redhat.com>
13534 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13535 real name of the executable, rather than the /proc name.
13537 2002-01-03 Michael Snyder <msnyder@redhat.com>
13539 Implement a "generate-core-file" command in gdb, save target state.
13540 * gcore.c: New file. Implement new command 'generate-core-file'.
13541 Save a corefile image of the current state of the inferior.
13542 * linux-proc.c: Add linux-specific code for saving corefiles.
13543 * target.h (struct target_ops): Add new target vectors for saving
13544 corefiles; to_find_memory_regions and to_make_corefile_notes.
13545 (target_find_memory_regions): New macro.
13546 (target_make_corefile_notes): New macro.
13547 * target.c (update_current_target): Inherit new target methods.
13548 (dummy_find_memory_regions): New place-holder method.
13549 (dummy_make_corefile_notes): New place-holder method.
13550 (init_dummy_target): Initialize new dummy target vectors.
13551 * exec.c (exec_set_find_memory_regions): New function.
13552 Allow the exec_ops vector for memory regions to be taken over.
13553 (exec_make_note_section): New function, target vector method.
13554 * defs.h (exec_set_find_memory_regions): Export prototype.
13555 * procfs.c (proc_find_memory_regions): New function, corefile method.
13556 (procfs_make_note_section): New function, corefile method.
13557 (init_procfs_ops): Set new target vector pointers.
13558 (find_memory_regions_callback): New function.
13559 (procfs_do_thread_registers): New function.
13560 (procfs_corefile_thread_callback): New function.
13561 * sol-thread.c (sol_find_memory_regions): New function.
13562 (sol_make_note_section): New function.
13563 (init_sol_thread_ops): Initialize new target vectors.
13564 * inftarg.c (inftarg_set_find_memory_regions): New function.
13565 Allow to_find_memory_regions vector to be taken over.
13566 (inftarg_set_make_corefile_notes): New function.
13567 Allow to_make_corefile_notes vector to be taken over.
13568 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13569 interface layer if not target_has_execution (may be a corefile).
13570 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13571 * config/sparc/sun4sol2.mh: Ditto.
13572 * config/alpha/alpha-linux.mh: Ditto.
13573 * config/arm/linux.mh: Ditto.
13574 * config/i386/x86-64linux.mh: Ditto.
13575 * config/ia64/linux.mh: Ditto.
13576 * config/m68k/linux.mh: Ditto.
13577 * config/mips/linux.mh: Ditto.
13578 * config/powerpc/linux.mh: Ditto.
13579 * config/sparc/linux.mh: Ditto.
13581 2002-01-07 Michael Snyder <msnyder@redhat.com>
13583 * arm-linux-nat.c: Remove references to regcache.c internal data
13584 (registers[] and register_valid[]).
13586 2002-01-07 Michael Snyder <msnyder@redhat.com>
13588 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13589 so that attaching to a pid will automatically read the process's
13590 symbol file and shlibs.
13591 * Makefile.in: Add rule for linux-proc.o.
13592 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13593 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13594 * config/arm/linux.mh: Ditto.
13595 * config/i386/linux.mh: Ditto.
13596 * config/i386/x86-64linux.mh: Ditto.
13597 * config/ia64/linux.mh: Ditto.
13598 * config/m68k/linux.mh: Ditto.
13599 * config/mips/linux.mh: Ditto.
13600 * config/powerpc/linux.mh: Ditto.
13601 * config/sparc/linux.mh: Ditto.
13603 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13605 * win32-nat.c: Add i386-tdep.h dependency.
13607 2002-01-07 Michael Snyder <msnyder@redhat.com>
13609 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13610 instead of bfd_get_arch_size. Don't bail out just because
13611 there's no exec_bfd.
13613 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13614 * p-valprint.c (pascal_object_print_value): Ditto.
13615 * somread.c (som_symtab_read): Ditto.
13616 * symfile.c (simple_free_overlay_region_table): Ditto.
13617 * valops.c (value_assign): Ditto.
13619 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13620 use tilde_expand and strerror for opening save-tracepoints file.
13622 * thread-db.c (thread_db_new_objfile): Indendation fix.
13624 * infptrace.c (GDB_MAX_ALLOCA): New define.
13625 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13626 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13627 can be overridden with whatever value is appropriate to the host).
13628 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13629 alloca to allocate potentially large buffer.
13630 * rs6000-nat.c (child_xfer_memory): Ditto.
13631 * symm-nat.c (child_xfer_memory): Ditto.
13632 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13634 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13636 From Nick Clifton <nickc@redhat.com>
13637 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13639 2002-01-07 Michael Snyder <msnyder@redhat.com>
13641 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13642 Don't use exec_bfd if it's NULL.
13644 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13646 * valops.c (value_arg_coerce): Fix formatting.
13648 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13650 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13651 * gnu-nat.c: Ditto.
13653 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13655 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13656 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13657 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13658 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13659 z8k-coff have not been multi-arched. Update z8k-coff build
13662 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13664 * MAINTAINERS: Mark a29k target as obsolete.
13665 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13666 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13668 * NEWS: Note that a29k targets are obsolete.
13669 * a29k-tdep.c: Mark as obsolete.
13670 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13671 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13672 a29k-*-vxworks* targets as obsolete.
13673 * remote-adapt.c: Obsolete.
13674 * remote-eb.c: Obsolete.
13675 * remote-mm.c: Obsolete.
13676 * remote-udi.c: Obsolete.
13677 * config/a29k/a29k-udi.mt: Obsolete.
13678 * config/a29k/a29k.mt: Obsolete.
13679 * config/a29k/tm-a29k.h: Obsolete.
13680 * config/a29k/tm-vx29k.h: Obsolete.
13681 * config/a29k/vx29k.mt: Obsolete.
13683 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13685 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13686 with BFD_ENDIAN_BIG.
13688 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13690 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13691 * configure, config.in: Re-generate.
13692 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13693 * defs.h: Do not include <endian.h>.
13695 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13697 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13698 * config.in: Regenerate.
13699 * configure.in: Update copyright years.
13700 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13701 * configure: Regenerate.
13702 * i386bsd-nat.c: Update copyright years.
13703 (fill_gregset): Use regcache_collect.
13704 (fetch_inferior_registers): Only fetch integer registers
13705 if requested to do so. Add support for XMM registers
13706 using PT_GETXMMREGS.
13707 (store_inferior_registers): Only store integer registers
13708 if requested to do so. Add support for XMM registers
13709 using PT_SETXMMREGS.
13710 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13711 (store_inferior_registers): Remove.
13712 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13713 (fetch_elfcore_registers): New function.
13714 (i386nbsd_elfcore_fns): New.
13715 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13716 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13718 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13719 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13720 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13721 * config/i386/tm-nbsd.h: Update copyright years.
13722 (HAVE_SSE_REGS): Define.
13723 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13724 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13725 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13726 (SIGCONTEXT_PC_OFFSET): Remove.
13727 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13729 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13731 * configure.tgt: Remove powerpc-*-macos* target.
13732 * config/m68k/xm-mpw.h: Delete file.
13733 * config/xm-mpw.h: Delete file.
13734 * ser-mac.c: Delete file.
13735 * mpw-make.sed: Delete file.
13736 * mpw-config.in: Delete file.
13737 * mac-xdep.c: Delete file.
13738 * mac-gdb.r: Delete file.
13739 * mac-defs.h: Delete file.
13740 * mac-nat.c: Delete file.
13741 * config/powerpc/macos.mh: Delete file.
13742 * config/powerpc/macos.mt: Delete file.
13743 * config/powerpc/nm-macos.h: Delete file.
13744 * config/powerpc/tm-macos.h: Delete file.
13745 * source.c (openp, open_source_file): Remove obsolete code.
13746 * top.c (gdb_readline): Ditto.
13747 * utils.c (query): Ditto.
13748 * event-top.c (display_gdb_prompt): Ditto.
13749 * Makefile.in (ser-mac.o): Delete obsolete target.
13752 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13754 * defs.h (BIG_ENDIAN): Delete macro definition.
13755 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13756 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13757 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13758 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13759 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13760 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13761 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13762 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13763 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13764 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13765 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13766 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13767 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13768 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13769 * gdbarch.c: Re-generate.
13771 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13773 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13776 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13778 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13780 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13782 * value.h (value_ptr): Delete typedef.
13784 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13786 * i386nbsd-nat.c: Update copyright years.
13787 Include i386-tdep.h.
13789 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13791 * stabsread.c: Update copyright years.
13793 From Debashis Mahata <debashis.mahata@wipro.com>:
13794 (read_struct_fields): Deal with Sun C compiler erroneous stab
13795 output for structs and unions.
13798 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13800 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13803 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13805 * cp-abi.c: Fix whitespace.
13806 (baseclass_offset): New wrapper function.
13807 * cp-abi.h (baseclass_offset): Add prototype.
13808 (struct cp_abi_ops): Add baseclass_offset pointer.
13810 * valops.c (vb_match): Move to...
13811 * gnu-v2-abi.c (vb_match): here.
13812 * valops.c (baseclass_offset): Move to...
13813 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13815 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13817 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13818 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13819 * hpacc-abi.c (init_hpacc_ops): Likewise.
13821 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13823 * valops.c (find_overload_match): Accept obj as a
13824 reference parameter. Update it before returning.
13825 * value.h (find_overload_match): Update prototype.
13826 * eval.c (evaluate_subexp_standard): Pass object to
13827 find_overload_match by reference.
13829 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13831 * valarith.c: Replace value_ptr with struct value pointer. Remove
13832 register attribute from value declarations.
13835 * scm-lang.c (scm_lookup_name): Ditto.
13837 2002-01-03 Michael Snyder <msnyder@redhat.com>
13839 Abstract the functionality of iterating over mapped memory
13840 regions into a general purpose iterator function.
13841 * procfs.c (iterate_over_mappings): New function, general purpose
13842 iterator for memory sections.
13843 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13844 (solib_mappings_callback): New function, callback for above.
13845 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13846 (info_mappings_callback): New function, callback for above.
13848 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13850 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13852 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13853 * i386-tdep.c: Include "elf-bfd.h".
13854 (process_note_abi_tag_sections): New function.
13855 (i386_gdbarch_init): Add code to recognize various OS/ABI
13858 * maint.c (_initialize_maint_cmds): Add missing \ in
13861 For older changes see ChangeLog-2001
13867 version-control: never