1 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
3 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
4 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
6 2002-12-03 H.J. Lu (hjl@gnu.org)
8 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
9 (create_breakpoints): Make sure the addr_string field is not
12 2002-12-03 Andrew Cagney <ac131313@redhat.com>
14 * sparc-nat.c (fetch_inferior_registers)
15 (store_inferior_registers): Add comment on problem of LWP vs
18 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
19 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
20 (lin_lwp_store_registers): Remove.
21 (init_lin_lwp_ops): Use fetch_inferior_registers
22 and store_inferior_registers directly.
23 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
24 (store_inferior_registers): Likewise.
27 2002-12-03 Andrew Cagney <ac131313@redhat.com>
29 * frame.h (get_frame_id): Convert to a function.
30 (null_frame_id, frame_id_p): Declare.
31 (frame_id_eq, frame_id_inner): Declare.
32 (frame_id_build): New function.
33 * frame.c (get_frame_id): Update. Use null_frame_id.
34 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
36 (null_frame_id, frame_id_p): Define.
37 (frame_id_eq, frame_id_inner): Define.
38 (frame_id_build): New function.
39 * varobj.c (varobj_create): Update.
40 (varobj_update): Update.
41 * valops.c (value_assign): Update.
42 (new_root_variable): Update.
43 * infrun.c (save_inferior_status): Update.
44 * breakpoint.c (watch_command_1): Update.
46 2002-12-03 J. Brobecker <brobecker@gnat.com>
48 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
51 2002-12-03 Andrew Cagney <cagney@redhat.com>
53 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
56 * PROBLEMS: Mention PR gdb/725.
58 2002-12-03 Andreas Schwab <schwab@suse.de>
60 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
62 2002-12-02 Adam Fedor <fedor@gnu.org>
63 Klee Dienes <kdienes@apple.com>
65 * objc-lang.c (objc_printstr): Add width arg to match
67 (compare_selectors): Add 'const' to arg types.
68 (compare_classes): Likewise.
69 (find_imps): Cast msym pointer to avoid compiler warning.
70 (print_object_command): Validate the address before
71 passing it to the print routine.
72 (find_objc_msgcall_submethod): Change function argument to
74 * objc-lang.h: Add 'extern' to all function declarations.
75 (value_nsstring): Add declaration.
77 2002-12-02 J. Brobecker <brobecker@gnat.com>
79 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
80 Fixes a build failure on HP/UX.
82 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
84 (hpread_has_name): Advance declaration to avoid a compilation warning.
85 (pst_syms_count): Add missing variable type. By change, the compiler
86 was defaulting to int, which seems a good choice. Fixes a compilation
88 (pst_syms_size): Likewise.
90 2002-12-02 J. Brobecker <brobecker@gnat.com>
92 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
93 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
94 later to set the proper gdbarch methods depending on the osabi.
95 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
97 2002-12-02 J. Brobecker <brobecker@gnat.com>
99 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
100 * osabi.c (gdb_osabi_name): Add strings images for the two new
102 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
104 2002-12-02 Andrew Cagney <ac131313@redhat.com>
106 * MAINTAINERS (Java): Global maintainers are responible for Java.
107 (Past Maintainers): Mention both Anthony Green and Per Bothner as
108 part Java maintainers.
110 2002-12-02 J. Brobecker <brobecker@gnat.com>
112 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
113 Fixes a compilation failure on AiX.
115 2002-12-02 J. Brobecker <brobecker@gnat.com>
117 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
118 why aix-thread.o is not listed.
120 2002-12-01 Andrew Cagney <ac131313@redhat.com>
122 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
123 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
124 * gdbarch.h, gdbarch.c: Re-generate.
125 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
126 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
127 * config/pa/tm-hppa.h, frame.h: Update.
128 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
129 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
130 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
131 * cris-tdep.c, alpha-tdep.c: Update.
132 * frame.c (set_unwind_by_pc, create_new_frame): Use either
133 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
134 (get_prev_frame): Ditto.
136 2002-11-30 Andrew Cagney <cagney@redhat.com>
138 * exec.c (xfer_memory): Replace boolean with int.
139 * p-exp.y: Use 0 instead of false.
140 * corelow.c (gdb_check_format): Change return type to int from
142 * utils.c: Don't include <curses.h> or <term.h> first.
144 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
146 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
147 (m68hc11_register_byte): Remove.
148 (m68hc11_gdbarch_init): Don't set the above.
150 2002-11-29 Andrew Cagney <cagney@redhat.com>
152 * remote-mips.c (mips_initialize): Force a selected frame rebuild
153 by calling get_selected_frame.
154 * ocd.c (ocd_start_remote): Use get_selected frame instead of
155 set_current_frame, create_new_frame, select_frame and
157 * remote-e7000.c (e7000_start_remote): Ditto.
158 * remote-mips.c (common_open): Ditto
159 * remote-rdp.c (remote_rdp_open): Ditto.
161 2002-11-29 Andreas Schwab <schwab@suse.de>
163 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
164 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
165 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
166 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
167 read_memory_unsigned_integer instead of read_memory_integer when
168 dealing with addresses and instruction opcodes.
169 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
170 (m68k_linux_frame_saved_pc): Likewise.
172 2002-11-29 Andrew Cagney <ac131313@redhat.com>
174 * stack.c (selected_frame, select_frame): Move from here ...
175 * frame.c (selected_frame, select_frame): ... to here. Include
177 * Makefile.in (frame.o): Update dependencies.
178 * frame.c (get_selected_frame): New function.
179 * frame.h (get_selected_frame): Declare.
180 (deprecated_selected_frame): Rename selected_frame.
181 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
182 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
183 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
184 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
185 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
186 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
187 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
188 * z8k-tdep.c, cli/cli-cmds.c: Update.
190 2002-11-29 Andrew Cagney <ac131313@redhat.com>
192 * frame.h (get_selected_block): Add comments.
194 2002-11-28 Andrew Cagney <ac131313@redhat.com>
196 * frame.c (pc_notcurrent): New function.
197 (find_frame_sal): New function.
198 * frame.h (find_frame_sal): Declare.
199 (struct symtab_and_line): Add opaque declaration.
200 * stack.c (print_frame_info_base): Use find_frame_sal instead of
203 * ada-lang.c (find_printable_frame): Ditto.
205 2002-11-28 J. Brobecker <brobecker@gnat.com>
207 * configure.in: Check that the pthdebug library is recent enough
208 before enabling thread support on native AiX.
209 * configure: Regenerate.
211 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
212 from the list of object files as it is now appended by configure
213 if thread support is enabled.
214 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
215 if thread support is enabled.
217 2002-11-28 Andrew Cagney <cagney@redhat.com>
219 * stack.c (get_selected_block): In-line get_current_block.
220 * frame.h (get_current_block): Delete declaration.
221 * blockframe.c (get_current_block): Delete function.
223 2002-11-28 Andrew Cagney <ac131313@redhat.com>
225 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
226 USE_GENERIC_DUMMY_FRAMES.
227 * gdbarch.h, gdbarch.c: Regenerate.
228 * valops.c, frame.c: Update.
229 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
230 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
231 * config/pa/tm-hppa.h, blockframe.c: Update.
232 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
233 * m68k-tdep.c, alpha-tdep.c: Ditto.
235 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
236 * mips-tdep.c: Ditto.
238 2002-11-27 Andrew Cagney <ac131313@redhat.com>
240 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
241 (USE_GENERIC_DUMMY_FRAMES): Default to true.
242 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
243 * gdbarch.c, gdbarch.h: Re-generate.
244 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
245 (CALL_DUMMY_LOCATION): Delete macro definition.
246 (PC_IN_CALL_DUMMY): Delete macro definitions.
248 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
249 default is already generic_pc_in_call_dummy.
250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
251 * v850-tdep.c (v850_gdbarch_init): Ditto.
252 * sh-tdep.c (sh_gdbarch_init): Ditto.
253 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
254 * mips-tdep.c (mips_gdbarch_init): Ditto.
255 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
257 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
259 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
260 * avr-tdep.c (avr_gdbarch_init): Ditto.
262 * arm-tdep.c (arm_gdbarch_init): Do not set
263 use_generic_dummy_frames, default is already 1.
264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
265 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
266 * v850-tdep.c (v850_gdbarch_init): Ditto.
267 * sh-tdep.c (sh_gdbarch_init): Ditto.
268 * s390-tdep.c (s390_gdbarch_init): Ditto.
269 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
270 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
271 * mips-tdep.c (mips_gdbarch_init): Ditto.
272 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
274 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
275 * i386-tdep.c (i386_gdbarch_init): Ditto.
276 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
277 * frv-tdep.c (frv_gdbarch_init): Ditto.
278 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
279 * cris-tdep.c (cris_gdbarch_init): Ditto.
280 * avr-tdep.c (avr_gdbarch_init): Ditto.
282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
283 call_dummy_location, default is already AT_ENTRY_POINT.
284 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
285 * v850-tdep.c (v850_gdbarch_init): Ditto.
286 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
287 * sh-tdep.c (sh_gdbarch_init): Ditto.
288 * s390-tdep.c (s390_gdbarch_init): Ditto.
289 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
290 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
291 * mips-tdep.c (mips_gdbarch_init): Ditto.
292 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
294 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
295 * i386-tdep.c (i386_gdbarch_init): Ditto.
296 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
297 * frv-tdep.c (frv_gdbarch_init): Ditto.
298 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
299 * cris-tdep.c (cris_gdbarch_init): Ditto.
300 * avr-tdep.c (avr_gdbarch_init): Ditto.
301 * arm-tdep.c (arm_gdbarch_init): Ditto.
302 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
304 2002-11-28 Andrew Cagney <cagney@redhat.com>
306 * frame.h: Update comments on set_current_frame, create_new_frame,
307 flush_cached_frames, reinit_frame_cache, select_frame and
310 2002-11-27 Andrew Cagney <cagney@redhat.com>
312 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
313 deprecated pc_in_call_dummy function.
314 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
315 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
316 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
317 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
318 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
320 2002-11-26 Martin M. Hunt <hunt@redhat.com>
322 * Makefile.in: Remove Tix dependencies.
323 * acinclude.m4: Ditto.
325 * configure.in: Ditto.
326 * configure: Regenerated.
328 2002-11-26 Andrew Cagney <ac131313@redhat.com>
330 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
331 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
332 * gdbarch.c: Re-generate.
334 2002-11-26 Andrew Cagney <ac131313@redhat.com>
336 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
337 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
338 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
339 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
340 pc_in_call_dummy_at_entry_point.
341 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
342 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
343 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
344 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
345 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
346 pc_in_call_dummy_on_stack.
347 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
348 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
349 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
350 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
351 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
353 2002-11-26 Andrew Cagney <ac131313@redhat.com>
355 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
356 pc_in_call_dummy_before_text_end
357 (deprecated_pc_in_call_dummy_after_text_end): Rename
358 pc_in_call_dummy_after_text_end.
359 (deprecated_pc_in_call_dummy_on_stack): Rename
360 pc_in_call_dummy_on_stack.
361 (deprecated_pc_in_call_dummy_at_entry_point): Rename
362 pc_in_call_dummy_at_entry_point.
363 * m68k-tdep.c (m68k_gdbarch_init): Update.
364 * s390-tdep.c (s390_gdbarch_init): Update.
365 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
366 * vax-tdep.c (vax_gdbarch_init): Update.
367 * sparc-tdep.c (sparc_gdbarch_init): Update.
368 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
369 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
370 * i386-tdep.c (i386_gdbarch_init): Update.
371 * frv-tdep.c (frv_gdbarch_init): Update.
372 * cris-tdep.c (cris_gdbarch_init): Update.
373 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
374 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
375 (deprecated_pc_in_call_dummy_after_text_end)
376 (deprecated_pc_in_call_dummy_on_stack)
377 (deprecated_pc_in_call_dummy_at_entry_point): Update.
378 * alpha-tdep.c (alpha_gdbarch_init): Update.
380 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
382 * acconfig.h (HAVE_PREAD64): Add.
383 * configure.in: Check for pread64.
384 * config.in: Regenerated.
385 * configure: Regenerated.
386 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
387 * linux-proc.c (linux_proc_xfer_memory): New function.
388 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
390 2002-11-25 David Carlton <carlton@math.stanford.edu>
392 * dwarf2read.c (scan_partial_symbols): Descend into namespace
395 2002-11-25 Andrew Cagney <ac131313@redhat.com>
397 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
398 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
400 2002-11-25 Jim Blandy <jimb@redhat.com>
402 * symfile.c (init_objfile_sect_indices): New function.
403 (default_symfile_offsets): Move the section-index-initializing
404 stuff into init_objfile_sect_indices, and call that.
406 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
407 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
409 * symfile.c (syms_from_objfile): Adjust indentation.
411 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
412 || info_verbose isn't true.
414 2002-11-24 Andrew Cagney <ac131313@redhat.com>
416 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
417 default to get_frame_base.
418 * gdbarch.h, gdbarch.c: Regenerate.
419 * arch-utils.c (default_frame_address): Delete function.
420 * arch-utils.h (default_frame_address): Delete declaration
422 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
424 * varobj.c (find_frame_addr_in_frame_chain):
425 Use get_frame_base instead of FRAME_FP,
428 2002-11-19 Andrew Cagney <ac131313@redhat.com>
430 * frame.h (FRAME_FP): Delete macro.
431 (get_frame_base): New function declaration.
432 * frame.c (get_frame_base): New function.
433 (get_frame_id): Use ->frame.
434 (frame_find_by_id): Rewrite to use get_frame_id.
435 * blockframe.c: Use get_frame_base instead of FRAME_FP.
436 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
437 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
438 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
439 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
440 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
441 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
443 2002-11-24 Andrew Cagney <ac131313@redhat.com>
445 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
447 2002-11-24 Andrew Cagney <ac131313@redhat.com>
449 * frame.c (set_unwind_by_pc): Revert change below, use
451 (get_prev_frame): Ditto.
453 2002-11-24 Andrew Cagney <ac131313@redhat.com>
455 * dummy-frame.c (pc_in_dummy_frame): New function.
456 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
457 (find_dummy_frame): Update comment.
458 (generic_pop_current_frame): Use get_frame_type.
459 * dummy-frame.h (pc_in_dummy_frame): Declare.
460 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
461 (create_new_frame): Use pc_in_dummy_frame.
462 (get_prev_frame): Use pc_in_dummy_frame.
463 (frame_saved_regs_register_unwind): Use get_prev_frame.
464 (deprecated_generic_get_saved_register): Use get_prev_frame.
466 2002-11-23 Andrew Cagney <ac131313@redhat.com>
468 * blockframe.c (find_frame_addr_in_frame_chain): Move function
470 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
471 (varobj_create): Note that frame ID should be used.
472 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
474 2002-11-23 Andrew Cagney <ac131313@redhat.com>
476 * breakpoint.c: Include "gdb_assert.h".
477 (deprecated_frame_in_dummy): Assert that generic dummy frames are
479 * Makefile.in (breakpoint.o): Update dependencies.
480 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
481 deprecated_frame_in_dummy.
482 * stack.c (print_frame_info_base): Ditto.
484 (print_frame_info_base): Ditto. Delete dead code.
486 2002-11-23 Andreas Schwab <schwab@suse.de>
488 * Makefile.in (m68k_tdep_h): Define.
489 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
490 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
491 * m68k-tdep.c: Move register number enum ...
492 * m68k-tdep.h: ... to this new file and rename the constants from
493 E_* to M68K_*. All uses changed.
494 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
495 * abug-rom.c: Include "m68k-tdep.h". Use
496 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
497 * cpu32bug-rom.c: Likewise.
498 * dbug-rom.c: Likewise.
499 * m68k-tdep.c: Likewise.
500 * m68klinux-nat.c: Likewise.
501 * remote-est.c: Likewise.
502 * rom68k-rom.c: Likewise.
503 * config/m68k/tm-linux.h: Likewise.
505 2002-11-23 Andrew Cagney <ac131313@redhat.com>
507 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
508 dummy frame initialization code.
509 * mips-tdep.c (mips_gdbarch_init): Ditto.
511 2002-11-22 Christopher Faylor <cgf@redhat.com>
513 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
516 2002-11-22 Andrew Cagney <ac131313@redhat.com>
518 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
519 to default_frame_address.
520 * gdbarch.h, gdbarch.c: Re-generate.
522 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
523 or frame_locals_address to default_frame_address.
524 * m68k-tdep.c (m68k_gdbarch_init): Update.
525 * i386-tdep.c (i386_gdbarch_init): Update.
526 * frv-tdep.c (frv_gdbarch_init): Update.
527 * sh-tdep.c (sh_gdbarch_init): Update.
528 * v850-tdep.c (v850_gdbarch_init): Update.
529 * sparc-tdep.c (sparc_gdbarch_init): Update.
530 * mips-tdep.c (mips_gdbarch_init): Update.
531 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
532 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
535 * cris-tdep.c (cris_frame_args_address): Delete function.
536 (cris_frame_locals_address): Delete function.
537 (cris_gdbarch_init): Do not set frame_args_address or
538 frame_locals_address.
540 2002-11-22 Michael Snyder <msnyder@redhat.com>
542 * thread-db.c (thread_db_load): Tell the user what's going on
543 if dlopen fails on libthread_db.
545 2002-11-23 Andreas Schwab <schwab@suse.de>
547 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
548 invariant return values.
550 2002-11-22 Andreas Schwab <schwab@suse.de>
552 * valops.c (value_slice): Move declaration of `offset' to avoid
555 2002-11-22 Christopher Faylor <cgf@redhat.com>
557 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
558 (struct so_stuff): Add end_addr field.
559 (register_loaded_dll): Calculate and store end address of loaded dll.
560 (solib_address): New function.
561 (child_solib_loaded_library_pathname): Pass carefully constructed
562 section info to safe_symbol_file_add rather than ignoring it.
563 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
565 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
566 (child_create_inferior): Fix a compiler warning.
567 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
568 (solib_address): Declare new function.
570 2002-11-22 Andreas Schwab <schwab@suse.de>
572 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
575 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
577 * maint.c (_initialize_maint_cmds): Fix typo. From
578 Francesco Potorti` <pot@gnu.org>.
580 2002-11-21 Andrew Cagney <cagney@redhat.com>
582 * mips-tdep.c (mips_dump_tdep): Delete references to
583 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
584 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
585 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
586 * printcmd.c (build_address_symbolic): Delete calls to
587 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
588 (address_info): Ditto.
591 2002-11-19 Klee Dienes <kdienes@apple.com>
592 Adam Fedor <fedor@gnu.org>
594 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
595 the ability to explicitly specify the quote characters and word
596 break characters; if NULL is specified for either, use the old
597 behavior of using the characters used by the completer.
598 (skip_chars): New function. Convenience wrapper around
599 skip_quoted_chars to provide the original skip_chars behavior.
600 * completer.h (skip_quoted_chars): Add prototype.
602 2002-11-19 Andrew Cagney <ac131313@redhat.com>
604 Problems reported by Paul Eggert.
605 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
607 2002-11-19 Andreas Schwab <schwab@suse.de>
609 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
610 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
611 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
612 (m68k_linux_frame_saved_pc): Move to ...
613 * m68klinux-tdep.c: ... here. New file.
614 * Makefile.in (m68klinux-tdep.o): Add dependencies.
615 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
617 2002-11-19 Adam Fedor <fedor@gnu.org>
619 * objc-exp.y: Revert to old skip_quoted usage.
621 2002-11-19 Adam Fedor <fedor@gnu.org>
623 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
624 (objc_lang_h): Define.
625 (YYFILES): Add objc-exp.tab.c.
626 (local-maintainer-clean): Remove objc-exp.tab.c.
627 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
629 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
631 * p-exp.y (typecast rule): Add automatic dereference of
632 pascal classes if needed.
633 (THIS): Set current_type.
634 Automatically dereference pascal classes.
635 (typebase rule): Add ^typebase recognition.
637 2002-11-18 Adam Fedor <fedor@gnu.org>
639 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
640 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
641 (op_name): Handle OP_OBJC_SELF.
642 * Makefile.in (expprint.o): Add additional depends.
644 2002-11-18 Adam Fedor <fedor@gnu.org>
646 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
647 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
648 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
649 * objc-exp.y: Likewise.
651 2002-11-18 Adam Fedor <fedor@gnu.org>
653 * gdb/parser-defs.h: (struct objc_class_str): New structure
654 for parsing ObjC classes.
656 2002-11-18 Andrew Cagney <ac131313@redhat.com>
658 * stack.c (frame_relative_level): Copy function from here ...
659 * frame.c (frame_relative_level): ...to here.
661 2002-11-18 Andrew Cagney <ac131313@redhat.com>
663 * frame.h (enum frame_type): Define.
664 (get_frame_type): Declare.
665 (struct frame_info): Add field `type'. Delete field
666 signal_handler_caller.
667 (deprecated_set_frame_signal_handler_caller): Declare.
668 * frame.c (get_frame_type): New function.
669 (deprecated_set_frame_type): New function.
670 (create_new_frame): Set the frame's type.
671 (get_prev_frame): Similar.
672 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
673 * s390-tdep.c: Ditto.
674 * m68klinux-nat.c: Ditto.
675 * ns32k-tdep.c: Ditto.
676 * x86-64-linux-tdep.c: Ditto.
678 * rs6000-tdep.c: Ditto.
679 * ppc-linux-tdep.c: Ditto.
680 * i386-interix-tdep.c: Ditto.
681 * mips-tdep.c: Ditto.
682 * m68k-tdep.c: Ditto.
683 * hppa-tdep.c: Ditto.
684 * ia64-tdep.c: Ditto.
685 * cris-tdep.c: Ditto.
687 * alpha-tdep.c: Ditto.
688 * i386-tdep.c: Ditto.
691 * blockframe.c: Update.
692 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
693 deprecated_set_frame_type instead of signal_handler_caller.
694 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
695 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
696 * breakpoint.h: Delete FIXME suggesting get_frame_type.
698 2002-11-18 Klee Dienes <kdienes@apple.com>
700 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
702 2002-11-18 Klee Dienes <kdienes@apple.com>
704 * buildsym.c (pop_context): Add comment.
706 2002-11-18 Klee Dienes <kdienes@apple.com>
708 * buildsym.h (pop_context): Convert to function, defined in
710 * buildsym.c: Include gdb_assert.h.
711 (pop_context): Implement as C function. Add check for stack
713 * dbxread.c (process_one_symbol): Complain and stop processing
714 that symbol if we are already at the top of the context stack for
715 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
716 when processing N_RBRAC.
718 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
720 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
722 (struct target_waitstatus): Add opaque definition.
723 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
724 * exec.c (init_exec_ops): Likewise.
725 * fork-child.c (clone_and_follow_inferior): Remove.
726 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
727 * inferior.h (clone_and_follow_inferior): Remove prototype.
728 * infrun.c (follow_fork_mode_both): Remove.
729 (follow_fork_mode_kind_names): Remove commented out "both".
730 (follow_inferior_fork): Remove follow_fork_mode_both support.
731 * inftarg.c (child_clone_and_follow_inferior): Remove.
732 (child_post_follow_inferior_by_clone): Remove.
733 (init_child_ops): Don't set to_clone_and_follow_inferior
734 or to_post_follow_inferior_by_clone.
735 * target.c (default_clone_and_follow_inferior): Remove.
736 (cleanup_target): Don't set to_clone_and_follow_inferior
737 or to_post_follow_inferior_by_clone.
738 (find_default_clone_and_follow_inferior): Remove.
739 (init_dummy_target): Don't set to_clone_and_follow_inferior.
740 (debug_to_clone_and_follow_inferior): Remove.
741 (debug_to_post_follow_inferior_by_clone): Remove.
742 (setup_target_debug): Don't set to_clone_and_follow_inferior
743 or to_post_follow_inferior_by_clone.
744 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
745 and to_post_follow_inferior_by_clone.
746 (child_clone_and_follow_inferior): Remove prototype.
747 (child_post_follow_inferior_by_clone): Remove prototype.
748 (target_clone_and_follow_inferior): Remove macro.
749 (target_post_follow_inferior_by_clone): Remove macro.
750 (find_default_clone_and_follow_inferior): Remove prototype.
752 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
754 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
755 inferior_has_vforked, and inferior_has_execd instead of
756 target_has_forked, target_has_vforked, and target_has_execd.
757 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
758 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
759 (CHILD_WAIT): Define.
760 (child_wait): Add prototype.
761 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
763 (hpux_has_vforked): Likewise, from child_has_vforked.
764 (hpux_has_execd): Likewise, from child_has_execd.
765 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
766 (not_same_real_pid, child_wait): New, copied from inftarg.c.
767 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
768 and hpux_has_syscall_event instead of the target hooks.
769 * infrun.c (inferior_has_forked, inferior_has_vforked)
770 (inferior_has_execd): New functions.
771 * inftarg.c (not_same_real_pid): Remove.
772 (child_wait): Remove references to not_same_real_pid,
773 target_has_forked, target_has_vforked, target_has_execd,
774 and target_has_syscall_event.
775 (child_has_forked, child_has_vforked, child_has_execd)
776 (child_has_syscall_event): Remove.
777 (init_child_ops): Remove references to child_has_forked,
778 child_has_vforked, child_has_execd, and child_has_syscall_event.
779 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
780 (hpux_has_vforked): Likewise, from child_has_vforked.
781 (hpux_has_execd): Likewise, from child_has_execd.
782 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
783 * target.c (cleanup_target): Remove references to
784 to_has_forked, to_has_vforked, to_has_execd, and
785 to_has_syscall_event.
786 (update_current_target): Likewise.
787 (setup_target_debug): Likewise.
788 (debug_to_has_forked): Remove.
789 (debug_to_has_vforked): Remove.
790 (debug_to_has_execd): Remove.
791 (debug_to_has_syscall_event): Remove.
792 * target.h (struct target_ops): Remove to_has_forked.
793 to_has_vforked, to_has_execd, and to_has_syscall_event.
794 (child_has_forked, child_has_vforked, child_has_execd)
795 (child_has_syscall_event): Remove prototypes.
796 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
798 (target_has_forked, target_has_vforked, target_has_execd)
799 (target_has_syscall_event): Remove macros.
801 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
803 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
804 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
805 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
806 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
807 * target.c (cleanup_target): Remove reference to
808 to_can_follow_vfork_prior_to_exec.
809 (update_current_target): Likewise.
810 (debug_to_can_follow_vfork_prior_to_exec): Remove.
811 (setup_target_debug): Remove reference to
812 to_can_follow_vfork_prior_to_exec.
813 * target.h (struct target_ops): Remove
814 to_can_follow_vfork_prior_to_exec.
815 (child_can_follow_vfork_prior_to_exec): Remove prototype.
816 (target_can_follow_vfork_prior_to_exec): Remove definition.
817 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
819 * infrun.c (follow_vfork_when_exec): Remove.
820 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
821 (follow_exec): Likewise.
822 (handle_inferior_event): Likewise.
823 (keep_going): Likewise.
825 2002-11-15 Andrew Cagney <cagney@redhat.com>
827 * frame.c (generic_unwind_get_saved_register): Make static.
828 * frame.h (generic_unwind_get_saved_register): Delete declaration.
829 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
830 defaults to generic_unwind_get_saved_register.
831 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
832 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
833 * frv-tdep.c (frv_gdbarch_init): Ditto.
834 * i386-tdep.c (i386_gdbarch_init): Ditto.
835 * s390-tdep.c (s390_gdbarch_init): Ditto.
836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
837 * v850-tdep.c (v850_gdbarch_init): Ditto.
838 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
839 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
840 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
842 2002-11-15 Andrew Cagney <cagney@redhat.com>
844 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
847 2002-11-15 Andrew Cagney <cagney@redhat.com>
849 * frame.h (sigtramp_saved_pc): Delete declaration.
850 * blockframe.c (sigtramp_saved_pc): Delete function.
851 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
852 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
853 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
854 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
856 2002-11-15 Andrew Cagney <ac131313@redhat.com>
858 * frame.c (frame_pc_unwind): New function.
859 (frame_saved_regs_pc_unwind): New function.
860 (frame_register_unwind): Pass unwind_cache instead of
861 register_unwind_cache.
862 (set_unwind_by_pc): Add unwind_pc parameter, set.
863 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
864 (get_prev_frame): Ditto.
865 * frame.h (frame_pc_unwind_ftype): Declare.
866 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
867 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
868 (frame_pc_unwind): Declare.
869 * dummy-frame.c (dummy_frame_pc_unwind): New function.
870 (struct dummy_frame): Add comment mentioning that values are for
872 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
873 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
874 (generic_file_frame_chain_valid): Ditto.
875 * stack.c (frame_info): Ditto.
877 2002-11-15 David Carlton <carlton@math.stanford.edu>
879 * linespec.c (locate_first_half): New function.
880 (decode_line_1): Move code into locate_first_half.
882 2002-11-15 Andrew Cagney <ac131313@redhat.com>
884 * complaints.h: Add comment explaining how to eliminate a
885 deprecated_complain call.
886 * complaints.h: Fix spelling errors.
888 2002-11-15 David Carlton <carlton@math.stanford.edu>
890 * printcmd.c: Remove #include "disasm.h".
892 2002-11-14 Andrew Cagney <ac131313@redhat.com>
894 * frame.h: Move the most relevant interface functions to the start
897 2002-11-14 Andrew Cagney <ac131313@redhat.com>
899 * regcache.h (deprecated_registers): Rename registers.
900 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
901 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
902 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
903 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
904 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
905 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
906 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
907 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
908 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
909 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
910 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
913 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
915 * utils.c (gdb_realpath): Add comment mentioning realpath with a
918 2002-11-13 Andrew Cagney <cagney@redhat.com>
920 * regcache.h (deprecated_read_register_bytes): Rename
922 (deprecated_write_register_bytes): Rename write_register_bytes.
923 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
924 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
925 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
926 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
927 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
928 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
929 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
930 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
931 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
932 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
933 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
934 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
935 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
936 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
938 2002-11-13 Jim Blandy <jimb@redhat.com>
940 * findvar.c (read_var_value): Doc fix.
942 2002-11-13 Andrew Cagney <cagney@redhat.com>
944 * regcache.c (struct regcache): Replace passthough_p with
946 (regcache_xmalloc): Initialize readonly_p.
947 (build_regcache): Initialize readonly_p.
948 (regcache_save): New function.
949 (regcache_restore): New function.
950 (regcache_cpy): Re-implement using regcache_save and
952 (regcache_raw_read): Update.
953 (regcache_cooked_read): When a read-only cache, checked for cached
954 pseudo register values.
955 (regcache_raw_write): Assert that the cache is not read-only.
956 Remove code handling a non-passthrough cache.
957 * regcache.h (regcache_save): Declare.
958 (regcache_restore): Declare.
960 2002-11-13 Andrew Cagney <cagney@redhat.com>
962 * regcache.c (struct regcache_descr): Add fields
963 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
964 (init_legacy_regcache_descr): Compute the size of a cooked
965 register cache and then assign that to sizeof_raw_registers. Set
966 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
967 (init_legacy_regcache_descr): Ditto.
969 2002-11-13 Andrew Cagney <cagney@redhat.com>
971 * regcache.c (register_buffer): Move to near start of file, update
973 (regcache_raw_read): Use.
974 (regcache_raw_write): Use.
975 (struct regcache): Rename raw_registers to registers and
976 raw_register_valid_p to register_valid_p.
977 (regcache_xmalloc): Update.
978 (regcache_xfree): Update.
979 (register_buffer): Update.
980 (regcache_cpy): Update.
981 (regcache_cpy_no_passthrough): Update.
982 (regcache_valid_p): Update.
983 (deprecated_grub_regcache_for_registers): Update.
984 (deprecated_grub_regcache_for_register_valid): Update.
985 (set_register_cached): Update.
986 (regcache_raw_write): Update.
988 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
990 * p-exp.y (name_not_typename): Use copy_name to
991 set current_type variable for fields of THIS.
993 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
995 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
996 * monitor.c (init_base_monitor_ops): Likewise.
997 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
998 * remote-array.c (init_array_ops): Likewise.
999 * remote-e7000.c (init_e7000_ops): Likewise.
1000 * remote-es.c (init_es1800_ops): Likewise.
1001 (init_es1800_child_ops): Likewise.
1002 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1003 * remote-sim.c (init_gdbsim_ops): Likewise.
1004 * remote-st.c (init_st2000_ops): Likewise.
1005 * sol-thread.c (init_sol_core_ops): Likewise.
1006 (init_sol_thread_ops): Likewise.
1007 * v850ice.c (init_850ice_ops): Likewise.
1008 * win32-nat.c (init_child_ops): Likewise.
1009 * wince.c (init_child_ops): Likewise.
1011 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1013 * utils.c (gdb_realpath): Make rp a constant pointer.
1015 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1017 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1018 a constant buffer; cannonicalize_file_name(); realpath() with a
1019 pathconf() defined buffer, xstrdup().
1021 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1023 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1024 to hang2.C; hang3.c to hang3.C.
1026 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1028 * findvar.c (read_var_value): Reenable TLS code.
1030 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1031 Jim Blandy <jimb@redhat.com>
1033 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1034 * target.c (update_current_target): Add
1035 to_get_thread_local_address.
1036 * target.h (to_get_thread_local_address): Export.
1037 (target_get_thread_local_address): Define.
1038 (target_get_thread_local_address_p): Define.
1039 * thread-db.c: Include solib-svr4.h.
1040 (td_thr_tls_get_addr_p): Define.
1041 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1042 (thread_db_get_thread_local_address): New function.
1043 (init_thread_db_ops): Initialize to_get_thread_local_address.
1044 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1045 * configure: Regenerate.
1046 * config.in: Regenerate.
1048 2002-11-11 David Carlton <carlton@math.stanford.edu>
1050 * linespec.c (set_flags): New function.
1051 (decode_line_1): Move code into set_flags.
1053 2002-11-11 David Carlton <carlton@math.stanford.edu>
1055 * linespec.c (decode_line_1): Move chunks of code to separate
1057 (initialize_defaults): New function.
1058 (decode_indirect): New function.
1060 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1062 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1063 instead of void_code_ptr.
1064 (sigtramp_saved_pc): Ditto.
1066 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1069 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1071 * gdbtypes.h (struct main_type): Move artificial flag out of
1072 loc. New member of ``struct field'' named static_kind. Reduce
1073 overloaded meaning of bitsize.
1074 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1075 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1076 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1078 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1080 (template_to_fixed_record_type, template_to_static_fixed_type)
1081 (to_record_with_fixed_variant_part): Likewise.
1082 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1083 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1084 * dwarfread.c (struct_type, enum_type): Likewise.
1085 * hpread.c (hpread_read_enum_type)
1086 (hpread_read_function_type, hpread_read_doc_function_type)
1087 (hpread_read_struct_type): Likewise.
1088 * mdebugread.c (parse_symbol): Likewise.
1090 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1092 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1093 * stack.c (print_frame_info_base): Update.
1094 (print_frame_info_base, frame_info): Update.
1095 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1096 (sparc_frame_saved_pc): Update.
1097 * ada-lang.c (find_printable_frame): Update.
1098 * breakpoint.c (deprecated_frame_in_dummy): Update.
1100 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1102 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1104 (regmap): Extend to cover all registers.
1105 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1106 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1108 (fetch_register, sore_register): Simplify.
1109 (old_fetch_inferior_registers, old_store_inferior_registers):
1111 (cannot_fetch_register, cannot_store_register): Change
1112 implementation to use regmap array to decide which registers
1113 cannot be fetched/stored. This removes $orig_eax from the
1114 registers that cannot be fetched/stored.
1115 (fetch_inferior_registers): Call fetch_register directly instead
1116 of calling old_fetch_inferior_registers.
1117 (store_inferior_registers): Call store_register directly instead
1118 of calling old_store_inferior_registers.
1119 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1120 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1121 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1123 2002-11-09 Klee Dienes <kdienes@apple.com>
1125 * i387-tdep.c (i387_supply_register): When called with NULL as a
1126 buffer, mark the register as not provided (to mirror the behavior
1127 of supply_register).
1128 (i387_supply_fxsave): Ditto.
1129 (i387_supply_fsave): Ditto (inherits the behavior from
1130 i387_supply_register).
1132 2002-11-09 Klee Dienes <kdienes@apple.com>
1134 * blockframe.c (sigtramp_saved_pc): Use
1135 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1136 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1137 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1139 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1141 * frame.c (get_prev_frame): Test prev_p to identify a previously
1142 unwound frame. Initialize prev_p.
1143 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1146 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1148 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1149 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1150 more comments. Zap dead code.
1152 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1154 * infcmd.c (print_vector_info, print_float_info): Move code that
1155 checks whether the target has any registers and whether there is a
1156 selected frame up, such that it is also used if a target provides
1157 multi-arch definitions of these functions.
1159 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1161 * Makefile.in (DESTDIR): Define.
1162 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1165 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1166 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1168 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1170 * i386-linux-tdep.c: Include "reggroups.h".
1171 (i386_linux_register_reggroup_p): New function.
1172 (i386_linux_init_abi): Set register_reggroup_p to
1173 i386_linux_register_reggroup_p.
1174 * i386-tdep.h (i386_register_reggroup_p): Declare.
1175 * i386-tdep.c: Include "reggroups.h".
1176 (i386_init_reggroups): New function.
1177 (i386_add_reggroups): New function.
1178 (i386_register_reggroup_p): New function.
1179 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1180 (_initialize_i386_tdep): Call i386_init_reggroups.
1181 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1184 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1186 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1187 request that's available in *BSD.
1189 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1191 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1194 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1196 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1197 * dummy-frame.c (find_dummy_frame): Rename
1198 generic_find_dummy_frame, make static. Return the dummy frame
1199 instead of the regcache.
1200 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1201 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1202 (dummy_frame_register_unwind): Rename
1203 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1204 * dummy-frame.h (dummy_frame_register_unwind): Rename
1205 generic_call_dummy_register_unwind.
1207 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1209 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1210 except the inclusion of "i386/tm-i386.h", to...
1211 * config/i386/nm-i386v42mp.h: ...here.
1212 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1214 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1216 * Makefile.in (frame.o): Update dependencies.
1217 * blockframe.c (current_frame, frame_obstack_alloc)
1218 (frame_saved_regs_zalloc, get_current_frame)
1219 (set_current_frame, create_new_frame)
1220 (set_unwind_by_pc, get_next_frame)
1221 (flush_cached_frames, reinit_frame_cache)
1222 (frame_saved_regs_register_unwind)
1223 (deprecated_generic_get_saved_register)
1224 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1225 (_initialize_blockframe): Move frame code from here...
1226 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1227 "annotate.h" and "dummy-frame.h".
1228 (_initialize_frame): New function.
1230 2002-11-08 Jim Blandy <jimb@redhat.com>
1232 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1233 when we finish a function a context.
1234 * buildsym.h (outermost_context_p): New macro.
1235 (Bug analyzed by David Edelsohn.)
1237 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1239 * blockframe.c: Include "dummy-frame.h".
1240 (struct dummy_frame, dummy_frame_stack)
1241 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1242 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1243 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1244 (generic_save_call_dummy_addr, generic_pop_current_frame)
1245 (generic_pop_dummy_frame, generic_fix_call_dummy)
1246 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1247 dummy frame code from here...
1248 * dummy-frame.c: ...to here. New file.
1249 * dummy-frame.h: New file.
1250 (generic_call_dummy_register_unwind): Declare.
1251 (generic_find_dummy_frame): Declare.
1252 * Makefile.in (SFILES): Add dummy-frame.c.
1253 (dummy-frame.o): Specify dependencies.
1254 (dummy_frame_h): Define.
1255 (COMMON_OBS): Add dummy-frame.o.
1256 (blockframe.o): Update dependencies.
1258 2002-11-08 Jim Blandy <jimb@redhat.com>
1260 * dwarf2read.c (read_func_scope): Restore local_symbols and
1261 param_symbols after we finish the function context. (Based on a
1262 patch from David Edelsohn.)
1264 2002-11-08 David Carlton <carlton@math.stanford.edu>
1266 * linespec.c (symbol_found): New function.
1267 (minsym_found): New function.
1268 (decode_line_1): Separate out some code into separate functions.
1270 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1272 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1273 the benefit of the interix target.
1274 * i386-tdep.h (i386_frameless_signal_p): Declare.
1276 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1278 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1279 declaration that snuck in from change below.
1281 2002-11-06 Andrew Cagney <cagney@redhat.com>
1283 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1285 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1286 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1287 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1288 (i386_mxcsr_regnum_p): new function. Use instead of
1290 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1291 (i386_sse_regnum_p): Declare.
1292 (i386_mxcsr_regnum_p): Declare.
1293 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1294 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1295 (IS_FP_REGNUM): Update definition.
1296 (IS_FPU_CTRL_REGNUM): Update definition..
1297 (IS_SSE_REGNUM): Update definition..
1298 * i386v-nat.c (register_u_addr): Update.
1299 * go32-nat.c (fetch_register): Update.
1300 (store_register): Update.
1302 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1304 Preparation work to convert the hppa targets to multiarch partial.
1306 * hppa-tdep.c: Add new functions replacing macro bodies from
1307 config/pa/tm-hppa.h. These function will be used to initialize
1308 the gdbarch structure. Import some comments from tm-hppa.h,
1309 and place them where appropriate, to avoid loosing them when
1310 we cleanup this file.
1311 (hppa_reg_struct_has_addr): New function.
1312 (hppa_inner_than): New function.
1313 (hppa_stack_align): New function.
1314 (hppa_pc_requires_run_before_use): New function.
1315 (hppa_instruction_nullified): New function.
1316 (hppa_register_byte): New function.
1317 (hppa_register_virtual_type): New function.
1318 (hppa_store_struct_return): New function.
1319 (hppa_cannot_store_register): New function.
1320 (hppa_frame_args_address): New function.
1321 (hppa_frame_locals_address): New function.
1322 (hppa_smash_text_address): New function.
1323 (hppa_coerce_float_to_double): New function. Requires the inclusion
1326 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1328 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1329 gdbarch-eligible macro to a call to the new associated function
1330 created in hppa-tdep.c.
1331 (INNER_THAN): Likewise.
1332 (STACK_ALIGN): Likewise.
1333 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1334 (INSTRUCTION_NULLIFIED): Likewise.
1335 (REGISTER_BYTE): Likewise.
1336 (REGISTER_VIRTUAL_TYPE): Likewise.
1337 (STORE_STRUCT_RETURN): Likewise.
1338 (CANNOT_STORE_REGISTER): Likewise.
1339 (FRAME_ARGS_ADDRESS): Likewise.
1340 (FRAME_LOCALS_ADDRESS): Likewise.
1341 (SMASH_TEXT_ADDRESS): Likewise.
1342 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1343 (ABOUT_TO_RETURN): Delete, as no longer used.
1345 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1347 * printcmd.c (disassemble_command): Remove obsolete function.
1348 (_initialize_printcmd): Do not create disassemble command here.
1349 * cli/cli-cmds.c (disassemble_command): New function. Implements
1350 disassemble command.
1351 (init_cli_cmds): Create disassemble command here instead.
1353 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1355 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1357 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1359 * regcache.h (regcache_cooked_read_using_offset_hack)
1360 (regcache_cooked_write_using_offset_hack): Delete declarations.
1361 (register_changed): Delete declaration.
1362 * regcache.c (regcache_cooked_read_using_offset_hack)
1363 (regcache_cooked_write_using_offset_hack): Delete functions.
1364 (cooked_xfer_using_offset_hack): Delete function.
1365 (register_changed): Delete function.
1367 2002-11-07 Jim Blandy <jimb@redhat.com>
1369 * macroscope.c: #include "complaints.h".
1370 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1371 but not in the macro table.
1372 * Makefile.in (macroscope.o): Record dependency.
1374 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1376 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1378 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1380 * regcache.c (deprecated_registers_fetched): Update.
1381 * regcache.h (deprecated_registers_fetched): Rename
1383 * remote-vxsparc.c (vx_read_register): Update.
1384 * remote-vxmips.c (vx_read_register): Update.
1385 * remote-vx68.c (vx_read_register): Update.
1386 * irix5-nat.c (fetch_core_registers): Update.
1387 * mipsm3-nat.c (fetch_inferior_registers): Update.
1388 * sun3-nat.c (fetch_inferior_registers): Update.
1389 * symm-nat.c (fetch_inferior_registers): Update.
1390 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1391 (fetch_core_registers): Update.
1392 (fetch_kcore_registers): Update.
1393 * mips-nat.c (fetch_inferior_registers): Update.
1394 * corelow.c (get_core_registers): Update.
1395 * a68v-nat.c (fetch_inferior_registers): Update.
1397 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1399 Put in place the framework necessary for multiarching the hppa targets.
1400 * hppa-tdep.c (hppa_gdbarch_init): New function.
1401 (hppa_dump_tdep): New function.
1402 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1403 tdep structure dumper.
1404 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1405 until the multi-arching conversion has partially been completed.
1407 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1409 * valops.c (value_assign): Merge lval_register case into
1410 lval_reg_frame_relative. Use frame_register and
1411 regcache_cooked_write instead of get_saved_register and
1412 write_register_bytes. After flushing the register cache, try to
1413 re-select the selected frame.
1415 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1417 * regcache.h (deprecated_register_valid): Rename register_valid.
1418 * regcache.c: Update.
1419 * ia64-aix-nat.c: Update.
1420 * i386gnu-nat.c: Update.
1421 * alpha-nat.c: Update.
1422 * sparc-nat.c: Update.
1423 * lynx-nat.c: Update.
1424 * remote-mips.c: Update.
1426 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1428 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1429 to end of file, to be more consistent with the pratice followed
1432 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1434 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1435 (print_float_info): Print registers in float_reggroup.
1436 (print_vector_info): Print registers in vector_reggroup.
1437 (default_print_registers_info): When all, print registers in
1438 all_reggroup. Otherwize, print registers in general_reggroup.
1439 (registers_info): Rewrite. Add support for register groups.
1442 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1444 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1446 (symtab_symbol_info): Remove eons old ifdeffed out code.
1447 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1450 2002-11-06 Theodore A. Roth <troth@openavr.org>
1452 * c-exp.y: Add missing semi-colons.
1453 * f-exp.y: Add missing semi-colons.
1454 * m2-exp.y: Add missing semi-colons.
1455 * p-exp.y: Add missing semi-colons.
1456 Add empty action to start rule to avoid a type clash error when
1457 building with bison >= 1.50.
1459 2002-11-06 Jim Blandy <jimb@redhat.com>
1461 * macrotab.h (struct macro_source_file): Doc fix.
1463 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1465 * varobj.c (child_exists, cplus_number_of_children): Change
1466 STREQ macro references to strcmp.
1467 (cplus_name_of_child): Change code to handle the fact that
1468 fields are not necessarily contiguous with regards to their
1469 access control. This is a fix for PR gdb/792.
1471 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1473 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1474 * gdbarch.h, gdbarch.c: Regnerate.
1475 * frame.h (frame_register): Declare.
1476 * frame.c (frame_register): New function.
1477 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1478 GET_SAVED_REGISTER, otherwize call
1479 generic_unwind_get_saved_register.
1480 (frame_register_read): Use frame_register instead of
1483 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1485 From Jim Ingham <jingham@apple.com>:
1486 * event-top.c (gdb_disable_readline): New function.
1487 (_initialize_event_loop): Move comment.
1489 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1491 * event-loop.c (start_event_loop): Add comment.
1494 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1496 * infcmd.c (default_print_registers_info): Do not call
1497 PRINT_REGISTER_HOOK.
1499 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1501 * sparc-tdep.c (sparc_print_register_hook): Make static.
1502 (sparc_print_registers_info): New function.
1503 (sparc_do_registers_info): New function.
1504 (sparclet_print_registers_info): New function.
1505 (sparclet_do_registers_info): New function.
1506 (do_sparc_print_registers_info): New function.
1507 (sparc_print_registers): New static function, clone of infcmd.c's
1508 default_print_registers_info.
1509 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1510 (sparclet_do_registers_info): Declare.
1511 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1512 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1514 (sparc_do_registers_info): Declare.
1515 (PRINT_REGISTER_HOOK): Delete macro.
1516 (sparc_print_register_hook): Delete declaration.
1518 2002-11-05 David Carlton <carlton@math.stanford.edu>
1520 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1522 (lookup_symbol_aux_local): New function.
1523 (lookup_symbol_aux_symtabs): New function.
1524 (lookup_symbol_aux_psymtabs): New function.
1526 2002-11-05 David Carlton <carlton@math.stanford.edu>
1528 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1529 previous values of 'objfile' and 'block'.
1531 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1533 * values.c (value_change_enclosing_type): Set
1534 enclosing_type field correctly also for the case where
1535 more memory needs to be allocated.
1537 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1539 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1542 * i387-tdep.c (i387_print_float_info): Replace calls to
1543 register_read and deprecated_read_register_gen with calls to
1544 frame_register_read, and make the necessary adjustments to the
1547 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1549 * gdbarch.sh (register_reggroup_p): Allow default value.
1550 * gdbarch.h, gdbarch.c: Regenerate.
1552 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1554 * regcache.h: Add coment indicating replacements for deprecated
1557 2002-11-02 Andrew Cagney <cagney@redhat.com>
1559 * reggroups.h, reggroups.c: New files.
1560 * regcache.c: Include "reggroups.h".
1561 (enum regcache_dump_what): Add `regcache_dump_groups'.
1562 (regcache_dump): Contract size of the "Type" column. When
1563 specified, dump the register's groups.
1564 (maintenance_print_register_groups): New function.
1565 (_initialize_regcache): Add command `maint print register-groups'.
1566 * Makefile.in (COMMON_OBS): Add reggroups.o
1567 (SFILES): Add reggroups.c.
1568 (reggroups_h): Define.
1569 (regcache.o, gdbarch.o): Update dependencies.
1570 (reggroups.o): Specify dependencies.
1571 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1572 Add opaque declaration for `struct reggroup' in generated .h file.
1573 Include "reggroups.h" in generated .c file.
1574 gdbarch.h, gdbarch.c: Re-generate.
1576 2002-11-02 Andrew Cagney <cagney@redhat.com>
1578 * regcache.h (deprecated_read_register_gen): Rename
1580 (deprecated_write_register_gen): Rename write_register_gen.
1581 * i387-tdep.c: Update.
1582 * x86-64-linux-nat.c: Update
1584 * thread-db.c: Update.
1585 * win32-nat.c: Update.
1586 * mips-tdep.c: Update.
1587 * d10v-tdep.c: Update.
1588 * cris-tdep.c: Update.
1589 * remote-sim.c: Update.
1590 * remote-rdi.c: Update.
1591 * remote-rdp.c: Update.
1594 * blockframe.c: Update.
1595 * x86-64-tdep.c: Update.
1596 * xstormy16-tdep.c: Update.
1597 * sh-tdep.c: Update.
1598 * s390-tdep.c: Update.
1599 * rs6000-tdep.c: Update.
1600 * sparc-tdep.c: Update.
1601 * i386-tdep.c: Update.
1602 * dwarf2cfi.c: Update.
1603 * regcache.c: Update.
1605 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1607 New interix-specific files:
1608 * config/i386/nm-interix.h: New file.
1609 * config/i386/interix.mh: New file.
1610 * config/i386/interix.mt: New file.
1611 * i386-interix-nat.c: New file.
1612 * i386-interix-tdep.c: New file.
1614 2002-11-01 Andrew Cagney <cagney@redhat.com>
1616 * frame.h (deprecated_generic_get_saved_register): Rename
1617 generic_get_saved_register.
1618 * blockframe.c (deprecated_generic_get_saved_register): Update.
1619 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1620 (xstormy16_frame_saved_register): Update.
1621 * sh-tdep.c (sh_gdbarch_init): Update.
1622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1623 * ia64-tdep.c (ia64_get_saved_register): Update.
1624 * cris-tdep.c (cris_gdbarch_init): Update.
1625 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1626 * arm-tdep.c (arm_gdbarch_init): Update.
1628 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1630 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1632 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1634 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1635 trampolines in sigaction.
1637 2002-10-31 Andrew Cagney <cagney@redhat.com>
1639 * h8300-tdep.c: Include "gdb_assert.h".
1640 (h8300_print_register): Add gdbarch, file and frame parameters.
1641 Use frame_read_unsigned_register to read the register's value.
1642 Use fprintf_filtered to display output.
1643 (h8300_print_registers_info): Replace h8300_do_registers_info.
1644 (h8300_gdbarch_init): Set print_registers_info.
1646 2002-10-31 Andrew Cagney <cagney@redhat.com>
1648 * frame.c (frame_read_unsigned_register): New function.
1649 (frame_read_signed_register): New function.
1650 * frame.h (frame_read_unsigned_register): Declare.
1651 (frame_read_signed_register): Declare.
1653 2002-10-31 Andrew Cagney <cagney@redhat.com>
1655 * h8500-tdep.c (h8500_print_registers_info): New static function,
1656 clone of infcmd.c's default_print_registers_info.
1657 (h8500_do_registers_info): New funtion.
1658 (h8500_print_register_hook): Rename print_register_hook, make
1661 * config/h8500/tm-h8500.h: Update copyright.
1662 (DEPRECATED_DO_REGISTERS_INFO): Define.
1663 (h8500_do_registers_info: Declare.
1664 (PRINT_REGISTER_HOOK): Delete macro.
1665 (print_register_hook): Delete function.
1667 2002-10-31 Andrew Cagney <cagney@redhat.com>
1669 * z8k-tdep.c (z8k_print_register_hook): Make static.
1670 (z8k_print_registers_info): New static function, clone of
1671 infcmd.c's default_print_registers_info.
1672 (z8k_do_registers_info): New function. Wrap
1673 z8k_print_registers_info.
1674 * config/z8k/tm-z8k.h: Update copyright.
1675 (PRINT_REGISTER_HOOK): Delete macro.
1676 (z8k_print_register_hook): Delete declaration.
1677 (DEPRECATED_DO_REGISTERS_INFO): Define.
1678 (z8k_do_registers_info): Declare.
1680 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1682 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1683 as this is already provided by value.h, and was actually causing
1684 a compilation error because of a conflict in parameter type
1685 declaration due to a missing const keyword.
1686 (low_text_segment_addres): Fix a compilation warning.
1688 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1690 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1691 registers without a name.
1692 (mips_linux_cannot_store_register): Don't store registers without
1695 2002-10-28 David Carlton <carlton@math.stanford.edu>
1697 * symtab.c (find_addr_symbol): Delete. (It was already commented
1699 * symtab.h: Delete prototype for find_addr_symbol.
1701 2002-10-26 Andrew Cagney <cagney@redhat.com>
1703 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1705 gdbarch.h, gdbarch.c: Re-generate.
1706 * infcmd.c (default_print_registers_info): Update reference.
1707 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1708 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1709 * sh-tdep.c (sh_gdbarch_init): Ditto.
1710 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1711 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1713 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1715 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1716 cfi_init_extra_frame_info.
1717 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1718 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1720 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1721 target where necessary. Add more comments and remove the ones
1722 that don't provide any useful information.
1724 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1725 deprecated_read_register_dummy with
1726 frame_unwind_unsigned_register.
1728 * i386-tdep.c (i386_extract_struct_value_address): Use
1729 regcache_raw_read_unsigned instead of
1730 regcache_cooked_read_unsigned since we know that the register
1731 we're reading isn't a pseudo register. Rename variable 'val' into
1732 the more descriptive 'addr'.
1734 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1735 (x86_64_push_return_address): Add comment.
1736 (x86_64_pop_frame): Make static.
1737 (examine_argument): Clarify comment.
1738 (x86_64_skip_prologue): Make prolog_expact variable static.
1740 * dwarf2cfi.c: Fix some formatting problems.
1741 (context_cpy, read_encoded_pointer): Clarify comments.
1743 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1744 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1745 i386 target back into x86_64_gdbarch_init. Add some comments and
1746 remove meaningless ones.
1748 2002-10-25 Andrew Cagney <cagney@redhat.com>
1750 * complaints.h (struct deprecated_complaint): Rename `struct
1752 * complaints.c (complain): Update.
1753 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1754 incorrect comment indicating that "symfile.h" was being included
1755 for the `struct complaint' definition.
1756 * remote-vx.c: Update.
1757 * objc-lang.c: Update.
1758 * xcoffread.c: Update.
1760 * mdebugread.c: Update.
1761 * stabsread.c: Update.
1762 * dwarf2read.c: Update.
1763 * dwarfread.c: Update.
1764 * elfread.c: Update.
1765 * coffread.c: Update.
1766 * stabsread.h: Update.
1767 * dbxread.c: Update.
1768 * buildsym.c: Update.
1769 * gdbtypes.c: Update.
1770 * macrotab.c: Update.
1772 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1774 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1775 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1776 (x86_64_init_abi): ...new function.
1778 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1779 * i386v-nat.c: Include "i386-tdep.h".
1781 2002-10-25 Andrew Cagney <cagney@redhat.com>
1783 * gdbtypes.c (address_space_name_to_int): Update.
1784 (address_space_int_to_name): Update.
1785 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1786 multi-arch predicate.
1787 (address_class_name_to_type_flags): Ditto.
1788 * gdbarch.h, gdbarch.c: Re-generate.
1790 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1792 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1794 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1796 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1798 * symtab.h (INIT_SAL): Delete macro.
1800 * symtab.c (init_sal): New function.
1802 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1803 to init_sal function call.
1804 (find_sal_from_funcs_and_line): Ditto.
1805 (all_sals_for_line): Ditto.
1806 * breakpoint.c (create_internal_breakpoint): Ditto.
1807 (create_fork_vfork_event_catchpoint): Ditto.
1808 (create_exec_event_catchpoint): Ditto.
1809 (parse_breakpoint_sals): Ditto.
1810 (watch_command_1): Ditto.
1811 (handle_gnu_4_16_catch_command): Ditto.
1812 (clear_command): Ditto.
1813 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1814 * infcmd.c (run_stack_dummy): Ditto.
1815 * infrun.c (process_event_stop_test): Ditto.
1816 (check_sigtramp2): Ditto.
1817 (step_over_function): Ditto.
1818 * linespec.c (decode_line_2): Ditto.
1819 (decode_line_1): Ditto.
1820 * source.c (line_info): Ditto.
1821 * symtab.c (find_pc_sect_line): Ditto.
1823 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1825 * dwarf2cfi.c (struct context)
1826 (struct context_reg): Moved to dwarf2cfi.h
1827 (context_alloc, frame_state_alloc, context_cpy):
1828 Made extern instead of static, removed prototypes.
1829 * dwarf2cfi.h (struct context)
1830 (struct context_reg): New, moved from dwarf2cfi.c
1831 (context_alloc, frame_state_alloc, context_cpy):
1833 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1834 Changed from static to extern.
1835 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1836 (LINUX_SIGCONTEXT_FP_OFFSET)
1837 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1838 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1839 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1840 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1841 set_gdbarch_*() calls now use x86-64 specific functions
1842 instead of DWARF2 CFI ones.
1843 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1844 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1845 (x86_64_init_extra_frame_info): New prototypes.
1847 2002-10-23 David Carlton <carlton@math.stanford.edu>
1849 * linespec.c: #include "parser-defs.h".
1850 Delete prototype for find_template_name_end.
1851 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1853 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1855 * NEWS: add recent mi fixes.
1856 * varobj.c (struct varobj): Add new "updated" flag.
1857 (new_variable): Default "updated" flag to 0.
1858 (varobj_set_value): Set "updated" flag to 1 if value
1860 (varobj_update): Check varobj "updated" flag before
1861 comparing old and refreshed values. Fix for
1864 2002-10-23 David Carlton <carlton@math.stanford.edu>
1866 * parse.c (parse_exp_1): Use BLOCK_START.
1867 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1869 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1871 2002-10-23 David Carlton <carlton@math.stanford.edu>
1873 * symtab.c: Delete cplusplus_hint.
1874 Delete prototype for find_template_name_end.
1876 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1878 * symtab.h: Update comment.
1880 2002-10-23 Michael Snyder <msnyder@redhat.com>
1882 * printcmd.c (address_info): Restore quotes in output.
1883 * valops.c (value_of_local): Restore quotes in error message.
1885 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1887 * symtab.c (symbol_demangled_name): New function.
1888 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1889 turning most of it into a function.
1890 (symbol_demangled_name): Export.
1892 2002-10-23 Michael Snyder <msnyder@redhat.com>
1894 * valops.c (value_of_local): Restore quotes in error message.
1896 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1898 * symtab.c (symbol_init_language_specific): New function.
1899 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1900 turning most of it into a function.
1901 (symbol_init_language_specific): Export.
1903 2002-10-23 David Carlton <carlton@math.stanford.edu>
1905 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1906 (dwarf_attr_name): Ditto.
1907 (dwarf_type_encoding_name): Ditto.
1908 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1909 (process_die): Handle DW_TAG_namespace,
1910 DW_TAG_imported_declaration, DW_TAG_imported_module.
1911 (read_namespace): New function.
1913 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1915 * configure.in: Define NEW_PROC_API on Interix too.
1916 * configure: Regenerate.
1918 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1920 * configure: Regenerate using the proper version of autoconf.
1922 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1924 * findvar.c (read_var_value): Temporarily disable TLS code, until
1925 complete TLS support is added.
1927 2002-10-21 Jim Blandy <jimb@redhat.com>
1928 Elena Zannoni <ezannoni@redhat.com>
1930 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1931 for thread local storage locations.
1932 (struct symbol): Add objfile field.
1933 (SYMBOL_OBJFILE): Define.
1934 * dwarf2read.c (is_thread_local): New static variable.
1935 (new_symbol): If variable is in thread local fill in address class
1936 and objfile appropriately.
1937 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1939 * printcmd.c (address_info): Print the information for thread
1940 local storage variable.
1941 * findvar.c (read_var_value): In case of thread local variable,
1942 defer to the target vector code to compute address.
1944 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1946 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1947 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1949 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1951 * symtab.h (address_class): Rename
1952 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1953 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1954 * printcmd.c (address_info): Ditto.
1955 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1957 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1959 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1960 DBREG_DRX macro to acces debug registers.
1962 * Makefile.in (i386obsd-tdep.o): New target.
1964 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1965 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1967 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1968 * config/i386/obsd.mt: New file.
1969 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1970 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1971 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1972 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1973 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1974 * i386obsd-tdep.c: New file.
1976 2002-10-19 Adam Fedor <fedor@gnu.org>
1978 * objc-exp.y (name_not_typename): Fix invalid comment.
1980 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1982 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1983 to allocate partial syms and macro byte caches.
1985 2002-10-18 David Carlton <carlton@math.stanford.edu>
1987 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1989 2002-10-18 Adam Fedor <fedor@gnu.org>
1991 * stabsread.c (find_name_end): New function.
1992 (define_symbol): Use it.
1994 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1996 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1997 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1998 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1999 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2001 2002-10-17 David Carlton <carlton@math.stanford.edu>
2003 * symfile.h: Add opaque declaration for struct obstack.
2004 Declare obsavestring to take a const char *.
2005 * symfile.c (obsavestring): Make first argument a const char *.
2007 2002-10-16 Adam Fedor <fedor@gnu.org>
2009 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2010 names when matching breakpoints in current file.
2012 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2014 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2015 (read_tag_pointer_type): Add address class support.
2016 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2017 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2019 * gdbarch.h, gdbarch.c: Regenerate.
2020 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2021 (make_type_with_address_space, recursive_type_dump): Add address
2023 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2024 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2025 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2027 2002-10-16 Klee Dienes <kdienes@apple.com>
2029 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2030 to get the last character of a char[] buffer, not
2031 name[sizeof(vptr_name)-1].
2033 2002-10-14 Adam Fedor <fedor@gnu.org>
2035 * symtab.h: New objc_specific struct.
2036 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2037 (SYMBOL_DEMANGLED_NAME): Likewise.
2039 2002-10-14 Adam Fedor <fedor@gnu.org>
2041 * symfile.c (init_filename_language_table): Add ObjC file extension.
2043 2002-10-14 Adam Fedor <fedor@gnu.org>
2045 * utils.c (puts_filtered_tabular): New function.
2046 (fprintf_symbol_filtered): Get ObjC demangled name.
2047 * defs.h (puts_filtered_tabular): Declared.
2049 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2051 * c-lang.h (c_type_print_varspec_prefix): Delete.
2052 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2053 ``need_post_space'' parameter. Adjust all callers.
2055 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2057 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2058 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2059 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2060 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2062 2002-10-13 Adam Fedor <fedor@gnu.org>
2064 * source.c (print_source_lines): Update comments.
2066 2002-10-13 Adam Fedor <fedor@gnu.org>
2068 * valops.c (value_of_local): New function.
2069 (value_of_this): Use it.
2070 * value.h (value_of_local): Declared.
2072 2002-10-13 Adam Fedor <fedor@gnu.org>
2074 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2075 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2077 2002-10-12 Adam Fedor <fedor@gnu.org>
2079 * language.c (binop_result_type): Add language_objc to case.
2080 (integral_type): Likewise.
2081 (character_type): Likewise.
2082 (string_type): Likewise.
2083 (boolean_type): Likewise.
2084 (structured_type): Likewise.
2085 (binop_type_check): Likewise.
2087 2002-10-11 Adam Fedor <fedor@gnu.org>
2089 * printcmd.c (address_info): Print 'self' for ObjC.
2091 2002-10-11 Adam Fedor <fedor@gnu.org>
2093 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2096 2002-10-11 Adam Fedor <fedor@gnu.org>
2098 * language.h (CAST_IS_CONVERSION): Add language_objc.
2100 2002-10-11 Adam Fedor <fedor@gnu.org>
2102 * defs.h (enum language): Add language_objc.
2104 2002-10-11 Klee Dienes <kdienes@apple.com>
2106 * corefile.c (read_memory_typed_address): New function.
2107 * gdbcore.h (read_memory_typed_address): Add prototype.
2108 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2109 to read a value destined for a CORE_ADDR, not read_memory_integer.
2110 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2111 (f77_get_dynamic_lowerbound): Ditto.
2113 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2115 * utils.c (string_to_core_addr): After turning string into
2116 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2117 which will do necessary sign-extension, etc.
2119 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2121 * c-exp.y (THIS): Delete token and grammar rule.
2122 (yylex): Don't return THIS.
2123 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2124 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2125 * demangle.c (cplus_markers): Update comment. Put '$'
2126 first. Remove CPLUS_MARKER.
2127 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2128 * jv-exp.y (THIS): Delete token and grammar rule.
2129 (yylex): Don't return THIS.
2130 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2131 * objc-exp.y (THIS): Delete token and grammar rule.
2132 (yylex): Don't return THIS.
2133 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2134 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2135 (read_member_functions): Likewise for opname.
2136 (read_tilde_fields): Use is_cplus_marker.
2138 * defs.h (CPLUS_MARKER): Don't define.
2139 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2140 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2141 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2142 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2143 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2145 * config/i386/tm-i386v4.h: Delete file.
2146 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2147 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2148 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2149 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2150 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2151 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2152 * config/i386/i386v4.mt (TM_FILE): Likewise.
2153 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2155 2002-10-10 Marko Mlinar <markom@opencores.org>
2157 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2158 accidentially not commited 2002-10-09
2159 * gdbarch.h, gdbarch.c: Re-generate.
2161 2002-10-09 Marko Mlinar <markom@opencores.org>
2163 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2164 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2165 * gdbarch.h, gdbarch.c: Re-generate.
2167 2002-10-08 Petr Sorfa <petrs@caldera.com>
2169 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2171 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2172 so we can work on more than one compilation unit at a time. This
2173 helps prepare GDB to handle inter-CU die references.
2174 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2175 the code to be defined before struct comp_unit_head.
2176 (comp_unit_head): Added new members - offset, cu_head,
2177 begin_die, next and dwarf2_abbrevs.
2178 (dwarf2_abbrevs): Removed single static var; now member of
2179 struct comp_unit_head.
2180 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2182 (psymtab_to_symtab_1): Changed to work with the new
2183 struct comp_unit_head.
2184 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2185 constructs the dwarf2_abbrevs[] inside the cu_header.
2186 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2187 dwarf2_abbrev table to clean up.
2188 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2189 handling of dwarf2_abbrevs inside the cu_header.
2190 (read_partial_die): Now supports the call to the new
2191 dwarf2_lookup_abbrev.
2192 (read_full_die): Now supports the call to the new
2193 dwarf2_lookup_abbrev.
2195 2002-10-06 Christopher Faylor <cgf@redhat.com>
2197 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2198 insure that shell variables, such as "transformed_name" are propagated
2199 to later shell statements in rule.
2201 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2203 * config/i386/nm-i386sco.h: Add protection against
2204 multiple-inclusion. Include "i386/nm-i386v.h".
2205 (REGISTER_U_ADDR): Remove define.
2206 (i386_register_u_addr): Remove prototype.
2208 2002-10-04 Michael Snyder <msnyder@redhat.com>
2210 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2211 before treating it as a single-step event.
2213 2002-10-03 Adam Fedor <fedor@gnu.org>
2215 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2216 (objc_demangle): Remove assignment in if statements, Replace
2218 (add_msglist): Likewise.
2219 (end_msglist): Likewise.
2220 (complare_selectors): Likewise.
2221 (selectors_info): Likewise.
2222 (compare_classes): Likewise.
2223 (classes_info): Likewise.
2224 (print_object_command): Likewise.
2225 (find_objc_msgcall_submethod): Replace PTR with void *.
2226 * objc-lang.h: Remove check for __STDC__.
2228 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2230 * ui-out.h (ui_out_field_fmt_int): New prototype.
2231 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2232 of field width and alignment.
2233 * stack.c (print_frame_info_base): When printing frame level, use
2234 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2237 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2239 * MAINTAINERS: Add self to Write After Approval list.
2241 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2243 * infcmd.c (interrupt_target_command_wrapper): Delete.
2244 (interrupt_target_command): Make non static.
2245 (nofp_registers_info): Make static.
2246 * stack.c (return_command_wrapper): Delete.
2247 (return_command): Make non static.
2249 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2251 * event-top.c (gdb_setup_readline): New function. Code moved from
2252 _initialize_event_loop().
2253 (_initialize_event_loop): Call gdb_setup_readline().
2255 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2257 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2258 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2259 * gdbarch.h, gdbarch.c: Re-generate.
2261 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2264 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2266 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2267 of fill_in_vptr_fieldno.
2269 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2271 * inferior.h (registers_info, stepi_command, nexti_command,
2272 continue_command, interrupt_target_command): Export from infcmd.c.
2273 * frame.h (args_info, selected_frame_level_changed_hook,
2274 return_command): Export from stack.c.
2275 * v850ice.c (stepi_command, nexti_command, continue_command): use
2276 prototypes from inferior.h.
2277 * tracepoint.c (registers_info, args_info, locals_info): Use
2278 prototypes from frame.h and inferior.h.
2279 * Makefile.in (mi-main.o): Add dependency on frame.h.
2281 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2283 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2284 value in register 3 adjusted by ppc_gp0_regnum.
2286 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2288 2002-10-02 Marko Mlinar <markom@opencores.org>
2290 * MAINTAINERS: Add myself to the Write After Approval list.
2292 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2294 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2295 of the section for the N64 ABI, fixed.
2297 * config/mips/tm-irix6.h: Include solib.h.
2299 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2301 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2304 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2306 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2307 and that "mi0" syntax has been removed.
2309 2002-09-30 David Carlton <carlton@math.stanford.edu>
2311 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2312 * ppc-sysv-tdep.c: #include "gdb_string.h".
2313 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2316 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2318 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2319 "vrsave"'s register number.
2321 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2323 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2324 use frame_unwind_signed_register to obtain the PC.
2325 (mips_frame_chain): Handle a generic dummy frame.
2326 (mips_init_extra_frame_info): When a generic dummy frame, don't
2327 re-compute the frame base.
2328 (mips_pop_frame): Handle generic dummy frames.
2329 (mips_gdbarch_init): When generic dummy frames, set
2330 use_generic_dummy_frames, push_dummy_frame to
2331 generic_push_dummy_frame, pc_in_call_dummy to
2332 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2333 generic_save_dummy_frame_tos.
2335 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2337 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2338 against TOP when TOP was explictly set.
2339 (generic_push_dummy_frame): Set TOP to zero.
2341 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2343 * event-loop.c (start_event_loop): Rename variable 'result' to
2344 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2346 2002-09-30 Keith Seitz <keiths@redhat.com>
2348 * gdb-events.sh (selected_thread_changed): New event.
2349 * gdb-events.c: Regenerated.
2350 * gdb-events.h: Regenerated.
2352 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2354 * MAINTAINERS: Add self to Write After Approval list.
2356 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2358 * disasm.c: New file.
2359 * disasm.h: New file.
2360 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2361 (compare_lines): Ditto.
2362 (dump_insns): Ditto.
2363 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2365 (do_assembly_only): Ditto.
2366 (do_disassembly): Renamed to gdb_disassembly and moved to
2367 disasm.c. Sdded uiout argument.
2368 * Makefile.in: Add new files. Reorder SFILES list. Update
2369 dependencies. Include libgdb.a later in the insight executable.
2371 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2373 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2374 bfd/elf64-alpha-fbsd.c.
2376 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2378 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2381 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2383 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2385 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2387 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2388 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2389 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2390 (S_msg_sig_post_reply): Ditto.
2392 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2394 * sh-tdep.c (sh_use_struct_convention): Use definition according
2396 (sh_push_arguments): Store in register with correct endianess.
2397 (sh_default_store_return_value): Ditto.
2398 (sh_gdbarch_init): Set sizeof long double to 8.
2400 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2402 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2403 Fix some whitespace problems.
2405 2002-09-27 David Carlton <carlton@math.stanford.edu>
2407 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2408 (mcore-tdep.o): Ditto.
2409 (ns32k-tdep.o): Ditto.
2410 (ns32knbsd-tdep.o): Ditto.
2412 (vax-tdep.o): Ditto.
2413 * cris-tdep.c: #include "gdb_string.h"
2414 * mcore-tdep.c: Ditto.
2415 * ns32k-tdep.c: Ditto.
2416 * ns32knbsd-tdep.c: Ditto.
2418 * vax-tdep.c: Ditto.
2420 2002-09-27 David Carlton <carlton@math.stanford.edu>
2422 * config/djgpp/fnchange.lst: Add entries for
2423 gdb/testsuite/gdb.c++/m-static files.
2425 2002-09-27 Jim Wilson <wilson@redhat.com>
2427 * MAINTAINERS: Add myself to the Write After Approval list.
2429 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2431 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2434 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2436 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2439 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2441 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2442 (rs6000_struct_return_address): Delete variable.
2443 (rs6000_store_struct_return): Update.
2444 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2445 deprecated_extract_struct_value_address.
2446 (rs6000_frame_align): New function.
2447 (rs6000_gdbarch_init): Set frame_align.
2449 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2451 From Grace Sainsbury <graces@redhat.com>:
2452 * Makefile.in (gdbtk-main.o): New target.
2453 (gdb.o): New target.
2455 (main.o): Update dependencies.
2456 (gdb$(EXEEXT)): Add gdb.o.
2457 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2458 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2459 (SUBDIR_GDBTK_CLEAN): Set.
2460 (install-gdbtk): Install the insight binary.
2461 (uninstall-gdbtk): New target.
2462 (all-gdbtk, clean-gdbtk): New rule.
2463 * top.c (use_windows): Default to zero.
2464 * main.c: Include "main.h".
2466 (struct captured_main_args): Delete.
2467 (gdb_main): New function.
2471 2002-09-25 Andrew Cagney <cagney@redhat.com>
2473 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2474 (frame_map_regnum_to_name): New function.
2475 (frame_map_name_to_regnum): New function.
2476 * frame.h (frame_map_name_to_regnum): Declare.
2477 (frame_map_regnum_to_name): Declare.
2478 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2479 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2480 * parse.c: Do not include "builtin-regs.h".
2481 (target_map_name_to_register): Delete function.
2482 (write_dollar_variable): Use frame_map_name_to_regnum.
2483 * parser-defs.h (target_map_name_to_register): Delete declaration.
2484 * expprint.c: Include "frame.h".
2485 (print_subexp): Use frame_map_regnum_to_name.
2486 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2487 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2489 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2491 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2492 wasn't saved, and the next innermost frame is a dummy, return the
2493 dummy frame's link register.
2495 2002-09-24 Jim Blandy <jimb@redhat.com>
2497 Fix from Paul Breed:
2498 * main.c (captured_main): Add a `break' after the case for 'b'.
2500 2002-09-24 Keith Seitz <keiths@redhat.com>
2502 * varobj.c (c_type_of_child): Use get_target_type instead
2503 of TYPE_TARGET_TYPE.
2505 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2507 * source.c (get_current_or_default_source_symtab_and_line): Remove
2509 (set_default_source_symtab_and_line): New function. Attempts to
2510 determine a source file to list lines from if one is not currently
2512 (get_current_source_symtab_and_line): Initialize sal.pc and
2514 (set_current_source_symtab_and_line): Mark argument as const.
2515 * source.h: Update declarations and comments.
2516 * linespec.c (decode_line_1): Replace call to removed routine above.
2517 * stack.c (print_frame_info_base): Ditto.
2518 * cli/cli-cmds.c (edit_command): Ditto.
2519 (list_command): Ditto.
2521 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2523 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2524 sal.pc and sal.end fields.
2525 (get_current_or_default_source_symtab_and_line): Ditto.
2526 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2527 so we do not cause a new source symtab to be searched for (reverting an
2528 unintentional change from the 2002-09-20 patch).
2529 * scm-lang.c (scm_unpac): Ditto.
2531 2002-09-21 Andrew Cagney <cagney@redhat.com>
2533 * complaints.c (symfile_explanations): Remove new-line from
2534 ``isolated_message''.
2535 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2536 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2538 2002-09-20 Nick Clifton <nickc@redhat.com>
2540 * NEWS: Announce that V850EA ISA is no longer supported.
2541 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2543 2002-09-20 David Carlton <carlton@math.stanford.edu>
2545 * Makefile.in (c-lang.o): Correct dependencies.
2546 (utils.o): Gather dependencies.
2548 * c-lang.c: #include "gdb_string.h"
2550 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2552 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2553 * cli/cli-cmds.c (list_command): New function. Implements the new
2555 (_init_cli_cmds): Add new command definition.
2556 * gdb.1: Document edit command.
2557 * doc/gdb.texinfo: Document edit command.
2559 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2561 * source.c: Make global variables current_source_symtab and
2562 current_source_line static.
2563 (list_command): Moved to cli/cli-cmds.c.
2564 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2565 (get_first_line_listed): New accessor function.
2566 (get_lines_to_list): New accessor function.
2567 (get_current_source_symtab_and_line): New function. Retrieves the
2568 position in the source code that we consider current.
2569 (get_current_or_default_source_symtab_and_line): New function.
2570 Like the above but attempts to determine a default position if one
2571 is not currently defined.
2572 (set_current_source_symtab_and_line): New function. Sets the source
2573 code position considered current and returns the previously set one.
2574 (clear_current_source_symtab_and_line): Reset stored information about
2575 a current source line.
2576 (_initialize_source): Remove registration for the "list" command and
2578 * source.h: Add declarations for the new functions above.
2579 * symtab.h: Remove declarations for the global variables mentioned
2581 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2582 obtain current source line.
2583 * linespec.c (decode_line_1): Ditto.
2584 * macroscope.c (default_macro_scope): Ditto.
2585 * scm-lang.c (scm_unpac): Ditto.
2586 * stack.c (print_frame_info_base): Ditto.
2587 * symfile.c (clear_symtab_users): Ditto.
2588 * symtab.c (decode_line_spec): Ditto.
2589 * cli/cli-cmds.c (list_command): Moved here from source.c.
2590 (ambiguous_line_spec): Moved here from source.c.
2591 (_init_cli_cmds): Add definition for "list" and its alias.
2592 * Makefile.in: Update dependencies.
2594 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2596 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2597 with what gcc thinks is correct.
2599 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2601 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2602 multiple register push instruction.
2604 2002-09-19 Jim Blandy <jimb@redhat.com>
2606 Add support for distinct host and target character sets.
2607 * charset.c, charset.h: New files.
2608 * c-exp.y: #include "charset.h".
2609 (yylex): Convert character and string literals to the target
2610 character set, before returning them as the semantic value of the
2612 * c-lang.c: #include "charset.h".
2613 (c_emit_char): Use charset-specific methods to recognize
2614 characters with backslash escape forms, to decide which characters
2615 to print literally and which to print using numeric escape
2616 sequences, and to convert target characters to host characters
2618 * utils.c: #include "charset.h".
2619 (no_control_char_error): New function.
2620 (parse_escape): Use charset-specific methods to recognize
2621 backslash escapes, parse `control character' notation, and convert
2622 characters from the host character set to the target character set.
2623 * configure.in: Set the default host character set.
2624 Check where to find iconv, and what its argument types might be.
2625 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2626 * Makefile.in (SFILES): List charset.c.
2627 (COMMON_OBS): List charset.o.
2628 (charset.o): New rule.
2629 (charset_h): New header dependency variable.
2630 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2631 (LIBICONV): New variable, set by configure.
2632 (CLIBS): Include $(LIBICONV) here.
2633 * aclocal.m4, config.in, configure: Regenerated.
2635 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2637 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2640 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2642 * gdb_mbuild.sh: New file.
2644 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2646 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2648 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2650 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2651 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2652 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2653 valops.c, value.h: Revert previous change.
2655 2002-09-18 Michael Snyder <msnyder@redhat.com>
2657 Preliminary support for Objective-C:
2658 * defs.h (language_objc): New enum value.
2659 (puts_filtered_tabular): Declaration only, exported from utils.c.
2660 (skip_quoted): Delete, declared in completer.h.
2661 * c-exp.y: Include completer.h.
2664 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2665 New operator enum values.
2666 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2667 * language.c (binop_result_type): Handle language_objc case.
2668 (integral_type, character_type, string_type, boolean_type,
2669 structured_type, binop_type_check): Ditto.
2670 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2671 (struct objc_specific): Add to general_symbol_info.
2672 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2673 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2674 * parser-defs.h (struct objc_class_str): New struct type.
2675 (start_msglist, end_msglist, add_msglist): Declaration only,
2676 exported from objc-lang.c.
2677 * value.h (value_of_local, value_nsstring,
2678 call_function_by_hand_expecting_type): Exported from valops.c.
2679 * valops.c (find_function_addr): Export.
2680 (call_function_by_hand_expecting_type): New function.
2681 (value_of_local): New function.
2682 * symfile.c (init_filename_language_table): Add ".m" extension
2684 * utils.c (puts_filtered_tabular): New function.
2685 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2686 (set/show demangle): Extend help-string to refer to ObjC.
2687 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2688 * stabsread.c (symbol_reference_defined): Objective-C symbols
2689 may contain colons: make allowances when scanning stabs strings
2691 (objc_find_colon): New function.
2692 * printcmd.c (address_info): If language == objc then print
2693 "self" instead of "this".
2694 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2695 OP_NSSTRING, and OP_SELF.
2696 (prefixify_subexp): Ditto.
2697 * source.c (print_source_lines): Mention objc in comment.
2698 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2701 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2703 * complaints.h: Update copyright.
2704 (struct complaints): Declare.
2705 (struct complaint): Make `message' constant.
2706 (internal_complaint): Declare.
2707 (complaint): Declare.
2708 (complaint_root): Delete declaration.
2709 (symfile_complaints): Delete declaration.
2710 (struct complaints): Add opaque declaration.
2711 (clear_complaints): Add a complaints parameter.
2712 * complaints.c: Update copyright.
2713 (enum complaint_series): Define.
2714 (complaint_root): Delete.
2715 (struct complaints): Define.
2716 (complaint_sentinel, symfile_complaint_book): New variables.
2717 (symfile_explanations, symfile_complaints): New variables.
2719 (get_complaints): New function.
2720 (vcomplaint): New function.
2721 (complaint): New function.
2722 (internal_complaint): New function.
2723 (complain): Call vcomplain with symfile_complaint.
2724 (clear_complaints): Rewrite.
2725 (_initialize_complaints): Use add_setshow_command.
2726 * Makefile.in (complaints.o): Update dependencies.
2727 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2728 to call to clear_complaints.
2729 (new_symfile_objfile, reread_symbols): Ditto.
2730 (oldsyms_complaint): Delete.
2731 (empty_symtab_complaint, unknown_option_complaint): Delete.
2732 (free_named_symtabs): Use complaint instead of complain.
2734 2002-09-18 Michael Snyder <msnyder@redhat.com>
2736 Contributed by Apple Computer, Inc. Merged with current sources
2737 by Adam Fedor <fedor@doc.com> [cagney].
2739 * objc-lang.c: First clean-up round: comments, indentation.
2740 * objc-lang.h: Ditto.
2741 * objc-lang.y: Ditto.
2743 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2745 * maint.c (maintenance_internal_error): Print the parameter as the
2747 (maintenance_internal_warning): New function.
2748 (_initialize_maint_cmds): Add command `maint internal-warning'.
2750 * defs.h (internal_warning, internal_vwarning): Declare.
2751 * utils.c (struct internal_problem): Define.
2752 (internal_vproblem): New function.
2753 (internal_warning): New function.
2754 (internal_vwarning): New function.
2755 (internal_warning_problem, internal_error_problem): New variables.
2756 (internal_verror): Just call internal_vproblem.
2758 2002-09-18 Michael Snyder <msnyder@redhat.com>
2760 * objc-lang.c: New file, support for Objective-C.
2761 Preliminary check-in, not yet integrated into gdb.
2762 * objc-lang.h: New file.
2763 * objc-exp.y: New file.
2765 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2767 * infrun.c (signal_stop_update): Convert definition to ISO C.
2768 (signal_print_update): Ditto.
2769 (signal_pass_update): Ditto.
2770 * inflow.c (terminal_save_ours): Ditto.
2772 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2775 * config/djgpp/fnchange.lst: Handle name clashes between
2776 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2779 * i386-linux-tdep.h: Fix tipo.
2781 2002-09-18 Adam Fedor <fedor@gnu.org>
2783 * MAINTAINERS: Add myself to the Write After Approval list.
2785 2002-09-18 Jim Blandy <jimb@redhat.com>
2787 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2788 texthigh and textlow to reader-specific structs caused
2789 objfile_relocate to miss them. This is fixable, but the work that
2790 the change was supposed to prepare GDB for never got done anyway.
2792 2002-09-18 David Carlton <carlton@math.stanford.edu>
2794 * MAINTAINERS: Alphabetize Write After Approval list.
2796 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2799 * values.c (value_static_field): Call read_var_value.
2801 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2803 * valops.c (hand_function_call): Align the initial stack pointer
2804 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2805 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2807 * mips-tdep.c (mips_frame_align): New function.
2808 (mips_gdbarch_init): Set frame_align.
2809 * gdbarch.sh (FRAME_ALIGN): New method.
2810 * gdbarch.h, gdbarch.c: Re-generate.
2812 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2814 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2817 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2819 * NEWS: Mention that MIPS $fp behavior changed.
2820 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2821 reference to FP_REGNUM.
2822 (mipsnbsd_cannot_store_register): Ditto.
2823 * mips-linux-nat.c: Update copyright.
2824 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2825 (mips_linux_cannot_store_register): Ditto.
2826 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2827 * config/mips/tm-mips.h: Update copyright.
2828 (FP_REGNUM): Delete macro.
2829 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2830 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2831 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2832 (mips_r3041_reg_names, mips_r3051_reg_names)
2833 (mips_r3081_reg_names): Replace "fp" with "".
2836 2002-09-17 Theodore A. Roth <troth@verinet.com>
2838 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2839 generic_read_register_dummy() (PR gdb/703).
2840 (avr_push_return_address): #if 0 out unused vars.
2841 (avr_gdbarch_init): Enable use of avr_push_return_address().
2843 2002-09-17 Michael Snyder <msnyder@redhat.com>
2845 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2846 RTE will take care of it.
2848 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2850 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2851 invalid, return SP_REGNUM.
2853 2002-09-17 Michael Snyder <msnyder@redhat.com>
2855 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2856 point registers without sign extension.
2858 2002-09-17 Andrew Cagney <cagney@redhat.com>
2860 * blockframe.c (deprecated_read_register_dummy): Rename
2861 generic_read_register_dummy.
2862 * frame.c (frame_unwind_signed_register): New function.
2863 (frame_unwind_unsigned_register): New function.
2864 * frame.h (frame_unwind_signed_register): Declare.
2865 (frame_unwind_unsigned_register): Declare.
2866 (deprecated_read_register_dummy): Rename
2867 generic_read_register_dummy.
2869 * h8300-tdep.c (h8300_frame_chain): Update.
2870 (h8300_frame_saved_pc): Update.
2871 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2872 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2873 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2874 (s390_frame_chain): Update.
2875 * v850-tdep.c (v850_find_callers_reg): Update.
2876 (v850_frame_saved_pc): Update.
2877 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2878 (m32r_find_callers_reg): Update.
2879 (m32r_frame_saved_pc): Update.
2880 * sh-tdep.c (sh_find_callers_reg): Update.
2881 (sh64_get_saved_pr): Update.
2882 (sh_init_extra_frame_info): Update.
2883 (sh_init_extra_frame_info): Update.
2884 (sh64_init_extra_frame_info): Update.
2885 (sh64_init_extra_frame_info): Update.
2886 * mcore-tdep.c (mcore_find_callers_reg): Update.
2887 (mcore_frame_saved_pc): Update.
2888 (mcore_init_extra_frame_info): Update.
2889 * i386-tdep.c (i386_frame_saved_pc): Update.
2890 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2891 (ia64_init_extra_frame_info): Update.
2892 (ia64_init_extra_frame_info): Update.
2893 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2894 * cris-tdep.c (cris_init_extra_frame_info): Update.
2895 * avr-tdep.c (avr_frame_chain): Update.
2896 (avr_init_extra_frame_info): Update.
2897 (avr_frame_saved_pc): Update.
2898 * arm-tdep.c (arm_find_callers_reg): Update.
2899 (arm_init_extra_frame_info): Update.
2900 (arm_frame_saved_pc): Update.
2902 2002-09-17 Tom Tromey <tromey@redhat.com>
2904 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2907 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2909 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2910 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2912 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2915 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2917 * osfsolib.c: Remove file, replaced by solib-osf.c.
2918 * Makefile.in: Remove compilation rules for osfsolib.c.
2920 2002-09-16 David Carlton <carlton@math.stanford.edu>
2922 * cp-valprint.c (cp_print_class_method): Correct args to
2923 check_stub_method_group.
2925 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2927 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2928 `set architecture'. Unify naming convention of functions.
2929 (h8300_skip_prologue): Improve prologue analysis.
2930 (h8300_push_arguments): Rewritten to more closely match GCC's
2931 bizarre argument-passing behavior, along with the comment describing
2933 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2934 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2935 sim, remote-e7000.c, remote-hms.c and remote.c
2937 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2939 * i386-tdep.c (gdb_print_insn_i386): Removed.
2940 (i386_print_insn): New function.
2941 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2942 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2945 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2947 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2950 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2952 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2953 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2954 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2956 2002-09-13 Christopher Faylor <cgf@redhat.com>
2958 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2960 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2962 * gdbtypes.c (check_stub_method): Make static.
2963 (check_stub_method_group): New function.
2964 * gdbtypes.h: Update prototypes.
2965 * cp-support.c: New file.
2966 * cp-support.h: New file.
2968 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2969 (update_method_name_from_physname): New function.
2970 (read_member_functions): Correct method names for operators
2971 and v3 constructors/destructors. Separate v2 constructors and
2973 * Makefile.in (stabsread.o): Update dependencies.
2974 (SFILES): Add cp-support.c.
2975 (COMMON_OBS): Add cp-support.o.
2976 (cp_support_h, cp-support.o): Add.
2978 * cp-valprint.c (cp_print_class_method): Call
2979 check_stub_method_group instead of check_stub_method. Remove
2981 * p-valprint.c (pascal_object_print_class_method): Likewise.
2982 * valops.c (search_struct_method): Likewise.
2983 (find_method_list, value_struct_elt_for_reference): Likewise.
2985 2002-09-13 Andrew Cagney <cagney@redhat.com>
2987 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2988 * gdbarch.h, gdbarch.c: Regenerate.
2990 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2992 * frame.c (find_saved_register): Delete function.
2993 * frame.h (find_saved_register): Delete declaration.
2996 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2998 * mips-tdep.c (read_next_frame_reg): Re-hack using
2999 frame_register_unwind.
3001 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3003 * mips-tdep.c (mips_get_saved_register): Re-hack using
3004 frame_register_unwind.
3006 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3008 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3009 vector. Will be useful for Interix.
3010 * gdbarch.h, gdbarch.c: Regenerate.
3012 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3013 name of the malloc function by NAME_OF_MALLOC.
3015 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3017 * value.h (find_function_in_inferior): Add const keyword to
3018 one of the parameters. Allows us to invoke this function with
3020 * valops.c (find_function_in_inferior): Likewise.
3022 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3024 * exec.c (xfer_memory): Fix compilation warning with old versions
3026 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3028 2002-09-12 David Carlton <carlton@math.stanford.edu>
3030 * symtab.h: Run through gdb_indent.h.
3031 Add 2002 to Copyright year list.
3033 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3035 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3037 * MAINTAINERS: Add myself to write after approval list.
3039 2002-09-11 J. Brobecker <brobecker@gnat.com>
3041 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3043 2002-09-11 J. Brobecker <brobecker@gnat.com>
3045 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3048 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3050 * procfs.c (do_detach): Clear current signal, not just fault.
3051 Corrects problem with breakpoint trap signal leaking to detached
3054 2002-09-10 Michael Snyder <msnyder@redhat.com>
3056 * buildsym.c (finish_block): Protect against null pointer.
3058 2002-09-10 Andrew Cagney <cagney@redhat.com>
3060 * infcmd.c (default_print_registers_info): Send all output to
3061 ``file'' instead of ``gdb_stdout''.
3063 2002-09-10 Michael Snyder <msnyder@redhat.com>
3065 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3066 LONGEST, and use signed register read (addresses are sign-
3069 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3071 * event-loop.c (gdb_do_one_event): Make public.
3072 * event-loop.h (gdb_do_one_event): Declare.
3074 2002-09-10 Jeff Law <law@redhat.com>
3076 * infttrace.c (child_resume): Simplify and rework to avoid
3079 2002-09-09 Fred Fish <fnf@intrinsity.com>
3081 * printcmd.c (print_scalar_formatted): "len" is the number of
3082 target bytes, NOT the number of target bits.
3084 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3086 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3087 * top.c (init_main): Set rl_terminal_name.
3089 2002-09-08 Aidan Skinner <aidan@velvet.net>
3091 * ada-lang.c (ada_array_bound, ada_type_match,
3092 _initialize_ada_language): Fix K&R definitions.
3093 * ada-tasks.c (get_current_task): Fix K&R definitions.
3094 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3096 2002-09-07 Christopher Faylor <cgf@redhat.com>
3098 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3101 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3103 * i386-tdep.c (i386_register_virtual_type,
3104 i386_register_convertible, i386_register_convert_to_virtual,
3105 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3106 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3107 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3108 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3109 Don't set push_arguments twice.
3111 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3112 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3113 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3114 sigtramp_end to NULL.
3115 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3117 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3119 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3122 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3123 * gdbarch.h, gdbarch.c: Re-generate.
3124 * blockframe.c (find_pc_sect_partial_function): Convert to use
3125 SIGTRAMP_START_P predicate.
3127 2002-09-05 Michael Snyder <msnyder@redhat.com>
3129 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3130 generic_dummy_frame method and old method. Also distinguish
3131 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3132 (arm_extract_return_value): Use new regcache method.
3134 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3135 adjustment that doesn't conform to the ABI.
3136 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3137 saved regcache, not from current regcache.
3139 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3141 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3144 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3146 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3147 if arm_apcs_32 is false.
3149 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3151 GDB 5.3 branch created.
3153 2002-09-03 Theodore A. Roth <troth@verinet.com>
3155 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3156 generic_unwind_get_saved_register.
3158 2002-09-03 David Carlton <carlton@math.stanford.edu>
3160 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3161 argument (PR gdb/653). Update call to smash_to_method_type.
3162 (read_structure_scope): Update call to dwarf2_add_member_fn.
3164 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3166 * x86-64-linux-tdep.c: Include gdb_string.h
3167 * x86-64-linux-nat.c: Ditto.
3169 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3171 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3172 when YYDEBUG is set to 1.
3173 * c-exp.y: Likewise.
3174 * f-exp.y: Likewise.
3175 * jv-exp.y: Likewise.
3176 * m2-exp.y: Likewise.
3177 * p-exp.y: Likewise.
3179 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3181 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3183 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3184 solib_svr4_fetch_link_map_offsets to
3185 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3186 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3187 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3188 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3189 solib-svr4.o, and solib-legacy.o.
3190 * config/i386/tm-nbsd.h: Include solib.h.
3192 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3194 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3195 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3196 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3197 comment noting that this needs its own target configuration.
3198 * config/i386/nbsd.mt: New file.
3199 * config/i386/nbsdaout.mt: Remove.
3200 * config/i386/nbsdelf.mt: Ditto.
3201 * config/i386/tm-nbsdaout.h: Ditto.
3203 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3205 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3206 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3207 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3209 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3210 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3211 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3213 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3215 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3216 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3217 * i386-tdep.h (i386bsd_init_abi): New prototype.
3218 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3219 function declaration.
3220 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3221 for NetBSD-a.out or NetBSD-ELF.
3222 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3223 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3224 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3225 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3227 (i386nbsd_pc_in_sigtramp): New function.
3228 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3229 i386nbsd_pc_in_sigtramp.
3230 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3231 and i386nbsdelf_init_abi OS ABI handlers.
3232 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3233 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3235 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3237 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3238 registers if the target really has them.
3240 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3242 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3245 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3247 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3249 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3250 (alphanbsd_skip_sigtramp_frame): New functions.
3251 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3252 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3253 to alphanbsd_sigcontext_addr.
3255 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3257 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3259 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3260 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3261 nbsd_pc_in_sigtramp.
3262 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3263 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3264 * nbsd-tdep.c: Include gdb_string.h.
3265 (nbsd_pc_in_sigtramp): New function.
3266 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3267 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3268 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3269 ppcnbsd_pc_in_sigtramp.
3270 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3271 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3272 shnbsd_pc_in_sigtramp.
3273 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3274 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3275 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3277 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3279 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3280 watchpoints to NULL.
3281 (insert_breakpoints): set val field of watchpoints if NULL.
3284 2002-08-29 Jim Blandy <jimb@redhat.com>
3286 * symtab.c (lookup_symbol_aux): In the cases where we find a
3287 minimal symbol of an appropriate name and use its address to
3288 select a symtab to read and search, use `name' (as passed to us)
3289 as the demangled name when searching the symtab's global and
3290 static blocks, not the minsym's name.
3292 2002-08-29 Keith Seitz <keiths@redhat.com>
3294 * stack.c (print_frame_info_base): Always set current_source_symtab
3295 and current_source_line.
3297 2002-08-29 Donn Terry <donnte@microsoft.com>
3299 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3301 2002-08-28 Keith Seitz <keiths@redhat.com>
3303 * stack.c (select_frame): Add FIXME concerning selected-frame
3305 (select_frame_command): Send selected-frame-level-changed
3306 event notification, but only if the level actually changed.
3307 (up_silently_base): Add selected-frame-level-changed event
3309 (down_silently_base): Likewise.
3311 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3313 * Makefile.in: Update dependencies for all gdb/*.c files.
3315 2002-08-27 Tom Tromey <tromey@redhat.com>
3317 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3318 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3319 Update dependencies.
3320 * i387-tdep.c: Include gdb_string.h.
3321 * osabi.c: Likewise.
3322 * i386-linux-nat.c: Likewise.
3323 * lin-lwp.c: Likewise.
3324 * ax-gdb.c: Likewise.
3325 * signals/signals.c: Likewise.
3326 * jv-valprint.c: Likewise.
3327 * p-lang.c: Likewise.
3328 * c-valprint.c: Likewise.
3329 * cp-abi.c: Likewise.
3331 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3333 * cli/cli-script.h (copy_command_lines): Export.
3334 * breakpoint.c: Include cli/cli-script.h.
3335 * Makefile.in (breakpoint.o): Update dependencies.
3337 2002-08-26 Michael Snyder <msnyder@redhat.com>
3339 * breakpoint.c (insert_breakpoints): Protect all references
3340 to 'process_warning'. Shorten long lines.
3342 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3344 * cli/cli-script.c (copy_command_lines): New function.
3345 * defs.h (copy_command_lines): Export.
3346 * testsuite/gdb.base/commands.exp: New tests for commands
3347 attached to a temporary breakpoint, and for commands that
3348 delete the breakpoint they are attached to.
3350 2002-08-26 Michael Snyder <msnyder@redhat.com>
3352 * breakpoint.c (bpstat_stop_status): Instead of copying the
3353 pointer to the breakpoint commands struct, make a new copy
3354 of the struct and point to that.
3355 (bpstat_clear): Free the commands struct.
3356 (bpstat_clear_actions): Free the commands struct.
3357 (bpstat_do_actions): Free the command actions. Also execute
3358 the local cleanups, instead of deleting them.
3359 (delete_breakpoint): Leave the commands field of the bpstat
3360 chain alone -- it will be freed later.
3362 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3364 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3365 deleted in 2002-08-20 commit. This function is still used by
3368 2002-08-26 Keith Seitz <keiths@redhat.com>
3370 * gdb-events.sh: Add selected-frame-level-changed event.
3371 * gdb-events.c: Regenerated.
3372 * gdb-events.h: Regenerated.
3374 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3377 * inflow.c (terminal_save_ours): New function to save terminal
3379 * inferior.h (terminal_save_ours): Declare.
3380 * target.c (debug_to_terminal_save_ours): New function.
3381 (cleanup_target): Defaults to_terminal_save_ours.
3382 (update_current_target): Inherit to_terminal_save_ours.
3383 (setup_target_debug): Set to_terminal_save_ours.
3384 * target.h (target_terminal_save_ours): New to save terminal settings.
3385 (target_ops): New member to_terminal_save_ours.
3386 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3387 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3388 * inftarg.c (init_child_ops): Likewise.
3389 * m3-nat.c (init_m3_ops): Likewise.
3390 * procfs.c (init_procfs_ops): Likewise.
3391 * wince.c (init_child_ops): Likewise.
3392 * win32-nat.c (init_child_ops): Likewise.
3393 * sol-thread.c (init_sol_thread_ops): Likewise.
3395 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3397 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3398 use regcache_* functions.
3399 (i386_gdbarch_init): Set store_return_value instead of
3400 deprecated_store_return_value.
3402 * regcache.c (regcache_raw_write_signed,
3403 regcache_raw_write_unsigned): New functions.
3404 * regcache.h (regcache_raw_write_signed,
3405 regcache_raw_write_unsigned): New prototypes.
3407 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3409 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3410 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3411 source file dependencies. Cleanup corresponding generator rules.
3413 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3415 * regcache.h (register_offset_hack): Declare.
3416 (regcache_cooked_read_using_offset_hack): Declare.
3417 (regcache_cooked_write_using_offset_hack): Declare.
3419 * regcache.c (register_offset_hack): New function.
3420 (regcache_cooked_read_using_offset_hack): New function.
3421 (regcache_cooked_write_using_offset_hack): New function.
3422 (regcache_dump): Check that the registers, according to their
3423 offset, are packed hard against each other.
3424 (cooked_xfer_using_offset_hack): New function.
3426 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3428 * regcache.c (struct regcache_descr): Add field register_type.
3429 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3431 (init_regcache_descr): Initialize register_type. Pass the descr
3432 to init_legacy_regcache_descr. Use register_type instead of
3433 REGISTER_VIRTUAL_TYPE.
3434 (register_type): New function.
3435 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3436 * regcache.h (register_type): Declare.
3438 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3440 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3441 instead of deprecated_store_return_value. Fix fallout from
3442 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3444 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3446 * regcache.c (max_register_size): New function.
3447 (init_legacy_regcache_descr): Ensure that max_register_size is
3448 large enough for REGISTER_VIRTUAL_SIZE.
3449 * regcache.h (max_register_size): Declare.
3451 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3453 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3455 (e500_extract_return_value): Change type of valbuf pointer to
3458 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3460 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3463 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3464 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3465 long long) to prevent compiler warning on 64-bit systems.
3467 2002-08-23 Andrew Cagney <cagney@redhat.com>
3469 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3470 (DEPRECATED_STORE_RETURN_VALUE): New method.
3471 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3472 * gdbarch.h, gdbarch.c: Re-generate.
3474 * values.c (set_return_value): Pass current_regcache to
3476 * arch-utils.h (legacy_store_return_value): Declare.
3477 * arch-utils.c (legacy_store_return_value): New function.
3478 (legacy_extract_return_value): Update parameters.
3480 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3482 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3483 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3484 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3485 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3486 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3487 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3488 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3489 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3490 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3491 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3494 * i386-tdep.c (i386_extract_return_value): Update.
3495 * arch-utils.c (legacy_extract_return_value): Update.
3496 * frv-tdep.c (frv_gdbarch_init): Update.
3497 * cris-tdep.c (cris_gdbarch_init): Update.
3498 * d10v-tdep.c (d10v_gdbarch_init): Update.
3499 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3500 * m68k-tdep.c (m68k_gdbarch_init): Update.
3501 * mcore-tdep.c (mcore_gdbarch_init): Update.
3502 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3503 * s390-tdep.c (s390_gdbarch_init): Update.
3504 * sparc-tdep.c (sparc_gdbarch_init): Update.
3505 * sh-tdep.c (sh_gdbarch_init): Update.
3506 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3507 * v850-tdep.c (v850_gdbarch_init): Update.
3508 * avr-tdep.c (avr_gdbarch_init): Update.
3509 * ia64-tdep.c (ia64_gdbarch_init): Update.
3510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3511 * vax-tdep.c (vax_gdbarch_init): Update.
3512 * alpha-tdep.c (alpha_gdbarch_init): Update.
3513 * arm-tdep.c (arm_gdbarch_init): Update.
3514 * mips-tdep.c (mips_gdbarch_init): Update.
3515 * i386-tdep.c (i386_gdbarch_init): Update.
3517 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3519 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3520 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3522 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3524 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3527 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3529 * infrun.c (handle_inferior_event): Move a comment outside of a
3530 function call, in order to avoid indent reformatting this part
3531 of the code in an unreadable way.
3533 2002-08-23 Grace Sainsbury <graces@redhat.com>
3535 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3536 when breakpoints fail. Move general breakpoint error messages to
3538 * breakpoint.c (insert_breakpoints): Change warnings when
3539 breakpoints are nto inserted to specify the type. Remove call to
3540 memory_error when hardware breakpoints can't be inserted. Remove
3541 multiple calls to warning so all messages are sent to the user at
3543 (delete_breakpoints): Make insert error messsages more explicit.
3545 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3547 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3548 gdbserver/ChangeLog.
3550 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3552 * i386-tdep.c: Include "objfiles.h".
3553 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3554 skip_trampoline_code.
3555 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3556 (CPLUS_MARKER): Define to '.'.
3558 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3560 (linux_corefile_thread_callback): Increase args->num_notes.
3561 (linux_make_note_section): Initialize thread_args.num_notes, and
3562 use it to determine whether notes for any threads were created.
3564 2002-08-23 Donn Terry <donnte@microsoft.com>
3566 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3567 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3569 (write_with_trace): Conditionalize out the switch branch handling
3570 PCSHOLD if the corresponding macro is not defined. Likewise for
3571 PRSABORT and PRSTOP.
3572 This change will be needed by the Interix port.
3574 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3576 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3577 write_register wherever possible instead of manipulating the
3578 register bytes directly.
3579 Assign VALUE_CONTENTS to a variable and use that.
3580 The GPR numbers are now dependent on the architecture.
3582 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3584 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3586 (skip_prologue): Add support for BookE/e500 instructions.
3587 (e500_extract_return_value): New function.
3588 (frame_get_saved_regs): Add support for saving ev registers and
3590 (e500_store_return_value): New function.
3591 (rs6000_gdbarch_init): Move up default intializations of
3592 deprecated_extract_return_value and store_return_value. Overwrite
3593 init of store_return_value with e500 specific version.
3594 Set extract_return_value for e500.
3596 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3598 * blockframe.c (generic_call_dummy_register_unwind): Use
3599 regcache_cooked_read to catch cases in which the variable is
3600 stored in a pseudo register.
3602 2002-08-22 Andrew Cagney <cagney@redhat.com>
3604 * NEWS: Mention that the i960 has been made obsolete.
3605 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3607 (remote-nrom.o): Obsolete target.
3608 (remote-nindy.o, i960-tdep.o): Ditto.
3609 * remote-nrom.c: Make file obsolete.
3610 * remote-nindy.c, remote-vx960.c: Ditto.
3611 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3612 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3613 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3614 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3615 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3616 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3617 i960-*-vxworks* obsolete.
3618 * MAINTAINERS: Note that the i960 is obsolete.
3620 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3622 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3623 detach to allow reinitialization.
3625 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3627 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3630 2002-08-22 Jim Blandy <jimb@redhat.com>
3632 * coffread.c (coff_symfile_read): Don't try to read the line
3633 number table from disk if the image file doesn't have a symbol
3634 table; we'll never actually look at the info anyway, and Windows
3635 ships DLL's with bogus file offsets for the line number data.
3637 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3639 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3642 2002-08-21 Michael Snyder <msnyder@redhat.com>
3644 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3645 (MSYMBOL_SIZE): Replace macro with function.
3646 (DEFAULT_MIPS_TYPE): Delete unused macro.
3647 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3648 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3650 2002-08-21 Jim Blandy <jimb@redhat.com>
3652 * valops.c (value_cast): Simplify and correct logic for doing a
3653 static cast from a pointer to a base class to a pointer to a
3656 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3658 * infcmd.c (default_print_registers_info): Replace
3660 (registers_info): Use gdbarch_print_registers_info instead of
3662 * inferior.h (default_print_registers_info): Replace
3664 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3665 (DO_REGISTERS_INFO): Change to a predicate function.
3666 * gdbarch.h, gdbarch.c: Regenerate.
3668 2002-08-21 Keith Seitz <keiths@redhat.com>
3670 * gdb-events.sh: Add target-changed event.
3671 * gdb-events.c: Regenerated.
3672 * gdb-events.c: Regenerated.
3673 * valops.c (value_assign): Add target-changed event notification
3674 to inlval_register, lval_memory, and lval_reg_frame_relative.
3676 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3678 * NEWS: Add an entry regarding the improvement of the next/step
3679 operation on Alpha Tru64 multi-processor machines.
3681 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3683 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3685 * Makefile.in: Update all _h macro definitions.
3686 * Makefile.in (install-gdbtk): Move to install section.
3687 (rdi-share/libangsd.a): Move to end of file.
3689 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3691 * frame.c (frame_register_unwind): When a register, set addrp to
3692 the register's byte.
3694 2002-08-20 Michael Snyder <msnyder@redhat.com>
3696 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3697 used locally, so move them from the target machine header to here.
3698 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3699 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3701 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3703 2002-08-20 Andrew Cagney <cagney@redhat.com>
3705 * NEWS: Mention that the Apollo line was made obsolete.
3706 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3707 m68*-hp-hpux* obsolete.
3708 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3709 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3710 * buildsym.c (make_blockvector): Make static.
3711 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3712 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3713 (ALLDEPFILES): Remove dstread.c.
3714 (dstread.o): Obsolete make rule.
3715 * dstread.c: Makefile obsolete.
3717 * config/m68k/hp300hpux.mt: Ditto.
3718 * config/m68k/hp300hpux.mh: Ditto.
3719 * config/m68k/hp300bsd.mt: Ditto.
3720 * config/m68k/hp300bsd.mh: Ditto.
3721 * config/m68k/apollo68b.mt: Ditto.
3722 * config/m68k/apollo68v.mh: Ditto.
3723 * config/m68k/apollo68b.mh: Ditto.
3725 2002-08-20 Michael Snyder <msnyder@redhat.com>
3727 * mips-tdep.c (mips_in_return_stub): Make static.
3728 (mips_gdbarch_init): Set in_solib_return_trampoline.
3729 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3731 2002-08-20 Michael Snyder <msnyder@redhat.com>
3733 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3734 * gdbarch.c, gdbarch.h: Regenerate.
3735 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3737 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3739 2002-08-20 Michael Snyder <msnyder@redhat.com>
3741 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3742 (mips_gdbarch_init): Set skip_trampoline_code,
3743 in_solib_call_trampoline.
3744 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3745 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3747 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3749 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3751 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3752 vector type for ev registers.
3753 (e500_pseudo_register_read): New function.
3754 (e500_pseudo_register_write): New function.
3755 (e500_dwarf2_reg_to_regnum): New function.
3756 (PPC_UISA_NOFP_SPRS): New macro.
3757 (PPC_EV_REGS): New macro.
3758 (PPC_GPRS_PSEUDO_REGS): New macro.
3759 (registers_e500): New register set for e500.
3760 (variants): Add e500 variant.
3761 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3762 before setting architectural dependent variations. Initialize ev
3763 registers numbers. Add case for e500 architecture. Set the
3764 number of pseudo registers.
3766 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3768 * rs6000-tdep.c: Clean up comments.
3770 2002-08-20 Andrew Cagney <cagney@redhat.com>
3772 * h8300-tdep.c: Re-indent file.
3774 2002-08-20 Jim Blandy <jimb@redhat.com>
3776 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3779 2002-08-20 Keith Seitz <keiths@redhat.com>
3781 * breakpoints.c (watch_command_1): Use internal breakpoint
3782 when setting a watchpoint_scope breakpoint.
3784 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3786 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3787 (build_builtin_type_vec64i): Ditto.
3788 (build_builtin_type_vec128): Ditto.
3789 (build_builtin_type_vec128i): Ditto.
3791 2002-08-19 Michael Snyder <msnyder@redhat.com>
3793 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3794 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3795 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3796 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3797 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3798 CALL_DUMMY_ADDRESS): Delete.
3799 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3800 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3801 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3802 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3803 push_return_address.
3804 (mips_register_raw_size, mips_eabi_use_struct_convention,
3805 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3806 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3807 mips_init_extra_frame_info, mips_eabi_push_arguments,
3808 mips_n32n64_push_arguments, mips_push_return_address,
3809 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3810 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3812 2002-08-19 Michael Snyder <msnyder@redhat.com>
3814 * mips-tdep.c (mips_frame_num_args): New function.
3815 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3816 frame_saved_pc, frame_args_address, frame_locals_address,
3817 frame_num_args, and frame_args_skip.
3818 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3819 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3820 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3821 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3823 2002-08-20 Michael Snyder <msnyder@redhat.com>
3825 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3826 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3827 * mips-tdep.c (mips_store_struct_return): New function.
3828 (mips_extract_struct_value_address): New function.
3829 (mips_gdbarch_init): Set store_struct_return and
3830 extract_struct_value_address.
3832 2002-08-20 David Carlton <carlton@math.stanford.edu>
3834 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3835 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3836 (read_file_scope): Check that line_header is nonzero before
3837 decoding macro information.
3839 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3841 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3842 flag the general-purpose registers as floating-point on targets
3843 that don't support the floating-point registers.
3845 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3847 * rs6000-tdep.c (altivec_register_p): Delete.
3848 (rs6000_do_altivec_registers): Delete.
3849 (rs6000_altivec_registers_info): Delete.
3850 (rs6000_do_registers_info): Delete.
3851 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3852 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3854 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3856 * infcmd.c (do_registers_info): Print vector registers in hex
3858 (print_vector_info): Check that printing registers
3860 (print_float_info): Ditto.
3862 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3864 * mips-tdep.c (mips_gdbarch_init): Update.
3865 (mips_o32_extract_return_value): Rewrite.
3866 (mips_o32_store_return_value): Rewrite.
3867 (mips_o32_xfer_return_value): New function.
3868 (mips_xfer_register): Tweak debug print message. Allow for
3869 buf_offset when dumping the value transfered.
3871 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3873 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3874 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3875 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3876 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3877 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3879 2002-08-14 Michael Snyder <msnyder@redhat.com>
3881 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3883 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3885 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3887 (P): New macro to define a register as a pseudo register.
3888 (R, R4, R8, R16, FR32, R64, R0): Updated.
3889 (struct variant): Add new fields for number of pseudo registers
3890 and number of total registers.
3891 (tot_num_registers): New macro replacing....
3892 (num_registers): ...deleted macro.
3893 (num_registers): New function.
3894 (num_pseudo_registers): New function.
3895 (variants): Update all variants to intialize new fields correctly.
3896 Postpone initialization of number of pseudo regs and real regs.
3897 (init_variants): New function.
3898 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3901 2002-08-19 David Carlton <carlton@math.stanford.edu>
3903 * valops.c (search_struct_field): Change error message to treat
3904 return value of 0 from value_static_field as meaning that field is
3906 (value_struct_elt_for_reference): Ditto.
3907 * values.c (value_static_field): Treat an unresolved location the
3908 same as a nonexistent symbol. Fix PR gdb/635.
3909 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3910 enclosed. Fix PR gdb/574.
3911 * MAINTAINERS: Add self to Write After Approval list.
3913 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3915 * mips-tdep.c (mips_xfer_register): New function.
3916 (mips_n32n64_extract_return_value): Rewrite.
3917 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3918 instead of deprecated_extract_return_value.
3920 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3922 * rs6000-tdep.c (TDEP): Delete macro.
3923 (branch_dest): Replace use of TDEP macro with its body.
3924 (rs6000_pop_frame): Ditto.
3925 (rs6000_push_arguments): Ditto.
3926 (rs6000_skip_trampoline_code): Ditto.
3927 (rs6000_frame_saved_pc): Ditto.
3928 (rs6000_frame_chain): Ditto.
3929 (rs6000_register_name): Ditto.
3930 (rs6000_register_byte): Ditto.
3931 (rs6000_register_raw_size): Ditto.
3932 (rs6000_register_virtual_type): Ditto.
3933 (rs6000_register_convertible): Ditto.
3934 (rs6000_convert_from_func_ptr_addr): Ditto.
3936 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3938 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3940 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3941 MIPS_LINUX_JB_ELEMENT_SIZE.
3942 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3943 for MAX_REGISTER_RAW_SIZE arrays.
3944 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3945 MIPS_LINUX_JB_ELEMENT_SIZE.
3947 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3949 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3951 2002-08-19 Aidan Skinner <aidan@velvet.net>
3953 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3954 ada-valprint.c ada-tasks.c.
3955 (YYFILES): Add ada-exp.y.
3956 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3957 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3958 (ada-exp.tab.o): New target.
3960 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3962 * regcache.c (regcache_xfer_part): New function.
3963 (regcache_raw_read_part): New function.
3964 (regcache_raw_write_part): New function.
3965 (regcache_cooked_read_part): New function.
3966 (regcache_cooked_write_part): New function.
3967 * regcache.h (regcache_raw_read_part): Declare.
3968 (regcache_raw_write_part): Declare.
3969 (regcache_cooked_read_part): Declare.
3970 (regcache_cooked_write_part): Declare.
3972 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3974 * remote.c (remote_open_1): Add async_p.
3975 (remote_async_open_1): Delete.
3976 (open_remote_target): Delete.
3977 (remote_open, extended_remote_open): Update calls to remote_open_1.
3978 (remote_async_open, extended_remote_async_open): Call
3979 remote_open_1 instead of remote_async_open_1.
3981 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3983 * blockframe.c: Fix a few coding standard violations.
3985 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3987 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3989 * config/i386/tm-i386sco5.h: ... here. File removed.
3990 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3992 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3993 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3994 (TM_FILE): Set to tm-i386.h.
3995 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3996 * config/i386/tm-i386v.h: Remove file.
3997 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3998 instead of "i386/tm-i386v.h".
3999 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4000 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4002 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4003 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4006 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4008 * config/i386/nm-i386v.h: Add protection against
4010 (i386_register_u_addr): Remove prototype.
4011 (register_u_addr): New prototype.
4012 (REGISTER_U_ADDR): Redefine accordingly.
4013 * i386v-nat.c: Improve several comments.
4014 (i386_register_u_addr): Change signature and rename to
4015 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4018 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4020 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4021 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4022 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4023 deprecated_extract_return_value.
4024 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4025 rename mips_o32o64_push_arguments.
4026 (mips_gdbarch_init): Update.
4027 (mips_extract_return_value): Delete.
4028 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4029 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4030 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4031 (mips_n32n64_extract_return_value): Clone
4032 mips_extract_return_value.
4033 (mips_store_return_value): Delete.
4034 (mips_o32_store_return_value): Clone mips_store_return_value.
4035 (mips_o64_store_return_value): Clone mips_store_return_value.
4036 (mips_eabi_store_return_value): Clone mips_store_return_value.
4037 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4039 2002-08-18 Aidan Skinner <aidan@velvet.net>
4041 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4042 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4044 2002-08-18 Aidan Skinner <aidan@velvet.net>
4046 * ada-lang.c: Run through gdb_indent.sh.
4047 * ada-lang.h: Run through gdb_indent.sh.
4048 * ada-tasks.c: Run through gdb_indent.sh.
4049 * ada-typeprint.c: Run through gdb_indent.sh.
4050 * ada-valprint.c: Run through gdb_indent.sh.
4052 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4054 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4057 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4059 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4061 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4062 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4064 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4065 write_register_gen instead of write_register_bytes.
4067 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4068 i[3456]-*-osf1mk* configurations have been made obsolete.
4069 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4070 i[3456]86-*-osf1mk* hosts obsolete.
4071 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4073 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4074 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4075 config/i386/i386m3.mt, config/i386/nm-m3.h,
4076 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4077 config/i386/i386mk.mh, config/i386/i386mk.mt,
4078 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4080 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4081 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4082 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4084 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4086 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4087 (hppa_value_returned_from_stack): Declare.
4088 (hppa_extract_return_value): Declare.
4089 * config/pa/hppa.mt: New file.
4090 * configure.tgt: Recognize hppa*-*-*.
4091 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4093 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4095 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4098 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4100 * top.c (gdb_rl_operate_and_get_next): Make sure
4101 operate-and-get-next functions correctly even when the history
4102 list is completely filled.
4104 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4106 * MAINTAINERS (Target Instruction Set Architectures): Rename
4107 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4108 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4109 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4110 already listed under Host/Native.
4112 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4113 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4116 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4118 * config/ia64/ia64.mt: New file.
4119 * config/alpha/alpha.mt: New file.
4120 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4121 ia64-linux-gnu. Mention that ia64-elf is broken.
4122 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4124 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4126 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4127 generic_func_frame_valid instead of func_frame_valid.
4129 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4131 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4132 procfs appears to be broken when debugging on multi-processor
4133 machines. So enable software single stepping in order to avoid
4134 using the procfs interface to do next/step operations, using
4135 internal breakpoints instead.
4137 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4138 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4139 make this pc address equal to the value it would have if the
4140 system stepping capability was used. Also set a new flag used
4141 to ensure that we don't readjust the PC one more time later.
4143 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4144 address by DECR_PC_AFTER_BREAK when software single step is
4145 in use for this architecture, as this has already been taken
4146 care of in handle_inferior_event().
4148 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4150 * infrun.c (handle_inferior_event): Minor reformatting, to make
4151 a rather long condition expression easier to read.
4153 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4155 * Makefile.in (gdbtk.o): Move to end of file.
4156 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4157 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4158 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4159 (gdbtk-wrapper.o, gdbres.o): Ditto.
4161 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4163 * Makefile.in (copying.o): Separate out compile rule.
4164 (hpux-thread.o, procfs.o, signals.o): Ditto.
4165 (v850ice.o, z8k-tdep.o): Ditto.
4166 (tui-file.o): Move to TUI section.
4167 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4168 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4170 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4172 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4173 skip_trampoline_code, for better namespace-proofing.
4175 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4177 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4179 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4181 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4183 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4184 signal, check whether we hit a breakpoint before checking for a
4185 single step breakpoint. Otherwise, GDB fails to notice that a
4186 breakpoint has been hit when stepping onto a breakpoint.
4188 2002-08-16 Keith Seitz <keiths@redhat.com>
4190 * gdb-events.sh (clear_gdb_event_hooks): New function.
4191 * gdb-events.c: Regenerate.
4192 * gdb-events.h: Regenerate.
4194 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4196 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4197 not_a_sw_breakpoint.
4198 * breakpoint.h (bpstat_stop_status): Add parameter names.
4200 2002-08-16 Grace Sainsbury <graces@redhat.com>
4202 * remote.c (remote_insert_hw_breakpoint)
4203 (remote_remove_hw_breakpoint): Fix calculation of length field
4206 2002-08-15 Michael Snyder <msnyder@redhat.com>
4208 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4209 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4210 (supply_fpregset): Ditto.
4212 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4213 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4214 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4215 (TARGET_READ_SP): Delete.
4216 (DO_REGISTERS_INFO): Delete.
4217 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4219 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4220 from macros to functions.
4222 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4223 (mips_register_convertible, mips_register_convert_to_virtual,
4224 mips_register_convert_to_raw): Make static.
4225 (mips_read_sp): New function.
4226 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4227 (mips_do_registers_info): Make static.
4228 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4229 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4230 (mips_register_convert_from_type, mips_register_convert_to_type):
4232 (mips_gdbarch_init): Set up function_start_offset,
4233 register_virtual_size, pc_in_sigtramp.
4235 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4237 * infcmd.c (vector_info): New function.
4238 (_initialize_infcmd): Add command "info vector".
4239 (print_vector_info): New function.
4241 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4242 * gdbarch.h, gdbarch.c: Regenerate.
4244 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4246 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4247 ``print_all''. Only print vector registers when ``print_all''.
4249 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4251 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4252 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4254 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4255 Add `args' parameter.
4256 * gdbarch.h, gdbarch.c: Regenerate.
4258 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4260 * infcmd.c (float_info): Call print_float_info.
4261 (print_float_info): New function. By default, print the
4262 floating-point registers.
4264 * arch-utils.h (default_print_float_info): Delete declaration.
4265 * arch-utils.c (default_print_float_info): Delete function.
4267 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4269 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4272 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4275 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4276 * configure.host: Make i[3456]86-*-aix host obsolete.
4277 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4278 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4279 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4280 config/i386/xm-i386aix.h: Make files obsolete.
4281 * i386aix-nat.c: Make file obsolete.
4282 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4283 (i386aix-nat.o): Make target obsolete.
4285 * config/i386/nm-gnu.h: Removed.
4286 * config/i386/nm-i386gnu.h: New file.
4287 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4288 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4290 * config/i386/tm-i386gnu.h: ... here. Removed.
4291 * config/i386/xm-i386gnu.h: Removed.
4292 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4293 (NAT_FILE): Set to nm-i386gnu.h.
4294 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4295 * i386-tdep.c: New file.
4296 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4297 (i386gnu-tdep.o): Specify dependencies.
4299 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4301 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4302 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4303 Adjust a few comments to reflect reality a bit closer.
4304 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4305 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4306 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4307 target_insert_watchpoint, target_remove_watchpoint):
4309 * config/i386/nm-i386sco5.h: ... here.
4310 (kernel_u_size): Add prototype. Improve a few comments and add
4311 protection against multiple inclusion.
4313 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4316 * uw-thread.c (SP_ARG0): Define if not already defined.
4317 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4319 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4321 * config/i386/tm-i386.h: Don't include "regcache.h".
4323 * i387-tdep.h (i387_print_float_info): New prototype.
4324 * i387-tdep.c (print_i387_value, print_i387_ext,
4325 print_i387_status_word, print_i387_control_word): Add `struct
4326 ui_file *' argument and use it for output.
4327 (i387_print_float_info): Renamed from i387_float_info. Add
4328 `struct gdbarch *' and `struct ui_file *' arguments and use the
4330 * i386-tdep.c: Include "i387-tdep.h".
4331 (i386_gdbarch_init): Set print_float_info.
4332 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4333 (FLOAT_INFO): Remove define.
4335 2002-08-13 Michael Snyder <msnyder@redhat.com>
4337 * mips-tdep.c (mips_push_arguments): Rename to
4338 mips_eabi_push_arguments, and tune for EABI.
4339 (MIPS_REGS_HAVE_HOME_P): Delete.
4340 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4341 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4342 Delete references to mips_regs_have_home_p.
4344 2002-08-14 Keith Seitz <keiths@redhat.com>
4346 * Makefile.in (install-gdbtk): Create insight plugin directory.
4347 Install plugins.tcl file.
4349 2002-08-14 Keith Seitz <keiths@redhat.com>
4351 * configure.in: Move SUBDIRS to near top of the file so that
4352 --enable options may add things to it.
4353 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4354 * configure: Regenerate.
4356 2002-08-13 Michael Snyder <msnyder@redhat.com>
4358 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4359 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4360 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4362 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4364 * vax-tdep.c (vax_get_saved_register): Delete function.
4365 (vax_gdbarch_init): Update.
4366 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4367 (ns32k_gdbarch_init): Update.
4368 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4369 (alpha_gdbarch_init): Update.
4371 2002-08-13 Andrew Cagney <cagney@redhat.com>
4373 * regcache.c (init_regcache_descr): Overallocate the
4374 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4375 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4377 (set_register_cached): Add range checking assertions. Use
4380 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4382 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4383 numbers for MMX registers.
4385 2002-08-13 Andrew Cagney <cagney@redhat.com>
4387 * i386-tdep.c (i386_gdbarch_init): Use
4388 generic_unwind_get_saved_register.
4390 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4392 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4393 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4395 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4396 Delete. Add comment regarding this now-deleted target method.
4398 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4400 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4401 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4402 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4403 real PC and the page number (if it's within the memory bank window).
4404 (m68hc11_pseudo_register_write): Likewise when saving.
4405 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4406 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4407 (m68hc11_register_raw_size): And use 32-bit for it.
4408 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4409 16K memory bank is used by the prog; also use the virtual pc.
4411 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4413 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4414 (m68hc11_gdbarch_init): Install it in gdbarch.
4415 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4416 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4417 (MSYMBOL_SIZE): New for documentation.
4418 (insn_return_kind): Enum to specify how a function returns.
4419 (frame_extra_info): Cleanup and record the return mode.
4420 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4421 register in address computation.
4422 (m68hc11_get_return_insn): New to obtain the return instruction used
4424 (m68hc11_frame_init_saved_regs): Take into account the return
4425 instruction used by the function for far and interrupt functions.
4426 (m68hc11_init_extra_frame_info): Take into account page register.
4427 (m68hc11_frame_args_address): Adjust according to the return mode.
4428 (show_regs): Print page register only when it's used.
4430 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4432 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4433 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4434 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4436 (m68hc11_register_raw_size): Likewise.
4438 2002-08-13 Andrew Cagney <cagney@redhat.com>
4440 * i386-tdep.c (i386_register_name): Handle mmx registers.
4441 (mmx_regnum_p): New function.
4442 (i386_mmx_names): New array.
4443 (mmx_num_regs): New variable.
4444 (i386_pseudo_register_read): New function.
4445 (i386_pseudo_register_write): New function.
4446 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4448 * regcache.c (regcache_raw_read_unsigned): New function.
4449 (regcache_raw_read_signed): New function.
4450 * regcache.h (regcache_raw_read_unsigned): Declare.
4451 (regcache_raw_read_signed): Declare.
4453 2002-08-13 Andrew Cagney <cagney@redhat.com>
4455 * regcache.c (regcache_raw_read_as_address): Delete function.
4456 (regcache_cooked_read_signed): New function.
4457 (regcache_cooked_read_unsigned): New function.
4458 * regcache.h (regcache_cooked_read_signed): Declare.
4459 (regcache_cooked_read_unsigned): Declare.
4460 (regcache_raw_read_as_address): Delete declaration.
4462 * blockframe.c (generic_read_register_dummy): Use
4463 regcache_cooked_read_unsigned.
4464 * i386-tdep.c (i386_extract_struct_value_address): Use
4465 regcache_cooked_read_unsigned.
4467 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4470 double sizes according to ELF ABI flags.
4471 (gdbarch_tdep): Record elf_flags.
4473 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4475 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4476 (m6812_prolog): They can appear in 68HC12 function prologue.
4477 (m68hc11_frame_chain): Cleanup.
4479 2002-08-12 Andrew Cagney <cagney@redhat.com>
4481 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4483 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4484 (i386_linux_register_raw_size): Delete function.
4485 (i386_linux_init_abi): Update.
4486 * i386-tdep.c (i386_register_raw_size): Delete function.
4487 (i386_register_byte): Delete function.
4488 (i386_gdbarch_init): Update.
4489 (i386_register_size): Delete array.
4490 (i386_register_offset): Delete array.
4492 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4493 (REGISTER_RAW_SIZE): Delete macro.
4494 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4495 (REGISTER_BYTE): Delete macro.
4497 2002-08-11 Aidan Skinner <aidan@velvet.net>
4499 * ada-lang.c (ada_lookup_partial_symbol)
4500 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4501 prototype names so that grep ^func works properly.
4503 * ada-lang.c (ada_array_element_type)
4504 (ada_lookup_partial_symbol): Fix typos in parameter list.
4506 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4507 Fix prototype names so that grep ^func works properly.
4509 2002-08-10 Andrew Cagney <cagney@redhat.com>
4510 Elena Zannoni <ezannoni@redhat.com>
4511 Martin M. Hunt <hunt@redhat.com>
4513 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4514 (build_builtin_type_vec128i): Set the vector bit.
4515 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4516 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4517 (build_builtin_type_vec64): New function.
4518 (build_builtin_type_vec64i): New function.
4519 (build_gdbtypes): Initialize builtin_type_vec64 and
4520 builtin_type_vec64i.
4522 2002-08-09 Andrew Cagney <cagney@redhat.com>
4524 * regcache.c (regcache_dump): Compare the register offset
4526 * arch-utils.c (generic_register_byte): New function.
4527 * arch-utils.h (generic_register_byte): Declare.
4528 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4529 * gdbarch.h, gdbarch.c: Regenerate.
4531 2002-08-09 Andrew Cagney <cagney@redhat.com>
4533 * regcache.c: Include "gdbcmd.h"
4534 (_initialize_regcache): Add commands "maintenance print
4535 registers", "maintenance print raw-registers" and "maintenance
4536 print cooked-registers".
4537 (enum regcache_dump_what): Define.
4538 (dump_endian_bytes): New function.
4539 (regcache_dump): New function.
4540 (regcache_print): New function.
4541 (maintenance_print_registers): New function.
4542 (maintenance_print_raw_registers): New function.
4543 (maintenance_print_cooked_registers): New function.
4544 * Makefile.in (regcache.o): Update dependencies.
4546 2002-08-09 Michael Snyder <msnyder@redhat.com>
4548 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4549 (mips_push_arguments): Correct some comments. Use paddr_nz
4550 for printing addresses in debug output. Replace static
4551 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4552 (mips_n32n64_push_arguments): New function, cloned from
4553 mips_push_arguments and tuned for the n32/n64 ABI.
4554 (mips_push_register): Buffer needs dynamic allocation.
4555 (mips_print_register): Ditto.
4556 (do_gp_register_row): Ditto.
4557 (mips_store_return_value): Ditto.
4558 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4560 2002-08-09 Don Howard <dhoward@redhat.com>
4562 * memattr.c (mem_info_command): Print special case of upper bound
4563 as max CORE_ADDR + 1.
4565 2002-08-08 Michael Snyder <msnyder@redhat.com>
4567 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4568 returns structs by ref if they're too big to fit in two registers.
4570 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4572 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4574 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4575 mips_find_saved_regs().
4576 (mips_pop_frame): Likewise.
4578 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4580 * blockframe.c (frame_saved_regs_register_unwind): Revise
4581 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4584 2002-08-09 Grace Sainsbury <graces@redhat.com>
4586 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4587 T-packets; the 'a' is not taken as a register number.
4588 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4589 (remote_stopped_data_address): New functions; add to target
4591 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4592 prototypes to match other implementations of this
4593 function. replace integer argument with pointer -- the length
4594 field in the Z-packet is the length of what is pointed to or 1 if
4595 pointer is null. Add to target vector.
4596 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4600 * remote.c (remote_wait): Add support to extract optional
4601 watchpoint information from T-packet. Ignore unrecognized
4602 optional info in T-packet.
4603 (remote_async_wait): Ditto.
4605 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4607 * cli/cli-dump.c: Change fopen modes to use binary open modes
4608 as defined in include/fopen-bin.h throughout.
4610 2002-08-08 Michael Snyder <msnyder@redhat.com>
4612 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4614 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4616 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4617 assertion failure by returning early after a warning.
4619 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4621 * mips-tdep.c (mips_find_saved_regs): Make static.
4622 (mips_frame_init_saved_regs): New function.
4623 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4624 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4625 (mips_find_saved_regs): Delete declaration.
4627 2002-08-08 Grace Sainsbury <graces@redhat.com>
4629 * remote.c (remote_wait, remote_async_wait): Change
4630 thread_num from int to ULONGEST.
4631 (unpack_varlen_hex): Change result parameter from
4632 int * to ULONGEST *.
4634 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4636 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4637 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4639 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4641 2002-08-08 Andrew Cagney <cagney@redhat.com>
4643 * gcore.c (override_derive_stack_segment): Delete variable.
4644 (preempt_derive_stack_segment): Delete function.
4645 (derive_stack_segment): Delete function.
4646 (default_derive_stack_segment): Renamed to derive_stack_segment.
4647 (override_derive_heap_segment): Delete variable.
4648 (preempt_derive_heap_segment): Delete function.
4649 (derive_heap_segment): Delete function.
4650 (default_derive_heap_segment): Rename to derive_heap_segment.
4652 2002-08-06 Michael Snyder <msnyder@redhat.com>
4654 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4655 * mips-tdep.c (mips_EABI_use_struct_convention,
4656 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4657 New functions. (mips_use_struct_convention): Delete.
4658 (mips_gdbarch_init): set use_gdbarch_convention.
4660 2002-08-06 Michael Snyder <msnyder@redhat.com>
4662 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4663 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4664 mips_o32_reg_struct_has_addr): New functions.
4665 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4667 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4669 * regcache.c (pseudo_register): Delete function.
4670 (fetch_register): Delete function.
4671 (store_register): Delete function.
4672 (regcache_raw_read, legacy_read_register_gen): Use
4673 target_fetch_registers instead of fetch_register.
4674 (legacy_write_register_gen, regcache_raw_write): Use
4675 target_store_register instead of store_register.
4676 (write_register_bytes): Ditto.
4678 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4679 (STORE_PSEUDO_REGISTER): Delete.
4680 * gdbarch.h, gdbarch.c: Regenerate.
4682 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4684 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4685 write dump file binary.
4687 2002-08-05 Michael Snyder <msnyder@redhat.com>
4689 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4690 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4691 (mips_gdbarch_init): Set N32 target to be mips64.
4693 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4695 * frame.c (find_saved_register): Break out of loop once saved
4696 register address is found. Don't mention sparc in loop comment
4699 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4701 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4702 mips_default_saved_regsize to 8.
4704 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4706 * gcore.c: Do not include <sys/procfs.h>.
4707 * Makefile.in (gcore.o): Update dependencies.
4709 2002-08-06 Andrew Cagney <cagney@redhat.com>
4711 * configure.tgt: Make arc-*-* obsolete.
4712 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4713 * MAINTAINERS: Make arc-elf obsolete.
4714 * arc-tdep.c: Make file obsolete.
4715 * config/arc/arc.mt: Ditto.
4716 * config/arc/tm-arc.h: Ditto.
4718 2002-08-05 Theodore A. Roth <troth@verinet.com>
4720 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4722 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4724 * mcore-tdep.c (mcore_gdbarch_init): Use
4725 generic_unwind_get_saved_register instead of
4726 generic_get_saved_register.
4727 * v850-tdep.c (v850_gdbarch_init): Ditto.
4728 * frv-tdep.c (frv_gdbarch_init): Ditto.
4729 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4730 * s390-tdep.c (s390_gdbarch_init): Ditto.
4731 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4732 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4733 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4735 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4737 * objfiles.h: Add missing #include "symfile.h"
4739 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4741 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4743 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4744 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4747 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4749 * NEWS: Cleanup and nitpick.
4751 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4753 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4755 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4757 * Makefile.in (gdbtk-bp.o): Update dependencies.
4758 (gdbtk-register.o): Ditto.
4759 (gdbtk-varobj.o): Ditto.
4761 2002-08-03 Andrew Cagney <cagney@redhat.com>
4763 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4764 m68hc11_fetch_pseudo_register.
4765 (m68hc11_pseudo_register_write): Replace
4766 m68hc11_store_pseudo_register.
4767 (m68hc11_gdbarch_init): Update.
4769 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4771 * gdbarch.sh: Include "gdb_string.h".
4772 * gdbarch.c: Regenerate.
4774 * regcache.c: Include "gdb_string.h".
4775 * ax-general.c: Ditto.
4777 * std-regs.c: Ditto.
4778 * fbsd-proc.c: Ditto.
4781 * Makefile.in (regcache.o): Update dependencies.
4782 (thread.o, gdbarch.o): Ditto.
4783 (ax-general.o, gdbarch.o): Ditto.
4784 (varobj.o, std-regs.o): Ditto.
4785 (fbsd-proc.o): Specify dependencies.
4787 2002-08-02 Andrew Cagney <cagney@redhat.com>
4789 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4791 (regcache_cooked_write): Ditto.
4793 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4795 * regcache.c (regcache_cooked_read): New function.
4796 (regcache_cooked_write): New function.
4797 (read_register_gen): Rewrite using regcache_cooked_read.
4798 (write_register_gen): Rewrite using regcache_cooked_write.
4800 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4803 2002-08-02 Andrew Cagney <cagney@redhat.com>
4805 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4806 Replace the architecture methods register_read and register_write.
4807 * gdbarch.h, gdbarch.c: Regenerate.
4808 * regcache.c (init_regcache_descr): Update.
4809 (read_register_gen): Update.
4810 (write_register_gen): Update.
4811 (supply_register): Update comment.
4813 * sh-tdep.c (sh_gdbarch_init): Update.
4814 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4815 `regcache' and `gdbarch' parameters. Make `buffer' a void
4816 pointer. Update code.
4817 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4818 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4819 void pointer. Update code.
4820 (sh64_register_write): Delete.
4821 (sh4_register_read): Delete.
4822 (sh64_register_read): Delete.
4823 (sh4_register_write): Delete.
4824 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4825 void pointer, `to' parameter a void pointer.
4826 (sh_sh64_register_convert_to_raw): Ditto.
4828 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4830 * mips-tdep.c (mips_register_virtual_type): Use architecture
4831 invariant return values.
4833 2002-08-01 Andrew Cagney <cagney@redhat.com>
4835 * linux-proc.c: Include "gdb_string.h".
4836 * Makefile.in (linux-proc.o): Update dependency list.
4838 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4840 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4843 2002-08-01 Grace Sainsbury <graces@redhat.com>
4845 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4846 to_insert_watchpoint, to_remove_watchpoint,
4847 to_stopped_by_watchpoint, to_stopped_data_address,
4848 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4849 target vecctor. Define their corresponding macros so they call
4852 * target.c: Add default and debug versions of for
4853 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4854 to_insert_watchpoint, to_remove_watchpoint,
4855 to_stopped_by_watchpoint, to_stopped_data_address,
4856 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4858 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4860 * mips-tdep.c (mips_register_virtual_type): New function.
4861 (mips_gdbarch_init): Register mips_register_virtual_type()
4862 with gdbarch machinery.
4863 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4864 this file instead of tm-bigmips.h.
4865 (MIPS_REGSIZE): Delete this macro.
4866 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4867 multiarch version in mips-tdep.c will be found.
4869 2002-08-01 Andrew Cagney <cagney@redhat.com>
4871 * NEWS: Menion that CHILL has been made obsolete.
4873 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4874 * stabsread.c (read_range_type): Ditto.
4875 * gdbtypes.h: Ditto.
4876 * language.c (binop_type_check): Ditto.
4877 (binop_result_type): Ditto.
4878 (integral_type): Ditto.
4879 (character_type): Ditto.
4880 (string_type): Ditto.
4881 (boolean_type): Ditto.
4882 (structured_type): Ditto.
4883 (lang_bool_type): Ditto.
4884 (binop_type_check): Ditto.
4885 * language.h (_LANG_chill): Ditto.
4886 * dwarfread.c (set_cu_language): Ditto.
4887 * dwarfread.c (CHILL_PRODUCER): Ditto.
4888 * dwarfread.c (handle_producer): Ditto.
4889 * expression.h (enum exp_opcode): Ditto.
4890 * eval.c: Ditto for comments.
4891 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4892 * expprint.c (print_subexp): Ditto.
4893 (print_subexp): Ditto.
4894 * valops.c (value_cast): Ditto.
4895 (search_struct_field): Ditto.
4896 * value.h (COERCE_VARYING_ARRAY): Ditto.
4897 * symfile.c (init_filename_language_table): Ditto.
4898 (add_psymbol_with_dem_name_to_list): Ditto.
4899 * valarith.c (value_binop): Ditto.
4901 * valops.c (value_slice): Ditto.
4902 * symtab.h (union language_specific): Ditto.
4903 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4904 (SYMBOL_DEMANGLED_NAME): Ditto.
4905 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4906 * defs.h (enum language): Ditto.
4907 * symtab.c (got_symtab): Ditto.
4908 * utils.c (fprintf_symbol_filtered): Ditto.
4910 * ch-typeprint.c: Make file obsolete.
4911 * ch-valprint.c: Make file obsolete.
4912 * ch-lang.h: Make file obsolete.
4913 * ch-exp.c: Make file obsolete.
4914 * ch-lang.c: Make file obsolete.
4916 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4918 (TARGET_FLAGS_TO_PASS): Ditto.
4919 (CHILLFLAGS): Obsolete.
4921 (CHILL_FOR_TARGET): Obsolete.
4922 (CHILL_LIB): Obsolete.
4923 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4925 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4926 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4928 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4931 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4933 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4934 This does not change anything at the moment, but will be helpful
4935 later when full Ada support is integrated.
4937 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4939 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4942 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4944 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4945 and save it in a local variable. Use variable in later test.
4947 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4949 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4950 test. (Thanks to Daniel Jacobowitz.)
4952 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4954 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4955 (mips_abi_strings): Add "n64".
4956 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4958 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4960 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4961 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4963 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4965 * utils.c (host_pointer_to_address, address_to_host_pointer):
4966 Use gdb_assert() instead of explicit call to internal_error().
4968 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4970 * Makefile.in (rs6000-nat.o): Update dependencies.
4972 From Nicholas Duffek:
4973 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4974 (aix-thread.o): New rule.
4975 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4976 * config/powerpc/aix432.mh: New file.
4978 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4980 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4981 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4982 (fetch_core_registers, ppc_linux_supply_gregset)
4983 (ppc_linux_supply_fpregset): New functions.
4984 (ppc_linux_regset_core_fns): New.
4985 (_initialize_ppc_linux_tdep): Call add_core_fns.
4986 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4987 and ppc_linux_supply_gregset.
4988 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4989 (supply_fpregset): Call ppc_linux_supply_fpregset.
4990 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4992 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4994 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4996 * symtab.c (lookup_symbol): Demangle before lowercasing.
4998 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5000 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5002 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5003 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5004 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5005 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5007 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5008 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5009 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5010 (avr-tdep.o, mon960-rom.o): Ditto.
5011 (aout_stabs_gnu_h): Define.
5012 (symtab_h): Remove $(gdb_obstack_h).
5014 2002-07-30 Jim Blandy <jimb@redhat.com>
5016 Patch from David Carlton <carlton@math.stanford.edu>:
5017 * gdbinit.in: Move the `dir' commands that add GDB's own source
5018 directory to the search path to the end, so that the `gdb' source
5019 directory will be searched first.
5021 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5023 * gdb_obstack.h: New file.
5024 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5025 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5026 * objfiles.h: Include "gdb_obstack.h".
5027 * Makefile.in (gdb_obstack_h): Define.
5028 (symtab_h): Add $(gdb_obstack_h).
5029 (objfiles_h): Add $(gdb_obstack_h).
5031 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5032 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5033 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5034 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5035 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5036 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5037 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5038 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5040 * Makefile.in (bcache.o): Update dependencies.
5041 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5042 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5043 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5044 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5045 (stabsread.o, symfile.o, symmisc.o): Ditto.
5046 (symtab.o, typeprint.o, macroexp.o): Ditto.
5047 (macrotab.o, mdebugread.o): Ditto.
5048 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5049 (coff_ecoff_h, aout_aout64_h): Define.
5050 (aout_stabs_gnu_h, libaout_h): Define.
5052 2002-07-29 Andrew Cagney <cagney@redhat.com>
5054 * regcache.c (struct regcache_descr): Rename nr_registers to
5055 nr_cooked_registers. Revise comments describing the structure
5057 (init_regcache_descr): Update.
5058 (init_legacy_regcache_descr): Update.
5059 (read_register_gen, write_register_gen): When a cooked register in
5060 the raw register range, directly access the value from the raw
5063 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5065 * z8k-tdep.c: Do not include "obstack.h".
5066 * h8300-tdep.c, h8500-tdep.c: Ditto.
5067 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5068 * valprint.c, v850-tdep.c: Ditto.
5069 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5070 * mn10200-tdep.c: Ditto.
5072 * Makefile.in (z8k-tdep.o): Update dependencies.
5073 (m68hc11-tdep.o, valprint.o): Ditto.
5074 (v850-tdep.o, d10v-tdep.o): Ditto.
5075 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5076 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5077 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5078 (sh_opc_h, gdb_sim_sh_h): Define.
5079 (elf_sh_h, elf_bfd_h): Define.
5080 (opcode_m68hc11_h): Define.
5081 (OPCODES_SRC, OPCODES_DIR): define.
5082 (OPCODES): Use $(OPCODES_DIR).
5083 (gdb_sim_d10v_h): Rename sim_d10v_h.
5084 (gdb_sim_arm_h): Rename sim_arm_h.
5086 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5088 * utils.c (host_pointer_to_address, address_to_host_pointer):
5089 Change internal_error() message to indicate function responsible
5092 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5094 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5095 calls to local_hex_string_custom().
5097 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5099 * irix5-nat.c: Move IRIX shared library support from here...
5100 * solib-irix.c: ...to here. Revised substantially to work with
5101 generic solib framework.
5103 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5104 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5105 * mips-irix-tdep.c: New file.
5107 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5108 (mips-irix-tdep.o, solib-irix.o): New rules.
5109 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5111 * config/mips/irix6.mt (TDEPFILES): Likewise.
5112 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5114 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5116 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5117 disabled (via ``#if 0'') includes.
5119 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5121 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5122 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5123 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5124 Add support for the fpscr register.
5125 * rs6000-nat.c (regmap, fetch_inferior_registers)
5126 (store_inferior_registers, fetch_core_registers): Likewise.
5128 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5130 * rs6000-nat.c (language.h): Include.
5131 (special_regs): Delete this array.
5132 (regmap): New function.
5133 (fetch_register, store_register): Use regmap() to map gdb
5134 register numbers to ptrace register numbers. Also, use
5135 outputs from regmap() to make decisions regarding type of
5136 ptrace() call to make. In particular, don't compare against
5137 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5138 (fetch_inferior_registers, store_inferior_registers): Where
5139 possible, obtain register numbers from tdep struct. Don't
5140 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5141 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5142 (LAST_UISA_SP_REGNUM): Delete.
5144 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5146 * rs6000-nat.c (ppc-tdep.h): Include.
5147 (fetch_registers, store_register, fetch_core_registers): Don't
5148 access registers[] directly. Instead, use supply_register() or
5149 regcache_collect() as appropriate.
5150 (find_toc_address): Format hex address with local_hex_string().
5152 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5154 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5157 2002-07-24 Tom Tromey <tromey@redhat.com>
5159 * jv-exp.y: Marked all strings with _().
5160 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5162 (MethodInvocation, CastExpression, parse_number, yyerror,
5163 java_type_from_name, push_expression_name, yylex): Typo fixes.
5165 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5167 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5168 (tee_file_flush, tee_file_write, tee_file_fputs)
5169 (tee_file_isatty): New.
5170 * ui-file.h (tee_file_new): Add prototype.
5172 2002-07-24 Aidan Skinner <aidan@velvet.net>
5174 * ada-lang.c: Change k&r style function definitions to prototyped
5176 * ada-typeprint.c: Change k&r style function definitions to prototyped
5178 * ada-valprint.c: Change k&r style function definitions to prototyped
5181 2002-07-24 Andrew Cagney <cagney@redhat.com>
5183 * README: Remove reference to remote-bug.
5184 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5186 (m88k-nat.o): Delete rule.
5187 (m88k-tdep.o): Delete rule.
5188 (remote-bug.o): Delete rule.
5189 * MAINTAINERS: Mark as obsolete.
5190 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5191 * m88k-tdep.c: Make file obsolete.
5192 * config/m88k/m88k.mh: Ditto.
5193 * config/m88k/delta88v4.mh: Ditto.
5194 * config/m88k/delta88v4.mt: Ditto.
5195 * config/m88k/delta88.mt: Ditto.
5196 * config/m88k/delta88.mh: Ditto.
5197 * remote-bug.c: Ditto.
5198 * config/m88k/tm-delta88.h: Ditto.
5199 * config/m88k/nm-delta88v4.h: Ditto.
5200 * config/m88k/xm-delta88.h: Ditto.
5201 * config/m88k/xm-dgux.h: Ditto.
5202 * config/m88k/tm-m88k.h: Ditto.
5203 * config/m88k/nm-m88k.h: Ditto.
5204 * config/m88k/tm-delta88v4.h: Ditto.
5205 * m88k-nat.c: Ditto.
5206 * cxux-nat.c: Ditto.
5207 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5208 and m88*-*-* obsolete.
5209 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5212 2002-07-24 Andrew Cagney <cagney@redhat.com>
5214 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5215 constant. Same for local pointer variables.
5216 (extract_signed_integer): Ditto.
5217 * defs.h (extract_unsigned_integer): Update.
5218 (extract_signed_integer): Update.
5220 2002-07-24 Andrew Cagney <cagney@redhat.com>
5222 * regcache.c (regcache_raw_write): Change buf parameter to a
5223 constant void pointer.
5224 (regcache_raw_read): Change buf parameter to a void pointer.
5225 (legacy_write_register_gen): Change myaddr parameter a constant
5227 (supply_register): Change val parameter to a const void pointer.
5228 * regcache.h (regcache_raw_write): Update declaration.
5229 (regcache_raw_read): Update declaration.
5230 (supply_register): Update declaration.
5232 2002-07-24 Tom Tromey <tromey@redhat.com>
5234 * defs.h (gdb_readline_wrapper): Declare.
5235 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5236 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5237 * top.c (gdb_readline_wrapper): New function.
5238 (command_line_input): Use it.
5240 2002-07-24 Andrew Cagney <cagney@redhat.com>
5242 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5243 regcache_read and regcache_write.
5244 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5245 * regcache.c: Update.
5246 * sh-tdep.c (sh64_push_arguments): Update comment.
5247 (sh_pseudo_register_read): Update.
5248 (sh_pseudo_register_write): Update.
5249 (sh4_register_read): Update.
5250 (sh4_register_write): Update.
5251 (sh64_pseudo_register_read): Update.
5252 (sh64_pseudo_register_write): Update.
5253 (sh64_register_read): Update.
5254 (sh64_register_write): Update.
5255 * i386-tdep.c (i386_extract_return_value): Update.
5256 (i386_extract_struct_value_address): Update.
5257 (i386_extract_return_value): Update.
5258 * blockframe.c (generic_read_register_dummy): Update.
5259 (generic_call_dummy_register_unwind): Update
5260 * infrun.c (write_inferior_status_register): Update.
5262 2002-07-23 Jim Blandy <jimb@redhat.com>
5264 * parser-defs.h (expression_context_pc): Make this extern.
5265 (Thanks to Michael Snyder.)
5267 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5269 GDB 5.2.1 released from 5.2 branch.
5270 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5271 * README: Update to mention 5.2.1.
5273 2002-07-23 Mark Salter <msalter@redhat.com>
5275 * remote.c (remote_read_bytes): Fix check for error.
5277 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5279 * aix-thread.c (language.h): Include.
5280 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5281 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5282 Print newlines at end of debug messages.
5283 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5284 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5286 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5288 * aix-thread.c (ppc-tdep.h): Include.
5289 (special_register_p): New function.
5290 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5291 (store_regs_user_thread): Use register number information from
5292 gdbarch_tdep struct instead of hardcoded offsets relative to
5293 FIRST_UISA_SP_REGNUM.
5294 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5295 special_register_p() instead of using FPLAST_REGNUM and
5296 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5297 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5298 will be MQ's register number.
5300 2002-07-22 Michael Snyder <msnyder@redhat.com>
5302 * aix-thread.c (ops): Rename to aix_thread_ops.
5303 (base_ops): Rename to base_target.
5304 (ops_attach): Rename to aix_thread_attach.
5305 (ops_detach): Rename to aix_thread_detach.
5306 (ops_resume): Rename to aix_thread_detach.
5307 (ops_wait): Rename to aix_thread_wait.
5308 (ops_kill): Rename to aix_thread_kill.
5309 (init_ops): Rename to init_aix_thread_ops.
5310 (ops_fetch_register): Rename to aix_thread_fetch_register.
5311 (ops_store_register): Rename to aix_thread_store_register.
5312 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5313 (ops_thread_alive): Rename to aix_thread_thread_alive.
5314 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5315 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5316 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5317 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5318 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5319 (store_regs_lib): Rename to store_regs_user_thread.
5320 (store_regs_kern): Rename to store_regs_kernel_thread.
5322 2002-07-22 Michael Snyder <msnyder@redhat.com>
5324 * aix-thread.c (ops_prepare_to_store): Eliminate.
5325 (init_ops): Don't initialize ops.prepare_to_store.
5326 (store_regs_kern): Pre-fetch register buffers from child,
5327 because some registers may not be in the cache. Copy
5328 regs from register cache only if they are cached.
5329 (store_regs_lib): Copy regs from register cache only
5331 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5332 fill_gprs64): Ditto.
5334 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5336 * aix-thread.c (gdb_assert.h): Include.
5337 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5338 register sizes (from register cache) match size of buffer holding
5340 (fill_sprs32): Change parameter types to match those in the ptrace()
5342 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5343 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5345 2002-07-22 Michael Snyder <msnyder@redhat.com>
5347 * aix-thread.c (supply_sprs64): Cosmetic change.
5348 (supply_sprs32): Cosmetic change.
5349 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5350 (fill_sprs64): Use regcache_collect instead of read_register.
5351 (store_regs_lib): Use regcache_collect instead of
5352 read_register. Use fill_sprs32 instead of fill_sprs64,
5353 if debugging a 32-bit architecture.
5354 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5355 out of the register cache, instead of passing a pointer into
5356 the register cache directly to ptrace. Use regcache_collect
5357 insteaad of read_register.
5358 (ops_prepare_to_store): Use target_read_registers instead
5359 of read_register_bytes.
5361 2002-07-20 Aidan Skinner <aidan@velvet.net>
5363 * MAINTAINERS: Add self under write after approval.
5365 2002-07-20 Aidan Skinner <aidan@velvet.net>
5367 * ada-tasks.c: Change k&r style function definitions to prototyped
5370 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5372 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5373 * x86-64-tdep.c: Include "objfiles.h".
5374 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5375 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5377 2002-07-17 Michal Ludvig <michal@suse.cz>
5379 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5380 (update_context): Initialise cfa variable.
5382 2002-07-17 Michael Snyder <msnyder@redhat.com>
5384 * aix-thread.c: Shorten some long lines.
5385 Bring comments into line with code spec.
5387 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5389 * infrun.c: Re-indent using gdb_indent.sh.
5391 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5393 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5394 Leave the indentation temporarily untouched, to minimize the diffs.
5396 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5398 * stabsread.c: Make os9k sections of the code obsolete,
5400 * stabsread.h: Make os9k sections of the code obsolete.
5402 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5404 * linux-low.c (regsets_store_inferior_registers): Add free()
5405 at the end of a loop to prevent memory leak.
5406 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5407 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5408 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5410 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5412 2002-07-17 Jim Blandy <jimb@redhat.com>
5414 * macrocmd.c (info_macro_command): Remove newline from error
5417 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5419 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5420 (sh_gdbarch_init): Use it for sh-dsp.
5422 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5424 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5425 64-bit DWARF2 format.
5427 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5429 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5430 <sys/proc.h> when not available.
5432 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5434 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5435 * stabsread.c: Make os9k sections of the code obsolete.
5436 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5437 * config/i386/i386os9k.mt: Make file obsolete.
5438 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5439 (COMMON_OBS): Remove os9kread.o
5440 (SFILES): Remove os9kread.c.
5441 (os9kread.o, remote-os9k.o): Make target obsolete.
5442 * remote-os9k.c: Make file obsolete.
5443 * os9kread.c: Make file obsolete.
5446 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5448 * NEWS: Mention that the FR30 has been made obsolete.
5449 * fr30-tdep.c: Make file obsolete.
5450 * config/fr30/tm-fr30.h: Ditto.
5451 * config/fr30/fr30.mt: Ditto.
5452 * configure.tgt: Make fr30-*-elf obsolete.
5453 * MAINTAINERS: Make fr30-elf obsolete.
5455 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5457 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5458 found is not inside a section.
5460 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5462 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5464 (pdc_realloc): Use xrealloc() instead of realloc().
5466 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5468 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5469 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5470 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5473 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5475 * aix-thread.c (ptrace_check): Eliminate goto.
5476 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5479 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5481 * aix-thread.c (gdbcmd.h): Include.
5482 (DEBUG, DBG, DBG2, dbg): Eliminate.
5483 (debug_aix_thread): New static global.
5484 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5485 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5486 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5487 invocations to DBG and DBG2 macros to test against
5488 ``debug_aix_thread'' and call fprintf_unfiltered().
5489 (_initialize_aix_thread): Add new command "set debug aix-thread".
5491 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5493 From Gerhard Tonn <TON@de.ibm.com>:
5494 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5495 instead of supply_register.
5497 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5499 * dwarf2cfi.c: Include "gdb_assert.h".
5500 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5502 (update_context): Do not use __func__. Add missing ``break''.
5503 (update_context): Do not use __func__.
5505 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5507 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5508 and its setting. Set gdbarch instruction printing functions
5509 directly. For non-rs6000 case use new function
5510 gdb_print_insn_powerpc.
5511 (gdb_print_insn_powerpc): New function.
5513 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5515 * NEWS: Mention that the d30v has been marked obsolete.
5516 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5517 * configure.tgt: Mark d30v-*-* as obsolete.
5518 * d30v-tdep.c: Mark file as obsolete.
5519 * config/d30v/d30v.mt: Ditto.
5520 * config/d30v/tm-d30v.h: Ditto.
5522 2002-07-13 Aidan Skinner <aidan@velvet.net>
5524 * ada-tasks.c (add_task_entry): replace calls to
5525 malloc() with xmalloc
5526 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5528 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5529 ada_finish_decode_line_1, all_sals_for_line
5530 ada_breakpoint_rewrite): replace calls to free() with xfree()
5532 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5534 From Nicholas Duffek (with minor changes by Martin Hunt,
5535 Louis Hamilton, and Kevin Buettner):
5536 * aix-thread.c: New file.
5538 2002-07-12 Petr Sorfa <petrs@caldera.com>
5540 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5541 complaint for invalid attribute class or form.
5542 (read_func_scope): DW_AT_frame_base
5543 better handling of DW_AT_block*.
5544 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5545 better handling of DW_AT_block*.
5546 (read_common_block): DW_AT_location
5547 better handling of DW_AT_block*.
5548 (read_partial_die): DW_AT_location better handling
5550 (new_symbol): DW_AT_external better handling of
5551 DW_AT_block*. Proper initialization of variable
5553 (attr_form_is_block): New function that returns true
5554 if the attribute's form is of DW_FORM_block*.
5556 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5558 * valops.c (find_method_list): Remove comment about
5559 removed STATIC_MEMFUNCP argument.
5560 (value_find_oload_method_list): Likewise.
5562 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5564 From Nicholas Duffek:
5565 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5566 target_new_objfile_hook.
5568 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5570 From Nicholas Duffek:
5571 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5574 2002-07-12 Andrew Cagney <cagney@redhat.com>
5576 * MAINTAINERS: Mention --enable-sim-build-warnings.
5577 (m68hc11-elf): Disable sim build warnings.
5578 (m32r-elf): Mark as broken obsolete candidate.
5579 (x86_64-linux-gnu): Mark as buildable with -Werror.
5580 (arm-elf): Change -w to ``,'' which enables warnings but not
5583 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5585 * bcache.h: Update copyright.
5586 (struct bstring, struct bcache): Move definition to "bcache.c".
5587 Replaced by opaque declaration.
5588 (bcache_xfree): Replace free_bcache.
5589 (bcache_xmalloc, bcache_memory_used): Declare.
5591 * bcache.c: Update copyright.
5592 (struct bstring, struct bcache): Moved to here from "bcache.h".
5594 (bcache_xmalloc, bcache_memory_used): New functions.
5595 (bcache_xfree): Replace function free_bcache.
5597 * Makefile.in (objfiles.o): Add $(bcache_h).
5598 (objfiles_h): Remove $(bcache_h).
5599 (symfile.o): Add $(bcache_h).
5601 * symmisc.c: Update copyright.
5602 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5603 (print_objfile_statistics): Use bcache_memory_used.
5605 * symfile.c: Include "bcache.h".
5606 (reread_symbols): Use bcache_xfree.
5607 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5608 (add_psymbol_to_list): Pass psymbol_cache by value.
5609 (add_psymbol_with_dem_name_to_list): Ditto.
5611 * objfiles.h: Update copyright.
5612 (struct bcache): Declare opaque. Do not include "bcache.h".
5613 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5615 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5617 * objfiles.c: Include "bcache.h". Update copyright.
5618 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5620 (free_objfile): Use bcache_xfree.
5622 2002-07-11 Grace Sainsbury <graces@redhat.com>
5624 * monitor.c (monitor_fetch_register): Make name a constant.
5625 (monitor_store_register): Same.
5627 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5629 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5630 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5631 (finish_block) For non-function blocks, hash the symbol table. For
5632 function blocks, mark the symbol table as unhashed.
5633 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5634 (msymbol_hash_iw): Likewise.
5635 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5637 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5638 (lookup_minimal_symbol): Likewise for both.
5639 * symtab.h (struct block): Add `hashtable' flag. Comment the
5641 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5642 (ALL_BLOCK_SYMBOLS): Update.
5643 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5644 (struct symbol): Add `hash_next' pointer.
5645 * symtab.c (lookup_block_symbol): Search using the hash table when
5647 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5648 (search_symbols, find_addr_symbol): Likewise.
5650 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5651 (read_dst_symtab): Likewise.
5652 * jv-lang.c (get_java_class_symtab): Likewise.
5653 * mdebugread.c: Include "gdb_assert.h".
5654 (shrink_block): Assert that the block being modified is not hashed.
5655 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5656 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5658 (dump_symtab): Recognize hashed blocks.
5659 * printcmd.c (print_frame_args): Assert that function blocks do not
5660 have hashed symbol tables.
5661 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5662 (fill_in_ada_prototype, debug_print_block): Likewise.
5663 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5665 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5667 * stack.c (print_frame): Use result of frame_address_in_block()
5668 instead of fi->pc when evaluating symbols.
5669 (backtrace_command_1): Ditto.
5671 2002-07-11 Andrew Cagney <cagney@redhat.com>
5673 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5676 * arm-tdep.c (arm_register_name): Make return type constant.
5678 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5680 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5682 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5683 * s390-tdep.c (s390_fp_regnum): Ditto.
5684 (s390_read_fp): Ditto.
5685 (s390_pop_frame): Ditto.
5686 (_initialize_s390_tdep): Ditto.
5687 * remote.c (get_remote_state): Ditto.
5688 * procfs.c (mappingflags): Ditto.
5689 * memattr.c (_initialize_mem): Ditto.
5690 * mcore-tdep.c (mcore_pop_frame): Ditto.
5691 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5692 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5693 * language.c (set_case_str): Ditto.
5694 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5695 * frv-tdep.c (new_variant): Ditto.
5696 (frv_stopped_data_address): Ditto.
5697 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5698 (context_alloc): Ditto.
5699 (frame_state_alloc): Ditto.
5700 (unwind_tmp_obstack_init): Ditto.
5701 (unwind_tmp_obstack_free): Ditto.
5702 (cfi_read_fp): Ditto.
5703 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5704 (cris_pop_frame): Ditto.
5705 * c-lang.c (scanning_macro_expansion): Ditto.
5706 (finished_macro_expansion): Ditto.
5707 (c_preprocess_and_parse): Ditto.
5708 * gdbarch.sh: Ditto.
5709 * gdbarch.h, gdbarch.c: Regenerate.
5710 * config/mn10200/tm-mn10200.h: Adjust indentation.
5711 * target.c: Adjust indentation.
5712 * symtab.h: Adjust indentation.
5713 * stabsread.h: Adjust indentation.
5714 * remote-es.c: Adjust indentation.
5715 * os9kread.c: Adjust indentation.
5717 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5719 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5720 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5722 2002-07-10 Grace Sainsbury <graces@redhat.com>
5724 * NEWS: Mention m68k, mcore multi-arching.
5725 * MAINTAINERS: Change status of m68k, mcore to reflect
5728 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5730 * valops.c (find_overload_match): Free oload_syms.
5732 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5734 Define HAVE_SYS_PROC_H if sys/proc.h exists
5735 * configure.in: Add check for sys/proc.h
5736 * config.in: Regenerate.
5737 * configure: Regenerate.
5739 2002-07-09 Grace Sainsbury <graces@redhat.com>
5741 * config/m68k/tm-m68k.h: Remove macros wrapped in
5742 #if !GDB_MULTI_ARCH.
5744 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5746 * config.in, configure: Regenerate.
5748 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5750 * dwarf2cfi.c: Include "gcore.h".
5751 (execute_stack_op): Fix implementation of the
5752 DW_OP_deref and DW_OP_deref_size operators by letting do their
5753 lookup in the target.
5755 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5757 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5758 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5761 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5763 Fix PR gdb/595, gdb/602
5764 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5765 Don't call value_cast, just read the vtable pointer; update comments
5768 2002-07-05 Grace Sainsbury <graces@redhat.com>
5770 * config/mcore/tm-mcore.h: Remove file.
5771 * config/mcore/mcore.mt: Remove definition of TM_FILE
5772 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5774 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5776 * i386bsd-tdep.c: Include "gdb_string.h".
5778 2002-07-04 Grace Sainsbury <graces@redhat.com>
5780 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5781 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5783 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5784 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5785 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5786 (RETVAL_REGNUM): Move macros from tm-mcore.h
5787 (mcore_reg_struct_has_addr): New function.
5788 (mcore_gdbarch_init): Added initializations for the macros removed
5791 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5793 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5794 traditonal string branding within the ELF header.
5796 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5798 * symtab.c (remove_params): New function.
5799 (make_symbol_overload_list): Use it instead of cplus_demangle.
5800 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5802 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5804 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5806 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5808 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5809 and tdep->sigtramp_end.
5810 * i386obsd-nat.c: New file.
5811 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5813 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5814 Don't call get_current_frame().
5816 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5818 * i386-nat.c (child_post_startup_inferior): New function
5819 calling i386_cleanup_dregs if
5820 I386_USE_GENERIC_WATCHPOINTS is defined.
5821 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5822 conditional to acknowledge that i386-nat.c has its
5823 own child_post_startup_inferior function.
5825 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5827 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5828 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5829 instead of MAX_REGISTER_RAW_SIZE.
5830 (i386_extract_return_value, i386_extract_struct_value_address):
5831 Convert to use regcache.
5832 (i386_gdbarch_init): Set max_register_raw_size and
5833 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5834 Set extract_return_value and extract_struct_value_address instead
5835 of their deprecated variants.
5837 Convert i386 target to generic dummy frames.
5838 * i386-tdep.c: Include "symfile.h".
5839 (i386_frameless_signal_p): Consider a function to be frameless if
5840 the pc points at the first instruction of the function.
5841 (i386_frame_chain): Handle (generic) call dummies.
5842 (i386_frame_saved_pc): Likewise.
5843 (i386_frame_init_saved_regs): Remove code dealing with call
5844 dummies on the stack.
5845 (i386_push_dummy_frame): Removed.
5846 (i386_call_dummy_words): Removed.
5847 (i386_fix_call_dummy): Removed.
5848 (i386_push_return_address): New function.
5849 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5850 parameter, and don't call get_current_frame.
5851 (i386_pop_frame): New function.
5852 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5853 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5854 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5855 call_dummy_length to 0, set call_dummy_words to NULL, set
5856 sizeof_call_dummy_words to 0, set fix_call_dummy to
5857 generic_fix_call_dummy, set pc_in_call_dummy to
5858 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5859 generic_push_dummy_frame, set push_return_address to
5860 i386_push_return_address and set frame_chain_valid to
5861 generic_file_frame_chain_valid.
5863 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5865 * gdbarch.sh (struct regcache): Add opaque declaration.
5866 (EXTRACT_RETURN_VALUE): New architecture method.
5867 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5868 * gdbarch.h, gdbarch.c: Regenerate.
5869 * arch-utils.c (legacy_extract_return_value): New function.
5870 * arch-utils.h (legacy_extract_return_value): Declare.
5871 * values.c (value_being_returned): Re-enable code handling
5872 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5873 deprecated_grub_regcache_for_registers call to block handling
5874 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5875 (EXTRACT_RETURN_VALUE): Do not define.
5877 2002-07-03 Grace Sainsbury <graces@redhat.com>
5879 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5880 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5881 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5882 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5883 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5884 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5885 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5886 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5887 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5888 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5889 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5890 argument so the function fits the prototype in the architecture
5892 (mcore_pop_frame): Remove argument so the function fits the
5893 prototype. Use get_current_frame instead of the argument.
5894 (mcore_push_arguments): Change type of struct_return so the
5895 function can be used in the architecture vector.
5896 (mcore_store_struct_return): Add.
5897 (mcore_frame_init_saved_regs): Add.
5898 (mcore_gdbarch_init): Add function calls to replace the macros
5899 removed from tm-mcore.h
5901 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5903 * infcmd.c (print_return_value): Remove compatibility code calling
5904 deprecated_grub_regcache_for_registers.
5906 * values.c: Include "regcache.h".
5907 (value_being_returned): Update. Use
5908 deprecated_grub_regcache_for_registers to extract the register
5910 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5911 ``struct regcache''.
5912 * Makefile.in (values.o): Add dependency on $(regcache_h).
5914 * inferior.h (run_stack_dummy): Change type of second parameter to
5915 a ``struct regcache''.
5916 * valops.c (hand_function_call): Change type of retbuf to ``struct
5917 regcache''. Allocate using regcache_xmalloc, clean using
5918 make_cleanup_regcache_xfree.
5919 * infcmd.c (run_stack_dummy): Update. Use
5920 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5922 * regcache.c (do_regcache_xfree): New function.
5923 (make_cleanup_regcache_xfree): New function.
5924 * regcache.h (make_cleanup_regcache_xfree): Declare.
5926 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5928 * event-top.c (command_line_handler): Don't read past
5929 beginning of buffer.
5931 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5933 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5935 (varobj_create): Store frame_id for root.
5936 (varobj_gen_name): Use xasprintf.
5937 (varobj_update): Save and restore frame using get_frame_id() and
5939 (create_child): Use xasprintf.
5940 (new_root_variable): Initialize frame_id.
5941 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5942 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5943 to prevent memory leak.
5945 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5947 * valops.c (hand_function_call): Move declaration of retbuf to
5948 start of function, allocate using malloc, add a cleanup but before
5949 the inf_status cleanup, cleanup the buffer. Rename local variable
5950 old_chain to inf_status_cleanup.
5952 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5954 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5956 * cli/cli-decode.c (cmd_func_p): New function.
5957 (cmd_func): New function.
5959 * command.h: Add cmd_func() and cmd_func_p().
5961 2002-07-03 Grace Sainsbury <graces@redhat.com>
5963 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5964 (REGISTER_SIZE): Remove.
5965 (MAX_REGISTER_RAW_SIZE): Remove.
5966 (REGISTER_VIRTUAL_TYPE): Remove.
5967 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5968 (REGISTER_NAME): Remove.
5969 (USE_GENERIC_DUMMY_FRAMES): Remove.
5970 (CALL_DUMMY): Remove.
5971 (CALL_DUMMY_START_OFFSET): Remove.
5972 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5973 (CALL_DUMMY_LOCATION): Remove.
5974 (FIX_CALL_DUMMY): Remove.
5975 (CALL_DUMMY_ADDRESS): Remove.
5976 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5977 (SAVE_DUMMY_FRAME_TOS): Remove.
5978 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5979 (mcore_register_virtual_type): New function.
5980 (mcore_register_byte): New function.
5981 (mcore_register_size): New function.
5982 (mcore_register_name): New function.
5983 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5984 macros removed from tm-mcore.h.
5985 (mcore_dump_tdep): Add.
5986 (_initialize_mcore_tdep): Add gdbarch_register call.
5988 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5990 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5991 frameless_look_for_prologue, such that we actually call this
5994 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5996 * frame.h (frame_address_in_block): New function.
5998 * blockframe.c (frame_address_in_block): New function extracted
5999 from get_frame_block().
6000 (get_frame_block): Use frame_address_in_block().
6001 (block_innermost_frame): Use frame_address_in_block() to match
6002 the frame pc address against the block boundaries rather than
6003 the frame pc directly. This prevents a failure when a frame pc
6004 is actually a return-address pointing immediately after the end
6007 2002-07-02 Grace Sainsbury <graces@redhat.com>
6009 * MAINTAINERS: Add self under write after approval.
6011 2002-07-02 Grace Sainsbury <graces@redhat.com>
6013 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6014 used in architecture vector. The default is
6015 m68k_local_breakpoint_from_pc.
6016 (m68k_local_breakpoint_from_pc): Add.
6017 (enum): Add register numbers from tm-m68k.h.
6018 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6020 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6021 GDB_MULTI_ARCH_PARTIAL.
6022 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6023 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6025 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6026 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6027 to enum in m68k-tdep.c
6029 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6031 * solib-osf.c (open_map): Compute the list of shared libraries
6032 loaded by the inferior, rather than the list of libraries loaded
6033 by GDB itself. Otherwise, GDB ends up reading the symbols from
6034 the wrong shared libraries...
6036 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6038 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6039 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6041 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6043 (FRAMELESS_SIGNAL): Remove function.
6044 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6045 i386_linux_saved_pc_after_call): Removed.
6046 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6047 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6048 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6050 * i386-tdep.c (i386_frameless_signal_p): New function.
6051 (i386_frame_chain): Deal with frameless signals.
6052 (i386_sigtramp_saved_sp): New function.
6053 (i386_frame_saved_pc): Deal with frameless signals.
6054 (i386_saved_pc_after_call): Make sure the correct value is
6055 returned just after entry into a sigtramp.
6056 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6057 i386fbsd4_sc_sp_offset): New variables.
6058 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6059 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6060 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6061 similiar to what we already did for sc_pc_offset.
6062 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6065 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6067 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6069 * config/i386/tm-x86-64linux.h: New.
6070 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6072 * config/i386/nm-x86-64.h: Rename to ...
6073 * config/i386/nm-x86-64linux.h: ... this one.
6074 * config/i386/x86-64linux.mh: Reflect the above change.
6076 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6078 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6079 with sigcontext_addr. Add sc_sp_offset.
6080 (i386bsd_sigtramp_saved_pc): Remove prototype.
6081 (i386bsd_sicontext_addr): Add prototype.
6082 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6083 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6084 (i386_svr4_sigtramp_saved_pc): Removed.
6085 (i386_svr4_sigcontext_addr): New function.
6086 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6087 Initialize tdep->sigcontext_addr instead. Initialize
6088 tdep->sc_pc_offset and tdep->sc_sp_offset.
6089 (i386_gdbarch_init): Likewise.
6090 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6092 (i386bsd_sigtramp_saved_pc): Remove function.
6093 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6094 Initialize tdep->sigcontext_addr instead. Initialize
6096 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6097 of tdep->sigtramp_saved_pc.
6098 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6099 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6102 * i386-tdep.c (i386_frameless_function_invocation,
6103 i386_frame_num_args, i386_frame_init_saved_regs,
6104 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6105 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6106 i386_extract_return_value, i386_store_return_value,
6107 i386_extract_struct_value_address, i386_register_virtual_type,
6108 i386_register_convertible, i386_register_convert_to_virtual,
6109 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6110 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6113 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6115 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6117 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6118 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6119 this macro. Include "value.h".
6121 2002-06-30 Aidan Skinner <aidan@velvet.net>
6123 * ada-exp.tab.c: remove as it's a generated file
6124 * ada-lex.c: remove as it's a generated file
6126 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6128 * config/i386/tm-i386.h (struct frame_info, struct
6129 frame_saved_regs, struct value, struct type): Remove forward
6132 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6133 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6134 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6135 (FILL_FPXREGSET): Define.
6137 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6139 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6140 i[3456]86-*-netbsd* case.
6141 * config/i386/tm-obsd.h: Removed.
6142 * config/i386/obsd.mt: Removed.
6143 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6145 (MH_CFLAGS): Add -DYYDEBUG=0.
6147 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6148 i386nbsd_sc_pc_offset on OpenBSD too.
6150 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6151 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6152 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6154 * i386bsd-tdep.c: Include "arch-utils.h".
6155 (i386bsd_aout_in_solib_call_trampoline): New function.
6156 (i386bsd_init_abi): Set in_solib_call_trampoline to
6157 i386bsd_aout_in_solib_call_trampoline.
6158 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6159 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6161 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6163 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6164 (struct obstack, struct bcache): Add opaque declarations.
6165 * Makefile.in (macrotab_h): Update
6167 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6169 * blockframe.c (generic_find_dummy_frame): Change return type to
6170 ``struct regcache''.
6171 (struct dummy_frame): Replace field ``registers'' with regcache, a
6172 struct regcache object.
6173 (generic_find_dummy_frame): Update.
6174 (generic_push_dummy_frame): Update. Use regcache_xfree,
6175 regcache_xmalloc and regcache_cpy.
6176 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6178 (deprecated_generic_find_dummy_frame): Update.
6179 (generic_read_register_dummy): Update. Use
6180 regcache_read_as_address.
6181 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6182 (generic_get_saved_register): Update. Use regcache_read.
6184 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6186 * Makefile.in (objfiles_h): Add $(bcache_h).
6187 * objfiles.h: Include "bcache.h".
6189 * Makefile.in (symtab_h): Remove $(bcache_h).
6190 * symtab.h: Do not include "bcache.h".
6192 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6194 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6195 generic_func_frame_chain_valid.
6197 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6199 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6200 * config/i386/tm-fbsd.h: Likewise.
6202 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6204 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6205 generic_unwind_get_saved_register.
6207 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6209 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6210 * regcache.c (supply_register): Add missing argument to
6211 register_buffer call.
6213 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6215 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6216 Solaris /bin/grep does not not like it. From Peter Schauer.
6218 2002-06-26 Tom Tromey <tromey@redhat.com>
6220 * command.h (add_setshow_cmd): Declare.
6221 (add_setshow_cmd_full): Declare.
6222 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6223 returns void. Use add_setshow_cmd_full.
6224 (add_setshow_cmd_full): New function.
6225 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6226 (add_setshow_boolean_cmd): Likewise.
6228 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6230 * config/vax/tm-vax.h: Protect from multiple inclusion.
6231 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6232 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6233 * config/vax/tm-vaxbsd.h: ...here. New file.
6234 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6236 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6238 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6239 (BELIEVE_PCC_PROMOTION): Remove.
6240 (AP_REGNUM): Move to...
6241 * config/vax/nm-vax.h: ...here.
6242 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6243 (vax_breakpoint_from_pc): New function.
6244 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6245 and gdbarch_believe_pcc_promotion.
6247 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6249 * Makefile.in (vax_tdep_h): Define.
6250 (vax-tdep.o): Use $(vax_tdep_h).
6251 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6252 (vax_dump_tdep): New function.
6253 (_initialize_vax_tdep): Register vax_dump_tdep.
6254 * vax-tdep.h: Include osabi.h.
6255 (struct gdbarch_tdep): New.
6257 2002-06-26 Andrew Cagney <cagney@redhat.com>
6259 * frame.h (deprecated_generic_find_dummy_frame): Rename
6260 generic_find_dummy_frame.
6261 * blockframe.c (generic_find_dummy_frame): Make static.
6262 (deprecated_generic_find_dummy_frame): New function.
6263 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6264 generic_find_dummy_frame with deprecated_find_dummy_frame.
6265 (sh64_nofp_frame_init_saved_regs): Ditto.
6266 (sh_fp_frame_init_saved_regs): Ditto.
6267 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6268 (s390_frame_chain): Ditto.
6269 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6271 2002-06-26 Grace Sainsbury <graces@redhat.com>
6273 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6274 gdbarch vector are at the top.
6276 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6277 (FRAME_ARGS_ADDRESS): Remove.
6278 (FRAME_LOCALS_ADDRESS): Remove.
6279 (FRAME_NUM_ARGS): Remove.
6280 (FRAME_ARGS_SKIP): Remove.
6281 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6282 (m68k_gdbarch_init): Add gdbarch initializations for macros
6283 undefined in tm-m68k.h
6285 2002-06-26 Grace Sainsbury <graces@redhat.com>
6287 * monitor.h: Add the function regname to monitor_ops
6288 structure. This way NUM_REGS does not have to be a constant.
6289 * monitor.c (monitor_fetch_register): Added support for regname
6290 function. The function is called if the array regnames is NULL.
6291 (monitor_store_register): Same.
6292 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6294 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6295 cpu32bug_cmds.regname to point to new function.
6296 * abug-rom.c (abug_regname): Same as above.
6297 (init_abug_cmds): Same.
6298 * dbug-rom.c (dbug_regname): Same as above.
6299 (init_dbug_cmds): Same.
6300 * remote-est.c (est_regname): Same.
6301 (init_est_cmds): Same.
6302 * rom68k-rom.c (rom68k_regname): Same.
6303 (init_rom68k_cmds): Same.
6305 2002-06-25 Tom Tromey <tromey@redhat.com>
6307 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6309 2002-06-25 Andrew Cagney <cagney@redhat.com>
6311 * infrun.c (stop_registers): Change variable's type to ``struct
6313 (xmalloc_inferior_status): Delete function.
6314 (free_inferior_status): Delete function.
6315 (normal_stop): Use regcache_cpy.
6316 (struct inferior_status): Change type of fields ``stop_registers''
6317 and ``registers'' to ``struct regcache''.
6318 (write_inferior_status_register): Use regcache_write.
6319 (save_inferior_status): Instead of calling
6320 xmalloc_inferior_status, allocate the inf_status buffer directly.
6321 Use regcache_dup_no_passthrough and regcache_dup to save the
6323 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6324 Replace the stop_registers regcache instead of overriding it. Use
6325 regcache_xfree. Instead of calling free_inferior_status, xfree
6326 the buffer directly.
6327 (discard_inferior_status): Use regcache_xfree. Instead of calling
6328 free_inferior_status, xfree the buffer directly.
6329 (build_infrun): Use regcache_xmalloc.
6330 (_initialize_infrun): Delete redundant call to build_infrun.
6332 * Makefile.in (infcmd.o): Add $(regcache_h).
6334 * infcmd.c: Include "regcache.h".
6335 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6336 obtain the address of `stop_registers' register buffer.
6337 (print_return_value): Ditto.
6339 * inferior.h (struct regcache): Add opaque declaration.
6340 (stop_registers): Change variable's declared type to ``struct
6343 2002-06-24 Tom Tromey <tromey@redhat.com>
6345 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6346 * target.c (initialize_targets): Fixed typo in
6347 trust-readonly-sections `show' documentation.
6349 * main.c: Marked all strings with _().
6351 2002-06-24 Don Howard <dhoward@redhat.com>
6353 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6354 that means max CORE_ADDR+1.
6355 (lookup_mem_region): Ditto.
6356 (mem_info_command): Ditto.
6358 2002-06-24 Grace Sainsbury <graces@redhat.com>
6360 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6361 (REGISTER_BYTES_OK): Remove.
6362 (REGISTER_BYTES): Remove.
6363 (STORE_STRUCT_RETURN): Remove.
6364 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6365 (STORE_RETURN_VALUE): Remove.
6366 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6367 (FRAME_CHAIN): Remove.
6368 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6369 (FRAME_SAVED_PC): Remove.
6370 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6371 (m68k_store_struct_return): Add.
6372 (m68k_deprecated_extract_return_value): Add.
6373 (m68k_deprecated_extract_struct_value_address): Add.
6374 (m68k_store_return_value): Add.
6375 (m68k_frame_chain): Add.
6376 (m68k_frameless_function_invocation): Add.
6377 (m68k_frame_saved_pc): Add.
6378 (m68k_gdbarch_init): added set_gdbarch calls for new
6379 functions and deleted macros.
6381 2002-06-23 Tom Tromey <tromey@redhat.com>
6383 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6384 (ALLDEPFILES): Likewise.
6385 (udiheaders): Removed.
6386 (udip2soc.o): Likewise.
6387 (udi2go32.o): Likewise.
6389 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6391 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6393 * infrun.c (_initialize_infrun): Delete unnecessary call to
6396 * regcache.h: Update comments describing the regcache_cpy family
6398 (regcache_save, regcache_restore): Delete declaration.
6399 (regcache_save_no_passthrough): Delete declaration.
6400 (regcache_restore_no_passthrough): Delete declaration.
6401 * regcache.c (regcache_save): Delete function.
6402 (regcache_save_no_passthrough): Delete function.
6403 (regcache_restore): Delete function.
6404 (regcache_restore_no_passthrough): Delete function.
6406 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6408 * config/m68k/tm-m68k.h: Fix typo.
6409 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6410 (m68k_frame_init_saved_regs): Declare.
6412 2002-06-21 Jim Blandy <jimb@redhat.com>
6414 Remove some vestiges of Harris 88k support.
6415 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6416 register numbering quirk.
6417 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6418 odd symbols occurring in Harris 88k ELF targets.
6420 2002-06-21 Tom Tromey <tromey@redhat.com>
6422 * gdb_locale.h: New file.
6423 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6424 (defs_h): Added gdb_locale.h.
6425 * configure, config.in: Rebuilt.
6426 * configure.in (PACKAGE): Define.
6427 * defs.h: Include gdb_locale.h.
6428 * main.c (captured_main): Call setlocale, bindtextdomain,
6431 2002-06-21 Dave Brolley <brolley@redhat.com>
6433 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6434 * config/frv/frv.mt: New file.
6435 * config/frv/tm-frv.h: New file.
6436 * configure.tgt: Support frv-*-*.
6437 * Makefile.in (frv-tdep.o): New target.
6438 * frv-tdep.c: New file.
6439 * NEWS: Mention frv.
6441 2002-06-21 Dave Brolley <brolley@redhat.com>
6443 * MAINTAINERS: Add self to "Write After Approval" list.
6445 2002-06-21 Grace Sainsbury <graces@redhat.com>
6447 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6448 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6449 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6450 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6451 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6453 * m68k-tdep.c: Include arch-utils.h
6454 (m68k_register_raw_size): Add.
6455 (m68k_register_virtual_size): Add.
6456 (m68k_register_virtual_type): Add.
6457 (m68k_register_name): Add.
6458 (m68k_stack_align): Add.
6459 (m68k_register_byte): Add.
6460 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6463 2002-06-21 Grace Sainsbury <graces@redhat.com>
6465 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6466 m68k_find_saved_regs.
6467 (m68k_pop_frame): Removed saved_regs structure, and replaced
6468 references to it with frame->saved_regs.
6469 (m68k_gdbarch_init): Added function calls to initialize the
6471 (m68k_fix_call_dummy): Add.
6472 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6473 (CALL_DUMMY): Remove.
6474 (CALL_DUMMY_LENGTH): Remove.
6475 (CALL_DUMMY_START_OFFSET): Remove.
6476 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6477 (FIX_CALL_DUMMY): Remove.
6478 (PUSH_DUMMY_FRAME): Remove.
6479 (POP_FRAME): Remove.
6481 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6483 * parse.c (parse_fprintf): New function used to avoid calls to
6484 fprintf in bison parser generated debug code.
6485 * parser-defs.h: Declaration of new parse_fprintf function.
6486 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6487 Set YYDEBUG to 1 by default.
6488 Set YYFPRINTF as parse_fprintf.
6490 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6492 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6494 (pointer_encoding, enum ptr_encoding): New.
6495 (execute_cfa_program): Take care about pointer encoding.
6496 (dwarf2_build_frame_info): Only call parse_frame_info for
6497 .debug_frame and .eh_frame.
6498 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6499 fixed augmentation handling, added relative addressing,
6500 ignore duplicate FDEs. Added comments.
6501 * dwarf2cfi.c: Reindented.
6503 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6505 * event-top.c (command_handler): Don't use space_at_cmd_start
6506 unless there is sbrk() on the host. Assign time and space data
6507 to union fields of the appropriate length.
6509 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6511 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6512 x86_64_register_name. Return type changed to 'const char *'.
6513 (x86_64_register_name2nr): Rename to x86_64_register_number.
6514 (x86_64_gdbarch_init): Update to reflect the change.
6515 * x86-64-tdep.h: Ditto.
6516 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6517 (supply_fpregset): Ditto.
6519 2002-06-19 Andrew Cagney <cagney@redhat.com>
6521 * regcache.h: Update copyright.
6522 (struct regcache, struct gdbarch): Add opaque declarations.
6523 (current_regcache): Declare global variable.
6524 (regcache_read, regcache_write): Add gdbarch parameter.
6525 (regcache_save, regcache_save_no_passthrough)
6526 (regcache_restore, regcache_restore_no_passthrough)
6527 (regcache_dup, regcache_dup_no_passthrough)
6528 (regcache_cpy, regcache_cpy_no_passthrough)
6529 (deprecated_grub_regcache_for_registers)
6530 (deprecated_grub_regcache_for_register_valid)
6531 (regcache_valid_p): Add function declarations.
6533 * regcache.c: Update copyright.
6534 (regcache_descr_handle): New global variable.
6535 (struct regcache_descr): Define.
6536 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6537 (regcache_descr, xfree_regcache_descr): New functions.
6538 (struct regcache): Define.
6539 (regcache_xmalloc, regcache_xfree): New functions.
6540 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6541 (regcache_dup, regcache_dup_no_passthrough): New functions.
6542 (regcache_valid_p, regcache_read_as_address): New functions.
6543 (deprecated_grub_regcache_for_registers): New function.
6544 (deprecated_grub_regcache_for_register_valid): New function.
6545 (current_regcache): New global variable.
6546 (register_buffer): Add regcache parameter. Update calls.
6547 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6548 (read_register_gen, write_register_gen): Update register_buffer
6549 call. Test for legacy_p instead of gdbarch_register_read_p or
6550 gdbarch_register_write_p.
6551 (regcache_collect): Update register_buffer call.
6552 (build_regcache): Rewrite. Use deprecated grub functions.
6553 (regcache_save, regcache_save_no_passthrough): New functions.
6554 (regcache_restore, regcache_restore_no_passthrough): New
6556 (_initialize_regcache): Create the regcache_data_handle. Swap
6557 current_regcache global variable.
6559 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6560 parameter to regcache_read and regcache_write calls.
6561 (sh4_register_read): Ditto.
6562 (sh64_pseudo_register_read): Ditto.
6563 (sh64_register_read): Ditto.
6564 (sh_pseudo_register_write): Ditto.
6565 (sh4_register_write): Ditto.
6566 (sh64_pseudo_register_write): Ditto.
6567 (sh64_register_write): Ditto.
6569 * defs.h (XCALLOC): Define.
6571 2002-06-19 Grace Sainsbury <graces@redhat.com>
6573 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6574 * m68k-tdep.c (m68k_gdbarch_init): Added.
6575 (m68k_dump_tdep): Added.
6577 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6579 * ada-lang.c (fill_in_ada_prototype): Update comment.
6581 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6583 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6585 (mips_abi_string, mips_abi_strings): New.
6586 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6587 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6588 tdep->mips_abi_string. Honor mips_abi_string. Default to
6589 O32 if no ABI is found.
6590 (mips_dump_tdep): Use mips_abi_strings.
6591 (mips_abi_update): New function.
6592 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6593 ``set mips abi'' and ``show mips abi''. Check the size of
6596 2002-06-19 Andrew Cagney <cagney@redhat.com>
6598 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6601 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6603 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6604 current frame using only the first stack size adjustment. All
6605 subsequent size adjustments are not considered to be part of
6606 the "static" part of the current frame.
6607 Compute the address of the saved registers relative to the
6608 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6609 in use in this frame.
6611 2002-06-18 Don Howard <dhoward@redhat.com>
6613 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6614 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6615 suggesting this solution.
6617 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6619 * config/romp/xm-rtbsd.h: Delete file.
6620 * config/romp/rtbsd.mh: Delete file.
6622 2002-06-18 Keith Seitz <keiths@redhat.com>
6624 * breakpoint.c (condition_command): Post breakpoint_modify
6625 when a condition is added to an existing breakpoint.
6626 (commands_command): Likewise for commands.
6627 (set_ignore_count): Likewise for ignore counts.
6628 If no tty, do not simply return, still need to send event
6630 (ignore_command): Only print a newline if the command came
6632 Don't call breakpoints_changed, since this is now properly
6633 handled by set_ignore_count.
6635 2002-06-18 Andrew Cagney <cagney@redhat.com>
6637 * MAINTAINERS: Note that cris-elf target can be compiled with
6639 * cris-tdep.c (cris_register_name): Make return type constant.
6640 (cris_breakpoint_from_pc): Ditto.
6642 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6644 * frame.h (struct frame_info): Change type of context to
6647 2002-06-17 Andrew Cagney <cagney@redhat.com>
6649 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6651 * gdbarch.h, gdbarch.c: Regenerate.
6652 * config/mips/tm-mips.h (mips_register_name): Update.
6653 * i386-tdep.h (i386_register_name): Update.
6654 * mips-tdep.c (mips_register_name): Update
6655 * alpha-tdep.c (alpha_register_name): Update.
6656 * arch-utils.c (legacy_register_name): Update.
6657 * arch-utils.h (legacy_register_name): Update.
6658 * avr-tdep.c (avr_register_name): Update.
6659 * ia64-tdep.c (ia64_register_name): Update.
6660 * i386-tdep.c (i386_register_name): Update.
6661 * sparc-tdep.c (sparc32_register_name): Update.
6662 (sparc64_register_name): Update.
6663 (sparclite_register_name): Update.
6664 (sparclet_register_name): Update.
6665 * sh-tdep.c (sh_generic_register_name): Update.
6666 (sh_sh_register_name): Update.
6667 (sh_sh3_register_name): Update.
6668 (sh_sh3e_register_name): Update.
6669 (sh_sh_dsp_register_name): Update.
6670 (sh_sh3_dsp_register_name): Update.
6671 (sh_sh4_register_name): Update.
6672 (sh_sh64_register_name): Update.
6673 * s390-tdep.c (s390_register_name): Update.
6674 * rs6000-tdep.c (rs6000_register_name): Update.
6675 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6676 (ns32k_register_name_32382): Update.
6677 * d10v-tdep.c (d10v_ts2_register_name): Update.
6678 (d10v_ts3_register_name): Update.
6679 * xstormy16-tdep.c (xstormy16_register_name): Update.
6680 * vax-tdep.c (vax_register_name): Update.
6681 * v850-tdep.c (v850_register_name): Update.
6682 * m68hc11-tdep.c (m68hc11_register_name): Update.
6683 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6684 (am33_register_name): Update.
6686 2002-06-17 Grace Sainsbury <graces@redhat.com>
6688 * m68k-tdep.c: Reindented.
6690 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6692 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6693 list of predefined types.
6695 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6697 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6698 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6699 REGISTER_CONVERT_TO_RAW): Remove defines.
6700 (i386_register_virtual_type, i386_register_convertible,
6701 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6703 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6704 macros mentioned above.
6706 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6707 (i386lynx_saved_pc_after_call): Remove prototype.
6708 * i386ly-tdep.c: Include "i386-tdep.h".
6709 (i386lynx_saved_pc_after_call): Make static. Use
6710 read_memory_nobpt instead of read_memory. Use
6711 read_memory_unsigned_integer instead of read_memory_integer.
6712 (i386lynx_init_abi): New function.
6713 (i386lynx_coff_osabi_sniffer): New function.
6714 (_initialize_i386bsd_tdep): New function.
6716 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6717 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6718 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6719 (i386_fix_call_dummy): Remove prototype.
6720 * i386-tdep.c (i386_call_dummy_words): New variable.
6721 (i386_gdbarch_init): Adjust for removal of the
6722 macros mentioned above.
6724 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6726 * command.h (add_setshow_auto_boolean_cmd): Replace
6727 add_set_auto_boolean_cmd.
6728 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6729 add_set_auto_boolean_cmd.
6730 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6731 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6732 mask-address'' command.
6733 (show_mask_address): Add cmd parameter.
6734 * remote.c (add_packet_config_cmd): Update. Change type of
6735 set_func and show_func to cmd_sfunc_ftype.
6736 (_initialize_remote): Update `set remote Z-packet'
6737 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6738 (show_remote_protocol_e_packet_cmd): Ditto.
6739 (show_remote_protocol_E_packet_cmd): Ditto.
6740 (show_remote_protocol_P_packet_cmd): Ditto.
6741 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6742 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6743 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6744 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6745 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6746 (show_remote_protocol_Z_packet_cmd): Ditto.
6747 (show_remote_protocol_binary_download_cmd): Ditto.
6748 (show_remote_cmd): Pass NULL to all of above.
6750 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6752 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6753 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6754 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6755 POP_FRAME): Remove defines.
6756 (i386_push_arguments, i386_store_struct_return,
6757 i386_extract_return_value, i386_store_return_value,
6758 i386_extract_struct_value_address, i386_push_dummy_frame,
6759 i386_pop_frame): Renove prototypes.
6760 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6761 macros mentioned above.
6763 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6765 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6766 add_set_boolean_cmd.
6767 (add_setshow_cmd): New function.
6768 * command.h (add_setshow_boolean_cmd): Replace
6769 add_set_boolean_cmd.
6770 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6771 and ``set rdiromatzero''.
6772 * maint.c (_initialize_maint_cmds): Update commented out code.
6773 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6774 * target.c (initialize_targets): Update `set
6775 trust-readonly-sections'.
6776 * remote.c (_initialize_remote): Update `set remotebreak'.
6778 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6780 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6781 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6782 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6783 fit into multi-arch framework.
6784 (i386_breakpoint_from_pc): New function.
6785 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6788 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6789 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6790 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6791 (i386_frameless_function_invocation, i386_frame_num_args,
6792 i386_frame_init_saved_regs): Remove prototypes.
6793 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6794 macros mentioned above.
6796 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6798 * cli/cli-decode.c (set_cmd_cfunc): Update.
6799 (set_cmd_sfunc): Update.
6800 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6801 (set_cmd_sfunc, set_cmd_cfunc): Update.
6802 * cli/cli-decode.h: Update.
6804 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6806 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6807 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6809 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6811 * defs.h (auto_boolean): Declare enum.
6812 * command.h (cmd_auto_boolean): Delete enum.
6813 * mips-tdep.c (mask_address_var): Update.
6814 (mips_mask_address_p): Update.
6815 (show_mask_address): Update.
6816 * remote.c (struct packet_config): Update.
6817 (update_packet_config): Update.
6818 (show_packet_config_cmd): Update.
6819 (packet_ok): Update.
6820 (add_packet_config_cmd): Update.
6821 (_initialize_remote):
6822 * command.h: Update.
6823 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6824 (do_setshow_command): Update.
6825 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6826 * cli/cli-decode.h: Update.
6828 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6830 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6831 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6832 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6833 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6834 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6835 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6837 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6838 list of DJGPP COFF targets.
6840 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6841 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6842 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6843 (FP0_REGNUM): Remove define.
6844 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6845 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6846 (i386_register_virtual_size): Remove protoype.
6847 * i386-tdep.c (i386_register_virtual_size): Removed.
6848 (i386_extract_return_value, i386_store_return_value): Use
6849 FP0_REGNUM instead of NUM_FREGS to determine whether the
6850 floating-point registers are available.
6851 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6852 Adjust for removal of macros mentioned above.
6854 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6856 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6858 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6860 (supply_gregset, fill_gregset): Remove use of register keyword and
6861 remove declaration for regmap. Use I386_NUM_GREGS instead of
6862 NUM_REGS and NUM_FREGS.
6863 (FPREGSET_FSAVE_OFFSET): Remove.
6864 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6865 NUM_FREGS to determine whether the floating-point registers are
6868 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6869 gnu_store_registers): Replace usage of NUM_GREGS with
6872 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6873 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6874 usage of NUM_GREGS with I386_NUM_GREGS.
6876 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6878 * i386bsd-nat.c: Include "i386-tdep.h".
6879 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6882 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6883 and associated comment. They no longer make any sense, since we
6884 don't use this file anymore on Linux.
6886 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6887 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6888 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6889 elements in these arrays.
6890 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6893 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6895 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6896 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6898 2002-06-14 Andrew Cagney <cagney@redhat.com>
6900 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6901 EXTRACT_RETURN_VALUE.
6902 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6903 EXTRACT_STRUCT_VALUE_ADDRESS.
6904 * gdbarch.h, gdbarch.c: Regenerate.
6906 * values.c (value_being_returned): Handle
6907 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6908 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6910 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6911 * arm-tdep.c (arm_gdbarch_init): Update.
6912 * avr-tdep.c (avr_gdbarch_init): Update.
6913 * cris-tdep.c (cris_gdbarch_init): Update.
6914 * d10v-tdep.c (d10v_gdbarch_init): Update.
6915 * ia64-tdep.c (ia64_gdbarch_init): Update.
6916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6917 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6918 * s390-tdep.c (s390_gdbarch_init): Update.
6919 * sh-tdep.c (sh_gdbarch_init): Update.
6920 * s390-tdep.c (s390_gdbarch_init): Update.
6921 * sparc-tdep.c (sparc_gdbarch_init): Update.
6922 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6923 * v850-tdep.c (v850_gdbarch_init): Update.
6924 * vax-tdep.c (vax_gdbarch_init): Update.
6925 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6928 * config/arc/tm-arc.h: Update.
6929 * config/d30v/tm-d30v.h: Update.
6930 * config/fr30/tm-fr30.h: Update.
6931 * config/h8300/tm-h8300.h: Update.
6932 * config/h8500/tm-h8500.h: Update.
6933 * config/i386/tm-i386.h: Update.
6934 * config/i386/tm-ptx.h: Update.
6935 * config/i386/tm-symmetry.h: Update.
6936 * config/i960/tm-i960.h: Update.
6937 * config/m32r/tm-m32r.h: Update.
6938 * config/m68k/tm-delta68.h: Update.
6939 * config/m68k/tm-linux.h: Update.
6940 * config/m68k/tm-m68k.h: Update.
6941 * config/m88k/tm-m88k.h: Update.
6942 * config/mcore/tm-mcore.h: Update.
6943 * config/mips/tm-mips.h: Update.
6944 * config/mn10200/tm-mn10200.h: Update.
6945 * config/pa/tm-hppa.h: Update.
6946 * config/pa/tm-hppa64.h: Update.
6947 * config/sparc/tm-sp64.h: Update.
6948 * config/sparc/tm-sparc.h: Update.
6949 * config/sparc/tm-sparclet.h: Update.
6950 * config/z8k/tm-z8k.h: Update.
6952 2002-06-14 Andrew Cagney <cagney@redhat.com>
6954 * Makefile.in (i386_linux_tdep_h): Define.
6955 (i386_tdep_h, i387_tdep_h): Define.
6956 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6957 $(i386_tdep_h) and $(i387_tdep_h).
6958 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6960 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6962 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6963 Already covered by the default.
6965 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6966 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6967 (i386_gdbarch_init): Initialize long_double_format and long_double
6970 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6971 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6973 * config/i386/i386sol2.mh: ... here.
6974 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6975 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6976 (SIGCONTEXT_PC_OFFSET): Remove define.
6977 (IN_SIGTRAMP): Remove define.
6978 * i386-sol2-tdep.c: New file.
6980 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6981 * config/i386/tm-i386nw.h: Removed.
6983 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6984 USE_STRUCT_CONVENTION): Remove defines.
6985 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6986 (get_longjmp_target): Remove prototype.
6987 (IN_SIGTRAMP): Remove define.
6988 (i386bsd_in_sigtramp): Remove prototype.
6989 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6990 function. Update comment accordingly
6991 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6992 (FRAME_SAVED_PC): Remove define.
6993 (i386bsd_frame_saved_pc): Remove prototype.
6994 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6995 GET_LONGJMP_TARGET): Remove defines.
6996 (get_longjmp_target): Remove prototype.
6997 (IN_SIGTRAMP): Remove define.
6998 (i386bsd_in_sigtramp): Remove prototype.
6999 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7000 function. Update comment accordingly
7001 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7002 (FRAME_SAVED_PC): Remove define.
7003 (i386bsd_frame_saved_pc): Remove prototype.
7004 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7006 (USE_STRUCT_CONVENTION): Remove prototype.
7007 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7009 (_initialize_i386bsd_nat): Revise logic to determine some
7010 constants at compile time when compiling a native GDB. Warn if
7011 things don't match up with what we expect.
7012 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7014 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7015 to use date stored in `struct gdbarch_tdep'.
7016 (i386bsd_sigcontext_offset): Remove varaible.
7017 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7018 stored in `struct gdbarch_tdep'.
7019 (i386bsd_frame_saved_pc): Make static.
7020 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7021 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7022 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7023 i386fbsd4_sc_pc_offset): New variables.
7024 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7025 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7027 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7029 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7030 Modify the value of i386fbsd_sigtramp_start and
7031 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7032 i386fbsd_sigtramp_end.
7033 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7036 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7037 define to i386-linux-tdep.h.
7038 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7039 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7041 (i386_linux_register_name, i386_linux_register_byte,
7042 i386_linux_register_raw_size): Remove prototypes.
7043 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7044 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7045 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7046 TARGET_WRITE_PC): Remove defines.
7047 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7048 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7049 i386_linux_write_pc): Remove prototypes.
7050 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7051 (get_longjmp_target): Remove prototype.
7052 * i386-linux-tdep.h: New file.
7053 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7054 * i386-linux-tdep.c: Include "i386-tdep.h" and
7055 "i386-linux-tdep.h".
7056 (i386_linux_register_name, i386_linux_register_byte,
7057 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7058 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7060 (i386_linux_init_abi): New function.
7061 (_initialize_i386_linux_tdep): New function.
7063 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7064 (i386_saved_pc_after_call): Remove prototype.
7065 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7066 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7067 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7068 (i386_register_name, i386_stab_reg_to_regnum,
7069 i386_dwarf_reg_to_regnum): Remove prototypes.
7070 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7071 SIZEOF_SSE_REGS): Remove defines.
7072 (REGISTER_BYTES): Remove define.
7073 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7074 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7075 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7076 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7077 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7078 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7079 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7080 (get_longjmp_target): Remove prototype.
7081 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7082 (sigtramp_saved_pc): Remove define.
7083 (i386v4_sigtramp_saved_pc): Remove prototype.
7084 * config/i386/tm-go32.h (FRAME_CHAIN,
7085 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7086 (i386go32_frame_saved_pc): Remove prototype.
7087 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7088 (get_longjmp_target): Remove prototype.
7089 * i386-tdep.h: Include "osabi.h".
7090 (enum i386_abi): Removed.
7091 (enum struct_return): New enum.
7092 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7093 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7094 sc_pc_offset members.
7095 (i386_gdbarch_register_os_abi): Remove prototype.
7096 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7097 I386_SSE_NUM_REGS): New defines.
7098 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7099 I386_SSE_SIZEOF_REGS): New defines.
7100 (i386_register_name, i386_register_byte, i386_register_raw_size):
7102 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7103 (i386bsd_sigtramp_saved_pc): New prototype.
7104 * i386-tdep.c: Don't include "elf-bfd.h".
7105 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7106 i386_frame_chain, i386_saved_pc_after_call): Make static.
7107 (i386_frame_saved_pc): Rewrite to call architecture dependent
7108 function to deal with signal handlers. Make static.
7109 (i386go32_frame_saved_pc): Removed.
7110 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7112 (i386_get_longjmp_target): New function.
7113 (default_struct_convention, pcc_struct_convention,
7114 reg_struct_convention, valid_conventions, struct_convention): New
7116 (i386_use_struct_convention): New function.
7117 (i386v4_sigtramp_saved_pc): Renamed to
7118 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7119 (i386_pc_in_sigtramp): New function.
7120 (i386_abi_names): Removed.
7121 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7122 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7124 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7125 i386_gdbarch_register_os_abi): Removed.
7126 (struct i386_abi_handler): Removed.
7127 (i386_abi_handler_list): Removed.
7128 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7130 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7131 i386_nw_init_abi): New functions.
7132 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7133 Use set_gdbarch_xxx() calls instead of relying on macros for a
7135 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7136 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7137 Register the various architecture variants defined in this file.
7139 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7141 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7142 (struct main_type): Remove arg_types member. Update comments for
7144 (TYPE_ARG_TYPES): Remove.
7145 (TYPE_FN_FIELD_ARGS): Update.
7146 (smash_to_method_type): Update prototype.
7148 * c-typeprint.c (cp_type_print_method_args): Take method type
7149 instead of argument list. Use new argument layout. Simplify.
7150 (c_type_print_args): Use new argument layout. Simplify.
7151 (c_type_print_base): Update call to cp_type_print_method_args.
7152 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7153 argument; use die->type instead. Update call to
7154 smash_to_method_type.
7155 (read_structure_scope): Update call to dwarf2_add_member_fn.
7156 * gdbtypes.c (allocate_stub_method): Update comment.
7157 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7158 Use new argument layout.
7159 (check_stub_method): Use new argument layout. Don't count
7160 void as an argument.
7161 (print_arg_types): Update comments. Use new argument layout.
7162 (recursive_dump_type): Don't print arg_types member.
7163 * hpread.c (hpread_read_struct_type): Use new argument layout.
7164 (fixup_class_method_type): Likewise.
7165 (hpread_type_lookup): Likewise.
7166 * stabsread.c (read_type): Update calls to read_args and
7167 smash_to_method_type.
7168 (read_args): Use new argument layout. Simplify.
7169 * valops.c (typecmp): Use new argument layout. Update parameters
7170 and comments. Simplify.
7171 (hand_function_call): Use new argument layout.
7172 (search_struct_method): Update call to typecmp.
7173 (find_overload_match): Use new argument layout.
7175 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7177 * NEWS: Mention multithreaded debug support for gdbserver.
7179 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7181 * MAINTAINERS: Mention NEWS.
7183 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7185 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7186 (struct mips_objfile_private, compare_pdr_entries): New.
7187 (non_heuristic_proc_desc): Read the ".pdr" section if it
7190 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7192 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7193 (arm_debug): New static variable.
7194 (_initialize_arm_tdep): Add ``set debug arm'' command.
7196 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7198 * Makefile.in (sim_arm_h): Define.
7199 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7200 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7201 (arm_register_sim_regno): New function, map an internal REGNUM
7202 onto a simulator register number.
7203 (arm_gdbarch_init): Set register_sim_regno.
7205 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7207 * MAINTAINERS: Add self.
7209 2002-06-11 Jim Blandy <jimb@redhat.com>
7211 * source.c (source_info): Mention whether the symtab has
7212 information about preprocessor macros.
7214 Call the command `info macro', not `show macro'.
7215 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7217 (_initialize_macrocmd): Register `info_macro_command' in
7218 `infolist', not `showlist'.
7220 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7222 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7223 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7224 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7225 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7226 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7228 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7229 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7230 (_initialize_mips_tdep): Remove dead code.
7231 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7232 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7233 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7234 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7235 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7236 MIPS_LAST_FP_ARG_REGNUM): Remove.
7238 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7240 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7241 (unwind_tmp_obstack_free, parse_frame_info)
7242 (update_context, cfi_read_fp, cfi_write_fp)
7243 (cfi_frame_chain, cfi_init_extra_frame_info)
7244 (cfi_virtual_frame_pointer): Use the above function.
7245 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7247 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7249 * v850-tdep.c (v850_type_is_scalar): New function.
7250 (v850_use_struct_convention): Match current gcc implementation
7251 as close as possible.
7252 (v850_push_arguments): Fix stack_offset handling. Don't write
7253 struct_addr into register. This is done by v850_store_struct_return.
7254 (v850_extract_return_value): Care for structs.
7255 (v850_store_return_value): Ditto.
7256 (v850_store_struct_return): Actually write address.
7258 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7260 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7261 without debug information too.
7263 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7265 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7266 Make multi-arch pure.
7267 * gdbarch.h, gdbarch.c: Re-generate.
7268 * arm-tdep.c (arm_print_float_info): Update.
7269 * arch-utils.h (default_print_float_info): Update.
7270 * arch-utils.c (default_print_float_info): Update.
7271 * infcmd.c (float_info): Update call.
7273 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7275 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7276 the front of the initialize list.
7278 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7280 * infrun.c (struct inferior_status): Replace fields
7281 selected_frame_address and selected_level with field
7283 (save_inferior_status): Update. Use get_frame_id.
7284 (struct restore_selected_frame_args): Delete.
7285 (restore_selected_frame): Update. Use frame_find_by_id.
7286 (restore_inferior_status): Update.
7288 * breakpoint.h (struct breakpoint): Change type of
7289 watchpoint_frame to frame_id.
7290 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7291 call to get_current_frame.
7292 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7294 (watchpoint_check): Use frame_find_by_id.
7296 * frame.h (record_selected_frame): Delete declaration.
7297 * stack.c (record_selected_frame): Delete function.
7299 * frame.h (struct frame_id): Define.
7300 (get_frame_id): Declare.
7301 (frame_find_by_id): Declare.
7302 * frame.c (frame_find_by_id): New function.
7303 (get_frame_id): New function.
7305 2002-06-10 Andrey Volkov <avolkov@transas.com>
7307 * ser-e7kpc.c: Fix duplicated define and call of
7308 _initialize_ser_e7000pc
7310 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7312 * signals/signals.c (target_signal_from_host): Fix #ifdef
7314 (do_target_signal_to_host): Likewise.
7316 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7318 * mips-tdep.c (mips_find_abi_section): New function.
7319 (mips_gdbarch_init): Call it.
7321 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7323 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7324 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7325 after Andrew's 2002-06-08 gdbarch change.
7327 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7329 * i386-linux-nat.c (suppy_gregset): Don't supply
7330 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7332 (fill_gregset): Don't fetch it under the same circumstances.
7334 2002-06-09 Andrew Cagney <cagney@redhat.com>
7336 * Makefile.in (callback_h): Define.
7337 (remote_sim_h): Update path to remote-sim.h.
7338 (remote-rdp.o): Add $(callback_h).
7339 (remote-sim.o): Use $(callback_h).
7340 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7341 * remote-rdp.c: Include "gdb/callback.h".
7343 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7345 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7346 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7348 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7350 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7351 * rdi-share/serpardr.c: Ditto.
7352 * rdi-share/unixcomm.c: Ditto.
7353 * rdi-share/serdrv.c: Ditto.
7354 * rdi-share/hostchan.h: Ditto.
7355 * rdi-share/hostchan.c: Ditto.
7356 * rdi-share/host.h: Ditto.
7357 * rdi-share/devsw.c: Ditto.
7359 * objfiles.h: Change type of obj_private to void pointer.
7360 * pa64solib.c: Update copyright. Don't include "assert.h", use
7361 strcmp instead of STREQ, use LONGEST, do not use PTR
7362 * somsolib.c: Ditto.
7364 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7365 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7366 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7368 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7370 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7371 (default_get_saved_register): Delete function.
7372 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7373 generic_unwind_get_saved_register.
7374 * gdbarch.h, gdbarch.c: Re-generate.
7376 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7378 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7379 generic_func_frame_chain_valid.
7380 * gdbarch.h, gdbarch.c: Re-generate.
7381 * blockframe.c (generic_func_frame_chain_valid): Only check
7382 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7383 passing FP to PC_IN_CALL_DUMMY.
7386 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7388 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7389 (register_gdbarch_data): Initialize init_p.
7390 (gdbarch_data): Initialize data pointer using the init function.
7391 (init_gdbarch_data): Delete function.
7392 (gdbarch_update_p): Update.
7393 (initialize_non_multiarch): Update.
7394 (struct gdbarch): Add field initialized_p.
7395 * gdbarch.h, gdbarch.c: Re-generate.
7397 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7399 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7400 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7401 better do the things actually here.
7402 * x86-64-tdep.c (x86_64_register_name2nr): New.
7403 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7404 (x86_64_gdbarch_init): Respect the above change.
7405 * x86-64-tdep.h (x86_64_register_name2nr)
7406 (x86_64_register_nr2name): Add prototypes.
7407 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7409 2002-06-06 Michael Snyder <msnyder@redhat.com>
7411 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7412 Delete extra braces and re-indent.
7413 (d10v_store_return_value): Char return values
7414 must be shifted over by one byte in R0.
7415 (d10v_extract_return_value): Delete extra braces, re-indent.
7417 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7419 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7420 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7421 (d10v_integer_to_address): Rewrite.
7422 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7423 the d10v specific functions which take care of converting to the
7426 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7428 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7429 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7431 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7433 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7435 * config/tm-linux.h: Ditto.
7436 * config/alpha/tm-alphalinux.h: Ditto.
7437 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7438 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7439 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7440 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7441 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7442 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7443 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7444 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7445 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7446 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7447 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7448 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7449 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7450 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7451 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7452 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7453 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7454 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7455 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7456 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7457 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7458 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7459 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7460 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7461 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7462 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7463 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7464 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7465 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7466 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7467 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7468 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7469 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7470 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7471 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7472 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7473 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7475 2002-05-04 Aidan Skinner <aidan@velvet.net>
7477 * ada-exp.tab.c: New file
7478 * ada-exp.y: New file
7479 * ada-lang.c: New file
7480 * ada-lang.h: New file
7481 * ada-lex.c: New file
7482 * ada-lex.l: New file
7483 * ada-tasks.c: New file
7484 * ada-typeprint.c: New file
7485 * ada-valprint.c: New file
7487 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7489 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7490 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7492 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7494 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7495 insetead of ppc-linux-tdep.o.
7496 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7497 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7499 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7501 2002-05-07 Christian Groessler <chris@groessler.org>
7502 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7503 bit register contents for little endian hosts.
7505 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7507 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7510 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7512 * gdbarch.h: Regenerate.
7514 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7516 * MAINTAINERS: Add everyone to write-after-approval list.
7518 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7520 * stack.c (frame_info): Use frame_register_unwind instead of
7521 saved_regs. Mention when the SP is on the stack or in a register.
7523 * frame.h (frame_register_unwind_ftype): Define. Document.
7524 (struct frame_info): Add field register_unwind and
7525 register_unwind_cache.
7526 (frame_register_unwind): Declare.
7527 (generic_unwind_get_saved_register): Declare.
7529 * frame.c (frame_register_unwind): New function.
7530 (generic_unwind_get_saved_register): New function.
7532 * blockframe.c (generic_call_dummy_register_unwind): New function.
7533 (frame_saved_regs_register_unwind): New function.
7534 (set_unwind_by_pc): New function.
7535 (create_new_frame): New function.
7536 (get_prev_frame): New function.
7538 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7540 * a29k-share/: Delete directory.
7541 * remote-vx29k.c: Delete file.
7543 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7545 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7546 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7548 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7550 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7551 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7554 (sparcnbsd-tdep.o): New dependency lists.
7555 * NEWS: Note new UltraSPARC NetBSD native configuration.
7556 * configure.host (sparc64-*-netbsd*): New host.
7557 * configure.tgt (sparc-*-netbsdelf*)
7558 (sparc-*-netbsd*): Set gdb_target to nbsd.
7559 (sparc64-*-netbsd*): New target.
7560 * sparc64nbsd-nat.c: New file.
7561 * sparcnbsd-nat.c: New file.
7562 * sparcnbsd-tdep.c: New file.
7563 * sparcnbsd-tdep.h: New file.
7564 * config/sparc/nbsd.mt: New file.
7565 * config/sparc/nbsd64.mh: New file.
7566 * config/sparc/nbsd64.mt: New file.
7567 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7568 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7570 * config/sparc/nbsdaout.mt: Remove.
7571 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7572 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7574 * config/sparc/nbsdelf.mt: Remove.
7575 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7576 sparc-nat.c compatiblity defines.
7577 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7578 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7579 * config/sparc/tm-nbsd64.h: New file.
7580 * config/sparc/tm-nbsdaout.h: Remove.
7581 * config/sparc/xm-nbsd.h: Remove.
7583 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7585 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7586 * sparc-tdep.c: Include osabi.h.
7587 (gdbarch_tdep): Add osabi member.
7588 (_initialize_sparc_tdep): Use gdbarch_register.
7589 (sparc_gdbarch_init): Use generic OS ABI framework.
7590 (sparc_dump_tdep): New function.
7592 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7594 * corefile.c (do_captured_read_memory_integer): Return non-zero
7596 (safe_read_memory_integer): Copy result of memory read when
7597 status is non-zero. Also, add comments.
7599 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7601 * Makefile.in (ppc_tdep_h): Define.
7604 (rs6000-tdep.o): Use $(ppc_tdep_h).
7607 (ppcnbsd-tdep.o): New dependency lists.
7608 * ppc-tdep.h: Use generic OS ABI framework.
7609 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7610 (ppc_linux_init_abi): New functions.
7611 (ppc_sysv_abi_broken_use_struct_convention)
7612 (ppc_sysv_abi_use_struct_convention)
7613 (ppc_sysv_abi_push_arguments): Move to...
7614 * ppc-sysv-tdep.c: ...here.
7615 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7616 * rs6000-tdep.c (process_note_abi_tag_sections)
7617 (get_elfosabi): Remove.
7618 (rs6000_gdbarch_init): Use generic OS ABI framework.
7619 (rs6000_dump_tdep): New function.
7620 (_initialize_rs6000_tdep): Use gdbarch_register.
7621 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7622 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7623 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7624 of ppc-linux-tdep.o.
7625 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7626 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7627 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7628 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7629 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7630 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7632 2002-05-29 Jim Blandy <jimb@redhat.com>
7634 * macroscope.c (default_macro_scope): Put `void' in empty argument
7637 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7639 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7640 * arch-utils.c: Include "sim-regno.h".
7641 * gdbarch.sh: Don't include "sim-regno.h".
7642 * gdbarch.h, gdbarch.c: Regenerate.
7643 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7645 * arch-utils.h (legacy_register_sim_regno): To here.
7646 * remote-sim.c (legacy_register_sim_regno): Move function from
7648 * arch-utils.c (legacy_register_sim_regno): To here.
7650 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7652 * sim-regno.h: New file.
7653 * Makefile.in (sim_regno_h): Define.
7654 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7655 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7656 (legacy_register_sim_regno): New function.
7657 (one2one_register_sim_regno): New function.
7658 (gdbsim_fetch_register): Rewrite.
7659 (gdbsim_store_register): Only store a register when
7660 REGISTER_SIM_REGNO is valid.
7661 * d10v-tdep.c: Include "sim-regno.h".
7662 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7663 (d10v_ts3_register_sim_regno): Ditto.
7664 * gdbarch.sh: Include "sim-regno.h".
7665 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7666 * gdbarch.h, gdbarch.c: Regenerate.
7667 * arch-utils.h (default_register_sim_regno): Delete declaration.
7668 * arch-utils.c (default_register_sim_regno): Delete function.
7670 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7672 * ppcnbsd-nat.c: Rewrite.
7673 * ppcnbsd-tdep.c: New file.
7674 * ppcnbsd-tdep.h: New file.
7675 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7676 solib.o, and solib-svr4.o.
7677 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7678 nbsd-tdep.o, and corelow.o.
7680 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7682 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7683 `tr' and `sed'. Mention that `broken' targets are not expected to
7686 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7688 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7689 Let PC point right after the prologue before looking up symbols.
7691 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7693 * i386-tdep.c (i386_register_virtual_type): Return
7694 builtin_type_vec128i for SSE registers.
7696 * gdbtypes.h (builtin_type_vec128i): Declare.
7698 * gdbtypes.c (build_builtin_type_vec128i): New function.
7699 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7700 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7701 (build_gdbtypes): Initialize new builtin vector types.
7702 (_initialize_gdbtypes): Register new vector types with gdbarch.
7704 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7706 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7707 since it has been multi-arch'd.
7708 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7709 Move Alpha and VAX multi-arch news entries to same section
7710 as other multi-arch news.
7712 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7714 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7715 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7716 static. Rename some register numbers to put them in ns32k-tdep
7718 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7719 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7721 (_initialize_ns32k_tdep): Use gdbarch_register.
7722 * ns32k-tdep.h: New file.
7723 * ns32knbsd-tdep.c: New file.
7724 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7725 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7726 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7727 REGISTER_BYTES, REGISTER_BYTE): Remove.
7728 * config/ns32k/tm-ns32k.h: New file.
7729 * config/ns32k/tm-umax.h: Remove.
7731 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7733 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7734 ns32k_store_struct_return, ns32k_extract_return_value,
7735 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7737 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7738 ns32k_saved_pc_after_call.
7739 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7740 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7741 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7742 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7743 ns32k_extract_struct_value_address.
7745 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7747 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7748 ns32k_fix_call_dummy): New.
7749 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7750 ns32k_call_dummy_words.
7751 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7752 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7753 CALL_DUMMY_NARGS): Remove.
7754 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7756 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7758 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7759 ns32k_frame_saved_pc, ns32k_frame_args_address,
7760 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7761 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7762 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7763 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7764 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7765 (BREAKPOINT): Remove..
7766 (FRAME_CHAIN): Define as ns32k_frame_chain.
7767 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7768 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7769 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7770 (FRAME_FIND_SAVED_REGS): Remove.
7771 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7772 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7773 (POP_FRAME): Define as ns32k_pop_frame.
7775 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7777 * ns32k-tdep.c (ns32k_register_byte_32082,
7778 ns32k_register_byte_32382, ns32k_register_raw_size,
7779 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7781 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7782 ns32k_register_byte_32382.
7783 * config/ns32k/tm-umax.h: Update copyright years.
7784 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7785 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7786 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7787 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7788 (ns32k_get_enter_addr): Fix prototype.
7790 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7792 * ns32k-tdep.c: Update copyright years.
7793 (ns32k_register_name_32082): New function.
7794 (ns32k_register_name_32382): Ditto.
7795 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7796 (REGISTER_NAME): Define as ns32k_register_name_32382.
7797 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7798 (REGISTER_NAME): Define as ns32k_register_name_32082.
7800 2002-05-24 Jim Blandy <jimb@redhat.com>
7802 * dwarf2read.c (free_line_header): Use xfree, not free.
7804 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7806 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7807 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7809 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7811 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7813 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7815 From Ross Alexander at NEC Europe:
7816 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7818 2002-05-23 Michael Snyder <msnyder@redhat.com>
7820 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7821 for input, rather than parse_and_eval_address.
7823 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7825 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7826 * Makefile.in (sim_d10v_h): Update definition.
7828 2002-05-24 Andrew Cagney <cagney@redhat.com>
7830 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7831 change `2002-05-22 Michael Snyder' below.
7832 (d10v_push_arguments): Ditto.
7833 (d10v_extract_return_value): Ditto.
7835 2002-05-23 Jim Blandy <jimb@redhat.com>
7837 * macrotab.c (check_for_redefinition): Don't complain if the new
7838 definition is the same as the previous one. Take more arguments
7839 to allow the comparison.
7840 (macro_define_object, macro_define_function): Pass more arguments
7841 to check_for_redefinition.
7843 2002-05-22 Michael Snyder <msnyder@redhat.com>
7845 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7846 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7847 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7848 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7849 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7850 Add a temp variable to save a call (and a memory read).
7851 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7852 if possible (so that PC_IN_CALL_DUMMY will work).
7854 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7856 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7858 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7860 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7862 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7863 (dwarf2_build_frame_info): Add offset to fde->initial_location
7864 so that frames of shared libraries are mapped correctly.
7865 (execute_stack_op): Change type of 'result' from ULONGEST to
7868 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7870 * config/alpha/tm-nbsd.h: Include solib.h.
7872 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7874 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7875 assumptions about the host's byte order.
7877 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7879 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7881 * alphanbsd-tdep.c: Include solib-svr4.h.
7882 * shnbsd-tdep.c: Ditto.
7884 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7886 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7887 nbsd-tdep.h to dependency list.
7888 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7889 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7890 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7891 nbsdaout.mh and nbsdelf.mh consistently.
7892 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7893 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7894 nbsdaout.mt and nbsdelf.mh consistently.
7895 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7896 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7897 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7898 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7899 a.out shared library stuff from here...
7900 * config/nm-nbsdaout.h: ...to here.
7901 * config/tm-nbsd.h: Remove.
7902 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7903 * config/arm/nbsd.mh: Remove.
7904 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7906 * config/arm/nbsdaout.mh: New file.
7907 * config/arm/nbsdelf.mh: New file.
7908 * config/arm/nm-nbsdaout.h: New file.
7909 * config/i386/nbsd.mh: Remove.
7910 * config/i386/nbsd.mt: Remove.
7911 * config/i386/nbsdaout.mh: New file.
7912 * config/i386/nbsdaout.mt: New file.
7913 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7914 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7915 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7916 i386_register_u_addr): Remove.
7917 * config/i386/nm-nbsdaout.h: New file.
7918 * config/i386/nm-nbsdelf.h: Remove.
7919 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7920 (USE_STRUCT_CONVENTION): Remove.
7921 * config/i386/tm-nbsdaout.h: New file.
7922 * config/i386/tm-nbsdelf.h: Remove.
7923 * config/m68k/nbsd.mh: Remove.
7924 * config/m68k/nbsd.mt: Remove.
7925 * config/m68k/nbsdaout.mh: New file.
7926 * config/m68k/nbsdaout.mt: New file.
7927 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7928 * config/m68k/nm-nbsdaout.h: New file.
7929 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7930 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7931 * config/ns32k/nbsd.mh: Remove.
7932 * config/ns32k/nbsd.mt: Remove.
7933 * config/ns32k/nbsdaout.mh: New file.
7934 * config/ns32k/nbsdaout.mt: New file.
7935 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7936 * config/ns32k/nm-nbsdaout.h: New file.
7937 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7938 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7939 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7940 (SVR4_SHARED_LIBS): Remove.
7941 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7942 * config/sparc/nbsd.mh: Remove.
7943 * config/sparc/nbsd.mt: Remove.
7944 * config/sparc/nbsdaout.mh: New file.
7945 * config/sparc/nbsdaout.mt: New file.
7946 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7947 * config/sparc/nbsdelf.mt: New file.
7948 * config/sparc/nm-nbsdaout.h: New file.
7949 * config/sparc/nm-nbsdelf.h: Remove.
7950 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7951 * config/sparc/tm-nbsdaout.h: New file.
7953 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7955 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7957 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7959 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7961 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7963 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7965 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7967 * NEWS: Note new MIPS NetBSD native configuration.
7968 * configure.host (mips*-*-netbsd*): New host.
7969 * configure.tgt (mips*-*-netbsd*): New target.
7970 * mipsnbsd-nat.c: New file.
7971 * mipsnbsd-tdep.c: New file.
7972 * mipsnbsd-tdep.h: New file.
7973 * config/mips/nbsd.mh: New file.
7974 * config/mips/nbsd.mt: New file.
7975 * config/mips/nm-nbsd.h: New file.
7976 * config/mips/tm-nbsd.h: New file.
7978 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7980 * Makefile.in (SFILES): Add osabi.c.
7981 (COMMON_OBS): Add osabi.o.
7982 (osabi.o): New dependency list.
7983 * osabi.c: New file.
7984 * osabi.h: New file.
7985 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7987 * Makefile.in (alpha_tdep_h): Define and use instead of
7989 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7990 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7992 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7993 * alpha-tdep.h: Include osabi.h.
7994 (alpha_abi): Remove.
7995 (gdbarch_tdep): Use generic OS ABI framework.
7996 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7997 gdbarch_register_osabi.
7998 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7999 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8000 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8002 * Makefile.in (sh_tdep_h): Add osabi.h.
8003 * sh-tdep.h (sh_osabi): Remove.
8004 (gdbarch_tdep): Use generic OS ABI framework.
8005 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8006 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8007 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8008 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8010 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8011 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8012 gdbarch_register_osabi.
8013 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8014 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8015 (get_elfosabi): Rename to...
8016 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8017 ABI framework support routines.
8018 (arm_gdbarch_init): Use generic OS ABI framework.
8019 (arm_dump_tdep): Likewise.
8020 (_initialize_arm_tdep): Likewise.
8021 * arm-tdep.h: Include osabi.h.
8023 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8025 (arm_gdbarch_register_os_abi): Remove prototype.
8026 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8027 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8029 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8030 * mips-tdep.c: Include osabi.h.
8031 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8034 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8036 * h8300-tdep.c: Fix formatting.
8038 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8040 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8041 printing vector registers.
8043 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8045 From Fernando Nasser:
8046 * remote.c (remote_async_open_1): Re-throw the exception when the
8048 (remote_cisco_open): Ditto.
8049 (remote_open_1): Ditto.
8051 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8053 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8054 (remote_start_remote): Add uiout parameter. Pass through to
8055 remote_start_remote_dummy.
8056 (remote_open_1): Use catch_exception instead of catch_errors.
8057 (remote_async_open_1): Ditto.
8058 (remote_cisco_open): Ditto.
8060 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8062 * remote.c (remote_start_remote): Replace PTR with void pointer.
8063 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8066 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8068 * gdb_indent.sh: Allow the script to be run in the sim directory.
8070 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8072 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8073 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8075 * corelow.c (core_open): Only call set_gdbarch_from_file if
8078 2002-05-17 Andrey Volkov <avolkov@transas.com>
8080 * h8300-tdep.c: Add support of EXR register
8081 * config/h8300/tm-h8300.h: Ditto.
8083 2002-05-17 Andrey Volkov <avolkov@transas.com>
8085 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8087 2002-05-17 Andrey Volkov <avolkov@transas.com>
8089 * h8300-tdep.c: Change literal regnums to REGNO.
8091 2002-05-17 Jim Blandy <jimb@redhat.com>
8093 * NEWS: Note addition of macro support.
8095 Expand preprocessor macros in C expressions.
8096 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8097 (scan_macro_expansion, scanning_macro_expansion,
8098 finished_macro_expansion): New function declarations.
8099 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8100 variable declarations.
8101 * parser-defs.h (expression_context_pc): New declaration.
8102 * parse.c (expression_context_pc): New variable.
8103 (parse_exp_1): Set expression_context_pc, as well as
8104 expression_context_block.
8105 * c-exp.y (yylex): If we're not already reading the result of a
8106 macro expansion, try to macro-expand the next token. When we're
8107 done scanning a macro expansion, switch back to the mainline text.
8108 Commas and `if's in a macro's expansion don't terminate the input.
8109 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8110 (macro_original_text, macro_expanded_text,
8111 expression_macro_lookup_func, expression_macro_lookup_baton): New
8113 (scan_macro_expansion, scanning_macro_expansion,
8114 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8115 c_preprocess_and_parse): New functions.
8116 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8117 c_preprocess_and_parse, instead of c_parse.
8118 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8119 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8121 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8123 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8124 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8125 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8127 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8129 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8131 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8133 * Makefile.in (sh_tdep_h): Define and use.
8134 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8135 register enum): Move to...
8136 * * sh-tdep.h: ...here.
8137 * sh-tdep.c: Include sh-tdep.h.
8138 * sh3-rom.c: Likewise.
8139 * shnbsd-tdep.c: Likewise.
8141 2002-05-16 Michael Snyder <msnyder@redhat.com>
8143 * arm-tdep.c: Spelling fix in comment.
8145 2002-05-16 Jim Blandy <jimb@redhat.com>
8147 Add commands for manually expanding macros and showing their
8149 * macrocmd.c, macroscope.c, macroscope.h: New files.
8150 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8151 (macroscope_h): New variable.
8152 (HFILES_NO_SRCDIR): Add macroscope.h.
8153 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8154 (macroscope.o, macrocmd.o): New rules.
8156 Teach the Dwarf 2 reader to read macro information.
8157 * dwarf2read.c: #include "macrotab.h".
8158 (dwarf_macinfo_buffer): New variable.
8159 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8161 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8162 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8163 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8164 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8165 dwarf2_macro_spaces_in_definition): New complaints.
8166 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8167 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8168 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8169 the partial symbol table.
8170 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8171 from what's recorded in the partial symbol table.
8172 (read_file_scope): If the compilation unit has a
8173 `DW_AT_macro_info' attribute, read its macro information.
8174 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8176 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8179 * ser-tcp.c: Don't include <netinet/udp.h>.
8181 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8183 * MAINTAINERS: Update my email address.
8185 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8187 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8188 include file of the same name.
8190 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8192 * configure.tgt: Mark v850 as multi-arched.
8193 * config/v850/tm-v850.h: Remove file.
8194 * config/v850/v850.mt: Eliminate TM_FILE.
8196 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8198 * v850-tdep.c: Full multi-arch.
8199 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8200 Define GDB_MULTI_ARCH to 2.
8202 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8204 * p-exp.y (current_type): New static variable.
8205 Carries the type of the expression at the position that is parsed.
8206 (push_current_type, pop_current_type): Two new functions. Used
8207 to store/restore current_type in expression on specific tokens.
8208 (search_field): New static variable. Set to one after parsing a point
8209 as at that point only a FIELDNAME token should be searched.
8210 (FIELDNAME): New token. After a point only a token belonging to
8211 current_type type definition is allowed.
8212 (all over token rules): reset and change current_type according
8214 (exp '[' rule): insert implicit array index field if
8215 exp is a pascal string type.
8217 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8219 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8220 frame info. Use frame_info's saved_regs instead of matching member
8221 in extra_frame_info throughout.
8222 (v850_frame_init_saved_regs): New function.
8223 (v850_init_extra_frame_info): Move most functionality into
8224 v850_frame_init_saved_regs().
8225 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8226 (v850_frame_find_saved_regs): Remove declaration.
8227 (FRAME_FIND_SAVED_REGS): Remove definition.
8228 (v850_frame_init_saved_regs): Add declaration.
8229 (FRAME_INIT_SAVED_REGS): Add definition.
8231 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8233 * v850-tdep.c: Begin multi-arch'ing v850.
8234 (v850_target_architecture_hook): Remove function.
8235 (v850_gdbarch_init): New function. Add code previously in
8236 v850_target_architecture_hook().
8237 (_initialize_v850_tdep): Don't set target_architecture_hook.
8238 Call register_gdbarch_init() instead.
8240 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8242 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8243 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8244 (fixup_class_method_type): Likewise.
8246 2002-05-15 Jim Blandy <jimb@redhat.com>
8248 Add macro structures to GDB's symbol tables. Nobody puts anything
8250 * symtab.h (struct symtab): New member: `macro_table'.
8251 * buildsym.h (pending_macros): New global variable.
8252 * buildsym.c: #include "macrotab.h".
8253 (buildsym_init): Initialize `pending_macros'.
8254 (end_symtab): If we found macro information while reading a CU's
8255 debugging info, do build a symtab structure for it. Make the
8256 symtab point to the macro information, and clear the
8257 `pending_macros' pointer which held it while we were reading the
8259 (really_free_pendings): Free any pending macro table.
8260 * objfiles.h (struct objfile): New member: `macro_cache'.
8261 * objfiles.c (allocate_objfile): Set allocate and free functions
8262 for the macro cache's objstack.
8263 (free_objfile): Empty the macro cache's obstack.
8264 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8265 set new allocate and free functions for it.
8266 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8267 free functions for the macro cache's objstack. (Why is this
8268 function building its own objfile?)
8269 * symmisc.c (print_objfile_statistics): Print statistics on the
8271 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8273 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8275 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8276 (REGISTER_U_ADDR): Delete definition.
8277 (arm_register_u_addr): Delete declaration.
8279 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8281 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8282 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8284 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8286 * regcache.c (register_valid): Revise comments refering to "Not
8287 available" and "unavailable".
8288 * frame.c (frame_register_read): Ditto.
8289 * findvar.c (value_of_register): Ditto.
8291 2002-05-15 Andrew Cagney <cagney@redhat.com>
8293 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8294 (remote-sim.o): Update dependencies.
8295 (d10v-tdep.o): Specify dependencies.
8296 (sim_d10v_h): Define.
8298 2002-05-14 Jim Blandy <jimb@redhat.com>
8300 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8301 * macrotab.c (macro_lookup_inclusion, find_definition,
8302 new_macro_table): Same.
8304 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8305 not `! strcmp ()'. This is a dubious improvement.
8306 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8308 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8309 although it's not necessary, to avoid a warning.
8311 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8313 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8314 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8315 TYPE_INSTANCE_FLAGS.
8316 (struct main_type): New.
8317 (struct type): Move most members to struct main_type. Change
8318 cv_type and as_type to new type_chain member. Add instance_flags.
8319 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8320 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8321 (finish_cv_type): Remove prototype.
8322 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8324 (alloc_type_instance): New function.
8325 (smash_type): New function.
8326 (make_pointer_type, make_reference_type, make_function_type)
8327 (smash_to_member_type, smash_to_method_type): Call smash_type.
8328 (make_qualified_type): New function.
8329 (make_type_with_address_space): Call make_qualified_type.
8330 (make_cv_type): Likewise.
8331 (finish_cv_type): Remove unnecessary function.
8332 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8333 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8334 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8335 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8336 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8337 * hpread.c (hpread_read_struct_type): Likewise.
8338 * stabsread.c (read_struct_type): Likewise.
8340 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8342 * configure.tgt: Add a catch all sh* target, for cases like
8343 sh[2,3,4]-elf and sh-hms.
8345 2002-05-14 Keith Seitz <keiths@redhat.com>
8347 * event-loop.c (create_file_handler): Don't do anything but
8348 update data when we are given a fd which we are already
8351 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8353 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8354 (update_context): Use __func__ in warnings.
8356 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8358 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8359 and tcp_close to net_open and net_close.
8360 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8361 using UDP if requested. Don't try to disable Nagle on UDP
8363 * remote.c (remote_serial_open): New function. Warn about UDP.
8364 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8366 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8368 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8370 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8372 * configure.tgt: Remove sh-hms target.
8373 * MAINTAINERS: Don't list sh-hms as a separate target.
8375 2002-05-13 Jim Blandy <jimb@redhat.com>
8377 Add first preprocessor macro-expansion files.
8378 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8379 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8380 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8381 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8382 (COMMON_OBS): Add macrotab.o, macroexp.o.
8383 (macroexp.o, macrotab.o): New rules.
8385 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8387 * config/m88k/tm-m88k.h: Update copyright.
8388 (m88k_target_write_pc): Declare
8389 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8390 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8391 (SHIFT_INST_REGS): Update definition.
8392 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8393 using old definition of TARGET_WRITE_PC.
8394 * regcache.c (generic_target_write_pc): Delete code handling
8396 * gdbarch.sh (NNPC_REGNUM): Delete.
8397 * gdbarch.h, gdbarch.c: Regenerate.
8399 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8401 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8404 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8406 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8407 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8408 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8410 * c-typeprint.c (cp_type_print_method_args): Likewise.
8411 (c_type_print_args): Likewise.
8412 * d10v-tdep.c (d10v_push_arguments): Likewise.
8413 (d10v_extract_return_value): Likewise.
8414 * expprint.c (print_subexp): Likewise.
8415 * gdbtypes.c (lookup_primitive_typename): Likewise.
8416 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8417 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8418 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8419 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8420 (TYPE_VECTOR): Likewise.
8421 * hpread.c (hpread_read_struct_type)
8422 (fix_static_member_physnames, fixup_class_method_type)
8423 (hpread_type_lookup): Likewise.
8424 * mdebugread.c (parse_symbol, parse_type): Likewise.
8425 * p-lang.c (is_pascal_string_type): Likewise.
8426 * valops.c (hand_function_call): Likewise.
8427 * x86-64-tdep.c (classify_argument): Likewise.
8429 * hpread.c (hpread_read_function_type)
8430 (hpread_read_doc_function_type): Call replace_type.
8431 * dstread.c (create_new_type): Delete.
8432 (decode_dst_structure, process_dst_function): Call alloc_type.
8433 Use type access macros.
8435 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8437 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8438 the're not supported by the current architecture.
8439 (i387_fill_fxsave): Likewise.
8441 2002-05-12 Fred Fish <fnf@redhat.com>
8443 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8444 sect_index_xxx members to index the first slot in section_offsets
8445 if all of the section_offsets are zero.
8447 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8449 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8450 checked in with last change.
8452 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8454 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8455 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8458 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8460 * Makefile.in: Update dependencies.
8462 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8464 * language.c (local_hex_string_custom): Simplify. Do not depend
8465 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8467 * memattr.c (mem_info_command): Replace calls to
8468 longest_local_hex_string and longest_local_hex_string_custom.
8469 * buildsym.c (make_blockvector): Ditto.
8470 * solib.c (info_sharedlibrary_command): Ditto.
8471 * tracepoint.c (tracepoints_info): Ditto.
8472 * symtab.c (print_msymbol_info): Ditto.
8474 * language.c (local_hex_string): Delete.
8475 (local_hex_string_custom): Delete.
8476 (longest_local_hex_string): Rename to local_hex_string.
8477 (longest_local_hex_string_custom): Rename to
8478 local_hex_string_custom.
8479 * language.h (local_hex_string): Change parameter type to LONGEST.
8480 (local_hex_string_custom): Ditto.
8481 (longest_local_hex_string): Delete declaration.
8482 (longest_local_hex_string_custom): Ditto.
8484 * solib.c: Update copyright.
8485 * memattr.c: Update copyright.
8487 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8489 * arch-utils.h (legacy_register_to_value): Declare.
8490 (legacy_value_to_register): Declare.
8491 (legacy_convert_register_p): Declare.
8492 * arch-utils.c (legacy_register_to_value): New function.
8493 (legacy_value_to_register): New function.
8494 (legacy_convert_register_p): New function.
8496 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8497 (VALUE_TO_REGISTER): Define.
8498 (CONVERT_REGISTER_P): Define.
8499 * gdbarch.h, gdbarch.c: Regenerate.
8501 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8503 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8506 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8507 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8509 * Makefile.in: Update dependencies for valops.c.
8510 * valops.c: Include "gdb_assert.h".
8511 (typecmp): Skip THIS parameter to methods.
8512 (find_method_list): Remove static_memfuncp argument,
8513 update callers. Check for stub methods.
8514 (find_value_oload_method_list): Don't set *static_memfuncp.
8515 (find_overload_match): Don't check for stub methods. Assert
8516 that methods are not stubbed. Handle static methods.
8517 (value_find_oload_method_list): Remove static_memfuncp argument.
8518 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8519 to the argument list for static stub methods.
8520 * value.h (value_find_oload_method_list): Update prototype.
8522 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8524 * arch-utils.h (generic_register_size): Declare.
8525 (generic_register_raw_size, generic_register_virtual_size): Delete
8527 * arch-utils.c (generic_register_raw_size): Delete.
8528 (generic_register_size): New function.
8529 (generic_register_virtual_size): Delete.
8531 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8532 default generic_register_size.
8533 * gdbarch.h, gdbarch.c: Re-generate.
8535 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8536 register_virtual_size.
8537 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8538 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8540 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8542 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8543 * gdbarch.h, gdbarch.c: Regenerate.
8544 * gnu-v3-abi.c: Update copyright.
8545 (vtable_address_point_offset): Update.
8546 (gnuv3_rtti_type): Update.
8547 (gnuv3_baseclass_offset): Update.
8548 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8549 (init_fetch_link_map_offsets): Update.
8550 * remote.c (get_remote_state): Update.
8552 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8554 * TODO: Remove value_headof/value_from_vtable_info comment.
8555 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8556 * values.c (value_headof, value_from_vtable_info): Delete.
8557 * value.h (value_from_vtable_info): Delete prototype.
8559 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8561 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8562 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8564 (gdb_assert_h): Define.
8565 (gdb_wait_h): Define.
8566 (gdb_regex_h): Define.
8568 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8570 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8571 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8573 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8575 * nbsd-tdep.c: Fix comment.
8577 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8579 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8580 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8581 (nbsd-tdep.o): New dependency list.
8582 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8584 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8585 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8586 * nbsd-tdep.c: New file.
8587 * nbsd-tdep.h: New file.
8588 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8590 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8591 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8592 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8593 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8595 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8597 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8598 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8599 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8600 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8601 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8602 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8604 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8606 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8607 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8608 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8609 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8610 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8611 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8612 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8614 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8616 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8617 fetch_elfcore_registers to...
8618 * i386nbsd-tdep.c: ...here.
8619 (i386nbsd_use_struct_convention): Rename to...
8620 (i386nbsd_aout_use_struct_convention): ...this.
8621 (i386nbsd_supply_reg): New function.
8622 (i386nbsd_fill_reg): New function.
8623 (fetch_core_registers): Use i386nbsd_supply_reg.
8624 (fetch_elfcore_registers): Likewise.
8625 (_initialize_i386nbsd_tdep): New function.
8626 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8627 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8628 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8629 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8630 (i386nbsd_aout_use_struct_convention): ...this.
8632 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8634 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8635 (store_inferior_registers): Use shnbsd_fill_reg.
8636 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8637 sh_nbsd_supply_register): Collapse into...
8638 (shnbsd_supply_reg): ...this.
8639 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8640 (shnbsd_fill_reg): ...this.
8641 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8642 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8643 (fetch_core_registers): Use shnbsd_supply_reg.
8644 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8645 (sh_nbsd_core_fns): Rename to...
8646 (shnbsd_core_fns): ...this.
8647 (sh_nbsd_elfcore_fns): Rename to...
8648 (shnbsd_elfcore_fns): ...this.
8649 (sh_nbsd_init_abi): Rename to...
8650 (shnbsd_init_abi): ...this.
8651 (_initialize_sh_nbsd_tdep): Rename to...
8652 (_initialize_shnbsd_tdep): ...this.
8653 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8654 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8655 sh_nbsd_fill_register): Remove prototypes.
8656 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8658 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8660 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8661 (i387-nat.o): Delete dependency list.
8662 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8663 (x86-64-linux-nat.o): Likewise.
8664 * i387-nat.c: Delete file, moving contents to...
8665 * i387-tdep.c: ...here.
8666 * i387-nat.h: Rename...
8667 * i387-tdep.h: ...to this.
8668 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8669 * i386-linux-nat.c: Likewise.
8670 * i386bsd-nat.c: Likewise.
8671 * i386gnu-nat.c: Likewise.
8672 * i386nbsd-nat.c: Likewise.
8673 * i386v4-nat.c: Likewise.
8674 * x86-64-linux-nat.c: Likewise.
8675 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8676 * config/i386/go32.mh (NATDEPFILES): Likewise.
8677 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8678 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8679 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8680 * config/i386/linux.mh (NATDEPFILES): Likewise.
8681 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8682 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8683 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8684 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8686 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8688 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8689 (alphanbsd-nat.o): Remove dependency list.
8690 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8691 * alphanbsd-nat.c: Delete. Contents moved to...
8692 * alphanbsd-tdep.c: ...here.
8693 (_initialize_alphanbsd_tdep): Register core functions.
8694 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8696 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8698 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8699 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8700 (alphanbsd-nat.o): Likewise.
8701 (alphabsd-tdep.o): New dependency list.
8702 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8703 (fill_gregset): Use alphabsd_fill_reg.
8704 (supply_fpregset): Use alphabsd_supply_fpreg.
8705 (fill_fpregset): Use alphabsd_fill_fpreg.
8706 (fetch_inferior_registers): Use struct reg and struct fpreg
8707 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8708 and alphabsd_supply_fpreg.
8709 (store_inferior_registers): Use struct reg and struct fpreg
8710 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8711 and alphabsd_fill_fpreg.
8712 * alphabsd-tdep.c: New file.
8713 * alphabsd-tdep.h: New file.
8714 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8715 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8716 alphabsd_supply_fpreg.
8717 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8718 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8720 2002-05-11 Eric Christopher <echristo@redhat.com>
8722 * mips-tdep.c (mips_double_register_type): Fix thinko.
8723 (mips_single_register_type): Ditto.
8724 * MAINTAINERS: Add self.
8726 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8728 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8729 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8730 right thing on architectures with different endianness and/or
8733 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8735 From Christian Limpach <chris@Pin.LU>
8736 * configure.in: Change sed expression which comments out
8737 NATDEPFILES to also comment out continuation lines.
8738 * configure: Regenerate.
8740 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8742 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8745 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8747 * sh-tdep.c: Include correct file.
8749 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8751 New support for sh64-elf (sh5) target.
8753 * configure.tgt: For sh64-elf target, default to sh-elf.
8755 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8756 (struct gdbarch_tdep): Add new fields for new registers and ABI
8759 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8760 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8761 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8762 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8763 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8764 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8765 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8766 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8767 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8768 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8769 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8770 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8771 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8772 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8773 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8774 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8775 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8776 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8777 sign_extend, sh64_nofp_frame_init_saved_regs,
8778 sh64_init_extra_frame_info, sh64_get_saved_register,
8779 sh64_extract_struct_value_address, sh64_pop_frame,
8780 sh64_push_arguments, sh64_extract_return_value,
8781 sh64_store_return_value, sh64_show_media_regs,
8782 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8783 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8784 sh_sh64_register_virtual_type,
8785 sh_sh64_register_convert_to_virtual,
8786 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8787 sh64_register_read, sh64_pseudo_register_write,
8788 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8789 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8790 sh64_do_pseudo_register, sh_compact_do_registers_info,
8791 sh64_do_registers_info, sh_gdbarch_init): New functions.
8793 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8795 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8797 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8799 * linespec.c (decode_line_1): Check for a double quote after
8800 a filename correctly.
8802 2002-05-10 Jim Blandy <jimb@redhat.com>
8804 Properly track the size of the current objfile's .debug_line section.
8805 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8806 (DWARF_LINE_SIZE): New macro.
8807 (dwarf2_build_psymtabs_hard): Record the line section's size in
8808 the partial symbol table.
8809 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8812 2002-05-10 Petr Sorfa <petrs@caldera.com>
8814 * ia64-tdep.c: Handle breakpoints on L instruction type
8815 in MLX instruction bundle by moving the breakpoint to
8816 the third slot (X instruction type) as L holds only data.
8818 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8820 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8821 (process_one_symbol): Complain about discarding local symbols
8822 due to a misplaced N_LBRAC entry.
8824 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8826 From Daniel Berlin <dan@cgsoftware.com>
8827 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8828 decrease the depth we are at, in the case of templates.
8830 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8832 * mips-tdep.c (mips_float_register_type): New function.
8833 (mips_double_register_type): New function.
8834 (mips_print_register): Use them.
8835 (do_fp_register_row): Likewise.
8837 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8839 * signals/signals.c (signals): Remove conditional compilation around
8840 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8841 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8843 2002-05-09 Michael Snyder <msnyder@redhat.com>
8845 * remote-rdp.c (remote_rdp_can_run): Remove.
8847 2002-05-09 Tom Tromey <tromey@redhat.com>
8849 * jv-valprint.c (java_val_print): Handle `char' as a special case
8852 2002-05-09 Michael Snyder <msnyder@redhat.com>
8854 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8855 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8856 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8857 str r(0123),[sp,#nn].
8858 (arm_skip_prologue): Ditto. Also make disassembly
8859 order-independent by placing it in a loop.
8861 2002-05-06 Michael Snyder <msnyder@redhat.com>
8863 * stabsread.c (read_type): Add recognition for new attribute:
8864 "@V;" means that an array type is actually a vector.
8865 This is analogous to the vector flag that's been added to dwarf2.
8867 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8869 * i386-tdep.h (i386_abi): New enum.
8870 (struct gdbarch_tdep): Replace os_ident member with abi.
8871 (i386_gdbarch_register_os_abi): New prototype.
8872 * i386-tdep.c (i386_abi_names): New array.
8873 (process_note_abi_tag_sections): Removed.
8874 (process_note_sections): New function.
8875 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8876 (struct i386_abi_handler): New struct.
8877 (i386_abi_handler_list): New variable.
8878 (i386_gdbarch_register_os_abi): New function.
8879 (i386_gdbarch_init): Adapt for the changes given above.
8881 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8883 * gregset.h: Say "GNU/Linux".
8885 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8887 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8888 (build_gdbtypes): Build builtin_type_v2_float.
8889 (_initialize_gdbtypes): Register new builtin type.
8891 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8893 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8894 (clear_gdbarch_swap): New function.
8895 (initialize_non_multiarch): Call.
8896 (gdbarch_update_p): Before calling init(), swap out and clear the
8897 existing architecture.
8898 * gdbarch.c: Regenerate.
8900 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8902 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8905 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8907 * sh-nbsd-nat.c: Rename to...
8908 * shnbsd-nat.c: ...this.
8909 * sh-nbsd-tdep.c: Rename to...
8910 * shnbsd-tdep.c: ...this.
8911 * sh-nbsd-tdep.h: Rename to...
8912 * shnbsd-tdep.h: ...this.
8913 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8914 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8916 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8918 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8919 concatenation for command help messages.
8921 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8923 * NEWS: Note new sh*-*-netbsdelf* configuration.
8924 * configure.host: Set gdb_host_cpu to sh for all sh*.
8925 (sh*-*-netbsdelf*): New host.
8926 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8927 (sh*-*-netbsdelf*): New target.
8928 * sh-nbsd-nat.c: New file.
8929 * sh-nbsd-tdep.c: New file.
8930 * sh-nbsd-tdep.h: New file.
8931 * config/sh/nbsd.mh: New file.
8932 * config/sh/nbsd.mt: New file.
8933 * config/sh/nm-nbsd.h: New file.
8934 * config/sh/tm-nbsd.h: New file.
8936 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8938 * sh-tdep.c (sh_osabi_names): Declare.
8939 (process_note_abi_tag_sections): New function.
8940 (get_elfosabi): Ditto.
8941 (sh_gdbarch_register_os_abi): Ditto.
8942 (sh_dump_tdep): Ditto.
8943 _initialize_sh_tdep): Use gdbarch_register to register
8944 sh_gdbarch_init and sh_dump_tdep.
8945 * config/sh/tm-sh.h (sh_osabi): Declare.
8946 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8948 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8950 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8951 (thumb_scan_prologue): Ditto.
8952 (arm_find_callers_reg): Ditto.
8953 (arm_frame_chain): Ditto.
8954 (arm_init_extra_frame_info): Ditto.
8955 (arm_frame_saved_pc): Ditto.
8956 (arm_pop_frame): Ditto.
8957 (arm_push_return_address): New function.
8958 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8959 call_dummy_location, call_dummy_breakpoint_offset_p,
8960 call_dummy_breakpoint_offset, call_dummy_p,
8961 call_dummy_stack_adjust_p, call_dummy_words,
8962 sizeof_call_dummy_words, call_dummy_start_offset,
8963 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8964 call_dummy_address, push_return_address and push_dummy_frame for
8965 generic dummy frames.
8967 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8969 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8970 size computation for alloca.
8971 (sh_fp_frame_init_saved_regs): Likewise.
8973 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8975 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8976 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8977 * arm-tdep.c (arm_store_return_value): Use them.
8978 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8979 * remote-rdp.c (remote_rdp_fetch_register): Use
8980 ARM_MAX_REGISTER_RAW_SIZE.
8981 (remote_rdp_store_register): Likewise.
8983 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8985 * dwarf2cfi.c: Code cleanup, removed unused variables,
8986 added default labels to switch {} statements.
8987 * x86-64-tdep.c: Ditto.
8988 * x86-64-linux-nat.c: Ditto.
8990 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8992 * solib.h: Protect against multiple inclusion.
8994 2002-05-06 Jim Blandy <jimb@redhat.com>
8996 Add first preprocessor macro-expansion files.
8997 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8998 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8999 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9000 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9001 (COMMON_OBS): Add macrotab.o, macroexp.o.
9002 (macroexp.o, macrotab.o): New rules.
9004 Separate the job of reading the line number info statement program
9005 header (...expialidocious) out into its own function.
9006 * dwarf2read.c (struct line_head, struct filenames, struct
9007 directories): Replace with...
9008 (struct line_header): New structure, containing the full
9009 contents of the statement program header, including the
9010 include directory and file name tables.
9011 (read_file_scope): If we have line number info, instead of just
9012 calling dwarf_decode_lines to do all the work, call
9013 dwarf_decode_line_header first to get a `struct line_header'
9014 containing the data in the statement program header, and then
9015 pass that to dwarf_decode_lines, which will pick up where that
9016 left off. Be sure to clean up the `struct line_header' object.
9017 (dwarf_decode_line_header, free_line_header, add_include_dir,
9018 add_file_name): New functions.
9019 (dwarf_decode_lines): Move all the code to read the statement
9020 program header into dwarf_decode_line_header. Take the line
9021 header it built as the first argument, instead of the offset to
9022 the compilation unit's line number info. Use the new `struct
9023 line_header' type instead of the old structures. No need to do
9024 cleanups here now, since we don't allocate anything.
9025 (dwarf2_statement_list_fits_in_line_number_section,
9026 dwarf2_line_header_too_long): New complaints.
9028 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9030 * gdbtypes.c (init_vector_type): New function.
9031 (build_builtin_type_vec128): Simplify the representation of SIMD
9033 (build_gdbtypes): Initialize new builtin vector types.
9034 (_initialize_gdbtypes): Register new vector types with gdbarch.
9035 (builtin_type_v4_float, builtin_type_v4_int32,
9036 builtin_type_v8_int16, builtin_type_v16_int8,
9037 builtin_type_v2_int32, builtin_type_v4_int16,
9038 builtin_type_v8_int8): New (renamed) SIMD types.
9040 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9042 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9043 (i387_fill_fxsave): Likewise.
9045 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9047 * alpha-tdep.c (alpha_extract_return_value): Don't use
9048 non-constant array size in prototype.
9050 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9052 From Brian Taylor <briant at model dot com>:
9053 * ui-out.c (ui_out_field_core_addr): Use the function
9054 longest_local_hex_string_custom'to format addresses > 32 bits
9057 * ui-out.c (ui_out_field_core_addr): Update comment.
9059 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9061 * stack.c (select_and_print_frame): Make static. Delete the
9063 (func_command): Update call.
9064 (select_frame_command): Delete code computing the frame level.
9065 * frame.h (select_and_print_frame): Delete declaration.
9067 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9069 * sparc-tdep.c (sparc_get_saved_register): Comment why
9070 get_prev_frame call is safe.
9072 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9074 * frame.h (select_frame): Delete level parameter.
9075 * stack.c (select_frame): Update. Use frame_relative_level to
9076 obtain the frame's level.
9077 (select_and_print_frame): Update call.
9078 (select_frame_command): Ditto.
9079 (up_silently_base): Ditto.
9080 (down_silently_base): Ditto.
9081 * ocd.c (ocd_start_remote): Ditto.
9082 * remote-rdp.c (remote_rdp_open): Ditto.
9083 * remote-mips.c (mips_initialize): Ditto.
9084 (common_open): Ditto.
9085 * remote-e7000.c (e7000_start_remote): Ditto.
9086 * m3-nat.c (select_thread): Ditto.
9087 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9088 (child_get_current_exception_event): Ditto.
9089 * varobj.c (varobj_create): Ditto.
9090 (varobj_update): Ditto.
9091 (c_value_of_root): Ditto.
9092 * tracepoint.c (finish_tfind_command): Ditto.
9093 * corelow.c (core_open): Ditto.
9094 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9095 * thread.c (info_threads_command): Ditto.
9096 (switch_to_thread): Ditto.
9097 * infrun.c (normal_stop): Ditto.
9098 (restore_selected_frame): Ditto.
9099 (restore_inferior_status): Ditto.
9100 * breakpoint.c (insert_breakpoints): Ditto.
9101 (watchpoint_check): Ditto.
9102 (bpstat_stop_status): Ditto.
9103 (do_enable_breakpoint): Ditto.
9104 * blockframe.c (flush_cached_frames): Ditto.
9105 (reinit_frame_cache): Ditto.
9107 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9109 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9112 2002-05-04 Jim Blandy <jimb@redhat.com>
9114 * gdbtypes.c (replace_type): Doc fix.
9116 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9118 * valprint.c (strcat_longest): Delete commented out function.
9121 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9123 * MAINTAINERS: Mark a29k as deleted.
9124 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9125 Move new configurations to the top.
9126 * configure.tgt: Remove a29k.
9127 * config/a29k/tm-vx29k.h: Delete.
9128 * config/a29k/vx29k.mt: Delete.
9129 * config/a29k/tm-a29k.h: Delete.
9130 * config/a29k/a29k-udi.mt: Delete.
9131 * config/a29k/a29k.mt: Delete.
9132 * a29k-tdep.c: Delete.
9133 * remote-udi.c: Delete.
9134 * remote-mm.c: Delete.
9135 * remote-eb.c: Delete.
9136 * remote-adapt.c: Delete.
9137 * Makefile.in: Remove obsolete code.
9138 * config/s390/s390x.mt: Ditto.
9139 * config/s390/s390.mt: Ditto.
9140 * config/sparc/sparclynx.mh: Ditto.
9141 * config/sparc/linux.mh: Ditto.
9142 * config/pa/hppaosf.mh: Ditto.
9143 * config/pa/hppabsd.mh: Ditto.
9144 * config/ns32k/nbsd.mt: Ditto.
9145 * config/mips/vr5000.mt: Ditto.
9146 * config/m68k/sun3os4.mh: Ditto.
9147 * config/m68k/nbsd.mt: Ditto.
9148 * config/m68k/m68klynx.mh: Ditto.
9149 * config/m32r/m32r.mt: Ditto.
9150 * config/i386/x86-64linux.mt: Ditto.
9151 * config/i386/nbsdelf.mt: Ditto.
9152 * config/i386/nbsd.mt: Ditto.
9153 * config/i386/i386lynx.mh: Ditto.
9155 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9157 * target.c (debug_print_register): New function. Handle oversize
9159 (debug_to_fetch_registers): Call.
9160 (debug_to_store_registers): Call.
9162 2002-05-03 Jim Blandy <jimb@redhat.com>
9164 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9165 (read_type): Doc fix.
9166 * gdbtypes.c (replace_type): Doc fix.
9168 * stabsread.c (multiply_defined_struct): New complaint.
9169 (read_struct_type): If the type we were passed isn't empty, or
9170 incomplete, don't read the new struct type into it; complain,
9171 and return the original type unchanged. Take a new `type_code'
9172 argument, which is the type code for the new type.
9173 (read_type): Rather than storing the type's type code here, pass
9174 it as an argument to read_struct_type, and let that take care of
9175 storing it. That way, we don't overwrite the original type code,
9176 so read_struct_type can use it to decide whether we're overwriting
9177 something we shouldn't.
9178 (complain_about_struct_wipeout): New function.
9180 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9182 * gdbarch.sh: Assert that gdbarch is non-NULL.
9183 * gdbarch.c: Regenerate.
9185 2002-05-03 Jason Merrill <jason@redhat.com>
9187 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9190 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9192 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9193 (x86_64_dwarf2gdb_regno_map_length),
9194 (x86_64_dwarf2_reg_to_regnum): Added.
9195 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9196 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9197 (_initialize_x86_64_tdep): Synced with the change above.
9198 (x86_64_skip_prologue): Reformulated message.
9200 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9202 * f-exp.y: Also use new prev_lexptr variable
9203 to improve error reporting. Based on Michael Snyder
9204 2002-04-24 dated patch to c-exp.y.
9205 * jv-exp.y: Likewise.
9206 * m2-exp.y: Likewise.
9208 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9210 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9211 we are dealing with vectors.
9213 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9215 * config/m68k/tm-nbsd.h: Obvious fix,
9216 correct machine name.
9218 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9220 * p-typeprint.c (pascal_type_print_base): Add support
9221 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9223 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9225 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9226 for fondamental pascal 'char' type.
9228 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9230 * p-lang.h (is_pascal_string_type): Declaration changed,
9231 new sixth argument of type char ** added.
9232 * p-lang.c (is_pascal_string_type): Implementation
9233 changed. Args length_pos, length_size, string_pos, char_size
9234 can now be NULL. New argument arrayname set to the field
9235 name of the char array. Return value set to char array
9236 field index plus one.
9237 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9238 is_pascal_string_type function.
9240 2002-05-02 Andrew Cagney <cagney@redhat.com>
9242 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9243 <cagney@redhat.com> change.
9244 * gdbarch.c: Regenerate.
9246 2002-05-02 Andrew Cagney <cagney@redhat.com>
9248 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9249 before probing for a new one. Detect errorenous gdbarch_init
9251 * gdbarch.c: Regenerate.
9253 2002-05-01 Andrew Cagney <cagney@redhat.com>
9255 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9256 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9257 * config/v850/tm-v850.h: Ditto. Update copyright.
9259 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9261 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9264 2002-04-30 Michael Snyder <msnyder@redhat.com>
9266 * arm-tdep.c: Whitespace clean-ups.
9267 (arm_skip_prologue): Fix thinko; two lines
9268 should have been removed as part of 4/24 change.
9270 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9272 * rs6000-tdep.c: Added comment describing how fpscr register
9273 numbers were chosen.
9275 2002-04-30 Michael Snyder <msnyder@redhat.com>
9277 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9279 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9281 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9282 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9283 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9285 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9287 From Louis Hamilton <hamilton@redhat.com>:
9288 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9289 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9290 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9291 not bfd-private xcoff data, to determine wordsize.
9292 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9294 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9296 GDB 5.2 released from 5.2 branch.
9298 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9300 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9301 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9302 (x86_64_register_info_table): Added comments with register numbers.
9304 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9306 * rs6000-tdep.c (rs6000_extract_return_value,
9307 rs6000_store_return_value): Handle returning vectors.
9308 (rs6000_gdbarch_init): Use
9309 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9310 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9312 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9314 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9315 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9317 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9319 * hpread.c (hpread_psymtab_to_symtab_1,
9320 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9321 with fprintf_unfiltered (gdb_stderr,...).
9323 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9325 * remote-array.c (printf_monitor, write_monitor,
9326 array_insert_breakpoint, array_remove_breakpoint ):
9327 Replace fprintf (stderr,...
9328 with fprintf_unfiltered (gdb_stderr,....
9329 * remote-es.c: Likewise.
9330 * remote-os9k.c: Likewise.
9331 * remote-st.c: Likewise.
9333 2002-04-28 Andreas Schwab <schwab@suse.de>
9335 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9336 linux-proc.o and gcore.o.
9338 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9340 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9341 code without frame pointers.
9343 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9345 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9348 2002-04-26 Ben Elliston <bje@redhat.com>
9350 * target.c (do_xfer_memory): Correct reference to the new option
9351 "trust-readonly-sections".
9353 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9355 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9356 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9357 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9359 (read_array_type): Record the fact that this array type is really a
9360 vector (i.e. are passed in by value).
9362 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9364 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9365 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9366 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9367 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9368 * alpha-linux-tdep.c: Include frame.h.
9369 (alpha_linux_sigcontext_addr): New function.
9370 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9371 alpha_linux_sigcontext_addr.
9372 * alpha-osf1-tdep.c: Include gdbcore.h.
9373 (alpha_osf1_sigcontext_addr): New function.
9374 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9375 alpha_osf1_sigcontext_addr.
9376 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9377 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9379 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9381 * stack.c (selected_frame_level):
9382 (select_frame): Do not set selected_frame_level.
9383 * frame.h (selected_frame_level): Delete declaration.
9385 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9387 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9388 convert_from_func_ptr-addr when AIX / PowerOpen.
9390 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9392 * valops.c (hand_function_call): Call
9393 generic_save_call_dummy_addr.
9394 * frame.h (generic_save_call_dummy_addr): Declare.
9395 * blockframe.c (struct dummy_frame): Add fields call_lo and
9397 (generic_find_dummy_frame): Check for PC in range call_lo to
9398 call_hi instead of entry_point_address.
9399 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9400 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9401 (generic_save_call_dummy_addr): New function.
9403 2002-04-24 David S. Miller <davem@redhat.com>
9405 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9406 sparc_skip_prologue.
9407 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9408 information to find prologue when possible.
9409 (sparc_prologue_frameless_p): Call examine_prologue directly.
9410 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9411 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9413 (SKIP_PROLOGUE): Likewise.
9415 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9417 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9418 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9419 indicate that the condition it was testing is always true.
9420 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9421 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9422 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9424 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9426 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9427 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9428 tdep->jb_pc and tdep->jb_elt_size.
9429 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9430 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9431 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9432 * alpha-nat.c (get_longjmp_target): Remove.
9433 (JB_ELEMENT_SIZE): Ditto.
9435 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9436 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9437 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9438 to alpha_get_longjmp_target.
9439 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9440 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9441 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9443 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9445 * README: Update to GDB 5.2.
9447 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9449 * gdbarch.sh (LC_ALL): Set to `c'.
9451 2002-04-25 Theodore A. Roth <troth@verinet.com>
9453 * avr-tdep.c: Ran through gdb_indent.sh.
9455 2002-04-25 Theodore A. Roth <troth@verinet.com>
9457 * MAINTAINERS: Add myself as AVR maintainer.
9458 * NEWS: Note new target avr.
9460 2002-04-25 Theodore A. Roth <troth@verinet.com>
9462 * Makefile.in: Add support for AVR target.
9463 * configure.tgt: Add support for AVR target.
9464 * avr-tdep.c: New file
9465 * config/avr/avr.mt: New file.
9467 2002-04-25 Theodore A. Roth <troth@verinet.com>
9469 * MAINTAINERS: Add myself to write-after-approval.
9471 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9473 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9474 with fprintf_unfiltered (gdb_stderr,....
9476 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9479 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9481 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9483 * p-exp.y: Also use new prev_lexptr variable
9484 to improve error reporting. Based on Michael Snyder
9485 2002-04-24 dated patch to c-exp.y.
9487 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9489 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9490 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9491 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9493 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9495 (FUNCTION_START_OFFSET): Remove.
9496 (BREAKPOINT): Ditto.
9498 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9500 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9503 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9505 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9506 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9507 alpha_linux_pc_in_sigtramp.
9508 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9509 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9510 alpha_osf1_pc_in_sigtramp.
9511 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9512 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9513 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9514 alphafbsd_pc_in_sigtramp.
9515 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9516 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9517 alphanbsd_pc_in_sigtramp.
9518 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9519 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9521 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9523 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9525 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9527 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9529 (alphanbsd-nat.o): New dependency list.
9530 (alphanbsd-tdep.o): Ditto.
9531 * NEWS: Note new native NetBSD/alpha configuration.
9532 * alphanbsd-nat.c: New file.
9533 * alphanbsd-tdep.c: Ditto.
9534 * configure.host (alpha*-*-netbsd*): New host.
9535 * configure.tgt (alpha*-*-netbsd*): New target.
9536 * config/alpha/nbsd.mh: New file.
9537 * config/alpha/nbsd.mt: Ditto.
9538 * config/alpha/nm-nbsd.h: Ditto.
9539 * config/alpha/tm-nbsd.h: Ditto.
9541 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9543 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9544 (alpha-osf1-tdep.o): New dependency list.
9545 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9546 and skip_sigtramp_frame members.
9547 * alpha-linux-tdep.c: Include gdbcore.h.
9548 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9549 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9550 * alpha-osf1-tdep.c: New file.
9551 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9553 (alpha_frame_past_sigtramp_frame): New function.
9554 (alpha_dynamic_sigtramp_offset): Ditto.
9555 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9556 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9557 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9558 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9559 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9560 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9561 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9562 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9563 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9564 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9565 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9566 to find_solib_trampoline_target.
9567 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9568 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9569 (SKIP_TRAMPOLINE_CODE): Remove.
9570 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9571 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9572 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9573 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9574 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9575 (PROC_SIGTRAMP_MAGIC): Ditto.
9576 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9577 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9578 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9579 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9580 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9582 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9584 * NEWS: Note that Alpha targets are now multi-arch.
9586 2002-04-24 Michael Snyder <msnyder@redhat.com>
9588 * parser-defs.h (prev_lexptr): New external variable.
9589 * parse.c (parse_exp_1): Set prev_lexptr to null before
9590 calling the language-specific parser.
9591 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9592 (yyerror): Use prev_lexptr in error reporting.
9594 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9596 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9597 * gregset.h: If FILL_FPXREGSET is defined, provide
9598 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9599 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9600 is defined, call fill_fpxregset.
9602 2002-04-24 Roland McGrath <roland@frob.com>
9604 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9605 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9606 (supply_gregset, supply_fpregset): New functions.
9608 * gnu-nat.c (gnu_find_memory_regions): New function.
9609 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9610 (gnu_xfer_memory): Add a cast.
9612 2002-04-24 Michael Snyder <msnyder@redhat.com>
9614 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9615 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9616 of argument regs ("str r(0123), [r11, #-nn"]).
9617 (arm_skip_prologue): Better handling for frameless functions.
9618 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9619 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9621 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9623 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9624 NUM_PSEUDO_REGS can be used.
9626 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9628 * arch-utils.h: Update copyright.
9630 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9631 * gdbarch.h, gdbarch.c: Re-generate.
9633 * inferior.h (IN_SIGTRAMP): Delete definition.
9634 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9635 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9637 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9638 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9639 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9640 (find_proc_framesize): Ditto.
9641 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9642 (alpha_init_extra_frame_info): Ditto.
9643 * infrun.c (handle_inferior_event): Ditto.
9644 (handle_inferior_event): Ditto.
9645 (check_sigtramp2): Ditto.
9646 * blockframe.c (create_new_frame): Ditto.
9647 (get_prev_frame): Ditto.
9648 * ppc-linux-tdep.c: Update comments.
9649 * i386-linux-tdep.c: Update comments.
9650 * breakpoint.c (bpstat_what): Update comment.
9652 2002-04-24 David S. Miller <davem@redhat.com>
9654 * i960-tdep.c (register_in_window_p): New function.
9655 (i960_find_saved_register): Use it instead of
9656 REGISTER_IN_WINDOW_P.
9657 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9659 * symtab.h (find_stab_function_addr): Kill extern.
9660 * minsyms.c (find_stab_function_addr): Remove from here...
9661 * dbxread.c: ... to here, and mark it static.
9663 2002-04-20 David S. Miller <davem@redhat.com>
9665 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9666 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9668 2002-04-21 David S. Miller <davem@redhat.com>
9670 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9671 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9672 (vx_write_register): Likewise.
9674 2002-04-23 J. Brobecker <brobecker@gnat.com>
9676 * source.c (is_regular_file): New function.
9677 (openp): Check wether file to open is a regular file
9678 to avoid opening directories.
9680 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9682 * findvar.c (extract_signed_integer): Cast printf argument
9683 to suppress format warning.
9684 (extract_unsigned_integer): Likewise.
9685 * infcmd.c (registers_info): Likewise.
9686 * top.c (get_prompt_1): Likewise.
9687 * valops.c (value_assign): Likewise.
9688 * valprint.c (print_decimal): Likewise.
9690 2002-04-22 H.J. Lu (hjl@gnu.org)
9692 * c-exp.y (typebase): Support
9694 [long|long long|short] [signed|unsigned] [int|]
9698 signed [long|long long|short] int
9700 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9702 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9704 * vax-tdep.h: New file.
9705 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9706 Make several routines static.
9707 (vax_get_saved_register): New function.
9708 (vax_gdbarch_init): New function.
9709 (_initialize_vax_tdep): Register vax_gdbarch_init.
9710 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9711 Remove macros now under the control of gdbarch.
9713 2002-04-22 Michael Snyder <msnyder@redhat.com>
9715 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9716 Some whitespace and coding standards tweaks.
9718 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9720 * vax-tdep.c: Include regcache.h.
9721 (vax_call_dummy_words): New.
9722 (sizeof_vax_call_dummy_words): New.
9723 (vax_fix_call_dummy): New function.
9724 (vax_saved_pc_after_call): Ditto.
9725 * config/vax/tm-vax.h: Don't include regcache.h.
9726 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9727 (CALL_DUMMY): Remove.
9728 (CALL_DUMMY_WORDS): Define.
9729 (SIZEOF_CALL_DUMMY_WORDS): Define.
9730 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9732 2002-04-18 Michael Snyder <msnyder@redhat.com>
9734 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9736 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9738 * vax-tdep.c (vax_frame_chain): New function.
9739 (vax_push_dummy_frame): Ditto.
9740 (vax_pop_frame): Ditto.
9741 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9742 (FRAMELESS_FUNCTION_INVOCATION): Use
9743 generic_frameless_function_invocation_not.
9744 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9745 (POP_FRAME): Use vax_pop_frame.
9747 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9749 * vax-tdep.c (vax_store_struct_return): New function.
9750 (vax_extract_return_value): Ditto.
9751 (vax_store_return_value): Ditto.
9752 (vax_extract_struct_value_address): Ditto.
9753 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9754 vax_store_struct_return.
9755 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9756 (STORE_RETURN_VALUE): Use vax_store_return_value.
9757 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9759 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9761 * vax-tdep.c (vax_frame_saved_pc): New function.
9762 (vax_frame_args_address_correct): Ditto.
9763 (vax_frame_args_address): Ditto.
9764 (vax_frame_locals_address): Ditto.
9765 (vax_frame_num_args): Move code to be in proximity to
9766 other frame-related functions.
9767 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9768 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9769 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9770 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9771 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9773 2002-04-22 H.J. Lu (hjl@gnu.org)
9775 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9778 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9780 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9781 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9782 (FRAME_INIT_SAVED_REGS): New macro.
9784 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9786 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9788 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9790 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9792 (fetch_osf_core_registers): Likewise.
9793 (supply_gregset): Likewise.
9795 2002-04-22 J. Brobecker <brobecker@gnat.com>
9797 * symfile.h (get_section_index): Define.
9798 * symfile.c (get_section_index): New function.
9799 * mdebugread.c (SC_IS_SBSS): New macro.
9800 (SC_IS_BSS): Return true for the scBss storage class only, as
9801 the scSBss storage class refers to the .sbss section.
9802 (parse_partial_symbols): Discard the symbols which associated
9803 section does not exist.
9804 Make sure to use the .sbss section index for symbols which
9805 storage class is scBss, rather than using the .bss section index.
9807 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9809 * vax-tdep.c: Update copyright years.
9810 (vax_register_name): New function.
9811 (vax_register_byte): Ditto.
9812 (vax_register_raw_size): Ditto.
9813 (vax_register_virtual_size): Ditto.
9814 (vax_register_virtual_type): Ditto.
9815 * config/vax/tm-vax.h: Update copyright years.
9816 (REGISTER_NAMES): Remove.
9817 (REGISTER_NAME): Define.
9818 (REGISTER_BYTE): Use vax_register_byte.
9819 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9820 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9821 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9823 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9825 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9827 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9829 2002-04-21 David S. Miller <davem@redhat.com>
9831 * arch-utils.c (generic_prologue_frameless_p): Kill
9832 SKIP_PROLOGUE_FRAMELESS_P code.
9833 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9835 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9836 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9837 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9839 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9840 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9841 (sparc_gdbarch_init): Pass it to
9842 set_gdbarch_prologue_frameless_p.
9844 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9846 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9847 (alphabsd-nat.o): New dependency list.
9849 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9851 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9853 (alpha-linux-tdep.o): New dependency list.
9854 (alphafbsd-tdep.o): Likewise.
9856 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9858 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9860 * alpha-tdep.c: ...from here.
9861 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9863 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9865 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9866 prototype from here...
9867 * alpha-tdep.h: ...to here.
9869 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9871 * frame.h (selected_frame_level): Document as deprecated.
9872 (frame_relative_level): Declare.
9873 * stack.c (frame_relative_level): New function.
9874 (selected_frame_level): Document as deprecated.
9875 (select_frame): Do not set the selected_frame_level.
9877 * stack.c (frame_info, record_selected_frame): Update.
9878 (frame_command, current_frame_command): Update.
9879 (up_silently_base, up_command, down_silently_base): Update.
9880 (down_command): Update.
9881 * inflow.c (kill_command): Update.
9882 * tracepoint.c (finish_tfind_command): Update.
9883 * corelow.c (core_open): Update.
9884 * thread.c (info_threads_command): Update.
9885 (do_captured_thread_select): Update.
9886 * infcmd.c (finish_command): Update.
9887 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9889 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9891 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9893 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9895 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9898 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9900 * alphafbsd-tdep.c: Update copyright years. Include
9902 (alphafbsd_use_struct_convention): Make static.
9903 (alphafbsd_init_abi): New function.
9904 (_initialize_alphafbsd_tdep): New function.
9905 * config/alpha/tm-fbsd.h: Update copyright years.
9906 (USE_STRUCT_CONVENTION): Remove.
9908 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9910 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9911 an Alpha ABI variant.
9912 (alpha_abi_handler_list): Declare.
9913 (alpha_gdbarch_register_os_abi): New function.
9914 (alpha_gdbarch_init): Give registered ABI variant handlers a
9915 chance to tweak the gdbarch once we have set up defaults.
9916 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9918 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9920 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9921 to standard_coerce_float_to_double.
9922 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9924 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9926 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9927 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9928 from gdbarch_tdep rather than a constant.
9929 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9930 the default text address for all Alpha Unix ABIs.
9931 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9932 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9934 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9936 * alpha-tdep.h: New file. Includes several Alpha target constants
9938 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9939 let gdbarch deal with.
9940 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9941 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9943 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9944 Alpha target register names.
9945 * alphabsd-nat.c: Likewise.
9946 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9947 Alpha target register names. Make serveral routines static.
9948 (alpha_get_saved_register): New function.
9949 (alpha_abi_names): New.
9950 (process_note_abi_tag_sections): New function.
9951 (get_elfosabi): New function.
9952 (alpha_gdbarch_init): New function.
9953 (alpha_dump_tdep): New function.
9954 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9956 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9958 * frame.c (find_saved_register): Delete #ifdef
9959 HAVE_REGISTER_WINDOWS code.
9960 * config/sparc/tm-sparc.h: Update comments.
9961 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9963 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9965 * i960-tdep.c (i960_find_saved_register): New function.
9966 (i960_get_saved_register): New function.
9967 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9968 (i960_get_saved_register): Declare.
9969 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9971 2002-04-20 David S. Miller <davem@redhat.com>
9973 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9975 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9977 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9978 instead of NUM_PSEUDO_REGS.
9980 2002-04-20 David S. Miller <davem@redhat.com>
9982 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9983 GDB_MULTI_ARCH_PARTIAL
9984 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9985 define, let tm-sp64.h do it.
9987 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9989 * frame.c (find_saved_register): Avoid a NULL pointer
9990 dereference and actually walk the frame list.
9992 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9994 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9995 sorted in most most-recent-used order. Document.
9996 * gdbarch.h, gdbarch.c: Regenerate.
9998 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10000 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10002 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10003 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10004 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10007 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10010 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10011 (build_builtin_type_vec128): Ditto.
10012 (append_composite_type_field): Fix calculation of type length in
10015 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10017 * config/djgpp/README: Update.
10019 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10022 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10024 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10025 (alpha_setup_arbitrary_frame): ...to this.
10026 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10027 for alpha_setup_arbitrary_frame.
10029 2002-04-18 Andrew Cagney <cagney@redhat.com>
10031 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10032 * gdbarch.h, gdbarch.c: Regenerate.
10034 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10035 * target.h (memory_breakpoint_from_pc): Update declaration.
10036 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10038 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10039 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10040 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10041 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10042 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10043 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10044 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10045 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10046 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10047 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10048 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10049 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10051 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10053 * monitor.c (monitor_insert_breakpoint): Ditto.
10054 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10056 * config/mcore/tm-mcore.h: Update copyright.
10057 * mem-break.c: Ditto.
10058 * xstormy16-tdep.c: Ditto.
10060 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10062 * p-exp.y: Add precedence rule for '^' token.
10063 This removes the shift/reduce conflicts.
10064 Remove the comment concerning these shift/reduce conflicts.
10066 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10068 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10069 (registers_powerpc_nofp): New register set for processors
10070 without floating point unit.
10072 2002-04-18 David S. Miller <davem@redhat.com>
10074 * MAINTAINERS: Add myself to write-after-approval.
10076 2002-04-17 Michael Snyder <msnyder@redhat.com>
10078 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10080 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10082 * rs6000-tdep.c (frame_initial_stack_address): Use
10083 frame_register_read to read the alloca_reg.
10085 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10087 * frame.c (find_saved_register): Find saved registers in the next
10091 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10093 * gdbarch.sh (LANG): Set to ``c''.
10095 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10097 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10099 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10101 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10104 * hpread.c (hpread_get_lntt): Add declaration.
10105 Also fix PR gdb/391.
10107 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10109 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10110 * aclocal.m4, configure: Re-generate.
10113 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10115 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10116 instead of tm_print_insn.
10118 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10120 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10122 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10124 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10125 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10126 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10128 2002-04-12 Don Howard <dhoward@redhat.com>
10130 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10131 max_user_call_depth.
10132 (init_cmd_lists): Initialize the new value;
10133 * cli/cli-script.c (execute_user_command): Limit the call depth of
10134 user defined commands. This avoids a core-dump when user commands
10135 are infinitly recursive.
10137 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10139 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10140 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10141 from tdep struct instead of DEFAULT_LR_SAVE.
10142 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10143 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10144 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10146 2002-04-12 Michael Snyder <msnyder@redhat.com>
10148 * Remote.c: Spelling fix.
10149 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10150 If no symbol found for "sbrk", try "_sbrk".
10151 (make_output_phdrs): Use bfd_section_name.
10152 (gcore_copy_callback): Use bfd_section_name.
10153 * eval.c: Indentation fix-ups.
10154 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10155 in case it gets applied to an address that is already
10156 in the instruction space.
10157 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10158 * symfile.c: Fix indentation, long lines.
10159 * source.c: White space fix-up.
10161 2002-04-12 Andrew Cagney <cagney@redhat.com>
10163 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10164 * frame.c (frame_register_read): New function. Return non-zero on
10166 (read_relative_register_raw_bytes_for_frame): Delete.
10167 (read_relative_register_raw_bytes): Delete.
10168 * frame.h (frame_register_read): Declare.
10169 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10170 * sh-tdep.c: Ditto.
10171 * infcmd.c (do_registers_info): Ditto.
10172 * hppa-tdep.c: Ditto.
10173 * rs6000-tdep.c: Ditto.
10174 * h8500-tdep.c: Ditto.
10175 * mips-tdep.c: Ditto.
10176 * h8300-tdep.c: Ditto.
10177 * z8k-tdep.c: Ditto.
10179 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10181 From Jimi X <jimix@watson.ibm.com>:
10182 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10185 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10187 From Jimi X <jimix@watson.ibm.com>:
10188 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10191 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10193 From Jimi X <jimix@watson.ibm.com>:
10194 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10195 register sets for these processor variants.
10197 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10199 * regformats/reg-ppc.dat: Support FPSCR.
10201 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10203 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10204 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10205 Add fpscr as an invalid/unfetchable register.
10206 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10207 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10208 (fill_fpregset): Add support for register fpscr.
10209 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10210 (fill_gregset): Account for the fact that register ``mq'' might
10212 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10213 (registers_power): Add fpscr to register set at slot 71.
10214 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10215 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10217 2002-04-11 Michael Snyder <msnyder@redhat.com>
10219 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10220 * configure: Regenerate.
10221 * config.in: Regenerate.
10222 * acconfig.h: Add define for _SYSCALL32.
10223 * core-sol2.c: Remove #define _SYSCALL32.
10224 * solib-legacy.c: Remove #define _SYSCALL32.
10226 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10228 * stack.c (select_frame): Cleanup internal error message, do not
10231 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10233 * stack.c (select_frame): Check that selected_frame and the
10234 specified level are as expected.
10235 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10237 * frame.h (struct frame_info): Add field `level'. Update
10239 Work-in-progress PR gdb/464.
10241 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10243 * maint.c (maint_print_section_info): Rename print_section_info.
10244 (print_bfd_section_info, print_objfile_section_info): Update.
10245 * inferior.h (struct gdbarch): Add opaque declaration.
10246 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10247 * gdbarch.h: Regenerate.
10249 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10251 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10252 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10253 (kernel_u_size): Added.
10254 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10255 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10257 2002-04-04 Jim Ingham <jingham@apple.com>
10259 * valarith.c (find_size_for_pointer_math): New function, either returns
10260 the size for a pointer's target, returns 1 for void *, or errors for
10262 (value_add, value_sub): use find_size_for_pointer_math.
10264 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10266 * linux-low.c (linux_look_up_symbols): New hook.
10267 (linux_target_ops): Add linux_look_up_symbols.
10268 * remote-utils.c (decode_address): New function.
10269 (look_up_one_symbol): New function.
10270 * server.c (handle_query): Call target look_up_symbols hook.
10271 * server.h (look_up_one_symbol): Add prototype.
10272 * target.h (struct target_ops): Add look_up_symbols hook.
10274 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10276 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10277 override FP_REGNUM with frame->fp. Update copyright.
10278 * parse.c (num_std_regs, std_regs): Delete.
10279 (target_map_name_to_register): Do not search std_regs. Update
10280 function description.
10281 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10282 declarations. Update copyright.
10285 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10287 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10288 after the last symbol in a block.
10290 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10292 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10293 is non zero as a found symbol.
10295 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10297 * findvar.c: Include "builtin-regs.h".
10298 (value_of_register): Call value_of_builtin_reg when applicable.
10299 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10300 (target_map_name_to_register): Call
10301 builtin_reg_map_name_to_regnum.
10302 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10303 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10304 (builtin_regs_h): Define.
10305 (builtin-regs.o): New target.
10306 (findvar.o): Add $(builtin_regs_h).
10307 * builtin-regs.c, builtin-regs.h: New files.
10308 * std-regs.c: New file.
10309 Partial fix for PR gdb/251.
10311 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10313 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10314 it's no longer required.
10316 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10318 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10320 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10322 From Jimi X <jimix@watson.ibm.com>:
10323 * rs6000-tdep.c (rs6000_software_single_step): Use
10324 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10325 and size. Use target_insert_breakpoint() and
10326 target_remove_breakpoint() to insert and remove breakpoints
10327 instead of explicit memory reads and writes.
10329 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10331 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10332 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10333 ELF_OBJECT_FORMAT ifdef.
10335 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10337 From Jimi X <jimix@watson.ibm.com>:
10338 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10340 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10342 From Jimi X <jimix@watson.ibm.com>:
10343 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10344 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10346 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10348 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10349 s/asprintf/xasprintf/.
10350 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10352 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10354 I believe Jeff Law denies responsability for this one:
10355 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10356 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10357 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10358 Work-around for PR gdb/366.
10360 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10362 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10363 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10364 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10366 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10368 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10369 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10372 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10374 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10377 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10379 * README (Reporting Bugs in GDB): Document the bug web page as the
10380 prefered way of submitting bugs.
10383 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10385 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10386 -1. Update comment.
10387 * gdbarch.h, gdbarch.c: Re-generate.
10389 2002-04-07 Andreas Schwab <schwab@suse.de>
10391 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10392 buffer to regcache_collect.
10394 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10396 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10397 * gdbarch.c, gdbarch.h: Re-generate.
10399 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10401 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10402 declaration. Fix -Werror.
10404 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10406 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10407 * gdbarch.c: Regenerate.
10409 2002-04-05 Michael Snyder <msnyder@redhat.com>
10411 * breakpoint.c (clear_command): Rewrite middle section to
10412 combine two loops with identical control conditions.
10413 Add a cleanup to eliminate a memory leak.
10414 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10416 2002-04-05 H.J. Lu (hjl@gnu.org)
10418 * solib-svr4.c (bkpt_names): Add "__start".
10420 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10422 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10423 as test for 64 bit target.
10425 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10427 * h8500-tdep.c (h8500_write_fp): Delete function.
10428 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10429 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10430 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10432 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10433 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10435 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10436 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10437 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10438 (d10v_write_fp): Delete function.
10439 * inferior.h (write_fp, generic_target_write_fp): Delete
10441 * regcache.c (generic_target_write_fp): Delete function.
10442 (write_fp): Delete function.
10443 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10444 * gdbarch.h, gdbarch.c: Regenerate.
10445 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10446 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10447 (sparc64_write_fp): Delete declaration.
10448 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10449 (h8500_write_fp): Delete declaration.
10451 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10453 * sparc-tdep.c (sparc64_write_fp): Delete.
10454 (sparc_push_dummy_frame): Replace write_fp call with code to store
10456 (sparc_gdbarch_init): Do not initialize write_fp.
10458 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10460 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10463 2002-03-29 Jim Blandy <jimb@redhat.com>
10465 * stack.c (get_selected_block): Add new argument `addr_in_block',
10466 used to return the exact code address we used to select the block,
10467 not just the block.
10468 * blockframe.c (get_frame_block, get_current_block): Same.
10469 * frame.h (get_frame_block, get_current_block,
10470 get_selected_block): Update declarations.
10471 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10472 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10474 2002-04-05 Michael Snyder <msnyder@redhat.com>
10476 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10479 2002-04-05 J. Brobecker <brobecker@gnat.com>
10481 * utils.c (xfullpath): New function.
10482 * defs.h (xfullpath): Add declaration.
10483 * source.c (openp): Use xfullpath in place of gdb_realpath to
10484 avoid resolving the basename part of filenames when the
10485 associated file is a symbolic link. This fixes a potential
10486 inconsistency between the filenames known to GDB and the
10487 filenames it prints in the annotations.
10488 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10489 to be able to match a filename with either the real filename, or
10490 the name of any symbolic link to this file.
10491 (lookup_partial_symtab): Ditto.
10493 2002-04-04 Michael Snyder <msnyder@redhat.com>
10495 * breakpoint.c: Add support for hardware breakpoints in overlays.
10496 (overlay_events_enabled): New state variable.
10497 (insert_breakpoints): Use overlay_events_enabled to decide
10498 whether to attempt to set a breakpoint at the overlay load addr.
10499 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10500 (remove_breakpoint): Use overlay_events_enabled to decide
10501 whether breakpoints need to be removed from overlay load addr.
10502 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10503 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10504 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10505 disable_overlay_breakpoints): Update overlay_events_enabled.
10507 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10509 * dwarf2read.c (struct function_range): New.
10510 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10511 (check_cu_functions): New.
10512 (read_file_scope): Initialize global function lists.
10513 Call dwarf_decode_line after processing children.
10514 (read_func_scope): Add to global function list.
10515 (dwarf_decode_lines): Call check_cu_functions everywhere
10516 record_line is called. Call record_line with a linenumber
10517 of 0 to mark sequence ends.
10519 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10521 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10522 change sync with glibc.
10524 2002-04-03 Jim Blandy <jimb@redhat.com>
10526 * configure.in: Call AC_C_INLINE.
10527 * configure: Regenerated.
10529 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10531 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10532 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10534 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10536 * NEWS: Mention gcore support on FreeBSD/i386.
10538 * fbsd-proc.c: New file.
10539 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10540 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10542 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10545 2002-03-29 Jim Blandy <jimb@redhat.com>
10547 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10548 unescaped newlines in string literals, but newer ones don't. So
10551 2002-03-26 Michael Snyder <msnyder@redhat.com>
10552 Andrew Cagney <cagney@redhat.com>
10554 * cli/cli-dump.c: New file. Dump memory to file,
10555 restore file to memory.
10556 * cli/cli-dump.h: New file.
10557 * Makefile.in: Add rules, dependencies for cli-dump.o.
10558 * NEWS: Mention new commands.
10560 2002-03-28 Michael Snyder <msnyder@redhat.com>
10562 * symfile.c (symbol_file_add): Move test for null symbols to later.
10564 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10566 From veksler at il.ibm.com:
10567 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10568 the xstrduped original path.
10571 2002-03-27 Michael Snyder <msnyder@redhat.com>
10573 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10574 * infcmd.c (_initialize_infcmd): Ditto.
10575 * language.c (_initialize_language): Ditto.
10576 * symfile.c (_initialize_symfile): Ditto.
10577 * top.c (_init_main): Ditto.
10578 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10580 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10582 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10583 vector registers handling.
10584 (skip_prologue): Handle new AltiVec instructions. Fill in new
10585 fields of frame data.
10586 (frame_get_saved_regs): Fill in information for AltiVec registers.
10588 2002-03-27 Jim Blandy <jimb@redhat.com>
10590 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10591 a function; leave this macro here to invoke that function.
10592 (symbol_init_mangled_name): Declaration for that function.
10593 * symtab.c (symbol_init_mangled_name): New function.
10595 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10597 * valarith.c: Replace strerror with safe_strerror.
10598 * tracepoint.c: Ditto.
10599 * lin-lwp.c: Ditto.
10600 * go32-nat.c: Ditto.
10602 * gnu-nat.c: Ditto.
10604 2002-03-27 Andreas Schwab <schwab@suse.de>
10606 * event-top.c (command_line_handler): Remove useless if.
10608 2002-03-27 Andreas Jaeger <aj@suse.de>
10610 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10613 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10615 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10616 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10617 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10618 (x86_64_linux_dr_get_status, supply_gregset),
10619 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10620 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10621 (x86_64_register_info_table): Add.
10622 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10623 (x86_64_register_raw_size, x86_64_register_virtual_type),
10624 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10625 general x86_64_register_info_table.
10626 (i386_gdbarch_init): gdbarch_register_bytes is now set
10627 dynamicaly during initialization.
10628 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10629 * gdbserver/linux-x86-64-low.c: Ditto.
10631 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10633 * gdbserver/server.c (main): Call target_signal_to_host_p
10634 and target_signal_to_host on signals received from the remote.
10635 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10636 target_signal_from_host on signals sent to the remote.
10637 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10638 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10640 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10642 * signals/signals.c: Include "server.h" in gdbserver build.
10643 (target_signal_from_name): Don't use STREQ.
10644 (_initialize_signals): Likewise. Don't include function in
10647 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10649 * signals.c: Moved to...
10650 * signals/signals.c: Here.
10651 * Makefile (signals.o): Update.
10653 2002-03-26 Jeff Law (law@redhat.com)
10655 * somread.c (som_symtab_read): Remove some commented out code and
10656 updated related comments. Do not set the minimal symbol table to
10657 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10658 in a dynamic executable.
10659 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10660 where we are unable to find the minimal symbol for the given
10663 2002-03-25 Jeff Law (law@redhat.com)
10665 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10667 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10669 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10671 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10673 * command.h: Update copyright.
10674 (struct cmd_list_element): Replace definition with opaque
10676 (enum cmd_types): Document that it will eventually be moved to
10678 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10679 (MALLOCED_REPLACEMENT): Delete macro.
10680 * Makefile.in (cli_decode_h): Add $(command_h).
10681 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10682 * top.c: Include "cli/cli-decode.h".
10683 * completer.c: Include "cli/cli-decode.h".
10684 * maint.c: Include "cli/cli-decode.h".
10685 * cli/cli-decode.h: Include "command.h".
10686 (enum command_class): Delete.
10687 (enum cmd_types): Comment out.
10688 (enum cmd_auto_boolean): Delete.
10689 (enum var_types): Delete.
10691 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10693 * cli/cli-decode.c: Include "gdb_assert.h".
10694 (add_set_or_show_cmd): New static function.
10695 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10696 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10697 all fields, such as func, from the set command.
10699 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10701 * MAINTAINERS (sh-elf): Change warning flag to -w.
10703 2002-03-23 Andrew Cagney <cagney@redhat.com>
10705 * defs.h (error): Add printf format attribute.
10706 * thread-db.c (thread_from_lwp): Fix error format string.
10707 * stack.c (parse_frame_specification): Ditto.
10708 * cli/cli-decode.c (undef_cmd_error): Ditto.
10709 * scm-lang.c (scm_lookup_name): Ditto.
10710 * tracepoint.c (trace_error): Ditto.
10711 * remote-utils.c (usage): Ditto.
10712 * remote.c (compare_sections_command): Ditto.
10715 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10717 * gdbtypes.c (append_composite_type_field): New function.
10718 (init_composite_type): New function.
10719 * gdbtypes.h (append_composite_type_field): Declare.
10720 (init_composite_type): Ditto.
10722 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10724 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10726 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10727 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10728 structure returning convention for SYSV ABI case, but not
10729 for GNU/Linux, FreeBSD, or NetBSD.
10731 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10733 * symtab.h (lookup_block_symbol): Add mangled_name argument
10736 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10737 with new mangled_name argument.
10738 * linespec.c (decode_line_1): Likewise.
10739 * valops (value_of_this): Likewise.
10740 * symtab.c (lookup_transparent_type): Likewise.
10741 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10742 (lookup_symbol): If we are given a mangled name, pass it down
10743 to lookup_symbol_aux.
10744 (lookup_block_symbol): If we are given a mangled name to check
10745 against, only return symbols which match it.
10747 2002-03-22 Christopher Faylor <cgf@redhat.com>
10749 * win32-nat.c (child_create_inferior): Check for proper shell to use
10750 here, in case the user changes it on the fly.
10751 (_initialize_inftarg): Remove shell path considerations.
10753 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10755 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10756 for gdbarch_max_register_raw_size and max_register_virtual_size.
10757 Adjust copyright year.
10759 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10761 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10762 in a function to cover the entire beginning of the function
10763 as well if it does not already.
10765 2002-03-21 Tom Rix <trix@redhat.com>
10767 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10768 (rs6000_ptrace64): Renamed from ptrace64.
10770 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10772 * gdbserver/remote-utils.c (remote_open): Don't call
10773 getprotobyname, we're all using TCP here so just use
10775 * gdbserver/gdbreplay.c (remote_open): Ditto.
10777 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10779 * regcache.c (_initialize_regcache): No need to call
10780 build_regcache() at this time; it gets called whenever
10781 the gdbarch changes.
10783 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10785 * sparc-nat.c: Include sys/param.h where possible.
10787 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10790 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10791 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10792 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10794 * stabsread.c (rs6000_builtin_type): Likewise.
10795 (read_sun_floating_type): Likewise.
10797 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10799 * stabsread.c (read_member_functions): Remove skip code for duplicate
10800 constructor/destructor methods. Use standard parsing for these
10801 methods and just do not chain them to the list of methods after
10804 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10806 * coffread.c: Remove redundant static declarations. Replace
10807 occurrences of `PTR' with `void *'.
10808 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10809 * top.h (quit_cover): Likewise.
10810 * defs.h (catch_errors): Likewise.
10812 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10814 * defs.h (XMALLOC): Define.
10815 * gdb-events.sh (XMALLOC): Delete macro.
10816 * gdb-events.c, gdb-events.h: Regenerate.
10817 * gdbarch.sh (XMALLOC): Delete macro.
10818 * gdbarch.c: Regenerate.
10819 * serial.c (XMALLOC): Delete macro.
10820 * ui-file.c (XMALLOC): Ditto.
10821 * ser-unix.h (XMALLOC): Ditto.
10822 * sh-tdep.c (XMALLOC): Ditto.
10823 * ui-out.c (XMALLOC): Ditto.
10824 * utils.c (XMALLOC): Ditto.
10825 * i386-tdep.c (XMALLOC): Ditto.
10826 * gdb-events.c (XMALLOC): Ditto.
10827 * d10v-tdep.c (XMALLOC): Ditto.
10828 * cli-out.c (XMALLOC): Ditto.
10830 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10831 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10832 * ui-file.c, ui-out.c: Ditto.
10834 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10836 * command.h (struct cmd_list_element): Add field context.
10837 (set_cmd_context, get_cmd_context): Declare.
10838 * cli/cli-decode.h: Ditto.
10839 * cli/cli-decode.c (get_cmd_context): New function.
10840 (set_cmd_context): New function.
10841 (add_cmd): Initialize context.
10842 Part of fixing PR gdb/145 and PR gdb/146.
10844 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10846 * cli/cli-decode.c (cmd_type): New function.
10847 * command.h (cmd_type): Declare.
10848 * infrun.c (set_schedlock_func): Call function cmd_type.
10849 * kod.c (kod_set_os): Call cmd_type.
10850 * cris-tdep.c (cris_version_update): Use function cmd_type.
10851 (cris_mode_update, cris_abi_update): Ditto.
10853 * command.h: (execute_cmd_post_hook): Declare.
10854 (execute_cmd_pre_hook): Declare.
10855 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10856 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10857 functions. Execute pre/post hook while ensuring that afterwords
10858 hook_in is cleared.
10859 * top.c (execute_command): Use execute_cmd_post_hook, and
10860 execute_cmd_pre_hook to execute pre/post commands.
10861 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10863 (hook_stop_stub): Call execute_cmd_pre_hook.
10865 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10867 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10868 set'' and this leads to a core dump. Move xstrdup of
10869 operating_system to after check that it is not NULL.
10871 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10873 * kod.c (kod_set_os): Remove unnecessary check that
10874 ``command->type'' is set_cmd.
10876 * valprint.c (set_input_radix): Use input_radix.
10877 (set_output_radix): Use output_radix.
10878 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10881 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10883 * value.h (struct value): Delete field ``substring_addr''. Change
10884 aligner fields to force_doublest_align, force_longest_align,
10885 force_core_addr_align and force_pointer_aligh.
10887 * value.h (struct value): Fix typo in above change.
10889 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10891 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10892 to fix internal_error from ``maintenance print architecture''.
10894 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10896 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10897 for gcc versions after gcc-2.8.1.
10899 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10901 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10902 for method resolution. Restore adjustment of ``this'' pointer after
10903 calling value_struct_elt, which was accidentally removed during the
10906 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10908 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10910 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10911 get_saved_register.
10912 * value.h (value_of_register): Update.
10914 2002-03-14 Richard Henderson <rth@redhat.com>
10916 * configure.in: Detect declaration for canonicalize_file_name.
10917 * utils.c (canonicalize_file_name): Declare, if needed.
10918 (gdb_realpath): Prefer realpath if available and usable.
10919 * config.in, configure: Rebuild.
10921 2002-03-14 Richard Henderson <rth@redhat.com>
10923 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10924 a constant array bound.
10926 * MAINTAINERS: Add myself to write-after-approval.
10928 2002-03-14 Michael Snyder <msnyder@redhat.com>
10930 * symfile.c (syms_from_objfile): Return immediately if no syms.
10931 (symbol_file_add): Return immediately if no syms.
10932 (find_sym_fns): Return immediately if no syms.
10934 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10936 * gdbserver/remote-util.c (remote_open): Print remote-side's
10937 IP address when remote debugging over the network.
10939 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10941 * config/sparc/fbsd.mh: Fix copyright.
10942 * config/sparc/fbsd.mt: Likewise.
10944 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10946 * MAINTAINERS: Fix typo in name of gdb warnings option.
10947 (x86-64): Fix formating so that this can be parsed by awk.
10949 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10951 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10952 * defs.h: Include "gdb/signals.h".
10953 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10955 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10957 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10958 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10961 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10962 Don Howard <dhoward@redhat.com>
10964 * mips-tdep.c (ST0_FR): Define.
10965 (mips2_fp_compat): New function, temporarily disabled.
10966 (mips_read_fp_register_single): New function.
10967 (mips_read_fp_register_double): New function.
10968 (mips_print_register): Use them.
10969 (do_fp_register_row): Likewise.
10971 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10973 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10976 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10978 * stabsread.c (read_member_functions): Fix is_stub test for
10979 static member functions, improve comment.
10981 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10983 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10984 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10985 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10986 commands that set boolean values.
10987 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10988 (arm_rdi_resume): Always initialize PC.
10989 (arm_rdi_open): Don't use rslt as a boolean.
10990 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10991 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10992 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10993 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10995 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10997 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10998 * configure: Rebuilt.
11000 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11002 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11003 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11005 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11007 * cli/cli-decode.c (set_cmd_completer): New function.
11008 * command.h (set_cmd_completer): Declare.
11009 * cli/cli-decode.h (set_cmd_completer): Ditto.
11011 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11012 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11013 * win32-nat.c (_initialize_inftarg): Ditto.
11014 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11015 * proc-api.c (_initialize_proc_api): Ditto.
11016 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11017 * source.c (_initialize_source): Ditto.
11018 * exec.c (_initialize_exec): Ditto.
11019 * solib.c (_initialize_solib): Ditto.
11020 * top.c (init_main): Ditto.
11021 * tracepoint.c (_initialize_tracepoint): Ditto.
11022 * symfile.c (_initialize_symfile): Ditto.
11023 * printcmd.c (_initialize_printcmd): Ditto.
11024 * infcmd.c (_initialize_infcmd): Ditto.
11025 * corefile.c (_initialize_core): Ditto.
11027 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11029 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11031 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11033 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11035 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11037 * NEWS: Update headings, 5.2 has branched.
11039 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11041 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11042 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11043 (register_addr, REGISTER_RAW_SIZE): Likewise.
11044 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11045 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11047 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11049 * MAINTAINERS (x86-64): Add myself.
11050 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11051 changed value_ptr -> struct value *
11053 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11055 * configure.host (sparc64-*-freebsd): Add.
11056 * configure.tgt: Likewise.
11057 * config/sparc/fbsd.mh: New file.
11058 * config/sparc/fbsd.mt: Likewise.
11059 * config/sparc/nm-fbsd.h: Likewise.
11060 * config/sparc/tm-fbsd.h: Likewise.
11062 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11064 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11065 regformats/reg-s390x.dat.
11067 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11069 * utils.c: Add FIXME explaining true/false problem.
11071 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11073 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11075 2002-02-28 Michael Chastain <mec@shout.net>
11077 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11079 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11081 * gdbserver/linux-s390-low.c: New file.
11082 * regformats/reg-s390.dat: New file.
11083 * regformats/reg-s390x.dat: New file.
11084 * gdbserver/configure.srv: Add S/390.
11085 * gdbserver/Makefile.in: Add S/390.
11086 * configure.tgt: Enable gdbserver for S/390.
11088 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11090 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11091 first line of the doc string for "info dos", except at the end of
11092 the sentence, since the short help stops at the first period.
11094 2002-02-28 Jason Merrill <jason@redhat.com>
11096 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11098 2002-02-27 Fred Fish <fnf@redhat.com>
11100 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11101 comment (dumy -> dummy).
11103 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11105 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11107 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11109 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11111 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11113 * gdbserver/acconfig.h: New file.
11114 * gdbserver/i387-fp.c: New file.
11115 * gdbserver/i387-fp.h: New file.
11116 * gdbserver/linux-x86-64.c: New file.
11117 * regformats/reg-x86-64.dat: New file.
11118 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11119 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11120 * gdbserver/configure.in: Add support for regsets.
11121 * gdbserver/config.in: Regenerate.
11122 * gdbserver/configure: Regenerate.
11123 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11124 * gdbserver/linux-low.h: New file.
11125 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11127 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11128 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11129 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11130 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11131 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11132 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11133 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11134 "i387-fp.h". Add PTRACE_GETREGS and friends.
11135 * gdbserver/regcache.c (supply_register): New function.
11136 (supply_register_by_name): New function.
11137 (collect_register): New function.
11138 (collect_register_by_name): New function.
11140 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11142 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11143 (config.status): Add configure.srv dependency.
11144 (server_h): Add config.h dependency.
11146 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11148 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11149 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11150 * gdbserver/configure.srv: Change i386-*-linux* to use
11153 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11155 * x86-64-tdep.c: Re-indent. Update copyright date.
11157 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11159 From Michal Ludvig <mludvig@suse.cz>:
11160 * x86-64-tdep.c (value.h): Delete.
11161 (gdb_assert.h): Include.
11162 (x86_64_register_convert_to_virtual,
11163 x86_64_register_convert_to_raw ): Add check which lets only
11164 floating-point values to be converted.
11165 (value_push): Delete.
11166 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11167 (i386_gdbarch_init): Number of register_bytes fixed.
11169 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11171 * MAINTAINERS: Add x86-64 target.
11173 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11175 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11176 * osfsolib.c (solib_map_sections): Ditto.
11177 * irix5-nat.c (solib_map_sections): Ditto.
11178 * corelow.c (gdb_check_format): Ditto.
11179 * symfile.c (symfile_bfd_open): Ditto.
11180 * solib.c (solib_map_sections): Ditto.
11183 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11185 * remote.c (_initialize_remote): By default, disable ``e'' and
11186 ``E'' step out-of-range packets.
11188 2002-02-26 Andreas Schwab <schwab@suse.de>
11190 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11191 m68k_linux_frame_saved_pc.
11192 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11194 (SIGCONTEXT_PC_OFFSET): Remove.
11195 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11196 m68k_linux_sigtramp_saved_pc): New functions.
11197 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11198 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11199 (UCONTEXT_PC_OFFSET): Define.
11200 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11201 non-RT and RT signal trampolines.
11203 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11205 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11206 (TARGET_NBPG, STACK_END_ADDR): Delete
11207 (VARIABLES_INSIDE_BLOCK): Delete.
11209 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11211 * utils.c (perror_with_name): Make string parameter constant.
11212 (print_sys_errmsg): Ditto.
11214 * defs.h (perror_with_name): Update.
11215 (print_sys_errmsg): Update.
11218 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11220 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11221 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11223 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11225 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11226 if it already matches the current architecture from the exec file.
11227 Include arch-utils.h for gdbarch_info_init prototype.
11228 * Makefile.in (rs6000-nat.o): Update dependencies.
11230 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11232 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11233 list of exported variables.
11235 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11237 * gdbserver/configure.srv: New file.
11238 * gdbserver/configure.in: Use configure.srv instead
11239 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11241 * gdbserver/configure: Regenerated.
11242 * gdbserver/terminal.h: New file.
11243 * gdbserver/Makefile.in: Update for configure changes. Remove
11244 more unneeded include paths.
11246 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11248 From wiz at danbala:
11249 * config/sparc/tm-sp64.h: Fix grammar and typos.
11252 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11254 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11255 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11256 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11257 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11258 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11259 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11260 * s390-tdep.c: Ditto.
11261 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11262 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11263 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11264 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11265 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11266 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11267 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11268 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11269 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11270 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11273 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11275 * lin-thread.c: Delete file.
11276 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11277 to gdb_proc_service.h.
11278 * configure: Re-generate.
11280 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11281 * serial.c (serial_open): Delete check for "ocd".
11284 * Makefile.in (linux-thread.o): Delete target.
11285 * linux-thread.c: Delete file.
11287 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11288 renamed SH files to be consistent.
11290 * symtab.c (sort_search_symbols): Use xfree.
11292 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11294 * arm-linux-tdep.c (arm_linux_init_abi): Register
11295 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11296 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11297 definition with undef, since we don't want the sysvr4 definition.
11298 (SKIP_TRAMPOLINE_CODE): Likewise.
11300 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11302 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11304 * configure.in: (AC_CHECK_FUNCS) Added test for
11305 canonicalize_file_name Regenerated.
11306 * config.in, configure: Regenerated.
11307 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11308 defined use canonicalize_file_name.
11310 2002-02-23 Michael Chastain <mec@shout.net>
11312 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11314 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11316 * README: Remove references to cygnus.com.
11317 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11318 dot com'' form. Remove references to cygnus.com and sourceware.
11320 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11322 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11323 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11324 1003.1-2001 no longer allows "head -1".
11325 * gdb/Makefile.in (version.c): Likewise.
11326 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11327 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11328 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11330 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11332 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11333 * command.h (cmd_cfunc_eq): Declare.
11334 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11336 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11337 ``struct cmd_list_element *''.
11338 * cli/cli-cmds.c (is_complete_command): Update. Use
11340 * top.c (execute_command): Pass the command to
11341 is_complete_command.
11342 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11344 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11346 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11347 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11348 architecture defines.
11349 * s390-tdep.c (s390_gdbarch_init): Likewise.
11351 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11353 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11354 (arm_linux_push_arguments): Likewise.
11355 (arm_linux_init_abi): Register them. Also register linux-specific
11357 (find_minsym_and_objfile): Use strcmp, not STREQ.
11358 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11359 (arm_linux_call_dummy_words): Delete declaration.
11360 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11361 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11363 (LOWEST_PC): Delete.
11365 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11367 * maint.c (print_section_info): Do not prepend `0x' to filepos
11368 output, it will be handled by local_hex_string_custom.
11370 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11372 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11373 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11374 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11376 2002-02-22 Jim Blandy <jimb@redhat.com>
11378 Indicate that the bcache functions don't change the strings
11380 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11381 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11383 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11385 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11387 2002-02-21 Christopher Faylor <cgf@redhat.com>
11389 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11390 find the complete path to a loaded DLL.
11392 2002-02-21 Fred Fish <fnf@redhat.com>
11394 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11395 that marks the end of the range of a function, enter a line number
11396 entry that has a line number of zero and a PC offset that matches
11397 the end of the function. This starts a range of PC's for which no
11398 line number information is known.
11399 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11400 PC's for which no line number info is found (line number is zero)
11401 then we didn't find any valid line information.
11402 * symtab.h: Document use of zero line number entry.
11404 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11406 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11407 (have_ptrace_getvrregs): Define for run time checks.
11408 (gdb_vrregset_t): New type for Altivec register handling.
11409 (fetch_register, store_register): Fetch/store altivec register
11411 (fetch_altivec_register, store_altivec_register): New functions.
11412 (supply_vrregset, fill_vrregset): New functions.
11413 (fetch_altivec_registers, store_altivec_registers): New functions.
11414 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11417 2002-02-21 Jiri Smid <smid@suse.cz>
11419 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11421 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11423 * Makefile.in (armnbsd-nat.o): Update dependencies.
11424 * armnbsd-nat.c (supply_gregset): New function. Common code to
11425 supply the integer register set.
11426 (supply_fparegset): New function. Similar for FPA registers.
11427 (fetch_regs, fetch_fp_regs): Use them.
11428 (fetch_core_registers): Likewise.
11429 (fetch_elfcore_registers): New function.
11430 (arm_netbsd_elfcore_fns): New core-file type specification.
11431 (_initialize_arm_netbsd_nat): Register it.
11433 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11435 * armnbsd-nat.c: Include gdbcore.h.
11436 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11437 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11438 'void' to declaration, to shut up ARI.
11439 (fetch_core_registers): Make static. Rewrite using supply_register.
11440 (arm_netbsd_core_fns): New core-file type specification.
11441 (_initialize_arm_netbsd_nat): New function.
11443 2002-02-21 Christopher Faylor <cgf@redhat.com>
11445 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11448 2002-02-20 Christopher Faylor <cgf@redhat.com>
11450 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11453 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11455 * jv-exp.y (parse_number): Change type of implicit longs
11456 to builtin_type_uint64.
11458 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11460 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11461 to be an integer instead of a `union wait'.
11463 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11465 * mips-linux-nat.c: Call the operating system GNU/Linux.
11466 * mips-linux-tdep.c: Likewise.
11467 * mips-tdep.c: Likewise.
11469 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11472 * jv-exp.y (parse_number): Handle 64-bit integers.
11474 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11476 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11477 AC_STDC_HEADERS to AC_HEADER_STDC.
11478 * gdbserver/configure: Regenerated.
11480 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11482 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11484 * sparc-tdep.c (get_longjmp_target): Likewise.
11486 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11488 * News: Add news about ARM and Multi-arch. Mention the new target
11491 2002-02-19 Jim Blandy <jimb@redhat.com>
11493 * stabsread.c (error_type_complaint): Improve error message.
11495 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11497 * gdbserver/README: Update documentation.
11498 * gdbserver/configure.in: Update configury to match documentation.
11499 * gdbserver/Makefile.in: Likewise.
11500 * gdbserver/configure: Regenerated.
11501 * gdbserver/aclocal.m4: New file, generated by aclocal.
11502 * gdbserver/config.in: New file, generated by autoheader.
11504 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11506 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11509 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11511 * arm-tdep.h (enum arm_float_model): New enum.
11512 (struct gdbarch_tdep): Add fp_model.
11513 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11514 up floating-point conversions until we know the floating-point model
11515 in use by the inferior. Don't complain about being unable to
11516 determine the ABI of the inferior when we don't have one.
11517 (arm_extract_return_value): Support different floating-point models.
11518 (arm_store_return_value): Likewise.
11519 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11521 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11523 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11525 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11526 of ``current_gdbarch''.
11528 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11530 * armnbsd-nat.c : ANSIfy all function declarations.
11531 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11532 (fetch_inferior_registers): Re-implement in terms of above.
11533 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11534 (store_inferior_registers): Re-implement in terms of above.
11536 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11538 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11540 * arm-linux-tdep.c: Likewise.
11541 * config/arm/tm-linux.h: Likewise.
11543 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11545 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11546 * config/arm/nbsd.mt (TM_FILE): Delete.
11547 * config/arm/tm-nbsd.h: Delete.
11549 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11551 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11552 Initialize CALL_DUMMY_LENGTH.
11554 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11556 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11558 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11559 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11560 defines one thing and that is incorrect for this port.
11561 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11563 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11565 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11567 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11569 * win32-nat.c (display_selector): New function. Displays information
11570 about the information returned by GetThreadSelectorEntry API function.
11571 (display_selectors): New function. Displays the infomation of
11572 the selector given as argument, or of CS, DS ans FS selectors
11573 if no argument is given.
11574 ( _initialize_inftarg): Add "w32" as info prefix command.
11575 Add "info w32 selector" as command calling display_selectors.
11577 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11579 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11580 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11583 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11585 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11587 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11589 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11590 (arm_fix_call_dummy): Call it.
11591 (arm_call_dummy_breakpoint_offset): Delete.
11592 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11593 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11595 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11597 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11598 Default to func_frame_chain_valid.
11599 * gdbarch.h, gdbarch.c: Re-generate.
11600 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11602 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11604 * ppc-linux-nat.c: Update copyright.
11605 (fetch_register, store_register): Add tid parameter, don't compute
11607 (fetch_ppc_registers, store_ppc_registers): Add tid
11608 parameter. Pass it along to callees.
11609 (fetch_inferior_registers, store_inferior_registers): Compute tid
11610 here, and pass it to calleed functions.
11611 (fill_gregset, supply_fpregset): Clean up formatting.
11613 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11615 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11616 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11618 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11620 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11621 * gdbarch.c gdbarch.h: Regenerate.
11622 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11624 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11625 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11626 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11628 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11629 * arm-tdep.c (arm_get_longjmp_target): New function.
11630 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11631 this to a positive value register arm_get_longjmp_target as the
11633 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11634 (arm_linux_init_abi): Set up longjmp description in tdep.
11635 * armnbsd-nat.c (get_longjmp_target): Delete.
11636 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11637 description in tdep.
11638 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11639 (get_longjmp_target): Delete declaration.
11640 (GET_LONGJMP_TARGET): Delete.
11641 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11642 (GET_LONGJMP_TARGET): Delete.
11644 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11646 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11647 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11648 of ``current_gdbarch''.
11650 2002-02-17 Tom Tromey <tromey@redhat.com>
11652 * cli/cli-cmds.c (compare_strings): New function.
11653 (complete_command): Only print each unique item once.
11654 * completer.h (complete_line): Declare.
11655 * completer.c (complete_line): New function.
11656 (line_completion_function): Use it.
11658 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11660 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11661 * gdbarch.h, gdbarch.c: Re-generate.
11663 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11665 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11667 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11669 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11670 * valops.c (value_arg_coerce): Don't take the address of a reference
11671 to convert an argument to a reference.
11673 2002-02-15 Christopher Faylor <cgf@redhat.com>
11675 * win32-nat.c (get_image_name): New function.
11676 (handle_load_dll): Use get_image_name function.
11677 (get_child_debug_event): Avoid registering debug events until possibly
11678 execed process is started.
11679 (child_create_inferior): Allow invocation via shell so that command
11680 line redirection, etc. works ok.
11681 (_initialize_inftarg): Add new command: "set shell" to control whether
11682 a shell is used to start a process.
11684 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11686 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11687 instead of find_register_by_number.
11688 (cannot_store_register): Likewise.
11690 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11692 * dwarf2read.c: Replace fprintf (stderr, ...) by
11693 fprintf_unfiltered (gdb_stderr, ...).
11695 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11697 * gdbserver/gdbserver.1: Document --attach.
11699 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11701 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11703 * arm-tdep.c (arm_default_arm_le_breakpoint)
11704 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11705 (arm_default_thumb_be_breakpoint): New. Initialize them from
11706 traditional breakpoint defines.
11707 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11708 (arm_gdbarch_init): Initialize new breakpoint variables.
11709 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11710 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11711 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11712 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11714 (arm_netbsd_init_abi_common): ... here; new function.
11715 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11716 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11717 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11718 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11720 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11722 * arm-tdep.h (enum arm_abi): New enum.
11723 (struct gdbarch_tdep): New structure.
11724 (LOWEST_PC): Provide a default.
11725 (arm_gdbarch_register_os_abi): Declare new function.
11726 * arm-tdep.c (arm_abi_names): New array.
11727 (process_note_abi_tag_sections): New function.
11728 (get_elfosabi): New function.
11729 (arm_gdbarch_register_os_abi): New function.
11730 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11731 support for that ABI has been built in, then call the appropriate
11732 configuration routine. Use gdbarch_num_regs() to get the number
11734 (arm_dump_tdep): New function.
11735 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11736 place-holder functions.
11737 (_initialize_arm_tdep): Register them.
11738 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11740 * armnbsd-tdep.c: New file.
11741 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11742 * config/arm/nbsd.mt (TDEPFILES): Add it.
11743 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11745 * armnbsd-nat.c: Include regcache.h.
11746 * Makefile.in (armnbsd-nat.o): Update dependency list.
11748 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11750 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11752 * gdbserver/Makefile.in: Fix typos in target rules.
11754 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11756 Fix part of PR gdb/267.
11757 * linespec.c (find_methods): Handle constructors specially for now.
11759 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11761 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11763 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11764 standard_coerce_float_to_double().
11766 2002-02-14 Christopher Faylor <cgf@redhat.com>
11768 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11771 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11773 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11774 find_variant_by_name, because it confuses the multiarch
11775 framework. Return NULL if there isn't an architecture with the
11776 user supplied name, instead of forcing a different one without
11777 recording the change with the multiarch machinery.
11778 (find_variant_by_name): Delete.
11780 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11782 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11783 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11785 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11787 * stack.c (print_frame_info_base): When calling
11788 print_frame_info_listing_hook, set current_source_symtab.
11790 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11792 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11793 and remove unused $(INCLUDE_DIR).
11794 Add regcache.c to OBS.
11795 Add generated register protocol files to clean target.
11796 Update dependencies for new objects, obsolete old target code.
11798 * gdbserver/linux-low.c: Remove all platform-specific code to
11799 new files. Remove various dead code. Update to use regcache
11801 * gdbserver/remote-utils.c (fromhex): Add return statement
11803 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11805 (input_interrupt): Add integer parameter to match prototype
11806 of a signal handler.
11807 (outreg): Use register_data ().
11808 (prepare_resume_reply): Use gdbserver_expedite_regs.
11809 * gdbserver/server.c (main): Dynamically allocate own_buf because
11810 PBUFSIZ is no longer constant. Use registers_to_string () and
11811 registers_from_string ().
11812 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11813 for error (), fatal (), and warning (). Update definition of
11814 PBUFSIZ to use regcache functionality. Add include guard.
11815 * gdbserver/utils.c (fatal): Add missing ``const''.
11816 (warning): New function.
11818 * regformats/regdat.sh: Include "regcache.h" in generated files.
11819 Provide init_registers () function.
11820 * regformats/regdef.h: Add prototype for set_register_cache ().
11823 * gdbserver/linux-arm-low.c: New file.
11824 * gdbserver/linux-i386-low.c: New file.
11825 * gdbserver/linux-ia64-low.c: New file.
11826 * gdbserver/linux-m68k-low.c: New file.
11827 * gdbserver/linux-mips-low.c: New file.
11828 * gdbserver/linux-ppc-low.c: New file.
11829 * gdbserver/linux-sh-low.c: New file.
11831 * gdbserver/regcache.c: New file.
11832 * gdbserver/regcache.h: New file.
11834 * gdbserver/low-linux.c: Removed obsolete file.
11836 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11838 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11839 * config/i386/linux.mt: Likewise.
11840 * config/ia64/linux.mt: Likewise.
11841 * config/m68k/linux.mh: Likewise.
11842 * config/powerpc/linux.mh: Likewise.
11843 * config/mips/linux.mt: Likewise.
11845 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11847 * config/i386/i386lynx.mh: Mark gdbserver variables
11848 as (currently) obsolete for this target.
11849 * config/i386/nbsd.mt: Likewise.
11850 * config/i386/nbsdelf.mt: Likewise.
11851 * config/m32r/m32r.mt: Likewise.
11852 * config/m68k/m68klynx.mh: Likewise.
11853 * config/m68k/nbsd.mt: Likewise.
11854 * config/m68k/sun3os4.mh: Likewise.
11855 * config/mips/vr5000.mt: Likewise.
11856 * config/ns32k/nbsd.mt: Likewise.
11857 * config/pa/hppabsd.mh: Likewise.
11858 * config/pa/hppaosf.mh: Likewise.
11859 * config/powerpc/nbsd.mt: Likewise.
11860 * config/rs6000/rs6000lynx.mh: Likewise.
11861 * config/s390/s390.mt: Likewise.
11862 * config/s390/s390x.mt: Likewise.
11863 * config/sparc/sparclynx.mh: Likewise.
11864 * config/sparc/sun4os4.mh: Likewise.
11865 * config/i386/x86-64linux.mt: Likewise.
11866 * config/sparc/linux.mh: Likewise.
11868 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11870 * configure.tgt: Configure gdbserver only for known working
11871 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11872 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11873 SUBDIRS if it is configured. Update comment for ${nativefile}.
11874 * configure: Regenerated.
11876 2002-02-13 Michael Snyder <msnyder@redhat.com>
11878 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11880 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11881 (default_gcore_mach): Just return 0, work around a problem in bfd.
11882 (default_gcore_target): OK to return NULL if exec_bfd is null.
11883 (make_mem_sec): Use a cast, avoid a warning.
11885 * procfs.c (find_memory_regions_callback): Use a cast instead of
11886 calling host_pointer_to_address (which complains if
11887 sizeof (host pointer) != sizeof (target pointer)).
11888 (procfs_make_note_section): Avoid overflow in psargs string.
11890 * procfs.c (procfs_make_note_section): Make the default
11891 implementation return an error.
11893 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11895 * procfs.c (procfs_make_note_section): Provide a default definition
11896 (for alpha-dec-osf4.0f). Fix typos.
11898 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11900 * linux-proc.c: Add include of regcache.h.
11901 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11903 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11905 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11906 * memattr.c (create_mem_region): Disallow useless empty region.
11907 Regions are half-open intervals, so allow [A..B) [B..C) as
11910 2002-02-13 Michael Chastain <mec@shout.net>
11912 * defs.h: Kill CONST_PTR.
11913 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11914 * c-lang.c (c_builtin_types): Likewise.
11915 * ch-lang.c (ch_builtin_types): Likewise.
11916 * f-lang.c (f_builtin_types): Likewise.
11917 * language.c (unknown_builtin_types): Likewise.
11918 * m2-lang.c (m2_builtin_types): Likewise.
11919 * p-lang.c (pascal_builtin_types): Likewise.
11920 * scm-lang.c (c_builtin_types): Likewise.
11922 2002-02-13 Keith Seitz <keiths@redhat.com>
11924 * arm-tdep.h (arm_get_next_pc): Add declaration.
11926 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11928 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11929 with other related struct-returning functions.
11930 (arm_extract_struct_value_address): New function.
11931 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11932 initialize float_format, double_format and long_double_format as
11933 appropriate to the endianness of the target.
11934 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11935 (arm_use_struct_convention): Delete declaration.
11936 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11938 2002-02-13 Keith Seitz <keiths@redhat.com>
11940 * defs.h (core_addr_to_string_nz): New function.
11942 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11944 Apply missing bits of 2002-01-15 patch.
11945 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11946 (fill_fpregset): Use i387_fill_fsave.
11948 2002-02-12 Keith Seitz <keiths@redhat.com>
11950 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11951 (core_addr_to_string_nz): New function.
11953 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11955 * arm-linux-nat.c: Really include arm-tdep.h.
11956 * config/arm/tm-linux.h (struct type, struct value): Declare.
11958 2002-02-11 Michael Snyder <msnyder@redhat.com>
11960 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11961 (gcore section): Ifdef for Solaris and Unixware only.
11962 (procfs_do_thread_registers): Unixware needs one lwpstatus
11963 per thread (not one prstatus or pstatus).
11964 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11965 not over all gdb threads. For unixware, call elfcore_write_pstatus
11966 once before iterating over threads.
11968 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11970 * arm-tdep.h: New file.
11971 * arm-tdep.c: Include arm-tdep.h.
11972 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11973 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11974 (arm_print_float_info, arm_register_type, convert_to_extended)
11975 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11976 (arm_extract_return_value, arm_register_name): Make static.
11977 (arm_software_single_step): Similarly. Fix types in declaration.
11978 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11979 (arm_store_return_value, arm_store_struct_return): New functions.
11980 (arm_gdbarch_init): Register the above functions. Also register
11981 call_dummy_start_offset, sizeof_call_dummy_words,
11982 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11983 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11984 max_register_virtual_size, register_size. Set up
11985 prologue_cache.saved_regs here, rather than ...
11986 (_initialize_arm_tdep): ... here.
11987 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11989 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11990 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11991 (arm_print_float_info, arm_register_type, convert_to_extended)
11992 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11993 (arm_extract_return_value, arm_register_name): Delete declarations.
11994 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11995 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11996 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11997 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11998 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11999 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12000 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12001 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12002 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12003 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12004 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12005 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12007 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12008 * remote-rdi.c remote-rdp.c: Likewise.
12009 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12010 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12011 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12014 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12015 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12016 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12017 from non-ARM_ prefixed definitions.
12018 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12020 * remote-rdi.c remote-rdp.c: Likewise.
12021 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12023 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12025 * arm-tdep.c (arm_frameless_function_invocation)
12026 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12027 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12028 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12029 (arm_pop_frame, arm_get_next_pc): Make static.
12030 (arm_gdbarch_init): Register above in gdbarch structure.
12031 (arm_read_fp): Renamed from arm_target_read_fp.
12032 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12033 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12034 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12035 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12036 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12037 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12038 (arm_pc_is_thumb_dummy): Delete declarations.
12039 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12040 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12041 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12042 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12044 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12046 * symtab.c (compare_search_syms): New function.
12047 (sort_search_symbols): New function.
12048 (search_symbols): Sort symbols after searching rather than
12051 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12053 * NEWS: Linux -> GNU/Linux.
12055 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12057 * gdbarch.sh: For for level one methods, disallow a definition
12058 when partially multi-arched. Add comments explaining rationale.
12059 * gdbarch.h: Re-generate.
12061 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12063 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12064 multi-arch partial.
12066 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12068 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12069 field. Use diff -u.
12070 * gdbarch.c: Re-generate.
12072 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12074 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12075 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12078 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12080 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12081 multi-arch partial.
12082 (PUSH_ARGUMENTS): Switch to using predefault.
12083 * gdbarch.c: Regenerate.
12085 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12087 * valops.c (PUSH_ARGUMENTS): Delete definition.
12088 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12089 partial. Default to default_push_arguments.
12090 * gdbarch.h, gdbarch.c: Regenerate.
12092 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12094 * defs.h (throw_exception): Rename return_to_top_level. Update
12096 * utils.c (error_stream, internal_verror, quit): Ditto.
12097 * top.c (throw_exception, catcher): Ditto.
12098 * sparclet-rom.c (sparclet_load): Ditto.
12099 * remote.c (interrupt_query, minitelnet): Ditto.
12100 * remote-sds.c (interrupt_query): Ditto.
12101 * remote-mips.c (mips_error, mips_kill): Ditto.
12102 * ocd.c (interrupt_query): Ditto.
12103 * monitor.c (monitor_interrupt_query): Ditto.
12104 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12105 * target.h: Update comment.
12107 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12109 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12111 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12112 default_double_format.
12113 * gdbarch.h, gdbarch.c: Re-generate.
12114 * findvar.c (floatformat_unknown): Delete variable definition.
12115 * doublest.h (floatformat_unknown): Delete variable declaration.
12117 2002-02-09 Jim Blandy <jimb@redhat.com>
12119 * stabsread.c (read_type): Add code to parse Sun's syntax for
12120 prototyped function types.
12122 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12124 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12125 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12127 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12129 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12130 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12131 now _initialize_xcoffsolib gets called again and overrides the
12132 commands from solib.c in a native configuration.
12134 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12136 * doublest.c (store_typed_floating): Don't try to return a value.
12139 2002-02-08 Jim Blandy <jimb@redhat.com>
12141 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12142 is prototyped and has no arguments, print its argument list as
12145 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12147 * MAINTAINERS (write-after-approval): Add myself.
12148 (paper-trail): I've escaped!
12150 2002-02-08 Christopher Faylor <cgf@redhat.com>
12152 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12154 (_initialize_check_for_gdb_ini): Ditto.
12156 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12158 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12159 xaprintf -> xasprintf.
12161 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12163 * win32-nat.c: Remove use of printf and sprintf functions.
12165 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12167 * arm-tdep.c (arm_frame_chain_valid): Make static.
12168 (arm_push_arguments): Likewise.
12169 (arm_gdbarch_init): New function.
12170 (_initialize_arm_tdep): Call it.
12171 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12172 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12173 (FRAME_CHAIN_VALID): Delete.
12174 (arm_frame_chain_valid): Delete declaration.
12175 (PUSH_ARGUMENTS): Delete.
12176 (arm_push_arguments): Delete declaration.
12177 (CALL_DUMMY_P): Delete.
12179 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12180 Corinna Vinschen <vinschen@redhat.com>
12182 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12183 on builtin float types.
12185 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12187 * utils.c: Include <curses.h> before "bfd.h".
12188 * tui/tui-hooks.c: Likewise.
12189 * tui/tui.c: Likewise.
12190 * tui/tuiCommand.c: Likewise.
12191 * tui/tuiData.c: Likewise.
12192 * tui/tuiDataWin.c: Likewise.
12193 * tui/tuiDisassem.c: Likewise.
12194 * tui/tuiGeneralWin.c: Likewise.
12195 * tui/tuiIO.c: Likewise.
12196 * tui/tuiLayout.c: Likewise.
12197 * tui/tuiRegs.c: Likewise.
12198 * tui/tuiSource.c: Likewise.
12199 * tui/tuiSourceWin.c: Likewise.
12200 * tui/tuiStack.c: Likewise.
12201 * tui/tuiWin.c: Likewise.
12203 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12205 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12206 to include space for pseudoregs as well. Update loops accordingly.
12207 (sh_fp_frame_init_saved_regs): Ditto.
12208 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12210 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12212 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12213 Add Richard Earnshaw to Arm maintainers.
12215 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12217 * defs.h (warning_begin): Delete declaration.
12219 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12222 2002-02-07 Michael Snyder <msnyder@redhat.com>
12224 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12225 Logic bug, remove misplaced else.
12227 2002-02-07 Klee Dienes <klee@apple.com>
12229 * fork-inferior.c (fork_inferior): Add '!' to the list of
12230 characters that need to be quoted when building a string for the
12231 shell. Quote '!' specifically with a backslash, since CSH chokes
12232 when trying to evaluate "str!str".
12234 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12236 * rdi-share/host.h: Only provide a typedef for bool if it is not
12239 2002-02-04 Michael Snyder <msnyder@redhat.com>
12241 * breakpoint.h (enum bptype): Add new overlay event bp type.
12242 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12244 * breakpoint.c (create_internal_breakpoint): New function.
12245 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12246 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12247 (create_thread_event_breakpoint): Ditto.
12248 (create_solib_event_breakpoint): Ditto.
12249 (create_overlay_event_breakpoint): New function.
12250 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12251 (update_breakpoints_after_exec): Delete and re-initialize
12252 overlay event breakpoints after an exec. Add FIXME comment
12253 about longjmp breakpoint.
12254 (print_it_typical): Ignore overlay event breakpoints.
12255 (print_one_breakpoint): Ditto.
12257 (bpstat_what): Do not stop for overlay event breakpoints.
12258 (delete_breakpoint): Don't delete overlay event breakpoints.
12259 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12260 (breakpoint_re_set): Re-create overlay event breakpoint.
12262 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12263 (overlay_manual_command): Disable overlay breakpoints.
12264 (overlay_off_command): Disable overlay breakpoints.
12266 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12268 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12269 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12270 to here from config/tm-arm.h.
12271 (coff_sym_is_thumb): Make static.
12272 (arm_elf_make_msymbol_special): New function.
12273 (arm_coff_make_msymbol_special): New function.
12274 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12275 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12276 (coff_sym_is_thumb): Delete declaration.
12277 (arm_elf_make_msymbol_special): Declare.
12278 (arm_coff_make_msymbol_special): Declare.
12279 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12280 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12282 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12284 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12286 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12288 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12289 * gdbarch.c gdbarch.h: Regenerate.
12290 * arch-utils.c (default_print_float_info): New function.
12291 * arch-utils.h (default_print_float_info): Prototype it.
12292 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12293 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12294 (PRINT_FLOAT_INFO): Document it.
12296 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12297 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12298 (PRINT_FLOAT_INFO): Define.
12300 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12302 * win32-nat.c (_initialize_check_for_gdb_ini):
12303 Add typecast to sprintf argument to suppress a warning.
12305 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12307 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12308 to allow easier handling of pass state.
12309 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12310 that gives exception name and address.
12311 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12312 and set last_sig value to ourstatus->value.sig. Some missing
12314 (child_continue): Correctly report continue_status.
12315 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12316 TARGET_SIGNAL_0 (new default value).
12317 (child_resume): consider sig argument passed to decide if
12318 the exception should be passed to debuggee or not.
12320 2002-02-05 Michael Snyder <msnyder@redhat.com>
12322 * regcache.c (fetch_register): Call target_fetch_register
12323 only if we don't call FETCH_PSEUDO_REGISTER.
12324 (store_register): Call target_store_register only if we
12325 don't call STORE_PSEUDO_REGISTER.
12327 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12329 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12330 ELF_MAKE_MSYMBOL_SPECIAL.
12331 * gdbarch.c, gdbarch.h: Regenerate.
12332 * arch-utils.c (default_make_msymbol_special): New function.
12333 * arch-utils.h (default_make_msymbol_special): Export.
12334 * elfread.c (elf_symtab_read): Compile use of
12335 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12337 * coffread.c (coff_symtab_read): Ditto, for
12338 COFF_MAKE_MSYMBOL_SPECIAL.
12340 2002-02-05 Jim Blandy <jimb@redhat.com>
12342 * solib-svr4.c (svr4_truncate_ptr): New function.
12343 (svr4_relocate_section_addresses): Do the address arithmetic with
12344 the appropriate truncation for target addresses, even when
12345 CORE_ADDR is larger than a target address.
12347 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12349 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12352 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12354 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12357 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12359 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12361 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12363 * gdbserver/linux-low.c: Remove unused include files.
12365 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12367 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12368 (read_inferior_memory): Use it.
12369 (write_inferior_memory): Likewise.
12371 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12373 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12374 grubbing through sys_errlist.
12376 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12378 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12380 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12381 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12383 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12385 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12386 (do_sfunc, set_cmd_sfunc): New functions.
12388 * command.h (struct cmd_list_element): Add field func.
12389 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12390 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12391 * cli/cli-decode.h: Ditto.
12393 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12394 (help_all, help_cmd_list): Ditto.
12395 (find_cmd, complete_on_cmdlist): Ditto.
12396 * top.c (execute_command): Ditto.
12398 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12401 * infcmd.c (notice_args_read): Fix function signature.
12403 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12404 * cli/cli-decode.c (add_set_cmd): Ditto.
12405 * utils.c (initialize_utils): Ditto.
12406 * maint.c (_initialize_maint_cmds): Ditto.
12407 * infrun.c (_initialize_infrun): Ditto.
12408 * demangle.c (_initialize_demangler): Ditto.
12409 * remote.c (add_packet_config_cmd): Ditto.
12410 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12411 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12412 * proc-api.c (_initialize_proc_api): Ditto.
12413 * kod.c (_initialize_kod): Ditto.
12414 * valprint.c (_initialize_valprint): Ditto.
12415 * top.c (init_main): Ditto.
12416 * infcmd.c (_initialize_infcmd): Ditto.
12417 * corefile.c (_initialize_core): Ditto.
12418 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12419 * arch-utils.c (initialize_current_architecture): Ditto.
12420 (_initialize_gdbarch_utils): Ditto.
12421 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12423 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12424 * wince.c (_initialize_inftarg): Ditto.
12425 * symfile.c (_initialize_symfile): Ditto.
12426 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12427 * language.c (_initialize_language): Ditto.
12428 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12430 2002-02-04 Michael Snyder <msnyder@redhat.com>
12432 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12434 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12436 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12437 Add rules for building the register data files.
12439 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12441 * regformats/regdat.sh: Add braces to the definition of
12442 expedite_regs_${arch}.
12444 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12446 * regformats/regdef.h (struct reg): Add comment describing the
12447 requirements for offset and size fields.
12449 2002-02-04 Andreas Schwab <schwab@suse.de>
12451 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12452 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12454 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12456 * gdbarch.sh (copyright): Update years in generated header.
12457 (SMASH_TEXT_ADDRESS): Add rule.
12458 * gdbarch.h, gdbarch.c: Re-generate.
12459 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12460 * dbxread.c: Likewise.
12461 * dwarfread.c: Likewise.
12462 * elfread.c: Likewise.
12463 * somread.c: Likewise.
12465 * arm-tdep.c (arm_smash_text_address): New function.
12466 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12468 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12470 Add support for hardware watchpoints on win32 native.
12471 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12472 CONTEXT_DEBUG_REGISTERS.
12473 (dr variable): New variable. Static array containing a local copy
12474 of debug registers.
12475 (debug_registers_changed): New variable. Reflects when debug registers
12476 are changed and need to be written to inferior.
12477 (debug_registers_used): New variable. Reflects when any debug register
12478 was set, used when new threads are created.
12479 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12481 (thread_rec): Set dr array if id is the thread of current_event .
12482 (child_continue, child_resume): Change the debug registers for all
12483 threads if debug_registers_changed.
12484 (child_add_thread): Change the debug registers if debug_registers_used.
12485 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12486 Link nm.h to new nm-cygwin.h file.
12487 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12488 of hardware registers.
12490 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12492 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12493 Restore behavour broken by 2002-01-20 Andrew Cagney
12494 <ac131313@redhat.com> IEEE_FLOAT removal.
12496 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12498 * c-valprint.c (c_val_print): Pass a proper valaddr to
12499 cp_print_class_method.
12500 * valops.c (search_struct_method): If there is only one method
12501 and args is NULL, return that method.
12503 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12505 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12506 accessing tag_name directly.
12508 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12510 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12511 of accessing tag_name directly.
12513 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12516 * gdbtypes.c (replace_type): New function.
12517 * gdbtypes.h (replace_type): Add prototype.
12518 * stabsread.c (read_type): Use replace_type.
12520 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12522 * Makefile.in (memattr.o): Add missing dependencies rule.
12524 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12526 * breakpoint.c (break_at_finish_command): Really export.
12527 (break_at_finish_at_depth_command): Ditto.
12528 (tbreak_at_finish_command): Ditto.
12529 * hppa-tdep.c: Include completer.h.
12530 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12531 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12533 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12535 * utils.c (do_write): New function.
12536 (error_stream): Rewrite combining the code from error_begin and
12538 (verror): Rewrite using error_stream.
12539 (error_begin): Delete function.
12541 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12543 * utils.c (error_begin): Make static.
12544 * defs.h (error_begin): Delete declaration.
12546 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12547 (decode_line_1): Use cplusplus_error instead of error_begin,
12548 cplusplus_hint and return_to_top_level.
12549 * coffread.c (coff_symfile_read): Use error instead of error_begin
12550 and return_to_top_level.
12551 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12553 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12555 * language.h (type_error, range_error): Make string parameter
12557 * language.c (warning_pre_print): Delete extern declaration.
12558 * dwarfread.c (warning_pre_print): Ditto.
12559 * language.c (type_error, range_error): Rewrite to use verror and
12560 vwarning instead of warning_begin.
12562 2002-02-01 Michael Snyder <msnyder@redhat.com>
12564 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12565 (set_ignore_count): Move misplaced comment back where it belongs.
12567 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12569 * command.h (NO_FUNCTION): Delete macro.
12570 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12571 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12572 * tracepoint.c (_initialize_tracepoint): Ditto.
12573 * cli/cli-decode.c (add_set_cmd): Ditto.
12574 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12576 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12578 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12579 Update ``this'' pointer when calling virtual functions.
12581 2002-02-01 Michael Snyder <msnyder@redhat.com>
12583 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12584 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12586 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12588 * regformats/reg-arm.dat: New file.
12589 * regformats/reg-i386.dat: New file.
12590 * regformats/reg-ia64.dat: New file.
12591 * regformats/reg-m68k.dat: New file.
12592 * regformats/reg-mips.dat: New file.
12593 * regformats/reg-ppc.dat: New file.
12594 * regformats/reg-sh.dat: New file.
12595 * regformats/regdef.h: New file.
12596 * regformats/regdat.sh: New file.
12598 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12600 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12601 (arm_frame_args_address, arm_frame_locals_address): New functions.
12602 (arm_frame_num_args): New function.
12603 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12604 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12605 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12607 2002-01-31 Michael Snyder <msnyder@redhat.com>
12609 * breakpoint.c (break_at_finish_command): Export.
12610 (break_at_finish_at_depth_command): Export.
12611 (tbreak_at_finish_command): Export.
12612 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12613 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12614 "txbreak" commands, which are HPPA specific.
12616 * printcmd.c (disassemble_command): Remove an ancient
12617 artifact of an old merge.
12619 * symfile.h (enum overlay_debugging_state):
12620 Define enum constant values for overlay mode.
12621 * symfile.c (overlay_debugging): Use enums instead of literals.
12622 (overlay_is_mapped, overlay_auto_command,
12623 overlay_manual_command): Ditto.
12625 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12626 breakpoint_here_p, breakpoint_inserted_here_p,
12627 breakpoint_thread_match, bpstat_stop_status,
12628 describe_other_breakpoints, check_duplicates, clear_command):
12629 Coding standard fixes.
12631 * target.c (target_xfer_memory): Add spaces, coding standard.
12632 (do_xfer_memory): Add missing line to trust-readonly
12633 code: check bfd SEC_READONLY flag for section.
12635 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12637 * PROBLEMS: Fix typo, 5.1->5.1.1.
12639 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12641 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12642 data symbols, since we search based on textlow and texthigh.
12643 (find_pc_sect_symtab): Likewise.
12645 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12647 * defs.h (vwarning): Declare.
12648 * utils.c (vwarning): New function.
12649 (warning): Call vwarning.
12650 (warning_begin): Delete function.
12652 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12653 the warning message.
12654 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12657 2002-01-30 Michael Snyder <msnyder@redhat.com>
12659 * NEWS: Mention "set trust-readonly-sections" command.
12660 Mention generate-core-file command.
12662 2002-01-15 Michael Snyder <msnyder@redhat.com>
12664 * target.c: New command, "set trust-readonly-sections on".
12665 (do_xfer_memory): Honor the suggestion to trust readonly sections
12666 by reading them from the object file instead of from the target.
12667 (initialize_targets): Register command "set trust-readonly-sections".
12669 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12671 * parse.c (target_map_name_to_register): Simplify, search regs and
12672 pseudo-regs using a single loop.
12674 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12676 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12678 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12680 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12681 * config/i386/i386v42mp.mh: Add i387-nat.o .
12682 * i386v4-nat.c: Include i387-nat.h.
12683 (supply_fpregset): Use i387_supply_fsave.
12684 (fill_fpregset): Use i387_fill_fsave.
12686 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12688 * arm-tdep.c (arm_call_dummy_words): Define.
12689 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12690 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12691 (CALL_DUMMY_WORDS): Define.
12692 (arm_call_dummy_words): Declare.
12693 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12694 (arm_linux_call_dummy_words): Declare.
12696 2002-01-30 Andreas Schwab <schwab@suse.de>
12698 * m68klinux-nat.c: Fix last change to use regcache_collect
12699 instead of referencing registers[] directly.
12701 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12703 * parse.c (target_map_name_to_register): Delete code wrapped in
12704 #ifdef REGISTER_NAME_ALIAS_HOOK.
12706 2002-01-28 Michael Snyder <msnyder@redhat.com>
12708 * regcache.c (legacy_read_register_gen): Need to be able to
12709 read pseudo-register as well as real register.
12710 (legacy_write_register_gen): Ditto.
12712 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12714 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12715 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12716 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12717 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12718 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12719 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12720 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12721 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12722 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12723 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12724 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12725 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12726 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12727 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12728 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12729 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12730 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12731 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12732 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12733 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12735 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12737 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12738 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12739 (initialize_current_architecture): Update target_byte_order using
12740 information from BFD.
12741 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12742 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12744 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12746 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12747 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12749 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12750 #ifdef INVALID_FLOAT.
12751 * infcmd.c (do_registers_info): Ditto.
12752 * values.c (unpack_double): Ditto. Add comment.
12754 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12755 already commented out.
12757 2002-01-26 Andreas Schwab <schwab@suse.de>
12759 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12760 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12761 registers and add support for PTRACE_GETREGS.
12763 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12765 GDB 5.1.1 released from 5.1 branch.
12766 * NEWS: Add 5.1.1 news.
12767 * README: Sync with 5.1 branch.
12769 2002-01-23 Fred Fish <fnf@redhat.com>
12771 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12772 stabstring on initial malloc. Reallocing will copy it for us,
12775 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12777 * Makefile.in (hpread_h): Delete.
12778 (HFILES_NO_SRCDIR): Remove hpread.h.
12779 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12780 (hpread.o): Update dependencies.
12781 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12783 * hp-psymtab-read.c: Remove file.
12784 * hp-symtab-read.c: Remove file.
12785 * hpread.h: Remove file.
12787 * hpread.c: Merge all contents of hp-psymtab-read.c,
12788 hp-symtab-read.c and hpread.h into this file, as it was prior to
12791 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12792 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12793 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12794 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12796 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12798 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12799 fill_gregset): Call gdbarch_tdep() just once, assign result to
12800 variable and use that, instead of calling the function several
12803 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12805 * configure.host: Accept sparcv9 as alias for sparc64.
12806 * configure.tgt: Likewise.
12808 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12810 * solib-aix5.c (build_so_list_from_mapfile)
12811 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12812 arguments is not reversed.
12813 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12814 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12816 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12818 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12819 modified version of obsolete sh_fetch_pseudo_register.
12820 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12821 (sh4_register_read): New function.
12822 (sh_pseudo_register_write): New function. Renamed and modified
12823 version of obsolete sh_store_pseudo_register.
12824 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12825 (sh4_register_write): New function.
12826 (sh_gdbarch_init): Remove setting of gdbarch function
12827 fetch_pseudo_register and store_pseudo_register. Remove setting of
12828 register_convert_to_raw, register_convert_to_virtual,
12829 register_convertible.
12830 (sh_sh4_register_convertible): Delete. No longer needed. All is
12831 taken care by architecture specific functions
12832 register_read/register_write.
12833 (sh_sh4_register_convert_to_virtual): Make static.
12834 (sh_sh4_register_convert_to_raw): Ditto.
12836 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12838 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12839 (floatformat_is_nan, floatformat_mantissa): Ditto.
12841 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12842 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12843 builtin_type_ieee_double_little,
12844 builtin_type_ieee_double_littlebyte_bigword,
12845 builtin_type_m68881_ext, builtin_type_i960_ext,
12846 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12847 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12848 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12849 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12851 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12853 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12854 parameter. Set frameless flag if it exists and depended of
12855 whether the scanned function is frameless or not.
12856 (xstormy16_skip_prologue): If function is frameless, return
12857 result of xstormy16_scan_prologue().
12858 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12861 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12863 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12864 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12865 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12866 sh_sh4_register_byte, sh_sh4_register_raw_size,
12867 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12868 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12869 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12870 sh_store_pseudo_register, sh_do_pseudo_register): Call
12871 gdbarch_tdep() just once, assign result to variable and use that,
12872 instead of calling the function several times.
12874 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12876 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12877 macros instead of LAST_FPU_CTRL_REGNUM.
12878 (store_register): Likewise.
12880 2002-01-21 Jim Blandy <jimb@redhat.com>
12882 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12883 is up-to-date before running the program, not just when a program
12886 2002-01-21 Fred Fish <fnf@redhat.com>
12888 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12889 when we have found all instructions we are looking for.
12891 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12893 * arm-tdep.c (arm_register_name): New function.
12894 (arm_registers_names): Make static.
12895 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12896 (arm_register_name): Declare.
12897 (REGISTER_NAME): Use it.
12899 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12900 Kevin Buettner <kevinb@redhat.com>
12902 Convert arm targets to new FRAME interface.
12903 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12904 (arm_frame_find_save_regs): Delete.
12905 (arm_frame_init_saved_regs): New.
12906 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12907 Allocate extra_info as required. Convert all uses of fsr.regs
12908 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12910 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12911 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12912 (check_prologue_cache, save_prologue_cache): Likewise.
12913 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12914 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12915 (FRAME_FIND_SAVED_REGS): Delete.
12916 (arm_frame_find_saved_regs): Delete prototype.
12917 (arm_frame_init_saved_regs): New prototype.
12918 (FRAME_INIT_SAVED_REGS): Define.
12920 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12922 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12924 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12926 From Jeff Law <law@redhat.com>:
12927 * infttrace.c: Include <sys/pstat.h>.
12928 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12929 exec file if the ttrace equivalent fails.
12931 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12933 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12934 (closeLogFile): Ditto.
12936 2002-01-20 Michael Chastain <mec@shout.net>
12938 * top.c (print_gdb_version): Bump copyright year to 2002.
12940 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12942 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12943 Zannoni and Eli Zaretskii.
12945 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12947 * buildsym.c: Update copyright years.
12948 * c-typeprint.c: Likewise.
12949 * dwarf2read.c: Likewise.
12950 * f-typeprint.c: Likewise.
12951 * gdbtypes.c: Likewise.
12952 * gdbtypes.h: Likewise.
12953 * hp-symtab-read.c: Likewise.
12954 * hpread.c: Likewise.
12955 * mdebugread.c: Likewise.
12956 * p-typeprint.c: Likewise.
12958 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12960 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12961 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12962 byte-order selectable.
12963 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12964 * arch-utils.c: Ditto.
12965 (set_endian): Ditto.
12966 (set_endian_from_file): Ditto.
12967 * gdbserver/low-sim.c (create_inferior): Ditto.
12968 * gdbarch.sh: Ditto.
12969 * gdbarch.h: Re-generate.
12970 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12971 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12972 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12973 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12974 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12975 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12976 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12977 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12979 * config/mips/tm-wince.h: Remove #undef of macro
12980 TARGET_BYTE_ORDER_SELECTABLE.
12981 * config/sh/tm-wince.h: Ditto.
12983 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12985 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12986 member function fields. Add accessor macro
12987 TYPE_FN_FIELD_ARTIFICIAL.
12988 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12989 * c-typeprint.c (c_type_print_base): Skip artificial member
12992 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12994 * f-typeprint.c: Delete unused function f_type_print_args.
12995 * p-typeprint.c: Delete unused function pascal_type_print_args.
12997 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12999 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13000 comment. Add ``artificial'' to ``union field_location''.
13002 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13004 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13005 * mdebugread.c (parse_symbol): Likewise.
13006 * stabsread.c (define_symbol): Likewise.
13007 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13008 initializing TYPE_FIELD_BITPOS to n (obsolete).
13009 (hpread_doc_function_type): Likewise.
13010 * hpread.c (hpread_function_type): Likewise.
13012 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13014 * configure.in (host_makefile_frag): Only require a host makefile
13015 fragment when a native build.
13016 * configure: Re-generate.
13018 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13020 * doublest.h (floatformat_from_type): Declare.
13021 * doublest.c (floatformat_from_type): New function.
13022 (convert_typed_floating): Use.
13024 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13025 call to function floatformat_from_type.
13027 * gdbarch.sh (IEEE_FLOAT): Delete.
13028 * gdbarch.h, gdbarch.c: Re-generate.
13029 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13030 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13031 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13032 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13033 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13034 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13035 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13036 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13037 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13038 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13039 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13040 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13042 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13043 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13044 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13045 * sh-tdep.c (sh_gdbarch_init): Ditto.
13046 * mips-tdep.c (mips_gdbarch_init): Ditto.
13047 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13048 * cris-tdep.c (cris_gdbarch_init): Ditto.
13050 2002-01-20 Jiri Smid <smid@suse.cz>
13052 * configure.host, configure.tgt: Support x86-64.
13053 * NEWS: Note new target x86-64.
13055 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13056 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13057 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13058 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13059 x86-64-linux-nat.o): Fix dependencies.
13061 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13063 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13064 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13065 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13066 * config/sparc/xm-sun4os4.h: Delete file.
13067 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13069 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13071 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13072 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13073 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13074 * config/i386/i386lynx.mh (XM_FILE): Delete.
13075 * config/rs6000/xm-rs6000ly.h: Delete file.
13076 * config/sparc/xm-sparclynx.h: Delete file.
13077 * config/m68k/xm-m68klynx.h: Delete file.
13078 * config/i386/xm-i386lynx.h: Delete file.
13079 * config/xm-lynx.h: Delete file.
13080 * config/djgpp/fnchange.lst: Update.
13082 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13084 * alpha-tdep.c (alpha_register_byte): New function.
13085 (alpha_register_raw_size): Ditto.
13086 (alpha_register_virtual_size): Ditto.
13087 (alpha_skip_prologue_internal): Renamed from
13088 alpha_skip_prologue.
13089 (alpha_skip_prologue): New version that calls
13090 alpha_skip_prologue_internal.
13091 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13092 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13093 second argument from alpha_skip_prologue.
13094 (REGISTER_BYTE): Use alpha_register_byte.
13095 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13096 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13097 (FRAMELESS_FUNCTION_INVOCATION): Use
13098 generic_frameless_function_invocation_not.
13099 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13100 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13102 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13104 * config/mips/xm-news-mips.h: Delete file.
13105 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13107 * config/m88k/xm-m88k.h: Delete file.
13108 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13109 * config/m88k/xm-delta88v4.h: Ditto.
13110 * config/m88k/xm-delta88.h: Ditto.
13112 * config/alpha/xm-fbsd.h: Delete file.
13113 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13115 * config/sparc/xm-sparc.h: Delete file.
13116 * Makefile.in (xm-sun4os4.h): Delete dependency.
13117 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13118 * config/sparc/xm-sun4os4.h: Ditto.
13119 * config/sparc/xm-linux.h: Ditto.
13121 * config/i386/xm-windows.h: Delete file.
13123 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13125 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13126 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13128 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13130 * alpha-tdep.c (alpha_call_dummy_words): New.
13131 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13132 (CALL_DUMMY_P): Define.
13133 (CALL_DUMMY_WORDS): Define.
13134 (SIZEOF_CALL_DUMMY_WORDS): Define.
13136 2002-01-19 Per Bothner <per@bothner.com>
13138 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13139 isn't NULL, which can happen with some gcj-3.x-produced code.
13141 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13143 * alpha-tdep.c (alpha_register_virtual_type): New function.
13144 (alpha_init_frame_pc_first): Ditto.
13145 (alpha_fix_call_dummy): Ditto.
13146 (alpha_store_struct_return): Ditto.
13147 (alpha_extract_struct_value_address): Ditto.
13148 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13149 alpha_register_virtual_type.
13150 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13151 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13152 alpha_extract_struct_value_address.
13153 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13154 (INIT_FRAME_PC): Use init_frame_pc_noop.
13155 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13157 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13159 * i386gnu-nat.c: Include "i386-tdep.h".
13160 (fetch_fpregs): Simplify code dealing with uninitialized floating
13161 point states such that it doesn't require FP7_REGNUM.
13163 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13165 * alpha-tdep.c (frame_extra_info): New.
13166 (alpha_find_saved_regs): Make static. Use
13168 (alpha_frame_init_saved_regs): New function.
13169 (alpha_frame_saved_pc): Use frame->extra_info.
13170 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13171 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13172 (init_extra_frame_info): Rename to...
13173 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13174 (alpha_print_extra_frame_info): New function.
13175 (alpha_frame_locals_address): Ditto.
13176 (alpha_frame_args_address): Ditto.
13177 (alpha_pop_frame): Use frame->extra_info.
13178 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13179 alpha_frame_args_address.
13180 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13181 (alpha_find_saved_regs): Remove prototype.
13182 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13183 (EXTRA_FRAME_INFO): Remove.
13184 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13185 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13187 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13189 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13190 (alpha_cannot_fetch_register): Ditto.
13191 (alpha_cannot_store_register): Ditto.
13192 (alpha_register_convertible): Ditto.
13193 (alpha_use_struct_convention): Ditto.
13194 * config/alpha/tm-alpha.h: Update copyright years.
13195 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13196 (INNER_THAN): Use core_addr_lessthan.
13197 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13198 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13199 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13200 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13201 (FRAME_CHAIN): Remove unnecessary cast.
13203 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13205 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13208 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13210 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13211 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13212 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13213 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13214 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13215 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13216 * x86-64-linux-nat.c: Ditto.
13218 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13220 * alpha-tdep.c (alpha_register_name): New function.
13221 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13222 (REGISTER_NAME): Define.
13224 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13226 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13228 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13230 * alpha-tdep.c: Update copyright years.
13231 (alpha_next_pc): New function.
13232 (alpha_software_single_step): Ditto.
13233 * config/alpha/tm-alpha.h: Add prototype for
13234 alpha_software_single_step.
13236 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13238 * alphabsd-nat.c: Update copyright years.
13239 (fill_gregset): Use regcache_collect.
13240 (fill_fpregset): Likewise.
13241 (fetch_inferior_registers): Only fetch integer registers
13242 if requested to do so.
13243 (store_inferior_registers): Only store integer registers
13244 if requested to do so.
13246 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13248 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13249 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13250 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13251 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13252 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13253 * config/arm/linux.mh (XDEPFILES): Delete.
13254 * config/arm/nbsd.mh (XDEPFILES): Delete.
13255 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13256 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13257 * config/i386/i386m3.mh (XDEPFILES): Delete.
13258 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13259 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13260 * config/i386/fbsd.mh (XDEPFILES): Delete.
13261 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13262 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13263 * config/i386/i386v4.mh (XDEPFILES): Delete.
13264 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13265 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13266 * config/i386/i386aix.mh (XDEPFILES): Delete.
13267 * config/i386/go32.mh (XDEPFILES): Delete.
13268 * config/i386/cygwin.mh (XDEPFILES): Delete.
13269 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13270 * config/i386/i386mach.mh (XDEPFILES): Delete.
13271 * config/i386/i386v32.mh (XDEPFILES): Delete.
13272 * config/i386/linux.mh (XDEPFILES): Delete.
13273 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13274 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13275 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13276 * config/i386/i386sco.mh (XDEPFILES): Delete.
13277 * config/i386/i386v.mh (XDEPFILES): Delete.
13278 * config/i386/nbsd.mh (XDEPFILES): Delete.
13279 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13280 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13281 * config/i386/symmetry.mh (XDEPFILES): Delete.
13282 * config/i386/obsd.mh (XDEPFILES): Delete.
13283 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13284 * config/ia64/linux.mh (XDEPFILES): Delete.
13285 * config/ia64/aix.mh (XDEPFILES): Delete.
13286 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13287 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13288 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13289 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13290 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13291 * config/m68k/linux.mh (XDEPFILES): Delete.
13292 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13293 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13294 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13295 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13296 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13297 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13298 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13299 * config/m88k/delta88.mh (XDEPFILES): Delete.
13300 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13301 * config/m88k/m88k.mh (XDEPFILES): Delete.
13302 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13303 * config/mips/linux.mh (XDEPFILES): Delete.
13304 * config/mips/irix6.mh (XDEPFILES): Delete.
13305 * config/mips/irix5.mh (XDEPFILES): Delete.
13306 * config/mips/irix4.mh (XDEPFILES): Delete.
13307 * config/mips/irix3.mh (XDEPFILES): Delete.
13308 * config/mips/decstation.mh (XDEPFILES): Delete.
13309 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13310 (NATDEPFILES): Move core-aout.o to here.
13311 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13312 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13313 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13314 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13315 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13316 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13317 * config/pa/hpux11.mh (XDEPFILES): Delete.
13318 * config/powerpc/aix.mh (XDEPFILES): Delete.
13319 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13320 * config/powerpc/linux.mh (XDEPFILES): Delete.
13321 * config/romp/rtbsd.mh: Rename XDEPFILES.
13322 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13323 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13324 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13325 * config/s390/s390.mh (XDEPFILES): Delete.
13326 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13327 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13328 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13329 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13330 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13331 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13332 * config/sparc/linux.mh (XDEPFILES): Delete.
13333 * config/vax/vaxult.mh (XDEPFILES): Delete.
13334 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13335 * Makefile.in (DEPFILES): Remove XDEPFILES.
13337 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13339 * utils.c (internal_verror): Fix comments, default is yes not no.
13340 Update queries to match. Default to quit and dump core.
13342 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13344 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13346 * defs.h, event-top.c, gdbcmd.h: Ditto.
13347 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13348 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13349 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13350 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13351 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13352 * mi/mi-main.c:Ditto.
13354 * stack.c, symfile.c: Update copyright.
13356 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13358 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13359 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13360 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13361 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13363 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13365 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13366 * gdbserver/low-lynx.c (myattach): Likewise.
13367 * gdbserver/low-nbsd.c (myattach): Likewise.
13368 * gdbserver/low-sim.c (myattach): Likewise.
13369 * gdbserver/low-sparc.c (myattach): Likewise.
13370 * gdbserver/low-sun3.c (myattach): Likewise.
13372 * gdbserver/low-linux.c (myattach): New function.
13374 * gdbserver/server.c (attach_inferior): New function.
13375 (main): Handle "--attach".
13377 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13379 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13382 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13384 * c-typeprint.c (is_type_conversion_operator): Add additional
13385 check for non-conversion operators.
13387 2002-01-15 Michael Snyder <msnyder@redhat.com>
13389 * linux-proc.c: Add "info proc" command, a la procfs.c.
13390 (read_mapping): New function, abstract and re-use code.
13391 (linux_find_memory_regions): Use new func read_mapping.
13392 (linux_info_proc_cmd): New function, implement "info proc".
13393 (_initialize_linux_proc): Add new command "info proc".
13395 2002-01-15 Michael Snyder <msnyder@redhat.com>
13397 * symfile.c (generic_load): Use bfd_map_over_sections method
13398 instead of manipulating bfd structure members directly.
13399 (add_section_size_callback): New function, bfd sections callback
13400 used by generic_load.
13401 (load_sections_callback): New function, bfd sections callback
13402 used by generic_load.
13404 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13406 [Based on work by Jim Blandy]
13407 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13408 (builtin_type_vec128): Export.
13409 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13411 (builtin_type_vec128): New builtin type for 128 bit vector
13413 (build_gdbtypes): Initialize builtin_type_v16qi and
13414 builtin_type_v8hi. Create the vec128 register builtin type
13416 (build_builtin_type_vec128): New function.
13417 (_initialize_gdbtypes): Register builtin_type_v16qi and
13418 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13419 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13420 AltiVec register to new builtin type.
13422 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13424 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13427 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13429 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13430 CLEAN_UP_REGISTER_VALUE.
13431 * regcache.c (supply_register): Update only call.
13433 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13435 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13436 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13437 a29k-*-vxworks* targets as obsolete.
13439 2002-01-14 Michael Snyder <msnyder@redhat.com>
13441 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13442 until we can resolve portability issues.
13443 * gregset.h: Remove references to fpxregs.
13444 * gcore.c (gcore_command): Initialize note_sec to NULL.
13446 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13448 * signals.c (target_signal_to_name): Rewrite. Only use
13449 signals[].name when in bounds and non-NULL.
13451 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13453 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13454 * signals.c (target_signal_to_name): Verify that SIG is within the
13455 bounds of the signals array.
13457 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13459 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13461 2002-01-13 Keith Seitz <keiths@redhat.com>
13463 * stack.c (print_frame_info_base): Print the frame's pc
13464 only if when print_frame_info_listing_hook is not defined.
13466 2002-01-13 Keith Seitz <keiths@redhat.com>
13468 * varobj.c (varobj_set_value): Make sure that there were no
13469 errors evaluating the object before attempting to set its
13471 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13472 so this offset adjustment is no longer necessary.
13473 (create_child): Don't set the error flag if the child is
13474 a CPLUS_FAKE_CHILD.
13475 (value_of_child): If value_fetch_lazy fails, return NULL
13476 so that callers will be notified that an error occurred.
13477 (c_value_of_variable): Delay check of variable's validity
13478 until later. We actually want all structs and unions to have
13480 Do not return "???" for variables which could not be evaluated.
13481 This error condition must be returned to the caller so that it
13482 can get the error condition from gdb.
13483 (cplus_name_of_child): Adjust index for vptr before figuring
13484 out the name of the child.
13485 (cplus_value_of_child): If a child's (real) parent is not valid,
13486 don't even bother trying to give a value for it. Just return
13487 an error. Change all instances in this function.
13488 (cplus_type_of_child): If our parent is one of the "fake"
13489 parents, we need to get at the type of the real parent, and
13490 derive the child's true type using this information.
13492 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13494 From 2002-01-09 John Marshall <johnm@falch.net>:
13495 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13496 sources.redhat.com, and tweak some related URLs which had
13497 suffered from linkrot.
13499 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13502 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13503 structures passed in registers.
13505 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13507 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13508 white space which prevented compilation. Reported by DSK
13509 <dsk@student.unsw.edu.au>.
13511 2002-01-11 Michael Snyder <msnyder@redhat.com>
13513 * symfile.c (build_section_addr_info_from_section_tab):
13514 Use bfd access method instead of manipulating bfd directly.
13515 (syms_from_objfile): Ditto.
13516 (simple_overlay_update_1): Ditto.
13517 (simple_overlay_update): Ditto.
13518 (generic_load): Ditto.
13519 (overlay_unmapped_address): FIXME comment, bfd access methods.
13520 (sections_overlap): FIXME comment, bfd access methods.
13521 (pc_in_mapped_range): FIXME comment, bfd access methods.
13522 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13523 (section_is_mapped): FIXME comment, bfd access methods.
13524 (section_is_overlay): FIXME comment, bfd access methods.
13526 * symfile.c (generic_load): Whitespace and long line cleanups.
13527 Remove duplicate variable, change several local variables to
13528 more appropriate data types.
13529 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13531 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13533 From Peter Schauer:
13534 * language.c (longest_local_hex_string_custom): Use phex_nz to
13535 convert NUM to a hex string.
13537 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13539 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13541 Update Copyright year.
13543 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13545 * language.c (longest_raw_hex_string): Delete unused function.
13547 2002-01-11 Petr Sorfa <petrs@caldera.com>
13549 * MAINTAINERS (write-after-approval): Add myself.
13550 * dwarf2read.c (read_tag_string_type): Handling of
13552 (read_tag_string_type): FORTRAN fix to prevent propagation of
13554 (set_cu_language): Handling of DW_LANG_Fortran95
13556 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13558 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13559 GETPID(inferior_ptid).
13560 (store_inferior_registers): Likewise.
13562 2002-01-10 Jason Merrill <jason@redhat.com>
13564 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13567 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13569 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13570 and bfd/elf32-sh-nbsd.c.
13572 2002-01-10 Michael Snyder <msnyder@redhat.com>
13574 * NEWS: Mention --pid and corefile/proc-id behavior change.
13576 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13577 * gcore.c: Include cli/cli-decode.h instead of command.h.
13579 * main.c (captured_main): Add new command line option "--pid".
13580 If the second command line argument (following the symbol-file)
13581 begins with a digit, try to attach to it before trying to open
13583 (print_gdb_help): Document the "--pid" argument.
13585 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13587 * completer.c (command_completer): New function.
13589 * completer.h <command_completer>: Add prototype.
13591 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13592 completer for the "help" command.
13594 2002-01-09 Jason Merrill <jason@redhat.com>
13596 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13598 2002-01-09 Michael Snyder <msnyder@redhat.com>
13600 * i386-linux-nat.c (fill_fpxregset): Make global.
13601 (store_fpxregset): Ditto.
13603 * gregset.h (gdb_fpxregset_t): Define.
13604 (supply_fpxregset): Prototype.
13605 (fill_fpxregset): Prototype.
13607 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13609 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13611 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13612 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13613 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13615 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13617 * MAINTAINERS: Update target maintainer rules so that any
13618 Maintainer can approve a tested patch for a maintenance-only
13621 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13623 * MAINTAINERS (write-after-approval): Add myself.
13625 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13628 2002-01-08 Michael Snyder <msnyder@redhat.com>
13630 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13631 real name of the executable, rather than the /proc name.
13633 2002-01-03 Michael Snyder <msnyder@redhat.com>
13635 Implement a "generate-core-file" command in gdb, save target state.
13636 * gcore.c: New file. Implement new command 'generate-core-file'.
13637 Save a corefile image of the current state of the inferior.
13638 * linux-proc.c: Add linux-specific code for saving corefiles.
13639 * target.h (struct target_ops): Add new target vectors for saving
13640 corefiles; to_find_memory_regions and to_make_corefile_notes.
13641 (target_find_memory_regions): New macro.
13642 (target_make_corefile_notes): New macro.
13643 * target.c (update_current_target): Inherit new target methods.
13644 (dummy_find_memory_regions): New place-holder method.
13645 (dummy_make_corefile_notes): New place-holder method.
13646 (init_dummy_target): Initialize new dummy target vectors.
13647 * exec.c (exec_set_find_memory_regions): New function.
13648 Allow the exec_ops vector for memory regions to be taken over.
13649 (exec_make_note_section): New function, target vector method.
13650 * defs.h (exec_set_find_memory_regions): Export prototype.
13651 * procfs.c (proc_find_memory_regions): New function, corefile method.
13652 (procfs_make_note_section): New function, corefile method.
13653 (init_procfs_ops): Set new target vector pointers.
13654 (find_memory_regions_callback): New function.
13655 (procfs_do_thread_registers): New function.
13656 (procfs_corefile_thread_callback): New function.
13657 * sol-thread.c (sol_find_memory_regions): New function.
13658 (sol_make_note_section): New function.
13659 (init_sol_thread_ops): Initialize new target vectors.
13660 * inftarg.c (inftarg_set_find_memory_regions): New function.
13661 Allow to_find_memory_regions vector to be taken over.
13662 (inftarg_set_make_corefile_notes): New function.
13663 Allow to_make_corefile_notes vector to be taken over.
13664 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13665 interface layer if not target_has_execution (may be a corefile).
13666 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13667 * config/sparc/sun4sol2.mh: Ditto.
13668 * config/alpha/alpha-linux.mh: Ditto.
13669 * config/arm/linux.mh: Ditto.
13670 * config/i386/x86-64linux.mh: Ditto.
13671 * config/ia64/linux.mh: Ditto.
13672 * config/m68k/linux.mh: Ditto.
13673 * config/mips/linux.mh: Ditto.
13674 * config/powerpc/linux.mh: Ditto.
13675 * config/sparc/linux.mh: Ditto.
13677 2002-01-07 Michael Snyder <msnyder@redhat.com>
13679 * arm-linux-nat.c: Remove references to regcache.c internal data
13680 (registers[] and register_valid[]).
13682 2002-01-07 Michael Snyder <msnyder@redhat.com>
13684 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13685 so that attaching to a pid will automatically read the process's
13686 symbol file and shlibs.
13687 * Makefile.in: Add rule for linux-proc.o.
13688 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13689 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13690 * config/arm/linux.mh: Ditto.
13691 * config/i386/linux.mh: Ditto.
13692 * config/i386/x86-64linux.mh: Ditto.
13693 * config/ia64/linux.mh: Ditto.
13694 * config/m68k/linux.mh: Ditto.
13695 * config/mips/linux.mh: Ditto.
13696 * config/powerpc/linux.mh: Ditto.
13697 * config/sparc/linux.mh: Ditto.
13699 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13701 * win32-nat.c: Add i386-tdep.h dependency.
13703 2002-01-07 Michael Snyder <msnyder@redhat.com>
13705 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13706 instead of bfd_get_arch_size. Don't bail out just because
13707 there's no exec_bfd.
13709 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13710 * p-valprint.c (pascal_object_print_value): Ditto.
13711 * somread.c (som_symtab_read): Ditto.
13712 * symfile.c (simple_free_overlay_region_table): Ditto.
13713 * valops.c (value_assign): Ditto.
13715 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13716 use tilde_expand and strerror for opening save-tracepoints file.
13718 * thread-db.c (thread_db_new_objfile): Indendation fix.
13720 * infptrace.c (GDB_MAX_ALLOCA): New define.
13721 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13722 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13723 can be overridden with whatever value is appropriate to the host).
13724 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13725 alloca to allocate potentially large buffer.
13726 * rs6000-nat.c (child_xfer_memory): Ditto.
13727 * symm-nat.c (child_xfer_memory): Ditto.
13728 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13730 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13732 From Nick Clifton <nickc@redhat.com>
13733 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13735 2002-01-07 Michael Snyder <msnyder@redhat.com>
13737 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13738 Don't use exec_bfd if it's NULL.
13740 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13742 * valops.c (value_arg_coerce): Fix formatting.
13744 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13746 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13747 * gnu-nat.c: Ditto.
13749 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13751 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13752 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13753 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13754 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13755 z8k-coff have not been multi-arched. Update z8k-coff build
13758 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13760 * MAINTAINERS: Mark a29k target as obsolete.
13761 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13762 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13764 * NEWS: Note that a29k targets are obsolete.
13765 * a29k-tdep.c: Mark as obsolete.
13766 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13767 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13768 a29k-*-vxworks* targets as obsolete.
13769 * remote-adapt.c: Obsolete.
13770 * remote-eb.c: Obsolete.
13771 * remote-mm.c: Obsolete.
13772 * remote-udi.c: Obsolete.
13773 * config/a29k/a29k-udi.mt: Obsolete.
13774 * config/a29k/a29k.mt: Obsolete.
13775 * config/a29k/tm-a29k.h: Obsolete.
13776 * config/a29k/tm-vx29k.h: Obsolete.
13777 * config/a29k/vx29k.mt: Obsolete.
13779 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13781 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13782 with BFD_ENDIAN_BIG.
13784 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13786 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13787 * configure, config.in: Re-generate.
13788 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13789 * defs.h: Do not include <endian.h>.
13791 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13793 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13794 * config.in: Regenerate.
13795 * configure.in: Update copyright years.
13796 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13797 * configure: Regenerate.
13798 * i386bsd-nat.c: Update copyright years.
13799 (fill_gregset): Use regcache_collect.
13800 (fetch_inferior_registers): Only fetch integer registers
13801 if requested to do so. Add support for XMM registers
13802 using PT_GETXMMREGS.
13803 (store_inferior_registers): Only store integer registers
13804 if requested to do so. Add support for XMM registers
13805 using PT_SETXMMREGS.
13806 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13807 (store_inferior_registers): Remove.
13808 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13809 (fetch_elfcore_registers): New function.
13810 (i386nbsd_elfcore_fns): New.
13811 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13812 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13814 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13815 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13816 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13817 * config/i386/tm-nbsd.h: Update copyright years.
13818 (HAVE_SSE_REGS): Define.
13819 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13820 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13821 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13822 (SIGCONTEXT_PC_OFFSET): Remove.
13823 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13825 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13827 * configure.tgt: Remove powerpc-*-macos* target.
13828 * config/m68k/xm-mpw.h: Delete file.
13829 * config/xm-mpw.h: Delete file.
13830 * ser-mac.c: Delete file.
13831 * mpw-make.sed: Delete file.
13832 * mpw-config.in: Delete file.
13833 * mac-xdep.c: Delete file.
13834 * mac-gdb.r: Delete file.
13835 * mac-defs.h: Delete file.
13836 * mac-nat.c: Delete file.
13837 * config/powerpc/macos.mh: Delete file.
13838 * config/powerpc/macos.mt: Delete file.
13839 * config/powerpc/nm-macos.h: Delete file.
13840 * config/powerpc/tm-macos.h: Delete file.
13841 * source.c (openp, open_source_file): Remove obsolete code.
13842 * top.c (gdb_readline): Ditto.
13843 * utils.c (query): Ditto.
13844 * event-top.c (display_gdb_prompt): Ditto.
13845 * Makefile.in (ser-mac.o): Delete obsolete target.
13848 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13850 * defs.h (BIG_ENDIAN): Delete macro definition.
13851 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13852 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13853 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13854 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13855 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13856 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13857 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13858 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13859 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13860 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13861 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13862 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13863 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13864 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13865 * gdbarch.c: Re-generate.
13867 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13869 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13872 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13874 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13876 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13878 * value.h (value_ptr): Delete typedef.
13880 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13882 * i386nbsd-nat.c: Update copyright years.
13883 Include i386-tdep.h.
13885 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13887 * stabsread.c: Update copyright years.
13889 From Debashis Mahata <debashis.mahata@wipro.com>:
13890 (read_struct_fields): Deal with Sun C compiler erroneous stab
13891 output for structs and unions.
13894 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13896 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13899 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13901 * cp-abi.c: Fix whitespace.
13902 (baseclass_offset): New wrapper function.
13903 * cp-abi.h (baseclass_offset): Add prototype.
13904 (struct cp_abi_ops): Add baseclass_offset pointer.
13906 * valops.c (vb_match): Move to...
13907 * gnu-v2-abi.c (vb_match): here.
13908 * valops.c (baseclass_offset): Move to...
13909 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13911 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13913 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13914 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13915 * hpacc-abi.c (init_hpacc_ops): Likewise.
13917 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13919 * valops.c (find_overload_match): Accept obj as a
13920 reference parameter. Update it before returning.
13921 * value.h (find_overload_match): Update prototype.
13922 * eval.c (evaluate_subexp_standard): Pass object to
13923 find_overload_match by reference.
13925 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13927 * valarith.c: Replace value_ptr with struct value pointer. Remove
13928 register attribute from value declarations.
13931 * scm-lang.c (scm_lookup_name): Ditto.
13933 2002-01-03 Michael Snyder <msnyder@redhat.com>
13935 Abstract the functionality of iterating over mapped memory
13936 regions into a general purpose iterator function.
13937 * procfs.c (iterate_over_mappings): New function, general purpose
13938 iterator for memory sections.
13939 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13940 (solib_mappings_callback): New function, callback for above.
13941 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13942 (info_mappings_callback): New function, callback for above.
13944 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13946 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13948 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13949 * i386-tdep.c: Include "elf-bfd.h".
13950 (process_note_abi_tag_sections): New function.
13951 (i386_gdbarch_init): Add code to recognize various OS/ABI
13954 * maint.c (_initialize_maint_cmds): Add missing \ in
13957 For older changes see ChangeLog-2001
13963 version-control: never